diff --git a/assets/AnimatedWave-BshZj-I-.js b/assets/AnimatedWave-FWv7Aoa4.js similarity index 98% rename from assets/AnimatedWave-BshZj-I-.js rename to assets/AnimatedWave-FWv7Aoa4.js index 0764afba31f1a0d4f1b4ce71cb5973f8cba9bf73..930512a5be4090c308ac3465781fb939650ca88c 100644 --- a/assets/AnimatedWave-BshZj-I-.js +++ b/assets/AnimatedWave-FWv7Aoa4.js @@ -1,3 +1,3 @@ -import{Basic_default as e}from"./Basic-DNa_H8OA.js";import{Fragment as t,RouterLink as n,TransitionVertical_default as r,__plugin_vue_export_helper_default as i,computed as a,createBaseVNode as o,createCommentVNode as s,createElementBlock as c,createVNode as l,defineComponent as u,nextTick as d,normalizeClass as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDirective as y,storeToRefs as b,toDisplayString as x,unref as S,useAudioContext as C,useChatStore as w,useConsciousnessStore as T,useDevicesList as E,useElementBounding as D,useI18n as O,useMarkdown as k,useMicVAD as A,useProvidersStore as j,useScroll as M,useSettings as N,useWhisper as ee,vModelCheckbox as te,vModelRadio as ne,watch as P,withCtx as F,withDirectives as I}from"./index-jH8PbleY.js";import{HeaderLink_default as L}from"./HeaderLink-DiAWfIpN.js";const R={},z={class:`cross-background-container`};function B(e,t){return h(),c(`div`,z,[v(e.$slots,`default`,{},void 0,!0)])}var V=i(R,[[`render`,B],[`__scopeId`,`data-v-455eb62c`]]);const H={"mb-1":``,"w-full":``,"gap-2":``},U={"w-full":``};var W=u({__name:`Header`,setup(e){return(e,t)=>(h(),c(`header`,H,[o(`div`,U,[l(L)]),l(S(n),{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:F(()=>t[0]||=[o(`div`,{"i-solar:settings-minimalistic-bold-duotone":``},null,-1)]),_:1,__:[0]})]))}}),G=W,re=`/assets/worker-CkF6jqty.js`;const K=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),q=e=>{var t;let n=typeof e;return n===`object`?e===null?`null`:(e==null||(t=e.constructor)==null?void 0:t.name)??`object`:n},J=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 ${q(e)}.`)},Y=e=>{let t=J(e),n=``,r,i=t.length;for(r=2;r>2],n+=K[(t[r-2]&3)<<4|t[r-1]>>4],n+=K[(t[r-1]&15)<<2|t[r]>>6],n+=K[t[r]&63];return r===i+1&&(n+=K[t[r-2]>>2],n+=K[(t[r-2]&3)<<4],n+=`==`),r===i&&(n+=K[t[r-2]>>2],n+=K[(t[r-2]&3)<<4|t[r-1]>>4],n+=K[(t[r-1]&15)<<2],n+=`=`),n};function X(e,t,n){for(let r=0;r{d().then(()=>{l.update(),u.value=l.height.value})}),m(async()=>{d().then(()=>{l.update(),u.value=l.height.value})}),(e,l)=>{let u=y(`auto-animate`);return h(),c(`div`,Q,[l[2]||=o(`div`,{"flex-1":``},null,-1),I((h(),c(`div`,{ref_key:`chatHistoryRef`,ref:n,"h-full":``,"w-full":``,flex:`~ col`,"overflow-scroll":``},[l[1]||=o(`div`,{"flex-1":``},null,-1),(h(!0),c(t,null,_(S(i),(e,t)=>(h(),c(`div`,{key:t,"mb-2":``},[e.role===`error`?(h(),c(`div`,ae,[o(`div`,oe,[o(`div`,se,[o(`div`,ce,[o(`span`,le,x(S(r)(`stage.chat.message.character-name.core-system`)),1)]),l[0]||=o(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),S(a)&&t===S(i).length-1?(h(),c(`div`,ue)):(h(),c(`div`,{key:1,class:`markdown-content break-words text-violet-500`,text:`base {if(!e||!e.trim())return;let t=v.getProviderConfig(y.value);await V(e,{chatProvider:v.getProviderInstance(y.value),model:D.value,providerConfig:t})}});async function J(){if(!(!i.value.trim()||p.value))try{let e=v.getProviderConfig(y.value);await V(i.value,{chatProvider:v.getProviderInstance(y.value),model:D.value,providerConfig:e})}catch(e){U.value.pop(),U.value.push({role:`error`,content:e.message})}}let{destroy:Y,start:X}=A(B,{onSpeechStart:()=>{a.value=!0},onVADMisfire:()=>{a.value=!1},onSpeechEnd:e=>{a.value=!1,Z(e.buffer)},auto:!1});async function Z(e){await W.resume();let t=await ie(e,W.sampleRate);K({type:`generate`,data:{audio:t,language:`en`}})}async function Q(e){let t=e.target,n=M.value.find(e=>e.deviceId===t.value);if(!n){R.value=void 0;return}R.value=n}return P(z,async e=>{e===`false`&&(Y(),q())}),P(d,async e=>{e&&await L()}),m(()=>{X()}),H(async()=>{i.value=``}),(n,m)=>(h(),c(`div`,we,[o(`fieldset`,Te,[o(`label`,{class:f([u.value===`chat`?`bg-primary-100 dark:bg-primary-900`:`bg-white dark:bg-primary-950`,u.value===`chat`?`text-primary-500 dark:text-primary-500`:``,{"transition-colors-none ":S(k)}]),flex:`~ row`,checked:u.value===`chat`,"aria-checked":u.value===`chat`,border:`solid 2 primary-100 dark:primary-900`,text:`primary-300 hover:primary-500 dark:primary-300/50 dark:hover:primary-500`,transition:`all duration-250 ease-in-out`,"cursor-pointer":``,"items-center":``,"gap-1":``,"rounded-lg":``,"px-2":``},[I(o(`input`,{"onUpdate:modelValue":m[0]||=e=>u.value=e,type:`radio`,name:`tab`,value:`chat`,hidden:``},null,512),[[ne,u.value]]),m[5]||=o(`div`,{"i-solar:dialog-2-bold-duotone":``,text:`2xl`,transform:`translate-y--2`},null,-1),o(`div`,De,[o(`span`,Oe,x(S(G)(`stage.chat.tabs.chat`)),1)])],10,Ee)]),o(`div`,ke,[o(`div`,Ae,[l(Ce,{"h-full":``,"flex-1":``,"p-4":``,w:`full`,"max-h":`i.value=e,placeholder:S(G)(`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:f({"transition-colors-none placeholder:transition-colors-none":S(k)}),onSubmit:J,onCompositionstart:m[2]||=e=>p.value=!0,onCompositionend:m[3]||=e=>p.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])])]),o(`div`,Me,[o(`div`,Ne,[l(S(r),null,{default:F(()=>[d.value?(h(),c(`fieldset`,Pe,[(h(!0),c(t,null,_(S(M),(e,t)=>(h(),c(`label`,{key:t,class:`[&_div_span]:dark:hover:bg-cyan-300 [&_div_span]:dark:hover:bg-cyan-900`},[o(`input`,{type:`radio`,name:`audioInput`,value:e.deviceId,hidden:``,onChange:Q},null,40,Fe),o(`div`,Ie,[o(`div`,Le,[e.deviceId===S(B)?(h(),c(`div`,Re)):s(``,!0)]),o(`span`,{"inline-block":``,class:f([e.deviceId===S(B)?`cyan-400 dark:text-white`:`cyan-400/50 dark:text-white/50`]),transition:`all duration-250 ease-in-out`},x(e.label),3)])]))),128))])):s(``,!0)]),_:1}),o(`label`,{bg:`complementary-100 hover:complementary-200 dark:complementary-800 dark:hover:complementary-700`,transition:`all duration-250 ease-in-out`,class:f({"transition-colors-none":S(k)}),text:`complementary-400`,"h-fit":``,flex:``,"cursor-pointer":``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-full":``,"px-4":``,"py-2":``},[I(o(`input`,{"onUpdate:modelValue":m[4]||=e=>d.value=e,type:`checkbox`,hidden:``},null,512),[[te,d.value]]),m[6]||=o(`div`,{"i-solar:microphone-2-bold-duotone":``},null,-1),o(`div`,null,[a.value?(h(),c(`span`,Be,`Listening...`)):(h(),c(`span`,ze,x(S(G)(`settings.microphone`)),1))])],2)])])]))}}),He=Ve;const Ue={py:`1`,flex:`~ col`,rounded:`lg`,"overflow-hidden":``},We={key:0,flex:``,mr:`12`},Ge={flex:`~ col`,shadow:`md violet-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset {d().then(()=>{a.update(),l.value=a.height.value})}),p(async()=>{d().then(()=>{a.update(),l.value=a.height.value})}),(e,a)=>{let l=y(`auto-animate`);return h(),c(`div`,Ue,[a[2]||=o(`div`,{"flex-1":``},null,-1),I((h(),c(`div`,{ref_key:`chatHistoryRef`,ref:n,"h-full":``,"w-full":``,"max-h":`40%`,flex:`~ col`,"overflow-scroll":``,class:`chat-history`},[a[1]||=o(`div`,{"flex-1":``},null,-1),(h(!0),c(t,null,_(S(i),(e,t)=>(h(),c(`div`,{key:t,"mb-2":``},[e.role===`error`?(h(),c(`div`,We,[o(`div`,Ge,[o(`div`,Ke,[o(`div`,qe,[o(`span`,Je,x(S(r)(`stage.chat.message.character-name.core-system`)),1)]),a[0]||=o(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),e.content?(h(),c(`div`,{key:0,class:`markdown-content`,text:`base {r.value=!0},onVADMisfire:()=>{r.value=!1},onSpeechEnd:e=>{r.value=!1,M(e)},auto:!1});function M(e){alert(`Transcription is not implemented yet`)}return P(d,async e=>{e===`false`&&D()}),y(async()=>{n.value=``}),m(()=>{k()}),(t,r)=>(h(),c(`div`,ct,[l(st,{absolute:``,"left-0":``,"top-0":``,transform:`translate-y-[-100%]`,h:`80dvh`,"w-full":``}),o(`div`,lt,[l(S(e),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,placeholder:S(C)(`stage.message`),border:`solid 2 primary-50 dark:primary-950/10`,text:`primary-500 hover:primary-600 dark:primary-100 dark:hover:primary-200 placeholder:primary-400 placeholder:hover:primary-500 placeholder:dark:primary-300 placeholder:dark:hover:primary-400`,bg:`primary-50/50 dark:primary-950/70`,"max-h":`[10lh]`,"min-h":`[2lh]`,"w-full":``,"resize-none":``,"overflow-y-scroll":``,"rounded-xl":``,"p-3":``,"font-medium":``,"outline-none":``,"backdrop-blur-md":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:f({"transition-colors-none placeholder:transition-colors-none":S(_)}),onSubmit:E,onCompositionstart:r[1]||=e=>i.value=!0,onCompositionend:r[2]||=e=>i.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])]))}}),dt=ut;const ft={class:`relative`},pt={absolute:``,"left-0":``,"right-0":``,"top-0":``,"w-full":``,"overflow-hidden":``};var mt=u({__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),s=g(t.fillColor),l=g(t.direction),u=g(t.movementDirection);function d(e,t,n,r,i){let a=[],o=Math.ceil(e/r),s=o*r,c=1,l=i===`up`?n:t-n;a.push(`M 0 ${l}`);let u=Math.PI*2/r;for(let e=0;e<=s;e+=c){let t=n*Math.sin(u*e),r=i===`up`?l-t:l+t;a.push(`L ${e} ${r}`)}let d=i===`up`?t:0;return a.push(`L ${s} ${d}`),a.push(`L 0 ${d} Z`),a.join(` `)}let f=a(()=>n.value+r.value*2),m=a(()=>{let e=` +import{Basic_default as e}from"./Basic-eHldbasx.js";import{Fragment as t,RouterLink as n,TransitionVertical_default as r,__plugin_vue_export_helper_default as i,computed as a,createBaseVNode as o,createCommentVNode as s,createElementBlock as c,createVNode as l,defineComponent as u,nextTick as d,normalizeClass as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDirective as y,storeToRefs as b,toDisplayString as x,unref as S,useAudioContext as C,useChatStore as w,useConsciousnessStore as T,useDevicesList as E,useElementBounding as D,useI18n as O,useMarkdown as k,useMicVAD as A,useProvidersStore as j,useScroll as M,useSettings as N,useWhisper as ee,vModelCheckbox as te,vModelRadio as ne,watch as P,withCtx as F,withDirectives as I}from"./index-C2W4XoWv.js";import{HeaderLink_default as L}from"./HeaderLink-B1-yiGgJ.js";const R={},z={class:`cross-background-container`};function B(e,t){return h(),c(`div`,z,[v(e.$slots,`default`,{},void 0,!0)])}var V=i(R,[[`render`,B],[`__scopeId`,`data-v-455eb62c`]]);const H={"mb-1":``,"w-full":``,"gap-2":``},U={"w-full":``};var W=u({__name:`Header`,setup(e){return(e,t)=>(h(),c(`header`,H,[o(`div`,U,[l(L)]),l(S(n),{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:F(()=>t[0]||=[o(`div`,{"i-solar:settings-minimalistic-bold-duotone":``},null,-1)]),_:1,__:[0]})]))}}),G=W,re=`/assets/worker-CkF6jqty.js`;const K=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),q=e=>{var t;let n=typeof e;return n===`object`?e===null?`null`:(e==null||(t=e.constructor)==null?void 0:t.name)??`object`:n},J=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 ${q(e)}.`)},Y=e=>{let t=J(e),n=``,r,i=t.length;for(r=2;r>2],n+=K[(t[r-2]&3)<<4|t[r-1]>>4],n+=K[(t[r-1]&15)<<2|t[r]>>6],n+=K[t[r]&63];return r===i+1&&(n+=K[t[r-2]>>2],n+=K[(t[r-2]&3)<<4],n+=`==`),r===i&&(n+=K[t[r-2]>>2],n+=K[(t[r-2]&3)<<4|t[r-1]>>4],n+=K[(t[r-1]&15)<<2],n+=`=`),n};function X(e,t,n){for(let r=0;r{d().then(()=>{l.update(),u.value=l.height.value})}),m(async()=>{d().then(()=>{l.update(),u.value=l.height.value})}),(e,l)=>{let u=y(`auto-animate`);return h(),c(`div`,Q,[l[2]||=o(`div`,{"flex-1":``},null,-1),I((h(),c(`div`,{ref_key:`chatHistoryRef`,ref:n,"h-full":``,"w-full":``,flex:`~ col`,"overflow-scroll":``},[l[1]||=o(`div`,{"flex-1":``},null,-1),(h(!0),c(t,null,_(S(i),(e,t)=>(h(),c(`div`,{key:t,"mb-2":``},[e.role===`error`?(h(),c(`div`,ae,[o(`div`,oe,[o(`div`,se,[o(`div`,ce,[o(`span`,le,x(S(r)(`stage.chat.message.character-name.core-system`)),1)]),l[0]||=o(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),S(a)&&t===S(i).length-1?(h(),c(`div`,ue)):(h(),c(`div`,{key:1,class:`markdown-content break-words text-violet-500`,text:`base {if(!e||!e.trim())return;let t=v.getProviderConfig(y.value);await V(e,{chatProvider:v.getProviderInstance(y.value),model:D.value,providerConfig:t})}});async function J(){if(!(!i.value.trim()||p.value))try{let e=v.getProviderConfig(y.value);await V(i.value,{chatProvider:v.getProviderInstance(y.value),model:D.value,providerConfig:e})}catch(e){U.value.pop(),U.value.push({role:`error`,content:e.message})}}let{destroy:Y,start:X}=A(B,{onSpeechStart:()=>{a.value=!0},onVADMisfire:()=>{a.value=!1},onSpeechEnd:e=>{a.value=!1,Z(e.buffer)},auto:!1});async function Z(e){await W.resume();let t=await ie(e,W.sampleRate);K({type:`generate`,data:{audio:t,language:`en`}})}async function Q(e){let t=e.target,n=M.value.find(e=>e.deviceId===t.value);if(!n){R.value=void 0;return}R.value=n}return P(z,async e=>{e===`false`&&(Y(),q())}),P(d,async e=>{e&&await L()}),m(()=>{X()}),H(async()=>{i.value=``}),(n,m)=>(h(),c(`div`,we,[o(`fieldset`,Te,[o(`label`,{class:f([u.value===`chat`?`bg-primary-100 dark:bg-primary-900`:`bg-white dark:bg-primary-950`,u.value===`chat`?`text-primary-500 dark:text-primary-500`:``,{"transition-colors-none ":S(k)}]),flex:`~ row`,checked:u.value===`chat`,"aria-checked":u.value===`chat`,border:`solid 2 primary-100 dark:primary-900`,text:`primary-300 hover:primary-500 dark:primary-300/50 dark:hover:primary-500`,transition:`all duration-250 ease-in-out`,"cursor-pointer":``,"items-center":``,"gap-1":``,"rounded-lg":``,"px-2":``},[I(o(`input`,{"onUpdate:modelValue":m[0]||=e=>u.value=e,type:`radio`,name:`tab`,value:`chat`,hidden:``},null,512),[[ne,u.value]]),m[5]||=o(`div`,{"i-solar:dialog-2-bold-duotone":``,text:`2xl`,transform:`translate-y--2`},null,-1),o(`div`,De,[o(`span`,Oe,x(S(G)(`stage.chat.tabs.chat`)),1)])],10,Ee)]),o(`div`,ke,[o(`div`,Ae,[l(Ce,{"h-full":``,"flex-1":``,"p-4":``,w:`full`,"max-h":`i.value=e,placeholder:S(G)(`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:f({"transition-colors-none placeholder:transition-colors-none":S(k)}),onSubmit:J,onCompositionstart:m[2]||=e=>p.value=!0,onCompositionend:m[3]||=e=>p.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])])]),o(`div`,Me,[o(`div`,Ne,[l(S(r),null,{default:F(()=>[d.value?(h(),c(`fieldset`,Pe,[(h(!0),c(t,null,_(S(M),(e,t)=>(h(),c(`label`,{key:t,class:`[&_div_span]:dark:hover:bg-cyan-300 [&_div_span]:dark:hover:bg-cyan-900`},[o(`input`,{type:`radio`,name:`audioInput`,value:e.deviceId,hidden:``,onChange:Q},null,40,Fe),o(`div`,Ie,[o(`div`,Le,[e.deviceId===S(B)?(h(),c(`div`,Re)):s(``,!0)]),o(`span`,{"inline-block":``,class:f([e.deviceId===S(B)?`cyan-400 dark:text-white`:`cyan-400/50 dark:text-white/50`]),transition:`all duration-250 ease-in-out`},x(e.label),3)])]))),128))])):s(``,!0)]),_:1}),o(`label`,{bg:`complementary-100 hover:complementary-200 dark:complementary-800 dark:hover:complementary-700`,transition:`all duration-250 ease-in-out`,class:f({"transition-colors-none":S(k)}),text:`complementary-400`,"h-fit":``,flex:``,"cursor-pointer":``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-full":``,"px-4":``,"py-2":``},[I(o(`input`,{"onUpdate:modelValue":m[4]||=e=>d.value=e,type:`checkbox`,hidden:``},null,512),[[te,d.value]]),m[6]||=o(`div`,{"i-solar:microphone-2-bold-duotone":``},null,-1),o(`div`,null,[a.value?(h(),c(`span`,Be,`Listening...`)):(h(),c(`span`,ze,x(S(G)(`settings.microphone`)),1))])],2)])])]))}}),He=Ve;const Ue={py:`1`,flex:`~ col`,rounded:`lg`,"overflow-hidden":``},We={key:0,flex:``,mr:`12`},Ge={flex:`~ col`,shadow:`md violet-200/20 dark:none`,"min-w-20":``,"rounded-lg":``,"px-3":``,"py-2":``,h:`unset {d().then(()=>{a.update(),l.value=a.height.value})}),p(async()=>{d().then(()=>{a.update(),l.value=a.height.value})}),(e,a)=>{let l=y(`auto-animate`);return h(),c(`div`,Ue,[a[2]||=o(`div`,{"flex-1":``},null,-1),I((h(),c(`div`,{ref_key:`chatHistoryRef`,ref:n,"h-full":``,"w-full":``,"max-h":`40%`,flex:`~ col`,"overflow-scroll":``,class:`chat-history`},[a[1]||=o(`div`,{"flex-1":``},null,-1),(h(!0),c(t,null,_(S(i),(e,t)=>(h(),c(`div`,{key:t,"mb-2":``},[e.role===`error`?(h(),c(`div`,We,[o(`div`,Ge,[o(`div`,Ke,[o(`div`,qe,[o(`span`,Je,x(S(r)(`stage.chat.message.character-name.core-system`)),1)]),a[0]||=o(`div`,{"i-solar:danger-triangle-bold-duotone":``,"text-violet-500":``},null,-1)]),e.content?(h(),c(`div`,{key:0,class:`markdown-content`,text:`base {r.value=!0},onVADMisfire:()=>{r.value=!1},onSpeechEnd:e=>{r.value=!1,M(e)},auto:!1});function M(e){alert(`Transcription is not implemented yet`)}return P(d,async e=>{e===`false`&&D()}),y(async()=>{n.value=``}),m(()=>{k()}),(t,r)=>(h(),c(`div`,ct,[l(st,{absolute:``,"left-0":``,"top-0":``,transform:`translate-y-[-100%]`,h:`80dvh`,"w-full":``}),o(`div`,lt,[l(S(e),{modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,placeholder:S(C)(`stage.message`),border:`solid 2 primary-50 dark:primary-950/10`,text:`primary-500 hover:primary-600 dark:primary-100 dark:hover:primary-200 placeholder:primary-400 placeholder:hover:primary-500 placeholder:dark:primary-300 placeholder:dark:hover:primary-400`,bg:`primary-50/50 dark:primary-950/70`,"max-h":`[10lh]`,"min-h":`[2lh]`,"w-full":``,"resize-none":``,"overflow-y-scroll":``,"rounded-xl":``,"p-3":``,"font-medium":``,"outline-none":``,"backdrop-blur-md":``,transition:`all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out`,class:f({"transition-colors-none placeholder:transition-colors-none":S(_)}),onSubmit:E,onCompositionstart:r[1]||=e=>i.value=!0,onCompositionend:r[2]||=e=>i.value=!1},null,8,[`modelValue`,`placeholder`,`class`])])]))}}),dt=ut;const ft={class:`relative`},pt={absolute:``,"left-0":``,"right-0":``,"top-0":``,"w-full":``,"overflow-hidden":``};var mt=u({__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),s=g(t.fillColor),l=g(t.direction),u=g(t.movementDirection);function d(e,t,n,r,i){let a=[],o=Math.ceil(e/r),s=o*r,c=1,l=i===`up`?n:t-n;a.push(`M 0 ${l}`);let u=Math.PI*2/r;for(let e=0;e<=s;e+=c){let t=n*Math.sin(u*e),r=i===`up`?l-t:l+t;a.push(`L ${e} ${r}`)}let d=i===`up`?t:0;return a.push(`L ${s} ${d}`),a.push(`L 0 ${d} Z`),a.join(` `)}let f=a(()=>n.value+r.value*2),m=a(()=>{let e=` `;return`url(data:image/svg+xml;base64,${btoa(e)})`});return P(()=>[t.height,t.amplitude,t.waveLength,t.fillColor,t.direction,t.movementDirection],()=>{n.value=t.height,r.value=t.amplitude,i.value=t.waveLength,s.value=t.fillColor,l.value=t.direction,u.value=t.movementDirection},{immediate:!0}),(e,t)=>(h(),c(`div`,ft,[v(e.$slots,`default`,{},void 0,!0),o(`div`,pt,[o(`div`,{class:`wave`,style:p({background:s.value,height:`${f.value}px`,maskImage:m.value,WebkitMaskImage:m.value,"--wave-translate":`${-i.value}px`,"--animation-duration":`${i.value/e.animationSpeed}s`,"animation-direction":u.value===`left`?`normal`:`reverse`})},null,4)])]))}}),ht=i(mt,[[`__scopeId`,`data-v-9da730fe`]]);export{ht as AnimatedWave_default,V as Cross_default,G as Header_default,He as InteractiveArea_default,dt as MobileInteractiveArea_default}; \ No newline at end of file diff --git a/assets/Basic-DNa_H8OA.js b/assets/Basic-eHldbasx.js similarity index 83% rename from assets/Basic-DNa_H8OA.js rename to assets/Basic-eHldbasx.js index 2fa049381b248fa4d4cd089b2a738dc76de7a070..a3ac1ac45202a6865c9c0489edec4be2be232eb7 100644 --- a/assets/Basic-DNa_H8OA.js +++ b/assets/Basic-eHldbasx.js @@ -1 +1 @@ -import{createElementBlock as e,defineComponent as t,mergeModels as n,normalizeStyle as r,openBlock as i,ref as a,useModel as o,vModelText as s,watch as c,withDirectives as l}from"./index-jH8PbleY.js";var u=t({__name:`Basic`,props:{modelValue:{default:``},modelModifiers:{}},emits:n([`submit`],[`update:modelValue`]),setup(t,{emit:n}){let u=n,d=o(t,`modelValue`),f=a(),p=a(`auto`);function m(e){e.code===`Enter`&&!e.shiftKey&&(e.preventDefault(),u(`submit`,d.value))}return c(d,()=>{p.value=`auto`,requestAnimationFrame(()=>{f.value&&(p.value=`${f.value.scrollHeight}px`)})},{immediate:!0}),(t,n)=>l((i(),e(`textarea`,{ref_key:`textareaRef`,ref:f,"onUpdate:modelValue":n[0]||=e=>d.value=e,style:r({height:p.value}),onKeydown:m},null,36)),[[s,d.value]])}}),d=u;export{d as Basic_default}; \ No newline at end of file +import{createElementBlock as e,defineComponent as t,mergeModels as n,normalizeStyle as r,openBlock as i,ref as a,useModel as o,vModelText as s,watch as c,withDirectives as l}from"./index-C2W4XoWv.js";var u=t({__name:`Basic`,props:{modelValue:{default:``},modelModifiers:{}},emits:n([`submit`],[`update:modelValue`]),setup(t,{emit:n}){let u=n,d=o(t,`modelValue`),f=a(),p=a(`auto`);function m(e){e.code===`Enter`&&!e.shiftKey&&(e.preventDefault(),u(`submit`,d.value))}return c(d,()=>{p.value=`auto`,requestAnimationFrame(()=>{f.value&&(p.value=`${f.value.scrollHeight}px`)})},{immediate:!0}),(t,n)=>l((i(),e(`textarea`,{ref_key:`textareaRef`,ref:f,"onUpdate:modelValue":n[0]||=e=>d.value=e,style:r({height:p.value}),onKeydown:m},null,36)),[[s,d.value]])}}),d=u;export{d as Basic_default}; \ No newline at end of file diff --git a/assets/CardCreate-BTJxDbUa.js b/assets/CardCreate-BTJxDbUa.js deleted file mode 100644 index 5ca7d0754d7f55bb932fced8b9f087782044ba3e..0000000000000000000000000000000000000000 --- a/assets/CardCreate-BTJxDbUa.js +++ /dev/null @@ -1 +0,0 @@ -import{CardCreate_default as e}from"./CardCreate-CpYrVqCw.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreate-CpYrVqCw.js b/assets/CardCreate-Rv0-Zj2Y.js similarity index 93% rename from assets/CardCreate-CpYrVqCw.js rename to assets/CardCreate-Rv0-Zj2Y.js index 52b3b6f782873acb03145f88ef17d9151d516b31..a10f404bcbfab69815d4fe300e67bfee13fc4a58 100644 --- a/assets/CardCreate-CpYrVqCw.js +++ b/assets/CardCreate-Rv0-Zj2Y.js @@ -1 +1 @@ -import{createBaseVNode as e,createElementBlock as t,defineComponent as n,openBlock as r,toDisplayString as i,unref as a,useI18n as o}from"./index-jH8PbleY.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}=o();return(n,o)=>(r(),t(`div`,s,[o[0]||=e(`div`,{"i-solar:add-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),e(`p`,c,i(a(l)(`settings.pages.card.create_card`)),1)]))}}),u=l;export{u as CardCreate_default}; \ No newline at end of file +import{createBaseVNode as e,createElementBlock as t,defineComponent as n,openBlock as r,toDisplayString as i,unref as a,useI18n as o}from"./index-C2W4XoWv.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}=o();return(n,o)=>(r(),t(`div`,s,[o[0]||=e(`div`,{"i-solar:add-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),e(`p`,c,i(a(l)(`settings.pages.card.create_card`)),1)]))}}),u=l;export{u as CardCreate_default}; \ No newline at end of file diff --git a/assets/CardCreate-_WmCZI0F.js b/assets/CardCreate-_WmCZI0F.js new file mode 100644 index 0000000000000000000000000000000000000000..bb85c568902540753dfbfc3c49d4e7b01bc9a9ec --- /dev/null +++ b/assets/CardCreate-_WmCZI0F.js @@ -0,0 +1 @@ +import{CardCreate_default as e}from"./CardCreate-Rv0-Zj2Y.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreationDialog-BeDyQku3.js b/assets/CardCreationDialog-BeDyQku3.js new file mode 100644 index 0000000000000000000000000000000000000000..a340bda1cfdd8edc598d3c28c3f97aeffcfcfae8 --- /dev/null +++ b/assets/CardCreationDialog-BeDyQku3.js @@ -0,0 +1 @@ +import"./dist-CM_LBh2l.js";import{CardCreationDialog_default as e}from"./CardCreationDialog-e-ER1OFp.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardCreationDialog-tb5aI5z2.js b/assets/CardCreationDialog-e-ER1OFp.js similarity index 98% rename from assets/CardCreationDialog-tb5aI5z2.js rename to assets/CardCreationDialog-e-ER1OFp.js index fb3ed406e1c241e98da1b2cfd45e3f4e0d75b5c4..7d5d5b0be6d37b9cfedce2f402ca81344145d1f4 100644 --- a/assets/CardCreationDialog-tb5aI5z2.js +++ b/assets/CardCreationDialog-e-ER1OFp.js @@ -1,3 +1,3 @@ -import{$u as e,Bu as t,Iv as n,Pu as r,nu as i}from"./dist-BXbmJYBn.js";import{Button_default as a,FieldInput_default as o,FieldValues_default as s,Fragment as c,__commonJSMin as l,__plugin_vue_export_helper_default as u,__toESM as d,computed as f,createBaseVNode as p,createBlock as m,createCommentVNode as h,createElementBlock as g,createTextVNode as _,createVNode as v,defineComponent as y,isRef as b,mergeModels as x,normalizeClass as S,openBlock as C,ref as w,renderList as ee,toDisplayString as T,toRaw as te,unref as E,useAiriCardStore as D,useI18n as O,useModel as k,withCtx as A}from"./index-jH8PbleY.js";var j=l((exports,t)=>{function n(e){return e.toLowerCase()}t.exports=n}),M=l((exports,t)=>{var n=j();t.exports=n}),N=l((exports,t)=>{function n(e,t,n){return e.replace(t,n)}t.exports=n}),P=l((exports,t)=>{var n=N();t.exports=n}),F=l((exports,t)=>{var n=String.prototype.trim!==void 0;t.exports=n}),I=l((exports,t)=>{var n=String.prototype.trim;t.exports=n}),L=l((exports,t)=>{var n=I(),r=` +import{$u as e,Bu as t,Iv as n,Pu as r,nu as i}from"./dist-CM_LBh2l.js";import{Button_default as a,FieldInput_default as o,FieldValues_default as s,Fragment as c,__commonJSMin as l,__plugin_vue_export_helper_default as u,__toESM as d,computed as f,createBaseVNode as p,createBlock as m,createCommentVNode as h,createElementBlock as g,createTextVNode as _,createVNode as v,defineComponent as y,isRef as b,mergeModels as x,normalizeClass as S,openBlock as C,ref as w,renderList as ee,toDisplayString as T,toRaw as te,unref as E,useAiriCardStore as D,useI18n as O,useModel as k,withCtx as A}from"./index-C2W4XoWv.js";var j=l((exports,t)=>{function n(e){return e.toLowerCase()}t.exports=n}),M=l((exports,t)=>{var n=j();t.exports=n}),N=l((exports,t)=>{function n(e,t,n){return e.replace(t,n)}t.exports=n}),P=l((exports,t)=>{var n=N();t.exports=n}),F=l((exports,t)=>{var n=String.prototype.trim!==void 0;t.exports=n}),I=l((exports,t)=>{var n=String.prototype.trim;t.exports=n}),L=l((exports,t)=>{var n=I(),r=` \r \f\v            \u2028\u2029   `,i=`᠎`;function a(){return n.call(r)===``&&n.call(i)===i}t.exports=a}),R=l((exports,t)=>{var n=P(),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}),z=l((exports,t)=>{var n=I();function r(e){return n.call(e)}t.exports=r}),B=l((exports,t)=>{var n=F(),r=L(),i=R(),a=z(),o;o=n&&r()?a:i,t.exports=o}),V=l((exports,t)=>{var n=M(),r=P(),i=B(),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}),H=l((exports,t)=>{var n=V();t.exports=n}),U=d(H());const W={class:`w-full flex flex-col gap-5`},G={class:`mt-4`},K={class:`border-b border-neutral-200 dark:border-neutral-700`},ne={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=y({__name:`CardCreationDialog`,props:x({modelValue:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:x([`update:modelValue`],[`update:modelValue`]),setup(l,{emit:u}){let d=u,y=k(l,`modelValue`),{t:x}=O(),j=D(),M=w(``),N=[{id:`identity`,label:x(`settings.pages.card.creation.identity`),icon:`i-solar:emoji-funny-square-bold-duotone`},{id:`behavior`,label:x(`settings.pages.card.creation.behavior`),icon:`i-solar:chat-round-line-bold-duotone`},{id:`settings`,label:x(`settings.pages.card.creation.settings`),icon:`i-solar:settings-bold-duotone`}],P=f({get:()=>{var e;return N.find(e=>e.id===M.value)?M.value:(e=N[0])?.id||``},set:e=>{M.value=e}}),F=w(!1),I=w(``);function L(e){let t=te(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 F.value=!0,I.value=x(`settings.pages.card.creation.errors.posthistoryinstructions`),!1}else return F.value=!0,I.value=x(`settings.pages.card.creation.errors.systemprompt`),!1;else return F.value=!0,I.value=x(`settings.pages.card.creation.errors.scenario`),!1;else return F.value=!0,I.value=x(`settings.pages.card.creation.errors.personality`),!1;else return F.value=!0,I.value=x(`settings.pages.card.creation.errors.description`),!1;else return F.value=!0,I.value=x(`settings.pages.card.creation.errors.version`),!1;else return F.value=!0,I.value=x(`settings.pages.card.creation.errors.name`),!1;return F.value=!1,j.addCard(t),y.value=!1,!0}let R=w({name:x(`settings.pages.card.creation.defaults.name`),nickname:void 0,version:`1.0`,description:``,notes:void 0,personality:x(`settings.pages.card.creation.defaults.personality`),scenario:x(`settings.pages.card.creation.defaults.scenario`),systemPrompt:x(`settings.pages.card.creation.defaults.systemprompt`),postHistoryInstructions:x(`settings.pages.card.creation.defaults.posthistoryinstructions`),greetings:[],messageExample:[]});function z(e,t){return f({get:()=>R.value[e]??``,set:n=>{let r=n.trim();R.value[e]=r.length>0?t?t(r):r:``}})}let B=z(`name`,e=>(0,U.default)(e)),V=z(`nickname`),H=z(`description`),q=z(`notes`),J=z(`personality`),Y=z(`scenario`),X=f({get:()=>R.value.greetings??[],set:e=>{R.value.greetings=e||[]}}),Z=z(`version`),Q=z(`systemPrompt`),$=z(`postHistoryInstructions`);return(l,u)=>(C(),m(E(i),{open:y.value,"onUpdate:open":u[12]||=e=>d(`update:modelValue`,e)},{default:A(()=>[v(E(n),null,{default:A(()=>[v(E(e),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),v(E(r),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide 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 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:A(()=>[p(`div`,W,[v(E(t),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:A(()=>[_(T(E(x)(`settings.pages.card.create_card`)),1)]),_:1}),p(`div`,G,[p(`div`,K,[p(`div`,ne,[(C(),g(c,null,ee(N,e=>p(`button`,{key:e.id,class:S([`px-4 py-2 text-sm font-medium`,[P.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=>P.value=e.id},[p(`div`,ie,[p(`div`,{class:S(e.icon)},null,2),_(` `+T(e.label),1)])],10,re)),64))])])]),F.value?(C(),g(`div`,ae,[p(`p`,oe,T(I.value),1)])):h(``,!0),P.value===`identity`?(C(),g(`div`,se,[p(`p`,ce,T(E(x)(`settings.pages.card.creation.fields_info.subtitle`)),1),p(`div`,le,[v(E(o),{modelValue:E(B),"onUpdate:modelValue":u[0]||=e=>b(B)?B.value=e:null,label:E(x)(`settings.pages.card.creation.name`),description:E(x)(`settings.pages.card.creation.fields_info.name`),required:!0},null,8,[`modelValue`,`label`,`description`]),v(E(o),{modelValue:E(V),"onUpdate:modelValue":u[1]||=e=>b(V)?V.value=e:null,label:E(x)(`settings.pages.card.creation.nickname`),description:E(x)(`settings.pages.card.creation.fields_info.nickname`)},null,8,[`modelValue`,`label`,`description`]),v(E(o),{modelValue:E(H),"onUpdate:modelValue":u[2]||=e=>b(H)?H.value=e:null,label:E(x)(`settings.pages.card.creation.description`),"single-line":!1,required:!0,description:E(x)(`settings.pages.card.creation.fields_info.description`)},null,8,[`modelValue`,`label`,`description`]),v(E(o),{modelValue:E(q),"onUpdate:modelValue":u[3]||=e=>b(q)?q.value=e:null,label:E(x)(`settings.pages.card.creator_notes`),"single-line":!1,description:E(x)(`settings.pages.card.creation.fields_info.notes`)},null,8,[`modelValue`,`label`,`description`])])])):P.value===`behavior`?(C(),g(`div`,ue,[p(`div`,de,[v(E(o),{modelValue:E(J),"onUpdate:modelValue":u[4]||=e=>b(J)?J.value=e:null,label:E(x)(`settings.pages.card.personality`),"single-line":!1,required:!0,description:E(x)(`settings.pages.card.creation.fields_info.personality`)},null,8,[`modelValue`,`label`,`description`]),v(E(o),{modelValue:E(Y),"onUpdate:modelValue":u[5]||=e=>b(Y)?Y.value=e:null,label:E(x)(`settings.pages.card.scenario`),"single-line":!1,required:!0,description:E(x)(`settings.pages.card.creation.fields_info.scenario`)},null,8,[`modelValue`,`label`,`description`]),v(E(s),{modelValue:X.value,"onUpdate:modelValue":u[6]||=e=>X.value=e,label:E(x)(`settings.pages.card.creation.greetings`),description:E(x)(`settings.pages.card.creation.fields_info.greetings`)},null,8,[`modelValue`,`label`,`description`])])])):P.value===`settings`?(C(),g(`div`,fe,[p(`div`,pe,[v(E(o),{modelValue:E(Q),"onUpdate:modelValue":u[7]||=e=>b(Q)?Q.value=e:null,label:E(x)(`settings.pages.card.systemprompt`),"single-line":!1,required:!0,description:E(x)(`settings.pages.card.creation.fields_info.systemprompt`)},null,8,[`modelValue`,`label`,`description`]),v(E(o),{modelValue:E($),"onUpdate:modelValue":u[8]||=e=>b($)?$.value=e:null,label:E(x)(`settings.pages.card.posthistoryinstructions`),"single-line":!1,required:!0,description:E(x)(`settings.pages.card.creation.fields_info.posthistoryinstructions`)},null,8,[`modelValue`,`label`,`description`]),v(E(o),{modelValue:E(Z),"onUpdate:modelValue":u[9]||=e=>b(Z)?Z.value=e:null,label:E(x)(`settings.pages.card.creation.version`),required:!0,description:E(x)(`settings.pages.card.creation.fields_info.version`)},null,8,[`modelValue`,`label`,`description`])])])):h(``,!0),p(`div`,me,[v(E(a),{variant:`secondary`,icon:`i-solar:undo-left-bold-duotone`,label:E(x)(`settings.pages.card.cancel`),disabled:!1,onClick:u[10]||=e=>y.value=!1},null,8,[`label`]),v(E(a),{variant:`primary`,icon:`i-solar:check-circle-bold-duotone`,label:E(x)(`settings.pages.card.creation.create`),disabled:!1,onClick:u[11]||=e=>L(R.value)},null,8,[`label`])])])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),J=u(q,[[`__scopeId`,`data-v-c19882e9`]]);export{J as CardCreationDialog_default}; \ No newline at end of file diff --git a/assets/CardCreationDialog-tFZ-suF6.js b/assets/CardCreationDialog-tFZ-suF6.js deleted file mode 100644 index fefd70de962dd2aca061d843991ef3fdd66d9a3f..0000000000000000000000000000000000000000 --- a/assets/CardCreationDialog-tFZ-suF6.js +++ /dev/null @@ -1 +0,0 @@ -import"./dist-BXbmJYBn.js";import{CardCreationDialog_default as e}from"./CardCreationDialog-tb5aI5z2.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardDetailDialog-CMawK2d5.js b/assets/CardDetailDialog-CMawK2d5.js deleted file mode 100644 index e2f8830602d01c526b304947ba2cbd1ca6d610f0..0000000000000000000000000000000000000000 --- a/assets/CardDetailDialog-CMawK2d5.js +++ /dev/null @@ -1 +0,0 @@ -import"./dist-BXbmJYBn.js";import"./DeleteCardDialog-CRL7GCHS.js";import{CardDetailDialog_default as e}from"./CardDetailDialog-Dj8_PtWM.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardDetailDialog-DS3Wn753.js b/assets/CardDetailDialog-DS3Wn753.js new file mode 100644 index 0000000000000000000000000000000000000000..0750448e66ccfc2390cf4ac8eadd4babba3ca141 --- /dev/null +++ b/assets/CardDetailDialog-DS3Wn753.js @@ -0,0 +1 @@ +import"./dist-CM_LBh2l.js";import"./DeleteCardDialog-CMHp54f3.js";import{CardDetailDialog_default as e}from"./CardDetailDialog-Dx3dwrQO.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardDetailDialog-Dj8_PtWM.js b/assets/CardDetailDialog-Dx3dwrQO.js similarity index 97% rename from assets/CardDetailDialog-Dj8_PtWM.js rename to assets/CardDetailDialog-Dx3dwrQO.js index c4f99d929bed4b5dbad40fdeb5d2fff80cb0a3ee..57b1b4bc333694230d185205652bfe9c7ffc1e53 100644 --- a/assets/CardDetailDialog-Dj8_PtWM.js +++ b/assets/CardDetailDialog-Dx3dwrQO.js @@ -1 +1 @@ -import{$u as e,Bu as t,Iv as n,Pu as r,nu as i}from"./dist-BXbmJYBn.js";import{Button_default as ee,Fragment as a,computed as o,createBaseVNode as s,createCommentVNode as c,createElementBlock as l,createTextVNode as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,ref as h,renderList as g,storeToRefs as te,toDisplayString as _,unref as v,useAiriCardStore as ne,useI18n as re,withCtx as y}from"./index-jH8PbleY.js";import{DeleteCardDialog_default as b}from"./DeleteCardDialog-CRL7GCHS.js";const ie={key:0,class:`w-full flex flex-col gap-5`},ae={flex:`~ col`,"gap-3":``},oe={flex:`~ row`,"items-center":``,"justify-between":``},se={flex:`~ row`,"items-center":``,"gap-2":``},ce={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`},le={"mt-1":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ue={"font-medium":``},de={flex:`~ row`,"gap-2":``},fe={class:`mt-4`},pe={class:`border-b border-neutral-200 dark:border-neutral-700`},me={class:`flex justify-center -mb-px sm:justify-start space-x-1`},he=[`onClick`],ge={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=f({__name:`CardDetailDialog`,props:{modelValue:{type:Boolean},cardId:{}},emits:[`update:modelValue`],setup(f,{emit:R}){let z=f,B=R,{t:V}=re(),H=ne(),{removeCard:xe}=H,{activeCardId:U}=te(H),W=o(()=>{if(z.cardId)return H.getCard(z.cardId)}),G=o(()=>{var e,t,n,r;if(!W.value||!(!((e=W.value.extensions)==null||(e=e.airi)==null)&&e.modules))return{consciousness:``,speech:``,voice:``};let i=W.value.extensions.airi.modules;return{consciousness:(t=i.consciousness)?.model||``,speech:(n=i.speech)?.model||``,voice:(r=i.speech)?.voice_id||``}}),K=o(()=>W.value?{personality:W.value.personality,scenario:W.value.scenario,systemPrompt:W.value.systemPrompt,postHistoryInstructions:W.value.postHistoryInstructions}:{}),q=o(()=>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=o(()=>{var e,t;let n=[];return(e=W.value)?.description&&n.push({id:`description`,label:V(`settings.pages.card.description_label`),icon:`i-solar:document-text-linear`}),(t=W.value)?.notes&&n.push({id:`notes`,label:V(`settings.pages.card.creator_notes`),icon:`i-solar:notes-linear`}),Object.values(K.value).some(e=>!!e)&&n.push({id:`character`,label:V(`settings.pages.card.character`),icon:`i-solar:user-rounded-linear`}),n.push({id:`modules`,label:V(`settings.pages.card.modules`),icon:`i-solar:tuning-square-linear`}),n}),$=o({get:()=>{var e;return Q.value.find(e=>e.id===Z.value)?Z.value:(e=Q.value[0])?.id||``},set:e=>{Z.value=e}});return(o,f)=>{var h;return m(),l(a,null,[d(v(i),{open:o.modelValue,"onUpdate:open":f[0]||=e=>B(`update:modelValue`,e)},{default:y(()=>[d(v(n),null,{default:y(()=>[d(v(e),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),d(v(r),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide 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 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:y(()=>[W.value?(m(),l(`div`,ie,[s(`div`,ae,[s(`div`,oe,[s(`div`,null,[s(`div`,se,[d(v(t),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:y(()=>[u(_(W.value.name),1)]),_:1}),q.value?(m(),l(`div`,ce,[f[3]||=s(`div`,{"i-solar:check-circle-bold-duotone":``,"text-xs":``},null,-1),u(` `+_(v(V)(`settings.pages.card.active_badge`)),1)])):c(``,!0)]),s(`div`,le,[u(` v`+_(W.value.version)+` `,1),W.value.creator?(m(),l(a,{key:0},[u(` · `+_(v(V)(`settings.pages.card.created_by`))+` `,1),s(`span`,ue,_(W.value.creator),1)],64)):c(``,!0)])]),s(`div`,de,[d(v(ee),{variant:`primary`,icon:q.value?`i-solar:check-circle-bold-duotone`:`i-solar:play-circle-broken`,label:q.value?v(V)(`settings.pages.card.active`):v(V)(`settings.pages.card.activate`),disabled:q.value,class:p({"animate-pulse":J.value}),onClick:Se},null,8,[`icon`,`label`,`disabled`,`class`])])]),s(`div`,fe,[s(`div`,pe,[s(`div`,me,[(m(!0),l(a,null,g(Q.value,e=>(m(),l(`button`,{key:e.id,class:p([`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},[s(`div`,ge,[s(`div`,{class:p(e.icon)},null,2),u(` `+_(e.label),1)])],10,he))),128))])])]),$.value===`notes`&&W.value.notes?(m(),l(`div`,x,[s(`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)])):c(``,!0),$.value===`description`&&W.value.description?(m(),l(`div`,C,[s(`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)])):c(``,!0),$.value===`character`&&Object.values(K.value).some(e=>!!e)?(m(),l(`div`,T,[s(`div`,E,[(m(!0),l(a,null,g(K.value,(e,t)=>(m(),l(a,{key:t},[e?(m(),l(`div`,D,[s(`h2`,O,_(v(V)(`settings.pages.card.${t.toLowerCase()}`)),1),s(`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)])):c(``,!0)],64))),128))])])):c(``,!0),$.value===`modules`?(m(),l(`div`,A,[s(`div`,j,[s(`div`,M,[s(`span`,N,[f[4]||=s(`div`,{"i-lucide:ghost":``},null,-1),u(` `+_(v(V)(`settings.pages.card.consciousness.model`)),1)]),s(`div`,P,_(G.value.consciousness??`default`),1)]),s(`div`,F,[s(`span`,I,[f[5]||=s(`div`,{"i-lucide:mic":``},null,-1),u(` `+_(v(V)(`settings.pages.card.speech.model`)),1)]),s(`div`,L,_(G.value.speech??`default`),1)]),s(`div`,_e,[s(`span`,ve,[f[6]||=s(`div`,{"i-lucide:music":``},null,-1),u(` `+_(v(V)(`settings.pages.card.speech.voice`)),1)]),s(`div`,ye,_(G.value.voice??`default`),1)])])])):c(``,!0)])])):(m(),l(`div`,be,[f[7]||=s(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),u(` `+_(v(V)(`settings.pages.card.card_not_found`)),1)]))]),_:1})]),_:1})]),_:1},8,[`open`]),d(b,{modelValue:X.value,"onUpdate:modelValue":f[1]||=e=>X.value=e,"card-name":(h=W.value)?.name,onConfirm:Ce,onCancel:f[2]||=e=>X.value=!1},null,8,[`modelValue`,`card-name`])],64)}}}),z=R;export{z as CardDetailDialog_default}; \ No newline at end of file +import{$u as e,Bu as t,Iv as n,Pu as r,nu as i}from"./dist-CM_LBh2l.js";import{Button_default as ee,Fragment as a,computed as o,createBaseVNode as s,createCommentVNode as c,createElementBlock as l,createTextVNode as u,createVNode as d,defineComponent as f,normalizeClass as p,openBlock as m,ref as h,renderList as g,storeToRefs as te,toDisplayString as _,unref as v,useAiriCardStore as ne,useI18n as re,withCtx as y}from"./index-C2W4XoWv.js";import{DeleteCardDialog_default as b}from"./DeleteCardDialog-CMHp54f3.js";const ie={key:0,class:`w-full flex flex-col gap-5`},ae={flex:`~ col`,"gap-3":``},oe={flex:`~ row`,"items-center":``,"justify-between":``},se={flex:`~ row`,"items-center":``,"gap-2":``},ce={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`},le={"mt-1":``,"text-sm":``,"text-neutral-500":``,"dark:text-neutral-400":``},ue={"font-medium":``},de={flex:`~ row`,"gap-2":``},fe={class:`mt-4`},pe={class:`border-b border-neutral-200 dark:border-neutral-700`},me={class:`flex justify-center -mb-px sm:justify-start space-x-1`},he=[`onClick`],ge={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=f({__name:`CardDetailDialog`,props:{modelValue:{type:Boolean},cardId:{}},emits:[`update:modelValue`],setup(f,{emit:R}){let z=f,B=R,{t:V}=re(),H=ne(),{removeCard:xe}=H,{activeCardId:U}=te(H),W=o(()=>{if(z.cardId)return H.getCard(z.cardId)}),G=o(()=>{var e,t,n,r;if(!W.value||!(!((e=W.value.extensions)==null||(e=e.airi)==null)&&e.modules))return{consciousness:``,speech:``,voice:``};let i=W.value.extensions.airi.modules;return{consciousness:(t=i.consciousness)?.model||``,speech:(n=i.speech)?.model||``,voice:(r=i.speech)?.voice_id||``}}),K=o(()=>W.value?{personality:W.value.personality,scenario:W.value.scenario,systemPrompt:W.value.systemPrompt,postHistoryInstructions:W.value.postHistoryInstructions}:{}),q=o(()=>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=o(()=>{var e,t;let n=[];return(e=W.value)?.description&&n.push({id:`description`,label:V(`settings.pages.card.description_label`),icon:`i-solar:document-text-linear`}),(t=W.value)?.notes&&n.push({id:`notes`,label:V(`settings.pages.card.creator_notes`),icon:`i-solar:notes-linear`}),Object.values(K.value).some(e=>!!e)&&n.push({id:`character`,label:V(`settings.pages.card.character`),icon:`i-solar:user-rounded-linear`}),n.push({id:`modules`,label:V(`settings.pages.card.modules`),icon:`i-solar:tuning-square-linear`}),n}),$=o({get:()=>{var e;return Q.value.find(e=>e.id===Z.value)?Z.value:(e=Q.value[0])?.id||``},set:e=>{Z.value=e}});return(o,f)=>{var h;return m(),l(a,null,[d(v(i),{open:o.modelValue,"onUpdate:open":f[0]||=e=>B(`update:modelValue`,e)},{default:y(()=>[d(v(n),null,{default:y(()=>[d(v(e),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50 backdrop-blur-sm`}),d(v(r),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide 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 dark:border-neutral-700 dark:bg-neutral-800 sm:p-6`},{default:y(()=>[W.value?(m(),l(`div`,ie,[s(`div`,ae,[s(`div`,oe,[s(`div`,null,[s(`div`,se,[d(v(t),{"text-2xl":``,"font-normal":``,class:`from-primary-500 to-primary-400 bg-gradient-to-r bg-clip-text text-transparent`},{default:y(()=>[u(_(W.value.name),1)]),_:1}),q.value?(m(),l(`div`,ce,[f[3]||=s(`div`,{"i-solar:check-circle-bold-duotone":``,"text-xs":``},null,-1),u(` `+_(v(V)(`settings.pages.card.active_badge`)),1)])):c(``,!0)]),s(`div`,le,[u(` v`+_(W.value.version)+` `,1),W.value.creator?(m(),l(a,{key:0},[u(` · `+_(v(V)(`settings.pages.card.created_by`))+` `,1),s(`span`,ue,_(W.value.creator),1)],64)):c(``,!0)])]),s(`div`,de,[d(v(ee),{variant:`primary`,icon:q.value?`i-solar:check-circle-bold-duotone`:`i-solar:play-circle-broken`,label:q.value?v(V)(`settings.pages.card.active`):v(V)(`settings.pages.card.activate`),disabled:q.value,class:p({"animate-pulse":J.value}),onClick:Se},null,8,[`icon`,`label`,`disabled`,`class`])])]),s(`div`,fe,[s(`div`,pe,[s(`div`,me,[(m(!0),l(a,null,g(Q.value,e=>(m(),l(`button`,{key:e.id,class:p([`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},[s(`div`,ge,[s(`div`,{class:p(e.icon)},null,2),u(` `+_(e.label),1)])],10,he))),128))])])]),$.value===`notes`&&W.value.notes?(m(),l(`div`,x,[s(`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)])):c(``,!0),$.value===`description`&&W.value.description?(m(),l(`div`,C,[s(`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)])):c(``,!0),$.value===`character`&&Object.values(K.value).some(e=>!!e)?(m(),l(`div`,T,[s(`div`,E,[(m(!0),l(a,null,g(K.value,(e,t)=>(m(),l(a,{key:t},[e?(m(),l(`div`,D,[s(`h2`,O,_(v(V)(`settings.pages.card.${t.toLowerCase()}`)),1),s(`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)])):c(``,!0)],64))),128))])])):c(``,!0),$.value===`modules`?(m(),l(`div`,A,[s(`div`,j,[s(`div`,M,[s(`span`,N,[f[4]||=s(`div`,{"i-lucide:ghost":``},null,-1),u(` `+_(v(V)(`settings.pages.card.consciousness.model`)),1)]),s(`div`,P,_(G.value.consciousness??`default`),1)]),s(`div`,F,[s(`span`,I,[f[5]||=s(`div`,{"i-lucide:mic":``},null,-1),u(` `+_(v(V)(`settings.pages.card.speech.model`)),1)]),s(`div`,L,_(G.value.speech??`default`),1)]),s(`div`,_e,[s(`span`,ve,[f[6]||=s(`div`,{"i-lucide:music":``},null,-1),u(` `+_(v(V)(`settings.pages.card.speech.voice`)),1)]),s(`div`,ye,_(G.value.voice??`default`),1)])])])):c(``,!0)])])):(m(),l(`div`,be,[f[7]||=s(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),u(` `+_(v(V)(`settings.pages.card.card_not_found`)),1)]))]),_:1})]),_:1})]),_:1},8,[`open`]),d(b,{modelValue:X.value,"onUpdate:modelValue":f[1]||=e=>X.value=e,"card-name":(h=W.value)?.name,onConfirm:Ce,onCancel:f[2]||=e=>X.value=!1},null,8,[`modelValue`,`card-name`])],64)}}}),z=R;export{z as CardDetailDialog_default}; \ No newline at end of file diff --git a/assets/CardListItem-CX1YhwU5.js b/assets/CardListItem-CX1YhwU5.js deleted file mode 100644 index 83db594b31f3adaaa245bd77f99251c449298f0d..0000000000000000000000000000000000000000 --- a/assets/CardListItem-CX1YhwU5.js +++ /dev/null @@ -1 +0,0 @@ -import{CardListItem_default as e}from"./CardListItem-DL1eLTL8.js";export{e as default}; \ No newline at end of file diff --git a/assets/CardListItem-DL1eLTL8.js b/assets/CardListItem-D2mGsTNO.js similarity index 96% rename from assets/CardListItem-DL1eLTL8.js rename to assets/CardListItem-D2mGsTNO.js index 91796eea65016455139d99b54e2888376ccc9744..e58c3775c8a6af8b37244b830905f0ad77f351fb 100644 --- a/assets/CardListItem-DL1eLTL8.js +++ b/assets/CardListItem-D2mGsTNO.js @@ -1 +1 @@ -import{CursorFloating_default as e,createBaseVNode as t,createBlock as n,createCommentVNode as r,createElementBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,toDisplayString as c,unref as l,withCtx as u,withModifiers as d}from"./index-jH8PbleY.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=a({__name:`CardListItem`,props:{id:{},name:{},description:{},isActive:{type:Boolean},isSelected:{type:Boolean},version:{},consciousnessModel:{},voiceModel:{}},emits:[`select`,`activate`,`delete`],setup(a,{emit:C}){let w=C;return(a,C)=>(s(),n(l(e),{relative:``,"min-h-120px":``,flex:`~ col`,"cursor-pointer":``,"overflow-hidden":``,"rounded-xl":``,class:o([a.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:u(()=>[t(`div`,f,[t(`div`,p,[t(`h3`,m,c(a.name),1),a.isActive?(s(),i(`div`,h,C[3]||=[t(`div`,{"i-solar:check-circle-bold-duotone":``,"text-sm":``},null,-1)])):r(``,!0)]),a.description?(s(),i(`p`,g,c(a.description),1)):r(``,!0),t(`div`,_,[t(`div`,null,`v`+c(a.version),1),t(`div`,v,[t(`div`,y,[C[4]||=t(`div`,{"i-lucide:ghost":``,"text-xs":``},null,-1),t(`span`,null,c(a.consciousnessModel),1)]),t(`div`,b,[C[5]||=t(`div`,{"i-lucide:mic":``,"text-xs":``},null,-1),t(`span`,null,c(a.voiceModel),1)])])])]),t(`div`,x,[t(`button`,{"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,disabled:a.isActive,onClick:C[0]||=d(e=>w(`activate`),[`stop`])},[t(`div`,{class:o([a.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),a.id===`default`?r(``,!0):(s(),i(`button`,{key:0,"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,onClick:C[1]||=d(e=>w(`delete`),[`stop`])},C[6]||=[t(`div`,{"i-solar:trash-bin-trash-linear":``,text:`neutral-500 dark:neutral-400`},null,-1)]))])]),_:1},8,[`class`]))}}),w=C;export{w as CardListItem_default}; \ No newline at end of file +import{CursorFloating_default as e,createBaseVNode as t,createBlock as n,createCommentVNode as r,createElementBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,toDisplayString as c,unref as l,withCtx as u,withModifiers as d}from"./index-C2W4XoWv.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=a({__name:`CardListItem`,props:{id:{},name:{},description:{},isActive:{type:Boolean},isSelected:{type:Boolean},version:{},consciousnessModel:{},voiceModel:{}},emits:[`select`,`activate`,`delete`],setup(a,{emit:C}){let w=C;return(a,C)=>(s(),n(l(e),{relative:``,"min-h-120px":``,flex:`~ col`,"cursor-pointer":``,"overflow-hidden":``,"rounded-xl":``,class:o([a.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:u(()=>[t(`div`,f,[t(`div`,p,[t(`h3`,m,c(a.name),1),a.isActive?(s(),i(`div`,h,C[3]||=[t(`div`,{"i-solar:check-circle-bold-duotone":``,"text-sm":``},null,-1)])):r(``,!0)]),a.description?(s(),i(`p`,g,c(a.description),1)):r(``,!0),t(`div`,_,[t(`div`,null,`v`+c(a.version),1),t(`div`,v,[t(`div`,y,[C[4]||=t(`div`,{"i-lucide:ghost":``,"text-xs":``},null,-1),t(`span`,null,c(a.consciousnessModel),1)]),t(`div`,b,[C[5]||=t(`div`,{"i-lucide:mic":``,"text-xs":``},null,-1),t(`span`,null,c(a.voiceModel),1)])])])]),t(`div`,x,[t(`button`,{"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,disabled:a.isActive,onClick:C[0]||=d(e=>w(`activate`),[`stop`])},[t(`div`,{class:o([a.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),a.id===`default`?r(``,!0):(s(),i(`button`,{key:0,"rounded-lg":``,"p-1.5":``,"transition-colors":``,hover:`bg-neutral-200 dark:bg-neutral-700/50`,onClick:C[1]||=d(e=>w(`delete`),[`stop`])},C[6]||=[t(`div`,{"i-solar:trash-bin-trash-linear":``,text:`neutral-500 dark:neutral-400`},null,-1)]))])]),_:1},8,[`class`]))}}),w=C;export{w as CardListItem_default}; \ No newline at end of file diff --git a/assets/CardListItem-HblUJ8mm.js b/assets/CardListItem-HblUJ8mm.js new file mode 100644 index 0000000000000000000000000000000000000000..5dcc5107eafd5304fe4d78fcfcddfb54e36afca9 --- /dev/null +++ b/assets/CardListItem-HblUJ8mm.js @@ -0,0 +1 @@ +import{CardListItem_default as e}from"./CardListItem-D2mGsTNO.js";export{e as default}; \ No newline at end of file diff --git a/assets/ColorPalette-RTtXS1UD.js b/assets/ColorPalette-D44Srp6v.js similarity index 90% rename from assets/ColorPalette-RTtXS1UD.js rename to assets/ColorPalette-D44Srp6v.js index df219c6339d2f025c4808895f547113f425faab4..06418effc768b7ccfc7be30490e3c0ec2bfd10ca 100644 --- a/assets/ColorPalette-RTtXS1UD.js +++ b/assets/ColorPalette-D44Srp6v.js @@ -1 +1 @@ -import{Gg as e,Hg as t,Ug as n,Wg as r,jg as i,qg as a}from"./dist-BXbmJYBn.js";import{DEFAULT_THEME_COLORS_HUE as o,Fragment as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createTextVNode as d,createVNode as f,defineComponent as p,normalizeClass as m,normalizeStyle as h,openBlock as g,renderList as _,toDisplayString as v,unref as y,useSettings as b,withCtx as x}from"./index-jH8PbleY.js";const S={key:0,flex:``,"gap-2":``};var C=p({__name:`ColorPalette`,props:{colors:{}},setup(p){let C=b();return(p,b)=>p.colors.length?(g(),u(`div`,S,[(g(!0),u(s,null,_(p.colors,({hex:s,name:l})=>(g(),c(y(t),{key:s||`default`},{default:x(()=>[f(y(r),null,{default:x(()=>[f(y(i),{transition:`all ease-in-out duration-250`,"size-6":``,"cursor-pointer":``,"rounded-full":``,"bg-primary-500":``,style:h(s?{background:s}:{"--chromatic-hue":y(o)}),class:m(y(C).isColorSelectedForPrimary(s)?`scale-150 mx-1`:`hover:scale-110`),onClick:e=>y(C).applyPrimaryColorFrom(s)},null,8,[`style`,`class`,`onClick`]),f(y(a),null,{default:x(()=>[f(y(n),{bg:`white dark:neutral-800`,"rounded-lg":``,"px-3":``,"py-1.5":``,"text-sm":``,"shadow-md":``},{default:x(()=>[d(v(l)+` `,1),f(y(e),{"fill-white":``,"dark:fill-neutral-800":``})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])):l(``,!0)}}),w=C;export{w as ColorPalette_default}; \ No newline at end of file +import{Gg as e,Hg as t,Ug as n,Wg as r,jg as i,qg as a}from"./dist-CM_LBh2l.js";import{DEFAULT_THEME_COLORS_HUE as o,Fragment as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createTextVNode as d,createVNode as f,defineComponent as p,normalizeClass as m,normalizeStyle as h,openBlock as g,renderList as _,toDisplayString as v,unref as y,useSettings as b,withCtx as x}from"./index-C2W4XoWv.js";const S={key:0,flex:``,"gap-2":``};var C=p({__name:`ColorPalette`,props:{colors:{}},setup(p){let C=b();return(p,b)=>p.colors.length?(g(),u(`div`,S,[(g(!0),u(s,null,_(p.colors,({hex:s,name:l})=>(g(),c(y(t),{key:s||`default`},{default:x(()=>[f(y(r),null,{default:x(()=>[f(y(i),{transition:`all ease-in-out duration-250`,"size-6":``,"cursor-pointer":``,"rounded-full":``,"bg-primary-500":``,style:h(s?{background:s}:{"--chromatic-hue":y(o)}),class:m(y(C).isColorSelectedForPrimary(s)?`scale-150 mx-1`:`hover:scale-110`),onClick:e=>y(C).applyPrimaryColorFrom(s)},null,8,[`style`,`class`,`onClick`]),f(y(a),null,{default:x(()=>[f(y(n),{bg:`white dark:neutral-800`,"rounded-lg":``,"px-3":``,"py-1.5":``,"text-sm":``,"shadow-md":``},{default:x(()=>[d(v(l)+` `,1),f(y(e),{"fill-white":``,"dark:fill-neutral-800":``})]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))])):l(``,!0)}}),w=C;export{w as ColorPalette_default}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-BU_LHgTA.js b/assets/DeleteCardDialog-BU_LHgTA.js new file mode 100644 index 0000000000000000000000000000000000000000..179ba05a45031f93eb534d5bb8a09d0e87705e49 --- /dev/null +++ b/assets/DeleteCardDialog-BU_LHgTA.js @@ -0,0 +1 @@ +import"./dist-CM_LBh2l.js";import{DeleteCardDialog_default as e}from"./DeleteCardDialog-CMHp54f3.js";export{e as default}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-CRL7GCHS.js b/assets/DeleteCardDialog-CMHp54f3.js similarity index 93% rename from assets/DeleteCardDialog-CRL7GCHS.js rename to assets/DeleteCardDialog-CMHp54f3.js index 66da0b25b4cb4cf25f3e382c8ea034018f87eca1..b455e3c35883bd38b2fb1d9512bdc925374d8dcc 100644 --- a/assets/DeleteCardDialog-CRL7GCHS.js +++ b/assets/DeleteCardDialog-CMHp54f3.js @@ -1 +1 @@ -import{Av as e,Fv as t,Mv as n,Nv as r,Ov as i,Tv as a,Vv as o,kv as s}from"./dist-BXbmJYBn.js";import{Button_default as c,createBaseVNode as l,createBlock as u,createTextVNode as d,createVNode as f,defineComponent as p,openBlock as m,toDisplayString as h,unref as g,useI18n as _,withCtx as v}from"./index-jH8PbleY.js";const y={class:`flex flex-row justify-end gap-3`};var b=p({__name:`DeleteCardDialog`,props:{modelValue:{type:Boolean},cardName:{}},emits:[`update:modelValue`,`confirm`,`cancel`],setup(p,{emit:b}){let x=b,{t:S}=_();function C(){x(`update:modelValue`,!1),x(`cancel`)}function w(){x(`update:modelValue`,!1),x(`confirm`)}return(p,_)=>(m(),u(g(a),{open:p.modelValue,"onUpdate:open":_[0]||=e=>x(`update:modelValue`,e)},{default:v(()=>[f(g(e),null,{default:v(()=>[f(g(s),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50`}),f(g(i),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide 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 dark:border-neutral-700 dark:bg-neutral-800`},{default:v(()=>[f(g(o),{class:`mb-4 text-xl font-normal`},{default:v(()=>[d(h(g(S)(`settings.pages.card.delete_card`)),1)]),_:1}),f(g(t),{class:`mb-6`},{default:v(()=>[d(h(g(S)(`settings.pages.card.delete_confirmation`))+` `,1),l(`b`,null,`"`+h(p.cardName||``)+`"`,1)]),_:1}),l(`div`,y,[f(g(n),{"as-child":``},{default:v(()=>[f(g(c),{variant:`secondary`,label:g(S)(`settings.pages.card.cancel`),onClick:C},null,8,[`label`])]),_:1}),f(g(r),{"as-child":``},{default:v(()=>[f(g(c),{variant:`danger`,label:g(S)(`settings.pages.card.delete`),onClick:w},null,8,[`label`])]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),x=b;export{x as DeleteCardDialog_default}; \ No newline at end of file +import{Av as e,Fv as t,Mv as n,Nv as r,Ov as i,Tv as a,Vv as o,kv as s}from"./dist-CM_LBh2l.js";import{Button_default as c,createBaseVNode as l,createBlock as u,createTextVNode as d,createVNode as f,defineComponent as p,openBlock as m,toDisplayString as h,unref as g,useI18n as _,withCtx as v}from"./index-C2W4XoWv.js";const y={class:`flex flex-row justify-end gap-3`};var b=p({__name:`DeleteCardDialog`,props:{modelValue:{type:Boolean},cardName:{}},emits:[`update:modelValue`,`confirm`,`cancel`],setup(p,{emit:b}){let x=b,{t:S}=_();function C(){x(`update:modelValue`,!1),x(`cancel`)}function w(){x(`update:modelValue`,!1),x(`confirm`)}return(p,_)=>(m(),u(g(a),{open:p.modelValue,"onUpdate:open":_[0]||=e=>x(`update:modelValue`,e)},{default:v(()=>[f(g(e),null,{default:v(()=>[f(g(s),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-100 bg-black/50`}),f(g(i),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide 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 dark:border-neutral-700 dark:bg-neutral-800`},{default:v(()=>[f(g(o),{class:`mb-4 text-xl font-normal`},{default:v(()=>[d(h(g(S)(`settings.pages.card.delete_card`)),1)]),_:1}),f(g(t),{class:`mb-6`},{default:v(()=>[d(h(g(S)(`settings.pages.card.delete_confirmation`))+` `,1),l(`b`,null,`"`+h(p.cardName||``)+`"`,1)]),_:1}),l(`div`,y,[f(g(n),{"as-child":``},{default:v(()=>[f(g(c),{variant:`secondary`,label:g(S)(`settings.pages.card.cancel`),onClick:C},null,8,[`label`])]),_:1}),f(g(r),{"as-child":``},{default:v(()=>[f(g(c),{variant:`danger`,label:g(S)(`settings.pages.card.delete`),onClick:w},null,8,[`label`])]),_:1})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),x=b;export{x as DeleteCardDialog_default}; \ No newline at end of file diff --git a/assets/DeleteCardDialog-DlOw911D.js b/assets/DeleteCardDialog-DlOw911D.js deleted file mode 100644 index 1aca7091a7755c655e1a5233bd204e87d432537d..0000000000000000000000000000000000000000 --- a/assets/DeleteCardDialog-DlOw911D.js +++ /dev/null @@ -1 +0,0 @@ -import"./dist-BXbmJYBn.js";import{DeleteCardDialog_default as e}from"./DeleteCardDialog-CRL7GCHS.js";export{e as default}; \ No newline at end of file diff --git a/assets/HeaderLink-DiAWfIpN.js b/assets/HeaderLink-B1-yiGgJ.js similarity index 92% rename from assets/HeaderLink-DiAWfIpN.js rename to assets/HeaderLink-B1-yiGgJ.js index 141d3acbf36722dbad93ad459421af14aebd00ef..098222a74c02df81ad349d194e8eb7120ffd5fda 100644 --- a/assets/HeaderLink-DiAWfIpN.js +++ b/assets/HeaderLink-B1-yiGgJ.js @@ -1 +1 @@ -import{RouterLink as e,__plugin_vue_export_helper_default as t,createBaseVNode as n,createBlock as r,createElementBlock as i,defineComponent as a,openBlock as o,unref as s,useDark as c,withCtx as l}from"./index-jH8PbleY.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(t){let a=c();return(t,c)=>(o(),r(s(e),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:l(()=>[s(a)?(o(),i(`img`,{key:0,src:s(u),"h-8":``,"w-8":``,class:`theme-colored`},null,8,f)):(o(),i(`img`,{key:1,src:s(d),"h-8":``,"w-8":``,class:`theme-colored`},null,8,p)),c[0]||=n(`div`,{"translate-y":`[2px]`,"font-bold":``,"font-quicksand":``},[n(`span`,null,`AIRI`)],-1)]),_:1,__:[0]}))}}),h=t(m,[[`__scopeId`,`data-v-36daa7fd`]]);export{h as HeaderLink_default}; \ No newline at end of file +import{RouterLink as e,__plugin_vue_export_helper_default as t,createBaseVNode as n,createBlock as r,createElementBlock as i,defineComponent as a,openBlock as o,unref as s,useDark as c,withCtx as l}from"./index-C2W4XoWv.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(t){let a=c();return(t,c)=>(o(),r(s(e),{to:`/`,flex:`~`,"items-center":``,"gap-2":``,"px-2":``,"text-nowrap":``,"text-2xl":``,"outline-none":``},{default:l(()=>[s(a)?(o(),i(`img`,{key:0,src:s(u),"h-8":``,"w-8":``,class:`theme-colored`},null,8,f)):(o(),i(`img`,{key:1,src:s(d),"h-8":``,"w-8":``,class:`theme-colored`},null,8,p)),c[0]||=n(`div`,{"translate-y":`[2px]`,"font-bold":``,"font-quicksand":``},[n(`span`,null,`AIRI`)],-1)]),_:1,__:[0]}))}}),h=t(m,[[`__scopeId`,`data-v-36daa7fd`]]);export{h as HeaderLink_default}; \ No newline at end of file diff --git a/assets/IconAnimation-7PF9WZf6.js b/assets/IconAnimation-yDQP_Ncr.js similarity index 95% rename from assets/IconAnimation-7PF9WZf6.js rename to assets/IconAnimation-yDQP_Ncr.js index 2f46e81a3adf8d48a714c6b91e06a5514b618b35..92957756543449f1c0e3978992160247f443b9de 100644 --- a/assets/IconAnimation-7PF9WZf6.js +++ b/assets/IconAnimation-yDQP_Ncr.js @@ -1 +1 @@ -import{computed as e,createBaseVNode as t,createElementBlock as n,defineComponent as r,normalizeClass as i,normalizeStyle as a,openBlock as o,ref as s,watch as c}from"./index-jH8PbleY.js";var l=r({__name:`IconAnimation`,props:{icon:{},iconSize:{},position:{},duration:{},started:{type:Boolean},textColor:{},isReverse:{type:Boolean},zIndex:{}},emits:[`animationEnded`],setup(r,{emit:l}){let u=r,d=l,f=s(!1);c(()=>u.started,e=>{e&&requestAnimationFrame(()=>{f.value=!0})});let p=e(()=>({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=s([]),h=s(!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(e,r)=>(o(),n(`div`,{"pointer-events-none":``,fixed:``,w:`100dvw`,h:`100dvh`,style:a({zIndex:h.value?e.zIndex:void 0})},[t(`div`,{fixed:``,"inset-0":``,"bg-primary-500":``,"transition-opacity":``,"ease-linear":``,style:a({opacity:p.value.opacity,transitionDuration:`${e.duration}ms`})},null,4),t(`div`,{fixed:``,"inset-0":``,"ease-in-out":``,style:a({width:`${p.value.size}rem`,height:`${p.value.size}rem`,transform:`translate(${p.value.position})`,transitionDuration:`${e.duration}ms`}),class:i([p.value.textColor,u.icon,{"transition-all":f.value}]),onTransitionend:g},null,38)],4))}}),u=l;export{u as IconAnimation_default}; \ No newline at end of file +import{computed as e,createBaseVNode as t,createElementBlock as n,defineComponent as r,normalizeClass as i,normalizeStyle as a,openBlock as o,ref as s,watch as c}from"./index-C2W4XoWv.js";var l=r({__name:`IconAnimation`,props:{icon:{},iconSize:{},position:{},duration:{},started:{type:Boolean},textColor:{},isReverse:{type:Boolean},zIndex:{}},emits:[`animationEnded`],setup(r,{emit:l}){let u=r,d=l,f=s(!1);c(()=>u.started,e=>{e&&requestAnimationFrame(()=>{f.value=!0})});let p=e(()=>({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=s([]),h=s(!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(e,r)=>(o(),n(`div`,{"pointer-events-none":``,fixed:``,w:`100dvw`,h:`100dvh`,style:a({zIndex:h.value?e.zIndex:void 0})},[t(`div`,{fixed:``,"inset-0":``,"bg-primary-500":``,"transition-opacity":``,"ease-linear":``,style:a({opacity:p.value.opacity,transitionDuration:`${e.duration}ms`})},null,4),t(`div`,{fixed:``,"inset-0":``,"ease-in-out":``,style:a({width:`${p.value.size}rem`,height:`${p.value.size}rem`,transform:`translate(${p.value.position})`,transitionDuration:`${e.duration}ms`}),class:i([p.value.textColor,u.icon,{"transition-all":f.value}]),onTransitionend:g},null,38)],4))}}),u=l;export{u as IconAnimation_default}; \ No newline at end of file diff --git a/assets/InputFile-D7EBb56X.js b/assets/InputFile-DO1WMP2V.js similarity index 96% rename from assets/InputFile-D7EBb56X.js rename to assets/InputFile-DO1WMP2V.js index 26a162a53868c05c74bcd9e526b86dbf95cc710d..f30090c2434219bbbe89989d98d039d6f847b649 100644 --- a/assets/InputFile-D7EBb56X.js +++ b/assets/InputFile-DO1WMP2V.js @@ -1 +1 @@ -import{createBaseVNode as e,createElementBlock as t,defineComponent as n,mergeModels as r,normalizeClass as i,openBlock as a,ref as o,refDebounced as s,renderSlot as c,unref as l,useModel as u}from"./index-jH8PbleY.js";const d=[`accept`,`multiple`],f={key:0,text:`center`,"text-sm":``},p={key:1,text:`center`,"text-sm":``};var m=n({__name:`InputFile`,props:r({accept:{},multiple:{type:Boolean}},{modelValue:{required:!1,default:()=>[]},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=u(n,`modelValue`),m=o(),h=o(!1),g=s(h,150);function _(e){let t=e.target;t.files&&t.files.length>0&&(m.value=t.files[0]),r.value=Array.from(t.files||[]),h.value=!1}return(n,o)=>(a(),t(`label`,{relative:``,class:i([`min-h-[120px] flex flex-col cursor-pointer items-center justify-center rounded-xl p-6`,[l(g)?`border-primary-400 dark:border-primary-600 hover:border-primary-300 dark:hover:border-primary-700`:`border-neutral-200 dark:border-neutral-700 hover:border-primary-300 dark:hover:border-primary-700`,l(g)?`bg-primary-50/5 dark:bg-primary-900/5`:`bg-white/60 dark:bg-black/30 hover:bg-white/80 dark:hover:bg-black/40`]]),border:`dashed 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`,onDragover:o[0]||=e=>h.value=!0,onDragleave:o[1]||=e=>h.value=!1},[e(`input`,{type:`file`,accept:n.accept,multiple:n.multiple,"cursor-pointer":``,class:`absolute inset-0 h-full w-full opacity-0`,onChange:_},null,40,d),c(n.$slots,`default`,{isDragging:l(g),firstFile:m.value,files:r.value},()=>[e(`div`,{class:i([`flex flex-col items-center`,[l(g)?`text-primary-500 dark:text-primary-400`:`text-neutral-400 dark:text-neutral-500`]])},[o[2]||=e(`div`,{"i-solar:upload-square-line-duotone":``,"mb-2":``,"text-5xl":``},null,-1),o[3]||=e(`p`,{"font-medium":``,text:`center lg`},` Upload `,-1),l(g)?(a(),t(`p`,f,` Release to upload `)):(a(),t(`p`,p,` Click or drag and drop a file here `))],2)])],34))}}),h=m;export{h as InputFile_default}; \ No newline at end of file +import{createBaseVNode as e,createElementBlock as t,defineComponent as n,mergeModels as r,normalizeClass as i,openBlock as a,ref as o,refDebounced as s,renderSlot as c,unref as l,useModel as u}from"./index-C2W4XoWv.js";const d=[`accept`,`multiple`],f={key:0,text:`center`,"text-sm":``},p={key:1,text:`center`,"text-sm":``};var m=n({__name:`InputFile`,props:r({accept:{},multiple:{type:Boolean}},{modelValue:{required:!1,default:()=>[]},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=u(n,`modelValue`),m=o(),h=o(!1),g=s(h,150);function _(e){let t=e.target;t.files&&t.files.length>0&&(m.value=t.files[0]),r.value=Array.from(t.files||[]),h.value=!1}return(n,o)=>(a(),t(`label`,{relative:``,class:i([`min-h-[120px] flex flex-col cursor-pointer items-center justify-center rounded-xl p-6`,[l(g)?`border-primary-400 dark:border-primary-600 hover:border-primary-300 dark:hover:border-primary-700`:`border-neutral-200 dark:border-neutral-700 hover:border-primary-300 dark:hover:border-primary-700`,l(g)?`bg-primary-50/5 dark:bg-primary-900/5`:`bg-white/60 dark:bg-black/30 hover:bg-white/80 dark:hover:bg-black/40`]]),border:`dashed 2`,transition:`all duration-300`,"cursor-pointer":``,"opacity-95":``,hover:`scale-100 opacity-100 shadow-md dark:shadow-lg`,onDragover:o[0]||=e=>h.value=!0,onDragleave:o[1]||=e=>h.value=!1},[e(`input`,{type:`file`,accept:n.accept,multiple:n.multiple,"cursor-pointer":``,class:`absolute inset-0 h-full w-full opacity-0`,onChange:_},null,40,d),c(n.$slots,`default`,{isDragging:l(g),firstFile:m.value,files:r.value},()=>[e(`div`,{class:i([`flex flex-col items-center`,[l(g)?`text-primary-500 dark:text-primary-400`:`text-neutral-400 dark:text-neutral-500`]])},[o[2]||=e(`div`,{"i-solar:upload-square-line-duotone":``,"mb-2":``,"text-5xl":``},null,-1),o[3]||=e(`p`,{"font-medium":``,text:`center lg`},` Upload `,-1),l(g)?(a(),t(`p`,f,` Release to upload `)):(a(),t(`p`,p,` Click or drag and drop a file here `))],2)])],34))}}),h=m;export{h as InputFile_default}; \ No newline at end of file diff --git a/assets/Scenes-_LhL7EaP.js b/assets/Scenes-BRyVCX-j.js similarity index 99% rename from assets/Scenes-_LhL7EaP.js rename to assets/Scenes-BRyVCX-j.js index 970151ee27d8eaa0d8bf84737ef8a4eef16188da..fafa51ba52cd1542396429190d182c48c8a4918b 100644 --- a/assets/Scenes-_LhL7EaP.js +++ b/assets/Scenes-BRyVCX-j.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-CY0qZjqC.js","assets/index-jH8PbleY.js","assets/index-BVsAPyPZ.css","assets/default-node-CDQZ5bF4.js","assets/import-url-browser-io2OM8yW.js","assets/import-url-browser-gqaMLBiE.js","assets/duckdb-mvp-DdkY0Vq-.js","assets/import-url-node-C1t8aMyx.js"])))=>i.map(i=>d[i]); -var e=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({});import{AdditiveBlending as t,AlwaysStencilFunc as n,AnimationMixer as r,Audio as i,AudioListener as a,AudioLoader as o,BackSide as s,Box2 as c,Box3 as l,BoxGeometry as u,BufferAttribute as d,BufferGeometry as f,CatmullRomCurve3 as p,ClampToEdgeWrapping as m,Collapsable_default as h,Color as g,CompressedTexture as _,CubeCamera as v,CubeReflectionMapping as y,CubeTextureLoader as b,CylinderGeometry as x,DataTexture as S,DataTextureLoader as C,DataUtils as w,DepthTexture as T,DoubleSide as E,EMOTION_EmotionMotionName_value as D,EMOTION_VRMExpressionName_value as O,EdgesGeometry as k,Ee as A,EmotionThinkMotionName as j,EquirectangularReflectionMapping as M,Euler as N,EventDispatcher as ee,ExtrudeGeometry as P,FileLoader as F,Float32BufferAttribute as I,FloatType as te,Fragment as L,FrontSide as R,Group as ne,HalfFloatType as z,InstancedBufferGeometry as re,InstancedInterleavedBuffer as ie,InstancedMesh as ae,InterleavedBuffer as oe,InterleavedBufferAttribute as se,InterpolateDiscrete as ce,InterpolateLinear as le,Ir as ue,Line as de,Line3 as fe,LineBasicMaterial as pe,LinearFilter as me,LinearMipmapLinearFilter as he,LinearMipmapNearestFilter as ge,Loader as _e,MOUSE as ve,Material as ye,MathUtils as be,Matrix3 as xe,Matrix4 as Se,Mesh as Ce,MeshBasicMaterial as we,MeshDepthMaterial as Te,MeshStandardMaterial as Ee,MirroredRepeatWrapping as De,Mn as Oe,NearestFilter as ke,NearestMipmapLinearFilter as Ae,NearestMipmapNearestFilter as je,NoToneMapping as Me,Object3D as Ne,OctahedronGeometry as Pe,OrthographicCamera as Fe,Path as Ie,PerspectiveCamera as Le,Plane as Re,PlaneGeometry as ze,PropertyBinding as Be,Q as Ve,QuadraticBezierCurve3 as He,Quaternion as Ue,REVISION as We,RGBAFormat as Ge,RawShaderMaterial as Ke,Ray as qe,Raycaster as Je,RepeatWrapping as Ye,ReplaceStencilOp as Xe,Scene as Ze,Screen_default as Qe,ShaderChunk as $e,ShaderMaterial as et,Shape as tt,ShapeGeometry as nt,ShapePath as rt,ShapeUtils as it,SkinnedMesh as at,Sphere as ot,SphereGeometry as st,Spherical as ct,TOUCH as lt,Texture as ut,TextureLoader as dt,TorusGeometry as ft,TransitionVertical_default as pt,Triangle as mt,Uniform as ht,UniformsLib as gt,UniformsUtils as _t,VRMUtils as vt,Vector2 as yt,Vector3 as B,Vector4 as bt,Vn as xt,WebGLCubeRenderTarget as St,WebGLRenderTarget as Ct,WebGLRenderer as wt,WireframeGeometry as Tt,__commonJSMin as Et,__export as Dt,__require as Ot,__toDynamicImportESM as kt,__toESM as At,__vitePreload as jt,breakpointsTailwind as Mt,clipFromVRMAnimation as Nt,computed as Pt,createBaseVNode as V,createBlock as Ft,createCommentVNode as It,createElementBlock as Lt,createVNode as Rt,defineComponent as zt,defu as Bt,dn as Vt,formatHex as Ht,generateSpeech as Ut,getCurrentInstance as Wt,getCurrentScope as Gt,io as Kt,isReactive as qt,isRef as Jt,lerp as Yt,llmInferenceEndToken as Xt,loadVRMAnimation as Zt,loadVrm as Qt,mergeProps as $t,nextTick as en,normalizeClass as tn,normalizeStyle as nn,onBeforeUnmount as rn,onMounted as an,onScopeDispose as on,onUnmounted as sn,openBlock as H,pe as cn,randFloat as ln,randomSaccadeInterval as un,reactive as dn,ref as U,render as fn,renderList as pn,renderSlot as mn,shallowReactive as hn,shallowRef as W,so as gn,storeToRefs as _n,toDisplayString as vn,toRaw as yn,toRef as bn,toRefs as xn,toValue as Sn,unref as G,useAttrs as Cn,useAudioContext as wn,useBlink as Tn,useBreakpoints as En,useChatStore as Dn,useDark as On,useDebounceFn as kn,useDelayMessageQueue as An,useEmotionsMessageQueue as jn,useI18n as Mn,useIdleEyeSaccades as Nn,useMessageContentQueue as Pn,useProvidersStore as Fn,useQueue as In,useSettings as Ln,useSlots as Rn,useSpeakingStore as zn,useSpeechStore as Bn,useVRMEmote as Vn,vModelCheckbox as Hn,watch as K,watchDebounced as Un,watchEffect as Wn,withAsyncContext as Gn,withCtx as Kn,withDirectives as qn}from"./index-jH8PbleY.js";import{getImportUrlBundles as Jn}from"./import-url-browser-gqaMLBiE.js";var Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi;let Ii,Li,Ri,zi;var Bi=zt({__name:`Range`,props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`,`mousedown`],setup(e,{emit:t}){let n=e,r=t,i=U(null);function a(e,t,n){return Math.min(Math.max(e,t),n)}function o(e){let t=e.toString();if(t.includes(`e-`))return Number.parseInt(t.split(`e-`)[1],10);let n=t.includes(`.`)?t.split(`.`)[1].length:0;return n}function s(e,t){let n=o(t),r=10**(n+3);return Number.parseFloat((e*r/r).toFixed(n))}let c=Pt(()=>s(a(n.modelValue,n.min,n.max),n.step)),l=Pt(()=>{let e=(c.value-n.min)/(n.max-n.min)*100;return{width:`${e}%`,backgroundSize:`${e}% 100%`}});function u(e){if(!i.value)return c.value;let t=i.value.getBoundingClientRect(),r=e.clientX-t.left,a=r/t.width,o=n.max-n.min,s=n.min+o*a,l=Math.round(s/n.step)*n.step;return Math.min(Math.max(l,n.min),n.max)}function d(e){if(n.disabled)return;let t=u(e);r(`update:modelValue`,t)}function f(e){if(n.disabled)return;e.preventDefault();let t=u(e);r(`update:modelValue`,t),window.addEventListener(`mousemove`,d),window.addEventListener(`mouseup`,p)}function p(e){window.removeEventListener(`mousemove`,d),window.removeEventListener(`mouseup`,p)}return sn(()=>{window.removeEventListener(`mousemove`,d),window.removeEventListener(`mouseup`,p)}),(e,t)=>(H(),Lt(`span`,{ref_key:`sliderRef`,ref:i,class:tn([`range-slider disabled:pointer-events-none disabled:cursor-default disabled:opacity-50`,{disabled:e.disabled}]),bg:`[#e6e1fc] dark:[#676085]`,"touch-action-none":``,relative:``,"inline-block":``,"w-full":``,"cursor-ew-resize":``,"rounded-sm":``,onMousedown:f},[V(`span`,{style:nn(l.value),bg:`[#cabeff] dark:[#4e34b9]`,relative:``,block:``,"rounded-sm":``,h:`[14px]`},null,4),V(`span`,{role:`slider`,class:`slider-thumb`,style:nn({left:`${(c.value-e.min)/(e.max-e.min)*100}%`}),absolute:``,"rounded-sm":``,w:`[1px]`,h:`[14px]`,bg:`neutral-100 dark:neutral-400`,top:`50%`,transform:`translate-x-[50%] translate-y-[-50%]`},null,4)],34))}}),Vi=Bi,Hi;(function(e){e[e.WEBGL_LEGACY=0]=`WEBGL_LEGACY`,e[e.WEBGL=1]=`WEBGL`,e[e.WEBGL2=2]=`WEBGL2`})(Hi||={});var Ui;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.WEBGL=1]=`WEBGL`,e[e.CANVAS=2]=`CANVAS`})(Ui||={});var Wi;(function(e){e[e.COLOR=16384]=`COLOR`,e[e.DEPTH=256]=`DEPTH`,e[e.STENCIL=1024]=`STENCIL`})(Wi||={});var Gi;(function(e){e[e.NORMAL=0]=`NORMAL`,e[e.ADD=1]=`ADD`,e[e.MULTIPLY=2]=`MULTIPLY`,e[e.SCREEN=3]=`SCREEN`,e[e.OVERLAY=4]=`OVERLAY`,e[e.DARKEN=5]=`DARKEN`,e[e.LIGHTEN=6]=`LIGHTEN`,e[e.COLOR_DODGE=7]=`COLOR_DODGE`,e[e.COLOR_BURN=8]=`COLOR_BURN`,e[e.HARD_LIGHT=9]=`HARD_LIGHT`,e[e.SOFT_LIGHT=10]=`SOFT_LIGHT`,e[e.DIFFERENCE=11]=`DIFFERENCE`,e[e.EXCLUSION=12]=`EXCLUSION`,e[e.HUE=13]=`HUE`,e[e.SATURATION=14]=`SATURATION`,e[e.COLOR=15]=`COLOR`,e[e.LUMINOSITY=16]=`LUMINOSITY`,e[e.NORMAL_NPM=17]=`NORMAL_NPM`,e[e.ADD_NPM=18]=`ADD_NPM`,e[e.SCREEN_NPM=19]=`SCREEN_NPM`,e[e.NONE=20]=`NONE`,e[e.SRC_OVER=0]=`SRC_OVER`,e[e.SRC_IN=21]=`SRC_IN`,e[e.SRC_OUT=22]=`SRC_OUT`,e[e.SRC_ATOP=23]=`SRC_ATOP`,e[e.DST_OVER=24]=`DST_OVER`,e[e.DST_IN=25]=`DST_IN`,e[e.DST_OUT=26]=`DST_OUT`,e[e.DST_ATOP=27]=`DST_ATOP`,e[e.ERASE=26]=`ERASE`,e[e.SUBTRACT=28]=`SUBTRACT`,e[e.XOR=29]=`XOR`})(Gi||={});var Ki;(function(e){e[e.POINTS=0]=`POINTS`,e[e.LINES=1]=`LINES`,e[e.LINE_LOOP=2]=`LINE_LOOP`,e[e.LINE_STRIP=3]=`LINE_STRIP`,e[e.TRIANGLES=4]=`TRIANGLES`,e[e.TRIANGLE_STRIP=5]=`TRIANGLE_STRIP`,e[e.TRIANGLE_FAN=6]=`TRIANGLE_FAN`})(Ki||={});var qi;(function(e){e[e.RGBA=6408]=`RGBA`,e[e.RGB=6407]=`RGB`,e[e.RG=33319]=`RG`,e[e.RED=6403]=`RED`,e[e.RGBA_INTEGER=36249]=`RGBA_INTEGER`,e[e.RGB_INTEGER=36248]=`RGB_INTEGER`,e[e.RG_INTEGER=33320]=`RG_INTEGER`,e[e.RED_INTEGER=36244]=`RED_INTEGER`,e[e.ALPHA=6406]=`ALPHA`,e[e.LUMINANCE=6409]=`LUMINANCE`,e[e.LUMINANCE_ALPHA=6410]=`LUMINANCE_ALPHA`,e[e.DEPTH_COMPONENT=6402]=`DEPTH_COMPONENT`,e[e.DEPTH_STENCIL=34041]=`DEPTH_STENCIL`})(qi||={});var Ji;(function(e){e[e.TEXTURE_2D=3553]=`TEXTURE_2D`,e[e.TEXTURE_CUBE_MAP=34067]=`TEXTURE_CUBE_MAP`,e[e.TEXTURE_2D_ARRAY=35866]=`TEXTURE_2D_ARRAY`,e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]=`TEXTURE_CUBE_MAP_POSITIVE_X`,e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]=`TEXTURE_CUBE_MAP_NEGATIVE_X`,e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]=`TEXTURE_CUBE_MAP_POSITIVE_Y`,e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]=`TEXTURE_CUBE_MAP_NEGATIVE_Y`,e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]=`TEXTURE_CUBE_MAP_POSITIVE_Z`,e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]=`TEXTURE_CUBE_MAP_NEGATIVE_Z`})(Ji||={});var Yi;(function(e){e[e.UNSIGNED_BYTE=5121]=`UNSIGNED_BYTE`,e[e.UNSIGNED_SHORT=5123]=`UNSIGNED_SHORT`,e[e.UNSIGNED_SHORT_5_6_5=33635]=`UNSIGNED_SHORT_5_6_5`,e[e.UNSIGNED_SHORT_4_4_4_4=32819]=`UNSIGNED_SHORT_4_4_4_4`,e[e.UNSIGNED_SHORT_5_5_5_1=32820]=`UNSIGNED_SHORT_5_5_5_1`,e[e.UNSIGNED_INT=5125]=`UNSIGNED_INT`,e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]=`UNSIGNED_INT_10F_11F_11F_REV`,e[e.UNSIGNED_INT_2_10_10_10_REV=33640]=`UNSIGNED_INT_2_10_10_10_REV`,e[e.UNSIGNED_INT_24_8=34042]=`UNSIGNED_INT_24_8`,e[e.UNSIGNED_INT_5_9_9_9_REV=35902]=`UNSIGNED_INT_5_9_9_9_REV`,e[e.BYTE=5120]=`BYTE`,e[e.SHORT=5122]=`SHORT`,e[e.INT=5124]=`INT`,e[e.FLOAT=5126]=`FLOAT`,e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]=`FLOAT_32_UNSIGNED_INT_24_8_REV`,e[e.HALF_FLOAT=36193]=`HALF_FLOAT`})(Yi||={});var Xi;(function(e){e[e.FLOAT=0]=`FLOAT`,e[e.INT=1]=`INT`,e[e.UINT=2]=`UINT`})(Xi||={});var Zi;(function(e){e[e.NEAREST=0]=`NEAREST`,e[e.LINEAR=1]=`LINEAR`})(Zi||={});var Qi;(function(e){e[e.CLAMP=33071]=`CLAMP`,e[e.REPEAT=10497]=`REPEAT`,e[e.MIRRORED_REPEAT=33648]=`MIRRORED_REPEAT`})(Qi||={});var $i;(function(e){e[e.OFF=0]=`OFF`,e[e.POW2=1]=`POW2`,e[e.ON=2]=`ON`,e[e.ON_MANUAL=3]=`ON_MANUAL`})($i||={});var ea;(function(e){e[e.NPM=0]=`NPM`,e[e.UNPACK=1]=`UNPACK`,e[e.PMA=2]=`PMA`,e[e.NO_PREMULTIPLIED_ALPHA=0]=`NO_PREMULTIPLIED_ALPHA`,e[e.PREMULTIPLY_ON_UPLOAD=1]=`PREMULTIPLY_ON_UPLOAD`,e[e.PREMULTIPLY_ALPHA=2]=`PREMULTIPLY_ALPHA`,e[e.PREMULTIPLIED_ALPHA=2]=`PREMULTIPLIED_ALPHA`})(ea||={});var ta;(function(e){e[e.NO=0]=`NO`,e[e.YES=1]=`YES`,e[e.AUTO=2]=`AUTO`,e[e.BLEND=0]=`BLEND`,e[e.CLEAR=1]=`CLEAR`,e[e.BLIT=2]=`BLIT`})(ta||={});var na;(function(e){e[e.AUTO=0]=`AUTO`,e[e.MANUAL=1]=`MANUAL`})(na||={});var ra;(function(e){e.LOW=`lowp`,e.MEDIUM=`mediump`,e.HIGH=`highp`})(ra||={});var ia;(function(e){e[e.NONE=0]=`NONE`,e[e.SCISSOR=1]=`SCISSOR`,e[e.STENCIL=2]=`STENCIL`,e[e.SPRITE=3]=`SPRITE`,e[e.COLOR=4]=`COLOR`})(ia||={});var aa;(function(e){e[e.RED=1]=`RED`,e[e.GREEN=2]=`GREEN`,e[e.BLUE=4]=`BLUE`,e[e.ALPHA=8]=`ALPHA`})(aa||={});var oa;(function(e){e[e.NONE=0]=`NONE`,e[e.LOW=2]=`LOW`,e[e.MEDIUM=4]=`MEDIUM`,e[e.HIGH=8]=`HIGH`})(oa||={});var sa;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]=`ELEMENT_ARRAY_BUFFER`,e[e.ARRAY_BUFFER=34962]=`ARRAY_BUFFER`,e[e.UNIFORM_BUFFER=35345]=`UNIFORM_BUFFER`})(sa||={});var ca={createCanvas:function(e,t){var n=document.createElement(`canvas`);return n.width=e,n.height=t,n},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return(e=document.baseURI)??window.location.href},fetch:function(e,t){return fetch(e,t)}},la=/iPhone/i,ua=/iPod/i,da=/iPad/i,fa=/\biOS-universal(?:.+)Mac\b/i,pa=/\bAndroid(?:.+)Mobile\b/i,ma=/Android/i,ha=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ga=/Silk/i,_a=/Windows Phone/i,va=/\bWindows(?:.+)ARM\b/i,ya=/BlackBerry/i,ba=/BB10/i,xa=/Opera Mini/i,Sa=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ca=/Mobile(?:.+)Firefox\b/i,wa=function(e){return e!==void 0&&e.platform===`MacIntel`&&typeof e.maxTouchPoints==`number`&&e.maxTouchPoints>1&&typeof MSStream>`u`};function Ta(e){return function(t){return t.test(e)}}function Ea(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=Ta(n),a={apple:{phone:i(la)&&!i(_a),ipod:i(ua),tablet:!i(la)&&(i(da)||wa(t))&&!i(_a),universal:i(fa),device:(i(la)||i(ua)||i(da)||i(fa)||wa(t))&&!i(_a)},amazon:{phone:i(ha),tablet:!i(ha)&&i(ga),device:i(ha)||i(ga)},android:{phone:!i(_a)&&i(ha)||!i(_a)&&i(pa),tablet:!i(_a)&&!i(ha)&&!i(pa)&&(i(ga)||i(ma)),device:!i(_a)&&(i(ha)||i(ga)||i(pa)||i(ma))||i(/\bokhttp\b/i)},windows:{phone:i(_a),tablet:i(va),device:i(_a)||i(va)},other:{blackberry:i(ya),blackberry10:i(ba),opera:i(xa),firefox:i(Ca),chrome:i(Sa),device:i(ya)||i(ba)||i(xa)||i(Ca)||i(Sa)},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 Da=Ea(globalThis.navigator);function Oa(){return!Da.apple.device}function ka(e){var t=!0;if(Da.tablet||Da.phone){if(Da.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var r=parseInt(n[1],10);r<11&&(t=!1)}}if(Da.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 Aa={ADAPTER:ca,MIPMAP_TEXTURES:$i.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:oa.NONE,SPRITE_MAX_TEXTURES:ka(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:na.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Qi.CLAMP,SCALE_MODE:Zi.LINEAR,PRECISION_VERTEX:ra.HIGH,PRECISION_FRAGMENT:Da.apple.device?ra.HIGH:ra.MEDIUM,CAN_UPLOAD_SAME_BUFFER:Oa(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},ja=Et((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===N(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(N(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}}),Na=Et((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 N(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 ee(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function P(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.4.1`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:P,toUnicode:ee},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})(void 0)}),Pa=Et((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)}),Fa=Et((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}}),Ia=Et((exports,t)=>{var n=Fa(),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=Pa(),r=Ia(),i=Fa(),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 N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var ee=Object.keys(E);N=v?ee.sort(v):ee}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I0?b+y:``}}),Ra=Et((exports,t)=>{var n=Ia(),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=La(),r=Ra(),i=Fa();t.exports={formats:i,parse:r,stringify:n}}),Ba=Et(exports=>{var t=Na();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`,` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-DLPzVXxx.js","assets/index-C2W4XoWv.js","assets/index-B0_6uY9k.css","assets/default-node-JnkfFX6Q.js","assets/import-url-browser-io2OM8yW.js","assets/import-url-browser-gqaMLBiE.js","assets/duckdb-mvp-DdkY0Vq-.js","assets/import-url-node-C1t8aMyx.js"])))=>i.map(i=>d[i]); +var e=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({});import{AdditiveBlending as t,AlwaysStencilFunc as n,AnimationMixer as r,Audio as i,AudioListener as a,AudioLoader as o,BackSide as s,Box2 as c,Box3 as l,BoxGeometry as u,BufferAttribute as d,BufferGeometry as f,CatmullRomCurve3 as p,ClampToEdgeWrapping as m,Collapsable_default as h,Color as g,CompressedTexture as _,CubeCamera as v,CubeReflectionMapping as y,CubeTextureLoader as b,CylinderGeometry as x,DataTexture as S,DataTextureLoader as C,DataUtils as w,DepthTexture as T,DoubleSide as E,EMOTION_EmotionMotionName_value as D,EMOTION_VRMExpressionName_value as O,EdgesGeometry as k,Ee as A,EmotionThinkMotionName as j,EquirectangularReflectionMapping as M,Euler as N,EventDispatcher as ee,ExtrudeGeometry as P,FileLoader as F,Float32BufferAttribute as I,FloatType as te,Fragment as L,FrontSide as R,Group as ne,HalfFloatType as z,InstancedBufferGeometry as re,InstancedInterleavedBuffer as ie,InstancedMesh as ae,InterleavedBuffer as oe,InterleavedBufferAttribute as se,InterpolateDiscrete as ce,InterpolateLinear as le,Ir as ue,Line as de,Line3 as fe,LineBasicMaterial as pe,LinearFilter as me,LinearMipmapLinearFilter as he,LinearMipmapNearestFilter as ge,Loader as _e,MOUSE as ve,Material as ye,MathUtils as be,Matrix3 as xe,Matrix4 as Se,Mesh as Ce,MeshBasicMaterial as we,MeshDepthMaterial as Te,MeshStandardMaterial as Ee,MirroredRepeatWrapping as De,Mn as Oe,NearestFilter as ke,NearestMipmapLinearFilter as Ae,NearestMipmapNearestFilter as je,NoToneMapping as Me,Object3D as Ne,OctahedronGeometry as Pe,OrthographicCamera as Fe,Path as Ie,PerspectiveCamera as Le,Plane as Re,PlaneGeometry as ze,PropertyBinding as Be,Q as Ve,QuadraticBezierCurve3 as He,Quaternion as Ue,REVISION as We,RGBAFormat as Ge,RawShaderMaterial as Ke,Ray as qe,Raycaster as Je,RepeatWrapping as Ye,ReplaceStencilOp as Xe,Scene as Ze,Screen_default as Qe,ShaderChunk as $e,ShaderMaterial as et,Shape as tt,ShapeGeometry as nt,ShapePath as rt,ShapeUtils as it,SkinnedMesh as at,Sphere as ot,SphereGeometry as st,Spherical as ct,TOUCH as lt,Texture as ut,TextureLoader as dt,TorusGeometry as ft,TransitionVertical_default as pt,Triangle as mt,Uniform as ht,UniformsLib as gt,UniformsUtils as _t,VRMUtils as vt,Vector2 as yt,Vector3 as B,Vector4 as bt,Vn as xt,WebGLCubeRenderTarget as St,WebGLRenderTarget as Ct,WebGLRenderer as wt,WireframeGeometry as Tt,__commonJSMin as Et,__export as Dt,__require as Ot,__toDynamicImportESM as kt,__toESM as At,__vitePreload as jt,breakpointsTailwind as Mt,clipFromVRMAnimation as Nt,computed as Pt,createBaseVNode as V,createBlock as Ft,createCommentVNode as It,createElementBlock as Lt,createVNode as Rt,defineComponent as zt,defu as Bt,dn as Vt,formatHex as Ht,generateSpeech as Ut,getCurrentInstance as Wt,getCurrentScope as Gt,io as Kt,isReactive as qt,isRef as Jt,lerp as Yt,llmInferenceEndToken as Xt,loadVRMAnimation as Zt,loadVrm as Qt,mergeProps as $t,nextTick as en,normalizeClass as tn,normalizeStyle as nn,onBeforeUnmount as rn,onMounted as an,onScopeDispose as on,onUnmounted as sn,openBlock as H,pe as cn,randFloat as ln,randomSaccadeInterval as un,reactive as dn,ref as U,render as fn,renderList as pn,renderSlot as mn,shallowReactive as hn,shallowRef as W,so as gn,storeToRefs as _n,toDisplayString as vn,toRaw as yn,toRef as bn,toRefs as xn,toValue as Sn,unref as G,useAttrs as Cn,useAudioContext as wn,useBlink as Tn,useBreakpoints as En,useChatStore as Dn,useDark as On,useDebounceFn as kn,useDelayMessageQueue as An,useEmotionsMessageQueue as jn,useI18n as Mn,useIdleEyeSaccades as Nn,useMessageContentQueue as Pn,useProvidersStore as Fn,useQueue as In,useSettings as Ln,useSlots as Rn,useSpeakingStore as zn,useSpeechStore as Bn,useVRMEmote as Vn,vModelCheckbox as Hn,watch as K,watchDebounced as Un,watchEffect as Wn,withAsyncContext as Gn,withCtx as Kn,withDirectives as qn}from"./index-C2W4XoWv.js";import{getImportUrlBundles as Jn}from"./import-url-browser-gqaMLBiE.js";var Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi;let Ii,Li,Ri,zi;var Bi=zt({__name:`Range`,props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`,`mousedown`],setup(e,{emit:t}){let n=e,r=t,i=U(null);function a(e,t,n){return Math.min(Math.max(e,t),n)}function o(e){let t=e.toString();if(t.includes(`e-`))return Number.parseInt(t.split(`e-`)[1],10);let n=t.includes(`.`)?t.split(`.`)[1].length:0;return n}function s(e,t){let n=o(t),r=10**(n+3);return Number.parseFloat((e*r/r).toFixed(n))}let c=Pt(()=>s(a(n.modelValue,n.min,n.max),n.step)),l=Pt(()=>{let e=(c.value-n.min)/(n.max-n.min)*100;return{width:`${e}%`,backgroundSize:`${e}% 100%`}});function u(e){if(!i.value)return c.value;let t=i.value.getBoundingClientRect(),r=e.clientX-t.left,a=r/t.width,o=n.max-n.min,s=n.min+o*a,l=Math.round(s/n.step)*n.step;return Math.min(Math.max(l,n.min),n.max)}function d(e){if(n.disabled)return;let t=u(e);r(`update:modelValue`,t)}function f(e){if(n.disabled)return;e.preventDefault();let t=u(e);r(`update:modelValue`,t),window.addEventListener(`mousemove`,d),window.addEventListener(`mouseup`,p)}function p(e){window.removeEventListener(`mousemove`,d),window.removeEventListener(`mouseup`,p)}return sn(()=>{window.removeEventListener(`mousemove`,d),window.removeEventListener(`mouseup`,p)}),(e,t)=>(H(),Lt(`span`,{ref_key:`sliderRef`,ref:i,class:tn([`range-slider disabled:pointer-events-none disabled:cursor-default disabled:opacity-50`,{disabled:e.disabled}]),bg:`[#e6e1fc] dark:[#676085]`,"touch-action-none":``,relative:``,"inline-block":``,"w-full":``,"cursor-ew-resize":``,"rounded-sm":``,onMousedown:f},[V(`span`,{style:nn(l.value),bg:`[#cabeff] dark:[#4e34b9]`,relative:``,block:``,"rounded-sm":``,h:`[14px]`},null,4),V(`span`,{role:`slider`,class:`slider-thumb`,style:nn({left:`${(c.value-e.min)/(e.max-e.min)*100}%`}),absolute:``,"rounded-sm":``,w:`[1px]`,h:`[14px]`,bg:`neutral-100 dark:neutral-400`,top:`50%`,transform:`translate-x-[50%] translate-y-[-50%]`},null,4)],34))}}),Vi=Bi,Hi;(function(e){e[e.WEBGL_LEGACY=0]=`WEBGL_LEGACY`,e[e.WEBGL=1]=`WEBGL`,e[e.WEBGL2=2]=`WEBGL2`})(Hi||={});var Ui;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.WEBGL=1]=`WEBGL`,e[e.CANVAS=2]=`CANVAS`})(Ui||={});var Wi;(function(e){e[e.COLOR=16384]=`COLOR`,e[e.DEPTH=256]=`DEPTH`,e[e.STENCIL=1024]=`STENCIL`})(Wi||={});var Gi;(function(e){e[e.NORMAL=0]=`NORMAL`,e[e.ADD=1]=`ADD`,e[e.MULTIPLY=2]=`MULTIPLY`,e[e.SCREEN=3]=`SCREEN`,e[e.OVERLAY=4]=`OVERLAY`,e[e.DARKEN=5]=`DARKEN`,e[e.LIGHTEN=6]=`LIGHTEN`,e[e.COLOR_DODGE=7]=`COLOR_DODGE`,e[e.COLOR_BURN=8]=`COLOR_BURN`,e[e.HARD_LIGHT=9]=`HARD_LIGHT`,e[e.SOFT_LIGHT=10]=`SOFT_LIGHT`,e[e.DIFFERENCE=11]=`DIFFERENCE`,e[e.EXCLUSION=12]=`EXCLUSION`,e[e.HUE=13]=`HUE`,e[e.SATURATION=14]=`SATURATION`,e[e.COLOR=15]=`COLOR`,e[e.LUMINOSITY=16]=`LUMINOSITY`,e[e.NORMAL_NPM=17]=`NORMAL_NPM`,e[e.ADD_NPM=18]=`ADD_NPM`,e[e.SCREEN_NPM=19]=`SCREEN_NPM`,e[e.NONE=20]=`NONE`,e[e.SRC_OVER=0]=`SRC_OVER`,e[e.SRC_IN=21]=`SRC_IN`,e[e.SRC_OUT=22]=`SRC_OUT`,e[e.SRC_ATOP=23]=`SRC_ATOP`,e[e.DST_OVER=24]=`DST_OVER`,e[e.DST_IN=25]=`DST_IN`,e[e.DST_OUT=26]=`DST_OUT`,e[e.DST_ATOP=27]=`DST_ATOP`,e[e.ERASE=26]=`ERASE`,e[e.SUBTRACT=28]=`SUBTRACT`,e[e.XOR=29]=`XOR`})(Gi||={});var Ki;(function(e){e[e.POINTS=0]=`POINTS`,e[e.LINES=1]=`LINES`,e[e.LINE_LOOP=2]=`LINE_LOOP`,e[e.LINE_STRIP=3]=`LINE_STRIP`,e[e.TRIANGLES=4]=`TRIANGLES`,e[e.TRIANGLE_STRIP=5]=`TRIANGLE_STRIP`,e[e.TRIANGLE_FAN=6]=`TRIANGLE_FAN`})(Ki||={});var qi;(function(e){e[e.RGBA=6408]=`RGBA`,e[e.RGB=6407]=`RGB`,e[e.RG=33319]=`RG`,e[e.RED=6403]=`RED`,e[e.RGBA_INTEGER=36249]=`RGBA_INTEGER`,e[e.RGB_INTEGER=36248]=`RGB_INTEGER`,e[e.RG_INTEGER=33320]=`RG_INTEGER`,e[e.RED_INTEGER=36244]=`RED_INTEGER`,e[e.ALPHA=6406]=`ALPHA`,e[e.LUMINANCE=6409]=`LUMINANCE`,e[e.LUMINANCE_ALPHA=6410]=`LUMINANCE_ALPHA`,e[e.DEPTH_COMPONENT=6402]=`DEPTH_COMPONENT`,e[e.DEPTH_STENCIL=34041]=`DEPTH_STENCIL`})(qi||={});var Ji;(function(e){e[e.TEXTURE_2D=3553]=`TEXTURE_2D`,e[e.TEXTURE_CUBE_MAP=34067]=`TEXTURE_CUBE_MAP`,e[e.TEXTURE_2D_ARRAY=35866]=`TEXTURE_2D_ARRAY`,e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]=`TEXTURE_CUBE_MAP_POSITIVE_X`,e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]=`TEXTURE_CUBE_MAP_NEGATIVE_X`,e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]=`TEXTURE_CUBE_MAP_POSITIVE_Y`,e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]=`TEXTURE_CUBE_MAP_NEGATIVE_Y`,e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]=`TEXTURE_CUBE_MAP_POSITIVE_Z`,e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]=`TEXTURE_CUBE_MAP_NEGATIVE_Z`})(Ji||={});var Yi;(function(e){e[e.UNSIGNED_BYTE=5121]=`UNSIGNED_BYTE`,e[e.UNSIGNED_SHORT=5123]=`UNSIGNED_SHORT`,e[e.UNSIGNED_SHORT_5_6_5=33635]=`UNSIGNED_SHORT_5_6_5`,e[e.UNSIGNED_SHORT_4_4_4_4=32819]=`UNSIGNED_SHORT_4_4_4_4`,e[e.UNSIGNED_SHORT_5_5_5_1=32820]=`UNSIGNED_SHORT_5_5_5_1`,e[e.UNSIGNED_INT=5125]=`UNSIGNED_INT`,e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]=`UNSIGNED_INT_10F_11F_11F_REV`,e[e.UNSIGNED_INT_2_10_10_10_REV=33640]=`UNSIGNED_INT_2_10_10_10_REV`,e[e.UNSIGNED_INT_24_8=34042]=`UNSIGNED_INT_24_8`,e[e.UNSIGNED_INT_5_9_9_9_REV=35902]=`UNSIGNED_INT_5_9_9_9_REV`,e[e.BYTE=5120]=`BYTE`,e[e.SHORT=5122]=`SHORT`,e[e.INT=5124]=`INT`,e[e.FLOAT=5126]=`FLOAT`,e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]=`FLOAT_32_UNSIGNED_INT_24_8_REV`,e[e.HALF_FLOAT=36193]=`HALF_FLOAT`})(Yi||={});var Xi;(function(e){e[e.FLOAT=0]=`FLOAT`,e[e.INT=1]=`INT`,e[e.UINT=2]=`UINT`})(Xi||={});var Zi;(function(e){e[e.NEAREST=0]=`NEAREST`,e[e.LINEAR=1]=`LINEAR`})(Zi||={});var Qi;(function(e){e[e.CLAMP=33071]=`CLAMP`,e[e.REPEAT=10497]=`REPEAT`,e[e.MIRRORED_REPEAT=33648]=`MIRRORED_REPEAT`})(Qi||={});var $i;(function(e){e[e.OFF=0]=`OFF`,e[e.POW2=1]=`POW2`,e[e.ON=2]=`ON`,e[e.ON_MANUAL=3]=`ON_MANUAL`})($i||={});var ea;(function(e){e[e.NPM=0]=`NPM`,e[e.UNPACK=1]=`UNPACK`,e[e.PMA=2]=`PMA`,e[e.NO_PREMULTIPLIED_ALPHA=0]=`NO_PREMULTIPLIED_ALPHA`,e[e.PREMULTIPLY_ON_UPLOAD=1]=`PREMULTIPLY_ON_UPLOAD`,e[e.PREMULTIPLY_ALPHA=2]=`PREMULTIPLY_ALPHA`,e[e.PREMULTIPLIED_ALPHA=2]=`PREMULTIPLIED_ALPHA`})(ea||={});var ta;(function(e){e[e.NO=0]=`NO`,e[e.YES=1]=`YES`,e[e.AUTO=2]=`AUTO`,e[e.BLEND=0]=`BLEND`,e[e.CLEAR=1]=`CLEAR`,e[e.BLIT=2]=`BLIT`})(ta||={});var na;(function(e){e[e.AUTO=0]=`AUTO`,e[e.MANUAL=1]=`MANUAL`})(na||={});var ra;(function(e){e.LOW=`lowp`,e.MEDIUM=`mediump`,e.HIGH=`highp`})(ra||={});var ia;(function(e){e[e.NONE=0]=`NONE`,e[e.SCISSOR=1]=`SCISSOR`,e[e.STENCIL=2]=`STENCIL`,e[e.SPRITE=3]=`SPRITE`,e[e.COLOR=4]=`COLOR`})(ia||={});var aa;(function(e){e[e.RED=1]=`RED`,e[e.GREEN=2]=`GREEN`,e[e.BLUE=4]=`BLUE`,e[e.ALPHA=8]=`ALPHA`})(aa||={});var oa;(function(e){e[e.NONE=0]=`NONE`,e[e.LOW=2]=`LOW`,e[e.MEDIUM=4]=`MEDIUM`,e[e.HIGH=8]=`HIGH`})(oa||={});var sa;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]=`ELEMENT_ARRAY_BUFFER`,e[e.ARRAY_BUFFER=34962]=`ARRAY_BUFFER`,e[e.UNIFORM_BUFFER=35345]=`UNIFORM_BUFFER`})(sa||={});var ca={createCanvas:function(e,t){var n=document.createElement(`canvas`);return n.width=e,n.height=t,n},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return(e=document.baseURI)??window.location.href},fetch:function(e,t){return fetch(e,t)}},la=/iPhone/i,ua=/iPod/i,da=/iPad/i,fa=/\biOS-universal(?:.+)Mac\b/i,pa=/\bAndroid(?:.+)Mobile\b/i,ma=/Android/i,ha=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,ga=/Silk/i,_a=/Windows Phone/i,va=/\bWindows(?:.+)ARM\b/i,ya=/BlackBerry/i,ba=/BB10/i,xa=/Opera Mini/i,Sa=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ca=/Mobile(?:.+)Firefox\b/i,wa=function(e){return e!==void 0&&e.platform===`MacIntel`&&typeof e.maxTouchPoints==`number`&&e.maxTouchPoints>1&&typeof MSStream>`u`};function Ta(e){return function(t){return t.test(e)}}function Ea(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=Ta(n),a={apple:{phone:i(la)&&!i(_a),ipod:i(ua),tablet:!i(la)&&(i(da)||wa(t))&&!i(_a),universal:i(fa),device:(i(la)||i(ua)||i(da)||i(fa)||wa(t))&&!i(_a)},amazon:{phone:i(ha),tablet:!i(ha)&&i(ga),device:i(ha)||i(ga)},android:{phone:!i(_a)&&i(ha)||!i(_a)&&i(pa),tablet:!i(_a)&&!i(ha)&&!i(pa)&&(i(ga)||i(ma)),device:!i(_a)&&(i(ha)||i(ga)||i(pa)||i(ma))||i(/\bokhttp\b/i)},windows:{phone:i(_a),tablet:i(va),device:i(_a)||i(va)},other:{blackberry:i(ya),blackberry10:i(ba),opera:i(xa),firefox:i(Ca),chrome:i(Sa),device:i(ya)||i(ba)||i(xa)||i(Ca)||i(Sa)},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 Da=Ea(globalThis.navigator);function Oa(){return!Da.apple.device}function ka(e){var t=!0;if(Da.tablet||Da.phone){if(Da.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var r=parseInt(n[1],10);r<11&&(t=!1)}}if(Da.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 Aa={ADAPTER:ca,MIPMAP_TEXTURES:$i.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:oa.NONE,SPRITE_MAX_TEXTURES:ka(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:na.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Qi.CLAMP,SCALE_MODE:Zi.LINEAR,PRECISION_VERTEX:ra.HIGH,PRECISION_FRAGMENT:Da.apple.device?ra.HIGH:ra.MEDIUM,CAN_UPLOAD_SAME_BUFFER:Oa(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},ja=Et((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===N(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(N(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}}),Na=Et((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 N(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 ee(e){return E(e,function(e){return g.test(e)?M(e.slice(4).toLowerCase()):e})}function P(e){return E(e,function(e){return _.test(e)?`xn--`+N(e):e})}if(o={version:`1.4.1`,ucs2:{decode:D,encode:O},decode:M,encode:N,toASCII:P,toUnicode:ee},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})(void 0)}),Pa=Et((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)}),Fa=Et((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}}),Ia=Et((exports,t)=>{var n=Fa(),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=Pa(),r=Ia(),i=Fa(),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 N;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),N=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))N=_;else{var ee=Object.keys(E);N=v?ee.sort(v):ee}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var I=0;I0?b+y:``}}),Ra=Et((exports,t)=>{var n=Ia(),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=La(),r=Ra(),i=Fa();t.exports={formats:i,parse:r,stringify:n}}),Ba=Et(exports=>{var t=Na();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},_=za();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?ee+=`x`:ee+=N[P];if(!ee.match(f)){var I=j.slice(0,E),te=j.slice(E+1),L=N.match(p);L&&(I.push(L[1]),te.unshift(L[2])),te.length&&(b=`/`+te.join(`.`)+b),this.hostname=I.join(`.`);break}}}this.hostname.length>d?this.hostname=``:this.hostname=this.hostname.toLowerCase(),A||(this.hostname=t.toASCII(this.hostname));var R=this.port?`:`+this.port:``,ne=this.hostname||``;this.host=ne+R,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.resolveObject=x,exports.format=y,exports.Url=n}),Va=At(ja(),1),Ha=At(Ma(),1),Ua=At(Ba(),1),Wa={parse:Ua.parse,format:Ua.format,resolve:Ua.resolve};Aa.RETINA_PREFIX=/@([0-9\.]+)x/,Aa.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Ga=!1,Ka=`6.5.10`;function qa(e){var t;if(!Ga){if(Aa.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf(`chrome`)>-1){var n=[` %c %c %c PixiJS `+Ka+` - ✰ `+e+` ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ @@ -2396,14 +2396,14 @@ 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 Ot==`function`&&Ot;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 Ot==`function`&&Ot,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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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){"use strict";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 N(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 F(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,P(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function te(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(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 R(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(R(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,F(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(F(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(F(e,!1),e.strm.avail_out),O)}),new re(4,4,8,4,ne),new re(4,5,16,8,ne),new re(4,6,32,32,ne),new re(4,4,16,16,z),new re(8,16,32,32,z),new re(8,16,128,128,z),new re(8,32,128,256,z),new re(32,128,258,1024,z),new re(32,258,258,4096,z)],n.deflateInit=function(e,t){return se(e,t,g,15,8,0)},n.deflateInit2=se,n.deflateReset=oe,n.deflateResetKeep=ae,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),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(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):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),I(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,te(i,p),i.strstart!==0&&(te(i,e.adler>>>16),te(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)),P(e),o=i.pending,i.pending!==i.pending_buf_size));)I(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)),P(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)),P(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&&P(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(P(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&N(t)<=N(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&&(R(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&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(F(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(F(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(R(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&&(F(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(F(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(F(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&&(ee(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),P(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(te(i,e.adler>>>16),te(i,65535&e.adler)),P(e),0=n.w_size&&(s===0&&(ee(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,R(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,R,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,P=8+(15&(b>>>=4)),n.wbits===0)n.wbits=P;else if(P>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(R[0]=255&b,R[1]=b>>>8&255,n.check=a(n.check,R,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<>>8&255,R[2]=b>>>16&255,R[3]=b>>>24&255,n.check=a(n.check,R,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&&(R[0]=255&b,R[1]=b>>>8&255,n.check=a(n.check,R,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,R,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&&(P=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,P)),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;P=p[g+ E++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P)),P&&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[ne[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},F=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,F){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&L,!((k=L>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(te=k+2;x>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}P=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(te=k+3;x>>=k)),b>>>=3,x-=3}else{for(te=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++]=P}}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,I={bits:n.lenbits},F=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,F){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},F=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,F){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=(L=n.lencode[b&(1<>>16&255,j=65535&L,!((k=L>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>M)])>>>16&255,j=65535&L,!(M+(k=L>>>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(te=n.extra;x>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(L=n.distcode[b&(1<>>16&255,j=65535&L,!((k=L>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<>M)])>>>16&255,j=65535&L,!(M+(k=L>>>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(te=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=I[te+d[w]],N[ee+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++,--P[C]==0){if(C===E)break;C=t[n+d[w]]}if(D>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function te(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 ne(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]=R(a[s]++,s))}}function z(e){var t;for(t=0;t>1;1<=n;n--)ae(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ae(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++,ae(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?de(e,t,n,r):e.strategy===4||s===o?(te(e,2+(r?1:0),3),oe(e,T,E)):(te(e,4+(r?1:0),3),function(e,t,n,r){var i;for(te(e,t-257,5),te(e,n-1,5),te(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*F(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){te(e,2,3),L(e,_,T),function(e){e.bi_valid===16?(I(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){"use strict";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){"use strict";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)})}),d_=At(u_());vp.zipReader=(e,t)=>d_.default.loadAsync(e);const f_=vp.createSettings;vp.createSettings=async e=>{let t=Object.keys(e.files);return t.find(e=>p_(e))?f_(e):g_(t)};function p_(e){return e.endsWith(`model3.json`)}function m_(e){return e.endsWith(`.moc3`)}function h_(e){return e.split(/[\\/]/).pop()}function g_(e){let t=e.filter(e=>m_(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=h_(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 bp({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}vp.readText=(e,t)=>{let n=e.file(t);if(!n)throw Error(`Cannot find file: ${t}`);return n.async(`text`)},vp.getFilePaths=e=>{let t=[];return e.forEach(e=>t.push(e)),Promise.resolve(t)},vp.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)}));const __={absolute:``,bottom:`3`,right:`3`},v_={flex:`~ row`,"cursor-pointer":``},y_=[`checked`,`aria-checked`],b_={key:0,"min-w":`50vw`,z:`(H(),Ft(Qe,{relative:``},{default:Kn(({width:a,height:o})=>[Rt(Ap,{width:a,height:o,resolution:2,"max-h":`100dvh`},{default:Kn(({app:t})=>[Rt(l_,{app:t,"mouth-open-size":e.mouthOpenSize,width:a,height:o,paused:e.paused,"focus-at":e.focusAt,"x-offset":e.xOffset,"y-offset":e.yOffset},null,8,[`app`,`mouth-open-size`,`width`,`height`,`paused`,`focus-at`,`x-offset`,`y-offset`])]),_:2},1032,[`width`,`height`]),V(`div`,__,[V(`div`,v_,[V(`label`,{class:tn([n.value?`bg-neutral-300 dark:bg-neutral-200`:`bg-neutral-100 dark:bg-neutral-700`]),transition:`all ease-in-out duration-500`,text:`lg neutral-500 dark:neutral-400`,"m-1":``,"h-fit":``,"w-fit":``,"cursor-pointer":``,"appearance-none":``,"gap-1":``,"rounded-lg":``,"rounded-md":``,"border-none":``,"p-2":``,"outline-none":``},[qn(V(`input`,{"onUpdate:modelValue":i[0]||=e=>n.value=e,checked:n.value,"aria-checked":n.value,name:`showLive2DViewerInspector`,type:`checkbox`,"appearance-none":``,"outline-none":``,hidden:``},null,8,y_),[[Hn,n.value]]),i[8]||=V(`div`,{"select-none":``},[V(`div`,{"i-solar:bug-bold-duotone":``})],-1)],2)]),Rt(G(pt),null,{default:Kn(()=>[n.value?(H(),Lt(`div`,b_,[V(`div`,x_,[V(`div`,S_,[V(`span`,null,vn(G(t)(`stage.viewers.debug-menu.emotions`)),1)]),V(`div`,C_,[V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[1]||=e=>r.value={group:`Surprise`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.surprised`)),1),V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[2]||=e=>r.value={group:`Sad`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.sad`)),1),V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[3]||=e=>r.value={group:`Angry`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.angry`)),1),V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[4]||=e=>r.value={group:`Happy`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.happy`)),1),V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[5]||=e=>r.value={group:`Awkward`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.awkward`)),1),V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[6]||=e=>r.value={group:`Question`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.question`)),1),V(`button`,{"rounded-lg":``,bg:`neutral-100/70 dark:neutral-800/50`,"px-2":``,"py-1":``,"backdrop-blur-sm":``,onClick:i[7]||=e=>r.value={group:`Think`,index:0}},vn(G(t)(`stage.viewers.debug-menu.emotions-btn.think`)),1)])])])):It(``,!0)]),_:1})])]),_:1}))}}),T_=w_;function E_(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 D_(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 O_(e){return this instanceof O_?(this.v=e,this):new O_(e)}function k_(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 O_?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 A_(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:O_(e[r](t)),done:!1}:i?i(t):t}:i}}function j_(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof D_==`function`?D_(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 M_=new TextDecoder(`utf-8`),N_=e=>M_.decode(e),P_=new TextEncoder,F_=e=>P_.encode(e),I_=e=>typeof e==`number`,L_=e=>typeof e==`boolean`,R_=e=>typeof e==`function`,z_=e=>e!=null&&Object(e)===e,B_=e=>z_(e)&&R_(e.then),V_=e=>z_(e)&&R_(e[Symbol.iterator]),H_=e=>z_(e)&&R_(e[Symbol.asyncIterator]),U_=e=>z_(e)&&z_(e.schema),W_=e=>z_(e)&&`done`in e&&`value`in e,G_=e=>z_(e)&&R_(e.stat)&&I_(e.fd),K_=e=>z_(e)&&Y_(e.body),q_=e=>`_getDOMStream`in e&&`_getNodeStream`in e,J_=e=>z_(e)&&R_(e.abort)&&R_(e.getWriter)&&!q_(e),Y_=e=>z_(e)&&R_(e.cancel)&&R_(e.getReader)&&!q_(e),X_=e=>z_(e)&&R_(e.end)&&R_(e.write)&&L_(e.writable)&&!q_(e),Z_=e=>z_(e)&&R_(e.read)&&R_(e.pipe)&&L_(e.readable)&&!q_(e),Q_=e=>z_(e)&&R_(e.clear)&&R_(e.bytes)&&R_(e.position)&&R_(e.setPosition)&&R_(e.capacity)&&R_(e.getBufferIdentifier)&&R_(e.createLong),$_=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function ev(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;++crv(Int32Array,e),av=e=>rv(BigInt64Array,e),ov=e=>rv(Uint8Array,e),sv=e=>(e.next(),e);function*cv(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof $_?n(t):V_(t)?t:n(t);return yield*sv(function*(t){let n=null;do n=t.next(yield rv(e,n));while(!n.done)}(r[Symbol.iterator]())),new e}const lv=e=>cv(Uint8Array,e);function uv(e,t){return k_(this,arguments,function*(){if(B_(t))return yield O_(yield O_(yield*A_(j_(uv(e,yield O_(t))))));let n=function(e){return k_(this,arguments,function*(){yield yield O_(yield O_(e))})},r=function(e){return k_(this,arguments,function*(){yield O_(yield*A_(j_(sv(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 $_?n(t):V_(t)?r(t):H_(t)?t:n(t);return yield O_(yield*A_(j_(sv(function(t){return k_(this,arguments,function*(){let n=null;do n=yield O_(t.next(yield yield O_(rv(e,n))));while(!n.done)})}(i[Symbol.asyncIterator]()))))),yield O_(new e)})}const dv=e=>uv(Uint8Array,e);function fv(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*gv(e){let t,n=!1,r=[],i,a,o,s=0;function c(){return a===`peek`?nv(r,o)[0]:([i,r,s]=nv(r,o),i)}({cmd:a,size:o}=(yield(()=>null)())||{cmd:`read`,size:0});let l=lv(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=dv(e)[Symbol.asyncIterator]();try{do if({done:t,value:i}=Number.isNaN(o-s)?yield O_(l.next()):yield O_(l.next(o-s)),!t&&i.byteLength>0&&(r.push(i),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield O_(c()));while(onull)()))||{cmd:`read`,size:0});let l=new yv(e);try{do if({done:t,value:i}=Number.isNaN(o-s)?yield O_(l.read()):yield O_(l.read(o-s)),!t&&i.byteLength>0&&(r.push(ov(i)),s+=i.byteLength),t||o<=s)do({cmd:a,size:o}=yield yield O_(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 E_(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 E_(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=ov(t)),t})}};const bv=(e,t)=>{let n=e=>r([t,e]),r;return[t,n,new Promise(i=>(r=i)&&e.once(t,n))]};function xv(e){return k_(this,arguments,function*(){let t=[],n=`error`,r=!1,i=null,a,o,s=0,c=[],l;function u(){return a===`peek`?nv(c,o)[0]:([l,c,s]=nv(c,o),l)}if({cmd:a,size:o}=(yield yield O_((()=>null)()))||{cmd:`read`,size:0},e.isTTY)return yield yield O_(new Uint8Array),yield O_(null);try{t[0]=bv(e,`end`),t[1]=bv(e,`error`);do{if(t[2]=bv(e,`readable`),[n,i]=yield O_(Promise.race(t.map(e=>e[2]))),n===`error`)break;if((r=n===`end`)||(Number.isFinite(o-s)?(l=ov(e.read(o-s)),l.byteLength0&&(c.push(l),s+=l.byteLength)),r||o<=s)do({cmd:a,size:o}=yield yield O_(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 Sv;(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`})(Sv||={});var Cv;(function(e){e[e.Sparse=0]=`Sparse`,e[e.Dense=1]=`Dense`})(Cv||={});var wv;(function(e){e[e.HALF=0]=`HALF`,e[e.SINGLE=1]=`SINGLE`,e[e.DOUBLE=2]=`DOUBLE`})(wv||={});var Tv;(function(e){e[e.DAY=0]=`DAY`,e[e.MILLISECOND=1]=`MILLISECOND`})(Tv||={});var Ev;(function(e){e[e.SECOND=0]=`SECOND`,e[e.MILLISECOND=1]=`MILLISECOND`,e[e.MICROSECOND=2]=`MICROSECOND`,e[e.NANOSECOND=3]=`NANOSECOND`})(Ev||={});var Dv;(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`})(Dv||={});const Ov=2,kv=4,Av=4,jv=4,Mv=new Int32Array(2),Nv=new Float32Array(Mv.buffer),Pv=new Float64Array(Mv.buffer),Fv=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Iv;(function(e){e[e.UTF8_BYTES=1]=`UTF8_BYTES`,e[e.UTF16_STRING=2]=`UTF16_STRING`})(Iv||={});var Lv=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){Nv[0]=t,this.writeInt32(e,Mv[0])}writeFloat64(e,t){Pv[0]=t,this.writeInt32(e,Mv[Fv?0:1]),this.writeInt32(e+4,Mv[Fv?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]);let r=2;this.addInt16(e-this.object_start);let i=(n+r)*Ov;this.addInt16(i);let a=0,o=this.space;outer_loop:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,kv+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)}},hy=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()+jv),(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)}},gy;(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`})(gy||={});var _y=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()+jv),(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):gy.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 Yv).__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 Xv).__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,gy.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}},vy=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()+jv),(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):Kv.Little}fields(e,t){let n=this.bb.__offset(this.bb_pos,6);return n?(t||new _y).__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 Xv).__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,Kv.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)}},yy;(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`})(yy||={});var q;(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`})(q||={});var by;(function(e){e[e.OFFSET=0]=`OFFSET`,e[e.DATA=1]=`DATA`,e[e.VALIDITY=2]=`VALIDITY`,e[e.TYPE=3]=`TYPE`})(by||={});const xy=void 0;function Sy(e){if(e===null)return`null`;if(e===xy)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=>Sy(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function Cy(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 wy(e,t){return Cy(e/t)+Cy(e%t)/Cy(t)}const Ty=Symbol.for(`isArrowBigNum`);function Ey(e,...t){return t.length===0?Object.setPrototypeOf(rv(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}Ey.prototype[Ty]=!0,Ey.prototype.toJSON=function(){return`"${Ny(this)}"`},Ey.prototype.valueOf=function(e){return My(this,e)},Ey.prototype.toString=function(){return Ny(this)},Ey.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return My(this);case`string`:return Ny(this);case`default`:return Py(this)}return Ny(this)};function Dy(...e){return Ey.apply(this,e)}function Oy(...e){return Ey.apply(this,e)}function ky(...e){return Ey.apply(this,e)}Object.setPrototypeOf(Dy.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Oy.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(ky.prototype,Object.create(Uint32Array.prototype)),Object.assign(Dy.prototype,Ey.prototype,{constructor:Dy,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Oy.prototype,Ey.prototype,{constructor:Oy,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(ky.prototype,Ey.prototype,{constructor:ky,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Ay=BigInt(4294967296)*BigInt(4294967296),jy=Ay-BigInt(1);function My(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 Fy(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`))(ab.prototype);var ob=class extends ab{constructor(){super(q.Null)}toString(){return`Null`}};Ry=Symbol.toStringTag,ob[Ry]=(e=>e[Symbol.toStringTag]=`Null`)(ob.prototype);var sb=class extends ab{constructor(e,t){super(q.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}`}};zy=Symbol.toStringTag,sb[zy]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(sb.prototype);var cb=class extends sb{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},lb=class extends sb{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},ub=class extends sb{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},db=class extends sb{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},fb=class extends sb{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},pb=class extends sb{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},mb=class extends sb{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},hb=class extends sb{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(cb.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(lb.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(ub.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(db.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(fb.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(pb.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(mb.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(hb.prototype,`ArrayType`,{value:BigUint64Array});var gb=class extends ab{constructor(e){super(q.Float),this.precision=e}get ArrayType(){switch(this.precision){case wv.HALF:return Uint16Array;case wv.SINGLE:return Float32Array;case wv.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};By=Symbol.toStringTag,gb[By]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(gb.prototype);var _b=class extends gb{constructor(){super(wv.HALF)}},vb=class extends gb{constructor(){super(wv.SINGLE)}},yb=class extends gb{constructor(){super(wv.DOUBLE)}};Object.defineProperty(_b.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(vb.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(yb.prototype,`ArrayType`,{value:Float64Array});var bb=class extends ab{constructor(){super(q.Binary)}toString(){return`Binary`}};Vy=Symbol.toStringTag,bb[Vy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(bb.prototype);var xb=class extends ab{constructor(){super(q.LargeBinary)}toString(){return`LargeBinary`}};Hy=Symbol.toStringTag,xb[Hy]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(xb.prototype);var Sb=class extends ab{constructor(){super(q.Utf8)}toString(){return`Utf8`}};Uy=Symbol.toStringTag,Sb[Uy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Sb.prototype);var Cb=class extends ab{constructor(){super(q.LargeUtf8)}toString(){return`LargeUtf8`}};Wy=Symbol.toStringTag,Cb[Wy]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Cb.prototype);var wb=class extends ab{constructor(){super(q.Bool)}toString(){return`Bool`}};Gy=Symbol.toStringTag,wb[Gy]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))(wb.prototype);var Tb=class extends ab{constructor(e,t,n=128){super(q.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};Ky=Symbol.toStringTag,Tb[Ky]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(Tb.prototype);var Eb=class extends ab{constructor(e){super(q.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Tv[this.unit]}>`}get ArrayType(){return this.unit===Tv.DAY?Int32Array:BigInt64Array}};qy=Symbol.toStringTag,Eb[qy]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(Eb.prototype);var Db=class extends ab{constructor(e,t){super(q.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${Ev[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};Jy=Symbol.toStringTag,Db[Jy]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(Db.prototype);var Ob=class extends ab{constructor(e,t){super(q.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${Ev[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};Yy=Symbol.toStringTag,Ob[Yy]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(Ob.prototype);var kb=class extends ab{constructor(e){super(q.Interval),this.unit=e}toString(){return`Interval<${Dv[this.unit]}>`}};Xy=Symbol.toStringTag,kb[Xy]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(kb.prototype);var Ab=class extends ab{constructor(e){super(q.Duration),this.unit=e}toString(){return`Duration<${Ev[this.unit]}>`}};Zy=Symbol.toStringTag,Ab[Zy]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(Ab.prototype);var jb=class extends ab{constructor(e){super(q.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}};Qy=Symbol.toStringTag,jb[Qy]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(jb.prototype);var Mb=class extends ab{constructor(e){super(q.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};$y=Symbol.toStringTag,Mb[$y]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(Mb.prototype);var Nb=class extends ab{constructor(e,t,n){super(q.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(` | `)}>`}};eb=Symbol.toStringTag,Nb[eb]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(Nb.prototype);var Pb=class extends ab{constructor(e){super(q.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};tb=Symbol.toStringTag,Pb[tb]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(Pb.prototype);var Fb=class extends ab{constructor(e,t){super(q.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}>`}};nb=Symbol.toStringTag,Fb[nb]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(Fb.prototype);var Ib=class extends ab{constructor(e,t=!1){var n,r,i;if(super(q.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(`, `)}}>`}};rb=Symbol.toStringTag,Ib[rb]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(Ib.prototype);const Lb=(e=>()=>++e)(-1);var Rb=class extends ab{constructor(e,t,n,r){super(q.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?Lb():Cy(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}>`}};ib=Symbol.toStringTag,Rb[ib]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(Rb.prototype);function zb(e){let t=e;switch(e.typeId){case q.Decimal:return e.bitWidth/32;case q.Interval:return 1+t.unit;case q.FixedSizeList:return t.listSize;case q.FixedSizeBinary:return t.byteWidth;default:return 1}}var Bb=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 Vb(this,e,t)}getVisitFnByTypeId(e,t=!0){return Hb(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 Vb(e,t,n=!0){return typeof t==`number`?Hb(e,t,n):typeof t==`string`&&t in q?Hb(e,q[t],n):t&&t instanceof ab?Hb(e,Ub(t),n):t?.type&&t.type instanceof ab?Hb(e,Ub(t.type),n):Hb(e,q.NONE,n)}function Hb(e,t,n=!0){let r=null;switch(t){case q.Null:r=e.visitNull;break;case q.Bool:r=e.visitBool;break;case q.Int:r=e.visitInt;break;case q.Int8:r=e.visitInt8||e.visitInt;break;case q.Int16:r=e.visitInt16||e.visitInt;break;case q.Int32:r=e.visitInt32||e.visitInt;break;case q.Int64:r=e.visitInt64||e.visitInt;break;case q.Uint8:r=e.visitUint8||e.visitInt;break;case q.Uint16:r=e.visitUint16||e.visitInt;break;case q.Uint32:r=e.visitUint32||e.visitInt;break;case q.Uint64:r=e.visitUint64||e.visitInt;break;case q.Float:r=e.visitFloat;break;case q.Float16:r=e.visitFloat16||e.visitFloat;break;case q.Float32:r=e.visitFloat32||e.visitFloat;break;case q.Float64:r=e.visitFloat64||e.visitFloat;break;case q.Utf8:r=e.visitUtf8;break;case q.LargeUtf8:r=e.visitLargeUtf8;break;case q.Binary:r=e.visitBinary;break;case q.LargeBinary:r=e.visitLargeBinary;break;case q.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case q.Date:r=e.visitDate;break;case q.DateDay:r=e.visitDateDay||e.visitDate;break;case q.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case q.Timestamp:r=e.visitTimestamp;break;case q.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case q.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case q.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case q.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case q.Time:r=e.visitTime;break;case q.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case q.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case q.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case q.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case q.Decimal:r=e.visitDecimal;break;case q.List:r=e.visitList;break;case q.Struct:r=e.visitStruct;break;case q.Union:r=e.visitUnion;break;case q.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case q.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case q.Dictionary:r=e.visitDictionary;break;case q.Interval:r=e.visitInterval;break;case q.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case q.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case q.Duration:r=e.visitDuration;break;case q.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case q.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case q.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case q.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case q.FixedSizeList:r=e.visitFixedSizeList;break;case q.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${q[t]}'`)}function Ub(e){switch(e.typeId){case q.Null:return q.Null;case q.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?q.Int8:q.Uint8;case 16:return n?q.Int16:q.Uint16;case 32:return n?q.Int32:q.Uint32;case 64:return n?q.Int64:q.Uint64}return q.Int}case q.Float:switch(e.precision){case wv.HALF:return q.Float16;case wv.SINGLE:return q.Float32;case wv.DOUBLE:return q.Float64}return q.Float;case q.Binary:return q.Binary;case q.LargeBinary:return q.LargeBinary;case q.Utf8:return q.Utf8;case q.LargeUtf8:return q.LargeUtf8;case q.Bool:return q.Bool;case q.Decimal:return q.Decimal;case q.Time:switch(e.unit){case Ev.SECOND:return q.TimeSecond;case Ev.MILLISECOND:return q.TimeMillisecond;case Ev.MICROSECOND:return q.TimeMicrosecond;case Ev.NANOSECOND:return q.TimeNanosecond}return q.Time;case q.Timestamp:switch(e.unit){case Ev.SECOND:return q.TimestampSecond;case Ev.MILLISECOND:return q.TimestampMillisecond;case Ev.MICROSECOND:return q.TimestampMicrosecond;case Ev.NANOSECOND:return q.TimestampNanosecond}return q.Timestamp;case q.Date:switch(e.unit){case Tv.DAY:return q.DateDay;case Tv.MILLISECOND:return q.DateMillisecond}return q.Date;case q.Interval:switch(e.unit){case Dv.DAY_TIME:return q.IntervalDayTime;case Dv.YEAR_MONTH:return q.IntervalYearMonth}return q.Interval;case q.Duration:switch(e.unit){case Ev.SECOND:return q.DurationSecond;case Ev.MILLISECOND:return q.DurationMillisecond;case Ev.MICROSECOND:return q.DurationMicrosecond;case Ev.NANOSECOND:return q.DurationNanosecond}return q.Duration;case q.Map:return q.Map;case q.List:return q.List;case q.Struct:return q.Struct;case q.Union:switch(e.mode){case Cv.Dense:return q.DenseUnion;case Cv.Sparse:return q.SparseUnion}return q.Union;case q.FixedSizeBinary:return q.FixedSizeBinary;case q.FixedSizeList:return q.FixedSizeList;case q.Dictionary:return q.Dictionary}throw Error(`Unrecognized type '${q[e.typeId]}'`)}Bb.prototype.visitInt8=null,Bb.prototype.visitInt16=null,Bb.prototype.visitInt32=null,Bb.prototype.visitInt64=null,Bb.prototype.visitUint8=null,Bb.prototype.visitUint16=null,Bb.prototype.visitUint32=null,Bb.prototype.visitUint64=null,Bb.prototype.visitFloat16=null,Bb.prototype.visitFloat32=null,Bb.prototype.visitFloat64=null,Bb.prototype.visitDateDay=null,Bb.prototype.visitDateMillisecond=null,Bb.prototype.visitTimestampSecond=null,Bb.prototype.visitTimestampMillisecond=null,Bb.prototype.visitTimestampMicrosecond=null,Bb.prototype.visitTimestampNanosecond=null,Bb.prototype.visitTimeSecond=null,Bb.prototype.visitTimeMillisecond=null,Bb.prototype.visitTimeMicrosecond=null,Bb.prototype.visitTimeNanosecond=null,Bb.prototype.visitDenseUnion=null,Bb.prototype.visitSparseUnion=null,Bb.prototype.visitIntervalDayTime=null,Bb.prototype.visitIntervalYearMonth=null,Bb.prototype.visitDuration=null,Bb.prototype.visitDurationSecond=null,Bb.prototype.visitDurationMillisecond=null,Bb.prototype.visitDurationMicrosecond=null,Bb.prototype.visitDurationNanosecond=null;const Wb=new Float64Array(1),Gb=new Uint32Array(Wb.buffer);function Kb(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 qb(e){if(e!==e)return 32256;Wb[0]=e;let t=(Gb[1]&2147483648)>>16&65535,n=Gb[1]&2146435072,r=0;return n>=1089470464?Gb[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Gb[1]&1048575)>>10):n<=1056964608?(r=1048576+(Gb[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Gb[1]&1048575)+512>>10),t|n|r&65535}var Jb=class extends Bb{};function Yb(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const Xb=(e,t,n)=>{e[t]=Math.floor(n/864e5)},Zb=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},ex=({values:e},t,n)=>{e[t]=n},tx=({values:e},t,n)=>{e[t]=qb(n)},nx=(e,t,n)=>{switch(e.type.precision){case wv.HALF:return tx(e,t,n);case wv.SINGLE:case wv.DOUBLE:return ex(e,t,n)}},rx=({values:e},t,n)=>{Xb(e,t,n.valueOf())},ix=({values:e},t,n)=>{e[t]=BigInt(n)},ax=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},ox=({values:e,valueOffsets:t},n,r)=>Zb(e,t,n,r),sx=({values:e,valueOffsets:t},n,r)=>Zb(e,t,n,F_(r)),cx=(e,t,n)=>{e.type.unit===Tv.DAY?rx(e,t,n):ix(e,t,n)},lx=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},ux=({values:e},t,n)=>{e[t]=BigInt(n)},dx=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},fx=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},px=(e,t,n)=>{switch(e.type.unit){case Ev.SECOND:return lx(e,t,n);case Ev.MILLISECOND:return ux(e,t,n);case Ev.MICROSECOND:return dx(e,t,n);case Ev.NANOSECOND:return fx(e,t,n)}},mx=({values:e},t,n)=>{e[t]=n},hx=({values:e},t,n)=>{e[t]=n},gx=({values:e},t,n)=>{e[t]=n},_x=({values:e},t,n)=>{e[t]=n},vx=(e,t,n)=>{switch(e.type.unit){case Ev.SECOND:return mx(e,t,n);case Ev.MILLISECOND:return hx(e,t,n);case Ev.MICROSECOND:return gx(e,t,n);case Ev.NANOSECOND:return _x(e,t,n)}},yx=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},bx=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=Bx.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=Bx.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},Sx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),Cx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),wx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),Tx=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),Ex=(e,t,n)=>{let r=e.type.children.map(e=>Bx.getVisitFn(e.type)),i=n instanceof Map?wx(t,n):n instanceof zC?Cx(t,n):Array.isArray(n)?Sx(t,n):Tx(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},Dx=(e,t,n)=>{e.type.mode===Cv.Dense?Ox(e,t,n):kx(e,t,n)},Ox=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Bx.visit(i,e.valueOffsets[t],n)},kx=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];Bx.visit(i,t,n)},Ax=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},jx=(e,t,n)=>{e.type.unit===Dv.DAY_TIME?Mx(e,t,n):Nx(e,t,n)},Mx=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},Nx=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},Px=({values:e},t,n)=>{e[t]=n},Fx=({values:e},t,n)=>{e[t]=n},Ix=({values:e},t,n)=>{e[t]=n},Lx=({values:e},t,n)=>{e[t]=n},Rx=(e,t,n)=>{switch(e.type.unit){case Ev.SECOND:return Px(e,t,n);case Ev.MILLISECOND:return Fx(e,t,n);case Ev.MICROSECOND:return Ix(e,t,n);case Ev.NANOSECOND:return Lx(e,t,n)}},zx=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=Bx.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${Sy(e)}: ${Sy(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new Wx(this[Vx],this[Hx])}},Wx=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[Vx].type.children.findIndex(e=>e.name===t)!==-1}getOwnPropertyDescriptor(e,t){if(e[Vx].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[Vx].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=IS.visit(e[Vx].children[n],e[Hx]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[Vx].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(Bx.visit(e[Vx].children[r],e[Hx],n),Reflect.set(e,t,n))}},Kx=class extends Bb{};function qx(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Jx=(e,t)=>864e5*e[t],Yx=(e,t)=>null,Xx=(e,t,n)=>{if(n+1>=t.length)return null;let r=Cy(t[n]),i=Cy(t[n+1]);return e.subarray(r,i)},Zx=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Jx(e,t),$x=({values:e},t)=>Cy(e[t]),eS=({stride:e,values:t},n)=>t[e*n],tS=({stride:e,values:t},n)=>Kb(t[e*n]),nS=({values:e},t)=>e[t],rS=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),iS=({values:e,valueOffsets:t},n)=>Xx(e,t,n),aS=({values:e,valueOffsets:t},n)=>{let r=Xx(e,t,n);return r===null?null:N_(r)},oS=({values:e},t)=>e[t],sS=({type:e,values:t},n)=>e.precision===wv.HALF?Kb(t[n]):t[n],cS=(e,t)=>e.type.unit===Tv.DAY?Qx(e,t):$x(e,t),lS=({values:e},t)=>1e3*Cy(e[t]),uS=({values:e},t)=>Cy(e[t]),dS=({values:e},t)=>wy(e[t],BigInt(1e3)),fS=({values:e},t)=>wy(e[t],BigInt(1e6)),pS=(e,t)=>{switch(e.type.unit){case Ev.SECOND:return lS(e,t);case Ev.MILLISECOND:return uS(e,t);case Ev.MICROSECOND:return dS(e,t);case Ev.NANOSECOND:return fS(e,t)}},mS=({values:e},t)=>e[t],hS=({values:e},t)=>e[t],gS=({values:e},t)=>e[t],_S=({values:e},t)=>e[t],vS=(e,t)=>{switch(e.type.unit){case Ev.SECOND:return mS(e,t);case Ev.MILLISECOND:return hS(e,t);case Ev.MICROSECOND:return gS(e,t);case Ev.NANOSECOND:return _S(e,t)}},yS=({values:e,stride:t},n)=>Iy.decimal(e.subarray(t*n,t*(n+1))),bS=(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 zC([c])},xS=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new VS(o.slice(i,a-i))},SS=(e,t)=>new Ux(e,t),CS=(e,t)=>e.type.mode===Cv.Dense?wS(e,t):TS(e,t),wS=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return IS.visit(r,e.valueOffsets[t])},TS=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return IS.visit(r,t)},ES=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},DS=(e,t)=>e.type.unit===Dv.DAY_TIME?OS(e,t):kS(e,t),OS=({values:e},t)=>e.subarray(2*t,2*(t+1)),kS=({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},AS=({values:e},t)=>e[t],jS=({values:e},t)=>e[t],MS=({values:e},t)=>e[t],NS=({values:e},t)=>e[t],PS=(e,t)=>{switch(e.type.unit){case Ev.SECOND:return AS(e,t);case Ev.MILLISECOND:return jS(e,t);case Ev.MICROSECOND:return MS(e,t);case Ev.NANOSECOND:return NS(e,t)}},FS=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new zC([a])};Kx.prototype.visitNull=qx(Yx),Kx.prototype.visitBool=qx(Zx),Kx.prototype.visitInt=qx(oS),Kx.prototype.visitInt8=qx(eS),Kx.prototype.visitInt16=qx(eS),Kx.prototype.visitInt32=qx(eS),Kx.prototype.visitInt64=qx(nS),Kx.prototype.visitUint8=qx(eS),Kx.prototype.visitUint16=qx(eS),Kx.prototype.visitUint32=qx(eS),Kx.prototype.visitUint64=qx(nS),Kx.prototype.visitFloat=qx(sS),Kx.prototype.visitFloat16=qx(tS),Kx.prototype.visitFloat32=qx(eS),Kx.prototype.visitFloat64=qx(eS),Kx.prototype.visitUtf8=qx(aS),Kx.prototype.visitLargeUtf8=qx(aS),Kx.prototype.visitBinary=qx(iS),Kx.prototype.visitLargeBinary=qx(iS),Kx.prototype.visitFixedSizeBinary=qx(rS),Kx.prototype.visitDate=qx(cS),Kx.prototype.visitDateDay=qx(Qx),Kx.prototype.visitDateMillisecond=qx($x),Kx.prototype.visitTimestamp=qx(pS),Kx.prototype.visitTimestampSecond=qx(lS),Kx.prototype.visitTimestampMillisecond=qx(uS),Kx.prototype.visitTimestampMicrosecond=qx(dS),Kx.prototype.visitTimestampNanosecond=qx(fS),Kx.prototype.visitTime=qx(vS),Kx.prototype.visitTimeSecond=qx(mS),Kx.prototype.visitTimeMillisecond=qx(hS),Kx.prototype.visitTimeMicrosecond=qx(gS),Kx.prototype.visitTimeNanosecond=qx(_S),Kx.prototype.visitDecimal=qx(yS),Kx.prototype.visitList=qx(bS),Kx.prototype.visitStruct=qx(SS),Kx.prototype.visitUnion=qx(CS),Kx.prototype.visitDenseUnion=qx(wS),Kx.prototype.visitSparseUnion=qx(TS),Kx.prototype.visitDictionary=qx(ES),Kx.prototype.visitInterval=qx(DS),Kx.prototype.visitIntervalDayTime=qx(OS),Kx.prototype.visitIntervalYearMonth=qx(kS),Kx.prototype.visitDuration=qx(PS),Kx.prototype.visitDurationSecond=qx(AS),Kx.prototype.visitDurationMillisecond=qx(jS),Kx.prototype.visitDurationMicrosecond=qx(MS),Kx.prototype.visitDurationNanosecond=qx(NS),Kx.prototype.visitFixedSizeList=qx(FS),Kx.prototype.visitMap=qx(xS);const IS=new Kx,LS=Symbol.for(`keys`),RS=Symbol.for(`vals`),zS=Symbol.for(`kKeysAsStrings`),BS=Symbol.for(`_kKeysAsStrings`);var VS=class{constructor(e){return this[LS]=new zC([e.children[0]]).memoize(),this[RS]=e.children[1],new Proxy(this,new US)}get[zS](){return this[BS]||(this[BS]=Array.from(this[LS].toArray(),String))}[Symbol.iterator](){return new HS(this[LS],this[RS])}get size(){return this[LS].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[LS],t=this[RS],n={};for(let r=-1,i=e.length;++r`${Sy(e)}: ${Sy(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},HS=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),IS.visit(this.vals,e)]})}},US=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[zS]}has(e,t){return e[zS].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[zS].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[zS].indexOf(t);if(n!==-1){let r=IS.visit(Reflect.get(e,RS),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[zS].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(Bx.visit(Reflect.get(e,RS),r,n),Reflect.set(e,t,n))}};Object.defineProperties(VS.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[LS]:{writable:!0,enumerable:!1,configurable:!1,value:null},[RS]:{writable:!0,enumerable:!1,configurable:!1,value:null},[BS]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let WS;function GS(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 KS=(e,t)=>e<0?t+e:e,qS=e=>e!==e;function JS(e){let t=typeof e;if(t!==`object`||e===null)return qS(e)?qS: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?pv(e,t):!1:e instanceof Map?XS(e):Array.isArray(e)?YS(e):e instanceof zC?ZS(e):QS(e,!0)}function YS(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 eC(e,n);case Map:return nC(e,n,n.keys());case VS:case Ux:case Object:case void 0:return nC(e,n,t||Object.keys(n))}return n instanceof zC?tC(e,n):!1}}function eC(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++r>r}function aC(e,t,n){let r=n.byteLength+7&-8;if(e>0||n.byteLength>3):oC(new sC(n,e,t,null,rC)).subarray(0,r)),i}return n}function oC(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 sC=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 cC(e,t,i)+cC(e,r,n)+lC(e,i>>3,r-i>>3)}function lC(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+=uC(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=uC(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=uC(a.getUint8(i)),i+=1;return r}function uC(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}const dC=-1;var fC=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 ab.isSparseUnion(e)||ab.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(ab.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=dC&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-cC(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=zb(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(ab.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===Cv.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(aC(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===q.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(aC(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[by.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[by.TYPE])&&(a[by.TYPE]=i.subarray(e,e+t)),(i=a[by.OFFSET])&&(a[by.OFFSET]=i.subarray(e,e+t+1))||(i=a[by.DATA])&&(a[by.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};fC.prototype.children=Object.freeze([]);var pC=class e extends Bb{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new fC(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=ov(e.data),i=ov(e.nullBitmap),a=iv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fC(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=ov(e.data),i=ov(e.nullBitmap),a=av(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fC(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=ov(e.data),i=ov(e.nullBitmap),a=iv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fC(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=ov(e.data),i=ov(e.nullBitmap),a=av(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fC(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length/zb(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length/zb(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length/zb(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length/zb(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length/zb(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=ov(e.nullBitmap),a=iv(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new fC(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=ov(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=rv(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(ab.isSparseUnion(t))return new fC(t,n,a,o,[void 0,void 0,void 0,i],r);let s=iv(e.valueOffsets);return new fC(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=ov(t.nullBitmap),a=rv(n.indices.ArrayType,t.data),{dictionary:o=new zC([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new fC(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length/zb(t),nullCount:o=e.nullBitmap?-1:0}=e;return new fC(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=ov(e.nullBitmap),i=rv(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new fC(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=ov(t.nullBitmap),{length:o=i.length/zb(n),nullCount:s=t.nullBitmap?-1:0}=t;return new fC(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=ov(t.nullBitmap),o=iv(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new fC(n,r,s,c,[o,void 0,a],[i])}};const mC=new pC;function hC(e){return mC.visit(e)}var gC=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 vC(e){return e.reduce((e,t)=>e+t.nullCount,0)}function yC(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function bC(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 xC(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function OC(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new sC(n,e.offset+(t||0),e.length,n,rC)){if(!i)return r;++r}return-1}function kC(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case q.Union:break;case q.Dictionary:break;default:return OC(e,n)}let r=IS.getVisitFn(e),i=JS(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 gC(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new PC(a)})}var PC=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof fC)))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}=LC[o.typeId],r=a[0];this.isValid=e=>SC(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,RC[o.typeId]),this._offsets=yC(a);break}this.data=a,this.type=o,this.stride=zb(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 _C(this.data)}get nullCount(){return vC(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${q[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(KS(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return FC.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(GS(this,t,n,({data:e,_offsets:t},n,r)=>bC(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case q.Int:case q.Float:case q.Decimal:case q.Time:case q.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 ab.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(ab.isDictionary(this.type)){let t=new BC(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new BC(this)}unmemoize(){if(ab.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}};IC=Symbol.toStringTag,zC[IC]=(e=>{e.type=ab.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(q).map(e=>q[e]).filter(e=>typeof e==`number`&&e!==q.NONE);for(let n of t){let t=IS.getVisitFnByTypeId(n),r=Bx.getVisitFnByTypeId(n),i=jC.getVisitFnByTypeId(n);LC[n]={get:t,set:r,indexOf:i},RC[n]=Object.create(e,{isValid:{value:CC(SC)},get:{value:CC(IS.getVisitFnByTypeId(n))},set:{value:wC(Bx.getVisitFnByTypeId(n))},indexOf:{value:TC(jC.getVisitFnByTypeId(n))}})}return`Vector`})(zC.prototype);var BC=class e extends zC{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 zC(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},VC=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()}},HC=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()+jv),(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):Sv.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new vy).__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 VC).__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 VC).__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 Xv).__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,Sv.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)}},UC=class e{constructor(e=[],t,n,r=Sv.V5){this.fields=e||[],this.metadata=t||new Map,n||=KC(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=GC(GC(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:GC(GC(new Map,r[t].metadata),e.metadata)}))&&!1:!0}),o=KC(a,new Map);return new e([...r,...a],i,new Map([...this.dictionaries,...o]))}};UC.prototype.fields=null,UC.prototype.metadata=null,UC.prototype.dictionaries=null;var WC=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)}};WC.prototype.type=null,WC.prototype.name=null,WC.prototype.nullable=null,WC.prototype.metadata=null;function GC(e,t){return new Map([...e||new Map,...t||new Map])}function KC(e,t=new Map){for(let n=-1,r=e.length;++n0&&KC(i.children,t)}return t}var qC=Rv,JC=Lv,YC=class{static decode(e){e=new JC(ov(e));let t=HC.getRootAsFooter(e),n=UC.decode(t.schema(),new Map,t.version());return new XC(n,t)}static encode(e){let t=new qC,n=UC.encode(t,e.schema);HC.startRecordBatchesVector(t,e.numRecordBatches);for(let n of[...e.recordBatches()].slice().reverse())ZC.encode(t,n);let r=t.endVector();HC.startDictionariesVector(t,e.numDictionaries);for(let n of[...e.dictionaryBatches()].slice().reverse())ZC.encode(t,n);let i=t.endVector();return HC.startFooter(t),HC.addSchema(t,n),HC.addVersion(t,Sv.V5),HC.addRecordBatches(t,r),HC.addDictionaries(t,i),HC.finishFooterBuffer(t,HC.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=Sv.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 E_(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(QC);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return mv.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return mv.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return E_(this,void 0,void 0,function*(){return yield this.abort(e),QC})}return(e){return E_(this,void 0,void 0,function*(){return yield this.close(),QC})}read(e){return E_(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return E_(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(QC)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw Error(`AsyncQueue is closed`)}},nw=class extends tw{write(e){if((e=ov(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?N_(this.toUint8Array(!0)):this.toUint8Array(!1).then(N_)}toUint8Array(e=!1){return e?nv(this._values)[0]:(()=>E_(this,void 0,void 0,function*(){var e,t,n,r;let i=[],a=0;try{for(var o=!0,s=j_(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 nv(i,a)[0]}))()}},rw=class{constructor(e){e&&(this.source=new aw(mv.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)}},iw=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof nw?this.source=new ow(mv.fromAsyncIterable(t)):Z_(t)?this.source=new ow(mv.fromNodeStream(t)):Y_(t)?this.source=new ow(mv.fromDOMStream(t)):K_(t)?this.source=new ow(mv.fromDOMStream(t.body)):V_(t)?this.source=new ow(mv.fromIterable(t)):(B_(t)||H_(t))&&(this.source=new ow(mv.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)}},aw=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)||QC)}return(e){return Object.create(this.source.return&&this.source.return(e)||QC)}},ow=class{constructor(e){this.source=e,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}cancel(e){return E_(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return E_(this,void 0,void 0,function*(){return(yield this.next(e,`read`)).value})}peek(e){return E_(this,void 0,void 0,function*(){return(yield this.next(e,`peek`)).value})}next(e){return E_(this,arguments,void 0,function*(e,t=`read`){return yield this.source.next({cmd:t,size:e})})}throw(e){return E_(this,void 0,void 0,function*(){let t=this.source.throw&&(yield this.source.throw(e))||QC;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return E_(this,void 0,void 0,function*(){let t=this.source.return&&(yield this.source.return(e))||QC;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}},sw=class extends rw{constructor(e,t){super(),this.position=0,this.buffer=ov(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),eE_(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending}))()}readInt32(e){return E_(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 E_(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`${uw(this.buffer[3])} ${uw(this.buffer[2])} ${uw(this.buffer[1])} ${uw(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)}},vw=class extends _w{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:oC(this.sources[n])}readOffsets(e,{offset:t}=this.nextBufferRange()){return rv(Uint8Array,rv(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return rv(Uint8Array,rv(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:n}=this;return ab.isTimestamp(e)||(ab.isInt(e)||ab.isTime(e))&&e.bitWidth===64||ab.isDuration(e)||ab.isDate(e)&&e.unit===Tv.MILLISECOND?rv(Uint8Array,hw.convertArray(n[t])):ab.isDecimal(e)?rv(Uint8Array,gw.convertArray(n[t])):ab.isBinary(e)||ab.isLargeBinary(e)||ab.isFixedSizeBinary(e)?yw(n[t]):ab.isBool(e)?oC(n[t]):ab.isUtf8(e)||ab.isLargeUtf8(e)?F_(n[t].join(``)):rv(Uint8Array,rv(e.ArrayType,n[t].map(e=>+e)))}};function yw(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 bw=class extends Bb{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 xw(e,t){return t instanceof e.constructor}function Sw(e,t){return e===t||xw(e,t)}function Cw(e,t){return e===t||xw(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function ww(e,t){return e===t||xw(e,t)&&e.precision===t.precision}function Tw(e,t){return e===t||xw(e,t)&&e.byteWidth===t.byteWidth}function Ew(e,t){return e===t||xw(e,t)&&e.unit===t.unit}function Dw(e,t){return e===t||xw(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Ow(e,t){return e===t||xw(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function kw(e,t){return e===t||xw(e,t)&&e.children.length===t.children.length&&Lw.compareManyFields(e.children,t.children)}function Aw(e,t){return e===t||xw(e,t)&&e.children.length===t.children.length&&Lw.compareManyFields(e.children,t.children)}function jw(e,t){return e===t||xw(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&Lw.compareManyFields(e.children,t.children)}function Mw(e,t){return e===t||xw(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&Lw.visit(e.indices,t.indices)&&Lw.visit(e.dictionary,t.dictionary)}function Nw(e,t){return e===t||xw(e,t)&&e.unit===t.unit}function Pw(e,t){return e===t||xw(e,t)&&e.unit===t.unit}function Fw(e,t){return e===t||xw(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&Lw.compareManyFields(e.children,t.children)}function Iw(e,t){return e===t||xw(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&Lw.compareManyFields(e.children,t.children)}bw.prototype.visitNull=Sw,bw.prototype.visitBool=Sw,bw.prototype.visitInt=Cw,bw.prototype.visitInt8=Cw,bw.prototype.visitInt16=Cw,bw.prototype.visitInt32=Cw,bw.prototype.visitInt64=Cw,bw.prototype.visitUint8=Cw,bw.prototype.visitUint16=Cw,bw.prototype.visitUint32=Cw,bw.prototype.visitUint64=Cw,bw.prototype.visitFloat=ww,bw.prototype.visitFloat16=ww,bw.prototype.visitFloat32=ww,bw.prototype.visitFloat64=ww,bw.prototype.visitUtf8=Sw,bw.prototype.visitLargeUtf8=Sw,bw.prototype.visitBinary=Sw,bw.prototype.visitLargeBinary=Sw,bw.prototype.visitFixedSizeBinary=Tw,bw.prototype.visitDate=Ew,bw.prototype.visitDateDay=Ew,bw.prototype.visitDateMillisecond=Ew,bw.prototype.visitTimestamp=Dw,bw.prototype.visitTimestampSecond=Dw,bw.prototype.visitTimestampMillisecond=Dw,bw.prototype.visitTimestampMicrosecond=Dw,bw.prototype.visitTimestampNanosecond=Dw,bw.prototype.visitTime=Ow,bw.prototype.visitTimeSecond=Ow,bw.prototype.visitTimeMillisecond=Ow,bw.prototype.visitTimeMicrosecond=Ow,bw.prototype.visitTimeNanosecond=Ow,bw.prototype.visitDecimal=Sw,bw.prototype.visitList=kw,bw.prototype.visitStruct=Aw,bw.prototype.visitUnion=jw,bw.prototype.visitDenseUnion=jw,bw.prototype.visitSparseUnion=jw,bw.prototype.visitDictionary=Mw,bw.prototype.visitInterval=Nw,bw.prototype.visitIntervalDayTime=Nw,bw.prototype.visitIntervalYearMonth=Nw,bw.prototype.visitDuration=Pw,bw.prototype.visitDurationSecond=Pw,bw.prototype.visitDurationMillisecond=Pw,bw.prototype.visitDurationMicrosecond=Pw,bw.prototype.visitDurationNanosecond=Pw,bw.prototype.visitFixedSizeList=Fw,bw.prototype.visitMap=Iw;const Lw=new bw;function Rw(e,t){return Lw.compareSchemas(e,t)}function zw(e,t){return Bw(e,t.map(e=>e.data.concat()))}function Bw(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++]=hC({type:new Mb(n),length:o,nullCount:0,children:u.slice()})))}return[e=e.assign(n),r.map(t=>new Gw(e,t))]}function Vw(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))??hC({type:r.type,length:t,nullCount:t,nullBitmap:new Uint8Array(o)})}}return n}var Hw,Uw=class e{constructor(...t){var n,r;if(t.length===0)return this.batches=[],this.schema=new UC([]),this._offsets=[0],this;let i,a;t[0]instanceof UC&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(a=t.pop());let o=t=>{if(t){if(t instanceof Gw)return[t];if(t instanceof e)return t.batches;if(t instanceof fC){if(t.type instanceof Mb)return[new Gw(new UC(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 zC([t[e]])),r=i??new UC(e.map((e,t)=>new WC(String(e),n[t].type,n[t].nullable))),[,a]=zw(r,n);return a.length===0?[new Gw(t)]:a}}return[]},s=t.flatMap(e=>o(e));if(i=(r=i??(n=s[0])?.schema)??new UC([]),!(i instanceof UC))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);for(let e of s){if(!(e instanceof Gw))throw TypeError(`Table constructor expects a [Schema, RecordBatch[]] pair.`);if(!Rw(i,e.schema))throw TypeError(`Table and inner RecordBatch schemas must be equivalent.`)}this.schema=i,this.batches=s,this._offsets=a??yC(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=vC(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(KS(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?FC.visit(new zC(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 Gw(n,e)))}slice(t,n){let r=this.schema;[t,n]=GS({length:this.numRows},t,n);let i=bC(this.data,this._offsets,t,n);return new e(r,i.map(e=>new Gw(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=hC({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new zC(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]=zw(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(...zw(a,o))}};Hw=Symbol.toStringTag,Uw[Hw]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=CC(SC),e.get=CC(IS.getVisitFn(q.Struct)),e.set=wC(Bx.getVisitFn(q.Struct)),e.indexOf=TC(jC.getVisitFn(q.Struct)),`Table`))(Uw.prototype);var Ww,Gw=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof UC)||([,this.data=hC({nullCount:0,type:new Mb(this.schema.fields),children:this.schema.fields.map(e=>hC({type:e.type,nullCount:0}))})]=e,!(this.data instanceof fC)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=Kw(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]=WC.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}),a=new UC(n),o=hC({type:new Mb(n),length:i,children:r,nullCount:0});[this.schema,this.data]=Kw(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||=qw(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 IS.visit(this.data,e)}at(e){return this.get(KS(e,this.numRows))}set(e,t){return Bx.visit(this.data,e,t)}indexOf(e,t){return jC.visit(this.data,e,t)}[Symbol.iterator](){return FC.visit(new zC([this.data]))}toArray(){return[...this]}concat(...e){return new Uw(this.schema,[this,...e])}slice(t,n){let[r]=new zC([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,hC({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=hC({type:new Mb(n.fields),length:this.numRows,children:r});return new e(n,i)}};Ww=Symbol.toStringTag,Gw[Ww]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(Gw.prototype);function Kw(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))??hC({type:c.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[e.assign(i),hC({type:new Mb(i),length:n,children:a})]}function qw(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;++rhC({type:e.type})),n=hC({type:new Mb(e.fields),nullCount:0,children:t});super(e,n)}},Yw=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()+jv),(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):Sv.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):yy.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 Xv).__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,Sv.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,yy.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)}},Xw=class extends Bb{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return uy.startNull(t),uy.endNull(t)}visitInt(e,t){return Jv.startInt(t),Jv.addBitWidth(t,e.bitWidth),Jv.addIsSigned(t,e.isSigned),Jv.endInt(t)}visitFloat(e,t){return iy.startFloatingPoint(t),iy.addPrecision(t,e.precision),iy.endFloatingPoint(t)}visitBinary(e,t){return Zv.startBinary(t),Zv.endBinary(t)}visitLargeBinary(e,t){return oy.startLargeBinary(t),oy.endLargeBinary(t)}visitBool(e,t){return Qv.startBool(t),Qv.endBool(t)}visitUtf8(e,t){return hy.startUtf8(t),hy.endUtf8(t)}visitLargeUtf8(e,t){return sy.startLargeUtf8(t),sy.endLargeUtf8(t)}visitDecimal(e,t){return ey.startDecimal(t),ey.addScale(t,e.scale),ey.addPrecision(t,e.precision),ey.addBitWidth(t,e.bitWidth),ey.endDecimal(t)}visitDate(e,t){return $v.startDate(t),$v.addUnit(t,e.unit),$v.endDate(t)}visitTime(e,t){return fy.startTime(t),fy.addUnit(t,e.unit),fy.addBitWidth(t,e.bitWidth),fy.endTime(t)}visitTimestamp(e,t){let n=e.timezone&&t.createString(e.timezone)||void 0;return py.startTimestamp(t),py.addUnit(t,e.unit),n!==void 0&&py.addTimezone(t,n),py.endTimestamp(t)}visitInterval(e,t){return ay.startInterval(t),ay.addUnit(t,e.unit),ay.endInterval(t)}visitDuration(e,t){return ty.startDuration(t),ty.addUnit(t,e.unit),ty.endDuration(t)}visitList(e,t){return cy.startList(t),cy.endList(t)}visitStruct(e,t){return dy.startStruct_(t),dy.endStruct_(t)}visitUnion(e,t){my.startTypeIdsVector(t,e.typeIds.length);let n=my.createTypeIdsVector(t,e.typeIds);return my.startUnion(t),my.addMode(t,e.mode),my.addTypeIds(t,n),my.endUnion(t)}visitDictionary(e,t){let n=this.visit(e.indices,t);return Yv.startDictionaryEncoding(t),Yv.addId(t,BigInt(e.id)),Yv.addIsOrdered(t,e.isOrdered),n!==void 0&&Yv.addIndexType(t,n),Yv.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return ny.startFixedSizeBinary(t),ny.addByteWidth(t,e.byteWidth),ny.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return ry.startFixedSizeList(t),ry.addListSize(t,e.listSize),ry.endFixedSizeList(t)}visitMap(e,t){return ly.startMap(t),ly.addKeysSorted(t,e.keysSorted),ly.endMap(t)}};const Zw=new Xw;function Qw(e,t=new Map){return new UC(tT(e,t),sT(e.metadata),t)}function $w(e){return new pT(e.count,rT(e.columns),iT(e.columns))}function eT(e){return new mT($w(e.data),e.id,e.isDelta)}function tT(e,t){return(e.fields||[]).filter(Boolean).map(e=>WC.fromJSON(e,t))}function nT(e,t){return(e.children||[]).filter(Boolean).map(e=>WC.fromJSON(e,t))}function rT(e){return(e||[]).reduce((e,t)=>[...e,new gT(t.count,aT(t.VALIDITY)),...rT(t.children)],[])}function iT(e,t=[]){for(let n=-1,r=(e||[]).length;++ne+ +(t===0),0)}function oT(e,t){let n,r,i,a,o,s;return!t||!(a=e.dictionary)?(o=lT(e,nT(e,t)),i=new WC(e.name,o,e.nullable,sT(e.metadata))):t.has(n=a.id)?(r=(r=a.indexType)?cT(r):new ub,s=new Rb(t.get(n),r,n,a.isOrdered),i=new WC(e.name,s,e.nullable,sT(e.metadata))):(r=(r=a.indexType)?cT(r):new ub,t.set(n,o=lT(e,nT(e,t))),s=new Rb(o,r,n,a.isOrdered),i=new WC(e.name,s,e.nullable,sT(e.metadata))),i||null}function sT(e=[]){return new Map(e.map(({key:e,value:t})=>[e,t]))}function cT(e){return new sb(e.isSigned,e.bitWidth)}function lT(e,t){let n=e.type.name;switch(n){case`NONE`:return new ob;case`null`:return new ob;case`binary`:return new bb;case`largebinary`:return new xb;case`utf8`:return new Sb;case`largeutf8`:return new Cb;case`bool`:return new wb;case`list`:return new jb((t||[])[0]);case`struct`:return new Mb(t||[]);case`struct_`:return new Mb(t||[])}switch(n){case`int`:{let t=e.type;return new sb(t.isSigned,t.bitWidth)}case`floatingpoint`:{let t=e.type;return new gb(wv[t.precision])}case`decimal`:{let t=e.type;return new Tb(t.scale,t.precision,t.bitWidth)}case`date`:{let t=e.type;return new Eb(Tv[t.unit])}case`time`:{let t=e.type;return new Db(Ev[t.unit],t.bitWidth)}case`timestamp`:{let t=e.type;return new Ob(Ev[t.unit],t.timezone)}case`interval`:{let t=e.type;return new kb(Dv[t.unit])}case`duration`:{let t=e.type;return new Ab(Ev[t.unit])}case`union`:{let n=e.type,[r,...i]=(n.mode+``).toLowerCase(),a=r.toUpperCase()+i.join(``);return new Nb(Cv[a],n.typeIds||[],t||[])}case`fixedsizebinary`:{let t=e.type;return new Pb(t.byteWidth)}case`fixedsizelist`:{let n=e.type;return new Fb(n.listSize,(t||[])[0])}case`map`:{let n=e.type;return new Ib((t||[])[0],n.keysSorted)}}throw Error(`Unrecognized type: "${n}"`)}var uT=Rv,dT=Lv,fT=class e{static fromJSON(t,n){let r=new e(0,Sv.V5,n);return r._createHeader=_T(t,n),r}static decode(t){t=new dT(ov(t));let n=Yw.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=vT(n,a),o}static encode(e){let t=new uT,n=-1;return e.isSchema()?n=UC.encode(t,e.header()):e.isRecordBatch()?n=pT.encode(t,e.header()):e.isDictionaryBatch()&&(n=mT.encode(t,e.header())),Yw.startMessage(t),Yw.addVersion(t,Sv.V5),Yw.addHeader(t,n),Yw.addHeaderType(t,e.headerType),Yw.addBodyLength(t,BigInt(e.bodyLength)),Yw.finishMessageBuffer(t,Yw.endMessage(t)),t.asUint8Array()}static from(t,n=0){if(t instanceof UC)return new e(0,Sv.V5,yy.Schema,t);if(t instanceof pT)return new e(n,Sv.V5,yy.RecordBatch,t);if(t instanceof mT)return new e(n,Sv.V5,yy.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===yy.Schema}isRecordBatch(){return this.headerType===yy.RecordBatch}isDictionaryBatch(){return this.headerType===yy.DictionaryBatch}constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array,r&&(this._createHeader=()=>r),this._bodyLength=Cy(e)}},pT=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=Cy(e)}},mT=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=Cy(t)}},hT=class{constructor(e,t){this.offset=Cy(e),this.length=Cy(t)}},gT=class{constructor(e,t){this.length=Cy(e),this.nullCount=Cy(t)}};function _T(e,t){return()=>{switch(t){case yy.Schema:return UC.fromJSON(e);case yy.RecordBatch:return pT.fromJSON(e);case yy.DictionaryBatch:return mT.fromJSON(e)}throw Error(`Unrecognized Message type: { name: ${yy[t]}, type: ${t} }`)}}function vT(e,t){return()=>{switch(t){case yy.Schema:return UC.decode(e.header(new vy),new Map,e.version());case yy.RecordBatch:return pT.decode(e.header(new Wv),e.version());case yy.DictionaryBatch:return mT.decode(e.header(new Gv),e.version())}throw Error(`Unrecognized Message type: { name: ${yy[t]}, type: ${t} }`)}}WC.encode=NT,WC.decode=OT,WC.fromJSON=oT,UC.encode=MT,UC.decode=yT,UC.fromJSON=Qw,pT.encode=PT,pT.decode=bT,pT.fromJSON=$w,mT.encode=FT,mT.decode=xT,mT.fromJSON=eT,gT.encode=IT,gT.decode=CT,hT.encode=LT,hT.decode=ST;function yT(e,t=new Map,n=Sv.V5){let r=ET(e,t);return new UC(r,kT(e),t,n)}function bT(e,t=Sv.V5){if(e.compression()!==null)throw Error(`Record batch compression not implemented`);return new pT(e.length(),wT(e),TT(e,t))}function xT(e,t=Sv.V5){return new mT(pT.decode(e.data(),t),e.id(),e.isDelta())}function ST(e){return new hT(e.offset(),e.length())}function CT(e){return new gT(e.length(),e.nullCount())}function wT(e){let t=[];for(let n,r=-1,i=-1,a=e.nodesLength();++rWC.encode(e,t));vy.startFieldsVector(e,n.length);let r=vy.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?vy.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return Xv.startKeyValue(e),Xv.addKey(e,r),Xv.addValue(e,i),Xv.endKeyValue(e)})):-1;return vy.startSchema(e),vy.addFields(e,r),vy.addEndianness(e,RT?Kv.Little:Kv.Big),i!==-1&&vy.addCustomMetadata(e,i),vy.endSchema(e)}function NT(e,t){let n=-1,r=-1,i=-1,a=t.type,o=t.typeId;ab.isDictionary(a)?(o=a.dictionary.typeId,i=Zw.visit(a,e),r=Zw.visit(a.dictionary,e)):r=Zw.visit(a,e);let s=(a.children||[]).map(t=>WC.encode(e,t)),c=_y.createChildrenVector(e,s),l=t.metadata&&t.metadata.size>0?_y.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return Xv.startKeyValue(e),Xv.addKey(e,r),Xv.addValue(e,i),Xv.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),_y.startField(e),_y.addType(e,r),_y.addTypeType(e,o),_y.addChildren(e,c),_y.addNullable(e,!!t.nullable),n!==-1&&_y.addName(e,n),i!==-1&&_y.addDictionary(e,i),l!==-1&&_y.addCustomMetadata(e,l),_y.endField(e)}function PT(e,t){let n=t.nodes||[],r=t.buffers||[];Wv.startNodesVector(e,n.length);for(let t of n.slice().reverse())gT.encode(e,t);let i=e.endVector();Wv.startBuffersVector(e,r.length);for(let t of r.slice().reverse())hT.encode(e,t);let a=e.endVector();return Wv.startRecordBatch(e),Wv.addLength(e,BigInt(t.length)),Wv.addNodes(e,i),Wv.addBuffers(e,a),Wv.endRecordBatch(e)}function FT(e,t){let n=pT.encode(e,t.data);return Gv.startDictionaryBatch(e),Gv.addId(e,BigInt(t.id)),Gv.addIsDelta(e,t.isDelta),Gv.addData(e,n),Gv.endDictionaryBatch(e)}function IT(e,t){return Uv.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function LT(e,t){return Hv.createBuffer(e,BigInt(t.offset),BigInt(t.length))}const RT=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),zT=e=>`Expected ${yy[e]} Message in stream, but was null or length 0.`,BT=e=>`Header pointer of flatbuffer-encoded ${yy[e]} Message is null or length 0.`,VT=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,HT=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;var UT=class{constructor(e){this.source=e instanceof rw?e:new rw(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?QC: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(zT(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array;let t=ov(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(zT(e));return t.value}readSchema(){let e=yy.Schema,t=this.readMessage(e),n=t?.header();if(!t||!n)throw Error(BT(e));return n}};const KT=4,qT=`ARROW1`,JT=new Uint8Array(qT.length);for(let e=0;ethis):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 mv.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return mv.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:U_(t)?pE(t):G_(t)?gE(t):B_(t)?(()=>E_(this,void 0,void 0,function*(){return yield e.from(yield t)}))():K_(t)||Y_(t)||Z_(t)||H_(t)?hE(new iw(t)):mE(new rw(t))}static readAll(t){return t instanceof e?t.isSync()?dE(t):fE(t):U_(t)||ArrayBuffer.isView(t)||V_(t)||W_(t)?dE(t):fE(t)}},eE=class extends $T{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return k_(this,arguments,function*(){yield O_(yield*A_(j_(this[Symbol.iterator]())))})}},tE=class extends $T{constructor(e){super(e),this._impl=e}readAll(){return E_(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=j_(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]()}},nE=class extends eE{constructor(e){super(e),this._impl=e}},rE=class extends tE{constructor(e){super(e),this._impl=e}},iE=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=hC({type:new Mb(this.schema.fields),length:e.length,children:n});return new Gw(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 zC(c)):new zC(c)).memoize()}_loadVectors(e,t,n){return new _w(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}},aE=class extends iE{constructor(e,t){super(t),this._reader=U_(e)?new GT(this._handle=e):new UT(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=uE(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):QC}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):QC}next(){if(this.closed)return QC;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 Jw(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},oE=class extends iE{constructor(e,t){super(t),this._reader=new WT(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return E_(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 E_(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=uE(this,e),(this.schema||=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return E_(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):QC})}return(e){return E_(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):QC})}next(){return E_(this,void 0,void 0,function*(){if(this.closed)return QC;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 Jw(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return E_(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},sE=class extends aE{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 sw?e:new sw(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(yy.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(yy.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-ZT,n=e.readInt32(t),r=e.readAt(t-n,n);return YC.decode(r)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return E_(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 E_(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(yy.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 E_(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(yy.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 E_(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-ZT,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return YC.decode(r)})}_readNextMessageAndValidate(e){return E_(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?YT(t)?new nE(new sE(e.read())):new eE(new aE(e)):new eE(new aE(function*(){}()))}function hE(e){return E_(this,void 0,void 0,function*(){let t=yield e.peek(XT+7&-8);return t&&t.byteLength>=4?YT(t)?new nE(new sE(yield e.read())):new tE(new oE(e)):new tE(new oE(function(){return k_(this,arguments,function*(){})}()))})}function gE(e){return E_(this,void 0,void 0,function*(){let{size:t}=yield e.stat(),n=new cw(e,t);return t>=QT&&YT(yield n.readAt(0,XT+7&-8))?new rE(new cE(n)):new tE(new oE(n))})}var _E=class e extends Bb{static assemble(...t){let n=e=>e.flatMap(e=>Array.isArray(e)?n(e):e instanceof Gw?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 zC)return this.visitMany(e.data),this;let{type:t}=e;if(!ab.isDictionary(t)){let{length:n}=e;if(n>2147483647)throw RangeError(`Cannot write arrays larger than 2^31 - 1 in length`);if(ab.isUnion(t))this.nodes.push(new gT(n,0));else{let{nullCount:r}=e;ab.isNull(t)||vE.call(this,r<=0?new Uint8Array:aC(e.offset,n,e.nullBitmap)),this.nodes.push(new gT(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 vE(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new hT(this._byteLength,t)),this._byteLength+=t,this}function yE(e){var t;let{type:n,length:r,typeIds:i,valueOffsets:a}=e;if(vE.call(this,i),n.mode===Cv.Sparse)return wE.call(this,e);if(n.mode===Cv.Dense){if(e.offset<=0)return vE.call(this,a),wE.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 bE(e){let t;return e.nullCount>=e.length?vE.call(this,new Uint8Array):(t=e.values)instanceof Uint8Array?vE.call(this,aC(e.offset,e.length,t)):vE.call(this,oC(e.values))}function xE(e){return vE.call(this,e.values.subarray(0,e.length*e.stride))}function SE(e){let{length:t,values:n,valueOffsets:r}=e,i=Cy(r[0]),a=Cy(r[t]),o=Math.min(a-i,n.byteLength-i);return vE.call(this,fv(-i,t+1,r)),vE.call(this,n.subarray(i,i+o)),this}function CE(e){let{length:t,valueOffsets:n}=e;if(n){let{0:r,[t]:i}=n;return vE.call(this,fv(-r,t+1,n)),this.visit(e.children[0].slice(r,i-r))}return this.visit(e.children[0])}function wE(e){return this.visitMany(e.type.children.map((t,n)=>e.children[n]).filter(Boolean))[0]}_E.prototype.visitBool=bE,_E.prototype.visitInt=xE,_E.prototype.visitFloat=xE,_E.prototype.visitUtf8=SE,_E.prototype.visitLargeUtf8=SE,_E.prototype.visitBinary=SE,_E.prototype.visitLargeBinary=SE,_E.prototype.visitFixedSizeBinary=xE,_E.prototype.visitDate=xE,_E.prototype.visitTimestamp=xE,_E.prototype.visitTime=xE,_E.prototype.visitDecimal=xE,_E.prototype.visitList=CE,_E.prototype.visitStruct=wE,_E.prototype.visitUnion=yE,_E.prototype.visitInterval=xE,_E.prototype.visitDuration=xE,_E.prototype.visitFixedSizeList=CE,_E.prototype.visitMap=CE;var TE=class extends ew{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 nw,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,z_(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 B_(e)?e.then(e=>this.writeAll(e)):H_(e)?kE(this,e):OE(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 nw?this._sink=e:(this._sink=new nw,e&&J_(e)?this.toDOMStream({type:`bytes`}).pipeTo(e):e&&X_(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||!Rw(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 Uw&&!(t=e.schema)||e instanceof Gw&&!(t=e.schema))return this.finish()&&void 0}else throw Error(`RecordBatchWriter is closed`);if(t&&!Rw(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof Gw?e instanceof Jw||this._writeRecordBatch(e):e instanceof Uw?this.writeAll(e.batches):V_(e)&&this.writeAll(e)}_writeMessage(e,t=8){let n=t-1,r=fT.encode(e),i=r.byteLength,a=this._writeLegacyIpcFormat?4:8,o=i+a+n&~n,s=o-i-a;return e.headerType===yy.RecordBatch?this._recordBatchBlocks.push(new ZC(o,e.bodyLength,this._position)):e.headerType===yy.DictionaryBatch&&this._dictionaryBlocks.push(new ZC(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=ov(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(fT.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(JT)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:n,bufferRegions:r,buffers:i}=_E.assemble(e),a=new pT(e.numRows,n,r),o=fT.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}=_E.assemble(new zC([e])),s=new pT(e.length,i,a),c=new mT(s,t,n),l=fT.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)):H_(t)?kE(r,t):OE(r,t)}},DE=class e extends TE{static writeAll(t){let n=new e;return B_(t)?t.then(e=>n.writeAll(e)):H_(t)?kE(n,t):OE(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=YC.encode(new YC(e,Sv.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function OE(e,t){let n=t;t instanceof Uw&&(n=t.batches,e.reset(void 0,t.schema));for(let t of n)e.write(t);return e.finish()}function kE(e,t){return E_(this,void 0,void 0,function*(){var n,r,i,a,o,s,c;try{for(n=!0,r=j_(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 AE(e,t=`stream`){return(t===`stream`?EE:DE).writeAll(e).toUint8Array(!0)}var jE=Object.create,ME=Object.defineProperty,NE=Object.getOwnPropertyDescriptor,PE=Object.getOwnPropertyNames,FE=Object.getPrototypeOf,IE=Object.prototype.hasOwnProperty,LE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RE=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of PE(t))!IE.call(e,i)&&i!==n&&ME(e,i,{get:()=>t[i],enumerable:!(r=NE(t,i))||r.enumerable});return e},zE=(e,t,n)=>(n=e==null?{}:jE(FE(e)),RE(t||!e||!e.__esModule?ME(n,`default`,{value:e,enumerable:!0}):n,e)),BE=LE((e,t)=>{t.exports=Worker}),VE=(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))(VE||{}),HE=(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))(HE||{}),UE=(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))(UE||{}),WE=(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))(WE||{}),GE=(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))(GE||{}),KE=(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))(KE||{}),qE=class{log(e){}},JE=class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}},YE=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e))(YE||{}),XE=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=$T.from(t);return console.assert(n.isSync(),`Reader is not sync`),console.assert(n.isFile(),`Reader is not file`),new Uw(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 ZE(this._bindings,this._conn,n),i=await $T.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 QE(this._bindings,this._conn,t)}async insertArrowTable(e,t){let n=AE(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)}},ZE=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}},QE=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=$T.from(t);return console.assert(n.isSync()),console.assert(n.isFile()),new Uw(n)}async send(...e){let t=await this.bindings.sendPrepared(this.connectionId,this.statementId,e),n=new ZE(this.bindings,this.connectionId,t),r=await $T.from(n);return console.assert(r.isAsync()),console.assert(r.isStream()),r}},$E=(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))($E||{}),eD=(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))(eD||{}),tD=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 nD(e){switch(e.typeId){case q.Binary:return{sqlType:`binary`};case q.Bool:return{sqlType:`bool`};case q.Date:return{sqlType:`date`};case q.DateDay:return{sqlType:`date32[d]`};case q.DateMillisecond:return{sqlType:`date64[ms]`};case q.Decimal:{let t=e;return{sqlType:`decimal`,precision:t.precision,scale:t.scale}}case q.Float:return{sqlType:`float`};case q.Float16:return{sqlType:`float16`};case q.Float32:return{sqlType:`float32`};case q.Float64:return{sqlType:`float64`};case q.Int:return{sqlType:`int32`};case q.Int16:return{sqlType:`int16`};case q.Int32:return{sqlType:`int32`};case q.Int64:return{sqlType:`int64`};case q.Uint16:return{sqlType:`uint16`};case q.Uint32:return{sqlType:`uint32`};case q.Uint64:return{sqlType:`uint64`};case q.Uint8:return{sqlType:`uint8`};case q.IntervalDayTime:return{sqlType:`interval[dt]`};case q.IntervalYearMonth:return{sqlType:`interval[m]`};case q.List:return{sqlType:`list`,valueType:nD(e.valueType)};case q.FixedSizeBinary:return{sqlType:`fixedsizebinary`,byteWidth:e.byteWidth};case q.Null:return{sqlType:`null`};case q.Utf8:return{sqlType:`utf8`};case q.Struct:return{sqlType:`struct`,fields:e.children.map(e=>rD(e.name,e.type))};case q.Map:{let t=e;return{sqlType:`map`,keyType:nD(t.keyType),valueType:nD(t.valueType)}}case q.Time:return{sqlType:`time[s]`};case q.TimeMicrosecond:return{sqlType:`time[us]`};case q.TimeMillisecond:return{sqlType:`time[ms]`};case q.TimeNanosecond:return{sqlType:`time[ns]`};case q.TimeSecond:return{sqlType:`time[s]`};case q.Timestamp:return{sqlType:`timestamp`,timezone:e.timezone||void 0};case q.TimestampSecond:return{sqlType:`timestamp[s]`,timezone:e.timezone||void 0};case q.TimestampMicrosecond:return{sqlType:`timestamp[us]`,timezone:e.timezone||void 0};case q.TimestampNanosecond:return{sqlType:`timestamp[ns]`,timezone:e.timezone||void 0};case q.TimestampMillisecond:return{sqlType:`timestamp[ms]`,timezone:e.timezone||void 0}}throw Error(`unsupported arrow type: ${e.toString()}`)}function rD(e,t){let n=nD(t);return n.name=e,n}var iD=new TextEncoder,aD=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 tD(`RESET`,null);return await this.postTask(e)}async ping(){let e=new tD(`PING`,null);await this.postTask(e)}async dropFile(e){let t=new tD(`DROP_FILE`,e);return await this.postTask(t)}async dropFiles(){let e=new tD(`DROP_FILES`,null);return await this.postTask(e)}async flushFiles(){let e=new tD(`FLUSH_FILES`,null);return await this.postTask(e)}async instantiate(e,t=null,n=e=>{}){this._onInstantiationProgress.push(n);let r=new tD(`INSTANTIATE`,[e,t]);return await this.postTask(r)}async getVersion(){let e=new tD(`GET_VERSION`,null);return await this.postTask(e)}async getFeatureFlags(){let e=new tD(`GET_FEATURE_FLAGS`,null);return await this.postTask(e)}async open(e){let t=new tD(`OPEN`,e);await this.postTask(t)}async tokenize(e){let t=new tD(`TOKENIZE`,e);return await this.postTask(t)}async connectInternal(){let e=new tD(`CONNECT`,null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new XE(this,e)}async disconnect(e){let t=new tD(`DISCONNECT`,e);await this.postTask(t)}async runQuery(e,t){let n=new tD(`RUN_QUERY`,[e,t]);return await this.postTask(n)}async startPendingQuery(e,t,n=!1){let r=new tD(`START_PENDING_QUERY`,[e,t,n]);return await this.postTask(r)}async pollPendingQuery(e){let t=new tD(`POLL_PENDING_QUERY`,e);return await this.postTask(t)}async cancelPendingQuery(e){let t=new tD(`CANCEL_PENDING_QUERY`,e);return await this.postTask(t)}async fetchQueryResults(e){let t=new tD(`FETCH_QUERY_RESULTS`,e);return await this.postTask(t)}async getTableNames(e,t){let n=new tD(`GET_TABLE_NAMES`,[e,t]);return await this.postTask(n)}async createPrepared(e,t){let n=new tD(`CREATE_PREPARED`,[e,t]);return await this.postTask(n)}async closePrepared(e,t){let n=new tD(`CLOSE_PREPARED`,[e,t]);await this.postTask(n)}async runPrepared(e,t,n){let r=new tD(`RUN_PREPARED`,[e,t,n]);return await this.postTask(r)}async sendPrepared(e,t,n){let r=new tD(`SEND_PREPARED`,[e,t,n]);return await this.postTask(r)}async globFiles(e){let t=new tD(`GLOB_FILE_INFOS`,e);return await this.postTask(t)}async registerFileText(e,t){let n=iD.encode(t);await this.registerFileBuffer(e,n)}async registerFileURL(e,t,n,r){t===void 0&&(t=e);let i=new tD(`REGISTER_FILE_URL`,[e,t,n,r]);await this.postTask(i)}async registerEmptyFileBuffer(e){}async registerFileBuffer(e,t){let n=new tD(`REGISTER_FILE_BUFFER`,[e,t]);await this.postTask(n,[t.buffer])}async registerFileHandle(e,t,n,r){let i=new tD(`REGISTER_FILE_HANDLE`,[e,t,n,r]);await this.postTask(i,[])}async registerOPFSFileName(e){let t=new tD(`REGISTER_OPFS_FILE_NAME`,[e]);await this.postTask(t,[])}async collectFileStatistics(e,t){let n=new tD(`COLLECT_FILE_STATISTICS`,[e,t]);await this.postTask(n,[])}async exportFileStatistics(e){let t=new tD(`EXPORT_FILE_STATISTICS`,e);return await this.postTask(t,[])}async copyFileToBuffer(e){let t=new tD(`COPY_FILE_TO_BUFFER`,e);return await this.postTask(t)}async copyFileToPath(e,t){let n=new tD(`COPY_FILE_TO_PATH`,[e,t]);await this.postTask(n)}async insertArrowFromIPCStream(e,t,n){if(t.length==0)return;let r=new tD(`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(rD(t,r))}n.columnsFlat=e,delete n.columns}let r=new tD(`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(rD(t,r))}n.columnsFlat=e,delete n.columns}let r=new tD(`IMPORT_JSON_FROM_PATH`,[e,t,n]);await this.postTask(r)}};function oD(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<`u`&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}var sD=oD(),cD=(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))(cD||{}),lD=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])),uD=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])),dD=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])),fD=()=>(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])),pD={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`}}},mD=pD.name,hD=pD.version,gD=pD.version.split(`.`),_D=gD[0],vD=gD[1],yD=gD[2],bD=()=>typeof navigator>`u`,xD=()=>bD()?`node`:navigator.userAgent,SD=()=>xD().includes(`Firefox`),CD=()=>/^((?!chrome|android).)*safari/i.test(xD()),wD=null,TD=null,ED=null,DD=null,OD=null;async function kD(){return wD??=typeof BigInt64Array<`u`,TD??=await uD(),ED??=await fD(),DD??=await dD(),OD??=await lD(),{bigInt64Array:wD,crossOriginIsolated:bD()||globalThis.crossOriginIsolated||!1,wasmExceptions:TD,wasmSIMD:DD,wasmThreads:ED,wasmBulkMemory:OD}}async function AD(e){let t=await kD();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}}var jD=zE(BE());const MD=Symbol.for(`constructDateFrom`),ND={},PD={};function FD(e,t){try{let n=ND[e]||(ND[e]=new Intl.DateTimeFormat(`en-GB`,{timeZone:e,hour:`numeric`,timeZoneName:`longOffset`}).format),r=n(t).split(`GMT`)[1]||``;return r in PD?PD[r]:LD(r,r.split(`:`))}catch{if(e in PD)return PD[e];let t=e?.match(ID);return t?LD(e,t.slice(1)):NaN}}const ID=/([+-]\d\d):?(\d\d)?/;function LD(e,t){let n=+t[0],r=+(t[1]||0);return PD[e]=n>0?n*60+r:n*60-r}var RD=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(FD(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)),HD(this,NaN),BD(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(){return-FD(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),BD(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const zD=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!zD.test(e))return;let t=e.replace(zD,`$1UTC`);RD.prototype[t]&&(e.startsWith(`get`)?RD.prototype[e]=function(){return this.internal[t]()}:(RD.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),VD(this),+this},RD.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),BD(this),+this}))});function BD(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function VD(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()),HD(e)}function HD(e){let t=FD(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);let r=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),a=r-i,o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=FD(e.timeZone,e),l=-new Date(+e).getTimezoneOffset(),u=l-c,d=c!==t,f=u-s;if(d&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);let t=FD(e.timeZone,e),n=c-t;n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}var UD=class e extends RD{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${WD(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=e>0?`-`:`+`,n=String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),r=String(Math.abs(e)%60).padStart(2,`0`);return[t,n,r]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};function WD(e,t){return new Intl.DateTimeFormat(`en-GB`,{timeZone:e,timeZoneName:`long`}).format(t).slice(12)}const GD=new TextDecoder(`utf-8`),KD=e=>GD.decode(e),qD=new TextEncoder,JD=e=>qD.encode(e),YD=e=>typeof e==`function`,XD=e=>e!=null&&Object(e)===e,ZD=e=>XD(e)&&YD(e.then),QD=e=>XD(e)&&YD(e[Symbol.iterator]),$D=e=>XD(e)&&YD(e[Symbol.asyncIterator]),eO=e=>XD(e)&&`done`in e&&`value`in e,tO=e=>XD(e)&&YD(e.clear)&&YD(e.bytes)&&YD(e.position)&&YD(e.setPosition)&&YD(e.capacity)&&YD(e.getBufferIdentifier)&&YD(e.createLong);var nO={};Dt(nO,{compareArrayLike:()=>VO,joinUint8Arrays:()=>oO,memcpy:()=>aO,rebaseValueOffsets:()=>BO,toArrayBufferView:()=>sO,toArrayBufferViewAsyncIterator:()=>AO,toArrayBufferViewIterator:()=>bO,toBigInt64Array:()=>dO,toBigUint64Array:()=>hO,toFloat32Array:()=>gO,toFloat32ArrayAsyncIterator:()=>LO,toFloat32ArrayIterator:()=>DO,toFloat64Array:()=>_O,toFloat64ArrayAsyncIterator:()=>RO,toFloat64ArrayIterator:()=>OO,toInt16Array:()=>lO,toInt16ArrayAsyncIterator:()=>MO,toInt16ArrayIterator:()=>SO,toInt32Array:()=>uO,toInt32ArrayAsyncIterator:()=>NO,toInt32ArrayIterator:()=>CO,toInt8Array:()=>cO,toInt8ArrayAsyncIterator:()=>jO,toInt8ArrayIterator:()=>xO,toUint16Array:()=>pO,toUint16ArrayAsyncIterator:()=>FO,toUint16ArrayIterator:()=>TO,toUint32Array:()=>mO,toUint32ArrayAsyncIterator:()=>IO,toUint32ArrayIterator:()=>EO,toUint8Array:()=>fO,toUint8ArrayAsyncIterator:()=>PO,toUint8ArrayIterator:()=>wO,toUint8ClampedArray:()=>vO,toUint8ClampedArrayAsyncIterator:()=>zO,toUint8ClampedArrayIterator:()=>kO});const rO=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function iO(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;++csO(Int8Array,e),lO=e=>sO(Int16Array,e),uO=e=>sO(Int32Array,e),dO=e=>sO(BigInt64Array,e),fO=e=>sO(Uint8Array,e),pO=e=>sO(Uint16Array,e),mO=e=>sO(Uint32Array,e),hO=e=>sO(BigUint64Array,e),gO=e=>sO(Float32Array,e),_O=e=>sO(Float64Array,e),vO=e=>sO(Uint8ClampedArray,e),yO=e=>(e.next(),e);function*bO(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof rO?n(t):QD(t)?t:n(t);return yield*yO(function*(t){let n=null;do n=t.next(yield sO(e,n));while(!n.done)}(r[Symbol.iterator]())),new e}const xO=e=>bO(Int8Array,e),SO=e=>bO(Int16Array,e),CO=e=>bO(Int32Array,e),wO=e=>bO(Uint8Array,e),TO=e=>bO(Uint16Array,e),EO=e=>bO(Uint32Array,e),DO=e=>bO(Float32Array,e),OO=e=>bO(Float64Array,e),kO=e=>bO(Uint8ClampedArray,e);function AO(e,t){return k_(this,arguments,function*(){if(ZD(t))return yield O_(yield O_(yield*A_(j_(AO(e,yield O_(t))))));let n=function(e){return k_(this,arguments,function*(){yield yield O_(yield O_(e))})},r=function(e){return k_(this,arguments,function*(){yield O_(yield*A_(j_(yO(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 rO?n(t):QD(t)?r(t):$D(t)?t:n(t);return yield O_(yield*A_(j_(yO(function(t){return k_(this,arguments,function*(){let n=null;do n=yield O_(t.next(yield yield O_(sO(e,n))));while(!n.done)})}(i[Symbol.asyncIterator]()))))),yield O_(new e)})}const jO=e=>AO(Int8Array,e),MO=e=>AO(Int16Array,e),NO=e=>AO(Int32Array,e),PO=e=>AO(Uint8Array,e),FO=e=>AO(Uint16Array,e),IO=e=>AO(Uint32Array,e),LO=e=>AO(Float32Array,e),RO=e=>AO(Float64Array,e),zO=e=>AO(Uint8ClampedArray,e);function BO(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(++nXO});const YO=void 0;function XO(e){if(e===null)return`null`;if(e===YO)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=>XO(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function ZO(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 QO(e,t){return ZO(e/t)+ZO(e%t)/ZO(t)}var $O={};Dt($O,{BN:()=>dk,bigNumToBigInt:()=>lk,bigNumToNumber:()=>sk,bigNumToString:()=>ck,isArrowBigNumSymbol:()=>ek});const ek=Symbol.for(`isArrowBigNum`);function tk(e,...t){return t.length===0?Object.setPrototypeOf(sO(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}tk.prototype[ek]=!0,tk.prototype.toJSON=function(){return`"${ck(this)}"`},tk.prototype.valueOf=function(e){return sk(this,e)},tk.prototype.toString=function(){return ck(this)},tk.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return sk(this);case`string`:return ck(this);case`default`:return lk(this)}return ck(this)};function nk(...e){return tk.apply(this,e)}function rk(...e){return tk.apply(this,e)}function ik(...e){return tk.apply(this,e)}Object.setPrototypeOf(nk.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(rk.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(ik.prototype,Object.create(Uint32Array.prototype)),Object.assign(nk.prototype,tk.prototype,{constructor:nk,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(rk.prototype,tk.prototype,{constructor:rk,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(ik.prototype,tk.prototype,{constructor:ik,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const ak=BigInt(4294967296)*BigInt(4294967296),ok=ak-BigInt(1);function sk(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=ZO(n),a=`${r}`.padStart(t,`0`),o=s&&i===0?`-`:``;return+`${o}${i}.${a}`}return ZO(c)}function ck(e){if(e.byteLength===8){let t=new e.BigIntArray(e.buffer,e.byteOffset,1);return`${t[0]}`}if(!e.signed)return uk(e);let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=new Int16Array([t.at(-1)])[0];if(n>=0)return uk(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`))(Pk.prototype);var Fk=class extends Pk{constructor(){super(J.Null)}toString(){return`Null`}};pk=Symbol.toStringTag,Fk[pk]=(e=>e[Symbol.toStringTag]=`Null`)(Fk.prototype);var Ik=class extends Pk{constructor(e,t){super(J.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}`}};mk=Symbol.toStringTag,Ik[mk]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(Ik.prototype);var Lk=class extends Ik{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Rk=class extends Ik{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},zk=class extends Ik{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},Bk=class extends Ik{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Vk=class extends Ik{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Hk=class extends Ik{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Uk=class extends Ik{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Wk=class extends Ik{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Lk.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(Rk.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(zk.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(Bk.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(Vk.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(Hk.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Uk.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(Wk.prototype,`ArrayType`,{value:BigUint64Array});var Gk=class extends Pk{constructor(e){super(J.Float),this.precision=e}get ArrayType(){switch(this.precision){case UO.HALF:return Uint16Array;case UO.SINGLE:return Float32Array;case UO.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};hk=Symbol.toStringTag,Gk[hk]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(Gk.prototype);var Kk=class extends Gk{constructor(){super(UO.HALF)}},qk=class extends Gk{constructor(){super(UO.SINGLE)}},Jk=class extends Gk{constructor(){super(UO.DOUBLE)}};Object.defineProperty(Kk.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(qk.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Jk.prototype,`ArrayType`,{value:Float64Array});var Yk=class extends Pk{constructor(){super(J.Binary)}toString(){return`Binary`}};gk=Symbol.toStringTag,Yk[gk]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(Yk.prototype);var Xk=class extends Pk{constructor(){super(J.LargeBinary)}toString(){return`LargeBinary`}};_k=Symbol.toStringTag,Xk[_k]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Xk.prototype);var Zk=class extends Pk{constructor(){super(J.Utf8)}toString(){return`Utf8`}};vk=Symbol.toStringTag,Zk[vk]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Zk.prototype);var Qk=class extends Pk{constructor(){super(J.LargeUtf8)}toString(){return`LargeUtf8`}};yk=Symbol.toStringTag,Qk[yk]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Qk.prototype);var $k=class extends Pk{constructor(){super(J.Bool)}toString(){return`Bool`}};bk=Symbol.toStringTag,$k[bk]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))($k.prototype);var eA=class extends Pk{constructor(e,t,n=128){super(J.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};xk=Symbol.toStringTag,eA[xk]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(eA.prototype);var tA=class extends Pk{constructor(e){super(J.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${WO[this.unit]}>`}get ArrayType(){return this.unit===WO.DAY?Int32Array:BigInt64Array}};Sk=Symbol.toStringTag,tA[Sk]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(tA.prototype);var nA=class extends Pk{constructor(e,t){super(J.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${GO[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};Ck=Symbol.toStringTag,nA[Ck]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(nA.prototype);var rA=class extends Pk{constructor(e,t){super(J.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${GO[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};wk=Symbol.toStringTag,rA[wk]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(rA.prototype);var iA=class extends Pk{constructor(e){super(J.Interval),this.unit=e}toString(){return`Interval<${KO[this.unit]}>`}};Tk=Symbol.toStringTag,iA[Tk]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(iA.prototype);var aA=class extends Pk{constructor(e){super(J.Duration),this.unit=e}toString(){return`Duration<${GO[this.unit]}>`}};Ek=Symbol.toStringTag,aA[Ek]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(aA.prototype);var oA=class extends Pk{constructor(e){super(J.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}};Dk=Symbol.toStringTag,oA[Dk]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(oA.prototype);var sA=class extends Pk{constructor(e){super(J.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};Ok=Symbol.toStringTag,sA[Ok]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(sA.prototype);var cA=class extends Pk{constructor(e,t,n){super(J.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(` | `)}>`}};kk=Symbol.toStringTag,cA[kk]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(cA.prototype);var lA=class extends Pk{constructor(e){super(J.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Ak=Symbol.toStringTag,lA[Ak]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(lA.prototype);var uA=class extends Pk{constructor(e,t){super(J.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}>`}};jk=Symbol.toStringTag,uA[jk]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(uA.prototype);var dA=class extends Pk{constructor(e,t=!1){var n,r,i;if(super(J.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(`, `)}}>`}};Mk=Symbol.toStringTag,dA[Mk]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(dA.prototype);const fA=(e=>()=>++e)(-1);var pA=class extends Pk{constructor(e,t,n,r){super(J.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?fA():ZO(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}>`}};Nk=Symbol.toStringTag,pA[Nk]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(pA.prototype);function mA(e){let t=e;switch(e.typeId){case J.Decimal:return e.bitWidth/32;case J.Interval:return t.unit===KO.MONTH_DAY_NANO?4:1+t.unit;case J.FixedSizeList:return t.listSize;case J.FixedSizeBinary:return t.byteWidth;default:return 1}}var hA=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 gA(this,e,t)}getVisitFnByTypeId(e,t=!0){return _A(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 gA(e,t,n=!0){return typeof t==`number`?_A(e,t,n):typeof t==`string`&&t in J?_A(e,J[t],n):t&&t instanceof Pk?_A(e,vA(t),n):t?.type&&t.type instanceof Pk?_A(e,vA(t.type),n):_A(e,J.NONE,n)}function _A(e,t,n=!0){let r=null;switch(t){case J.Null:r=e.visitNull;break;case J.Bool:r=e.visitBool;break;case J.Int:r=e.visitInt;break;case J.Int8:r=e.visitInt8||e.visitInt;break;case J.Int16:r=e.visitInt16||e.visitInt;break;case J.Int32:r=e.visitInt32||e.visitInt;break;case J.Int64:r=e.visitInt64||e.visitInt;break;case J.Uint8:r=e.visitUint8||e.visitInt;break;case J.Uint16:r=e.visitUint16||e.visitInt;break;case J.Uint32:r=e.visitUint32||e.visitInt;break;case J.Uint64:r=e.visitUint64||e.visitInt;break;case J.Float:r=e.visitFloat;break;case J.Float16:r=e.visitFloat16||e.visitFloat;break;case J.Float32:r=e.visitFloat32||e.visitFloat;break;case J.Float64:r=e.visitFloat64||e.visitFloat;break;case J.Utf8:r=e.visitUtf8;break;case J.LargeUtf8:r=e.visitLargeUtf8;break;case J.Binary:r=e.visitBinary;break;case J.LargeBinary:r=e.visitLargeBinary;break;case J.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case J.Date:r=e.visitDate;break;case J.DateDay:r=e.visitDateDay||e.visitDate;break;case J.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case J.Timestamp:r=e.visitTimestamp;break;case J.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case J.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case J.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case J.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case J.Time:r=e.visitTime;break;case J.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case J.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case J.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case J.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case J.Decimal:r=e.visitDecimal;break;case J.List:r=e.visitList;break;case J.Struct:r=e.visitStruct;break;case J.Union:r=e.visitUnion;break;case J.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case J.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case J.Dictionary:r=e.visitDictionary;break;case J.Interval:r=e.visitInterval;break;case J.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case J.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case J.IntervalMonthDayNano:r=e.visitIntervalMonthDayNano||e.visitInterval;break;case J.Duration:r=e.visitDuration;break;case J.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case J.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case J.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case J.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case J.FixedSizeList:r=e.visitFixedSizeList;break;case J.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${J[t]}'`)}function vA(e){switch(e.typeId){case J.Null:return J.Null;case J.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?J.Int8:J.Uint8;case 16:return n?J.Int16:J.Uint16;case 32:return n?J.Int32:J.Uint32;case 64:return n?J.Int64:J.Uint64}return J.Int}case J.Float:switch(e.precision){case UO.HALF:return J.Float16;case UO.SINGLE:return J.Float32;case UO.DOUBLE:return J.Float64}return J.Float;case J.Binary:return J.Binary;case J.LargeBinary:return J.LargeBinary;case J.Utf8:return J.Utf8;case J.LargeUtf8:return J.LargeUtf8;case J.Bool:return J.Bool;case J.Decimal:return J.Decimal;case J.Time:switch(e.unit){case GO.SECOND:return J.TimeSecond;case GO.MILLISECOND:return J.TimeMillisecond;case GO.MICROSECOND:return J.TimeMicrosecond;case GO.NANOSECOND:return J.TimeNanosecond}return J.Time;case J.Timestamp:switch(e.unit){case GO.SECOND:return J.TimestampSecond;case GO.MILLISECOND:return J.TimestampMillisecond;case GO.MICROSECOND:return J.TimestampMicrosecond;case GO.NANOSECOND:return J.TimestampNanosecond}return J.Timestamp;case J.Date:switch(e.unit){case WO.DAY:return J.DateDay;case WO.MILLISECOND:return J.DateMillisecond}return J.Date;case J.Interval:switch(e.unit){case KO.DAY_TIME:return J.IntervalDayTime;case KO.YEAR_MONTH:return J.IntervalYearMonth;case KO.MONTH_DAY_NANO:return J.IntervalMonthDayNano}return J.Interval;case J.Duration:switch(e.unit){case GO.SECOND:return J.DurationSecond;case GO.MILLISECOND:return J.DurationMillisecond;case GO.MICROSECOND:return J.DurationMicrosecond;case GO.NANOSECOND:return J.DurationNanosecond}return J.Duration;case J.Map:return J.Map;case J.List:return J.List;case J.Struct:return J.Struct;case J.Union:switch(e.mode){case HO.Dense:return J.DenseUnion;case HO.Sparse:return J.SparseUnion}return J.Union;case J.FixedSizeBinary:return J.FixedSizeBinary;case J.FixedSizeList:return J.FixedSizeList;case J.Dictionary:return J.Dictionary}throw Error(`Unrecognized type '${J[e.typeId]}'`)}hA.prototype.visitInt8=null,hA.prototype.visitInt16=null,hA.prototype.visitInt32=null,hA.prototype.visitInt64=null,hA.prototype.visitUint8=null,hA.prototype.visitUint16=null,hA.prototype.visitUint32=null,hA.prototype.visitUint64=null,hA.prototype.visitFloat16=null,hA.prototype.visitFloat32=null,hA.prototype.visitFloat64=null,hA.prototype.visitDateDay=null,hA.prototype.visitDateMillisecond=null,hA.prototype.visitTimestampSecond=null,hA.prototype.visitTimestampMillisecond=null,hA.prototype.visitTimestampMicrosecond=null,hA.prototype.visitTimestampNanosecond=null,hA.prototype.visitTimeSecond=null,hA.prototype.visitTimeMillisecond=null,hA.prototype.visitTimeMicrosecond=null,hA.prototype.visitTimeNanosecond=null,hA.prototype.visitDenseUnion=null,hA.prototype.visitSparseUnion=null,hA.prototype.visitIntervalDayTime=null,hA.prototype.visitIntervalYearMonth=null,hA.prototype.visitIntervalMonthDayNano=null,hA.prototype.visitDuration=null,hA.prototype.visitDurationSecond=null,hA.prototype.visitDurationMillisecond=null,hA.prototype.visitDurationMicrosecond=null,hA.prototype.visitDurationNanosecond=null;var yA={};Dt(yA,{float64ToUint16:()=>CA,uint16ToFloat64:()=>SA});const bA=new Float64Array(1),xA=new Uint32Array(bA.buffer);function SA(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 CA(e){if(e!==e)return 32256;bA[0]=e;let t=(xA[1]&2147483648)>>16&65535,n=xA[1]&2146435072,r=0;return n>=1089470464?xA[0]>0?n=31744:(n=(n&2080374784)>>16,r=(xA[1]&1048575)>>10):n<=1056964608?(r=1048576+(xA[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(xA[1]&1048575)+512>>10),t|n|r&65535}var wA=class extends hA{};function TA(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const EA=(e,t,n)=>{e[t]=Math.floor(n/864e5)},DA=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},AA=({values:e},t,n)=>{e[t]=n},jA=({values:e},t,n)=>{e[t]=CA(n)},MA=(e,t,n)=>{switch(e.type.precision){case UO.HALF:return jA(e,t,n);case UO.SINGLE:case UO.DOUBLE:return AA(e,t,n)}},NA=({values:e},t,n)=>{EA(e,t,n.valueOf())},PA=({values:e},t,n)=>{e[t]=BigInt(n)},FA=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},IA=({values:e,valueOffsets:t},n,r)=>DA(e,t,n,r),LA=({values:e,valueOffsets:t},n,r)=>DA(e,t,n,JD(r)),RA=(e,t,n)=>{e.type.unit===WO.DAY?NA(e,t,n):PA(e,t,n)},zA=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},BA=({values:e},t,n)=>{e[t]=BigInt(n)},VA=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},HA=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},UA=(e,t,n)=>{switch(e.type.unit){case GO.SECOND:return zA(e,t,n);case GO.MILLISECOND:return BA(e,t,n);case GO.MICROSECOND:return VA(e,t,n);case GO.NANOSECOND:return HA(e,t,n)}},WA=({values:e},t,n)=>{e[t]=n},GA=({values:e},t,n)=>{e[t]=n},KA=({values:e},t,n)=>{e[t]=n},qA=({values:e},t,n)=>{e[t]=n},JA=(e,t,n)=>{switch(e.type.unit){case GO.SECOND:return WA(e,t,n);case GO.MILLISECOND:return GA(e,t,n);case GO.MICROSECOND:return KA(e,t,n);case GO.NANOSECOND:return qA(e,t,n)}},YA=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},XA=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=_j.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=_j.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},QA=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),$A=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),ej=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),tj=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),nj=(e,t,n)=>{let r=e.type.children.map(e=>_j.getVisitFn(e.type)),i=n instanceof Map?ej(t,n):n instanceof bN?$A(t,n):Array.isArray(n)?QA(t,n):tj(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},rj=(e,t,n)=>{e.type.mode===HO.Dense?ij(e,t,n):aj(e,t,n)},ij=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];_j.visit(i,e.valueOffsets[t],n)},aj=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];_j.visit(i,t,n)},oj=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},sj=(e,t,n)=>{switch(e.type.unit){case KO.YEAR_MONTH:return lj(e,t,n);case KO.DAY_TIME:return cj(e,t,n);case KO.MONTH_DAY_NANO:return uj(e,t,n)}},cj=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},lj=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},uj=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},dj=({values:e},t,n)=>{e[t]=n},fj=({values:e},t,n)=>{e[t]=n},pj=({values:e},t,n)=>{e[t]=n},mj=({values:e},t,n)=>{e[t]=n},hj=(e,t,n)=>{switch(e.type.unit){case GO.SECOND:return dj(e,t,n);case GO.MILLISECOND:return fj(e,t,n);case GO.MICROSECOND:return pj(e,t,n);case GO.NANOSECOND:return mj(e,t,n)}},gj=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=_j.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${XO(e)}: ${XO(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new xj(this[vj],this[yj])}},xj=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[vj].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(e,t){if(e[vj].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[vj].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=hM.visit(e[vj].children[n],e[yj]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[vj].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(_j.visit(e[vj].children[r],e[yj],n),Reflect.set(e,t,n))}};const Cj=new Sj;var wj=class extends hA{};function Tj(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Ej=(e,t)=>864e5*e[t],Dj=(e,t)=>null,Oj=(e,t,n)=>{if(n+1>=t.length)return null;let r=ZO(t[n]),i=ZO(t[n+1]);return e.subarray(r,i)},kj=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Ej(e,t),jj=({values:e},t)=>ZO(e[t]),Mj=({stride:e,values:t},n)=>t[e*n],Nj=({stride:e,values:t},n)=>SA(t[e*n]),Pj=({values:e},t)=>e[t],Fj=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),Ij=({values:e,valueOffsets:t},n)=>Oj(e,t,n),Lj=({values:e,valueOffsets:t},n)=>{let r=Oj(e,t,n);return r===null?null:KD(r)},Rj=({values:e},t)=>e[t],zj=({type:e,values:t},n)=>e.precision===UO.HALF?SA(t[n]):t[n],Bj=(e,t)=>e.type.unit===WO.DAY?Aj(e,t):jj(e,t),Vj=({values:e},t)=>1e3*ZO(e[t]),Hj=({values:e},t)=>ZO(e[t]),Uj=({values:e},t)=>QO(e[t],BigInt(1e3)),Wj=({values:e},t)=>QO(e[t],BigInt(1e6)),Gj=(e,t)=>{switch(e.type.unit){case GO.SECOND:return Vj(e,t);case GO.MILLISECOND:return Hj(e,t);case GO.MICROSECOND:return Uj(e,t);case GO.NANOSECOND:return Wj(e,t)}},Kj=({values:e},t)=>e[t],qj=({values:e},t)=>e[t],Jj=({values:e},t)=>e[t],Yj=({values:e},t)=>e[t],Xj=(e,t)=>{switch(e.type.unit){case GO.SECOND:return Kj(e,t);case GO.MILLISECOND:return qj(e,t);case GO.MICROSECOND:return Jj(e,t);case GO.NANOSECOND:return Yj(e,t)}},Zj=({values:e,stride:t},n)=>dk.decimal(e.subarray(t*n,t*(n+1))),Qj=(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 bN([c])},$j=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new bM(o.slice(i,a-i))},eM=(e,t)=>new bj(e,t),tM=(e,t)=>e.type.mode===HO.Dense?nM(e,t):rM(e,t),nM=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return hM.visit(r,e.valueOffsets[t])},rM=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return hM.visit(r,t)},iM=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},aM=(e,t)=>e.type.unit===KO.MONTH_DAY_NANO?cM(e,t):e.type.unit===KO.DAY_TIME?oM(e,t):sM(e,t),oM=({values:e},t)=>e.subarray(2*t,2*(t+1)),sM=({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},cM=({values:e},t)=>e.subarray(4*t,4*(t+1)),lM=({values:e},t)=>e[t],uM=({values:e},t)=>e[t],dM=({values:e},t)=>e[t],fM=({values:e},t)=>e[t],pM=(e,t)=>{switch(e.type.unit){case GO.SECOND:return lM(e,t);case GO.MILLISECOND:return uM(e,t);case GO.MICROSECOND:return dM(e,t);case GO.NANOSECOND:return fM(e,t)}},mM=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new bN([a])};wj.prototype.visitNull=Tj(Dj),wj.prototype.visitBool=Tj(kj),wj.prototype.visitInt=Tj(Rj),wj.prototype.visitInt8=Tj(Mj),wj.prototype.visitInt16=Tj(Mj),wj.prototype.visitInt32=Tj(Mj),wj.prototype.visitInt64=Tj(Pj),wj.prototype.visitUint8=Tj(Mj),wj.prototype.visitUint16=Tj(Mj),wj.prototype.visitUint32=Tj(Mj),wj.prototype.visitUint64=Tj(Pj),wj.prototype.visitFloat=Tj(zj),wj.prototype.visitFloat16=Tj(Nj),wj.prototype.visitFloat32=Tj(Mj),wj.prototype.visitFloat64=Tj(Mj),wj.prototype.visitUtf8=Tj(Lj),wj.prototype.visitLargeUtf8=Tj(Lj),wj.prototype.visitBinary=Tj(Ij),wj.prototype.visitLargeBinary=Tj(Ij),wj.prototype.visitFixedSizeBinary=Tj(Fj),wj.prototype.visitDate=Tj(Bj),wj.prototype.visitDateDay=Tj(Aj),wj.prototype.visitDateMillisecond=Tj(jj),wj.prototype.visitTimestamp=Tj(Gj),wj.prototype.visitTimestampSecond=Tj(Vj),wj.prototype.visitTimestampMillisecond=Tj(Hj),wj.prototype.visitTimestampMicrosecond=Tj(Uj),wj.prototype.visitTimestampNanosecond=Tj(Wj),wj.prototype.visitTime=Tj(Xj),wj.prototype.visitTimeSecond=Tj(Kj),wj.prototype.visitTimeMillisecond=Tj(qj),wj.prototype.visitTimeMicrosecond=Tj(Jj),wj.prototype.visitTimeNanosecond=Tj(Yj),wj.prototype.visitDecimal=Tj(Zj),wj.prototype.visitList=Tj(Qj),wj.prototype.visitStruct=Tj(eM),wj.prototype.visitUnion=Tj(tM),wj.prototype.visitDenseUnion=Tj(nM),wj.prototype.visitSparseUnion=Tj(rM),wj.prototype.visitDictionary=Tj(iM),wj.prototype.visitInterval=Tj(aM),wj.prototype.visitIntervalDayTime=Tj(oM),wj.prototype.visitIntervalYearMonth=Tj(sM),wj.prototype.visitIntervalMonthDayNano=Tj(cM),wj.prototype.visitDuration=Tj(pM),wj.prototype.visitDurationSecond=Tj(lM),wj.prototype.visitDurationMillisecond=Tj(uM),wj.prototype.visitDurationMicrosecond=Tj(dM),wj.prototype.visitDurationNanosecond=Tj(fM),wj.prototype.visitFixedSizeList=Tj(mM),wj.prototype.visitMap=Tj($j);const hM=new wj,gM=Symbol.for(`keys`),_M=Symbol.for(`vals`),vM=Symbol.for(`kKeysAsStrings`),yM=Symbol.for(`_kKeysAsStrings`);var bM=class{constructor(e){return this[gM]=new bN([e.children[0]]).memoize(),this[_M]=e.children[1],new Proxy(this,new SM)}get[vM](){return this[yM]||(this[yM]=Array.from(this[gM].toArray(),String))}[Symbol.iterator](){return new xM(this[gM],this[_M])}get size(){return this[gM].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[gM],t=this[_M],n={};for(let r=-1,i=e.length;++r`${XO(e)}: ${XO(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},xM=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),hM.visit(this.vals,e)]})}},SM=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[vM]}has(e,t){return e[vM].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[vM].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[vM].indexOf(t);if(n!==-1){let r=hM.visit(Reflect.get(e,_M),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[vM].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(_j.visit(Reflect.get(e,_M),r,n),Reflect.set(e,t,n))}};Object.defineProperties(bM.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[gM]:{writable:!0,enumerable:!1,configurable:!1,value:null},[_M]:{writable:!0,enumerable:!1,configurable:!1,value:null},[yM]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var CM={};Dt(CM,{clampRange:()=>TM,createElementComparator:()=>OM,wrapIndex:()=>EM});let wM;function TM(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 EM=(e,t)=>e<0?t+e:e,DM=e=>e!==e;function OM(e){let t=typeof e;if(t!==`object`||e===null)return DM(e)?DM: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?VO(e,t):!1:e instanceof Map?AM(e):Array.isArray(e)?kM(e):e instanceof bN?jM(e):MM(e,!0)}function kM(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 PM(e,n);case Map:return IM(e,n,n.keys());case bM:case bj:case Object:case void 0:return IM(e,n,t||Object.keys(n))}return n instanceof bN?FM(e,n):!1}}function PM(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++rUM,getBit:()=>zM,getBool:()=>RM,packBools:()=>HM,popcnt_array:()=>GM,popcnt_bit_range:()=>WM,popcnt_uint32:()=>KM,setBool:()=>BM,truncateBitmap:()=>VM});function RM(e,t,n,r){return(n&1<>r}function BM(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):HM(new UM(n,e,t,null,RM)).subarray(0,r)),i}return n}function HM(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 UM=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 WM(e,t,i)+WM(e,r,n)+GM(e,i>>3,r-i>>3)}function GM(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+=KM(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=KM(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=KM(a.getUint8(i)),i+=1;return r}function KM(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}const qM=-1;var JM=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 Pk.isSparseUnion(e)||Pk.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(Pk.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=qM&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-WM(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=mA(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(Pk.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===HO.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(VM(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===J.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(VM(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[qO.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[qO.TYPE])&&(a[qO.TYPE]=i.subarray(e,e+t)),(i=a[qO.OFFSET])&&(a[qO.OFFSET]=i.subarray(e,e+t+1))||(i=a[qO.DATA])&&(a[qO.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};JM.prototype.children=Object.freeze([]);var YM=class e extends hA{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new JM(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=uO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=dO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=uO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=dO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=fO(e.nullBitmap),a=uO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=fO(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=sO(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(Pk.isSparseUnion(t))return new JM(t,n,a,o,[void 0,void 0,void 0,i],r);let s=uO(e.valueOffsets);return new JM(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=fO(t.nullBitmap),a=sO(n.indices.ArrayType,t.data),{dictionary:o=new bN([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new JM(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(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=fO(t.nullBitmap),{length:o=i.length/mA(n),nullCount:s=t.nullBitmap?-1:0}=t;return new JM(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=fO(t.nullBitmap),o=uO(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new JM(n,r,s,c,[o,void 0,a],[i])}};const XM=new YM;var ZM=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 eN(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function tN(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 nN(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function lN(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new UM(n,e.offset+(t||0),e.length,n,RM)){if(!i)return r;++r}return-1}function uN(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case J.Union:break;case J.Dictionary:break;default:return lN(e,n)}let r=hM.getVisitFn(e),i=OM(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 ZM(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new hN(a)})}var hN=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof JM)))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}=vN[o.typeId],r=a[0];this.isValid=e=>rN(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,yN[o.typeId]),this._offsets=eN(a);break}this.data=a,this.type=o,this.stride=mA(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 QM(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`${J[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(EM(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return gN.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(TM(this,t,n,({data:e,_offsets:t},n,r)=>tN(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case J.Int:case J.Float:case J.Decimal:case J.Time:case J.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 Pk.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(Pk.isDictionary(this.type)){let t=new xN(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new xN(this)}unmemoize(){if(Pk.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}};_N=Symbol.toStringTag,bN[_N]=(e=>{e.type=Pk.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(J).map(e=>J[e]).filter(e=>typeof e==`number`&&e!==J.NONE);for(let n of t){let t=hM.getVisitFnByTypeId(n),r=_j.getVisitFnByTypeId(n),i=fN.getVisitFnByTypeId(n);vN[n]={get:t,set:r,indexOf:i},yN[n]=Object.create(e,{isValid:{value:iN(rN)},get:{value:iN(hM.getVisitFnByTypeId(n))},set:{value:aN(_j.getVisitFnByTypeId(n))},indexOf:{value:oN(fN.getVisitFnByTypeId(n))}})}return`Vector`})(bN.prototype);var xN=class e extends bN{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 bN(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},SN={};Dt(SN,{BaseInt64:()=>DN,Int128:()=>AN,Int64:()=>kN,Uint64:()=>ON});const CN=65536;function wN(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const TN=8,EN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];var DN=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`${wN(this.buffer[3])} ${wN(this.buffer[2])} ${wN(this.buffer[1])} ${wN(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;nMN,toIntervalDayTimeObjects:()=>PN,toIntervalMonthDayNanoInt32Array:()=>NN,toIntervalMonthDayNanoObjects:()=>FN});function MN(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 PN(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 IN=class extends hA{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 LN(e,t){return t instanceof e.constructor}function RN(e,t){return e===t||LN(e,t)}function zN(e,t){return e===t||LN(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function BN(e,t){return e===t||LN(e,t)&&e.precision===t.precision}function VN(e,t){return e===t||LN(e,t)&&e.byteWidth===t.byteWidth}function HN(e,t){return e===t||LN(e,t)&&e.unit===t.unit}function UN(e,t){return e===t||LN(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function WN(e,t){return e===t||LN(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function GN(e,t){return e===t||LN(e,t)&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}function KN(e,t){return e===t||LN(e,t)&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}function qN(e,t){return e===t||LN(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&$N.compareManyFields(e.children,t.children)}function JN(e,t){return e===t||LN(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&$N.visit(e.indices,t.indices)&&$N.visit(e.dictionary,t.dictionary)}function YN(e,t){return e===t||LN(e,t)&&e.unit===t.unit}function XN(e,t){return e===t||LN(e,t)&&e.unit===t.unit}function ZN(e,t){return e===t||LN(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}function QN(e,t){return e===t||LN(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}IN.prototype.visitNull=RN,IN.prototype.visitBool=RN,IN.prototype.visitInt=zN,IN.prototype.visitInt8=zN,IN.prototype.visitInt16=zN,IN.prototype.visitInt32=zN,IN.prototype.visitInt64=zN,IN.prototype.visitUint8=zN,IN.prototype.visitUint16=zN,IN.prototype.visitUint32=zN,IN.prototype.visitUint64=zN,IN.prototype.visitFloat=BN,IN.prototype.visitFloat16=BN,IN.prototype.visitFloat32=BN,IN.prototype.visitFloat64=BN,IN.prototype.visitUtf8=RN,IN.prototype.visitLargeUtf8=RN,IN.prototype.visitBinary=RN,IN.prototype.visitLargeBinary=RN,IN.prototype.visitFixedSizeBinary=VN,IN.prototype.visitDate=HN,IN.prototype.visitDateDay=HN,IN.prototype.visitDateMillisecond=HN,IN.prototype.visitTimestamp=UN,IN.prototype.visitTimestampSecond=UN,IN.prototype.visitTimestampMillisecond=UN,IN.prototype.visitTimestampMicrosecond=UN,IN.prototype.visitTimestampNanosecond=UN,IN.prototype.visitTime=WN,IN.prototype.visitTimeSecond=WN,IN.prototype.visitTimeMillisecond=WN,IN.prototype.visitTimeMicrosecond=WN,IN.prototype.visitTimeNanosecond=WN,IN.prototype.visitDecimal=RN,IN.prototype.visitList=GN,IN.prototype.visitStruct=KN,IN.prototype.visitUnion=qN,IN.prototype.visitDenseUnion=qN,IN.prototype.visitSparseUnion=qN,IN.prototype.visitDictionary=JN,IN.prototype.visitInterval=YN,IN.prototype.visitIntervalDayTime=YN,IN.prototype.visitIntervalYearMonth=YN,IN.prototype.visitIntervalMonthDayNano=YN,IN.prototype.visitDuration=XN,IN.prototype.visitDurationSecond=XN,IN.prototype.visitDurationMillisecond=XN,IN.prototype.visitDurationMicrosecond=XN,IN.prototype.visitDurationNanosecond=XN,IN.prototype.visitFixedSizeList=ZN,IN.prototype.visitMap=QN;const $N=new IN;function eP(e,t){return $N.compareSchemas(e,t)}function tP(e,t){return $N.compareFields(e,t)}function nP(e,t){return $N.visit(e,t)}const rP=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$O),SN),LM),yA),nO),CM),JO),jN),{compareSchemas:eP,compareFields:tP,compareTypes:nP}),iP=365.2425,aP=10**8*24*60*60*1e3,oP=6048e5,sP=864e5,cP=3600,lP=cP*24,uP=lP*7,dP=lP*iP,fP=dP/12,pP=fP*3,mP=Symbol.for(`constructDateFrom`);function hP(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&mP in e?e[mP](t):e instanceof Date?new e.constructor(t):new Date(t)}function gP(e,t){return hP(t||e,e)}let _P={};function vP(){return _P}function yP(e,t){var n,r;let i=vP(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=gP(e,t?.in),s=o.getDay(),c=(s=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function SP(e){let t=gP(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 CP(e,...t){let n=hP.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function wP(e,t){let n=gP(e,t?.in);return n.setHours(0,0,0,0),n}function TP(e,t,n){let[r,i]=CP(n?.in,e,t),a=wP(r),o=wP(i),s=+a-SP(a),c=+o-SP(o);return Math.round((s-c)/sP)}function EP(e,t){let n=xP(e,t),r=hP(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),bP(r)}function DP(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function OP(e){return!(!DP(e)&&typeof e!=`number`||isNaN(+gP(e)))}function kP(e,t){let n=gP(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const AP={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`}},jP=(e,t,n)=>{let r,i=AP[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 MP(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const NP={full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},PP={full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},FP={full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},IP={date:MP({formats:NP,defaultWidth:`full`}),time:MP({formats:PP,defaultWidth:`full`}),dateTime:MP({formats:FP,defaultWidth:`full`})},LP={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},RP=(e,t,n,r)=>LP[e];function zP(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 BP={narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},VP={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},HP={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`]},UP={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`]},WP={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`}},GP={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`}},KP=(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`},qP={ordinalNumber:KP,era:zP({values:BP,defaultWidth:`wide`}),quarter:zP({values:VP,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:zP({values:HP,defaultWidth:`wide`}),day:zP({values:UP,defaultWidth:`wide`}),dayPeriod:zP({values:WP,defaultWidth:`wide`,formattingValues:GP,defaultFormattingWidth:`wide`})};function JP(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)?XP(s,e=>e.test(o)):YP(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 YP(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function XP(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 QP=/^(\d+)(th|st|nd|rd)?/i,$P=/\d+/i,eF={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},tF={any:[/^b/i,/^(a|c)/i]},nF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rF={any:[/1/i,/2/i,/3/i,/4/i]},iF={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},aF={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]},oF={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},sF={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]},cF={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},lF={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}},uF={ordinalNumber:ZP({matchPattern:QP,parsePattern:$P,valueCallback:e=>parseInt(e,10)}),era:JP({matchPatterns:eF,defaultMatchWidth:`wide`,parsePatterns:tF,defaultParseWidth:`any`}),quarter:JP({matchPatterns:nF,defaultMatchWidth:`wide`,parsePatterns:rF,defaultParseWidth:`any`,valueCallback:e=>e+1}),month:JP({matchPatterns:iF,defaultMatchWidth:`wide`,parsePatterns:aF,defaultParseWidth:`any`}),day:JP({matchPatterns:oF,defaultMatchWidth:`wide`,parsePatterns:sF,defaultParseWidth:`any`}),dayPeriod:JP({matchPatterns:cF,defaultMatchWidth:`any`,parsePatterns:lF,defaultParseWidth:`any`})},dF={code:`en-US`,formatDistance:jP,formatLong:IP,formatRelative:RP,localize:qP,match:uF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fF(e,t){let n=gP(e,t?.in),r=TP(n,kP(n)),i=r+1;return i}function pF(e,t){let n=gP(e,t?.in),r=bP(n)-+EP(n);return Math.round(r/oP)+1}function mF(e,t){var n,r;let i=gP(e,t?.in),a=i.getFullYear(),o=vP(),s=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??o.firstWeekContainsDate??((r=o.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,c=hP(t?.in||e,0);c.setFullYear(a+1,0,s),c.setHours(0,0,0,0);let l=yP(c,t),u=hP(t?.in||e,0);u.setFullYear(a,0,s),u.setHours(0,0,0,0);let d=yP(u,t);return+i>=+l?a+1:+i>=+d?a:a-1}function hF(e,t){var n,r;let i=vP(),a=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??i.firstWeekContainsDate??((r=i.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,o=mF(e,t),s=hP(t?.in||e,0);s.setFullYear(o,0,a),s.setHours(0,0,0,0);let c=yP(s,t);return c}function gF(e,t){let n=gP(e,t?.in),r=yP(n,t)-+hF(n,t);return Math.round(r/oP)+1}function _F(e,t){let n=e<0?`-`:``,r=Math.abs(e).toString().padStart(t,`0`);return n+r}const vF={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return _F(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):_F(n+1,2)},d(e,t){return _F(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 _F(e.getHours()%12||12,t.length)},H(e,t){return _F(e.getHours(),t.length)},m(e,t){return _F(e.getMinutes(),t.length)},s(e,t){return _F(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*10**(n-3));return _F(i,t.length)}},yF={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},bF={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 vF.y(e,t)},Y:function(e,t,n,r){let i=mF(e,r),a=i>0?i:1-i;if(t===`YY`){let e=a%100;return _F(e,2)}return t===`Yo`?n.ordinalNumber(a,{unit:`year`}):_F(a,t.length)},R:function(e,t){let n=xP(e);return _F(n,t.length)},u:function(e,t){let n=e.getFullYear();return _F(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 _F(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 _F(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 vF.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 _F(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=gF(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):_F(i,t.length)},I:function(e,t,n){let r=pF(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):_F(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):vF.d(e,t)},D:function(e,t,n){let r=fF(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):_F(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 _F(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 _F(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 _F(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?yF.noon:r===0?yF.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?yF.evening:r>=12?yF.afternoon:r>=4?yF.morning:yF.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 vF.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):vF.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):_F(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):_F(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):vF.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):vF.s(e,t)},S:function(e,t){return vF.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return SF(r);case`XXXX`:case`XX`:return CF(r);case`XXXXX`:case`XXX`:default:return CF(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return SF(r);case`xxxx`:case`xx`:return CF(r);case`xxxxx`:case`xxx`:default:return CF(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+xF(r,`:`);case`OOOO`:default:return`GMT`+CF(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+xF(r,`:`);case`zzzz`:default:return`GMT`+CF(r,`:`)}},t:function(e,t,n){let r=Math.trunc(e/1e3);return _F(r,t.length)},T:function(e,t,n){return _F(+e,t.length)}};function xF(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+_F(a,2)}function SF(e,t){if(e%60==0){let t=e>0?`-`:`+`;return t+_F(Math.abs(e)/60,2)}return CF(e,t)}function CF(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=_F(Math.trunc(r/60),2),a=_F(r%60,2);return n+i+t+a}const wF=(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`})}},TF=(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`})}},EF=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return wF(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}}`,wF(r,t)).replace(`{{time}}`,TF(i,t))},DF={p:TF,P:EF},OF=/^D+$/,kF=/^Y+$/,AF=[`D`,`DD`,`YY`,`YYYY`];function jF(e){return OF.test(e)}function MF(e){return kF.test(e)}function NF(e,t,n){let r=PF(e,t,n);if(console.warn(r),AF.includes(e))throw RangeError(r)}function PF(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 FF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,LF=/^'([^]*?)'?$/,RF=/''/g,zF=/[a-zA-Z]/;function BF(e,t,n){var r,i,a,o;let s=vP(),c=n?.locale??s.locale??dF,l=n?.firstWeekContainsDate??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((i=s.locale)==null||(i=i.options)==null?void 0:i.firstWeekContainsDate)??1,u=n?.weekStartsOn??(n==null||(a=n.locale)==null||(a=a.options)==null?void 0:a.weekStartsOn)??s.weekStartsOn??((o=s.locale)==null||(o=o.options)==null?void 0:o.weekStartsOn)??0,d=gP(e,n?.in);if(!OP(d))throw RangeError(`Invalid time value`);let f=t.match(IF).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=DF[t];return n(e,c.formatLong)}return e}).join(``).match(FF).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:VF(e)};if(bF[t])return{isToken:!0,value:e};if(t.match(zF))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});c.localize.preprocessor&&(f=c.localize.preprocessor(d,f));let p={firstWeekContainsDate:l,weekStartsOn:u,locale:c};return f.map(r=>{if(!r.isToken)return r.value;let i=r.value;(!n?.useAdditionalWeekYearTokens&&MF(i)||!n?.useAdditionalDayOfYearTokens&&jF(i))&&NF(i,t,String(e));let a=bF[i[0]];return a(d,i,c.localize,p)}).join(``)}function VF(e){let t=e.match(LF);return t?t[1].replace(RF,`'`):e}function HF(e,t){return gP(e*1e3,t?.in)}function UF(e,t){let n=WF(t)?new t(0):hP(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function WF(e){var t;return typeof e==`function`&&(t=e.prototype)?.constructor===e}function GF(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 KF(e){return e==null}function qF(e){return e!=null}async function JF(){if(typeof window<`u`&&window!==null)return`browser`;try{let e=await jt(()=>import(`./__vite-browser-external-CY0qZjqC.js`).then(kt(1)),__vite__mapDeps([0,1,2]));return e!==void 0&&e.versions!=null&&e.versions.node!=null?`node`:`unknown`}catch{return`unknown`}}function YF(e){return KF(e)?!1:Pk.isInt(e.type)&&!tI(e)||XF(e)}function XF(e){return KF(e)?!1:Pk.isInt(e.type)&&e.type.isSigned===!1}function ZF(e){return KF(e)?!1:Pk.isFloat(e.type)??!1}function QF(e){return KF(e)?!1:Pk.isDecimal(e.type)}function $F(e){return KF(e)?!1:Pk.isBool(e.type)}function eI(e){return KF(e)?!1:Pk.isDuration(e.type)}function tI(e){return KF(e)?!1:Pk.isInt(e.type)&&e.metadata.get(`ARROW:extension:name`)===`period`}function nI(e){return KF(e)?!1:Pk.isTimestamp(e.type)}function rI(e){return KF(e)?!1:Pk.isDate(e.type)}function iI(e){return KF(e)?!1:Pk.isTime(e.type)}function aI(e){return KF(e)?!1:Pk.isList(e.type)||Pk.isFixedSizeList(e.type)}function oI(e){return KF(e)?!1:Pk.isStruct(e.type)||Pk.isMap(e.type)}function sI(e){return KF(e)?!1:Pk.isStruct(e.type)&&e.metadata.get(`ARROW:extension:name`)===`interval`||Pk.isInterval(e.type)}const cI=new Date(1970,0,1);function lI(e,t){let n;if(t===GO.MILLISECOND)n=1e3;else if(t===GO.MICROSECOND)n=1e3*1e3;else if(t===GO.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 uI(e,t){var n;let r=lI(e,(t==null||(n=t.type)==null?void 0:n.unit)??GO.SECOND);return HF(r)}function dI(e,t){let n=uI(e,t);return BF(n,n.getMilliseconds()===0?`HH:mm:ss`:`HH:mm:ss.SSS`)}function fI(e){let t=`yyyy-MM-dd`;return e instanceof Date||typeof e==`number`&&Number.isFinite(e)?BF(e,t):(console.warn(`Unsupported date value: ${e}`),String(e))}function pI(e,t){var n;if(!(e instanceof Date||typeof e==`number`&&Number.isFinite(e)))return console.warn(`Unsupported datetime value: ${e}`),null;let r,i=t==null||(n=t.type)==null?void 0:n.timezone;return r=i?new RD(e,i):new RD(e),UF(r,Date)}function mI(e,t){var n;let r=(t==null||(n=t.type)==null?void 0:n.scale)||0,i=rP.bigNumToString(new rP.BN(e)).padStart(r,`0`);if(r===0)return i;let a=``;i.startsWith(`-`)&&(a=`-`,i=i.slice(1));let o=i.slice(0,-r)||`0`,s=GF(i.slice(-r),`0`)||``;return`${a}${o}${s?`.${s}`:``}`}const hI=new Intl.NumberFormat(`en-US`,{style:`decimal`,maximumFractionDigits:4,minimumFractionDigits:4,useGrouping:!0});function gI(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 _I(e,t){if(Pk.isInterval(t?.type))return gI(e);let n=t&&t.metadata.get(`ARROW:extension:name`);if(n&&n===`pandas.interval`){var r,i;let n=JSON.parse(t.metadata.get(`ARROW:extension:metadata`)),{closed:a}=n,o=e.toJSON(),s=a===`both`||a===`left`?`[`:`(`,c=a===`both`||a===`right`?`]`:`)`,l=yI(o.left,(r=t.type)==null||(r=r.children)==null?void 0:r[0]),u=yI(o.right,(i=t.type)==null||(i=i.children)==null?void 0:i[1]);return`${s+l}, ${u+c}`}return String(e)}function vI(e,t){return t?.type instanceof sA?JSON.parse(JSON.stringify(e,(e,t)=>{if(qF(t))return typeof t==`bigint`?Number(t):t})):JSON.parse(JSON.stringify(e,(e,t)=>typeof t==`bigint`?Number(t):t))}function yI(e,t){if(KF(e))return null;let n=e instanceof Date||Number.isFinite(e);if(n&&rI(t))return fI(e);if(typeof e==`bigint`&&iI(t))return dI(Number(e),t);if(n&&nI(t))return pI(e,t);if(tI(t))throw Error(`Period type is not supported yet`);if(sI(t))return _I(e,t);if(eI(t))throw Error(`Duration type is not supported yet`);return QF(t)?mI(e,t):ZF(t)&&Number.isFinite(e)||YF(t)?e:oI(t)||aI(t)?vI(e,t):$F(t)?!!e:String(e)}function bI(e){let t=(e.toArray()||[]).map(e=>e.toJSON())||[],n=t.map(t=>(e.schema.fields.forEach(e=>t[e.name]=yI(t[e.name],e)),t));return n}let xI=function(e){return e.ORIGIN_PRIVATE_FS=`origin-private-fs`,e.NODE_FS=`node-fs`,e}({});async function SI(e){let t=Bt(e,{logger:!1}),n,r,i=await JF();if(i===`browser`){if(t.bundles===void 0){let{getBundles:e}=await jt(async()=>{let{getBundles:e}=await import(`./default-browser-CICL74Rl.js`);return{getBundles:e}},[]);t.bundles=await e()}r=await AD(await t.bundles),n=new Worker(r.mainWorker)}else if(i===`node`){if(t.bundles===void 0){let{getBundles:e}=await jt(async()=>{let{getBundles:e}=await import(`./default-node-CDQZ5bF4.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]));t.bundles=await e()}r=await AD(await t.bundles);let e=r.mainWorker;e.startsWith(`/@fs/`)&&(e=e.replace(`/@fs/`,`file://`));let i=await jt(()=>import(`./browser-DAWwZmxu.js`),[]);n=new i.default(e,{type:`module`})}else throw Error(`Unsupported environment: ${i}`);let a;a=t.logger===!0?new JE:t.logger===!1?new qE:t.logger;let o=new aD(a,n);if(await o.instantiate(r.mainModule,r.pthreadWorker),t.storage)switch(t.storage.type){case xI.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 xI.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:bI(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:bI(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 CI(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 wI(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 Y=Symbol.for(`drizzle:entityKind`),TI=Symbol.for(`drizzle:hasOwnEntityKind`);function X(e,t){if(!e||typeof e!=`object`)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,Y))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(Y in n&&n[Y]===t[Y])return!0;n=Object.getPrototypeOf(n)}return!1}var EI=(Yn=class{constructor(t,n){e.defineProperty(this,`name`,void 0),e.defineProperty(this,`keyAsName`,void 0),e.defineProperty(this,`primary`,void 0),e.defineProperty(this,`notNull`,void 0),e.defineProperty(this,`default`,void 0),e.defineProperty(this,`defaultFn`,void 0),e.defineProperty(this,`onUpdateFn`,void 0),e.defineProperty(this,`hasDefault`,void 0),e.defineProperty(this,`isUnique`,void 0),e.defineProperty(this,`uniqueName`,void 0),e.defineProperty(this,`uniqueType`,void 0),e.defineProperty(this,`dataType`,void 0),e.defineProperty(this,`columnType`,void 0),e.defineProperty(this,`enumValues`,void 0),e.defineProperty(this,`generated`,void 0),e.defineProperty(this,`generatedIdentity`,void 0),e.defineProperty(this,`config`,void 0),this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!==`byDefault`}},e.defineProperty(Yn,Y,`Column`),Yn),DI=(Xn=class{constructor(t,n,r){e.defineProperty(this,`config`,void 0),e.defineProperty(this,`$default`,this.$defaultFn),e.defineProperty(this,`$onUpdate`,this.$onUpdateFn),this.config={name:t,keyAsName:t===``,notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:r,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}$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===``&&(this.config.name=e)}},e.defineProperty(Xn,Y,`ColumnBuilder`),Xn);const OI=Symbol.for(`drizzle:Name`);var kI=(Zn=class{constructor(t,n){e.defineProperty(this,`reference`,void 0),e.defineProperty(this,`_onUpdate`,`no action`),e.defineProperty(this,`_onDelete`,`no action`),this.reference=()=>{let{name:e,columns:n,foreignColumns:r}=t();return{name:e,columns:n,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.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 AI(e,this)}},e.defineProperty(Zn,Y,`PgForeignKeyBuilder`),Zn),AI=(Qn=class{constructor(t,n){e.defineProperty(this,`reference`,void 0),e.defineProperty(this,`onUpdate`,void 0),e.defineProperty(this,`onDelete`,void 0),this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._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[OI],...r,n[0].table[OI],...i];return e??`${a.join(`_`)}_fk`}},e.defineProperty(Qn,Y,`PgForeignKey`),Qn);function jI(e,...t){return e(...t)}function MI(e,t){return`${e[OI]}_${t.join(`_`)}_unique`}var NI=($n=class{constructor(t,n){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`nullsNotDistinctConfig`,!1),this.name=n,this.columns=t}nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(e){return new FI(e,this.columns,this.nullsNotDistinctConfig,this.name)}},e.defineProperty($n,Y,`PgUniqueConstraintBuilder`),$n),PI=(er=class{constructor(t){e.defineProperty(this,`name`,void 0),this.name=t}on(...e){return new NI(e,this.name)}},e.defineProperty(er,Y,`PgUniqueOnConstraintBuilder`),er),FI=(tr=class{constructor(t,n,r,i){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`name`,void 0),e.defineProperty(this,`nullsNotDistinct`,!1),this.table=t,this.columns=n,this.name=i??MI(this.table,this.columns.map(e=>e.name)),this.nullsNotDistinct=r}getName(){return this.name}},e.defineProperty(tr,Y,`PgUniqueConstraint`),tr);function II(e,t,n){for(let r=t;rArray.isArray(e)?zI(e):typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:`${e}`).join(`,`)}}`}var BI=(nr=class extends DI{constructor(...t){super(...t),e.defineProperty(this,`foreignKeyConfigs`,[])}array(e){return new WI(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})=>jI((n,r)=>{let i=new kI(()=>{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 HI(e,this.config)}},e.defineProperty(nr,Y,`PgColumnBuilder`),nr),VI=(rr=class extends EI{constructor(e,t){t.uniqueName||=MI(e,[t.name]),super(e,t),this.table=e}},e.defineProperty(rr,Y,`PgColumn`),rr),HI=(ir=class extends VI{constructor(...t){super(...t),e.defineProperty(this,`indexConfig`,{order:this.config.order??`asc`,nulls:this.config.nulls??`last`,opClass:this.config.opClass}),e.defineProperty(this,`defaultConfig`,{order:`asc`,nulls:`last`,opClass:void 0})}getSQLType(){return this.getSQLType()}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}},e.defineProperty(ir,Y,`ExtraConfigColumn`),ir),UI=(ar=class{constructor(t,n,r,i){e.defineProperty(this,`name`,void 0),e.defineProperty(this,`keyAsName`,void 0),e.defineProperty(this,`type`,void 0),e.defineProperty(this,`indexConfig`,void 0),this.name=t,this.keyAsName=n,this.type=r,this.indexConfig=i}},e.defineProperty(ar,Y,`IndexedColumn`),ar),WI=(or=class extends BI{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 GI(e,this.config,t)}},e.defineProperty(or,Y,`PgArrayBuilder`),or),GI=(sr=class t extends VI{constructor(t,n,r,i){super(t,n),e.defineProperty(this,`size`,void 0),this.baseColumn=r,this.range=i,this.size=n.size}getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size==`number`?this.size:``}]`}mapFromDriverValue(e){return typeof e==`string`&&(e=RI(e)),e.map(e=>this.baseColumn.mapFromDriverValue(e))}mapToDriverValue(e,n=!1){let r=e.map(e=>e===null?null:X(this.baseColumn,t)?this.baseColumn.mapToDriverValue(e,!0):this.baseColumn.mapToDriverValue(e));return n?r:zI(r)}},e.defineProperty(sr,Y,`PgArray`),sr),KI=(cr=class extends BI{constructor(e,t){super(e,`string`,`PgEnumObjectColumn`),this.config.enum=t}build(e){return new qI(e,this.config)}},e.defineProperty(cr,Y,`PgEnumObjectColumnBuilder`),cr),qI=(lr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`enum`,void 0),e.defineProperty(this,`enumValues`,this.config.enum.enumValues),this.enum=n.enum}getSQLType(){return this.enum.enumName}},e.defineProperty(lr,Y,`PgEnumObjectColumn`),lr);const JI=Symbol.for(`drizzle:isPgEnum`);function YI(e){return!!e&&typeof e==`function`&&JI in e&&e[JI]===!0}var XI=(ur=class extends BI{constructor(e,t){super(e,`string`,`PgEnumColumn`),this.config.enum=t}build(e){return new ZI(e,this.config)}},e.defineProperty(ur,Y,`PgEnumColumnBuilder`),ur),ZI=(dr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`enum`,this.config.enum),e.defineProperty(this,`enumValues`,this.config.enum.enumValues),this.enum=n.enum}getSQLType(){return this.enum.enumName}},e.defineProperty(dr,Y,`PgEnumColumn`),dr),QI=(fr=class{constructor(e,t,n,r=!1,i=[]){this._={brand:`Subquery`,sql:e,selectedFields:t,alias:n,isWith:r,usedTables:i}}},e.defineProperty(fr,Y,`Subquery`),fr),$I=(pr=class extends QI{},e.defineProperty(pr,Y,`WithSubquery`),pr),eL=`0.44.2`;let tL,nL;const rL={startActiveSpan(e,t){return tL?(nL||=tL.trace.getTracer(`drizzle-orm`,eL),jI((n,r)=>r.startActiveSpan(e,e=>{try{return t(e)}catch(t){throw e.setStatus({code:n.SpanStatusCode.ERROR,message:t instanceof Error?t.message:`Unknown error`}),t}finally{e.end()}}),tL,nL)):t()}},iL=Symbol.for(`drizzle:ViewBaseConfig`),aL=Symbol.for(`drizzle:Schema`),oL=Symbol.for(`drizzle:Columns`),sL=Symbol.for(`drizzle:ExtraConfigColumns`),cL=Symbol.for(`drizzle:OriginalName`),lL=Symbol.for(`drizzle:BaseName`),uL=Symbol.for(`drizzle:IsAlias`),dL=Symbol.for(`drizzle:ExtraConfigBuilder`),fL=Symbol.for(`drizzle:IsDrizzleTable`);var pL=(mr=class{constructor(t,n,r){e.defineProperty(this,OI,void 0),e.defineProperty(this,cL,void 0),e.defineProperty(this,aL,void 0),e.defineProperty(this,oL,void 0),e.defineProperty(this,sL,void 0),e.defineProperty(this,lL,void 0),e.defineProperty(this,uL,!1),e.defineProperty(this,fL,!0),e.defineProperty(this,dL,void 0),this[OI]=this[cL]=t,this[aL]=n,this[lL]=r}},e.defineProperty(mr,Y,`Table`),e.defineProperty(mr,`Symbol`,{Name:OI,Schema:aL,OriginalName:cL,Columns:oL,ExtraConfigColumns:sL,BaseName:lL,IsAlias:uL,ExtraConfigBuilder:dL}),mr);function mL(e){return e[OI]}function hL(e){return`${e[aL]??`public`}.${e[OI]}`}var gL=(hr=class{},e.defineProperty(hr,Y,`FakePrimitiveParam`),hr);function _L(e){return e!=null&&typeof e.getSQL==`function`}function vL(e){let t={sql:``,params:[]};for(let r of e){var n;t.sql+=r.sql,t.params.push(...r.params),(n=r.typings)?.length&&(t.typings||=[],t.typings.push(...r.typings))}return t}var yL=(gr=class{constructor(t){e.defineProperty(this,`value`,void 0),this.value=Array.isArray(t)?t:[t]}getSQL(){return new bL([this])}},e.defineProperty(gr,Y,`StringChunk`),gr),bL=(_r=class t{constructor(t){e.defineProperty(this,`decoder`,CL),e.defineProperty(this,`shouldInlineParams`,!1),e.defineProperty(this,`usedTables`,[]),this.queryChunks=t;for(let e of t)if(X(e,pL)){let t=e[pL.Symbol.Schema];this.usedTables.push(t===void 0?e[pL.Symbol.Name]:t+`.`+e[pL.Symbol.Name])}}append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return rL.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(e,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 vL(e.map(e=>{if(X(e,yL))return{sql:e.value.join(``),params:[]};if(X(e,xL))return{sql:a(e.value),params:[]};if(e===void 0)return{sql:``,params:[]};if(Array.isArray(e)){let t=[new yL(`(`)];for(let[n,r]of e.entries())t.push(r),ne},wL={mapToDriverValue:e=>e},TL={...CL,...wL};var EL=(yr=class{constructor(t,n=wL){e.defineProperty(this,`brand`,void 0),this.value=t,this.encoder=n}getSQL(){return new bL([this])}},e.defineProperty(yr,Y,`Param`),yr);function Z(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!==``)&&n.push(new yL(e[0]));for(let[r,i]of t.entries())n.push(i,new yL(e[r+1]));return new bL(n)}(e=>{function t(){return new bL([])}e.empty=t;function n(e){return new bL(e)}e.fromList=n;function r(e){return new bL([new yL(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 bL(n)}e.join=i;function a(e){return new xL(e)}e.identifier=a;function o(e){return new DL(e)}e.placeholder=o;function s(e,t){return new EL(e,t)}e.param=s})(Z||={}),(t=>{class n{constructor(t,n){e.defineProperty(this,`isSelectionField`,!1),this.sql=t,this.fieldAlias=n}getSQL(){return this.sql}clone(){return new n(this.sql,this.fieldAlias)}}e.defineProperty(n,Y,`SQL.Aliased`),t.Aliased=n})(bL||={});var DL=(br=class{constructor(e){this.name=e}getSQL(){return new bL([this])}},e.defineProperty(br,Y,`Placeholder`),br);function OL(e,t){return e.map(e=>{if(X(e,DL)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}if(X(e,EL)&&X(e.value,DL)){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 kL=Symbol.for(`drizzle:IsDrizzleView`);var AL=(xr=class{constructor({name:t,schema:n,selectedFields:r,query:i}){e.defineProperty(this,iL,void 0),e.defineProperty(this,kL,!0),this[iL]={name:t,originalName:t,schema:n,selectedFields:r,query:i,isExisting:!i,isAlias:!1}}getSQL(){return new bL([this])}},e.defineProperty(xr,Y,`View`),xr);EI.prototype.getSQL=function(){return new bL([this])},pL.prototype.getSQL=function(){return new bL([this])},QI.prototype.getSQL=function(){return new bL([this])};var jL=(Sr=class{constructor(e){this.table=e}get(e,t){return t===`table`?this.table:e[t]}},e.defineProperty(Sr,Y,`ColumnAliasProxyHandler`),Sr),ML=(Cr=class{constructor(e,t){this.alias=e,this.replaceOriginalName=t}get(e,t){if(t===pL.Symbol.IsAlias)return!0;if(t===pL.Symbol.Name||this.replaceOriginalName&&t===pL.Symbol.OriginalName)return this.alias;if(t===iL)return{...e[iL],name:this.alias,isAlias:!0};if(t===pL.Symbol.Columns){let t=e[pL.Symbol.Columns];if(!t)return t;let n={};return Object.keys(t).map(r=>{n[r]=new Proxy(t[r],new jL(new Proxy(e,this)))}),n}let n=e[t];return X(n,EI)?new Proxy(n,new jL(new Proxy(e,this))):n}},e.defineProperty(Cr,Y,`TableAliasProxyHandler`),Cr),NL=(wr=class{constructor(e){this.alias=e}get(e,t){return t===`sourceTable`?PL(e.sourceTable,this.alias):e[t]}},e.defineProperty(wr,Y,`RelationTableAliasProxyHandler`),wr);function PL(e,t){return new Proxy(e,new ML(t,!1))}function FL(e,t){return new Proxy(e,new jL(new Proxy(e.table,new ML(t,!1))))}function IL(e,t){return new bL.Aliased(LL(e.sql,t),e.fieldAlias)}function LL(e,t){return Z.join(e.queryChunks.map(e=>X(e,EI)?FL(e,t):X(e,bL)?LL(e,t):X(e,bL.Aliased)?IL(e,t):e))}var RL=(Tr=class extends Error{constructor({message:e,cause:t}){super(e),this.name=`DrizzleError`,this.cause=t}},e.defineProperty(Tr,Y,`DrizzleError`),Tr),zL=(Er=class extends RL{constructor(){super({message:`Rollback`})}},e.defineProperty(Er,Y,`TransactionRollbackError`),Er),BL=(Dr=class{write(e){console.log(e)}},e.defineProperty(Dr,Y,`ConsoleLogWriter`),Dr),VL=(Or=class{constructor(t){e.defineProperty(this,`writer`,void 0),this.writer=t?.writer??new BL}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}`)}},e.defineProperty(Or,Y,`DefaultLogger`),Or),HL=(kr=class{logQuery(){}},e.defineProperty(kr,Y,`NoopLogger`),kr),UL=(Ii=Symbol.toStringTag,Ar=class{constructor(){e.defineProperty(this,Ii,`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)}},e.defineProperty(Ar,Y,`QueryPromise`),Ar);function WL(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(typeof n!=`string`)return e;let i=t?[...t,n]:[n];return X(r,EI)||X(r,bL)||X(r,bL.Aliased)?e.push({path:i,field:r}):X(r,pL)?e.push(...WL(r[pL.Symbol.Columns],i)):e.push(...WL(r,i)),e},[])}function GL(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 KL(e,t){let n=Object.entries(t).filter(([,e])=>e!==void 0).map(([t,n])=>X(n,bL)||X(n,EI)?[t,n]:[t,new EL(n,e[pL.Symbol.Columns][t])]);if(n.length===0)throw Error(`No values to set`);return Object.fromEntries(n)}function qL(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 JL(e){return e[pL.Symbol.Columns]}function YL(e){return X(e,QI)?e._.alias:X(e,AL)?e[iL].name:X(e,bL)?void 0:e[pL.Symbol.IsAlias]?e[pL.Symbol.Name]:e[pL.Symbol.BaseName]}function XL(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}var ZL=(jr=class extends BI{defaultNow(){return this.default(Z`now()`)}},e.defineProperty(jr,Y,`PgDateColumnBaseBuilder`),jr),QL=(Mr=class extends ZL{constructor(e){super(e,`date`,`PgDate`)}build(e){return new $L(e,this.config)}},e.defineProperty(Mr,Y,`PgDateBuilder`),Mr),$L=(Nr=class extends VI{getSQLType(){return`date`}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}},e.defineProperty(Nr,Y,`PgDate`),Nr),eR=(Pr=class extends ZL{constructor(e){super(e,`string`,`PgDateString`)}build(e){return new tR(e,this.config)}},e.defineProperty(Pr,Y,`PgDateStringBuilder`),Pr),tR=(Fr=class extends VI{getSQLType(){return`date`}},e.defineProperty(Fr,Y,`PgDateString`),Fr),nR=(Ir=class extends BI{constructor(e){super(e,`json`,`PgJson`)}build(e){return new rR(e,this.config)}},e.defineProperty(Ir,Y,`PgJsonBuilder`),Ir),rR=(Lr=class extends VI{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}},e.defineProperty(Lr,Y,`PgJson`),Lr),iR=(Rr=class extends BI{constructor(e){super(e,`json`,`PgJsonb`)}build(e){return new aR(e,this.config)}},e.defineProperty(Rr,Y,`PgJsonbBuilder`),Rr),aR=(zr=class extends VI{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}},e.defineProperty(zr,Y,`PgJsonb`),zr),oR=(Br=class extends BI{constructor(e,t,n){super(e,`string`,`PgNumeric`),this.config.precision=t,this.config.scale=n}build(e){return new sR(e,this.config)}},e.defineProperty(Br,Y,`PgNumericBuilder`),Br),sR=(Vr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`scale`,void 0),this.precision=n.precision,this.scale=n.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})`}},e.defineProperty(Vr,Y,`PgNumeric`),Vr),cR=(Hr=class extends BI{constructor(e,t,n){super(e,`number`,`PgNumericNumber`),this.config.precision=t,this.config.scale=n}build(e){return new lR(e,this.config)}},e.defineProperty(Hr,Y,`PgNumericNumberBuilder`),Hr),lR=(Ur=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`scale`,void 0),e.defineProperty(this,`mapToDriverValue`,String),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(e){return typeof e==`number`?e:Number(e)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?`numeric`:`numeric(${this.precision})`}},e.defineProperty(Ur,Y,`PgNumericNumber`),Ur),uR=(Wr=class extends BI{constructor(e,t,n){super(e,`bigint`,`PgNumericBigInt`),this.config.precision=t,this.config.scale=n}build(e){return new dR(e,this.config)}},e.defineProperty(Wr,Y,`PgNumericBigIntBuilder`),Wr),dR=(Gr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`scale`,void 0),e.defineProperty(this,`mapFromDriverValue`,BigInt),e.defineProperty(this,`mapToDriverValue`,String),this.precision=n.precision,this.scale=n.scale}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?`numeric`:`numeric(${this.precision})`}},e.defineProperty(Gr,Y,`PgNumericBigInt`),Gr),fR=(Kr=class extends ZL{constructor(e,t,n){super(e,`string`,`PgTime`),this.withTimezone=t,this.precision=n,this.config.withTimezone=t,this.config.precision=n}build(e){return new pR(e,this.config)}},e.defineProperty(Kr,Y,`PgTimeBuilder`),Kr),pR=(qr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`withTimezone`,void 0),e.defineProperty(this,`precision`,void 0),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){let e=this.precision===void 0?``:`(${this.precision})`;return`time${e}${this.withTimezone?` with time zone`:``}`}},e.defineProperty(qr,Y,`PgTime`),qr),mR=(Jr=class extends ZL{constructor(e,t,n){super(e,`date`,`PgTimestamp`),this.config.withTimezone=t,this.config.precision=n}build(e){return new hR(e,this.config)}},e.defineProperty(Jr,Y,`PgTimestampBuilder`),Jr),hR=(Yr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`withTimezone`,void 0),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`mapFromDriverValue`,e=>new Date(this.withTimezone?e:e+`+0000`)),e.defineProperty(this,`mapToDriverValue`,e=>e.toISOString()),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){let e=this.precision===void 0?``:` (${this.precision})`;return`timestamp${e}${this.withTimezone?` with time zone`:``}`}},e.defineProperty(Yr,Y,`PgTimestamp`),Yr),gR=(Xr=class extends ZL{constructor(e,t,n){super(e,`string`,`PgTimestampString`),this.config.withTimezone=t,this.config.precision=n}build(e){return new _R(e,this.config)}},e.defineProperty(Xr,Y,`PgTimestampStringBuilder`),Xr),_R=(Zr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`withTimezone`,void 0),e.defineProperty(this,`precision`,void 0),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){let e=this.precision===void 0?``:`(${this.precision})`;return`timestamp${e}${this.withTimezone?` with time zone`:``}`}},e.defineProperty(Zr,Y,`PgTimestampString`),Zr),vR=(Qr=class extends BI{constructor(e){super(e,`string`,`PgUUID`)}defaultRandom(){return this.default(Z`gen_random_uuid()`)}build(e){return new yR(e,this.config)}},e.defineProperty(Qr,Y,`PgUUIDBuilder`),Qr),yR=($r=class extends VI{getSQLType(){return`uuid`}},e.defineProperty($r,Y,`PgUUID`),$r);const bR=Symbol.for(`drizzle:PgInlineForeignKeys`),xR=Symbol.for(`drizzle:EnableRLS`);var SR=(Li=pL.Symbol.ExtraConfigBuilder,Ri=pL.Symbol.ExtraConfigColumns,ei=class extends pL{constructor(...t){super(...t),e.defineProperty(this,bR,[]),e.defineProperty(this,xR,!1),e.defineProperty(this,Li,void 0),e.defineProperty(this,Ri,{})}},e.defineProperty(ei,Y,`PgTable`),e.defineProperty(ei,`Symbol`,Object.assign({},pL.Symbol,{InlineForeignKeys:bR,EnableRLS:xR})),ei),CR=(ti=class{constructor(t,n){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`name`,void 0),this.columns=t,this.name=n}build(e){return new wR(e,this.columns,this.name)}},e.defineProperty(ti,Y,`PgPrimaryKeyBuilder`),ti),wR=(ni=class{constructor(t,n,r){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`name`,void 0),this.table=t,this.columns=n,this.name=r}getName(){return this.name??`${this.table[SR.Symbol.Name]}_${this.columns.map(e=>e.name).join(`_`)}_pk`}},e.defineProperty(ni,Y,`PgPrimaryKey`),ni);function TR(e,t){return SL(t)&&!_L(e)&&!X(e,EL)&&!X(e,DL)&&!X(e,EI)&&!X(e,pL)&&!X(e,AL)?new EL(e,t):e}const ER=(e,t)=>Z`${e} = ${TR(t,e)}`,DR=(e,t)=>Z`${e} <> ${TR(t,e)}`;function OR(...e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?new bL(t):new bL([new yL(`(`),Z.join(t,new yL(` and `)),new yL(`)`)])}function kR(...e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?new bL(t):new bL([new yL(`(`),Z.join(t,new yL(` or `)),new yL(`)`)])}function AR(e){return Z`not ${e}`}const jR=(e,t)=>Z`${e} > ${TR(t,e)}`,MR=(e,t)=>Z`${e} >= ${TR(t,e)}`,NR=(e,t)=>Z`${e} < ${TR(t,e)}`,PR=(e,t)=>Z`${e} <= ${TR(t,e)}`;function FR(e,t){return Array.isArray(t)?t.length===0?Z`false`:Z`${e} in ${t.map(t=>TR(t,e))}`:Z`${e} in ${TR(t,e)}`}function IR(e,t){return Array.isArray(t)?t.length===0?Z`true`:Z`${e} not in ${t.map(t=>TR(t,e))}`:Z`${e} not in ${TR(t,e)}`}function LR(e){return Z`${e} is null`}function RR(e){return Z`${e} is not null`}function zR(e){return Z`exists ${e}`}function BR(e){return Z`not exists ${e}`}function VR(e,t,n){return Z`${e} between ${TR(t,e)} and ${TR(n,e)}`}function HR(e,t,n){return Z`${e} not between ${TR(t,e)} and ${TR(n,e)}`}function UR(e,t){return Z`${e} like ${t}`}function WR(e,t){return Z`${e} not like ${t}`}function GR(e,t){return Z`${e} ilike ${t}`}function KR(e,t){return Z`${e} not ilike ${t}`}function qR(e){return Z`${e} asc`}function JR(e){return Z`${e} desc`}var YR=(ri=class{constructor(t,n,r){e.defineProperty(this,`referencedTableName`,void 0),e.defineProperty(this,`fieldName`,void 0),this.sourceTable=t,this.referencedTable=n,this.relationName=r,this.referencedTableName=n[pL.Symbol.Name]}},e.defineProperty(ri,Y,`Relation`),ri),XR=(ii=class{constructor(e,t){this.table=e,this.config=t}},e.defineProperty(ii,Y,`Relations`),ii),ZR=(ai=class e extends YR{constructor(e,t,n,r){super(e,t,n?.relationName),this.config=n,this.isNullable=r}withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config,this.isNullable);return n.fieldName=t,n}},e.defineProperty(ai,Y,`One`),ai),QR=(oi=class e extends YR{constructor(e,t,n){super(e,t,n?.relationName),this.config=n}withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config);return n.fieldName=t,n}},e.defineProperty(oi,Y,`Many`),oi);function $R(){return{and:OR,between:VR,eq:ER,exists:zR,gt:jR,gte:MR,ilike:GR,inArray:FR,isNull:LR,isNotNull:RR,like:UR,lt:NR,lte:PR,ne:DR,not:AR,notBetween:HR,notExists:BR,notLike:WR,notIlike:KR,notInArray:IR,or:kR,sql:Z}}function ez(){return{sql:Z,asc:qR,desc:JR}}function tz(e,t){Object.keys(e).length===1&&`default`in e&&!X(e.default,pL)&&(e=e.default);let n={},r={},i={};for(let[o,s]of Object.entries(e))if(X(s,pL)){var a;let e=hL(s),t=r[e];n[e]=o,i[o]={tsName:o,dbName:s[pL.Symbol.Name],schema:s[pL.Symbol.Schema],columns:s[pL.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]};for(let e of Object.values(s[pL.Symbol.Columns]))e.primary&&i[o].primaryKey.push(e);let c=(a=s[pL.Symbol.ExtraConfigBuilder])?.call(s,s[pL.Symbol.ExtraConfigColumns]);if(c)for(let e of Object.values(c))X(e,CR)&&i[o].primaryKey.push(...e.columns)}else if(X(s,XR)){let e=hL(s.table),a=n[e],o=s.config(t(s.table)),c;for(let[t,n]of Object.entries(o))if(a){let e=i[a];e.relations[t]=n,c&&e.primaryKey.push(...c)}else e in r||(r[e]={relations:{},primaryKey:c}),r[e].relations[t]=n}return{tables:i,tableNamesMap:n}}function nz(e){return function(t,n){return new ZR(e,t,n,n?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)}}function rz(e){return function(t,n){return new QR(e,t,n)}}function iz(e,t,n){if(X(n,ZR)&&n.config)return{fields:n.config.fields,references:n.config.references};let r=t[hL(n.referencedTable)];if(!r)throw Error(`Table "${n.referencedTable[pL.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[hL(a)];if(!o)throw Error(`Table "${a[pL.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[pL.Symbol.Name]}". Please specify relation name`);if(s[0]&&X(s[0],ZR)&&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 az(e){return{one:nz(e),many:rz(e)}}function oz(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]=X(r,ZR)?l&&oz(e,e[s.relationTableTsKey],l,s.selection,i):l.map(t=>oz(e,e[s.relationTableTsKey],t,s.selection,i))}else{let e=i(n[o]),t=s.field,r;r=X(t,EI)?t:X(t,bL)?t.decoder:t.sql.decoder,a[s.tsKey]=e===null?null:r.mapFromDriverValue(e)}return a}var sz=(si=class t{constructor(t){e.defineProperty(this,`config`,void 0),this.config={...t}}get(e,n){if(n===`_`)return{...e._,selectedFields:new Proxy(e._.selectedFields,this)};if(n===iL)return{...e[iL],selectedFields:new Proxy(e[iL].selectedFields,this)};if(typeof n==`symbol`)return e[n];let r=X(e,QI)?e._.selectedFields:X(e,AL)?e[iL].selectedFields:e,i=r[n];if(X(i,bL.Aliased)){if(this.config.sqlAliasedBehavior===`sql`&&!i.isSelectionField)return i.sql;let e=i.clone();return e.isSelectionField=!0,e}if(X(i,bL)){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 X(i,EI)?this.config.alias?new Proxy(i,new jL(new Proxy(i.table,new ML(this.config.alias,this.config.replaceOriginalName??!1)))):i:typeof i!=`object`||!i?i:new Proxy(i,new t(this.config))}},e.defineProperty(si,Y,`SelectionProxyHandler`),si);function cz(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 lz(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 uz(e){return e}var dz=(ci=class{constructor(t){e.defineProperty(this,`cache`,{}),e.defineProperty(this,`cachedTables`,{}),e.defineProperty(this,`convert`,void 0),this.convert=t===`snake_case`?cz:t===`camelCase`?lz:uz}getColumnCasing(e){if(!e.keyAsName)return e.name;let t=e.table[pL.Symbol.Schema]??`public`,n=e.table[pL.Symbol.OriginalName],r=`${t}.${n}.${e.name}`;return this.cache[r]||this.cacheTable(e.table),this.cache[r]}cacheTable(e){let t=e[pL.Symbol.Schema]??`public`,n=e[pL.Symbol.OriginalName],r=`${t}.${n}`;if(!this.cachedTables[r]){for(let t of Object.values(e[pL.Symbol.Columns])){let e=`${r}.${t.name}`;this.cache[e]=this.convert(t.name)}this.cachedTables[r]=!0}}clearCache(){this.cache={},this.cachedTables={}}},e.defineProperty(ci,Y,`CasingCache`),ci),fz=(li=class extends AL{},e.defineProperty(li,Y,`PgViewBase`),li),pz=(ui=class{constructor(t){e.defineProperty(this,`casing`,void 0),this.casing=new dz(t?.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=Z` + `)}\n]`}concat(...t){let n=this.schema,r=this.data.concat(t.flatMap(({data:e})=>e));return new e(n,r.map(e=>new Gw(n,e)))}slice(t,n){let r=this.schema;[t,n]=GS({length:this.numRows},t,n);let i=bC(this.data,this._offsets,t,n);return new e(r,i.map(e=>new Gw(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=hC({type:n,length:0,nullCount:0});t.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new zC(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]=zw(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(...zw(a,o))}};Hw=Symbol.toStringTag,Uw[Hw]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=CC(SC),e.get=CC(IS.getVisitFn(q.Struct)),e.set=wC(Bx.getVisitFn(q.Struct)),e.indexOf=TC(jC.getVisitFn(q.Struct)),`Table`))(Uw.prototype);var Ww,Gw=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof UC)||([,this.data=hC({nullCount:0,type:new Mb(this.schema.fields),children:this.schema.fields.map(e=>hC({type:e.type,nullCount:0}))})]=e,!(this.data instanceof fC)))throw TypeError(`RecordBatch constructor expects a [Schema, Data] pair.`);[this.schema,this.data]=Kw(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]=WC.new({name:n,type:t[n].type,nullable:!0}),e),{length:0,fields:[],children:[]}),a=new UC(n),o=hC({type:new Mb(n),length:i,children:r,nullCount:0});[this.schema,this.data]=Kw(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||=qw(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 IS.visit(this.data,e)}at(e){return this.get(KS(e,this.numRows))}set(e,t){return Bx.visit(this.data,e,t)}indexOf(e,t){return jC.visit(this.data,e,t)}[Symbol.iterator](){return FC.visit(new zC([this.data]))}toArray(){return[...this]}concat(...e){return new Uw(this.schema,[this,...e])}slice(t,n){let[r]=new zC([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,hC({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=hC({type:new Mb(n.fields),length:this.numRows,children:r});return new e(n,i)}};Ww=Symbol.toStringTag,Gw[Ww]=(e=>(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,`RecordBatch`))(Gw.prototype);function Kw(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))??hC({type:c.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[e.assign(i),hC({type:new Mb(i),length:n,children:a})]}function qw(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;++rhC({type:e.type})),n=hC({type:new Mb(e.fields),nullCount:0,children:t});super(e,n)}},Yw=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()+jv),(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):Sv.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):yy.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 Xv).__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,Sv.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,yy.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)}},Xw=class extends Bb{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return uy.startNull(t),uy.endNull(t)}visitInt(e,t){return Jv.startInt(t),Jv.addBitWidth(t,e.bitWidth),Jv.addIsSigned(t,e.isSigned),Jv.endInt(t)}visitFloat(e,t){return iy.startFloatingPoint(t),iy.addPrecision(t,e.precision),iy.endFloatingPoint(t)}visitBinary(e,t){return Zv.startBinary(t),Zv.endBinary(t)}visitLargeBinary(e,t){return oy.startLargeBinary(t),oy.endLargeBinary(t)}visitBool(e,t){return Qv.startBool(t),Qv.endBool(t)}visitUtf8(e,t){return hy.startUtf8(t),hy.endUtf8(t)}visitLargeUtf8(e,t){return sy.startLargeUtf8(t),sy.endLargeUtf8(t)}visitDecimal(e,t){return ey.startDecimal(t),ey.addScale(t,e.scale),ey.addPrecision(t,e.precision),ey.addBitWidth(t,e.bitWidth),ey.endDecimal(t)}visitDate(e,t){return $v.startDate(t),$v.addUnit(t,e.unit),$v.endDate(t)}visitTime(e,t){return fy.startTime(t),fy.addUnit(t,e.unit),fy.addBitWidth(t,e.bitWidth),fy.endTime(t)}visitTimestamp(e,t){let n=e.timezone&&t.createString(e.timezone)||void 0;return py.startTimestamp(t),py.addUnit(t,e.unit),n!==void 0&&py.addTimezone(t,n),py.endTimestamp(t)}visitInterval(e,t){return ay.startInterval(t),ay.addUnit(t,e.unit),ay.endInterval(t)}visitDuration(e,t){return ty.startDuration(t),ty.addUnit(t,e.unit),ty.endDuration(t)}visitList(e,t){return cy.startList(t),cy.endList(t)}visitStruct(e,t){return dy.startStruct_(t),dy.endStruct_(t)}visitUnion(e,t){my.startTypeIdsVector(t,e.typeIds.length);let n=my.createTypeIdsVector(t,e.typeIds);return my.startUnion(t),my.addMode(t,e.mode),my.addTypeIds(t,n),my.endUnion(t)}visitDictionary(e,t){let n=this.visit(e.indices,t);return Yv.startDictionaryEncoding(t),Yv.addId(t,BigInt(e.id)),Yv.addIsOrdered(t,e.isOrdered),n!==void 0&&Yv.addIndexType(t,n),Yv.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return ny.startFixedSizeBinary(t),ny.addByteWidth(t,e.byteWidth),ny.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return ry.startFixedSizeList(t),ry.addListSize(t,e.listSize),ry.endFixedSizeList(t)}visitMap(e,t){return ly.startMap(t),ly.addKeysSorted(t,e.keysSorted),ly.endMap(t)}};const Zw=new Xw;function Qw(e,t=new Map){return new UC(tT(e,t),sT(e.metadata),t)}function $w(e){return new pT(e.count,rT(e.columns),iT(e.columns))}function eT(e){return new mT($w(e.data),e.id,e.isDelta)}function tT(e,t){return(e.fields||[]).filter(Boolean).map(e=>WC.fromJSON(e,t))}function nT(e,t){return(e.children||[]).filter(Boolean).map(e=>WC.fromJSON(e,t))}function rT(e){return(e||[]).reduce((e,t)=>[...e,new gT(t.count,aT(t.VALIDITY)),...rT(t.children)],[])}function iT(e,t=[]){for(let n=-1,r=(e||[]).length;++ne+ +(t===0),0)}function oT(e,t){let n,r,i,a,o,s;return!t||!(a=e.dictionary)?(o=lT(e,nT(e,t)),i=new WC(e.name,o,e.nullable,sT(e.metadata))):t.has(n=a.id)?(r=(r=a.indexType)?cT(r):new ub,s=new Rb(t.get(n),r,n,a.isOrdered),i=new WC(e.name,s,e.nullable,sT(e.metadata))):(r=(r=a.indexType)?cT(r):new ub,t.set(n,o=lT(e,nT(e,t))),s=new Rb(o,r,n,a.isOrdered),i=new WC(e.name,s,e.nullable,sT(e.metadata))),i||null}function sT(e=[]){return new Map(e.map(({key:e,value:t})=>[e,t]))}function cT(e){return new sb(e.isSigned,e.bitWidth)}function lT(e,t){let n=e.type.name;switch(n){case`NONE`:return new ob;case`null`:return new ob;case`binary`:return new bb;case`largebinary`:return new xb;case`utf8`:return new Sb;case`largeutf8`:return new Cb;case`bool`:return new wb;case`list`:return new jb((t||[])[0]);case`struct`:return new Mb(t||[]);case`struct_`:return new Mb(t||[])}switch(n){case`int`:{let t=e.type;return new sb(t.isSigned,t.bitWidth)}case`floatingpoint`:{let t=e.type;return new gb(wv[t.precision])}case`decimal`:{let t=e.type;return new Tb(t.scale,t.precision,t.bitWidth)}case`date`:{let t=e.type;return new Eb(Tv[t.unit])}case`time`:{let t=e.type;return new Db(Ev[t.unit],t.bitWidth)}case`timestamp`:{let t=e.type;return new Ob(Ev[t.unit],t.timezone)}case`interval`:{let t=e.type;return new kb(Dv[t.unit])}case`duration`:{let t=e.type;return new Ab(Ev[t.unit])}case`union`:{let n=e.type,[r,...i]=(n.mode+``).toLowerCase(),a=r.toUpperCase()+i.join(``);return new Nb(Cv[a],n.typeIds||[],t||[])}case`fixedsizebinary`:{let t=e.type;return new Pb(t.byteWidth)}case`fixedsizelist`:{let n=e.type;return new Fb(n.listSize,(t||[])[0])}case`map`:{let n=e.type;return new Ib((t||[])[0],n.keysSorted)}}throw Error(`Unrecognized type: "${n}"`)}var uT=Rv,dT=Lv,fT=class e{static fromJSON(t,n){let r=new e(0,Sv.V5,n);return r._createHeader=_T(t,n),r}static decode(t){t=new dT(ov(t));let n=Yw.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=vT(n,a),o}static encode(e){let t=new uT,n=-1;return e.isSchema()?n=UC.encode(t,e.header()):e.isRecordBatch()?n=pT.encode(t,e.header()):e.isDictionaryBatch()&&(n=mT.encode(t,e.header())),Yw.startMessage(t),Yw.addVersion(t,Sv.V5),Yw.addHeader(t,n),Yw.addHeaderType(t,e.headerType),Yw.addBodyLength(t,BigInt(e.bodyLength)),Yw.finishMessageBuffer(t,Yw.endMessage(t)),t.asUint8Array()}static from(t,n=0){if(t instanceof UC)return new e(0,Sv.V5,yy.Schema,t);if(t instanceof pT)return new e(n,Sv.V5,yy.RecordBatch,t);if(t instanceof mT)return new e(n,Sv.V5,yy.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===yy.Schema}isRecordBatch(){return this.headerType===yy.RecordBatch}isDictionaryBatch(){return this.headerType===yy.DictionaryBatch}constructor(e,t,n,r){this._version=t,this._headerType=n,this.body=new Uint8Array,r&&(this._createHeader=()=>r),this._bodyLength=Cy(e)}},pT=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=Cy(e)}},mT=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=Cy(t)}},hT=class{constructor(e,t){this.offset=Cy(e),this.length=Cy(t)}},gT=class{constructor(e,t){this.length=Cy(e),this.nullCount=Cy(t)}};function _T(e,t){return()=>{switch(t){case yy.Schema:return UC.fromJSON(e);case yy.RecordBatch:return pT.fromJSON(e);case yy.DictionaryBatch:return mT.fromJSON(e)}throw Error(`Unrecognized Message type: { name: ${yy[t]}, type: ${t} }`)}}function vT(e,t){return()=>{switch(t){case yy.Schema:return UC.decode(e.header(new vy),new Map,e.version());case yy.RecordBatch:return pT.decode(e.header(new Wv),e.version());case yy.DictionaryBatch:return mT.decode(e.header(new Gv),e.version())}throw Error(`Unrecognized Message type: { name: ${yy[t]}, type: ${t} }`)}}WC.encode=NT,WC.decode=OT,WC.fromJSON=oT,UC.encode=MT,UC.decode=yT,UC.fromJSON=Qw,pT.encode=PT,pT.decode=bT,pT.fromJSON=$w,mT.encode=FT,mT.decode=xT,mT.fromJSON=eT,gT.encode=IT,gT.decode=CT,hT.encode=LT,hT.decode=ST;function yT(e,t=new Map,n=Sv.V5){let r=ET(e,t);return new UC(r,kT(e),t,n)}function bT(e,t=Sv.V5){if(e.compression()!==null)throw Error(`Record batch compression not implemented`);return new pT(e.length(),wT(e),TT(e,t))}function xT(e,t=Sv.V5){return new mT(pT.decode(e.data(),t),e.id(),e.isDelta())}function ST(e){return new hT(e.offset(),e.length())}function CT(e){return new gT(e.length(),e.nullCount())}function wT(e){let t=[];for(let n,r=-1,i=-1,a=e.nodesLength();++rWC.encode(e,t));vy.startFieldsVector(e,n.length);let r=vy.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?vy.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return Xv.startKeyValue(e),Xv.addKey(e,r),Xv.addValue(e,i),Xv.endKeyValue(e)})):-1;return vy.startSchema(e),vy.addFields(e,r),vy.addEndianness(e,RT?Kv.Little:Kv.Big),i!==-1&&vy.addCustomMetadata(e,i),vy.endSchema(e)}function NT(e,t){let n=-1,r=-1,i=-1,a=t.type,o=t.typeId;ab.isDictionary(a)?(o=a.dictionary.typeId,i=Zw.visit(a,e),r=Zw.visit(a.dictionary,e)):r=Zw.visit(a,e);let s=(a.children||[]).map(t=>WC.encode(e,t)),c=_y.createChildrenVector(e,s),l=t.metadata&&t.metadata.size>0?_y.createCustomMetadataVector(e,[...t.metadata].map(([t,n])=>{let r=e.createString(`${t}`),i=e.createString(`${n}`);return Xv.startKeyValue(e),Xv.addKey(e,r),Xv.addValue(e,i),Xv.endKeyValue(e)})):-1;return t.name&&(n=e.createString(t.name)),_y.startField(e),_y.addType(e,r),_y.addTypeType(e,o),_y.addChildren(e,c),_y.addNullable(e,!!t.nullable),n!==-1&&_y.addName(e,n),i!==-1&&_y.addDictionary(e,i),l!==-1&&_y.addCustomMetadata(e,l),_y.endField(e)}function PT(e,t){let n=t.nodes||[],r=t.buffers||[];Wv.startNodesVector(e,n.length);for(let t of n.slice().reverse())gT.encode(e,t);let i=e.endVector();Wv.startBuffersVector(e,r.length);for(let t of r.slice().reverse())hT.encode(e,t);let a=e.endVector();return Wv.startRecordBatch(e),Wv.addLength(e,BigInt(t.length)),Wv.addNodes(e,i),Wv.addBuffers(e,a),Wv.endRecordBatch(e)}function FT(e,t){let n=pT.encode(e,t.data);return Gv.startDictionaryBatch(e),Gv.addId(e,BigInt(t.id)),Gv.addIsDelta(e,t.isDelta),Gv.addData(e,n),Gv.endDictionaryBatch(e)}function IT(e,t){return Uv.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function LT(e,t){return Hv.createBuffer(e,BigInt(t.offset),BigInt(t.length))}const RT=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),new Int16Array(e)[0]===256})(),zT=e=>`Expected ${yy[e]} Message in stream, but was null or length 0.`,BT=e=>`Header pointer of flatbuffer-encoded ${yy[e]} Message is null or length 0.`,VT=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,HT=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;var UT=class{constructor(e){this.source=e instanceof rw?e:new rw(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?QC: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(zT(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array;let t=ov(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(zT(e));return t.value}readSchema(){let e=yy.Schema,t=this.readMessage(e),n=t?.header();if(!t||!n)throw Error(BT(e));return n}};const KT=4,qT=`ARROW1`,JT=new Uint8Array(qT.length);for(let e=0;ethis):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 mv.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return mv.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:U_(t)?pE(t):G_(t)?gE(t):B_(t)?(()=>E_(this,void 0,void 0,function*(){return yield e.from(yield t)}))():K_(t)||Y_(t)||Z_(t)||H_(t)?hE(new iw(t)):mE(new rw(t))}static readAll(t){return t instanceof e?t.isSync()?dE(t):fE(t):U_(t)||ArrayBuffer.isView(t)||V_(t)||W_(t)?dE(t):fE(t)}},eE=class extends $T{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return k_(this,arguments,function*(){yield O_(yield*A_(j_(this[Symbol.iterator]())))})}},tE=class extends $T{constructor(e){super(e),this._impl=e}readAll(){return E_(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=j_(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]()}},nE=class extends eE{constructor(e){super(e),this._impl=e}},rE=class extends tE{constructor(e){super(e),this._impl=e}},iE=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=hC({type:new Mb(this.schema.fields),length:e.length,children:n});return new Gw(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 zC(c)):new zC(c)).memoize()}_loadVectors(e,t,n){return new _w(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(n)}},aE=class extends iE{constructor(e,t){super(t),this._reader=U_(e)?new GT(this._handle=e):new UT(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=uE(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):QC}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):QC}next(){if(this.closed)return QC;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 Jw(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},oE=class extends iE{constructor(e,t){super(t),this._reader=new WT(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return E_(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 E_(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=uE(this,e),(this.schema||=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return E_(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):QC})}return(e){return E_(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):QC})}next(){return E_(this,void 0,void 0,function*(){if(this.closed)return QC;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 Jw(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return E_(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},sE=class extends aE{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 sw?e:new sw(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(yy.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(yy.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-ZT,n=e.readInt32(t),r=e.readAt(t-n,n);return YC.decode(r)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return E_(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 E_(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(yy.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 E_(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(yy.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 E_(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-ZT,n=yield e.readInt32(t),r=yield e.readAt(t-n,n);return YC.decode(r)})}_readNextMessageAndValidate(e){return E_(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?YT(t)?new nE(new sE(e.read())):new eE(new aE(e)):new eE(new aE(function*(){}()))}function hE(e){return E_(this,void 0,void 0,function*(){let t=yield e.peek(XT+7&-8);return t&&t.byteLength>=4?YT(t)?new nE(new sE(yield e.read())):new tE(new oE(e)):new tE(new oE(function(){return k_(this,arguments,function*(){})}()))})}function gE(e){return E_(this,void 0,void 0,function*(){let{size:t}=yield e.stat(),n=new cw(e,t);return t>=QT&&YT(yield n.readAt(0,XT+7&-8))?new rE(new cE(n)):new tE(new oE(n))})}var _E=class e extends Bb{static assemble(...t){let n=e=>e.flatMap(e=>Array.isArray(e)?n(e):e instanceof Gw?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 zC)return this.visitMany(e.data),this;let{type:t}=e;if(!ab.isDictionary(t)){let{length:n}=e;if(n>2147483647)throw RangeError(`Cannot write arrays larger than 2^31 - 1 in length`);if(ab.isUnion(t))this.nodes.push(new gT(n,0));else{let{nullCount:r}=e;ab.isNull(t)||vE.call(this,r<=0?new Uint8Array:aC(e.offset,n,e.nullBitmap)),this.nodes.push(new gT(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 vE(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new hT(this._byteLength,t)),this._byteLength+=t,this}function yE(e){var t;let{type:n,length:r,typeIds:i,valueOffsets:a}=e;if(vE.call(this,i),n.mode===Cv.Sparse)return wE.call(this,e);if(n.mode===Cv.Dense){if(e.offset<=0)return vE.call(this,a),wE.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 bE(e){let t;return e.nullCount>=e.length?vE.call(this,new Uint8Array):(t=e.values)instanceof Uint8Array?vE.call(this,aC(e.offset,e.length,t)):vE.call(this,oC(e.values))}function xE(e){return vE.call(this,e.values.subarray(0,e.length*e.stride))}function SE(e){let{length:t,values:n,valueOffsets:r}=e,i=Cy(r[0]),a=Cy(r[t]),o=Math.min(a-i,n.byteLength-i);return vE.call(this,fv(-i,t+1,r)),vE.call(this,n.subarray(i,i+o)),this}function CE(e){let{length:t,valueOffsets:n}=e;if(n){let{0:r,[t]:i}=n;return vE.call(this,fv(-r,t+1,n)),this.visit(e.children[0].slice(r,i-r))}return this.visit(e.children[0])}function wE(e){return this.visitMany(e.type.children.map((t,n)=>e.children[n]).filter(Boolean))[0]}_E.prototype.visitBool=bE,_E.prototype.visitInt=xE,_E.prototype.visitFloat=xE,_E.prototype.visitUtf8=SE,_E.prototype.visitLargeUtf8=SE,_E.prototype.visitBinary=SE,_E.prototype.visitLargeBinary=SE,_E.prototype.visitFixedSizeBinary=xE,_E.prototype.visitDate=xE,_E.prototype.visitTimestamp=xE,_E.prototype.visitTime=xE,_E.prototype.visitDecimal=xE,_E.prototype.visitList=CE,_E.prototype.visitStruct=wE,_E.prototype.visitUnion=yE,_E.prototype.visitInterval=xE,_E.prototype.visitDuration=xE,_E.prototype.visitFixedSizeList=CE,_E.prototype.visitMap=CE;var TE=class extends ew{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 nw,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,z_(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 B_(e)?e.then(e=>this.writeAll(e)):H_(e)?kE(this,e):OE(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 nw?this._sink=e:(this._sink=new nw,e&&J_(e)?this.toDOMStream({type:`bytes`}).pipeTo(e):e&&X_(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||!Rw(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 Uw&&!(t=e.schema)||e instanceof Gw&&!(t=e.schema))return this.finish()&&void 0}else throw Error(`RecordBatchWriter is closed`);if(t&&!Rw(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof Gw?e instanceof Jw||this._writeRecordBatch(e):e instanceof Uw?this.writeAll(e.batches):V_(e)&&this.writeAll(e)}_writeMessage(e,t=8){let n=t-1,r=fT.encode(e),i=r.byteLength,a=this._writeLegacyIpcFormat?4:8,o=i+a+n&~n,s=o-i-a;return e.headerType===yy.RecordBatch?this._recordBatchBlocks.push(new ZC(o,e.bodyLength,this._position)):e.headerType===yy.DictionaryBatch&&this._dictionaryBlocks.push(new ZC(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=ov(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(fT.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(JT)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:n,bufferRegions:r,buffers:i}=_E.assemble(e),a=new pT(e.numRows,n,r),o=fT.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}=_E.assemble(new zC([e])),s=new pT(e.length,i,a),c=new mT(s,t,n),l=fT.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)):H_(t)?kE(r,t):OE(r,t)}},DE=class e extends TE{static writeAll(t){let n=new e;return B_(t)?t.then(e=>n.writeAll(e)):H_(t)?kE(n,t):OE(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=YC.encode(new YC(e,Sv.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function OE(e,t){let n=t;t instanceof Uw&&(n=t.batches,e.reset(void 0,t.schema));for(let t of n)e.write(t);return e.finish()}function kE(e,t){return E_(this,void 0,void 0,function*(){var n,r,i,a,o,s,c;try{for(n=!0,r=j_(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 AE(e,t=`stream`){return(t===`stream`?EE:DE).writeAll(e).toUint8Array(!0)}var jE=Object.create,ME=Object.defineProperty,NE=Object.getOwnPropertyDescriptor,PE=Object.getOwnPropertyNames,FE=Object.getPrototypeOf,IE=Object.prototype.hasOwnProperty,LE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),RE=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of PE(t))!IE.call(e,i)&&i!==n&&ME(e,i,{get:()=>t[i],enumerable:!(r=NE(t,i))||r.enumerable});return e},zE=(e,t,n)=>(n=e==null?{}:jE(FE(e)),RE(t||!e||!e.__esModule?ME(n,`default`,{value:e,enumerable:!0}):n,e)),BE=LE((e,t)=>{t.exports=Worker}),VE=(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))(VE||{}),HE=(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))(HE||{}),UE=(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))(UE||{}),WE=(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))(WE||{}),GE=(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))(GE||{}),KE=(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))(KE||{}),qE=class{log(e){}},JE=class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}},YE=(e=>(e[e.SUCCESS=0]=`SUCCESS`,e))(YE||{}),XE=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=$T.from(t);return console.assert(n.isSync(),`Reader is not sync`),console.assert(n.isFile(),`Reader is not file`),new Uw(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 ZE(this._bindings,this._conn,n),i=await $T.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 QE(this._bindings,this._conn,t)}async insertArrowTable(e,t){let n=AE(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)}},ZE=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}},QE=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=$T.from(t);return console.assert(n.isSync()),console.assert(n.isFile()),new Uw(n)}async send(...e){let t=await this.bindings.sendPrepared(this.connectionId,this.statementId,e),n=new ZE(this.bindings,this.connectionId,t),r=await $T.from(n);return console.assert(r.isAsync()),console.assert(r.isStream()),r}},$E=(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))($E||{}),eD=(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))(eD||{}),tD=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 nD(e){switch(e.typeId){case q.Binary:return{sqlType:`binary`};case q.Bool:return{sqlType:`bool`};case q.Date:return{sqlType:`date`};case q.DateDay:return{sqlType:`date32[d]`};case q.DateMillisecond:return{sqlType:`date64[ms]`};case q.Decimal:{let t=e;return{sqlType:`decimal`,precision:t.precision,scale:t.scale}}case q.Float:return{sqlType:`float`};case q.Float16:return{sqlType:`float16`};case q.Float32:return{sqlType:`float32`};case q.Float64:return{sqlType:`float64`};case q.Int:return{sqlType:`int32`};case q.Int16:return{sqlType:`int16`};case q.Int32:return{sqlType:`int32`};case q.Int64:return{sqlType:`int64`};case q.Uint16:return{sqlType:`uint16`};case q.Uint32:return{sqlType:`uint32`};case q.Uint64:return{sqlType:`uint64`};case q.Uint8:return{sqlType:`uint8`};case q.IntervalDayTime:return{sqlType:`interval[dt]`};case q.IntervalYearMonth:return{sqlType:`interval[m]`};case q.List:return{sqlType:`list`,valueType:nD(e.valueType)};case q.FixedSizeBinary:return{sqlType:`fixedsizebinary`,byteWidth:e.byteWidth};case q.Null:return{sqlType:`null`};case q.Utf8:return{sqlType:`utf8`};case q.Struct:return{sqlType:`struct`,fields:e.children.map(e=>rD(e.name,e.type))};case q.Map:{let t=e;return{sqlType:`map`,keyType:nD(t.keyType),valueType:nD(t.valueType)}}case q.Time:return{sqlType:`time[s]`};case q.TimeMicrosecond:return{sqlType:`time[us]`};case q.TimeMillisecond:return{sqlType:`time[ms]`};case q.TimeNanosecond:return{sqlType:`time[ns]`};case q.TimeSecond:return{sqlType:`time[s]`};case q.Timestamp:return{sqlType:`timestamp`,timezone:e.timezone||void 0};case q.TimestampSecond:return{sqlType:`timestamp[s]`,timezone:e.timezone||void 0};case q.TimestampMicrosecond:return{sqlType:`timestamp[us]`,timezone:e.timezone||void 0};case q.TimestampNanosecond:return{sqlType:`timestamp[ns]`,timezone:e.timezone||void 0};case q.TimestampMillisecond:return{sqlType:`timestamp[ms]`,timezone:e.timezone||void 0}}throw Error(`unsupported arrow type: ${e.toString()}`)}function rD(e,t){let n=nD(t);return n.name=e,n}var iD=new TextEncoder,aD=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 tD(`RESET`,null);return await this.postTask(e)}async ping(){let e=new tD(`PING`,null);await this.postTask(e)}async dropFile(e){let t=new tD(`DROP_FILE`,e);return await this.postTask(t)}async dropFiles(){let e=new tD(`DROP_FILES`,null);return await this.postTask(e)}async flushFiles(){let e=new tD(`FLUSH_FILES`,null);return await this.postTask(e)}async instantiate(e,t=null,n=e=>{}){this._onInstantiationProgress.push(n);let r=new tD(`INSTANTIATE`,[e,t]);return await this.postTask(r)}async getVersion(){let e=new tD(`GET_VERSION`,null);return await this.postTask(e)}async getFeatureFlags(){let e=new tD(`GET_FEATURE_FLAGS`,null);return await this.postTask(e)}async open(e){let t=new tD(`OPEN`,e);await this.postTask(t)}async tokenize(e){let t=new tD(`TOKENIZE`,e);return await this.postTask(t)}async connectInternal(){let e=new tD(`CONNECT`,null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new XE(this,e)}async disconnect(e){let t=new tD(`DISCONNECT`,e);await this.postTask(t)}async runQuery(e,t){let n=new tD(`RUN_QUERY`,[e,t]);return await this.postTask(n)}async startPendingQuery(e,t,n=!1){let r=new tD(`START_PENDING_QUERY`,[e,t,n]);return await this.postTask(r)}async pollPendingQuery(e){let t=new tD(`POLL_PENDING_QUERY`,e);return await this.postTask(t)}async cancelPendingQuery(e){let t=new tD(`CANCEL_PENDING_QUERY`,e);return await this.postTask(t)}async fetchQueryResults(e){let t=new tD(`FETCH_QUERY_RESULTS`,e);return await this.postTask(t)}async getTableNames(e,t){let n=new tD(`GET_TABLE_NAMES`,[e,t]);return await this.postTask(n)}async createPrepared(e,t){let n=new tD(`CREATE_PREPARED`,[e,t]);return await this.postTask(n)}async closePrepared(e,t){let n=new tD(`CLOSE_PREPARED`,[e,t]);await this.postTask(n)}async runPrepared(e,t,n){let r=new tD(`RUN_PREPARED`,[e,t,n]);return await this.postTask(r)}async sendPrepared(e,t,n){let r=new tD(`SEND_PREPARED`,[e,t,n]);return await this.postTask(r)}async globFiles(e){let t=new tD(`GLOB_FILE_INFOS`,e);return await this.postTask(t)}async registerFileText(e,t){let n=iD.encode(t);await this.registerFileBuffer(e,n)}async registerFileURL(e,t,n,r){t===void 0&&(t=e);let i=new tD(`REGISTER_FILE_URL`,[e,t,n,r]);await this.postTask(i)}async registerEmptyFileBuffer(e){}async registerFileBuffer(e,t){let n=new tD(`REGISTER_FILE_BUFFER`,[e,t]);await this.postTask(n,[t.buffer])}async registerFileHandle(e,t,n,r){let i=new tD(`REGISTER_FILE_HANDLE`,[e,t,n,r]);await this.postTask(i,[])}async registerOPFSFileName(e){let t=new tD(`REGISTER_OPFS_FILE_NAME`,[e]);await this.postTask(t,[])}async collectFileStatistics(e,t){let n=new tD(`COLLECT_FILE_STATISTICS`,[e,t]);await this.postTask(n,[])}async exportFileStatistics(e){let t=new tD(`EXPORT_FILE_STATISTICS`,e);return await this.postTask(t,[])}async copyFileToBuffer(e){let t=new tD(`COPY_FILE_TO_BUFFER`,e);return await this.postTask(t)}async copyFileToPath(e,t){let n=new tD(`COPY_FILE_TO_PATH`,[e,t]);await this.postTask(n)}async insertArrowFromIPCStream(e,t,n){if(t.length==0)return;let r=new tD(`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(rD(t,r))}n.columnsFlat=e,delete n.columns}let r=new tD(`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(rD(t,r))}n.columnsFlat=e,delete n.columns}let r=new tD(`IMPORT_JSON_FROM_PATH`,[e,t,n]);await this.postTask(r)}};function oD(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<`u`&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}var sD=oD(),cD=(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))(cD||{}),lD=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])),uD=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])),dD=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])),fD=()=>(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])),pD={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`}}},mD=pD.name,hD=pD.version,gD=pD.version.split(`.`),_D=gD[0],vD=gD[1],yD=gD[2],bD=()=>typeof navigator>`u`,xD=()=>bD()?`node`:navigator.userAgent,SD=()=>xD().includes(`Firefox`),CD=()=>/^((?!chrome|android).)*safari/i.test(xD()),wD=null,TD=null,ED=null,DD=null,OD=null;async function kD(){return wD??=typeof BigInt64Array<`u`,TD??=await uD(),ED??=await fD(),DD??=await dD(),OD??=await lD(),{bigInt64Array:wD,crossOriginIsolated:bD()||globalThis.crossOriginIsolated||!1,wasmExceptions:TD,wasmSIMD:DD,wasmThreads:ED,wasmBulkMemory:OD}}async function AD(e){let t=await kD();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}}var jD=zE(BE());const MD=Symbol.for(`constructDateFrom`),ND={},PD={};function FD(e,t){try{let n=ND[e]||(ND[e]=new Intl.DateTimeFormat(`en-GB`,{timeZone:e,hour:`numeric`,timeZoneName:`longOffset`}).format),r=n(t).split(`GMT`)[1]||``;return r in PD?PD[r]:LD(r,r.split(`:`))}catch{if(e in PD)return PD[e];let t=e?.match(ID);return t?LD(e,t.slice(1)):NaN}}const ID=/([+-]\d\d):?(\d\d)?/;function LD(e,t){let n=+t[0],r=+(t[1]||0);return PD[e]=n>0?n*60+r:n*60-r}var RD=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(FD(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)),HD(this,NaN),BD(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(){return-FD(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),BD(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};const zD=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!zD.test(e))return;let t=e.replace(zD,`$1UTC`);RD.prototype[t]&&(e.startsWith(`get`)?RD.prototype[e]=function(){return this.internal[t]()}:(RD.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),VD(this),+this},RD.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),BD(this),+this}))});function BD(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function VD(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()),HD(e)}function HD(e){let t=FD(e.timeZone,e),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);let r=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),a=r-i,o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);let s=r-t;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let c=FD(e.timeZone,e),l=-new Date(+e).getTimezoneOffset(),u=l-c,d=c!==t,f=u-s;if(d&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);let t=FD(e.timeZone,e),n=c-t;n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}var UD=class e extends RD{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${WD(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=e>0?`-`:`+`,n=String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),r=String(Math.abs(e)%60).padStart(2,`0`);return[t,n,r]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}};function WD(e,t){return new Intl.DateTimeFormat(`en-GB`,{timeZone:e,timeZoneName:`long`}).format(t).slice(12)}const GD=new TextDecoder(`utf-8`),KD=e=>GD.decode(e),qD=new TextEncoder,JD=e=>qD.encode(e),YD=e=>typeof e==`function`,XD=e=>e!=null&&Object(e)===e,ZD=e=>XD(e)&&YD(e.then),QD=e=>XD(e)&&YD(e[Symbol.iterator]),$D=e=>XD(e)&&YD(e[Symbol.asyncIterator]),eO=e=>XD(e)&&`done`in e&&`value`in e,tO=e=>XD(e)&&YD(e.clear)&&YD(e.bytes)&&YD(e.position)&&YD(e.setPosition)&&YD(e.capacity)&&YD(e.getBufferIdentifier)&&YD(e.createLong);var nO={};Dt(nO,{compareArrayLike:()=>VO,joinUint8Arrays:()=>oO,memcpy:()=>aO,rebaseValueOffsets:()=>BO,toArrayBufferView:()=>sO,toArrayBufferViewAsyncIterator:()=>AO,toArrayBufferViewIterator:()=>bO,toBigInt64Array:()=>dO,toBigUint64Array:()=>hO,toFloat32Array:()=>gO,toFloat32ArrayAsyncIterator:()=>LO,toFloat32ArrayIterator:()=>DO,toFloat64Array:()=>_O,toFloat64ArrayAsyncIterator:()=>RO,toFloat64ArrayIterator:()=>OO,toInt16Array:()=>lO,toInt16ArrayAsyncIterator:()=>MO,toInt16ArrayIterator:()=>SO,toInt32Array:()=>uO,toInt32ArrayAsyncIterator:()=>NO,toInt32ArrayIterator:()=>CO,toInt8Array:()=>cO,toInt8ArrayAsyncIterator:()=>jO,toInt8ArrayIterator:()=>xO,toUint16Array:()=>pO,toUint16ArrayAsyncIterator:()=>FO,toUint16ArrayIterator:()=>TO,toUint32Array:()=>mO,toUint32ArrayAsyncIterator:()=>IO,toUint32ArrayIterator:()=>EO,toUint8Array:()=>fO,toUint8ArrayAsyncIterator:()=>PO,toUint8ArrayIterator:()=>wO,toUint8ClampedArray:()=>vO,toUint8ClampedArrayAsyncIterator:()=>zO,toUint8ClampedArrayIterator:()=>kO});const rO=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:ArrayBuffer;function iO(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;++csO(Int8Array,e),lO=e=>sO(Int16Array,e),uO=e=>sO(Int32Array,e),dO=e=>sO(BigInt64Array,e),fO=e=>sO(Uint8Array,e),pO=e=>sO(Uint16Array,e),mO=e=>sO(Uint32Array,e),hO=e=>sO(BigUint64Array,e),gO=e=>sO(Float32Array,e),_O=e=>sO(Float64Array,e),vO=e=>sO(Uint8ClampedArray,e),yO=e=>(e.next(),e);function*bO(e,t){let n=function*(e){yield e},r=typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof rO?n(t):QD(t)?t:n(t);return yield*yO(function*(t){let n=null;do n=t.next(yield sO(e,n));while(!n.done)}(r[Symbol.iterator]())),new e}const xO=e=>bO(Int8Array,e),SO=e=>bO(Int16Array,e),CO=e=>bO(Int32Array,e),wO=e=>bO(Uint8Array,e),TO=e=>bO(Uint16Array,e),EO=e=>bO(Uint32Array,e),DO=e=>bO(Float32Array,e),OO=e=>bO(Float64Array,e),kO=e=>bO(Uint8ClampedArray,e);function AO(e,t){return k_(this,arguments,function*(){if(ZD(t))return yield O_(yield O_(yield*A_(j_(AO(e,yield O_(t))))));let n=function(e){return k_(this,arguments,function*(){yield yield O_(yield O_(e))})},r=function(e){return k_(this,arguments,function*(){yield O_(yield*A_(j_(yO(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 rO?n(t):QD(t)?r(t):$D(t)?t:n(t);return yield O_(yield*A_(j_(yO(function(t){return k_(this,arguments,function*(){let n=null;do n=yield O_(t.next(yield yield O_(sO(e,n))));while(!n.done)})}(i[Symbol.asyncIterator]()))))),yield O_(new e)})}const jO=e=>AO(Int8Array,e),MO=e=>AO(Int16Array,e),NO=e=>AO(Int32Array,e),PO=e=>AO(Uint8Array,e),FO=e=>AO(Uint16Array,e),IO=e=>AO(Uint32Array,e),LO=e=>AO(Float32Array,e),RO=e=>AO(Float64Array,e),zO=e=>AO(Uint8ClampedArray,e);function BO(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(++nXO});const YO=void 0;function XO(e){if(e===null)return`null`;if(e===YO)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=>XO(e))}]`:`[${e}]`:ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e,(e,t)=>typeof t==`bigint`?`${t}`:t)}function ZO(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 QO(e,t){return ZO(e/t)+ZO(e%t)/ZO(t)}var $O={};Dt($O,{BN:()=>dk,bigNumToBigInt:()=>lk,bigNumToNumber:()=>sk,bigNumToString:()=>ck,isArrowBigNumSymbol:()=>ek});const ek=Symbol.for(`isArrowBigNum`);function tk(e,...t){return t.length===0?Object.setPrototypeOf(sO(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}tk.prototype[ek]=!0,tk.prototype.toJSON=function(){return`"${ck(this)}"`},tk.prototype.valueOf=function(e){return sk(this,e)},tk.prototype.toString=function(){return ck(this)},tk.prototype[Symbol.toPrimitive]=function(e=`default`){switch(e){case`number`:return sk(this);case`string`:return ck(this);case`default`:return lk(this)}return ck(this)};function nk(...e){return tk.apply(this,e)}function rk(...e){return tk.apply(this,e)}function ik(...e){return tk.apply(this,e)}Object.setPrototypeOf(nk.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(rk.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(ik.prototype,Object.create(Uint32Array.prototype)),Object.assign(nk.prototype,tk.prototype,{constructor:nk,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(rk.prototype,tk.prototype,{constructor:rk,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(ik.prototype,tk.prototype,{constructor:ik,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const ak=BigInt(4294967296)*BigInt(4294967296),ok=ak-BigInt(1);function sk(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=ZO(n),a=`${r}`.padStart(t,`0`),o=s&&i===0?`-`:``;return+`${o}${i}.${a}`}return ZO(c)}function ck(e){if(e.byteLength===8){let t=new e.BigIntArray(e.buffer,e.byteOffset,1);return`${t[0]}`}if(!e.signed)return uk(e);let t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=new Int16Array([t.at(-1)])[0];if(n>=0)return uk(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`))(Pk.prototype);var Fk=class extends Pk{constructor(){super(J.Null)}toString(){return`Null`}};pk=Symbol.toStringTag,Fk[pk]=(e=>e[Symbol.toStringTag]=`Null`)(Fk.prototype);var Ik=class extends Pk{constructor(e,t){super(J.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}`}};mk=Symbol.toStringTag,Ik[mk]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]=`Int`))(Ik.prototype);var Lk=class extends Ik{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Rk=class extends Ik{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},zk=class extends Ik{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},Bk=class extends Ik{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Vk=class extends Ik{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Hk=class extends Ik{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Uk=class extends Ik{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Wk=class extends Ik{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Lk.prototype,`ArrayType`,{value:Int8Array}),Object.defineProperty(Rk.prototype,`ArrayType`,{value:Int16Array}),Object.defineProperty(zk.prototype,`ArrayType`,{value:Int32Array}),Object.defineProperty(Bk.prototype,`ArrayType`,{value:BigInt64Array}),Object.defineProperty(Vk.prototype,`ArrayType`,{value:Uint8Array}),Object.defineProperty(Hk.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(Uk.prototype,`ArrayType`,{value:Uint32Array}),Object.defineProperty(Wk.prototype,`ArrayType`,{value:BigUint64Array});var Gk=class extends Pk{constructor(e){super(J.Float),this.precision=e}get ArrayType(){switch(this.precision){case UO.HALF:return Uint16Array;case UO.SINGLE:return Float32Array;case UO.DOUBLE:return Float64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};hk=Symbol.toStringTag,Gk[hk]=(e=>(e.precision=null,e[Symbol.toStringTag]=`Float`))(Gk.prototype);var Kk=class extends Gk{constructor(){super(UO.HALF)}},qk=class extends Gk{constructor(){super(UO.SINGLE)}},Jk=class extends Gk{constructor(){super(UO.DOUBLE)}};Object.defineProperty(Kk.prototype,`ArrayType`,{value:Uint16Array}),Object.defineProperty(qk.prototype,`ArrayType`,{value:Float32Array}),Object.defineProperty(Jk.prototype,`ArrayType`,{value:Float64Array});var Yk=class extends Pk{constructor(){super(J.Binary)}toString(){return`Binary`}};gk=Symbol.toStringTag,Yk[gk]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Binary`))(Yk.prototype);var Xk=class extends Pk{constructor(){super(J.LargeBinary)}toString(){return`LargeBinary`}};_k=Symbol.toStringTag,Xk[_k]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeBinary`))(Xk.prototype);var Zk=class extends Pk{constructor(){super(J.Utf8)}toString(){return`Utf8`}};vk=Symbol.toStringTag,Zk[vk]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Utf8`))(Zk.prototype);var Qk=class extends Pk{constructor(){super(J.LargeUtf8)}toString(){return`LargeUtf8`}};yk=Symbol.toStringTag,Qk[yk]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]=`LargeUtf8`))(Qk.prototype);var $k=class extends Pk{constructor(){super(J.Bool)}toString(){return`Bool`}};bk=Symbol.toStringTag,$k[bk]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`Bool`))($k.prototype);var eA=class extends Pk{constructor(e,t,n=128){super(J.Decimal),this.scale=e,this.precision=t,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?`+`:``}${this.scale}]`}};xk=Symbol.toStringTag,eA[xk]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]=`Decimal`))(eA.prototype);var tA=class extends Pk{constructor(e){super(J.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${WO[this.unit]}>`}get ArrayType(){return this.unit===WO.DAY?Int32Array:BigInt64Array}};Sk=Symbol.toStringTag,tA[Sk]=(e=>(e.unit=null,e[Symbol.toStringTag]=`Date`))(tA.prototype);var nA=class extends Pk{constructor(e,t){super(J.Time),this.unit=e,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${GO[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};Ck=Symbol.toStringTag,nA[Ck]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]=`Time`))(nA.prototype);var rA=class extends Pk{constructor(e,t){super(J.Timestamp),this.unit=e,this.timezone=t}toString(){return`Timestamp<${GO[this.unit]}${this.timezone?`, ${this.timezone}`:``}>`}};wk=Symbol.toStringTag,rA[wk]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Timestamp`))(rA.prototype);var iA=class extends Pk{constructor(e){super(J.Interval),this.unit=e}toString(){return`Interval<${KO[this.unit]}>`}};Tk=Symbol.toStringTag,iA[Tk]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]=`Interval`))(iA.prototype);var aA=class extends Pk{constructor(e){super(J.Duration),this.unit=e}toString(){return`Duration<${GO[this.unit]}>`}};Ek=Symbol.toStringTag,aA[Ek]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]=`Duration`))(aA.prototype);var oA=class extends Pk{constructor(e){super(J.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}};Dk=Symbol.toStringTag,oA[Dk]=(e=>(e.children=null,e[Symbol.toStringTag]=`List`))(oA.prototype);var sA=class extends Pk{constructor(e){super(J.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(`, `)}}>`}};Ok=Symbol.toStringTag,sA[Ok]=(e=>(e.children=null,e[Symbol.toStringTag]=`Struct`))(sA.prototype);var cA=class extends Pk{constructor(e,t,n){super(J.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(` | `)}>`}};kk=Symbol.toStringTag,cA[kk]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]=`Union`))(cA.prototype);var lA=class extends Pk{constructor(e){super(J.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Ak=Symbol.toStringTag,lA[Ak]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]=`FixedSizeBinary`))(lA.prototype);var uA=class extends Pk{constructor(e,t){super(J.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}>`}};jk=Symbol.toStringTag,uA[jk]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]=`FixedSizeList`))(uA.prototype);var dA=class extends Pk{constructor(e,t=!1){var n,r,i;if(super(J.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(`, `)}}>`}};Mk=Symbol.toStringTag,dA[Mk]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]=`Map_`))(dA.prototype);const fA=(e=>()=>++e)(-1);var pA=class extends Pk{constructor(e,t,n,r){super(J.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=r||!1,this.id=n==null?fA():ZO(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}>`}};Nk=Symbol.toStringTag,pA[Nk]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]=`Dictionary`))(pA.prototype);function mA(e){let t=e;switch(e.typeId){case J.Decimal:return e.bitWidth/32;case J.Interval:return t.unit===KO.MONTH_DAY_NANO?4:1+t.unit;case J.FixedSizeList:return t.listSize;case J.FixedSizeBinary:return t.byteWidth;default:return 1}}var hA=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 gA(this,e,t)}getVisitFnByTypeId(e,t=!0){return _A(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 gA(e,t,n=!0){return typeof t==`number`?_A(e,t,n):typeof t==`string`&&t in J?_A(e,J[t],n):t&&t instanceof Pk?_A(e,vA(t),n):t?.type&&t.type instanceof Pk?_A(e,vA(t.type),n):_A(e,J.NONE,n)}function _A(e,t,n=!0){let r=null;switch(t){case J.Null:r=e.visitNull;break;case J.Bool:r=e.visitBool;break;case J.Int:r=e.visitInt;break;case J.Int8:r=e.visitInt8||e.visitInt;break;case J.Int16:r=e.visitInt16||e.visitInt;break;case J.Int32:r=e.visitInt32||e.visitInt;break;case J.Int64:r=e.visitInt64||e.visitInt;break;case J.Uint8:r=e.visitUint8||e.visitInt;break;case J.Uint16:r=e.visitUint16||e.visitInt;break;case J.Uint32:r=e.visitUint32||e.visitInt;break;case J.Uint64:r=e.visitUint64||e.visitInt;break;case J.Float:r=e.visitFloat;break;case J.Float16:r=e.visitFloat16||e.visitFloat;break;case J.Float32:r=e.visitFloat32||e.visitFloat;break;case J.Float64:r=e.visitFloat64||e.visitFloat;break;case J.Utf8:r=e.visitUtf8;break;case J.LargeUtf8:r=e.visitLargeUtf8;break;case J.Binary:r=e.visitBinary;break;case J.LargeBinary:r=e.visitLargeBinary;break;case J.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case J.Date:r=e.visitDate;break;case J.DateDay:r=e.visitDateDay||e.visitDate;break;case J.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case J.Timestamp:r=e.visitTimestamp;break;case J.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case J.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case J.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case J.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case J.Time:r=e.visitTime;break;case J.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case J.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case J.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case J.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case J.Decimal:r=e.visitDecimal;break;case J.List:r=e.visitList;break;case J.Struct:r=e.visitStruct;break;case J.Union:r=e.visitUnion;break;case J.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case J.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case J.Dictionary:r=e.visitDictionary;break;case J.Interval:r=e.visitInterval;break;case J.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case J.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case J.IntervalMonthDayNano:r=e.visitIntervalMonthDayNano||e.visitInterval;break;case J.Duration:r=e.visitDuration;break;case J.DurationSecond:r=e.visitDurationSecond||e.visitDuration;break;case J.DurationMillisecond:r=e.visitDurationMillisecond||e.visitDuration;break;case J.DurationMicrosecond:r=e.visitDurationMicrosecond||e.visitDuration;break;case J.DurationNanosecond:r=e.visitDurationNanosecond||e.visitDuration;break;case J.FixedSizeList:r=e.visitFixedSizeList;break;case J.Map:r=e.visitMap;break}if(typeof r==`function`)return r;if(!n)return()=>null;throw Error(`Unrecognized type '${J[t]}'`)}function vA(e){switch(e.typeId){case J.Null:return J.Null;case J.Int:{let{bitWidth:t,isSigned:n}=e;switch(t){case 8:return n?J.Int8:J.Uint8;case 16:return n?J.Int16:J.Uint16;case 32:return n?J.Int32:J.Uint32;case 64:return n?J.Int64:J.Uint64}return J.Int}case J.Float:switch(e.precision){case UO.HALF:return J.Float16;case UO.SINGLE:return J.Float32;case UO.DOUBLE:return J.Float64}return J.Float;case J.Binary:return J.Binary;case J.LargeBinary:return J.LargeBinary;case J.Utf8:return J.Utf8;case J.LargeUtf8:return J.LargeUtf8;case J.Bool:return J.Bool;case J.Decimal:return J.Decimal;case J.Time:switch(e.unit){case GO.SECOND:return J.TimeSecond;case GO.MILLISECOND:return J.TimeMillisecond;case GO.MICROSECOND:return J.TimeMicrosecond;case GO.NANOSECOND:return J.TimeNanosecond}return J.Time;case J.Timestamp:switch(e.unit){case GO.SECOND:return J.TimestampSecond;case GO.MILLISECOND:return J.TimestampMillisecond;case GO.MICROSECOND:return J.TimestampMicrosecond;case GO.NANOSECOND:return J.TimestampNanosecond}return J.Timestamp;case J.Date:switch(e.unit){case WO.DAY:return J.DateDay;case WO.MILLISECOND:return J.DateMillisecond}return J.Date;case J.Interval:switch(e.unit){case KO.DAY_TIME:return J.IntervalDayTime;case KO.YEAR_MONTH:return J.IntervalYearMonth;case KO.MONTH_DAY_NANO:return J.IntervalMonthDayNano}return J.Interval;case J.Duration:switch(e.unit){case GO.SECOND:return J.DurationSecond;case GO.MILLISECOND:return J.DurationMillisecond;case GO.MICROSECOND:return J.DurationMicrosecond;case GO.NANOSECOND:return J.DurationNanosecond}return J.Duration;case J.Map:return J.Map;case J.List:return J.List;case J.Struct:return J.Struct;case J.Union:switch(e.mode){case HO.Dense:return J.DenseUnion;case HO.Sparse:return J.SparseUnion}return J.Union;case J.FixedSizeBinary:return J.FixedSizeBinary;case J.FixedSizeList:return J.FixedSizeList;case J.Dictionary:return J.Dictionary}throw Error(`Unrecognized type '${J[e.typeId]}'`)}hA.prototype.visitInt8=null,hA.prototype.visitInt16=null,hA.prototype.visitInt32=null,hA.prototype.visitInt64=null,hA.prototype.visitUint8=null,hA.prototype.visitUint16=null,hA.prototype.visitUint32=null,hA.prototype.visitUint64=null,hA.prototype.visitFloat16=null,hA.prototype.visitFloat32=null,hA.prototype.visitFloat64=null,hA.prototype.visitDateDay=null,hA.prototype.visitDateMillisecond=null,hA.prototype.visitTimestampSecond=null,hA.prototype.visitTimestampMillisecond=null,hA.prototype.visitTimestampMicrosecond=null,hA.prototype.visitTimestampNanosecond=null,hA.prototype.visitTimeSecond=null,hA.prototype.visitTimeMillisecond=null,hA.prototype.visitTimeMicrosecond=null,hA.prototype.visitTimeNanosecond=null,hA.prototype.visitDenseUnion=null,hA.prototype.visitSparseUnion=null,hA.prototype.visitIntervalDayTime=null,hA.prototype.visitIntervalYearMonth=null,hA.prototype.visitIntervalMonthDayNano=null,hA.prototype.visitDuration=null,hA.prototype.visitDurationSecond=null,hA.prototype.visitDurationMillisecond=null,hA.prototype.visitDurationMicrosecond=null,hA.prototype.visitDurationNanosecond=null;var yA={};Dt(yA,{float64ToUint16:()=>CA,uint16ToFloat64:()=>SA});const bA=new Float64Array(1),xA=new Uint32Array(bA.buffer);function SA(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 CA(e){if(e!==e)return 32256;bA[0]=e;let t=(xA[1]&2147483648)>>16&65535,n=xA[1]&2146435072,r=0;return n>=1089470464?xA[0]>0?n=31744:(n=(n&2080374784)>>16,r=(xA[1]&1048575)>>10):n<=1056964608?(r=1048576+(xA[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(xA[1]&1048575)+512>>10),t|n|r&65535}var wA=class extends hA{};function TA(e){return(t,n,r)=>{if(t.setValid(n,r!=null))return e(t,n,r)}}const EA=(e,t,n)=>{e[t]=Math.floor(n/864e5)},DA=(e,t,n,r)=>{if(n+1{let i=e+n;r?t[i>>3]|=1<>3]&=~(1<{e[t]=n},AA=({values:e},t,n)=>{e[t]=n},jA=({values:e},t,n)=>{e[t]=CA(n)},MA=(e,t,n)=>{switch(e.type.precision){case UO.HALF:return jA(e,t,n);case UO.SINGLE:case UO.DOUBLE:return AA(e,t,n)}},NA=({values:e},t,n)=>{EA(e,t,n.valueOf())},PA=({values:e},t,n)=>{e[t]=BigInt(n)},FA=({stride:e,values:t},n,r)=>{t.set(r.subarray(0,e),e*n)},IA=({values:e,valueOffsets:t},n,r)=>DA(e,t,n,r),LA=({values:e,valueOffsets:t},n,r)=>DA(e,t,n,JD(r)),RA=(e,t,n)=>{e.type.unit===WO.DAY?NA(e,t,n):PA(e,t,n)},zA=({values:e},t,n)=>{e[t]=BigInt(n/1e3)},BA=({values:e},t,n)=>{e[t]=BigInt(n)},VA=({values:e},t,n)=>{e[t]=BigInt(n*1e3)},HA=({values:e},t,n)=>{e[t]=BigInt(n*1e6)},UA=(e,t,n)=>{switch(e.type.unit){case GO.SECOND:return zA(e,t,n);case GO.MILLISECOND:return BA(e,t,n);case GO.MICROSECOND:return VA(e,t,n);case GO.NANOSECOND:return HA(e,t,n)}},WA=({values:e},t,n)=>{e[t]=n},GA=({values:e},t,n)=>{e[t]=n},KA=({values:e},t,n)=>{e[t]=n},qA=({values:e},t,n)=>{e[t]=n},JA=(e,t,n)=>{switch(e.type.unit){case GO.SECOND:return WA(e,t,n);case GO.MILLISECOND:return GA(e,t,n);case GO.MICROSECOND:return KA(e,t,n);case GO.NANOSECOND:return qA(e,t,n)}},YA=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},XA=(e,t,n)=>{let r=e.children[0],i=e.valueOffsets,a=_j.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=_j.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},QA=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[a]),$A=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(a)),ej=(e,t)=>(n,r,i,a)=>r&&n(r,e,t.get(i.name)),tj=(e,t)=>(n,r,i,a)=>r&&n(r,e,t[i.name]),nj=(e,t,n)=>{let r=e.type.children.map(e=>_j.getVisitFn(e.type)),i=n instanceof Map?ej(t,n):n instanceof bN?$A(t,n):Array.isArray(n)?QA(t,n):tj(t,n);e.type.children.forEach((t,n)=>i(r[n],e.children[n],t,n))},rj=(e,t,n)=>{e.type.mode===HO.Dense?ij(e,t,n):aj(e,t,n)},ij=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];_j.visit(i,e.valueOffsets[t],n)},aj=(e,t,n)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];_j.visit(i,t,n)},oj=(e,t,n)=>{var r;(r=e.dictionary)==null||r.set(e.values[t],n)},sj=(e,t,n)=>{switch(e.type.unit){case KO.YEAR_MONTH:return lj(e,t,n);case KO.DAY_TIME:return cj(e,t,n);case KO.MONTH_DAY_NANO:return uj(e,t,n)}},cj=({values:e},t,n)=>{e.set(n.subarray(0,2),2*t)},lj=({values:e},t,n)=>{e[t]=n[0]*12+n[1]%12},uj=({values:e,stride:t},n,r)=>{e.set(r.subarray(0,t),t*n)},dj=({values:e},t,n)=>{e[t]=n},fj=({values:e},t,n)=>{e[t]=n},pj=({values:e},t,n)=>{e[t]=n},mj=({values:e},t,n)=>{e[t]=n},hj=(e,t,n)=>{switch(e.type.unit){case GO.SECOND:return dj(e,t,n);case GO.MILLISECOND:return fj(e,t,n);case GO.MICROSECOND:return pj(e,t,n);case GO.NANOSECOND:return mj(e,t,n)}},gj=(e,t,n)=>{let{stride:r}=e,i=e.children[0],a=_j.getVisitFn(i);if(Array.isArray(n))for(let e=-1,o=t*r;++e`${XO(e)}: ${XO(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}[Symbol.iterator](){return new xj(this[vj],this[yj])}},xj=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[vj].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(e,t){if(e[vj].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[vj].type.children.findIndex(e=>e.name===t);if(n!==-1){let r=hM.visit(e[vj].children[n],e[yj]);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[vj].type.children.findIndex(e=>e.name===t);return r===-1?Reflect.has(e,t)||typeof t==`symbol`?Reflect.set(e,t,n):!1:(_j.visit(e[vj].children[r],e[yj],n),Reflect.set(e,t,n))}};const Cj=new Sj;var wj=class extends hA{};function Tj(e){return(t,n)=>t.getValid(n)?e(t,n):null}const Ej=(e,t)=>864e5*e[t],Dj=(e,t)=>null,Oj=(e,t,n)=>{if(n+1>=t.length)return null;let r=ZO(t[n]),i=ZO(t[n+1]);return e.subarray(r,i)},kj=({offset:e,values:t},n)=>{let r=e+n,i=t[r>>3];return(i&1<Ej(e,t),jj=({values:e},t)=>ZO(e[t]),Mj=({stride:e,values:t},n)=>t[e*n],Nj=({stride:e,values:t},n)=>SA(t[e*n]),Pj=({values:e},t)=>e[t],Fj=({stride:e,values:t},n)=>t.subarray(e*n,e*(n+1)),Ij=({values:e,valueOffsets:t},n)=>Oj(e,t,n),Lj=({values:e,valueOffsets:t},n)=>{let r=Oj(e,t,n);return r===null?null:KD(r)},Rj=({values:e},t)=>e[t],zj=({type:e,values:t},n)=>e.precision===UO.HALF?SA(t[n]):t[n],Bj=(e,t)=>e.type.unit===WO.DAY?Aj(e,t):jj(e,t),Vj=({values:e},t)=>1e3*ZO(e[t]),Hj=({values:e},t)=>ZO(e[t]),Uj=({values:e},t)=>QO(e[t],BigInt(1e3)),Wj=({values:e},t)=>QO(e[t],BigInt(1e6)),Gj=(e,t)=>{switch(e.type.unit){case GO.SECOND:return Vj(e,t);case GO.MILLISECOND:return Hj(e,t);case GO.MICROSECOND:return Uj(e,t);case GO.NANOSECOND:return Wj(e,t)}},Kj=({values:e},t)=>e[t],qj=({values:e},t)=>e[t],Jj=({values:e},t)=>e[t],Yj=({values:e},t)=>e[t],Xj=(e,t)=>{switch(e.type.unit){case GO.SECOND:return Kj(e,t);case GO.MILLISECOND:return qj(e,t);case GO.MICROSECOND:return Jj(e,t);case GO.NANOSECOND:return Yj(e,t)}},Zj=({values:e,stride:t},n)=>dk.decimal(e.subarray(t*n,t*(n+1))),Qj=(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 bN([c])},$j=(e,t)=>{let{valueOffsets:n,children:r}=e,{[t]:i,[t+1]:a}=n,o=r[0];return new bM(o.slice(i,a-i))},eM=(e,t)=>new bj(e,t),tM=(e,t)=>e.type.mode===HO.Dense?nM(e,t):rM(e,t),nM=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return hM.visit(r,e.valueOffsets[t])},rM=(e,t)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],r=e.children[n];return hM.visit(r,t)},iM=(e,t)=>{var n;return(n=e.dictionary)?.get(e.values[t])},aM=(e,t)=>e.type.unit===KO.MONTH_DAY_NANO?cM(e,t):e.type.unit===KO.DAY_TIME?oM(e,t):sM(e,t),oM=({values:e},t)=>e.subarray(2*t,2*(t+1)),sM=({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},cM=({values:e},t)=>e.subarray(4*t,4*(t+1)),lM=({values:e},t)=>e[t],uM=({values:e},t)=>e[t],dM=({values:e},t)=>e[t],fM=({values:e},t)=>e[t],pM=(e,t)=>{switch(e.type.unit){case GO.SECOND:return lM(e,t);case GO.MILLISECOND:return uM(e,t);case GO.MICROSECOND:return dM(e,t);case GO.NANOSECOND:return fM(e,t)}},mM=(e,t)=>{let{stride:n,children:r}=e,i=r[0],a=i.slice(t*n,n);return new bN([a])};wj.prototype.visitNull=Tj(Dj),wj.prototype.visitBool=Tj(kj),wj.prototype.visitInt=Tj(Rj),wj.prototype.visitInt8=Tj(Mj),wj.prototype.visitInt16=Tj(Mj),wj.prototype.visitInt32=Tj(Mj),wj.prototype.visitInt64=Tj(Pj),wj.prototype.visitUint8=Tj(Mj),wj.prototype.visitUint16=Tj(Mj),wj.prototype.visitUint32=Tj(Mj),wj.prototype.visitUint64=Tj(Pj),wj.prototype.visitFloat=Tj(zj),wj.prototype.visitFloat16=Tj(Nj),wj.prototype.visitFloat32=Tj(Mj),wj.prototype.visitFloat64=Tj(Mj),wj.prototype.visitUtf8=Tj(Lj),wj.prototype.visitLargeUtf8=Tj(Lj),wj.prototype.visitBinary=Tj(Ij),wj.prototype.visitLargeBinary=Tj(Ij),wj.prototype.visitFixedSizeBinary=Tj(Fj),wj.prototype.visitDate=Tj(Bj),wj.prototype.visitDateDay=Tj(Aj),wj.prototype.visitDateMillisecond=Tj(jj),wj.prototype.visitTimestamp=Tj(Gj),wj.prototype.visitTimestampSecond=Tj(Vj),wj.prototype.visitTimestampMillisecond=Tj(Hj),wj.prototype.visitTimestampMicrosecond=Tj(Uj),wj.prototype.visitTimestampNanosecond=Tj(Wj),wj.prototype.visitTime=Tj(Xj),wj.prototype.visitTimeSecond=Tj(Kj),wj.prototype.visitTimeMillisecond=Tj(qj),wj.prototype.visitTimeMicrosecond=Tj(Jj),wj.prototype.visitTimeNanosecond=Tj(Yj),wj.prototype.visitDecimal=Tj(Zj),wj.prototype.visitList=Tj(Qj),wj.prototype.visitStruct=Tj(eM),wj.prototype.visitUnion=Tj(tM),wj.prototype.visitDenseUnion=Tj(nM),wj.prototype.visitSparseUnion=Tj(rM),wj.prototype.visitDictionary=Tj(iM),wj.prototype.visitInterval=Tj(aM),wj.prototype.visitIntervalDayTime=Tj(oM),wj.prototype.visitIntervalYearMonth=Tj(sM),wj.prototype.visitIntervalMonthDayNano=Tj(cM),wj.prototype.visitDuration=Tj(pM),wj.prototype.visitDurationSecond=Tj(lM),wj.prototype.visitDurationMillisecond=Tj(uM),wj.prototype.visitDurationMicrosecond=Tj(dM),wj.prototype.visitDurationNanosecond=Tj(fM),wj.prototype.visitFixedSizeList=Tj(mM),wj.prototype.visitMap=Tj($j);const hM=new wj,gM=Symbol.for(`keys`),_M=Symbol.for(`vals`),vM=Symbol.for(`kKeysAsStrings`),yM=Symbol.for(`_kKeysAsStrings`);var bM=class{constructor(e){return this[gM]=new bN([e.children[0]]).memoize(),this[_M]=e.children[1],new Proxy(this,new SM)}get[vM](){return this[yM]||(this[yM]=Array.from(this[gM].toArray(),String))}[Symbol.iterator](){return new xM(this[gM],this[_M])}get size(){return this[gM].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[gM],t=this[_M],n={};for(let r=-1,i=e.length;++r`${XO(e)}: ${XO(t)}`).join(`, `)}}`}[Symbol.for(`nodejs.util.inspect.custom`)](){return this.toString()}},xM=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),hM.visit(this.vals,e)]})}},SM=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[vM]}has(e,t){return e[vM].includes(t)}getOwnPropertyDescriptor(e,t){let n=e[vM].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[vM].indexOf(t);if(n!==-1){let r=hM.visit(Reflect.get(e,_M),n);return Reflect.set(e,t,r),r}}set(e,t,n){let r=e[vM].indexOf(t);return r===-1?Reflect.has(e,t)?Reflect.set(e,t,n):!1:(_j.visit(Reflect.get(e,_M),r,n),Reflect.set(e,t,n))}};Object.defineProperties(bM.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:`Row`},[gM]:{writable:!0,enumerable:!1,configurable:!1,value:null},[_M]:{writable:!0,enumerable:!1,configurable:!1,value:null},[yM]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var CM={};Dt(CM,{clampRange:()=>TM,createElementComparator:()=>OM,wrapIndex:()=>EM});let wM;function TM(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 EM=(e,t)=>e<0?t+e:e,DM=e=>e!==e;function OM(e){let t=typeof e;if(t!==`object`||e===null)return DM(e)?DM: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?VO(e,t):!1:e instanceof Map?AM(e):Array.isArray(e)?kM(e):e instanceof bN?jM(e):MM(e,!0)}function kM(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 PM(e,n);case Map:return IM(e,n,n.keys());case bM:case bj:case Object:case void 0:return IM(e,n,t||Object.keys(n))}return n instanceof bN?FM(e,n):!1}}function PM(e,t){let n=e.length;if(t.length!==n)return!1;for(let r=-1;++rUM,getBit:()=>zM,getBool:()=>RM,packBools:()=>HM,popcnt_array:()=>GM,popcnt_bit_range:()=>WM,popcnt_uint32:()=>KM,setBool:()=>BM,truncateBitmap:()=>VM});function RM(e,t,n,r){return(n&1<>r}function BM(e,t,n){return n?!!(e[t>>3]|=1<>3]&=~(1<0||n.byteLength>3):HM(new UM(n,e,t,null,RM)).subarray(0,r)),i}return n}function HM(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 UM=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 WM(e,t,i)+WM(e,r,n)+GM(e,i>>3,r-i>>3)}function GM(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+=KM(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=KM(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=KM(a.getUint8(i)),i+=1;return r}function KM(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(t&858993459)+(t>>>2&858993459),(t+(t>>>4)&252645135)*16843009>>>24}const qM=-1;var JM=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 Pk.isSparseUnion(e)||Pk.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(Pk.isUnion(this.type))return this.children.reduce((e,t)=>e+t.nullCount,0);let e=this._nullCount,t;return e<=qM&&(t=this.nullBitmap)&&(this._nullCount=e=t.length===0?0:this.length-WM(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=mA(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(Pk.isUnion(t)){let n=t,r=this.children[n.typeIdToChildIndex[this.typeIds[e]]],i=n.mode===HO.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(VM(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===J.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(VM(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[qO.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[qO.TYPE])&&(a[qO.TYPE]=i.subarray(e,e+t)),(i=a[qO.OFFSET])&&(a[qO.OFFSET]=i.subarray(e,e+t+1))||(i=a[qO.DATA])&&(a[qO.DATA]=r===6?i:i.subarray(n*e,n*(e+t))),a}_sliceChildren(e,t,n){return e.map(e=>e.slice(t,n))}};JM.prototype.children=Object.freeze([]);var YM=class e extends hA{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:n=0,length:r=0}=e;return new JM(t,n,r,r)}visitBool(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitInt(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitFloat(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitUtf8(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=uO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitLargeUtf8(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=dO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitBinary(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=uO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitLargeBinary(e){let{type:t,offset:n=0}=e,r=fO(e.data),i=fO(e.nullBitmap),a=dO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,r,i])}visitFixedSizeBinary(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitDate(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitTimestamp(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitTime(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitDecimal(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitList(e){let{type:t,offset:n=0,child:r}=e,i=fO(e.nullBitmap),a=uO(e.valueOffsets),{length:o=a.length-1,nullCount:s=e.nullBitmap?-1:0}=e;return new JM(t,n,o,s,[a,void 0,i],[r])}visitStruct(e){let{type:t,offset:n=0,children:r=[]}=e,i=fO(e.nullBitmap),{length:a=r.reduce((e,{length:t})=>Math.max(e,t),0),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,void 0,i],r)}visitUnion(e){let{type:t,offset:n=0,children:r=[]}=e,i=sO(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:o=-1}=e;if(Pk.isSparseUnion(t))return new JM(t,n,a,o,[void 0,void 0,void 0,i],r);let s=uO(e.valueOffsets);return new JM(t,n,a,o,[s,void 0,void 0,i],r)}visitDictionary(t){let{type:n,offset:r=0}=t,i=fO(t.nullBitmap),a=sO(n.indices.ArrayType,t.data),{dictionary:o=new bN([new e().visit({type:n.dictionary})])}=t,{length:s=a.length,nullCount:c=t.nullBitmap?-1:0}=t;return new JM(n,r,s,c,[void 0,a,i],[],o)}visitInterval(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length/mA(t),nullCount:o=e.nullBitmap?-1:0}=e;return new JM(t,n,a,o,[void 0,i,r])}visitDuration(e){let{type:t,offset:n=0}=e,r=fO(e.nullBitmap),i=sO(t.ArrayType,e.data),{length:a=i.length,nullCount:o=e.nullBitmap?-1:0}=e;return new JM(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=fO(t.nullBitmap),{length:o=i.length/mA(n),nullCount:s=t.nullBitmap?-1:0}=t;return new JM(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=fO(t.nullBitmap),o=uO(t.valueOffsets),{length:s=o.length-1,nullCount:c=t.nullBitmap?-1:0}=t;return new JM(n,r,s,c,[o,void 0,a],[i])}};const XM=new YM;var ZM=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 eN(e){return e.reduce((e,t,n)=>(e[n+1]=e[n]+t.length,e),new Uint32Array(e.length+1))}function tN(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 nN(e,t,n,r){let i=0,a=0,o=t.length-1;do{if(i>=o-1)return n0?0:-1}function lN(e,t){let{nullBitmap:n}=e;if(!n||e.nullCount<=0)return-1;let r=0;for(let i of new UM(n,e.offset+(t||0),e.length,n,RM)){if(!i)return r;++r}return-1}function uN(e,t,n){if(t===void 0)return-1;if(t===null)switch(e.typeId){case J.Union:break;case J.Dictionary:break;default:return lN(e,n)}let r=hM.getVisitFn(e),i=OM(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 ZM(e.data.length,t=>{let r=e.data[t],i=r.length,a=e.slice(n,n+i);return n+=i,new hN(a)})}var hN=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data):t;if(a.length===0||a.some(e=>!(e instanceof JM)))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}=vN[o.typeId],r=a[0];this.isValid=e=>rN(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,yN[o.typeId]),this._offsets=eN(a);break}this.data=a,this.type=o,this.stride=mA(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 QM(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`${J[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(EM(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return gN.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap(e=>e.data).flat(1/0)))}slice(t,n){return new e(TM(this,t,n,({data:e,_offsets:t},n,r)=>tN(e,t,n,r)))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:n,stride:r,ArrayType:i}=this;switch(e.typeId){case J.Int:case J.Float:case J.Decimal:case J.Time:case J.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 Pk.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(Pk.isDictionary(this.type)){let t=new xN(this.data[0].dictionary),n=this.data.map(e=>{let n=e.clone();return n.dictionary=t,n});return new e(n)}return new xN(this)}unmemoize(){if(Pk.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}};_N=Symbol.toStringTag,bN[_N]=(e=>{e.type=Pk.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(J).map(e=>J[e]).filter(e=>typeof e==`number`&&e!==J.NONE);for(let n of t){let t=hM.getVisitFnByTypeId(n),r=_j.getVisitFnByTypeId(n),i=fN.getVisitFnByTypeId(n);vN[n]={get:t,set:r,indexOf:i},yN[n]=Object.create(e,{isValid:{value:iN(rN)},get:{value:iN(hM.getVisitFnByTypeId(n))},set:{value:aN(_j.getVisitFnByTypeId(n))},indexOf:{value:oN(fN.getVisitFnByTypeId(n))}})}return`Vector`})(bN.prototype);var xN=class e extends bN{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 bN(this.data)}),Object.defineProperty(this,`memoize`,{value:()=>this})}},SN={};Dt(SN,{BaseInt64:()=>DN,Int128:()=>AN,Int64:()=>kN,Uint64:()=>ON});const CN=65536;function wN(e){return e<0&&(e=4294967295+e+1),`0x${e.toString(16)}`}const TN=8,EN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];var DN=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`${wN(this.buffer[3])} ${wN(this.buffer[2])} ${wN(this.buffer[1])} ${wN(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;nMN,toIntervalDayTimeObjects:()=>PN,toIntervalMonthDayNanoInt32Array:()=>NN,toIntervalMonthDayNanoObjects:()=>FN});function MN(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 PN(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 IN=class extends hA{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 LN(e,t){return t instanceof e.constructor}function RN(e,t){return e===t||LN(e,t)}function zN(e,t){return e===t||LN(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function BN(e,t){return e===t||LN(e,t)&&e.precision===t.precision}function VN(e,t){return e===t||LN(e,t)&&e.byteWidth===t.byteWidth}function HN(e,t){return e===t||LN(e,t)&&e.unit===t.unit}function UN(e,t){return e===t||LN(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function WN(e,t){return e===t||LN(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function GN(e,t){return e===t||LN(e,t)&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}function KN(e,t){return e===t||LN(e,t)&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}function qN(e,t){return e===t||LN(e,t)&&e.mode===t.mode&&e.typeIds.every((e,n)=>e===t.typeIds[n])&&$N.compareManyFields(e.children,t.children)}function JN(e,t){return e===t||LN(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&$N.visit(e.indices,t.indices)&&$N.visit(e.dictionary,t.dictionary)}function YN(e,t){return e===t||LN(e,t)&&e.unit===t.unit}function XN(e,t){return e===t||LN(e,t)&&e.unit===t.unit}function ZN(e,t){return e===t||LN(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}function QN(e,t){return e===t||LN(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&$N.compareManyFields(e.children,t.children)}IN.prototype.visitNull=RN,IN.prototype.visitBool=RN,IN.prototype.visitInt=zN,IN.prototype.visitInt8=zN,IN.prototype.visitInt16=zN,IN.prototype.visitInt32=zN,IN.prototype.visitInt64=zN,IN.prototype.visitUint8=zN,IN.prototype.visitUint16=zN,IN.prototype.visitUint32=zN,IN.prototype.visitUint64=zN,IN.prototype.visitFloat=BN,IN.prototype.visitFloat16=BN,IN.prototype.visitFloat32=BN,IN.prototype.visitFloat64=BN,IN.prototype.visitUtf8=RN,IN.prototype.visitLargeUtf8=RN,IN.prototype.visitBinary=RN,IN.prototype.visitLargeBinary=RN,IN.prototype.visitFixedSizeBinary=VN,IN.prototype.visitDate=HN,IN.prototype.visitDateDay=HN,IN.prototype.visitDateMillisecond=HN,IN.prototype.visitTimestamp=UN,IN.prototype.visitTimestampSecond=UN,IN.prototype.visitTimestampMillisecond=UN,IN.prototype.visitTimestampMicrosecond=UN,IN.prototype.visitTimestampNanosecond=UN,IN.prototype.visitTime=WN,IN.prototype.visitTimeSecond=WN,IN.prototype.visitTimeMillisecond=WN,IN.prototype.visitTimeMicrosecond=WN,IN.prototype.visitTimeNanosecond=WN,IN.prototype.visitDecimal=RN,IN.prototype.visitList=GN,IN.prototype.visitStruct=KN,IN.prototype.visitUnion=qN,IN.prototype.visitDenseUnion=qN,IN.prototype.visitSparseUnion=qN,IN.prototype.visitDictionary=JN,IN.prototype.visitInterval=YN,IN.prototype.visitIntervalDayTime=YN,IN.prototype.visitIntervalYearMonth=YN,IN.prototype.visitIntervalMonthDayNano=YN,IN.prototype.visitDuration=XN,IN.prototype.visitDurationSecond=XN,IN.prototype.visitDurationMillisecond=XN,IN.prototype.visitDurationMicrosecond=XN,IN.prototype.visitDurationNanosecond=XN,IN.prototype.visitFixedSizeList=ZN,IN.prototype.visitMap=QN;const $N=new IN;function eP(e,t){return $N.compareSchemas(e,t)}function tP(e,t){return $N.compareFields(e,t)}function nP(e,t){return $N.visit(e,t)}const rP=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$O),SN),LM),yA),nO),CM),JO),jN),{compareSchemas:eP,compareFields:tP,compareTypes:nP}),iP=365.2425,aP=10**8*24*60*60*1e3,oP=6048e5,sP=864e5,cP=3600,lP=cP*24,uP=lP*7,dP=lP*iP,fP=dP/12,pP=fP*3,mP=Symbol.for(`constructDateFrom`);function hP(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&mP in e?e[mP](t):e instanceof Date?new e.constructor(t):new Date(t)}function gP(e,t){return hP(t||e,e)}let _P={};function vP(){return _P}function yP(e,t){var n,r;let i=vP(),a=t?.weekStartsOn??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.weekStartsOn)??i.weekStartsOn??((r=i.locale)==null||(r=r.options)==null?void 0:r.weekStartsOn)??0,o=gP(e,t?.in),s=o.getDay(),c=(s=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function SP(e){let t=gP(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 CP(e,...t){let n=hP.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function wP(e,t){let n=gP(e,t?.in);return n.setHours(0,0,0,0),n}function TP(e,t,n){let[r,i]=CP(n?.in,e,t),a=wP(r),o=wP(i),s=+a-SP(a),c=+o-SP(o);return Math.round((s-c)/sP)}function EP(e,t){let n=xP(e,t),r=hP(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),bP(r)}function DP(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function OP(e){return!(!DP(e)&&typeof e!=`number`||isNaN(+gP(e)))}function kP(e,t){let n=gP(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const AP={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`}},jP=(e,t,n)=>{let r,i=AP[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 MP(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const NP={full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},PP={full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},FP={full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},IP={date:MP({formats:NP,defaultWidth:`full`}),time:MP({formats:PP,defaultWidth:`full`}),dateTime:MP({formats:FP,defaultWidth:`full`})},LP={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},RP=(e,t,n,r)=>LP[e];function zP(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 BP={narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},VP={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},HP={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`]},UP={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`]},WP={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`}},GP={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`}},KP=(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`},qP={ordinalNumber:KP,era:zP({values:BP,defaultWidth:`wide`}),quarter:zP({values:VP,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:zP({values:HP,defaultWidth:`wide`}),day:zP({values:UP,defaultWidth:`wide`}),dayPeriod:zP({values:WP,defaultWidth:`wide`,formattingValues:GP,defaultFormattingWidth:`wide`})};function JP(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)?XP(s,e=>e.test(o)):YP(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 YP(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function XP(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 QP=/^(\d+)(th|st|nd|rd)?/i,$P=/\d+/i,eF={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},tF={any:[/^b/i,/^(a|c)/i]},nF={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rF={any:[/1/i,/2/i,/3/i,/4/i]},iF={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},aF={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]},oF={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},sF={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]},cF={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},lF={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}},uF={ordinalNumber:ZP({matchPattern:QP,parsePattern:$P,valueCallback:e=>parseInt(e,10)}),era:JP({matchPatterns:eF,defaultMatchWidth:`wide`,parsePatterns:tF,defaultParseWidth:`any`}),quarter:JP({matchPatterns:nF,defaultMatchWidth:`wide`,parsePatterns:rF,defaultParseWidth:`any`,valueCallback:e=>e+1}),month:JP({matchPatterns:iF,defaultMatchWidth:`wide`,parsePatterns:aF,defaultParseWidth:`any`}),day:JP({matchPatterns:oF,defaultMatchWidth:`wide`,parsePatterns:sF,defaultParseWidth:`any`}),dayPeriod:JP({matchPatterns:cF,defaultMatchWidth:`any`,parsePatterns:lF,defaultParseWidth:`any`})},dF={code:`en-US`,formatDistance:jP,formatLong:IP,formatRelative:RP,localize:qP,match:uF,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fF(e,t){let n=gP(e,t?.in),r=TP(n,kP(n)),i=r+1;return i}function pF(e,t){let n=gP(e,t?.in),r=bP(n)-+EP(n);return Math.round(r/oP)+1}function mF(e,t){var n,r;let i=gP(e,t?.in),a=i.getFullYear(),o=vP(),s=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??o.firstWeekContainsDate??((r=o.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,c=hP(t?.in||e,0);c.setFullYear(a+1,0,s),c.setHours(0,0,0,0);let l=yP(c,t),u=hP(t?.in||e,0);u.setFullYear(a,0,s),u.setHours(0,0,0,0);let d=yP(u,t);return+i>=+l?a+1:+i>=+d?a:a-1}function hF(e,t){var n,r;let i=vP(),a=t?.firstWeekContainsDate??(t==null||(n=t.locale)==null||(n=n.options)==null?void 0:n.firstWeekContainsDate)??i.firstWeekContainsDate??((r=i.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??1,o=mF(e,t),s=hP(t?.in||e,0);s.setFullYear(o,0,a),s.setHours(0,0,0,0);let c=yP(s,t);return c}function gF(e,t){let n=gP(e,t?.in),r=yP(n,t)-+hF(n,t);return Math.round(r/oP)+1}function _F(e,t){let n=e<0?`-`:``,r=Math.abs(e).toString().padStart(t,`0`);return n+r}const vF={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return _F(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):_F(n+1,2)},d(e,t){return _F(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 _F(e.getHours()%12||12,t.length)},H(e,t){return _F(e.getHours(),t.length)},m(e,t){return _F(e.getMinutes(),t.length)},s(e,t){return _F(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*10**(n-3));return _F(i,t.length)}},yF={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},bF={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 vF.y(e,t)},Y:function(e,t,n,r){let i=mF(e,r),a=i>0?i:1-i;if(t===`YY`){let e=a%100;return _F(e,2)}return t===`Yo`?n.ordinalNumber(a,{unit:`year`}):_F(a,t.length)},R:function(e,t){let n=xP(e);return _F(n,t.length)},u:function(e,t){let n=e.getFullYear();return _F(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 _F(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 _F(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 vF.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 _F(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=gF(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):_F(i,t.length)},I:function(e,t,n){let r=pF(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):_F(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):vF.d(e,t)},D:function(e,t,n){let r=fF(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):_F(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 _F(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 _F(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 _F(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?yF.noon:r===0?yF.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?yF.evening:r>=12?yF.afternoon:r>=4?yF.morning:yF.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 vF.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):vF.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):_F(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):_F(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):vF.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):vF.s(e,t)},S:function(e,t){return vF.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return SF(r);case`XXXX`:case`XX`:return CF(r);case`XXXXX`:case`XXX`:default:return CF(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return SF(r);case`xxxx`:case`xx`:return CF(r);case`xxxxx`:case`xxx`:default:return CF(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+xF(r,`:`);case`OOOO`:default:return`GMT`+CF(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+xF(r,`:`);case`zzzz`:default:return`GMT`+CF(r,`:`)}},t:function(e,t,n){let r=Math.trunc(e/1e3);return _F(r,t.length)},T:function(e,t,n){return _F(+e,t.length)}};function xF(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+_F(a,2)}function SF(e,t){if(e%60==0){let t=e>0?`-`:`+`;return t+_F(Math.abs(e)/60,2)}return CF(e,t)}function CF(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=_F(Math.trunc(r/60),2),a=_F(r%60,2);return n+i+t+a}const wF=(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`})}},TF=(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`})}},EF=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return wF(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}}`,wF(r,t)).replace(`{{time}}`,TF(i,t))},DF={p:TF,P:EF},OF=/^D+$/,kF=/^Y+$/,AF=[`D`,`DD`,`YY`,`YYYY`];function jF(e){return OF.test(e)}function MF(e){return kF.test(e)}function NF(e,t,n){let r=PF(e,t,n);if(console.warn(r),AF.includes(e))throw RangeError(r)}function PF(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 FF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,LF=/^'([^]*?)'?$/,RF=/''/g,zF=/[a-zA-Z]/;function BF(e,t,n){var r,i,a,o;let s=vP(),c=n?.locale??s.locale??dF,l=n?.firstWeekContainsDate??(n==null||(r=n.locale)==null||(r=r.options)==null?void 0:r.firstWeekContainsDate)??s.firstWeekContainsDate??((i=s.locale)==null||(i=i.options)==null?void 0:i.firstWeekContainsDate)??1,u=n?.weekStartsOn??(n==null||(a=n.locale)==null||(a=a.options)==null?void 0:a.weekStartsOn)??s.weekStartsOn??((o=s.locale)==null||(o=o.options)==null?void 0:o.weekStartsOn)??0,d=gP(e,n?.in);if(!OP(d))throw RangeError(`Invalid time value`);let f=t.match(IF).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=DF[t];return n(e,c.formatLong)}return e}).join(``).match(FF).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:VF(e)};if(bF[t])return{isToken:!0,value:e};if(t.match(zF))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});c.localize.preprocessor&&(f=c.localize.preprocessor(d,f));let p={firstWeekContainsDate:l,weekStartsOn:u,locale:c};return f.map(r=>{if(!r.isToken)return r.value;let i=r.value;(!n?.useAdditionalWeekYearTokens&&MF(i)||!n?.useAdditionalDayOfYearTokens&&jF(i))&&NF(i,t,String(e));let a=bF[i[0]];return a(d,i,c.localize,p)}).join(``)}function VF(e){let t=e.match(LF);return t?t[1].replace(RF,`'`):e}function HF(e,t){return gP(e*1e3,t?.in)}function UF(e,t){let n=WF(t)?new t(0):hP(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function WF(e){var t;return typeof e==`function`&&(t=e.prototype)?.constructor===e}function GF(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 KF(e){return e==null}function qF(e){return e!=null}async function JF(){if(typeof window<`u`&&window!==null)return`browser`;try{let e=await jt(()=>import(`./__vite-browser-external-DLPzVXxx.js`).then(kt(1)),__vite__mapDeps([0,1,2]));return e!==void 0&&e.versions!=null&&e.versions.node!=null?`node`:`unknown`}catch{return`unknown`}}function YF(e){return KF(e)?!1:Pk.isInt(e.type)&&!tI(e)||XF(e)}function XF(e){return KF(e)?!1:Pk.isInt(e.type)&&e.type.isSigned===!1}function ZF(e){return KF(e)?!1:Pk.isFloat(e.type)??!1}function QF(e){return KF(e)?!1:Pk.isDecimal(e.type)}function $F(e){return KF(e)?!1:Pk.isBool(e.type)}function eI(e){return KF(e)?!1:Pk.isDuration(e.type)}function tI(e){return KF(e)?!1:Pk.isInt(e.type)&&e.metadata.get(`ARROW:extension:name`)===`period`}function nI(e){return KF(e)?!1:Pk.isTimestamp(e.type)}function rI(e){return KF(e)?!1:Pk.isDate(e.type)}function iI(e){return KF(e)?!1:Pk.isTime(e.type)}function aI(e){return KF(e)?!1:Pk.isList(e.type)||Pk.isFixedSizeList(e.type)}function oI(e){return KF(e)?!1:Pk.isStruct(e.type)||Pk.isMap(e.type)}function sI(e){return KF(e)?!1:Pk.isStruct(e.type)&&e.metadata.get(`ARROW:extension:name`)===`interval`||Pk.isInterval(e.type)}const cI=new Date(1970,0,1);function lI(e,t){let n;if(t===GO.MILLISECOND)n=1e3;else if(t===GO.MICROSECOND)n=1e3*1e3;else if(t===GO.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 uI(e,t){var n;let r=lI(e,(t==null||(n=t.type)==null?void 0:n.unit)??GO.SECOND);return HF(r)}function dI(e,t){let n=uI(e,t);return BF(n,n.getMilliseconds()===0?`HH:mm:ss`:`HH:mm:ss.SSS`)}function fI(e){let t=`yyyy-MM-dd`;return e instanceof Date||typeof e==`number`&&Number.isFinite(e)?BF(e,t):(console.warn(`Unsupported date value: ${e}`),String(e))}function pI(e,t){var n;if(!(e instanceof Date||typeof e==`number`&&Number.isFinite(e)))return console.warn(`Unsupported datetime value: ${e}`),null;let r,i=t==null||(n=t.type)==null?void 0:n.timezone;return r=i?new RD(e,i):new RD(e),UF(r,Date)}function mI(e,t){var n;let r=(t==null||(n=t.type)==null?void 0:n.scale)||0,i=rP.bigNumToString(new rP.BN(e)).padStart(r,`0`);if(r===0)return i;let a=``;i.startsWith(`-`)&&(a=`-`,i=i.slice(1));let o=i.slice(0,-r)||`0`,s=GF(i.slice(-r),`0`)||``;return`${a}${o}${s?`.${s}`:``}`}const hI=new Intl.NumberFormat(`en-US`,{style:`decimal`,maximumFractionDigits:4,minimumFractionDigits:4,useGrouping:!0});function gI(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 _I(e,t){if(Pk.isInterval(t?.type))return gI(e);let n=t&&t.metadata.get(`ARROW:extension:name`);if(n&&n===`pandas.interval`){var r,i;let n=JSON.parse(t.metadata.get(`ARROW:extension:metadata`)),{closed:a}=n,o=e.toJSON(),s=a===`both`||a===`left`?`[`:`(`,c=a===`both`||a===`right`?`]`:`)`,l=yI(o.left,(r=t.type)==null||(r=r.children)==null?void 0:r[0]),u=yI(o.right,(i=t.type)==null||(i=i.children)==null?void 0:i[1]);return`${s+l}, ${u+c}`}return String(e)}function vI(e,t){return t?.type instanceof sA?JSON.parse(JSON.stringify(e,(e,t)=>{if(qF(t))return typeof t==`bigint`?Number(t):t})):JSON.parse(JSON.stringify(e,(e,t)=>typeof t==`bigint`?Number(t):t))}function yI(e,t){if(KF(e))return null;let n=e instanceof Date||Number.isFinite(e);if(n&&rI(t))return fI(e);if(typeof e==`bigint`&&iI(t))return dI(Number(e),t);if(n&&nI(t))return pI(e,t);if(tI(t))throw Error(`Period type is not supported yet`);if(sI(t))return _I(e,t);if(eI(t))throw Error(`Duration type is not supported yet`);return QF(t)?mI(e,t):ZF(t)&&Number.isFinite(e)||YF(t)?e:oI(t)||aI(t)?vI(e,t):$F(t)?!!e:String(e)}function bI(e){let t=(e.toArray()||[]).map(e=>e.toJSON())||[],n=t.map(t=>(e.schema.fields.forEach(e=>t[e.name]=yI(t[e.name],e)),t));return n}let xI=function(e){return e.ORIGIN_PRIVATE_FS=`origin-private-fs`,e.NODE_FS=`node-fs`,e}({});async function SI(e){let t=Bt(e,{logger:!1}),n,r,i=await JF();if(i===`browser`){if(t.bundles===void 0){let{getBundles:e}=await jt(async()=>{let{getBundles:e}=await import(`./default-browser-CICL74Rl.js`);return{getBundles:e}},[]);t.bundles=await e()}r=await AD(await t.bundles),n=new Worker(r.mainWorker)}else if(i===`node`){if(t.bundles===void 0){let{getBundles:e}=await jt(async()=>{let{getBundles:e}=await import(`./default-node-JnkfFX6Q.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]));t.bundles=await e()}r=await AD(await t.bundles);let e=r.mainWorker;e.startsWith(`/@fs/`)&&(e=e.replace(`/@fs/`,`file://`));let i=await jt(()=>import(`./browser-DAWwZmxu.js`),[]);n=new i.default(e,{type:`module`})}else throw Error(`Unsupported environment: ${i}`);let a;a=t.logger===!0?new JE:t.logger===!1?new qE:t.logger;let o=new aD(a,n);if(await o.instantiate(r.mainModule,r.pthreadWorker),t.storage)switch(t.storage.type){case xI.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 xI.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:bI(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:bI(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 CI(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 wI(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 Y=Symbol.for(`drizzle:entityKind`),TI=Symbol.for(`drizzle:hasOwnEntityKind`);function X(e,t){if(!e||typeof e!=`object`)return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,Y))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(Y in n&&n[Y]===t[Y])return!0;n=Object.getPrototypeOf(n)}return!1}var EI=(Yn=class{constructor(t,n){e.defineProperty(this,`name`,void 0),e.defineProperty(this,`keyAsName`,void 0),e.defineProperty(this,`primary`,void 0),e.defineProperty(this,`notNull`,void 0),e.defineProperty(this,`default`,void 0),e.defineProperty(this,`defaultFn`,void 0),e.defineProperty(this,`onUpdateFn`,void 0),e.defineProperty(this,`hasDefault`,void 0),e.defineProperty(this,`isUnique`,void 0),e.defineProperty(this,`uniqueName`,void 0),e.defineProperty(this,`uniqueType`,void 0),e.defineProperty(this,`dataType`,void 0),e.defineProperty(this,`columnType`,void 0),e.defineProperty(this,`enumValues`,void 0),e.defineProperty(this,`generated`,void 0),e.defineProperty(this,`generatedIdentity`,void 0),e.defineProperty(this,`config`,void 0),this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}mapFromDriverValue(e){return e}mapToDriverValue(e){return e}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!==`byDefault`}},e.defineProperty(Yn,Y,`Column`),Yn),DI=(Xn=class{constructor(t,n,r){e.defineProperty(this,`config`,void 0),e.defineProperty(this,`$default`,this.$defaultFn),e.defineProperty(this,`$onUpdate`,this.$onUpdateFn),this.config={name:t,keyAsName:t===``,notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:r,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}$onUpdateFn(e){return this.config.onUpdateFn=e,this.config.hasDefault=!0,this}primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(e){this.config.name===``&&(this.config.name=e)}},e.defineProperty(Xn,Y,`ColumnBuilder`),Xn);const OI=Symbol.for(`drizzle:Name`);var kI=(Zn=class{constructor(t,n){e.defineProperty(this,`reference`,void 0),e.defineProperty(this,`_onUpdate`,`no action`),e.defineProperty(this,`_onDelete`,`no action`),this.reference=()=>{let{name:e,columns:n,foreignColumns:r}=t();return{name:e,columns:n,foreignTable:r[0].table,foreignColumns:r}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.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 AI(e,this)}},e.defineProperty(Zn,Y,`PgForeignKeyBuilder`),Zn),AI=(Qn=class{constructor(t,n){e.defineProperty(this,`reference`,void 0),e.defineProperty(this,`onUpdate`,void 0),e.defineProperty(this,`onDelete`,void 0),this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._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[OI],...r,n[0].table[OI],...i];return e??`${a.join(`_`)}_fk`}},e.defineProperty(Qn,Y,`PgForeignKey`),Qn);function jI(e,...t){return e(...t)}function MI(e,t){return`${e[OI]}_${t.join(`_`)}_unique`}var NI=($n=class{constructor(t,n){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`nullsNotDistinctConfig`,!1),this.name=n,this.columns=t}nullsNotDistinct(){return this.nullsNotDistinctConfig=!0,this}build(e){return new FI(e,this.columns,this.nullsNotDistinctConfig,this.name)}},e.defineProperty($n,Y,`PgUniqueConstraintBuilder`),$n),PI=(er=class{constructor(t){e.defineProperty(this,`name`,void 0),this.name=t}on(...e){return new NI(e,this.name)}},e.defineProperty(er,Y,`PgUniqueOnConstraintBuilder`),er),FI=(tr=class{constructor(t,n,r,i){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`name`,void 0),e.defineProperty(this,`nullsNotDistinct`,!1),this.table=t,this.columns=n,this.name=i??MI(this.table,this.columns.map(e=>e.name)),this.nullsNotDistinct=r}getName(){return this.name}},e.defineProperty(tr,Y,`PgUniqueConstraint`),tr);function II(e,t,n){for(let r=t;rArray.isArray(e)?zI(e):typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:`${e}`).join(`,`)}}`}var BI=(nr=class extends DI{constructor(...t){super(...t),e.defineProperty(this,`foreignKeyConfigs`,[])}array(e){return new WI(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})=>jI((n,r)=>{let i=new kI(()=>{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 HI(e,this.config)}},e.defineProperty(nr,Y,`PgColumnBuilder`),nr),VI=(rr=class extends EI{constructor(e,t){t.uniqueName||=MI(e,[t.name]),super(e,t),this.table=e}},e.defineProperty(rr,Y,`PgColumn`),rr),HI=(ir=class extends VI{constructor(...t){super(...t),e.defineProperty(this,`indexConfig`,{order:this.config.order??`asc`,nulls:this.config.nulls??`last`,opClass:this.config.opClass}),e.defineProperty(this,`defaultConfig`,{order:`asc`,nulls:`last`,opClass:void 0})}getSQLType(){return this.getSQLType()}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}},e.defineProperty(ir,Y,`ExtraConfigColumn`),ir),UI=(ar=class{constructor(t,n,r,i){e.defineProperty(this,`name`,void 0),e.defineProperty(this,`keyAsName`,void 0),e.defineProperty(this,`type`,void 0),e.defineProperty(this,`indexConfig`,void 0),this.name=t,this.keyAsName=n,this.type=r,this.indexConfig=i}},e.defineProperty(ar,Y,`IndexedColumn`),ar),WI=(or=class extends BI{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 GI(e,this.config,t)}},e.defineProperty(or,Y,`PgArrayBuilder`),or),GI=(sr=class t extends VI{constructor(t,n,r,i){super(t,n),e.defineProperty(this,`size`,void 0),this.baseColumn=r,this.range=i,this.size=n.size}getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size==`number`?this.size:``}]`}mapFromDriverValue(e){return typeof e==`string`&&(e=RI(e)),e.map(e=>this.baseColumn.mapFromDriverValue(e))}mapToDriverValue(e,n=!1){let r=e.map(e=>e===null?null:X(this.baseColumn,t)?this.baseColumn.mapToDriverValue(e,!0):this.baseColumn.mapToDriverValue(e));return n?r:zI(r)}},e.defineProperty(sr,Y,`PgArray`),sr),KI=(cr=class extends BI{constructor(e,t){super(e,`string`,`PgEnumObjectColumn`),this.config.enum=t}build(e){return new qI(e,this.config)}},e.defineProperty(cr,Y,`PgEnumObjectColumnBuilder`),cr),qI=(lr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`enum`,void 0),e.defineProperty(this,`enumValues`,this.config.enum.enumValues),this.enum=n.enum}getSQLType(){return this.enum.enumName}},e.defineProperty(lr,Y,`PgEnumObjectColumn`),lr);const JI=Symbol.for(`drizzle:isPgEnum`);function YI(e){return!!e&&typeof e==`function`&&JI in e&&e[JI]===!0}var XI=(ur=class extends BI{constructor(e,t){super(e,`string`,`PgEnumColumn`),this.config.enum=t}build(e){return new ZI(e,this.config)}},e.defineProperty(ur,Y,`PgEnumColumnBuilder`),ur),ZI=(dr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`enum`,this.config.enum),e.defineProperty(this,`enumValues`,this.config.enum.enumValues),this.enum=n.enum}getSQLType(){return this.enum.enumName}},e.defineProperty(dr,Y,`PgEnumColumn`),dr),QI=(fr=class{constructor(e,t,n,r=!1,i=[]){this._={brand:`Subquery`,sql:e,selectedFields:t,alias:n,isWith:r,usedTables:i}}},e.defineProperty(fr,Y,`Subquery`),fr),$I=(pr=class extends QI{},e.defineProperty(pr,Y,`WithSubquery`),pr),eL=`0.44.2`;let tL,nL;const rL={startActiveSpan(e,t){return tL?(nL||=tL.trace.getTracer(`drizzle-orm`,eL),jI((n,r)=>r.startActiveSpan(e,e=>{try{return t(e)}catch(t){throw e.setStatus({code:n.SpanStatusCode.ERROR,message:t instanceof Error?t.message:`Unknown error`}),t}finally{e.end()}}),tL,nL)):t()}},iL=Symbol.for(`drizzle:ViewBaseConfig`),aL=Symbol.for(`drizzle:Schema`),oL=Symbol.for(`drizzle:Columns`),sL=Symbol.for(`drizzle:ExtraConfigColumns`),cL=Symbol.for(`drizzle:OriginalName`),lL=Symbol.for(`drizzle:BaseName`),uL=Symbol.for(`drizzle:IsAlias`),dL=Symbol.for(`drizzle:ExtraConfigBuilder`),fL=Symbol.for(`drizzle:IsDrizzleTable`);var pL=(mr=class{constructor(t,n,r){e.defineProperty(this,OI,void 0),e.defineProperty(this,cL,void 0),e.defineProperty(this,aL,void 0),e.defineProperty(this,oL,void 0),e.defineProperty(this,sL,void 0),e.defineProperty(this,lL,void 0),e.defineProperty(this,uL,!1),e.defineProperty(this,fL,!0),e.defineProperty(this,dL,void 0),this[OI]=this[cL]=t,this[aL]=n,this[lL]=r}},e.defineProperty(mr,Y,`Table`),e.defineProperty(mr,`Symbol`,{Name:OI,Schema:aL,OriginalName:cL,Columns:oL,ExtraConfigColumns:sL,BaseName:lL,IsAlias:uL,ExtraConfigBuilder:dL}),mr);function mL(e){return e[OI]}function hL(e){return`${e[aL]??`public`}.${e[OI]}`}var gL=(hr=class{},e.defineProperty(hr,Y,`FakePrimitiveParam`),hr);function _L(e){return e!=null&&typeof e.getSQL==`function`}function vL(e){let t={sql:``,params:[]};for(let r of e){var n;t.sql+=r.sql,t.params.push(...r.params),(n=r.typings)?.length&&(t.typings||=[],t.typings.push(...r.typings))}return t}var yL=(gr=class{constructor(t){e.defineProperty(this,`value`,void 0),this.value=Array.isArray(t)?t:[t]}getSQL(){return new bL([this])}},e.defineProperty(gr,Y,`StringChunk`),gr),bL=(_r=class t{constructor(t){e.defineProperty(this,`decoder`,CL),e.defineProperty(this,`shouldInlineParams`,!1),e.defineProperty(this,`usedTables`,[]),this.queryChunks=t;for(let e of t)if(X(e,pL)){let t=e[pL.Symbol.Schema];this.usedTables.push(t===void 0?e[pL.Symbol.Name]:t+`.`+e[pL.Symbol.Name])}}append(e){return this.queryChunks.push(...e.queryChunks),this}toQuery(e){return rL.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(e,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 vL(e.map(e=>{if(X(e,yL))return{sql:e.value.join(``),params:[]};if(X(e,xL))return{sql:a(e.value),params:[]};if(e===void 0)return{sql:``,params:[]};if(Array.isArray(e)){let t=[new yL(`(`)];for(let[n,r]of e.entries())t.push(r),ne},wL={mapToDriverValue:e=>e},TL={...CL,...wL};var EL=(yr=class{constructor(t,n=wL){e.defineProperty(this,`brand`,void 0),this.value=t,this.encoder=n}getSQL(){return new bL([this])}},e.defineProperty(yr,Y,`Param`),yr);function Z(e,...t){let n=[];(t.length>0||e.length>0&&e[0]!==``)&&n.push(new yL(e[0]));for(let[r,i]of t.entries())n.push(i,new yL(e[r+1]));return new bL(n)}(e=>{function t(){return new bL([])}e.empty=t;function n(e){return new bL(e)}e.fromList=n;function r(e){return new bL([new yL(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 bL(n)}e.join=i;function a(e){return new xL(e)}e.identifier=a;function o(e){return new DL(e)}e.placeholder=o;function s(e,t){return new EL(e,t)}e.param=s})(Z||={}),(t=>{class n{constructor(t,n){e.defineProperty(this,`isSelectionField`,!1),this.sql=t,this.fieldAlias=n}getSQL(){return this.sql}clone(){return new n(this.sql,this.fieldAlias)}}e.defineProperty(n,Y,`SQL.Aliased`),t.Aliased=n})(bL||={});var DL=(br=class{constructor(e){this.name=e}getSQL(){return new bL([this])}},e.defineProperty(br,Y,`Placeholder`),br);function OL(e,t){return e.map(e=>{if(X(e,DL)){if(!(e.name in t))throw Error(`No value for placeholder "${e.name}" was provided`);return t[e.name]}if(X(e,EL)&&X(e.value,DL)){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 kL=Symbol.for(`drizzle:IsDrizzleView`);var AL=(xr=class{constructor({name:t,schema:n,selectedFields:r,query:i}){e.defineProperty(this,iL,void 0),e.defineProperty(this,kL,!0),this[iL]={name:t,originalName:t,schema:n,selectedFields:r,query:i,isExisting:!i,isAlias:!1}}getSQL(){return new bL([this])}},e.defineProperty(xr,Y,`View`),xr);EI.prototype.getSQL=function(){return new bL([this])},pL.prototype.getSQL=function(){return new bL([this])},QI.prototype.getSQL=function(){return new bL([this])};var jL=(Sr=class{constructor(e){this.table=e}get(e,t){return t===`table`?this.table:e[t]}},e.defineProperty(Sr,Y,`ColumnAliasProxyHandler`),Sr),ML=(Cr=class{constructor(e,t){this.alias=e,this.replaceOriginalName=t}get(e,t){if(t===pL.Symbol.IsAlias)return!0;if(t===pL.Symbol.Name||this.replaceOriginalName&&t===pL.Symbol.OriginalName)return this.alias;if(t===iL)return{...e[iL],name:this.alias,isAlias:!0};if(t===pL.Symbol.Columns){let t=e[pL.Symbol.Columns];if(!t)return t;let n={};return Object.keys(t).map(r=>{n[r]=new Proxy(t[r],new jL(new Proxy(e,this)))}),n}let n=e[t];return X(n,EI)?new Proxy(n,new jL(new Proxy(e,this))):n}},e.defineProperty(Cr,Y,`TableAliasProxyHandler`),Cr),NL=(wr=class{constructor(e){this.alias=e}get(e,t){return t===`sourceTable`?PL(e.sourceTable,this.alias):e[t]}},e.defineProperty(wr,Y,`RelationTableAliasProxyHandler`),wr);function PL(e,t){return new Proxy(e,new ML(t,!1))}function FL(e,t){return new Proxy(e,new jL(new Proxy(e.table,new ML(t,!1))))}function IL(e,t){return new bL.Aliased(LL(e.sql,t),e.fieldAlias)}function LL(e,t){return Z.join(e.queryChunks.map(e=>X(e,EI)?FL(e,t):X(e,bL)?LL(e,t):X(e,bL.Aliased)?IL(e,t):e))}var RL=(Tr=class extends Error{constructor({message:e,cause:t}){super(e),this.name=`DrizzleError`,this.cause=t}},e.defineProperty(Tr,Y,`DrizzleError`),Tr),zL=(Er=class extends RL{constructor(){super({message:`Rollback`})}},e.defineProperty(Er,Y,`TransactionRollbackError`),Er),BL=(Dr=class{write(e){console.log(e)}},e.defineProperty(Dr,Y,`ConsoleLogWriter`),Dr),VL=(Or=class{constructor(t){e.defineProperty(this,`writer`,void 0),this.writer=t?.writer??new BL}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}`)}},e.defineProperty(Or,Y,`DefaultLogger`),Or),HL=(kr=class{logQuery(){}},e.defineProperty(kr,Y,`NoopLogger`),kr),UL=(Ii=Symbol.toStringTag,Ar=class{constructor(){e.defineProperty(this,Ii,`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)}},e.defineProperty(Ar,Y,`QueryPromise`),Ar);function WL(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(typeof n!=`string`)return e;let i=t?[...t,n]:[n];return X(r,EI)||X(r,bL)||X(r,bL.Aliased)?e.push({path:i,field:r}):X(r,pL)?e.push(...WL(r[pL.Symbol.Columns],i)):e.push(...WL(r,i)),e},[])}function GL(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 KL(e,t){let n=Object.entries(t).filter(([,e])=>e!==void 0).map(([t,n])=>X(n,bL)||X(n,EI)?[t,n]:[t,new EL(n,e[pL.Symbol.Columns][t])]);if(n.length===0)throw Error(`No values to set`);return Object.fromEntries(n)}function qL(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 JL(e){return e[pL.Symbol.Columns]}function YL(e){return X(e,QI)?e._.alias:X(e,AL)?e[iL].name:X(e,bL)?void 0:e[pL.Symbol.IsAlias]?e[pL.Symbol.Name]:e[pL.Symbol.BaseName]}function XL(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}var ZL=(jr=class extends BI{defaultNow(){return this.default(Z`now()`)}},e.defineProperty(jr,Y,`PgDateColumnBaseBuilder`),jr),QL=(Mr=class extends ZL{constructor(e){super(e,`date`,`PgDate`)}build(e){return new $L(e,this.config)}},e.defineProperty(Mr,Y,`PgDateBuilder`),Mr),$L=(Nr=class extends VI{getSQLType(){return`date`}mapFromDriverValue(e){return new Date(e)}mapToDriverValue(e){return e.toISOString()}},e.defineProperty(Nr,Y,`PgDate`),Nr),eR=(Pr=class extends ZL{constructor(e){super(e,`string`,`PgDateString`)}build(e){return new tR(e,this.config)}},e.defineProperty(Pr,Y,`PgDateStringBuilder`),Pr),tR=(Fr=class extends VI{getSQLType(){return`date`}},e.defineProperty(Fr,Y,`PgDateString`),Fr),nR=(Ir=class extends BI{constructor(e){super(e,`json`,`PgJson`)}build(e){return new rR(e,this.config)}},e.defineProperty(Ir,Y,`PgJsonBuilder`),Ir),rR=(Lr=class extends VI{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}},e.defineProperty(Lr,Y,`PgJson`),Lr),iR=(Rr=class extends BI{constructor(e){super(e,`json`,`PgJsonb`)}build(e){return new aR(e,this.config)}},e.defineProperty(Rr,Y,`PgJsonbBuilder`),Rr),aR=(zr=class extends VI{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}},e.defineProperty(zr,Y,`PgJsonb`),zr),oR=(Br=class extends BI{constructor(e,t,n){super(e,`string`,`PgNumeric`),this.config.precision=t,this.config.scale=n}build(e){return new sR(e,this.config)}},e.defineProperty(Br,Y,`PgNumericBuilder`),Br),sR=(Vr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`scale`,void 0),this.precision=n.precision,this.scale=n.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})`}},e.defineProperty(Vr,Y,`PgNumeric`),Vr),cR=(Hr=class extends BI{constructor(e,t,n){super(e,`number`,`PgNumericNumber`),this.config.precision=t,this.config.scale=n}build(e){return new lR(e,this.config)}},e.defineProperty(Hr,Y,`PgNumericNumberBuilder`),Hr),lR=(Ur=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`scale`,void 0),e.defineProperty(this,`mapToDriverValue`,String),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(e){return typeof e==`number`?e:Number(e)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?`numeric`:`numeric(${this.precision})`}},e.defineProperty(Ur,Y,`PgNumericNumber`),Ur),uR=(Wr=class extends BI{constructor(e,t,n){super(e,`bigint`,`PgNumericBigInt`),this.config.precision=t,this.config.scale=n}build(e){return new dR(e,this.config)}},e.defineProperty(Wr,Y,`PgNumericBigIntBuilder`),Wr),dR=(Gr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`scale`,void 0),e.defineProperty(this,`mapFromDriverValue`,BigInt),e.defineProperty(this,`mapToDriverValue`,String),this.precision=n.precision,this.scale=n.scale}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?`numeric`:`numeric(${this.precision})`}},e.defineProperty(Gr,Y,`PgNumericBigInt`),Gr),fR=(Kr=class extends ZL{constructor(e,t,n){super(e,`string`,`PgTime`),this.withTimezone=t,this.precision=n,this.config.withTimezone=t,this.config.precision=n}build(e){return new pR(e,this.config)}},e.defineProperty(Kr,Y,`PgTimeBuilder`),Kr),pR=(qr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`withTimezone`,void 0),e.defineProperty(this,`precision`,void 0),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){let e=this.precision===void 0?``:`(${this.precision})`;return`time${e}${this.withTimezone?` with time zone`:``}`}},e.defineProperty(qr,Y,`PgTime`),qr),mR=(Jr=class extends ZL{constructor(e,t,n){super(e,`date`,`PgTimestamp`),this.config.withTimezone=t,this.config.precision=n}build(e){return new hR(e,this.config)}},e.defineProperty(Jr,Y,`PgTimestampBuilder`),Jr),hR=(Yr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`withTimezone`,void 0),e.defineProperty(this,`precision`,void 0),e.defineProperty(this,`mapFromDriverValue`,e=>new Date(this.withTimezone?e:e+`+0000`)),e.defineProperty(this,`mapToDriverValue`,e=>e.toISOString()),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){let e=this.precision===void 0?``:` (${this.precision})`;return`timestamp${e}${this.withTimezone?` with time zone`:``}`}},e.defineProperty(Yr,Y,`PgTimestamp`),Yr),gR=(Xr=class extends ZL{constructor(e,t,n){super(e,`string`,`PgTimestampString`),this.config.withTimezone=t,this.config.precision=n}build(e){return new _R(e,this.config)}},e.defineProperty(Xr,Y,`PgTimestampStringBuilder`),Xr),_R=(Zr=class extends VI{constructor(t,n){super(t,n),e.defineProperty(this,`withTimezone`,void 0),e.defineProperty(this,`precision`,void 0),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){let e=this.precision===void 0?``:`(${this.precision})`;return`timestamp${e}${this.withTimezone?` with time zone`:``}`}},e.defineProperty(Zr,Y,`PgTimestampString`),Zr),vR=(Qr=class extends BI{constructor(e){super(e,`string`,`PgUUID`)}defaultRandom(){return this.default(Z`gen_random_uuid()`)}build(e){return new yR(e,this.config)}},e.defineProperty(Qr,Y,`PgUUIDBuilder`),Qr),yR=($r=class extends VI{getSQLType(){return`uuid`}},e.defineProperty($r,Y,`PgUUID`),$r);const bR=Symbol.for(`drizzle:PgInlineForeignKeys`),xR=Symbol.for(`drizzle:EnableRLS`);var SR=(Li=pL.Symbol.ExtraConfigBuilder,Ri=pL.Symbol.ExtraConfigColumns,ei=class extends pL{constructor(...t){super(...t),e.defineProperty(this,bR,[]),e.defineProperty(this,xR,!1),e.defineProperty(this,Li,void 0),e.defineProperty(this,Ri,{})}},e.defineProperty(ei,Y,`PgTable`),e.defineProperty(ei,`Symbol`,Object.assign({},pL.Symbol,{InlineForeignKeys:bR,EnableRLS:xR})),ei),CR=(ti=class{constructor(t,n){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`name`,void 0),this.columns=t,this.name=n}build(e){return new wR(e,this.columns,this.name)}},e.defineProperty(ti,Y,`PgPrimaryKeyBuilder`),ti),wR=(ni=class{constructor(t,n,r){e.defineProperty(this,`columns`,void 0),e.defineProperty(this,`name`,void 0),this.table=t,this.columns=n,this.name=r}getName(){return this.name??`${this.table[SR.Symbol.Name]}_${this.columns.map(e=>e.name).join(`_`)}_pk`}},e.defineProperty(ni,Y,`PgPrimaryKey`),ni);function TR(e,t){return SL(t)&&!_L(e)&&!X(e,EL)&&!X(e,DL)&&!X(e,EI)&&!X(e,pL)&&!X(e,AL)?new EL(e,t):e}const ER=(e,t)=>Z`${e} = ${TR(t,e)}`,DR=(e,t)=>Z`${e} <> ${TR(t,e)}`;function OR(...e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?new bL(t):new bL([new yL(`(`),Z.join(t,new yL(` and `)),new yL(`)`)])}function kR(...e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?new bL(t):new bL([new yL(`(`),Z.join(t,new yL(` or `)),new yL(`)`)])}function AR(e){return Z`not ${e}`}const jR=(e,t)=>Z`${e} > ${TR(t,e)}`,MR=(e,t)=>Z`${e} >= ${TR(t,e)}`,NR=(e,t)=>Z`${e} < ${TR(t,e)}`,PR=(e,t)=>Z`${e} <= ${TR(t,e)}`;function FR(e,t){return Array.isArray(t)?t.length===0?Z`false`:Z`${e} in ${t.map(t=>TR(t,e))}`:Z`${e} in ${TR(t,e)}`}function IR(e,t){return Array.isArray(t)?t.length===0?Z`true`:Z`${e} not in ${t.map(t=>TR(t,e))}`:Z`${e} not in ${TR(t,e)}`}function LR(e){return Z`${e} is null`}function RR(e){return Z`${e} is not null`}function zR(e){return Z`exists ${e}`}function BR(e){return Z`not exists ${e}`}function VR(e,t,n){return Z`${e} between ${TR(t,e)} and ${TR(n,e)}`}function HR(e,t,n){return Z`${e} not between ${TR(t,e)} and ${TR(n,e)}`}function UR(e,t){return Z`${e} like ${t}`}function WR(e,t){return Z`${e} not like ${t}`}function GR(e,t){return Z`${e} ilike ${t}`}function KR(e,t){return Z`${e} not ilike ${t}`}function qR(e){return Z`${e} asc`}function JR(e){return Z`${e} desc`}var YR=(ri=class{constructor(t,n,r){e.defineProperty(this,`referencedTableName`,void 0),e.defineProperty(this,`fieldName`,void 0),this.sourceTable=t,this.referencedTable=n,this.relationName=r,this.referencedTableName=n[pL.Symbol.Name]}},e.defineProperty(ri,Y,`Relation`),ri),XR=(ii=class{constructor(e,t){this.table=e,this.config=t}},e.defineProperty(ii,Y,`Relations`),ii),ZR=(ai=class e extends YR{constructor(e,t,n,r){super(e,t,n?.relationName),this.config=n,this.isNullable=r}withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config,this.isNullable);return n.fieldName=t,n}},e.defineProperty(ai,Y,`One`),ai),QR=(oi=class e extends YR{constructor(e,t,n){super(e,t,n?.relationName),this.config=n}withFieldName(t){let n=new e(this.sourceTable,this.referencedTable,this.config);return n.fieldName=t,n}},e.defineProperty(oi,Y,`Many`),oi);function $R(){return{and:OR,between:VR,eq:ER,exists:zR,gt:jR,gte:MR,ilike:GR,inArray:FR,isNull:LR,isNotNull:RR,like:UR,lt:NR,lte:PR,ne:DR,not:AR,notBetween:HR,notExists:BR,notLike:WR,notIlike:KR,notInArray:IR,or:kR,sql:Z}}function ez(){return{sql:Z,asc:qR,desc:JR}}function tz(e,t){Object.keys(e).length===1&&`default`in e&&!X(e.default,pL)&&(e=e.default);let n={},r={},i={};for(let[o,s]of Object.entries(e))if(X(s,pL)){var a;let e=hL(s),t=r[e];n[e]=o,i[o]={tsName:o,dbName:s[pL.Symbol.Name],schema:s[pL.Symbol.Schema],columns:s[pL.Symbol.Columns],relations:t?.relations??{},primaryKey:t?.primaryKey??[]};for(let e of Object.values(s[pL.Symbol.Columns]))e.primary&&i[o].primaryKey.push(e);let c=(a=s[pL.Symbol.ExtraConfigBuilder])?.call(s,s[pL.Symbol.ExtraConfigColumns]);if(c)for(let e of Object.values(c))X(e,CR)&&i[o].primaryKey.push(...e.columns)}else if(X(s,XR)){let e=hL(s.table),a=n[e],o=s.config(t(s.table)),c;for(let[t,n]of Object.entries(o))if(a){let e=i[a];e.relations[t]=n,c&&e.primaryKey.push(...c)}else e in r||(r[e]={relations:{},primaryKey:c}),r[e].relations[t]=n}return{tables:i,tableNamesMap:n}}function nz(e){return function(t,n){return new ZR(e,t,n,n?.fields.reduce((e,t)=>e&&t.notNull,!0)??!1)}}function rz(e){return function(t,n){return new QR(e,t,n)}}function iz(e,t,n){if(X(n,ZR)&&n.config)return{fields:n.config.fields,references:n.config.references};let r=t[hL(n.referencedTable)];if(!r)throw Error(`Table "${n.referencedTable[pL.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[hL(a)];if(!o)throw Error(`Table "${a[pL.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[pL.Symbol.Name]}". Please specify relation name`);if(s[0]&&X(s[0],ZR)&&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 az(e){return{one:nz(e),many:rz(e)}}function oz(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]=X(r,ZR)?l&&oz(e,e[s.relationTableTsKey],l,s.selection,i):l.map(t=>oz(e,e[s.relationTableTsKey],t,s.selection,i))}else{let e=i(n[o]),t=s.field,r;r=X(t,EI)?t:X(t,bL)?t.decoder:t.sql.decoder,a[s.tsKey]=e===null?null:r.mapFromDriverValue(e)}return a}var sz=(si=class t{constructor(t){e.defineProperty(this,`config`,void 0),this.config={...t}}get(e,n){if(n===`_`)return{...e._,selectedFields:new Proxy(e._.selectedFields,this)};if(n===iL)return{...e[iL],selectedFields:new Proxy(e[iL].selectedFields,this)};if(typeof n==`symbol`)return e[n];let r=X(e,QI)?e._.selectedFields:X(e,AL)?e[iL].selectedFields:e,i=r[n];if(X(i,bL.Aliased)){if(this.config.sqlAliasedBehavior===`sql`&&!i.isSelectionField)return i.sql;let e=i.clone();return e.isSelectionField=!0,e}if(X(i,bL)){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 X(i,EI)?this.config.alias?new Proxy(i,new jL(new Proxy(i.table,new ML(this.config.alias,this.config.replaceOriginalName??!1)))):i:typeof i!=`object`||!i?i:new Proxy(i,new t(this.config))}},e.defineProperty(si,Y,`SelectionProxyHandler`),si);function cz(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 lz(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 uz(e){return e}var dz=(ci=class{constructor(t){e.defineProperty(this,`cache`,{}),e.defineProperty(this,`cachedTables`,{}),e.defineProperty(this,`convert`,void 0),this.convert=t===`snake_case`?cz:t===`camelCase`?lz:uz}getColumnCasing(e){if(!e.keyAsName)return e.name;let t=e.table[pL.Symbol.Schema]??`public`,n=e.table[pL.Symbol.OriginalName],r=`${t}.${n}.${e.name}`;return this.cache[r]||this.cacheTable(e.table),this.cache[r]}cacheTable(e){let t=e[pL.Symbol.Schema]??`public`,n=e[pL.Symbol.OriginalName],r=`${t}.${n}`;if(!this.cachedTables[r]){for(let t of Object.values(e[pL.Symbol.Columns])){let e=`${r}.${t.name}`;this.cache[e]=this.convert(t.name)}this.cachedTables[r]=!0}}clearCache(){this.cache={},this.cachedTables={}}},e.defineProperty(ci,Y,`CasingCache`),ci),fz=(li=class extends AL{},e.defineProperty(li,Y,`PgViewBase`),li),pz=(ui=class{constructor(t){e.defineProperty(this,`casing`,void 0),this.casing=new dz(t?.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=Z` CREATE TABLE IF NOT EXISTS ${Z.identifier(i)}.${Z.identifier(r)} ( id SERIAL PRIMARY KEY, hash text NOT NULL, created_at bigint ) `;await t.execute(Z`CREATE SCHEMA IF NOT EXISTS ${Z.identifier(i)}`),await t.execute(a);let o=await t.all(Z`select id, hash, created_at from ${Z.identifier(i)}.${Z.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){var r;return t[e]!==void 0||(r=n[e])?.onUpdateFn!==void 0}),i=r.length;return Z.join(r.flatMap((e,r)=>{let a=n[e],o=t[e]??Z.param(a.onUpdateFn(),a),s=Z`${Z.identifier(this.casing.getColumnCasing(a))} = ${o}`;return r{let i=[];if(X(e,bL.Aliased)&&e.isSelectionField)i.push(Z.identifier(e.fieldAlias));else if(X(e,bL.Aliased)||X(e,bL)){let n=X(e,bL.Aliased)?e.sql:e;t?i.push(new bL(n.queryChunks.map(e=>X(e,VI)?Z.identifier(this.casing.getColumnCasing(e)):e))):i.push(n),X(e,bL.Aliased)&&i.push(Z` as ${Z.identifier(e.fieldAlias)}`)}else X(e,EI)&&(t?i.push(Z.identifier(this.casing.getColumnCasing(e))):i.push(e));return ro?.some(({alias:t})=>t===(e[pL.Symbol.IsAlias]?mL(e):e[pL.Symbol.BaseName])))(e.field.table)){let t=mL(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,g=this.buildWithCTE(e),_;f&&(_=f===!0?Z` distinct`:Z` distinct on (${Z.join(f.on,Z`, `)})`);let v=this.buildSelection(m,{isSingleTable:h}),y=this.buildFromTable(a),b=this.buildJoins(o),x=r?Z` where ${r}`:void 0,S=i?Z` having ${i}`:void 0,C;s&&s.length>0&&(C=Z` order by ${Z.join(s,Z`, `)}`);let w;c&&c.length>0&&(w=Z` group by ${Z.join(c,Z`, `)}`);let T=typeof l==`object`||typeof l==`number`&&l>=0?Z` limit ${l}`:void 0,E=u?Z` offset ${u}`:void 0,D=Z.empty();if(d){let e=Z` for ${Z.raw(d.strength)}`;d.config.of&&e.append(Z` of ${Z.join(Array.isArray(d.config.of)?d.config.of:[d.config.of],Z`, `)}`),d.config.noWait?e.append(Z` nowait`):d.config.skipLocked&&e.append(Z` skip locked`),D.append(e)}let O=Z`${g}select${_} ${v} from ${y}${b}${x}${w}${S}${C}${T}${E}${D}`;return p.length>0?this.buildSetOperations(O,p):O}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=Z`(${e.getSQL()}) `,c=Z`(${r.getSQL()})`,l;if(a&&a.length>0){let e=[];for(let t of a)if(X(t,VI))e.push(Z.identifier(t.name));else if(X(t,bL)){for(let e=0;e=0?Z` limit ${i}`:void 0,d=Z.raw(`${t} ${n?`all `:``}`),f=o?Z` offset ${o}`:void 0;return Z`${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[pL.Symbol.Columns],l=Object.entries(c).filter(([e,t])=>!t.shouldDisableInsert()),u=l.map(([,e])=>Z.identifier(this.casing.getColumnCasing(e)));if(a){let e=t;X(e,bL)?s.push(e):s.push(e.getSQL())}else{let e=t;s.push(Z.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||X(i,EL)&&i.value===void 0)if(t.defaultFn!==void 0){let e=t.defaultFn(),n=X(e,bL)?e:Z.param(e,t);r.push(n)}else if(!t.default&&t.onUpdateFn!==void 0){let e=t.onUpdateFn(),n=X(e,bL)?e:Z.param(e,t);r.push(n)}else r.push(Z`default`);else r.push(i)}s.push(r),t({dbKey:t.name,tsKey:e,field:FL(t,o),relationTableTsKey:void 0,isJson:!1,selection:[]}))}else{let r=Object.fromEntries(Object.entries(i.columns).map(([e,t])=>[e,FL(t,o)]));if(a.where){let e=typeof a.where==`function`?a.where(r,$R()):a.where;p=e&&LL(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=>{var t;return(t=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 g;if(a.extras){g=typeof a.extras==`function`?a.extras(r,{sql:Z}):a.extras;for(let[e,t]of Object.entries(g))s.push({tsKey:e,value:IL(t,o)})}for(let{tsKey:e,value:t}of s)l.push({dbKey:X(t,bL.Aliased)?t.fieldAlias:i.columns[e].name,tsKey:e,field:X(t,EI)?FL(t,o):t,relationTableTsKey:void 0,isJson:!1,selection:[]});let _=typeof a.orderBy==`function`?a.orderBy(r,ez()):a.orderBy??[];Array.isArray(_)||(_=[_]),f=_.map(e=>X(e,EI)?FL(e,o):LL(e,o)),u=a.limit,d=a.offset;for(let{tsKey:r,queryConfig:i,relation:a}of h){let s=iz(t,n,a),c=hL(a.referencedTable),u=n[c],d=`${o}_${r}`,f=OR(...s.fields.map((e,t)=>ER(FL(s.references[t],d),FL(e,o)))),p=this.buildRelationalQueryWithoutPK({fullSchema:e,schema:t,tableNamesMap:n,table:e[u],tableConfig:t[u],queryConfig:X(a,ZR)?i===!0?{limit:1}:{...i,limit:1}:i,tableAlias:d,joinOn:f,nestedQueryRelation:a}),h=Z`${Z.identifier(d)}.${Z.identifier(`data`)}`.as(r);m.push({on:Z`true`,table:new QI(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 RL({message:`No fields selected for table "${i.tsName}" ("${o}")`});let h;if(p=OR(c,p),s){let e=Z`json_build_array(${Z.join(l.map(({field:e,tsKey:t,isJson:n})=>n?Z`${Z.identifier(`${o}_${t}`)}.${Z.identifier(`data`)}`:X(e,bL.Aliased)?e.sql:e),Z`, `)})`;X(s,QR)&&(e=Z`coalesce(json_agg(${e}${f.length>0?Z` order by ${Z.join(f,Z`, `)}`: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:PL(r,o),fields:{},fieldsFlat:[{path:[],field:Z.raw(`*`)}],where:p,limit:u,offset:d,orderBy:f,setOperators:[]}),p=void 0,u=void 0,d=void 0,f=[]):h=PL(r,o),h=this.buildSelectQuery({table:X(h,SR)?h:new QI(h,{},o),fields:{},fieldsFlat:t.map(({field:e})=>({path:[],field:X(e,EI)?FL(e,o):e})),joins:m,where:p,limit:u,offset:d,orderBy:f,setOperators:[]})}else h=this.buildSelectQuery({table:PL(r,o),fields:{},fieldsFlat:l.map(({field:e})=>({path:[],field:X(e,EI)?FL(e,o):e})),joins:m,where:p,limit:u,offset:d,orderBy:f,setOperators:[]});return{tableTsKey:i.tsName,sql:h,selection:l}}},e.defineProperty(ui,Y,`PgDialect`),ui),mz=(di=class{getSelectedFields(){return this._.selectedFields}},e.defineProperty(di,Y,`TypedQueryBuilder`),di),hz=(fi=class{constructor(t){e.defineProperty(this,`fields`,void 0),e.defineProperty(this,`session`,void 0),e.defineProperty(this,`dialect`,void 0),e.defineProperty(this,`withList`,[]),e.defineProperty(this,`distinct`,void 0),e.defineProperty(this,`authToken`,void 0),this.fields=t.fields,this.session=t.session,this.dialect=t.dialect,t.withList&&(this.withList=t.withList),this.distinct=t.distinct}setToken(e){return this.authToken=e,this}from(e){let t=!!this.fields,n=e,r;return r=this.fields?this.fields:X(n,QI)?Object.fromEntries(Object.keys(n._.selectedFields).map(e=>[e,n[e]])):X(n,fz)?n[iL].selectedFields:X(n,bL)?{}:JL(n),new _z({table:n,fields:r,isPartialSelect:t,session:this.session,dialect:this.dialect,withList:this.withList,distinct:this.distinct}).setToken(this.authToken)}},e.defineProperty(fi,Y,`PgSelectBuilder`),fi),gz=(pi=class extends mz{constructor({table:t,fields:n,isPartialSelect:r,session:i,dialect:a,withList:o,distinct:s}){super(),e.defineProperty(this,`_`,void 0),e.defineProperty(this,`config`,void 0),e.defineProperty(this,`joinsNotNullableMap`,void 0),e.defineProperty(this,`tableName`,void 0),e.defineProperty(this,`isPartialSelect`,void 0),e.defineProperty(this,`session`,void 0),e.defineProperty(this,`dialect`,void 0),e.defineProperty(this,`cacheConfig`,void 0),e.defineProperty(this,`usedTables`,new Set),e.defineProperty(this,`leftJoin`,this.createJoin(`left`,!1)),e.defineProperty(this,`leftJoinLateral`,this.createJoin(`left`,!0)),e.defineProperty(this,`rightJoin`,this.createJoin(`right`,!1)),e.defineProperty(this,`innerJoin`,this.createJoin(`inner`,!1)),e.defineProperty(this,`innerJoinLateral`,this.createJoin(`inner`,!0)),e.defineProperty(this,`fullJoin`,this.createJoin(`full`,!1)),e.defineProperty(this,`crossJoin`,this.createJoin(`cross`,!1)),e.defineProperty(this,`crossJoinLateral`,this.createJoin(`cross`,!0)),e.defineProperty(this,`union`,this.createSetOperator(`union`,!1)),e.defineProperty(this,`unionAll`,this.createSetOperator(`union`,!0)),e.defineProperty(this,`intersect`,this.createSetOperator(`intersect`,!1)),e.defineProperty(this,`intersectAll`,this.createSetOperator(`intersect`,!0)),e.defineProperty(this,`except`,this.createSetOperator(`except`,!1)),e.defineProperty(this,`exceptAll`,this.createSetOperator(`except`,!0)),this.config={withList:o,table:t,fields:{...n},distinct:s,setOperators:[]},this.isPartialSelect=r,this.session=i,this.dialect=a,this._={selectedFields:n,config:this.config},this.tableName=YL(t),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{};for(let e of Dz(t))this.usedTables.add(e)}getUsedTables(){return[...this.usedTables]}createJoin(e,t){return(n,r)=>{var i;let a=this.tableName,o=YL(n);for(let e of Dz(n))this.usedTables.add(e);if(typeof o==`string`&&(i=this.config.joins)?.some(e=>e.alias===o))throw Error(`Alias "${o}" is already used in this query`);if(!this.isPartialSelect&&(Object.keys(this.joinsNotNullableMap).length===1&&typeof a==`string`&&(this.config.fields={[a]:this.config.fields}),typeof o==`string`&&!X(n,bL))){let e=X(n,QI)?n._.selectedFields:X(n,AL)?n[iL].selectedFields:n[pL.Symbol.Columns];this.config.fields[o]=e}if(typeof r==`function`&&(r=r(new Proxy(this.config.fields,new sz({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.joins||(this.config.joins=[]),this.config.joins.push({on:r,table:n,joinType:e,alias:o,lateral:t}),typeof o==`string`)switch(e){case`left`:this.joinsNotNullableMap[o]=!1;break;case`right`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[o]=!0;break;case`cross`:case`inner`:this.joinsNotNullableMap[o]=!0;break;case`full`:this.joinsNotNullableMap=Object.fromEntries(Object.entries(this.joinsNotNullableMap).map(([e])=>[e,!1])),this.joinsNotNullableMap[o]=!1;break}return this}}createSetOperator(e,t){return n=>{let r=typeof n==`function`?n(yz()):n;if(!GL(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}}addSetOperators(e){return this.config.setOperators.push(...e),this}where(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new sz({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})))),this.config.where=e,this}having(e){return typeof e==`function`&&(e=e(new Proxy(this.config.fields,new sz({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 sz({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 sz({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(...Dz(this.config.table)),this.config.joins)for(let e of this.config.joins)t.push(...Dz(e.table));return new Proxy(new QI(this.getSQL(),this.config.fields,e,!1,[...new Set(t)]),new sz({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`}))}getSelectedFields(){return new Proxy(this.config.fields,new sz({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}},e.defineProperty(pi,Y,`PgSelectQueryBuilder`),pi),_z=(mi=class extends gz{constructor(...t){super(...t),e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`execute`,e=>rL.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken)))}_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 rL.startActiveSpan(`drizzle.prepareQuery`,()=>{let n=WL(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)}setToken(e){return this.authToken=e,this}},e.defineProperty(mi,Y,`PgSelect`),mi);qL(_z,[UL]);function vz(e,t){return(n,r,...i)=>{let a=[r,...i].map(n=>({type:e,isAll:t,rightSelect:n}));for(let e of a)if(!GL(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 yz=()=>({union:bz,unionAll:xz,intersect:Sz,intersectAll:Cz,except:wz,exceptAll:Tz}),bz=vz(`union`,!1),xz=vz(`union`,!0),Sz=vz(`intersect`,!1),Cz=vz(`intersect`,!0),wz=vz(`except`,!1),Tz=vz(`except`,!0);var Ez=(hi=class{constructor(t){e.defineProperty(this,`dialect`,void 0),e.defineProperty(this,`dialectConfig`,void 0),e.defineProperty(this,`$with`,(e,t)=>{let n=this,r=r=>(typeof r==`function`&&(r=r(n)),new Proxy(new $I(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new sz({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})));return{as:r}}),this.dialect=X(t,pz)?t:void 0,this.dialectConfig=X(t,pz)?void 0:t}with(...e){let t=this;function n(n){return new hz({fields:n??void 0,session:void 0,dialect:t.getDialect(),withList:e})}function r(e){return new hz({fields:e??void 0,session:void 0,dialect:t.getDialect(),distinct:!0})}function i(e,n){return new hz({fields:n??void 0,session:void 0,dialect:t.getDialect(),distinct:{on:e}})}return{select:n,selectDistinct:r,selectDistinctOn:i}}select(e){return new hz({fields:e??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(e){return new hz({fields:e??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}selectDistinctOn(e,t){return new hz({fields:t??void 0,session:void 0,dialect:this.getDialect(),distinct:{on:e}})}getDialect(){return this.dialect||=new pz(this.dialectConfig),this.dialect}},e.defineProperty(hi,Y,`PgQueryBuilder`),hi);function Dz(e){return X(e,SR)?[e[aL]?`${e[aL]}.${e[pL.Symbol.BaseName]}`:e[pL.Symbol.BaseName]]:X(e,QI)?e._.usedTables??[]:X(e,bL)?e.usedTables??[]:[]}var Oz=(gi=class extends UL{constructor(t,n,r,i){super(),e.defineProperty(this,`config`,void 0),e.defineProperty(this,`cacheConfig`,void 0),e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`execute`,e=>rL.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))),this.session=n,this.dialect=r,this.config={table:t,withList:i}}where(e){return this.config.where=e,this}returning(e=this.config.table[pL.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=WL(e),this}getSQL(){return this.dialect.buildDeleteQuery(this.config)}toSQL(){let{typings:e,...t}=this.dialect.sqlToQuery(this.getSQL());return t}_prepare(e){return rL.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`delete`,tables:Dz(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}setToken(e){return this.authToken=e,this}getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new sz({alias:mL(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},e.defineProperty(gi,Y,`PgDelete`),gi),kz=(_i=class{constructor(t,n,r,i,a){e.defineProperty(this,`authToken`,void 0),this.table=t,this.session=n,this.dialect=r,this.withList=i,this.overridingSystemValue_=a}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[pL.Symbol.Columns];for(let r of Object.keys(e)){let i=e[r];t[r]=X(i,bL)?i:new EL(i,n[r])}return t});return new Az(this.table,t,this.session,this.dialect,this.withList,!1,this.overridingSystemValue_).setToken(this.authToken)}select(e){let t=typeof e==`function`?e(new Ez):e;if(!X(t,bL)&&!GL(this.table[oL],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 Az(this.table,t,this.session,this.dialect,this.withList,!0)}},e.defineProperty(_i,Y,`PgInsertBuilder`),_i),Az=(vi=class extends UL{constructor(t,n,r,i,a,o,s){super(),e.defineProperty(this,`config`,void 0),e.defineProperty(this,`cacheConfig`,void 0),e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`execute`,e=>rL.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))),this.session=r,this.dialect=i,this.config={table:t,values:n,withList:a,select:o,overridingSystemValue_:s}}returning(e=this.config.table[pL.Symbol.Columns]){return this.config.returningFields=e,this.config.returning=WL(e),this}onConflictDoNothing(e={}){if(e.target===void 0)this.config.onConflict=Z`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?Z` where ${e.where}`:void 0;this.config.onConflict=Z`(${Z.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?Z` where ${e.where}`:void 0,n=e.targetWhere?Z` where ${e.targetWhere}`:void 0,r=e.setWhere?Z` where ${e.setWhere}`:void 0,i=this.dialect.buildUpdateSet(this.config.table,KL(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=Z`(${Z.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 rL.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),this.config.returning,e,!0,void 0,{type:`insert`,tables:Dz(this.config.table)},this.cacheConfig))}prepare(e){return this._prepare(e)}setToken(e){return this.authToken=e,this}getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new sz({alias:mL(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},e.defineProperty(vi,Y,`PgInsert`),vi),jz=(yi=class extends UL{constructor(t,n,r){super(),e.defineProperty(this,`config`,void 0),e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`execute`,e=>rL.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(e,this.authToken))),this.session=n,this.dialect=r,this.config={view:t}}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 rL.startActiveSpan(`drizzle.prepareQuery`,()=>this.session.prepareQuery(this.dialect.sqlToQuery(this.getSQL()),void 0,e,!0))}prepare(e){return this._prepare(e)}setToken(e){return this.authToken=e,this}},e.defineProperty(yi,Y,`PgRefreshMaterializedView`),yi),Mz=(bi=class{constructor(t,n,r,i){e.defineProperty(this,`authToken`,void 0),this.table=t,this.session=n,this.dialect=r,this.withList=i}setToken(e){return this.authToken=e,this}set(e){return new Nz(this.table,KL(this.table,e),this.session,this.dialect,this.withList).setToken(this.authToken)}},e.defineProperty(bi,Y,`PgUpdateBuilder`),bi),Nz=(xi=class extends UL{constructor(t,n,r,i,a){super(),e.defineProperty(this,`config`,void 0),e.defineProperty(this,`tableName`,void 0),e.defineProperty(this,`joinsNotNullableMap`,void 0),e.defineProperty(this,`cacheConfig`,void 0),e.defineProperty(this,`leftJoin`,this.createJoin(`left`)),e.defineProperty(this,`rightJoin`,this.createJoin(`right`)),e.defineProperty(this,`innerJoin`,this.createJoin(`inner`)),e.defineProperty(this,`fullJoin`,this.createJoin(`full`)),e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`execute`,e=>this._prepare().execute(e,this.authToken)),this.session=r,this.dialect=i,this.config={set:n,table:t,withList:a,joins:[]},this.tableName=YL(t),this.joinsNotNullableMap=typeof this.tableName==`string`?{[this.tableName]:!0}:{}}from(e){let t=e,n=YL(t);return typeof n==`string`&&(this.joinsNotNullableMap[n]=!0),this.config.from=t,this}getTableLikeFields(e){return X(e,SR)?e[pL.Symbol.Columns]:X(e,QI)?e._.selectedFields:e[iL].selectedFields}createJoin(e){return(t,n)=>{let r=YL(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&&!X(this.config.from,bL)?this.getTableLikeFields(this.config.from):void 0;n=n(new Proxy(this.config.table[pL.Symbol.Columns],new sz({sqlAliasedBehavior:`sql`,sqlBehavior:`sql`})),e&&new Proxy(e,new sz({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}}where(e){return this.config.where=e,this}returning(e){if(!e&&(e=Object.assign({},this.config.table[pL.Symbol.Columns]),this.config.from)){let t=YL(this.config.from);if(typeof t==`string`&&this.config.from&&!X(this.config.from,bL)){let n=this.getTableLikeFields(this.config.from);e[t]=n}for(let t of this.config.joins){let n=YL(t.table);if(typeof n==`string`&&!X(t.table,bL)){let r=this.getTableLikeFields(t.table);e[n]=r}}}return this.config.returningFields=e,this.config.returning=WL(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:Dz(this.config.table)},this.cacheConfig);return t.joinsNotNullableMap=this.joinsNotNullableMap,t}prepare(e){return this._prepare(e)}setToken(e){return this.authToken=e,this}getSelectedFields(){return this.config.returningFields?new Proxy(this.config.returningFields,new sz({alias:mL(this.config.table),sqlAliasedBehavior:`alias`,sqlBehavior:`error`})):void 0}$dynamic(){return this}},e.defineProperty(xi,Y,`PgUpdate`),xi),Pz=(zi=Symbol.toStringTag,Si=class t extends bL{constructor(n){super(t.buildEmbeddedCount(n.source,n.filters).queryChunks),e.defineProperty(this,`sql`,void 0),e.defineProperty(this,`token`,void 0),e.defineProperty(this,zi,`PgCountBuilder`),e.defineProperty(this,`session`,void 0),this.params=n,this.mapWith(Number),this.session=n.session,this.sql=t.buildCount(n.source,n.filters)}static buildEmbeddedCount(e,t){return Z`(select count(*) from ${e}${Z.raw(` where `).if(t)}${t})`}static buildCount(e,t){return Z`select count(*) as count from ${e}${Z.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})}},e.defineProperty(Si,Y,`PgCountBuilder`),Si),Fz=(Ci=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}findMany(e){return new Iz(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e||{},`many`)}findFirst(e){return new Iz(this.fullSchema,this.schema,this.tableNamesMap,this.table,this.tableConfig,this.dialect,this.session,e?{...e,limit:1}:{limit:1},`first`)}},e.defineProperty(Ci,Y,`PgRelationalQueryBuilder`),Ci),Iz=(wi=class extends UL{constructor(t,n,r,i,a,o,s,c,l){super(),e.defineProperty(this,`authToken`,void 0),this.fullSchema=t,this.schema=n,this.tableNamesMap=r,this.table=i,this.tableConfig=a,this.dialect=o,this.session=s,this.config=c,this.mode=l}_prepare(e){return rL.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=>oz(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}setToken(e){return this.authToken=e,this}execute(){return rL.startActiveSpan(`drizzle.operation`,()=>this._prepare().execute(void 0,this.authToken))}},e.defineProperty(wi,Y,`PgRelationalQuery`),wi),Lz=(Ti=class extends UL{constructor(e,t,n,r){super(),this.execute=e,this.sql=t,this.query=n,this.mapBatchResult=r}getSQL(){return this.sql}getQuery(){return this.query}mapResult(e,t){return t?this.mapBatchResult(e):e}_prepare(){return this}isResponseInArrayMode(){return!1}},e.defineProperty(Ti,Y,`PgRaw`),Ti),Rz=(Ei=class{constructor(t,n,r){if(e.defineProperty(this,`query`,void 0),e.defineProperty(this,`$with`,(e,t)=>{let n=this,r=r=>(typeof r==`function`&&(r=r(new Ez(n.dialect))),new Proxy(new $I(r.getSQL(),t??(`getSelectedFields`in r?r.getSelectedFields()??{}:{}),e,!0),new sz({alias:e,sqlAliasedBehavior:`alias`,sqlBehavior:`error`})));return{as:r}}),e.defineProperty(this,`$cache`,void 0),e.defineProperty(this,`authToken`,void 0),this.dialect=t,this.session=n,this._=r?{schema:r.schema,fullSchema:r.fullSchema,tableNamesMap:r.tableNamesMap,session:n}:{schema:void 0,fullSchema:{},tableNamesMap:{},session:n},this.query={},this._.schema)for(let[e,i]of Object.entries(this._.schema))this.query[e]=new Fz(r.fullSchema,this._.schema,this._.tableNamesMap,r.fullSchema[e],i,t,n);this.$cache={invalidate:async e=>{}}}$count(e,t){return new Pz({source:e,filters:t,session:this.session})}with(...e){let t=this;function n(n){return new hz({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e})}function r(n){return new hz({fields:n??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:!0})}function i(n,r){return new hz({fields:r??void 0,session:t.session,dialect:t.dialect,withList:e,distinct:{on:n}})}function a(n){return new Mz(n,t.session,t.dialect,e)}function o(n){return new kz(n,t.session,t.dialect,e)}function s(n){return new Oz(n,t.session,t.dialect,e)}return{select:n,selectDistinct:r,selectDistinctOn:i,update:a,insert:o,delete:s}}select(e){return new hz({fields:e??void 0,session:this.session,dialect:this.dialect})}selectDistinct(e){return new hz({fields:e??void 0,session:this.session,dialect:this.dialect,distinct:!0})}selectDistinctOn(e,t){return new hz({fields:t??void 0,session:this.session,dialect:this.dialect,distinct:{on:e}})}update(e){return new Mz(e,this.session,this.dialect)}insert(e){return new kz(e,this.session,this.dialect)}delete(e){return new Oz(e,this.session,this.dialect)}refreshMaterializedView(e){return new jz(e,this.session,this.dialect)}execute(e){let t=typeof e==`string`?Z.raw(e):e.getSQL(),n=this.dialect.sqlToQuery(t),r=this.session.prepareQuery(n,void 0,void 0,!1);return new Lz(()=>r.execute(void 0,this.authToken),t,n,e=>r.mapResult(e,!0))}transaction(e,t){return this.session.transaction(e,t)}},e.defineProperty(Ei,Y,`PgDatabase`),Ei),zz=(Di=class{},e.defineProperty(Di,Y,`Cache`),Di),Bz=(Oi=class extends zz{strategy(){return`all`}async get(e){}async put(e,t,n,r){}async onMutate(e){}},e.defineProperty(Oi,Y,`NoopCache`),Oi);async function Vz(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 Hz=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)}},Uz=(ki=class{constructor(t,n,r,i){var a;e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`joinsNotNullableMap`,void 0),this.query=t,this.cache=n,this.queryMetadata=r,this.cacheConfig=i,n&&n.strategy()===`all`&&i===void 0&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),(a=this.cacheConfig)?.enable||(this.cacheConfig=void 0)}getQuery(){return this.query}mapResult(e,t){return e}setToken(e){return this.authToken=e,this}async queryWithCache(e,t,n){if(this.cache===void 0||X(this.cache,Bz)||this.queryMetadata===void 0)try{return await n()}catch(n){throw new Hz(e,t,n)}if(this.cacheConfig&&!this.cacheConfig.enable)try{return await n()}catch(n){throw new Hz(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 Hz(e,t,n)}if(!this.cacheConfig)try{return await n()}catch(n){throw new Hz(e,t,n)}if(this.queryMetadata.type===`select`){let r=await this.cache.get(this.cacheConfig.tag??await Vz(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 Hz(e,t,n)}return await this.cache.put(this.cacheConfig.tag??await Vz(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 Hz(e,t,n)}}},e.defineProperty(ki,Y,`PgPreparedQuery`),ki),Wz=(Ai=class{constructor(e){this.dialect=e}execute(e,t){return rL.startActiveSpan(`drizzle.operation`,()=>{let n=rL.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)}},e.defineProperty(Ai,Y,`PgSession`),Ai),Gz=(ji=class extends Rz{constructor(e,t,n,r=0){super(e,t,n),this.schema=n,this.nestedIndex=r}rollback(){throw new zL}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`),Z.raw(t.join(` `))}setTransaction(e){return this.session.execute(Z`set transaction ${this.getTransactionConfigSQL(e)}`)}},e.defineProperty(ji,Y,`PgTransaction`),ji);function Kz(e){return typeof e==`string`&&/^true$/i.test(e)}function qz(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&&Kz(r)&&(t.logger=!0);let i=n.searchParams.get(`storage`);switch(i){case xI.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:xI.ORIGIN_PRIVATE_FS,path:n.pathname.startsWith(`/`)?n.pathname.slice(1):n.pathname,...e&&Kz(e)&&{accessMode:VE.READ_WRITE}};break}case null:break;default:console.warn(`Unknown storage type "${i}"`);break}return t}var Jz=(Mi=class extends Uz{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=OL(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=OL(this.params,e);this.logger.logQuery(this.queryString,t);let n=await this.client;return n.query(this.queryString,t)}},e.defineProperty(Mi,Y,`DuckDBWasmPreparedQuery`),Mi),Yz=(Ni=class t extends Wz{constructor(t,n,r,i={}){super(n),e.defineProperty(this,`logger`,void 0),this.client=t,this.schema=r,this.options=i,this.logger=i.logger??new HL}prepareQuery(e,t,n,r,i){return new Jz(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(e,n){return CI(this.client,async r=>{let i=new t(r,this.dialect,this.schema,this.options),a=new Xz(this.dialect,i,this.schema);return n&&await a.setTransaction(n),e(a)})}},e.defineProperty(Ni,Y,`DuckDBWasmSession`),Ni),Xz=(Pi=class t extends Gz{constructor(t,n,r,i=0){super(t,n,r,i),e.defineProperty(this,`dialect`,void 0),e.defineProperty(this,`session`,void 0),this.dialect=t,this.session=n}async transaction(e){return wI(this.session.client,``,async n=>{let r=new Yz(n,this.dialect,this.schema,this.session.options),i=new t(this.dialect,r,this.schema);return e(i)})}},e.defineProperty(Pi,Y,`DuckDBWasmTransaction`),Pi),Zz=(Fi=class extends Rz{},e.defineProperty(Fi,Y,`DuckDBWasmDatabase`),Fi);function Qz(e,t={}){let n=new pz({casing:t.casing}),r;t.logger===!0?r=new VL:t.logger!==!1&&(r=t.logger);let i;if(t.schema){let e=tz(t.schema,az);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new Yz(e,n,i,{logger:r}),o=new Zz(n,a,i);return o.$client=e,o}function $z(e,t){let n=qz(e),r;if(n.bundles===`import-url`){let e=async()=>{let e=await JF();switch(e){case`browser`:return(await jt(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-browser-io2OM8yW.js`);return{getImportUrlBundles:e}},__vite__mapDeps([4,5,6]))).getImportUrlBundles();case`node`:return await(await jt(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-node-C1t8aMyx.js`);return{getImportUrlBundles:e}},__vite__mapDeps([7,6]))).getImportUrlBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}else{let e=async()=>{let e=await JF();switch(e){case`browser`:return(await jt(async()=>{let{getBundles:e}=await import(`./default-browser-CICL74Rl.js`);return{getBundles:e}},[])).getBundles();case`node`:return await(await jt(async()=>{let{getBundles:e}=await import(`./default-node-CDQZ5bF4.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]))).getBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}return Qz(SI({bundles:r,logger:n.logger?new JE:void 0,storage:n.storage}),t)}function eB(...e){if(typeof e[0]==`string`)return $z(e[0],e[1]);if(XL(e[0])){let{connection:t,client:n,...r}=e[0];if(n)return Qz(n,r);if(typeof t==`string`)return $z(t,r);if(t===void 0)throw Error(`connection option is required`);return Qz(SI({bundles:t.bundles,logger:t.logger,storage:t.storage}),r)}return Qz(e[0],e[1])}(function(e){function t(e){return Qz({options:{parsers:{},serializers:{}}},e)}e.mock=t})(eB||={});var tB=Object.defineProperty,nB=(e,t,n)=>t in e?tB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rB=(e,t,n)=>nB(e,typeof t==`symbol`?t:t+``,n);function iB(e){return Gt()?(on(e),!0):!1}function aB(e){return typeof e==`function`?e():G(e)}const oB=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const sB=Object.prototype.toString,cB=e=>sB.call(e)===`[object Object]`,lB=()=>{};function uB(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 dB(e,t={}){let n,r,i=lB,a=e=>{clearTimeout(e),i(),i=lB};return o=>{let s=aB(e),c=aB(t.maxWait);return n&&a(n),s<=0||c!==void 0&&c<=0?(r&&(a(r),r=null),Promise.resolve(o())):new Promise((e,l)=>{i=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},c)),n=setTimeout(()=>{r&&a(r),r=null,e(o())},s)})}}function fB(...e){let t=0,n,r=!0,i=lB,a,o,s,c,l;!Jt(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=lB)};return e=>{let d=aB(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)}}function pB(e){return Wt()}function mB(e,t=200,n={}){return uB(dB(t,n),e)}function hB(e,t=200,n=!1,r=!0,i=!1){return uB(fB(t,n,r,i),e)}function gB(e,t=!0,n){pB()?an(e,n):t?e():en(e)}const _B=oB?window:void 0;function vB(e){var t;let n=aB(e);return(t=n?.$el)??n}function yB(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=_B):[t,n,r,i]=e,!t)return lB;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=K(()=>[vB(t),aB(i)],([e,t])=>{if(o(),!e)return;let i=cB(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>s(e,t,n,i))))},{immediate:!0,flush:`post`}),l=()=>{c(),o()};return iB(l),l}function bB(){let e=U(!1),t=Wt();return t&&an(()=>{e.value=!0},t),e}function xB(e){let t=bB();return Pt(()=>(t.value,!!e()))}function SB(e,t={}){let{window:n=_B}=t,r=xB(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),i,a=U(!1),o=e=>{a.value=e.matches},s=()=>{i&&(`removeEventListener`in i?i.removeEventListener(`change`,o):i.removeListener(o))},c=Wn(()=>{r.value&&(s(),i=n.matchMedia(aB(e)),`addEventListener`in i?i.addEventListener(`change`,o):i.addListener(o),a.value=i.matches)});return iB(()=>{c(),s(),i=void 0}),a}function CB(e,t,n={}){let{window:r=_B,...i}=n,a,o=xB(()=>r&&`ResizeObserver`in r),s=()=>{a&&(a.disconnect(),a=void 0)},c=Pt(()=>{let t=aB(e);return Array.isArray(t)?t.map(e=>vB(e)):[vB(t)]}),l=K(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 iB(u),{isSupported:o,stop:u}}function wB(e,t={width:0,height:0},n={}){let{window:r=_B,box:i=`content-box`}=n,a=Pt(()=>{var t,n;return(n=(t=vB(e))?.namespaceURI)?.includes(`svg`)}),o=U(t.width),s=U(t.height),{stop:c}=CB(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=vB(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=Array.isArray(n)?n:[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);gB(()=>{let n=vB(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let l=K(()=>vB(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}}const TB=1;function EB(e,t={}){let{throttle:n=0,idle:r=200,onStop:i=lB,onScroll:a=lB,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c=`auto`,window:l=_B,onError:u=e=>{console.error(e)}}=t,d=U(0),f=U(0),p=Pt({get(){return d.value},set(e){h(e,void 0)}}),m=Pt({get(){return f.value},set(e){h(void 0,e)}});function h(t,n){var r,i,a,o;if(!l)return;let s=aB(e);if(!s)return;(a=s instanceof Document?l.document.body:s)==null||a.scrollTo({top:(r=aB(n))??m.value,left:(i=aB(t))??p.value,behavior:aB(c)});let u=(o=s?.document)?.documentElement||s?.documentElement||s;p!=null&&(d.value=u.scrollLeft),m!=null&&(f.value=u.scrollTop)}let g=U(!1),_=dn({left:!0,right:!1,top:!0,bottom:!1}),v=dn({left:!1,right:!1,top:!1,bottom:!1}),y=e=>{g.value&&(g.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(e))},b=mB(y,n+r),x=e=>{var t;if(!l)return;let n=(t=e?.document)?.documentElement||e?.documentElement||vB(e),{display:r,flexDirection:i}=getComputedStyle(n),a=n.scrollLeft;v.left=ad.value;let s=Math.abs(a)<=(o.left||0),c=Math.abs(a)+n.clientWidth>=n.scrollWidth-(o.right||0)-TB;r===`flex`&&i===`row-reverse`?(_.left=c,_.right=s):(_.left=s,_.right=c),d.value=a;let u=n.scrollTop;e===l.document&&!u&&(u=l.document.body.scrollTop),v.top=uf.value;let p=Math.abs(u)<=(o.top||0),m=Math.abs(u)+n.clientHeight>=n.scrollHeight-(o.bottom||0)-TB;r===`flex`&&i===`column-reverse`?(_.top=m,_.bottom=p):(_.top=p,_.bottom=m),f.value=u},S=e=>{var t;if(!l)return;let n=(t=e.target.documentElement)??e.target;x(n),g.value=!0,b(e),a(e)};return yB(e,`scroll`,n?hB(S,n,!0,!1):S,s),gB(()=>{try{let t=aB(e);if(!t)return;x(t)}catch(e){u(e)}}),yB(e,`scrollend`,y,s),{x:p,y:m,isScrolling:g,arrivedState:_,directions:v,measure(){let t=aB(e);l&&t&&x(t)}}}const DB={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function OB(e={}){let{reactive:t=!1,target:n=_B,aliasMap:r=DB,passive:i=!0,onEventFired:a=lB}=e,o=dn(new Set),s={toJSON(){return{}},current:o},c=t?dn(s):s,l=new Set,u=new Set;function d(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function f(){o.clear();for(let e of u)d(e,!1)}function p(e,t){var n,r;let i=(n=e.key)?.toLowerCase(),a=[(r=e.code)?.toLowerCase(),i].filter(Boolean);i&&(t?o.add(i):o.delete(i));for(let e of a)u.add(e),d(e,t);i===`meta`&&!t?(l.forEach(e=>{o.delete(e),d(e,!1)}),l.clear()):typeof e.getModifierState==`function`&&e.getModifierState(`Meta`)&&t&&[...o,...a].forEach(e=>l.add(e))}yB(n,`keydown`,e=>(p(e,!0),a(e)),{passive:i}),yB(n,`keyup`,e=>(p(e,!1),a(e)),{passive:i}),yB(`blur`,f,{passive:!0}),yB(`focus`,f,{passive:!0});let m=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]=Pt(()=>e.every(e=>aB(m[e])))}else c[n]=U(!1);let a=Reflect.get(e,n,i);return t?aB(a):a}});return m}const kB={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function AB(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=_B,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=U(i.x),p=U(i.y),m=U(null),h=typeof t==`function`?t:kB[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};yB(o,[`mousemove`,`dragover`],b,e),n&&t!==`movement`&&(yB(o,[`touchstart`,`touchmove`],x,e),r&&yB(o,`touchend`,y,e)),s&&t===`page`&&yB(a,`scroll`,S,{passive:!0})}return{x:f,y:p,sourceType:m}}function jB(e={}){let{window:t=_B,behavior:n=`auto`}=e;if(!t)return{x:U(0),y:U(0)};let r=U(t.scrollX),i=U(t.scrollY),a=Pt({get(){return r.value},set(e){scrollTo({left:e,behavior:n})}}),o=Pt({get(){return i.value},set(e){scrollTo({top:e,behavior:n})}});return yB(t,`scroll`,()=>{r.value=t.scrollX,i.value=t.scrollY},{capture:!1,passive:!0}),{x:a,y:o}}function MB(e={}){let{window:t=_B,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=U(n),c=U(r),l=()=>{t&&(o===`outer`?(s.value=t.outerWidth,c.value=t.outerHeight):a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight))};if(l(),gB(l),yB(`resize`,l,{passive:!0}),i){let e=SB(`(orientation: portrait)`);K(e,()=>l())}return{width:s,height:c}}function NB(e){let{resolution:t,renderer:n,scene:r,envMap:i,fog:a,near:o,far:s}=e;n??=gn().renderer,r??=gn().scene,Wn(()=>{t=Sn(e.resolution)??255,o=Sn(e.near)??.1,s=Sn(e.far)??1e3,i=Sn(e.envMap)??void 0,a=Sn(e.fog)??void 0,n=Sn(e.renderer)??n,r=Sn(e.scene)??r});let c=Pt(()=>new St(Sn(t)));c.value.texture.type=z,iB(()=>{c.value.dispose()});let l=Pt(()=>new v(Sn(o),Sn(s),Sn(c))),u=()=>{let e=Sn(r),t=e.fog,o=e.background;e.background=Sn(i)||o,e.fog=Sn(a)||t,l.value.update(Sn(n),e),e.fog=t,e.background=o};return Wn(u),{fbo:c,camera:l,update:u}}const PB=[`object`],FB=zt({__name:`component`,props:{frames:{default:1/0},resolution:{},near:{},far:{},envMap:{},fog:{},renderer:{},scene:{}},setup(e,{expose:t}){let n=e,r=W(),{fbo:i,camera:a,update:o}=NB(n),s=0;return Kt().onBeforeRender(()=>{r.value&&(n.frames===1/0||s{`material`in e&&typeof e.material==`object`&&e.material&&`envMap`in e.material&&(e.material.envMap=i.value.texture)}),s++)}),t({instance:r,fbo:i,camera:a,update:o}),(e,t)=>(H(),Lt(`TresGroup`,{ref_key:`groupRef`,ref:r},[V(`primitive`,{object:G(a)},null,8,PB),mn(e.$slots,`default`)],512))}}),IB=zt({__name:`Billboard`,props:{autoUpdate:{type:Boolean,default:!0},lockX:{type:Boolean,default:!1},lockY:{type:Boolean,default:!1},lockZ:{type:Boolean,default:!1}},setup(e,{expose:t}){let n=e,r=W(new ne),i=W(new ne),a=new Ue,o=new N;function s(e){r.value&&(!e&&(e=gn().camera.value,!e)||(i.value.rotation.copy(o),r.value.updateMatrix(),r.value.updateWorldMatrix(!1,!1),r.value.getWorldQuaternion(a),e.getWorldQuaternion(i.value.quaternion).premultiply(a.invert()),n.lockX&&(i.value.rotation.x=o.x),n.lockY&&(i.value.rotation.y=o.y),n.lockZ&&(i.value.rotation.z=o.z)))}return Kt().onBeforeRender(({camera:e})=>{n.autoUpdate&&s(e)}),t({instance:r,update:s}),(e,t)=>(H(),Lt(`TresGroup`,{ref_key:`outerRef`,ref:r},[V(`TresGroup`,{ref_key:`innerRef`,ref:i},[mn(e.$slots,`default`)],512)],512))}}),LB=zt({name:`GlobalAudio`,props:[`src`,`loop`,`volume`,`playbackRate`,`playTrigger`,`stopTrigger`],async setup(e,{expose:t,emit:n}){var r;let{camera:s,renderer:c}=cn(),l=new a;(r=s.value)==null||r.add(l);let u=new i(l),d=new o;t({instance:u}),sn(()=>{u&&u.disconnect()}),K(()=>[e.playbackRate],()=>u.setPlaybackRate(e.playbackRate??1),{immediate:!0}),K(()=>[e.volume],()=>u.setVolume(e.volume??.5),{immediate:!0}),K(()=>[e.loop],()=>u.setLoop(e.loop??!1),{immediate:!0}),K(()=>[e.src],async()=>{let t=await d.loadAsync(e.src);u.setBuffer(t)},{immediate:!0});let f=document.getElementById(e.playTrigger??``)||c.value.domElement;yB(f,`click`,()=>{u.isPlaying?u.pause():u.play(),n(`isPlaying`,u.isPlaying)});let p=document.getElementById(e.stopTrigger??``);return p&&yB(p,`click`,()=>{u.stop(),n(`isPlaying`,u.isPlaying)}),null}}),RB=[`color-space`,`args`,`attach`],zB=zt({__name:`GradientTexture`,props:{stops:{},colors:{},attach:{default:`map`},height:{default:1024},width:{default:16},type:{default:`linear`},innerCircleRadius:{default:0},outerCircleRadius:{default:`auto`}},setup(e,{expose:t}){let n=e,r=W(),i=document.createElement(`canvas`);function a(e){let t=e.getContext(`2d`);e.width=n.width,e.height=n.height;let i;if(n.type===`linear`)i=t.createLinearGradient(0,0,0,n.height);else{let r=e.width/2,a=e.height/2,o=n.outerCircleRadius===`auto`?Math.sqrt(r**2+a**2):Math.abs(Number(n.outerCircleRadius));i=t.createRadialGradient(r,a,Math.abs(n.innerCircleRadius),r,a,o)}let a=new g,o=n.stops.length;for(;o--;)i.addColorStop(n.stops[o],a.set(n.colors[o]).getStyle());t.save(),t.fillStyle=i,t.fillRect(0,0,n.width,n.height),t.restore(),r.value&&(r.value.needsUpdate=!0)}let o=gn().renderer;return K(()=>[n.colors,n.stops,n.height,n.width,n.type,n.innerCircleRadius,n.outerCircleRadius],()=>{a(i)},{immediate:!0}),qt(n.colors)&&K(n.colors,()=>a(i)),qt(n.stops)&&K(n.stops,()=>a(i)),t({instance:r}),(e,t)=>(H(),Lt(`TresCanvasTexture`,{ref_key:`textureRef`,ref:r,"color-space":G(o).outputColorSpace,args:[G(i)],attach:n.attach},null,8,RB))}});function BB(e,t,n,r){let i=class extends et{constructor(r={}){let i=Object.entries(e);super({uniforms:i.reduce((e,[t,n])=>{let r=_t.clone({[t]:{value:n}});return{...e,...r}},{}),vertexShader:t,fragmentShader:n}),rB(this,`key`,``),i.forEach(([e])=>Object.defineProperty(this,e,{get:()=>this.uniforms[e].value,set:t=>this.uniforms[e].value=t})),Object.assign(this,r)}};return i.key=be.generateUUID(),i}const VB=BB({color:new g(`white`),scale:new yt(1,1),imageBounds:new yt(1,1),resolution:1024,map:null,zoom:1,radius:0,grayscale:0,opacity:1},` +params: ${n}`),this.query=t,this.params=n,this.cause=r,Error.captureStackTrace(this,e),r&&(this.cause=r)}},Uz=(ki=class{constructor(t,n,r,i){var a;e.defineProperty(this,`authToken`,void 0),e.defineProperty(this,`joinsNotNullableMap`,void 0),this.query=t,this.cache=n,this.queryMetadata=r,this.cacheConfig=i,n&&n.strategy()===`all`&&i===void 0&&(this.cacheConfig={enable:!0,autoInvalidate:!0}),(a=this.cacheConfig)?.enable||(this.cacheConfig=void 0)}getQuery(){return this.query}mapResult(e,t){return e}setToken(e){return this.authToken=e,this}async queryWithCache(e,t,n){if(this.cache===void 0||X(this.cache,Bz)||this.queryMetadata===void 0)try{return await n()}catch(n){throw new Hz(e,t,n)}if(this.cacheConfig&&!this.cacheConfig.enable)try{return await n()}catch(n){throw new Hz(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 Hz(e,t,n)}if(!this.cacheConfig)try{return await n()}catch(n){throw new Hz(e,t,n)}if(this.queryMetadata.type===`select`){let r=await this.cache.get(this.cacheConfig.tag??await Vz(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 Hz(e,t,n)}return await this.cache.put(this.cacheConfig.tag??await Vz(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 Hz(e,t,n)}}},e.defineProperty(ki,Y,`PgPreparedQuery`),ki),Wz=(Ai=class{constructor(e){this.dialect=e}execute(e,t){return rL.startActiveSpan(`drizzle.operation`,()=>{let n=rL.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)}},e.defineProperty(Ai,Y,`PgSession`),Ai),Gz=(ji=class extends Rz{constructor(e,t,n,r=0){super(e,t,n),this.schema=n,this.nestedIndex=r}rollback(){throw new zL}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`),Z.raw(t.join(` `))}setTransaction(e){return this.session.execute(Z`set transaction ${this.getTransactionConfigSQL(e)}`)}},e.defineProperty(ji,Y,`PgTransaction`),ji);function Kz(e){return typeof e==`string`&&/^true$/i.test(e)}function qz(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&&Kz(r)&&(t.logger=!0);let i=n.searchParams.get(`storage`);switch(i){case xI.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:xI.ORIGIN_PRIVATE_FS,path:n.pathname.startsWith(`/`)?n.pathname.slice(1):n.pathname,...e&&Kz(e)&&{accessMode:VE.READ_WRITE}};break}case null:break;default:console.warn(`Unknown storage type "${i}"`);break}return t}var Jz=(Mi=class extends Uz{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=OL(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=OL(this.params,e);this.logger.logQuery(this.queryString,t);let n=await this.client;return n.query(this.queryString,t)}},e.defineProperty(Mi,Y,`DuckDBWasmPreparedQuery`),Mi),Yz=(Ni=class t extends Wz{constructor(t,n,r,i={}){super(n),e.defineProperty(this,`logger`,void 0),this.client=t,this.schema=r,this.options=i,this.logger=i.logger??new HL}prepareQuery(e,t,n,r,i){return new Jz(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(e,n){return CI(this.client,async r=>{let i=new t(r,this.dialect,this.schema,this.options),a=new Xz(this.dialect,i,this.schema);return n&&await a.setTransaction(n),e(a)})}},e.defineProperty(Ni,Y,`DuckDBWasmSession`),Ni),Xz=(Pi=class t extends Gz{constructor(t,n,r,i=0){super(t,n,r,i),e.defineProperty(this,`dialect`,void 0),e.defineProperty(this,`session`,void 0),this.dialect=t,this.session=n}async transaction(e){return wI(this.session.client,``,async n=>{let r=new Yz(n,this.dialect,this.schema,this.session.options),i=new t(this.dialect,r,this.schema);return e(i)})}},e.defineProperty(Pi,Y,`DuckDBWasmTransaction`),Pi),Zz=(Fi=class extends Rz{},e.defineProperty(Fi,Y,`DuckDBWasmDatabase`),Fi);function Qz(e,t={}){let n=new pz({casing:t.casing}),r;t.logger===!0?r=new VL:t.logger!==!1&&(r=t.logger);let i;if(t.schema){let e=tz(t.schema,az);i={fullSchema:t.schema,schema:e.tables,tableNamesMap:e.tableNamesMap}}let a=new Yz(e,n,i,{logger:r}),o=new Zz(n,a,i);return o.$client=e,o}function $z(e,t){let n=qz(e),r;if(n.bundles===`import-url`){let e=async()=>{let e=await JF();switch(e){case`browser`:return(await jt(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-browser-io2OM8yW.js`);return{getImportUrlBundles:e}},__vite__mapDeps([4,5,6]))).getImportUrlBundles();case`node`:return await(await jt(async()=>{let{getImportUrlBundles:e}=await import(`./import-url-node-C1t8aMyx.js`);return{getImportUrlBundles:e}},__vite__mapDeps([7,6]))).getImportUrlBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}else{let e=async()=>{let e=await JF();switch(e){case`browser`:return(await jt(async()=>{let{getBundles:e}=await import(`./default-browser-CICL74Rl.js`);return{getBundles:e}},[])).getBundles();case`node`:return await(await jt(async()=>{let{getBundles:e}=await import(`./default-node-JnkfFX6Q.js`);return{getBundles:e}},__vite__mapDeps([3,1,2]))).getBundles();default:throw Error(`Unsupported environment: "${e}"`)}};r=e()}return Qz(SI({bundles:r,logger:n.logger?new JE:void 0,storage:n.storage}),t)}function eB(...e){if(typeof e[0]==`string`)return $z(e[0],e[1]);if(XL(e[0])){let{connection:t,client:n,...r}=e[0];if(n)return Qz(n,r);if(typeof t==`string`)return $z(t,r);if(t===void 0)throw Error(`connection option is required`);return Qz(SI({bundles:t.bundles,logger:t.logger,storage:t.storage}),r)}return Qz(e[0],e[1])}(function(e){function t(e){return Qz({options:{parsers:{},serializers:{}}},e)}e.mock=t})(eB||={});var tB=Object.defineProperty,nB=(e,t,n)=>t in e?tB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rB=(e,t,n)=>nB(e,typeof t==`symbol`?t:t+``,n);function iB(e){return Gt()?(on(e),!0):!1}function aB(e){return typeof e==`function`?e():G(e)}const oB=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const sB=Object.prototype.toString,cB=e=>sB.call(e)===`[object Object]`,lB=()=>{};function uB(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 dB(e,t={}){let n,r,i=lB,a=e=>{clearTimeout(e),i(),i=lB};return o=>{let s=aB(e),c=aB(t.maxWait);return n&&a(n),s<=0||c!==void 0&&c<=0?(r&&(a(r),r=null),Promise.resolve(o())):new Promise((e,l)=>{i=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},c)),n=setTimeout(()=>{r&&a(r),r=null,e(o())},s)})}}function fB(...e){let t=0,n,r=!0,i=lB,a,o,s,c,l;!Jt(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=lB)};return e=>{let d=aB(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)}}function pB(e){return Wt()}function mB(e,t=200,n={}){return uB(dB(t,n),e)}function hB(e,t=200,n=!1,r=!0,i=!1){return uB(fB(t,n,r,i),e)}function gB(e,t=!0,n){pB()?an(e,n):t?e():en(e)}const _B=oB?window:void 0;function vB(e){var t;let n=aB(e);return(t=n?.$el)??n}function yB(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=_B):[t,n,r,i]=e,!t)return lB;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=K(()=>[vB(t),aB(i)],([e,t])=>{if(o(),!e)return;let i=cB(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>s(e,t,n,i))))},{immediate:!0,flush:`post`}),l=()=>{c(),o()};return iB(l),l}function bB(){let e=U(!1),t=Wt();return t&&an(()=>{e.value=!0},t),e}function xB(e){let t=bB();return Pt(()=>(t.value,!!e()))}function SB(e,t={}){let{window:n=_B}=t,r=xB(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),i,a=U(!1),o=e=>{a.value=e.matches},s=()=>{i&&(`removeEventListener`in i?i.removeEventListener(`change`,o):i.removeListener(o))},c=Wn(()=>{r.value&&(s(),i=n.matchMedia(aB(e)),`addEventListener`in i?i.addEventListener(`change`,o):i.addListener(o),a.value=i.matches)});return iB(()=>{c(),s(),i=void 0}),a}function CB(e,t,n={}){let{window:r=_B,...i}=n,a,o=xB(()=>r&&`ResizeObserver`in r),s=()=>{a&&(a.disconnect(),a=void 0)},c=Pt(()=>{let t=aB(e);return Array.isArray(t)?t.map(e=>vB(e)):[vB(t)]}),l=K(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 iB(u),{isSupported:o,stop:u}}function wB(e,t={width:0,height:0},n={}){let{window:r=_B,box:i=`content-box`}=n,a=Pt(()=>{var t,n;return(n=(t=vB(e))?.namespaceURI)?.includes(`svg`)}),o=U(t.width),s=U(t.height),{stop:c}=CB(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=vB(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=Array.isArray(n)?n:[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);gB(()=>{let n=vB(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let l=K(()=>vB(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}}const TB=1;function EB(e,t={}){let{throttle:n=0,idle:r=200,onStop:i=lB,onScroll:a=lB,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:c=`auto`,window:l=_B,onError:u=e=>{console.error(e)}}=t,d=U(0),f=U(0),p=Pt({get(){return d.value},set(e){h(e,void 0)}}),m=Pt({get(){return f.value},set(e){h(void 0,e)}});function h(t,n){var r,i,a,o;if(!l)return;let s=aB(e);if(!s)return;(a=s instanceof Document?l.document.body:s)==null||a.scrollTo({top:(r=aB(n))??m.value,left:(i=aB(t))??p.value,behavior:aB(c)});let u=(o=s?.document)?.documentElement||s?.documentElement||s;p!=null&&(d.value=u.scrollLeft),m!=null&&(f.value=u.scrollTop)}let g=U(!1),_=dn({left:!0,right:!1,top:!0,bottom:!1}),v=dn({left:!1,right:!1,top:!1,bottom:!1}),y=e=>{g.value&&(g.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,i(e))},b=mB(y,n+r),x=e=>{var t;if(!l)return;let n=(t=e?.document)?.documentElement||e?.documentElement||vB(e),{display:r,flexDirection:i}=getComputedStyle(n),a=n.scrollLeft;v.left=ad.value;let s=Math.abs(a)<=(o.left||0),c=Math.abs(a)+n.clientWidth>=n.scrollWidth-(o.right||0)-TB;r===`flex`&&i===`row-reverse`?(_.left=c,_.right=s):(_.left=s,_.right=c),d.value=a;let u=n.scrollTop;e===l.document&&!u&&(u=l.document.body.scrollTop),v.top=uf.value;let p=Math.abs(u)<=(o.top||0),m=Math.abs(u)+n.clientHeight>=n.scrollHeight-(o.bottom||0)-TB;r===`flex`&&i===`column-reverse`?(_.top=m,_.bottom=p):(_.top=p,_.bottom=m),f.value=u},S=e=>{var t;if(!l)return;let n=(t=e.target.documentElement)??e.target;x(n),g.value=!0,b(e),a(e)};return yB(e,`scroll`,n?hB(S,n,!0,!1):S,s),gB(()=>{try{let t=aB(e);if(!t)return;x(t)}catch(e){u(e)}}),yB(e,`scrollend`,y,s),{x:p,y:m,isScrolling:g,arrivedState:_,directions:v,measure(){let t=aB(e);l&&t&&x(t)}}}const DB={ctrl:`control`,command:`meta`,cmd:`meta`,option:`alt`,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`};function OB(e={}){let{reactive:t=!1,target:n=_B,aliasMap:r=DB,passive:i=!0,onEventFired:a=lB}=e,o=dn(new Set),s={toJSON(){return{}},current:o},c=t?dn(s):s,l=new Set,u=new Set;function d(e,n){e in c&&(t?c[e]=n:c[e].value=n)}function f(){o.clear();for(let e of u)d(e,!1)}function p(e,t){var n,r;let i=(n=e.key)?.toLowerCase(),a=[(r=e.code)?.toLowerCase(),i].filter(Boolean);i&&(t?o.add(i):o.delete(i));for(let e of a)u.add(e),d(e,t);i===`meta`&&!t?(l.forEach(e=>{o.delete(e),d(e,!1)}),l.clear()):typeof e.getModifierState==`function`&&e.getModifierState(`Meta`)&&t&&[...o,...a].forEach(e=>l.add(e))}yB(n,`keydown`,e=>(p(e,!0),a(e)),{passive:i}),yB(n,`keyup`,e=>(p(e,!1),a(e)),{passive:i}),yB(`blur`,f,{passive:!0}),yB(`focus`,f,{passive:!0});let m=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]=Pt(()=>e.every(e=>aB(m[e])))}else c[n]=U(!1);let a=Reflect.get(e,n,i);return t?aB(a):a}});return m}const kB={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function AB(e={}){let{type:t=`page`,touch:n=!0,resetOnTouchEnds:r=!1,initialValue:i={x:0,y:0},window:a=_B,target:o=a,scroll:s=!0,eventFilter:c}=e,l=null,u=0,d=0,f=U(i.x),p=U(i.y),m=U(null),h=typeof t==`function`?t:kB[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};yB(o,[`mousemove`,`dragover`],b,e),n&&t!==`movement`&&(yB(o,[`touchstart`,`touchmove`],x,e),r&&yB(o,`touchend`,y,e)),s&&t===`page`&&yB(a,`scroll`,S,{passive:!0})}return{x:f,y:p,sourceType:m}}function jB(e={}){let{window:t=_B,behavior:n=`auto`}=e;if(!t)return{x:U(0),y:U(0)};let r=U(t.scrollX),i=U(t.scrollY),a=Pt({get(){return r.value},set(e){scrollTo({left:e,behavior:n})}}),o=Pt({get(){return i.value},set(e){scrollTo({top:e,behavior:n})}});return yB(t,`scroll`,()=>{r.value=t.scrollX,i.value=t.scrollY},{capture:!1,passive:!0}),{x:a,y:o}}function MB(e={}){let{window:t=_B,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=U(n),c=U(r),l=()=>{t&&(o===`outer`?(s.value=t.outerWidth,c.value=t.outerHeight):a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight))};if(l(),gB(l),yB(`resize`,l,{passive:!0}),i){let e=SB(`(orientation: portrait)`);K(e,()=>l())}return{width:s,height:c}}function NB(e){let{resolution:t,renderer:n,scene:r,envMap:i,fog:a,near:o,far:s}=e;n??=gn().renderer,r??=gn().scene,Wn(()=>{t=Sn(e.resolution)??255,o=Sn(e.near)??.1,s=Sn(e.far)??1e3,i=Sn(e.envMap)??void 0,a=Sn(e.fog)??void 0,n=Sn(e.renderer)??n,r=Sn(e.scene)??r});let c=Pt(()=>new St(Sn(t)));c.value.texture.type=z,iB(()=>{c.value.dispose()});let l=Pt(()=>new v(Sn(o),Sn(s),Sn(c))),u=()=>{let e=Sn(r),t=e.fog,o=e.background;e.background=Sn(i)||o,e.fog=Sn(a)||t,l.value.update(Sn(n),e),e.fog=t,e.background=o};return Wn(u),{fbo:c,camera:l,update:u}}const PB=[`object`],FB=zt({__name:`component`,props:{frames:{default:1/0},resolution:{},near:{},far:{},envMap:{},fog:{},renderer:{},scene:{}},setup(e,{expose:t}){let n=e,r=W(),{fbo:i,camera:a,update:o}=NB(n),s=0;return Kt().onBeforeRender(()=>{r.value&&(n.frames===1/0||s{`material`in e&&typeof e.material==`object`&&e.material&&`envMap`in e.material&&(e.material.envMap=i.value.texture)}),s++)}),t({instance:r,fbo:i,camera:a,update:o}),(e,t)=>(H(),Lt(`TresGroup`,{ref_key:`groupRef`,ref:r},[V(`primitive`,{object:G(a)},null,8,PB),mn(e.$slots,`default`)],512))}}),IB=zt({__name:`Billboard`,props:{autoUpdate:{type:Boolean,default:!0},lockX:{type:Boolean,default:!1},lockY:{type:Boolean,default:!1},lockZ:{type:Boolean,default:!1}},setup(e,{expose:t}){let n=e,r=W(new ne),i=W(new ne),a=new Ue,o=new N;function s(e){r.value&&(!e&&(e=gn().camera.value,!e)||(i.value.rotation.copy(o),r.value.updateMatrix(),r.value.updateWorldMatrix(!1,!1),r.value.getWorldQuaternion(a),e.getWorldQuaternion(i.value.quaternion).premultiply(a.invert()),n.lockX&&(i.value.rotation.x=o.x),n.lockY&&(i.value.rotation.y=o.y),n.lockZ&&(i.value.rotation.z=o.z)))}return Kt().onBeforeRender(({camera:e})=>{n.autoUpdate&&s(e)}),t({instance:r,update:s}),(e,t)=>(H(),Lt(`TresGroup`,{ref_key:`outerRef`,ref:r},[V(`TresGroup`,{ref_key:`innerRef`,ref:i},[mn(e.$slots,`default`)],512)],512))}}),LB=zt({name:`GlobalAudio`,props:[`src`,`loop`,`volume`,`playbackRate`,`playTrigger`,`stopTrigger`],async setup(e,{expose:t,emit:n}){var r;let{camera:s,renderer:c}=cn(),l=new a;(r=s.value)==null||r.add(l);let u=new i(l),d=new o;t({instance:u}),sn(()=>{u&&u.disconnect()}),K(()=>[e.playbackRate],()=>u.setPlaybackRate(e.playbackRate??1),{immediate:!0}),K(()=>[e.volume],()=>u.setVolume(e.volume??.5),{immediate:!0}),K(()=>[e.loop],()=>u.setLoop(e.loop??!1),{immediate:!0}),K(()=>[e.src],async()=>{let t=await d.loadAsync(e.src);u.setBuffer(t)},{immediate:!0});let f=document.getElementById(e.playTrigger??``)||c.value.domElement;yB(f,`click`,()=>{u.isPlaying?u.pause():u.play(),n(`isPlaying`,u.isPlaying)});let p=document.getElementById(e.stopTrigger??``);return p&&yB(p,`click`,()=>{u.stop(),n(`isPlaying`,u.isPlaying)}),null}}),RB=[`color-space`,`args`,`attach`],zB=zt({__name:`GradientTexture`,props:{stops:{},colors:{},attach:{default:`map`},height:{default:1024},width:{default:16},type:{default:`linear`},innerCircleRadius:{default:0},outerCircleRadius:{default:`auto`}},setup(e,{expose:t}){let n=e,r=W(),i=document.createElement(`canvas`);function a(e){let t=e.getContext(`2d`);e.width=n.width,e.height=n.height;let i;if(n.type===`linear`)i=t.createLinearGradient(0,0,0,n.height);else{let r=e.width/2,a=e.height/2,o=n.outerCircleRadius===`auto`?Math.sqrt(r**2+a**2):Math.abs(Number(n.outerCircleRadius));i=t.createRadialGradient(r,a,Math.abs(n.innerCircleRadius),r,a,o)}let a=new g,o=n.stops.length;for(;o--;)i.addColorStop(n.stops[o],a.set(n.colors[o]).getStyle());t.save(),t.fillStyle=i,t.fillRect(0,0,n.width,n.height),t.restore(),r.value&&(r.value.needsUpdate=!0)}let o=gn().renderer;return K(()=>[n.colors,n.stops,n.height,n.width,n.type,n.innerCircleRadius,n.outerCircleRadius],()=>{a(i)},{immediate:!0}),qt(n.colors)&&K(n.colors,()=>a(i)),qt(n.stops)&&K(n.stops,()=>a(i)),t({instance:r}),(e,t)=>(H(),Lt(`TresCanvasTexture`,{ref_key:`textureRef`,ref:r,"color-space":G(o).outputColorSpace,args:[G(i)],attach:n.attach},null,8,RB))}});function BB(e,t,n,r){let i=class extends et{constructor(r={}){let i=Object.entries(e);super({uniforms:i.reduce((e,[t,n])=>{let r=_t.clone({[t]:{value:n}});return{...e,...r}},{}),vertexShader:t,fragmentShader:n}),rB(this,`key`,``),i.forEach(([e])=>Object.defineProperty(this,e,{get:()=>this.uniforms[e].value,set:t=>this.uniforms[e].value=t})),Object.assign(this,r)}};return i.key=be.generateUUID(),i}const VB=BB({color:new g(`white`),scale:new yt(1,1),imageBounds:new yt(1,1),resolution:1024,map:null,zoom:1,radius:0,grayscale:0,opacity:1},` varying vec2 vUv; varying vec2 vPos; void main() { diff --git a/assets/Textarea-D8CbwmdL.js b/assets/Textarea-BvqhLeCk.js similarity index 84% rename from assets/Textarea-D8CbwmdL.js rename to assets/Textarea-BvqhLeCk.js index 491dbe125b5f55a097562384d38bee319a83bcc6..6692ed1def4d50dadd2a228f458d76cfd9d86363 100644 --- a/assets/Textarea-D8CbwmdL.js +++ b/assets/Textarea-BvqhLeCk.js @@ -1 +1 @@ -import{Basic_default as e}from"./Basic-DNa_H8OA.js";import{createBlock as t,defineComponent as n,openBlock as r,useModel as i}from"./index-jH8PbleY.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 Textarea_default}; \ No newline at end of file +import{Basic_default as e}from"./Basic-eHldbasx.js";import{createBlock as t,defineComponent as n,openBlock as r,useModel as i}from"./index-C2W4XoWv.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 Textarea_default}; \ No newline at end of file diff --git a/assets/_...all_-C9auE9ag.js b/assets/_...all_-VklDrsU-.js similarity index 72% rename from assets/_...all_-C9auE9ag.js rename to assets/_...all_-VklDrsU-.js index 6ca5fdcb7eb6ded3a984cd065e998b0dec01ba37..83ef9b7cc75fa201bd8a99020d00f83693c4beb5 100644 --- a/assets/_...all_-C9auE9ag.js +++ b/assets/_...all_-VklDrsU-.js @@ -1 +1 @@ -import{__plugin_vue_export_helper_default as e,createElementBlock as t,openBlock as n}from"./index-jH8PbleY.js";const r={};function i(e,r){return n(),t(`div`,null,` 404 - Page not found `)}var a=e(r,[[`render`,i]]);export{a as default}; \ No newline at end of file +import{__plugin_vue_export_helper_default as e,createElementBlock as t,openBlock as n}from"./index-C2W4XoWv.js";const r={};function i(e,r){return n(),t(`div`,null,` 404 - Page not found `)}var a=e(r,[[`render`,i]]);export{a as default}; \ No newline at end of file diff --git a/assets/__vite-browser-external-CY0qZjqC.js b/assets/__vite-browser-external-CY0qZjqC.js deleted file mode 100644 index 29e455660ddf9356bf355e04fb8e7191705fa31b..0000000000000000000000000000000000000000 --- a/assets/__vite-browser-external-CY0qZjqC.js +++ /dev/null @@ -1 +0,0 @@ -import{__commonJSMin as e}from"./index-jH8PbleY.js";var t=e((exports,t)=>{t.exports={}});export default t(); \ No newline at end of file diff --git a/assets/__vite-browser-external-DLPzVXxx.js b/assets/__vite-browser-external-DLPzVXxx.js new file mode 100644 index 0000000000000000000000000000000000000000..97e4cb7ff38d2711afdfe464ae675b222b912216 --- /dev/null +++ b/assets/__vite-browser-external-DLPzVXxx.js @@ -0,0 +1 @@ +import{__commonJSMin as e}from"./index-C2W4XoWv.js";var t=e((exports,t)=>{t.exports={}});export default t(); \ No newline at end of file diff --git a/assets/airi-card-Cq1KvPR6.js b/assets/airi-card-CIQghUKu.js similarity index 91% rename from assets/airi-card-Cq1KvPR6.js rename to assets/airi-card-CIQghUKu.js index e5b6070f82bfac6b8f5ebfca439a33b9bfc5d749..fe428b8a98b040ff57dd49d555aab6a302365fb2 100644 --- a/assets/airi-card-Cq1KvPR6.js +++ b/assets/airi-card-CIQghUKu.js @@ -1 +1 @@ -import"./dist-BXbmJYBn.js";import{InputFile_default as e}from"./InputFile-D7EBb56X.js";import{Fragment as t,Select_default as n,computed as r,createBaseVNode as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,ref as f,renderList as p,resolveDirective as ee,storeToRefs as m,toDisplayString as h,unref as g,useAiriCardStore as _,useI18n as v,vModelText as te,watch as ne,withCtx as re,withDirectives as y}from"./index-jH8PbleY.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";import{CardCreate_default as ie}from"./CardCreate-CpYrVqCw.js";import{CardCreationDialog_default as x}from"./CardCreationDialog-tb5aI5z2.js";import{DeleteCardDialog_default as S}from"./DeleteCardDialog-CRL7GCHS.js";import{CardDetailDialog_default as C}from"./CardDetailDialog-Dj8_PtWM.js";import{CardListItem_default as w}from"./CardListItem-DL1eLTL8.js";const T={"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},ae={flex:`~ row`,"flex-wrap":``,"items-center":``,"justify-between":``,"gap-4":``},oe={class:`relative min-w-[200px] flex-1`,"inline-flex":`~`,"w-full":``,"items-center":``},se=[`placeholder`],E={class:`relative flex flex-row justify-start gap-2 lg:flex-col`},D={class:`top-[-32px] whitespace-nowrap text-sm text-neutral-500 leading-10 lg:absolute dark:text-neutral-400`},O={key:0,flex:``,"flex-col":``,"items-center":``},k={"font-medium":``,text:`neutral-600 dark:neutral-300`},A={text:`neutral-500 dark:neutral-400`,"mt-2":``,"text-sm":``},j={key:1,flex:``,"flex-col":``,"items-center":``},M={"font-medium":``,text:`primary-600 dark:primary-300`},N={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`},P={key:2,class:`col-span-full flex items-center gap-3 border-2 border-amber-200 rounded-xl bg-amber-50/80 p-4 dark:border-amber-800 dark:bg-amber-900/30`},F={class:`flex flex-col`},I={class:`font-medium`},L={class:`text-sm text-amber-600 dark:text-amber-400`},R={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 z=l({__name:`index`,setup(l){let{t:b}=v(),z=_(),{addCard:B,removeCard:ce}=z,{cards:V,activeCardId:H}=m(z),U=f(``),W=f(!1),G=f(!1),K=f(``),q=f(`nameAsc`),J=f([]);ne(J,async e=>{let t=e[0];if(t)try{let e=await t.text(),n=JSON.parse(e);U.value=B(n),W.value=!0}catch(e){console.error(`Error processing card file:`,e)}});let Y=r(()=>Array.from(V.value.entries()).map(([e,t])=>({id:e,name:t.name,description:t.description}))),le=r(()=>{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=r(()=>{let e=[...le.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=f(!1),Q=f(null);function ue(){Q.value&&(ce(Q.value),Q.value=null,Z.value=!1)}function de(e){Q.value=e,Z.value=!0}function fe(e){U.value=e,W.value=!0}function pe(){G.value=!0}function me(e){H.value=e}function he(e){let t=V.value.get(e);return t?.version||`1.0.0`}function $(e,t){var n,r,i;let a=V.value.get(e);if(!a||!(!((n=a.extensions)==null||(n=n.airi)==null)&&n.modules))return`default`;let o=a.extensions.airi.modules;return t===`consciousness`?(r=o.consciousness)?.model&&o.consciousness.model.split(`-`).pop()||`default`:t===`voice`&&(i=o.speech)?.voice_id||`default`}return(r,l)=>{var f;let m=ee(`motion`);return d(),s(t,null,[i(`div`,T,[i(`div`,ae,[i(`div`,oe,[l[7]||=i(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[i(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),y(i(`input`,{"onUpdate:modelValue":l[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:g(b)(`settings.pages.card.search`)},null,8,se),[[te,K.value]])]),i(`div`,E,[i(`div`,D,h(g(b)(`settings.pages.card.sort_by`))+`: `,1),c(g(n),{modelValue:q.value,"onUpdate:modelValue":l[1]||=e=>q.value=e,options:[{value:`nameAsc`,label:g(b)(`settings.pages.card.name_asc`)},{value:`nameDesc`,label:g(b)(`settings.pages.card.name_desc`)},{value:`recent`,label:g(b)(`settings.pages.card.recent`)}],placeholder:`Select sort option`,class:`min-w-[150px]`},null,8,[`modelValue`,`options`])])]),i(`div`,{class:u([`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))]":g(V).size>0}])},[c(g(e),{modelValue:J.value,"onUpdate:modelValue":l[2]||=e=>J.value=e,accept:`*.json`},{default:re(({isDragging:e})=>[e?(d(),s(`div`,j,[l[9]||=i(`div`,{"i-solar:upload-minimalistic-bold":``,class:`mb-2 text-5xl text-primary-500 dark:text-primary-400`},null,-1),i(`p`,M,h(g(b)(`settings.pages.card.drop_here`)),1)])):(d(),s(`div`,O,[l[8]||=i(`div`,{"i-solar:upload-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),i(`p`,k,h(g(b)(`settings.pages.card.upload`)),1),i(`p`,A,h(g(b)(`settings.pages.card.upload_desc`)),1)]))]),_:1},8,[`modelValue`]),c(ie,{onClick:pe}),g(V).size>0?(d(!0),s(t,{key:0},p(X.value,e=>(d(),a(w,{id:e.id,key:e.id,name:e.name,description:e.description,"is-active":e.id===g(H),"is-selected":e.id===U.value&&W.value,version:he(e.id),"consciousness-model":$(e.id,`consciousness`),"voice-model":$(e.id,`voice`),onSelect:t=>fe(e.id),onActivate:t=>me(e.id),onDelete:t=>de(e.id)},null,8,[`id`,`name`,`description`,`is-active`,`is-selected`,`version`,`consciousness-model`,`voice-model`,`onSelect`,`onActivate`,`onDelete`]))),128)):o(``,!0),g(V).size===0?(d(),s(`div`,N,[l[10]||=i(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),i(`p`,null,h(g(b)(`settings.pages.card.no_cards`)),1)])):o(``,!0),K.value&&X.value.length===0?(d(),s(`div`,P,[l[11]||=i(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),i(`div`,F,[i(`span`,I,h(g(b)(`settings.pages.card.no_results`)),1),i(`span`,L,h(g(b)(`settings.pages.card.try_different_search`)),1)])])):o(``,!0)],2)]),c(S,{modelValue:Z.value,"onUpdate:modelValue":l[3]||=e=>Z.value=e,"card-name":Q.value?(f=g(z).getCard(Q.value))?.name:``,onConfirm:ue,onCancel:l[4]||=e=>Q.value=null},null,8,[`modelValue`,`card-name`]),c(C,{modelValue:W.value,"onUpdate:modelValue":l[5]||=e=>W.value=e,"card-id":U.value},null,8,[`modelValue`,`card-id`]),c(x,{modelValue:G.value,"onUpdate:modelValue":l[6]||=e=>G.value=e},null,8,[`modelValue`]),y((d(),s(`div`,R,l[12]||=[i(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)])),[[m]])],64)}}});typeof b==`function`&&b(z);var B=z;export{B as default}; \ No newline at end of file +import"./dist-CM_LBh2l.js";import{InputFile_default as e}from"./InputFile-DO1WMP2V.js";import{Fragment as t,Select_default as n,computed as r,createBaseVNode as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createVNode as c,defineComponent as l,normalizeClass as u,openBlock as d,ref as f,renderList as p,resolveDirective as ee,storeToRefs as m,toDisplayString as h,unref as g,useAiriCardStore as _,useI18n as v,vModelText as te,watch as ne,withCtx as re,withDirectives as y}from"./index-C2W4XoWv.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";import{CardCreate_default as ie}from"./CardCreate-Rv0-Zj2Y.js";import{CardCreationDialog_default as x}from"./CardCreationDialog-e-ER1OFp.js";import{DeleteCardDialog_default as S}from"./DeleteCardDialog-CMHp54f3.js";import{CardDetailDialog_default as C}from"./CardDetailDialog-Dx3dwrQO.js";import{CardListItem_default as w}from"./CardListItem-D2mGsTNO.js";const T={"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},ae={flex:`~ row`,"flex-wrap":``,"items-center":``,"justify-between":``,"gap-4":``},oe={class:`relative min-w-[200px] flex-1`,"inline-flex":`~`,"w-full":``,"items-center":``},se=[`placeholder`],E={class:`relative flex flex-row justify-start gap-2 lg:flex-col`},D={class:`top-[-32px] whitespace-nowrap text-sm text-neutral-500 leading-10 lg:absolute dark:text-neutral-400`},O={key:0,flex:``,"flex-col":``,"items-center":``},k={"font-medium":``,text:`neutral-600 dark:neutral-300`},A={text:`neutral-500 dark:neutral-400`,"mt-2":``,"text-sm":``},j={key:1,flex:``,"flex-col":``,"items-center":``},M={"font-medium":``,text:`primary-600 dark:primary-300`},N={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`},P={key:2,class:`col-span-full flex items-center gap-3 border-2 border-amber-200 rounded-xl bg-amber-50/80 p-4 dark:border-amber-800 dark:bg-amber-900/30`},F={class:`flex flex-col`},I={class:`font-medium`},L={class:`text-sm text-amber-600 dark:text-amber-400`},R={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 z=l({__name:`index`,setup(l){let{t:b}=v(),z=_(),{addCard:B,removeCard:ce}=z,{cards:V,activeCardId:H}=m(z),U=f(``),W=f(!1),G=f(!1),K=f(``),q=f(`nameAsc`),J=f([]);ne(J,async e=>{let t=e[0];if(t)try{let e=await t.text(),n=JSON.parse(e);U.value=B(n),W.value=!0}catch(e){console.error(`Error processing card file:`,e)}});let Y=r(()=>Array.from(V.value.entries()).map(([e,t])=>({id:e,name:t.name,description:t.description}))),le=r(()=>{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=r(()=>{let e=[...le.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=f(!1),Q=f(null);function ue(){Q.value&&(ce(Q.value),Q.value=null,Z.value=!1)}function de(e){Q.value=e,Z.value=!0}function fe(e){U.value=e,W.value=!0}function pe(){G.value=!0}function me(e){H.value=e}function he(e){let t=V.value.get(e);return t?.version||`1.0.0`}function $(e,t){var n,r,i;let a=V.value.get(e);if(!a||!(!((n=a.extensions)==null||(n=n.airi)==null)&&n.modules))return`default`;let o=a.extensions.airi.modules;return t===`consciousness`?(r=o.consciousness)?.model&&o.consciousness.model.split(`-`).pop()||`default`:t===`voice`&&(i=o.speech)?.voice_id||`default`}return(r,l)=>{var f;let m=ee(`motion`);return d(),s(t,null,[i(`div`,T,[i(`div`,ae,[i(`div`,oe,[l[7]||=i(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[i(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),y(i(`input`,{"onUpdate:modelValue":l[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:g(b)(`settings.pages.card.search`)},null,8,se),[[te,K.value]])]),i(`div`,E,[i(`div`,D,h(g(b)(`settings.pages.card.sort_by`))+`: `,1),c(g(n),{modelValue:q.value,"onUpdate:modelValue":l[1]||=e=>q.value=e,options:[{value:`nameAsc`,label:g(b)(`settings.pages.card.name_asc`)},{value:`nameDesc`,label:g(b)(`settings.pages.card.name_desc`)},{value:`recent`,label:g(b)(`settings.pages.card.recent`)}],placeholder:`Select sort option`,class:`min-w-[150px]`},null,8,[`modelValue`,`options`])])]),i(`div`,{class:u([`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))]":g(V).size>0}])},[c(g(e),{modelValue:J.value,"onUpdate:modelValue":l[2]||=e=>J.value=e,accept:`*.json`},{default:re(({isDragging:e})=>[e?(d(),s(`div`,j,[l[9]||=i(`div`,{"i-solar:upload-minimalistic-bold":``,class:`mb-2 text-5xl text-primary-500 dark:text-primary-400`},null,-1),i(`p`,M,h(g(b)(`settings.pages.card.drop_here`)),1)])):(d(),s(`div`,O,[l[8]||=i(`div`,{"i-solar:upload-square-line-duotone":``,"mb-4":``,"text-5xl":``,text:`neutral-400 dark:neutral-500`},null,-1),i(`p`,k,h(g(b)(`settings.pages.card.upload`)),1),i(`p`,A,h(g(b)(`settings.pages.card.upload_desc`)),1)]))]),_:1},8,[`modelValue`]),c(ie,{onClick:pe}),g(V).size>0?(d(!0),s(t,{key:0},p(X.value,e=>(d(),a(w,{id:e.id,key:e.id,name:e.name,description:e.description,"is-active":e.id===g(H),"is-selected":e.id===U.value&&W.value,version:he(e.id),"consciousness-model":$(e.id,`consciousness`),"voice-model":$(e.id,`voice`),onSelect:t=>fe(e.id),onActivate:t=>me(e.id),onDelete:t=>de(e.id)},null,8,[`id`,`name`,`description`,`is-active`,`is-selected`,`version`,`consciousness-model`,`voice-model`,`onSelect`,`onActivate`,`onDelete`]))),128)):o(``,!0),g(V).size===0?(d(),s(`div`,N,[l[10]||=i(`div`,{"i-solar:card-search-broken":``,"mx-auto":``,"mb-3":``,"text-6xl":``,"text-neutral-400":``},null,-1),i(`p`,null,h(g(b)(`settings.pages.card.no_cards`)),1)])):o(``,!0),K.value&&X.value.length===0?(d(),s(`div`,P,[l[11]||=i(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),i(`div`,F,[i(`span`,I,h(g(b)(`settings.pages.card.no_results`)),1),i(`span`,L,h(g(b)(`settings.pages.card.try_different_search`)),1)])])):o(``,!0)],2)]),c(S,{modelValue:Z.value,"onUpdate:modelValue":l[3]||=e=>Z.value=e,"card-name":Q.value?(f=g(z).getCard(Q.value))?.name:``,onConfirm:ue,onCancel:l[4]||=e=>Q.value=null},null,8,[`modelValue`,`card-name`]),c(C,{modelValue:W.value,"onUpdate:modelValue":l[5]||=e=>W.value=e,"card-id":U.value},null,8,[`modelValue`,`card-id`]),c(x,{modelValue:G.value,"onUpdate:modelValue":l[6]||=e=>G.value=e},null,8,[`modelValue`]),y((d(),s(`div`,R,l[12]||=[i(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)])),[[m]])],64)}}});typeof b==`function`&&b(z);var B=z;export{B as default}; \ No newline at end of file diff --git a/assets/alibaba-cloud-model-studio-Db-MOtVa.js b/assets/alibaba-cloud-model-studio-CigdA2eh.js similarity index 97% rename from assets/alibaba-cloud-model-studio-Db-MOtVa.js rename to assets/alibaba-cloud-model-studio-CigdA2eh.js index b5d98e63966c1648bc24b83b0f1eb1ea728c5c65..e3619ef2d95cd33ce8d0440485810803250917c4 100644 --- a/assets/alibaba-cloud-model-studio-Db-MOtVa.js +++ b/assets/alibaba-cloud-model-studio-CigdA2eh.js @@ -1 +1 @@ -import{FieldRange_default as e,SpeechPlayground_default as t,SpeechProviderSettings_default as n,computed as r,createBaseVNode as i,createBlock as a,createVNode as o,defineComponent as s,onMounted as c,openBlock as l,ref as u,storeToRefs as d,unref as f,useI18n as p,useProvidersStore as m,useSpeechStore as h,watch as g,withCtx as _}from"./index-jH8PbleY.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";const y={flex:`~ col gap-4`},b=`alibaba-cloud-model-studio`,x=`cosyvoice-v1`;var S=s({__name:`alibaba-cloud-model-studio`,setup(s){let v={speed:1},S=u(0),C=u(1),w=u(0),T=h(),E=m(),{providers:D}=d(E),{t:O}=p(),k=r(()=>{var e;return!!(e=D.value[b])?.apiKey}),A=r(()=>T.availableVoices[b]||[]);async function j(e,t,n){let r=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 c(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)}),g(S,async()=>{let e=E.getProviderConfig(b);e.pitch=S.value}),g(C,async()=>{let e=E.getProviderConfig(b);e.speed=C.value}),g(w,async()=>{let e=E.getProviderConfig(b);e.volume=w.value}),g(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}),(r,s)=>(l(),a(f(n),{"provider-id":b,"default-model":x,"additional-settings":v},{"voice-settings":_(()=>[i(`div`,y,[o(f(e),{modelValue:S.value,"onUpdate:modelValue":s[0]||=e=>S.value=e,label:f(O)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:f(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`]),o(f(e),{modelValue:C.value,"onUpdate:modelValue":s[1]||=e=>C.value=e,label:f(O)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:f(O)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),o(f(e),{modelValue:w.value,"onUpdate:modelValue":s[2]||=e=>w.value=e,label:f(O)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:f(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:_(()=>[o(f(t),{"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{FieldRange_default as e,SpeechPlayground_default as t,SpeechProviderSettings_default as n,computed as r,createBaseVNode as i,createBlock as a,createVNode as o,defineComponent as s,onMounted as c,openBlock as l,ref as u,storeToRefs as d,unref as f,useI18n as p,useProvidersStore as m,useSpeechStore as h,watch as g,withCtx as _}from"./index-C2W4XoWv.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";const y={flex:`~ col gap-4`},b=`alibaba-cloud-model-studio`,x=`cosyvoice-v1`;var S=s({__name:`alibaba-cloud-model-studio`,setup(s){let v={speed:1},S=u(0),C=u(1),w=u(0),T=h(),E=m(),{providers:D}=d(E),{t:O}=p(),k=r(()=>{var e;return!!(e=D.value[b])?.apiKey}),A=r(()=>T.availableVoices[b]||[]);async function j(e,t,n){let r=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 c(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)}),g(S,async()=>{let e=E.getProviderConfig(b);e.pitch=S.value}),g(C,async()=>{let e=E.getProviderConfig(b);e.speed=C.value}),g(w,async()=>{let e=E.getProviderConfig(b);e.volume=w.value}),g(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}),(r,s)=>(l(),a(f(n),{"provider-id":b,"default-model":x,"additional-settings":v},{"voice-settings":_(()=>[i(`div`,y,[o(f(e),{modelValue:S.value,"onUpdate:modelValue":s[0]||=e=>S.value=e,label:f(O)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:f(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`]),o(f(e),{modelValue:C.value,"onUpdate:modelValue":s[1]||=e=>C.value=e,label:f(O)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:f(O)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),o(f(e),{modelValue:w.value,"onUpdate:modelValue":s[2]||=e=>w.value=e,label:f(O)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:f(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:_(()=>[o(f(t),{"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-BtJ5gSRl.js b/assets/anthropic-C1-YVtDu.js similarity index 98% rename from assets/anthropic-BtJ5gSRl.js rename to assets/anthropic-C1-YVtDu.js index 7c5f8fc3fe6b6360f21646d69f80ded0d6e2eb08..202ce545fc0e68ddd518439a647590e1842e950a 100644 --- a/assets/anthropic-BtJ5gSRl.js +++ b/assets/anthropic-C1-YVtDu.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBaseVNode as s,createBlock as c,createTextVNode as l,createVNode as u,defineComponent as d,onMounted as f,openBlock as p,storeToRefs as m,toDisplayString as h,unref as g,useI18n as _,useProvidersStore as v,useRouter as y,watch as b,withCtx as x}from"./index-jH8PbleY.js";import{route_block_default as S}from"./route-block-DWE87cA-.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=d({__name:`anthropic`,setup(d){let{t:S}=_(),D=y(),O=v(),{providers:k}=m(O),A=o(()=>O.getProviderMetadata(E)),j=o({get:()=>{var e;return(e=k.value[E])?.apiKey||``},set:e=>{k.value[E]||(k.value[E]={}),k.value[E].apiKey=e}}),M=o({get:()=>{var e;return(e=k.value[E])?.baseUrl||`https://api.anthropic.com/v1/`},set:e=>{k.value[E]||(k.value[E]={}),k.value[E].baseUrl=e}});f(()=>{var e,t;k.value[E]||(k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}),j.value=(e=k.value[E])?.apiKey||``,M.value=(t=k.value[E])?.baseUrl||`https://api.anthropic.com/v1/`}),b([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,d)=>{var f,m;return p(),c(g(a),{"provider-name":(f=A.value)?.localizedName||`Anthropic | Claude`,"provider-icon":(m=A.value)?.icon,"on-back":()=>g(D).back()},{default:x(()=>[s(`div`,C,[s(`h2`,w,h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.title`)),1),s(`p`,null,[l(h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part1`))+` `,1),s(`a`,T,h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part2`)),1),l(`, `+h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part3`))+` `,1),d[2]||=s(`a`,{underline:``,href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS`},`CORS`,-1),l(` `+h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part4`)),1)]),s(`p`,null,[l(h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part5`))+` `,1),d[3]||=s(`a`,{underline:``,href:`https://workers.cloudflare.com/`},`Cloudflare Workers`,-1),l(` `+h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part6`)),1)])]),u(g(i),null,{default:x(()=>[u(g(r),{title:g(S)(`settings.pages.providers.common.section.basic.title`),description:g(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":N},{default:x(()=>{var e;return[u(g(t),{modelValue:j.value,"onUpdate:modelValue":d[0]||=e=>j.value=e,"provider-name":(e=A.value)?.localizedName||`Anthropic`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),u(g(e),{title:g(S)(`settings.pages.providers.common.section.advanced.title`)},{default:x(()=>[u(g(n),{modelValue:M.value,"onUpdate:modelValue":d[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 +import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBaseVNode as s,createBlock as c,createTextVNode as l,createVNode as u,defineComponent as d,onMounted as f,openBlock as p,storeToRefs as m,toDisplayString as h,unref as g,useI18n as _,useProvidersStore as v,useRouter as y,watch as b,withCtx as x}from"./index-C2W4XoWv.js";import{route_block_default as S}from"./route-block-DWE87cA-.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=d({__name:`anthropic`,setup(d){let{t:S}=_(),D=y(),O=v(),{providers:k}=m(O),A=o(()=>O.getProviderMetadata(E)),j=o({get:()=>{var e;return(e=k.value[E])?.apiKey||``},set:e=>{k.value[E]||(k.value[E]={}),k.value[E].apiKey=e}}),M=o({get:()=>{var e;return(e=k.value[E])?.baseUrl||`https://api.anthropic.com/v1/`},set:e=>{k.value[E]||(k.value[E]={}),k.value[E].baseUrl=e}});f(()=>{var e,t;k.value[E]||(k.value[E]={baseUrl:`https://api.anthropic.com/v1/`}),j.value=(e=k.value[E])?.apiKey||``,M.value=(t=k.value[E])?.baseUrl||`https://api.anthropic.com/v1/`}),b([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,d)=>{var f,m;return p(),c(g(a),{"provider-name":(f=A.value)?.localizedName||`Anthropic | Claude`,"provider-icon":(m=A.value)?.icon,"on-back":()=>g(D).back()},{default:x(()=>[s(`div`,C,[s(`h2`,w,h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.title`)),1),s(`p`,null,[l(h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part1`))+` `,1),s(`a`,T,h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part2`)),1),l(`, `+h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part3`))+` `,1),d[2]||=s(`a`,{underline:``,href:`https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS`},`CORS`,-1),l(` `+h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part4`)),1)]),s(`p`,null,[l(h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part5`))+` `,1),d[3]||=s(`a`,{underline:``,href:`https://workers.cloudflare.com/`},`Cloudflare Workers`,-1),l(` `+h(g(S)(`settings.pages.providers.provider.anthropic.helpinfo.description.part6`)),1)])]),u(g(i),null,{default:x(()=>[u(g(r),{title:g(S)(`settings.pages.providers.common.section.basic.title`),description:g(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":N},{default:x(()=>{var e;return[u(g(t),{modelValue:j.value,"onUpdate:modelValue":d[0]||=e=>j.value=e,"provider-name":(e=A.value)?.localizedName||`Anthropic`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),u(g(e),{title:g(S)(`settings.pages.providers.common.section.advanced.title`)},{default:x(()=>[u(g(n),{modelValue:M.value,"onUpdate:modelValue":d[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/appearance-DAKX2aiN.js b/assets/appearance-nnrTPNaJ.js similarity index 96% rename from assets/appearance-DAKX2aiN.js rename to assets/appearance-nnrTPNaJ.js index 805cb7ed7b68fc8b2e35986d5852b4a818444c1a..18924baa23bc4de75f4185f84552c6be0b0f561a 100644 --- a/assets/appearance-DAKX2aiN.js +++ b/assets/appearance-nnrTPNaJ.js @@ -1 +1 @@ -import{Fragment as e,IconItem_default as t,computed as n,createBaseVNode as r,createBlock as i,createElementBlock as a,defineComponent as o,normalizeStyle as s,openBlock as c,renderList as l,resolveDirective as u,unref as d,useI18n as f,withDirectives as p}from"./index-jH8PbleY.js";import{route_block_default as m}from"./route-block-DWE87cA-.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=o({__name:`index`,setup(o){let{t:m}=f(),y=n(()=>[{title:m(`settings.pages.themes.general.title`),description:m(`settings.pages.themes.general.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/appearance/general`},{title:m(`settings.pages.themes.color-scheme.title`),description:m(`settings.pages.themes.color-scheme.description`),icon:`i-solar:pallete-2-bold-duotone`,to:`/settings/appearance/color-scheme`},{title:m(`settings.pages.themes.developer.title`),description:m(`settings.pages.themes.developer.description`),icon:`i-solar:code-bold-duotone`,to:`/settings/appearance/developer`}]);return(n,o)=>{let f=u(`motion`);return c(),a(`div`,h,[o[0]||=r(`div`,null,null,-1),r(`div`,g,[(c(!0),a(e,null,l(y.value,(e,n)=>p((c(),i(d(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:s({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[f]])),128))]),p((c(),a(`div`,_,[p(r(`div`,v,null,512),[[f]])])),[[f]])])}}});typeof m==`function`&&m(y);var b=y;export{b as default}; \ No newline at end of file +import{Fragment as e,IconItem_default as t,computed as n,createBaseVNode as r,createBlock as i,createElementBlock as a,defineComponent as o,normalizeStyle as s,openBlock as c,renderList as l,resolveDirective as u,unref as d,useI18n as f,withDirectives as p}from"./index-C2W4XoWv.js";import{route_block_default as m}from"./route-block-DWE87cA-.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=o({__name:`index`,setup(o){let{t:m}=f(),y=n(()=>[{title:m(`settings.pages.themes.general.title`),description:m(`settings.pages.themes.general.description`),icon:`i-solar:emoji-funny-square-bold-duotone`,to:`/settings/appearance/general`},{title:m(`settings.pages.themes.color-scheme.title`),description:m(`settings.pages.themes.color-scheme.description`),icon:`i-solar:pallete-2-bold-duotone`,to:`/settings/appearance/color-scheme`},{title:m(`settings.pages.themes.developer.title`),description:m(`settings.pages.themes.developer.description`),icon:`i-solar:code-bold-duotone`,to:`/settings/appearance/developer`}]);return(n,o)=>{let f=u(`motion`);return c(),a(`div`,h,[o[0]||=r(`div`,null,null,-1),r(`div`,g,[(c(!0),a(e,null,l(y.value,(e,n)=>p((c(),i(d(t),{key:e.to,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250,style:s({transitionDelay:`${n*50}ms`}),title:e.title,description:e.description,icon:e.icon,to:e.to},null,8,[`style`,`title`,`description`,`icon`,`to`])),[[f]])),128))]),p((c(),a(`div`,_,[p(r(`div`,v,null,512),[[f]])])),[[f]])])}}});typeof m==`function`&&m(y);var b=y;export{b as default}; \ No newline at end of file diff --git a/assets/audio-jEsbv24W.js b/assets/audio-D_Dl7cMi.js similarity index 89% rename from assets/audio-jEsbv24W.js rename to assets/audio-D_Dl7cMi.js index 2ebedf203fec8ba6e882a004d17563987d58f05a..6718ff1ff204564849027fab67c33d4cfb964831 100644 --- a/assets/audio-jEsbv24W.js +++ b/assets/audio-D_Dl7cMi.js @@ -1 +1 @@ -import{createBaseVNode as e,createElementBlock as t,defineComponent as n,openBlock as r,ref as i}from"./index-jH8PbleY.js";var a=n({__name:`audio`,setup(n){let a=i(),o=i();function s(e){var t,n;if(!e)return;let r=(t=o.value)==null||(t=t.files)==null?void 0:t[0];if(!r)return;let i=document.createElement(`audio`);(n=a.value)?.appendChild(i),i.src=URL.createObjectURL(r),i.controls=!0,i.load(),i.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 +import{createBaseVNode as e,createElementBlock as t,defineComponent as n,openBlock as r,ref as i}from"./index-C2W4XoWv.js";var a=n({__name:`audio`,setup(n){let a=i(),o=i();function s(e){var t,n;if(!e)return;let r=(t=o.value)==null||(t=t.files)==null?void 0:t[0];if(!r)return;let i=document.createElement(`audio`);(n=a.value)?.appendChild(i),i.src=URL.createObjectURL(r),i.controls=!0,i.load(),i.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-record-DhsmVZ7n.js b/assets/audio-record-B6N8fWma.js similarity index 97% rename from assets/audio-record-DhsmVZ7n.js rename to assets/audio-record-B6N8fWma.js index ddb3601301ada83a12e5f0da05219f3a1818263f..a132a737c97e60aa827cd851f7e881d8eff62344 100644 --- a/assets/audio-record-DhsmVZ7n.js +++ b/assets/audio-record-B6N8fWma.js @@ -1 +1 @@ -import{Button_default as e,Fragment as t,Option_default as n,Select_default as r,computed as i,createBaseVNode as a,createBlock as o,createElementBlock as s,createTextVNode as c,createVNode as l,defineComponent as u,isRef as d,onMounted as f,onUnmounted as p,openBlock as m,ref as h,renderList as g,toDisplayString as _,toRef as v,unref as y,until as b,useDevicesList as x,useUserMedia as S,watch as C,withCtx as w}from"./index-jH8PbleY.js";function T(){var e;let t=x({constraints:{audio:!0},requestPermissions:!1}),n=h((e=t.audioInputs.value[0])?.deviceId||``),r=h(),a=i(()=>t.audioInputs.value),o=h({audio:!0}),s=S({constraints:o,autoSwitch:!0,enabled:!1});async function c(){t.permissionGranted.value||t.isSupported.value&&await t.ensurePermissions()}C(n,()=>{n.value&&(o.value={audio:{deviceId:{exact:n.value}}})},{immediate:!0}),C(t.audioInputs,()=>{r.value=a.value.find(e=>e.deviceId===n.value)},{immediate:!0}),C([t.permissionGranted,a,n],async()=>{await c(),t.permissionGranted.value&&a.value.length!==0&&(r.value||=a.value[0])},{immediate:!0});async function l(){await c(),t.permissionGranted.value&&r.value&&(s.enabled.value&&s.restart(),s.start())}function u(){s.stop()}return{selectedAudioInputId:n,selectedAudioInput:r,audioInputs:a,start:l,stop:u,request:c,media:s}}function E(e,t=()=>Promise.resolve()){let n=h(),r=v(e);async function i(){if(await t(),await b(r).toBeTruthy(),!r.value){console.error(`No media media available`);return}n.value=new MediaRecorder(r.value),n.value.start()}function a(){n.value&&(n.value.stop(),n.value.ondataavailable=e=>{let t=e.data,n=URL.createObjectURL(t),r=new Audio(n);r.play()})}return{startRecord:i,stopRecord:a}}const D={class:`mt-4 w-full flex justify-center gap-2`};var O=u({__name:`audio-record`,setup(i){let{audioInputs:u,selectedAudioInputId:h,start:v,stop:b,media:x,request:S}=T(),{startRecord:C,stopRecord:O}=E(x.stream,v);return f(()=>S()),p(()=>b()),(i,f)=>(m(),s(`div`,null,[l(y(r),{modelValue:y(h),"onUpdate:modelValue":f[0]||=e=>d(h)?h.value=e:null,onChange:f[1]||=()=>y(v)()},{default:w(({value:e})=>{var t;return[a(`div`,null,_(e?(t=y(u).find(t=>t.deviceId===e))?.label:`Select Audio Input`),1)]}),options:w(({hide:e})=>[(m(!0),s(t,null,g(y(u),t=>(m(),o(y(n),{key:t.deviceId,value:t.deviceId,active:t.deviceId===y(h),onClick:t=>e()},{default:w(()=>[c(_(t.label),1)]),_:2},1032,[`value`,`active`,`onClick`]))),128))]),_:1},8,[`modelValue`]),a(`div`,D,[l(y(e),{onClick:y(C)},{default:w(()=>f[2]||=[c(` Start Recording `)]),_:1,__:[2]},8,[`onClick`]),l(y(e),{onClick:y(O)},{default:w(()=>f[3]||=[c(` Stop Recording `)]),_:1,__:[3]},8,[`onClick`])])]))}}),k=O;export{k as default}; \ No newline at end of file +import{Button_default as e,Fragment as t,Option_default as n,Select_default as r,computed as i,createBaseVNode as a,createBlock as o,createElementBlock as s,createTextVNode as c,createVNode as l,defineComponent as u,isRef as d,onMounted as f,onUnmounted as p,openBlock as m,ref as h,renderList as g,toDisplayString as _,toRef as v,unref as y,until as b,useDevicesList as x,useUserMedia as S,watch as C,withCtx as w}from"./index-C2W4XoWv.js";function T(){var e;let t=x({constraints:{audio:!0},requestPermissions:!1}),n=h((e=t.audioInputs.value[0])?.deviceId||``),r=h(),a=i(()=>t.audioInputs.value),o=h({audio:!0}),s=S({constraints:o,autoSwitch:!0,enabled:!1});async function c(){t.permissionGranted.value||t.isSupported.value&&await t.ensurePermissions()}C(n,()=>{n.value&&(o.value={audio:{deviceId:{exact:n.value}}})},{immediate:!0}),C(t.audioInputs,()=>{r.value=a.value.find(e=>e.deviceId===n.value)},{immediate:!0}),C([t.permissionGranted,a,n],async()=>{await c(),t.permissionGranted.value&&a.value.length!==0&&(r.value||=a.value[0])},{immediate:!0});async function l(){await c(),t.permissionGranted.value&&r.value&&(s.enabled.value&&s.restart(),s.start())}function u(){s.stop()}return{selectedAudioInputId:n,selectedAudioInput:r,audioInputs:a,start:l,stop:u,request:c,media:s}}function E(e,t=()=>Promise.resolve()){let n=h(),r=v(e);async function i(){if(await t(),await b(r).toBeTruthy(),!r.value){console.error(`No media media available`);return}n.value=new MediaRecorder(r.value),n.value.start()}function a(){n.value&&(n.value.stop(),n.value.ondataavailable=e=>{let t=e.data,n=URL.createObjectURL(t),r=new Audio(n);r.play()})}return{startRecord:i,stopRecord:a}}const D={class:`mt-4 w-full flex justify-center gap-2`};var O=u({__name:`audio-record`,setup(i){let{audioInputs:u,selectedAudioInputId:h,start:v,stop:b,media:x,request:S}=T(),{startRecord:C,stopRecord:O}=E(x.stream,v);return f(()=>S()),p(()=>b()),(i,f)=>(m(),s(`div`,null,[l(y(r),{modelValue:y(h),"onUpdate:modelValue":f[0]||=e=>d(h)?h.value=e:null,onChange:f[1]||=()=>y(v)()},{default:w(({value:e})=>{var t;return[a(`div`,null,_(e?(t=y(u).find(t=>t.deviceId===e))?.label:`Select Audio Input`),1)]}),options:w(({hide:e})=>[(m(!0),s(t,null,g(y(u),t=>(m(),o(y(n),{key:t.deviceId,value:t.deviceId,active:t.deviceId===y(h),onClick:t=>e()},{default:w(()=>[c(_(t.label),1)]),_:2},1032,[`value`,`active`,`onClick`]))),128))]),_:1},8,[`modelValue`]),a(`div`,D,[l(y(e),{onClick:y(C)},{default:w(()=>f[2]||=[c(` Start Recording `)]),_:1,__:[2]},8,[`onClick`]),l(y(e),{onClick:y(O)},{default:w(()=>f[3]||=[c(` Stop Recording `)]),_:1,__:[3]},8,[`onClick`])])]))}}),k=O;export{k as default}; \ No newline at end of file diff --git a/assets/background-remove-Dg22U2A0.js b/assets/background-remove-612OSbeu.js similarity index 94% rename from assets/background-remove-Dg22U2A0.js rename to assets/background-remove-612OSbeu.js index 40851de8acd7f8a3af427cb7ccb5e6c8c8084a1a..42e76ba79f2f713b711fba4a5dd2f2ce71541547 100644 --- a/assets/background-remove-Dg22U2A0.js +++ b/assets/background-remove-612OSbeu.js @@ -1 +1 @@ -import{InputFile_default as e}from"./InputFile-D7EBb56X.js";import{Fragment as t,check as n,computed as r,createBaseVNode as i,createCommentVNode as a,createElementBlock as o,createVNode as s,defineComponent as c,normalizeStyle as l,onMounted as u,openBlock as d,ref as f,renderList as p,toDisplayString as m,unref as h}from"./index-jH8PbleY.js";import{__webpack_exports__AutoModel as g,__webpack_exports__AutoProcessor as _,__webpack_exports__RawImage as v,__webpack_exports__env as y}from"./transformers.web-BHSa4vch.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=c({__name:`background-remove`,setup(c){let N=f(),P=f(),F=f(),I=f(),L=f(!1),R=f(0),z=f(),B=f(),V=f([]),H=r(()=>V.value.map(e=>URL.createObjectURL(e)));u(async()=>{try{if(!(await n()).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(n,r)=>(d(),o(`div`,b,[i(`button`,{bg:`neutral-100 dark:neutral-800`,"w-full":``,"cursor-pointer":``,"rounded-lg":``,"px-3":``,"py-2":``,disabled:L.value,onClick:U},m(L.value?`Processing...`:`Process`),9,x),i(`div`,S,[i(`div`,C,[(d(!0),o(t,null,p(H.value,(e,t)=>(d(),o(`img`,{key:t,src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,w))),128))]),i(`div`,T,[L.value?(d(),o(`div`,E,[i(`div`,D,m(R.value)+`% `,1),i(`div`,O,[i(`div`,{bg:`emerald-500`,"h-full":``,style:l({width:`${R.value}%`}),"transition-all":``,"duration-200":``},null,4)])])):a(``,!0),(d(!0),o(t,null,p(z.value,(e,t)=>(d(),o(`div`,{key:t,relative:``,class:`group`,"h-full":``,"w-full":``},[i(`img`,{src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,k),i(`div`,A,[i(`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)},r[1]||=[i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[i(`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?(d(),o(`div`,M,[i(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,onClick:G},r[2]||=[i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[i(`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)])])):a(``,!0)])]),s(h(e),{modelValue:V.value,"onUpdate:modelValue":r[0]||=e=>V.value=e,"w-full":``},null,8,[`modelValue`])]))}}),P=N;export{P as default}; \ No newline at end of file +import{InputFile_default as e}from"./InputFile-DO1WMP2V.js";import{Fragment as t,check as n,computed as r,createBaseVNode as i,createCommentVNode as a,createElementBlock as o,createVNode as s,defineComponent as c,normalizeStyle as l,onMounted as u,openBlock as d,ref as f,renderList as p,toDisplayString as m,unref as h}from"./index-C2W4XoWv.js";import{__webpack_exports__AutoModel as g,__webpack_exports__AutoProcessor as _,__webpack_exports__RawImage as v,__webpack_exports__env as y}from"./transformers.web-BWxQFDpM.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=c({__name:`background-remove`,setup(c){let N=f(),P=f(),F=f(),I=f(),L=f(!1),R=f(0),z=f(),B=f(),V=f([]),H=r(()=>V.value.map(e=>URL.createObjectURL(e)));u(async()=>{try{if(!(await n()).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(n,r)=>(d(),o(`div`,b,[i(`button`,{bg:`neutral-100 dark:neutral-800`,"w-full":``,"cursor-pointer":``,"rounded-lg":``,"px-3":``,"py-2":``,disabled:L.value,onClick:U},m(L.value?`Processing...`:`Process`),9,x),i(`div`,S,[i(`div`,C,[(d(!0),o(t,null,p(H.value,(e,t)=>(d(),o(`img`,{key:t,src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,w))),128))]),i(`div`,T,[L.value?(d(),o(`div`,E,[i(`div`,D,m(R.value)+`% `,1),i(`div`,O,[i(`div`,{bg:`emerald-500`,"h-full":``,style:l({width:`${R.value}%`}),"transition-all":``,"duration-200":``},null,4)])])):a(``,!0),(d(!0),o(t,null,p(z.value,(e,t)=>(d(),o(`div`,{key:t,relative:``,class:`group`,"h-full":``,"w-full":``},[i(`img`,{src:e,"h-full":``,"w-full":``,"object-cover":``},null,8,k),i(`div`,A,[i(`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)},r[1]||=[i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[i(`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?(d(),o(`div`,M,[i(`button`,{bg:`emerald-500 hover:emerald-600`,"rounded-full":``,"p-2":``,"text-white":``,onClick:G},r[2]||=[i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,class:`h-5 w-5`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`},[i(`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)])])):a(``,!0)])]),s(h(e),{modelValue:V.value,"onUpdate:modelValue":r[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-DRs1BdUm.js b/assets/chat-BdNjFz1N.js similarity index 99% rename from assets/chat-DRs1BdUm.js rename to assets/chat-BdNjFz1N.js index acf99e01506527444eab4eace346a57ab6c58fc3..213afb55df970eeed4d4a7ae461c30986ffaa465 100644 --- a/assets/chat-DRs1BdUm.js +++ b/assets/chat-BdNjFz1N.js @@ -1,3 +1,3 @@ -var e=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,n){return e.get(t(e,n))}return exports.classPrivateFieldGet2=a,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports}({});import{Fragment as t,createBaseVNode as n,createCommentVNode as r,createElementBlock as i,defineComponent as a,isRef as o,openBlock as s,ref as c,renderList as l,streamText as u,toDisplayString as d,toRaw as f,unref as p,useLocalStorage as m,vModelText as h,withDirectives as g}from"./index-jH8PbleY.js";var _,v,y;let b;const x=()=>{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}}}},S=new WeakMap,C=new WeakMap;let w=0,T=0;const E=e=>{let t=`${w++}`,n={debugLabel:e?.debugLabel??t,include:e=>r.has(e),with:i=>{let a=`${T++}`,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),C.set(o,n),o}},r=new WeakSet;S.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},D=e=>typeof e==`object`&&e?S.has(e):!1,O=e=>typeof e==`object`&&e?C.get(e):void 0,k=e=>typeof e==`object`&&!!e&&`data`in e,A=e=>e!=null&&typeof e.then==`function`;function j(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 M.set(t,e),t}var F=class extends TransformStream{constructor(){super({transform:(e,t)=>{O(e)&&t.enqueue(JSON.stringify({data:e.data,uniqueId:O(e).uniqueId})+` +var e=function(exports){function t(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function n(e,n,r){return e.set(t(e,n),r),r}function r(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function i(e,t,n){r(e,t),t.set(e,n)}function a(e,n){return e.get(t(e,n))}return exports.classPrivateFieldGet2=a,exports.classPrivateFieldInitSpec=i,exports.classPrivateFieldSet2=n,exports}({});import{Fragment as t,createBaseVNode as n,createCommentVNode as r,createElementBlock as i,defineComponent as a,isRef as o,openBlock as s,ref as c,renderList as l,streamText as u,toDisplayString as d,toRaw as f,unref as p,useLocalStorage as m,vModelText as h,withDirectives as g}from"./index-C2W4XoWv.js";var _,v,y;let b;const x=()=>{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}}}},S=new WeakMap,C=new WeakMap;let w=0,T=0;const E=e=>{let t=`${w++}`,n={debugLabel:e?.debugLabel??t,include:e=>r.has(e),with:i=>{let a=`${T++}`,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),C.set(o,n),o}},r=new WeakSet;S.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},D=e=>typeof e==`object`&&e?S.has(e):!1,O=e=>typeof e==`object`&&e?C.get(e):void 0,k=e=>typeof e==`object`&&!!e&&`data`in e,A=e=>e!=null&&typeof e.then==`function`;function j(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 M.set(t,e),t}var F=class extends TransformStream{constructor(){super({transform:(e,t)=>{O(e)&&t.enqueue(JSON.stringify({data:e.data,uniqueId:O(e).uniqueId})+` `)}})}},I=(_=new WeakMap,class extends TransformStream{constructor(t){super({transform:(t,n)=>{let r=t.split(` `).map(e=>e.trim()).filter(e=>e.length>0);r.forEach(t=>{let r=JSON.parse(t),i=Object.values(e.classPrivateFieldGet2(_,this)).find(e=>e.uniqueId===r.uniqueId);if(i){let e=i.with(r.data);n.enqueue(e)}else console.warn(`Unknown event: ${r.uniqueId}`)})}}),e.classPrivateFieldInitSpec(this,_,void 0),e.classPrivateFieldSet2(_,this,t)}}),L=(v=new WeakMap,y=new WeakMap,b=Symbol.asyncIterator,class t extends ReadableStream{on(t,n){return e.classPrivateFieldGet2(y,this).subscribe(e=>{t.include(e)&&n(e)})}constructor(t,n){if(!t&&!n)throw TypeError(`Either subscribable or root stream must be provided`);if(super(),e.classPrivateFieldInitSpec(this,v,void 0),e.classPrivateFieldInitSpec(this,y,void 0),t){e.classPrivateFieldSet2(y,this,t);let r;e.classPrivateFieldSet2(v,this,n??new ReadableStream({start:e=>{r=t.subscribe(t=>{e.enqueue(t)})},cancel:()=>{r()}}))}else{e.classPrivateFieldSet2(y,this,P()),e.classPrivateFieldSet2(v,this,n.pipeThrough(new TransformStream({transform:(t,n)=>{e.classPrivateFieldGet2(y,this).publish(t),n.enqueue(t)}})));return}}static fromReadableStream(e){return new t(null,e.pipeThrough(new TransformStream({transform:(e,t)=>{t.enqueue(e)}})))}static fromResponse(e,n){let r=e.body;if(!r)throw Error(`Response body is not readable`);return new t(null,r.pipeThrough(new TextDecoderStream).pipeThrough(new I(n)))}toResponse(t,n=new F){return new Response(e.classPrivateFieldGet2(v,this).pipeThrough(n).pipeThrough(new TextEncoderStream),t)}get locked(){return e.classPrivateFieldGet2(v,this).locked}[b](){return e.classPrivateFieldGet2(v,this)[Symbol.asyncIterator]()}cancel(t){return e.classPrivateFieldGet2(v,this).cancel(t)}getReader(){return e.classPrivateFieldGet2(v,this).getReader()}pipeThrough(n,r){let i=e.classPrivateFieldGet2(v,this).pipeThrough(n,r);return new t(null,i)}pipeTo(t,n){return e.classPrivateFieldGet2(v,this).pipeTo(t,n)}tee(){let[n,r]=e.classPrivateFieldGet2(v,this).tee();return[new t(e.classPrivateFieldGet2(y,this),n),new t(e.classPrivateFieldGet2(y,this),r)]}forEach(t){return e.classPrivateFieldGet2(v,this).pipeTo(new WritableStream({write:e=>{t(e)}}))}map(e){return this.pipeThrough(new TransformStream({transform:(t,n)=>{n.enqueue(e(t))}}))}values(t){return e.classPrivateFieldGet2(v,this).values(t)}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):D(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):D(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 R=x();function z(){let e=R.getStore();if(!e)throw Error(`No current context found`);return e}const B=x(),V=new WeakMap,H=({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);B.run(l,()=>{let e=[...new Set([...N(s.__internal__call_context),...N(u.__internal__call_context)])];R.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}A(e)?(l.async=!0,l.pending=e.then(e=>(k(e)&&u.sendEvent(e),e))):k(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=j(e,i);return t.length===e.length}).map(([e,a])=>{let o=j(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=P();s.__internal__call_send_event.subscribe(n=>{let r=V.get(n);for(;r;){if(r===e){t.publish(n);break}r=r.prev}}),n=new L(t,null)}return n},get signal(){return e.abortController.signal},sendEvent:(...n)=>{n.forEach(n=>{V.set(n,e),e.outputs.push(n),t.push(n),s.__internal__call_send_event.publish(n,e),r(e)})},__internal__call_context:P(),__internal__call_send_event:P()}},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},U=()=>{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 H({listeners:e.steps})}}};function W(e,t){let n=(...e)=>{let n=t.filter(([t])=>t.every((t,n)=>t.include(e[n]))).map(([e,t])=>t),r=z(),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=z();return n(t.safeSendEvent,...e)};return e.handle(t,r)},createContext(){let t=e.createContext();return t.__internal__call_context.subscribe((e,t)=>{z().safeSendEvent=n(...e.inputs),t(e)}),t}}}async function G(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 K={flex:``,"flex-col":``,"gap-2":``},q={flex:`~ col`,"gap-2":``},J={flex:``,"flex-col":``,"gap-2":``},Y={grid:``,"grid-cols-2":``,"gap-2":``},X={flex:``,"items-center":``,"gap-2":``},Z={flex:``,"items-center":``,"gap-2":``},Q={flex:``,"items-center":``,"gap-2":``},$={key:0},ee={key:1};var te=a({__name:`chat`,setup(e){let a=m(`settings/llm/baseUrl`,`https://openrouter.ai/api/v1/`),_=m(`settings/llm/apiKey`,``),v=m(`settings/llm/model`,`openai/gpt-4o-mini`),y=c(``),b=c([]),x=c({role:`assistant`,content:``}),S=c(!1),C=E(),w=E(),T=E(),D=E(),O=E();async function k(){S.value=!0;try{let e=W(U(),[[[C],[w,O]],[[w],[T]],[[T],[D]]]);e.handle([C],async()=>{let{sendEvent:t}=e.createContext();x.value={role:`assistant`,content:``},b.value.push({role:`user`,content:y.value}),b.value.push(x.value);let n=await u({baseURL:a.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.chunkStream)t(w.with(e.choices[0].delta.content||``));return O.with()}),e.handle([w],async e=>{x.value.content?x.value.content+=e.data:x.value.content=e.data}),await G(e,C.with(),O)}catch(e){console.error(e)}finally{S.value=!1}}return(e,c)=>(s(),i(`div`,K,[n(`div`,q,[n(`div`,J,[c[7]||=n(`div`,null,[n(`span`,{"text-neutral-500":``,"dark:text-neutral-400":``},`LLM`)],-1),n(`div`,Y,[n(`label`,X,[c[4]||=n(`span`,{"text-nowrap":``},` Base URL `,-1),g(n(`input`,{"onUpdate:modelValue":c[0]||=e=>o(a)?a.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),[[h,p(a)]])]),n(`label`,Z,[c[5]||=n(`span`,{"text-nowrap":``},` API Key `,-1),g(n(`input`,{"onUpdate:modelValue":c[1]||=e=>o(_)?_.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),[[h,p(_)]])]),n(`label`,Q,[c[6]||=n(`span`,{"text-nowrap":``},` Model `,-1),g(n(`input`,{"onUpdate:modelValue":c[2]||=e=>o(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),[[h,p(v)]])])])]),n(`div`,null,[g(n(`textarea`,{"onUpdate:modelValue":c[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),[[h,y.value]])]),n(`button`,{"rounded-lg":``,bg:`blue-100 dark:blue-900`,"px-4":``,"py-2":``,onClick:k},` Send `),n(`div`,null,[(s(!0),i(t,null,l(b.value,(e,t)=>(s(),i(`div`,{key:t},[e.role===`user`?(s(),i(`div`,$,[n(`span`,null,d(e.content),1)])):r(``,!0),e.role===`assistant`?(s(),i(`div`,ee,[n(`span`,null,d(e.content),1)])):r(``,!0)]))),128))])])]))}}),ne=te;export{ne as default}; \ No newline at end of file diff --git a/assets/cloudflare-workers-ai-CGpUoWxl.js b/assets/cloudflare-workers-ai-9dIfUy-z.js similarity index 97% rename from assets/cloudflare-workers-ai-CGpUoWxl.js rename to assets/cloudflare-workers-ai-9dIfUy-z.js index 0b6e60311a3f845d9a191226576a1692aac0092e..e98f6f63a0173fb173be50479b58214af84cca1e 100644 --- a/assets/cloudflare-workers-ai-CGpUoWxl.js +++ b/assets/cloudflare-workers-ai-9dIfUy-z.js @@ -1 +1 @@ -import{ProviderAccountIdInput_default as e,ProviderApiKeyInput_default as t,ProviderBasicSettings_default as n,ProviderSettingsContainer_default as r,ProviderSettingsLayout_default as i,computed as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,storeToRefs as d,unref as f,useI18n as p,useProvidersStore as m,useRouter as h,watch as g,withCtx as _}from"./index-jH8PbleY.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";const y=`cloudflare-workers-ai`;var b=c({__name:`cloudflare-workers-ai`,setup(c){let{t:v}=p(),b=h(),x=m(),{providers:S}=d(x),C=a(()=>x.getProviderMetadata(y)),w=a({get:()=>{var e;return(e=S.value[y])?.apiKey||``},set:e=>{S.value[y]||(S.value[y]={}),S.value[y].apiKey=e}}),T=a({get:()=>{var e;return(e=S.value[y])?.accountId||``},set:e=>{S.value[y]||(S.value[y]={}),S.value[y].accountId=e}});l(()=>{var e,t;x.initializeProvider(y),w.value=(e=S.value[y])?.apiKey||``,T.value=(t=S.value[y])?.accountId||``}),g([w,T],()=>{S.value[y]={...S.value[y],apiKey:w.value,accountId:T.value}});function E(){var e;S.value[y]={...(e=C.value)?.defaultOptions}}return(a,c)=>{var l,d;return u(),o(f(i),{"provider-name":(l=C.value)?.localizedName,"provider-icon-color":(d=C.value)?.iconColor,"on-back":()=>f(b).back()},{default:_(()=>[s(f(r),null,{default:_(()=>[s(f(n),{title:f(v)(`settings.pages.providers.common.section.basic.title`),description:f(v)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:_(()=>{var n;return[s(f(t),{modelValue:w.value,"onUpdate:modelValue":c[0]||=e=>w.value=e,"provider-name":(n=C.value)?.localizedName,placeholder:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.api-key.placeholder`)},null,8,[`modelValue`,`provider-name`,`placeholder`]),s(f(e),{modelValue:T.value,"onUpdate:modelValue":c[1]||=e=>T.value=e,label:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.label`),description:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.description`),placeholder:f(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{ProviderAccountIdInput_default as e,ProviderApiKeyInput_default as t,ProviderBasicSettings_default as n,ProviderSettingsContainer_default as r,ProviderSettingsLayout_default as i,computed as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,storeToRefs as d,unref as f,useI18n as p,useProvidersStore as m,useRouter as h,watch as g,withCtx as _}from"./index-C2W4XoWv.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";const y=`cloudflare-workers-ai`;var b=c({__name:`cloudflare-workers-ai`,setup(c){let{t:v}=p(),b=h(),x=m(),{providers:S}=d(x),C=a(()=>x.getProviderMetadata(y)),w=a({get:()=>{var e;return(e=S.value[y])?.apiKey||``},set:e=>{S.value[y]||(S.value[y]={}),S.value[y].apiKey=e}}),T=a({get:()=>{var e;return(e=S.value[y])?.accountId||``},set:e=>{S.value[y]||(S.value[y]={}),S.value[y].accountId=e}});l(()=>{var e,t;x.initializeProvider(y),w.value=(e=S.value[y])?.apiKey||``,T.value=(t=S.value[y])?.accountId||``}),g([w,T],()=>{S.value[y]={...S.value[y],apiKey:w.value,accountId:T.value}});function E(){var e;S.value[y]={...(e=C.value)?.defaultOptions}}return(a,c)=>{var l,d;return u(),o(f(i),{"provider-name":(l=C.value)?.localizedName,"provider-icon-color":(d=C.value)?.iconColor,"on-back":()=>f(b).back()},{default:_(()=>[s(f(r),null,{default:_(()=>[s(f(n),{title:f(v)(`settings.pages.providers.common.section.basic.title`),description:f(v)(`settings.pages.providers.common.section.basic.description`),"on-reset":E},{default:_(()=>{var n;return[s(f(t),{modelValue:w.value,"onUpdate:modelValue":c[0]||=e=>w.value=e,"provider-name":(n=C.value)?.localizedName,placeholder:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.api-key.placeholder`)},null,8,[`modelValue`,`provider-name`,`placeholder`]),s(f(e),{modelValue:T.value,"onUpdate:modelValue":c[1]||=e=>T.value=e,label:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.label`),description:f(v)(`settings.pages.providers.provider.cloudflare-workers-ai.fields.field.account-id.description`),placeholder:f(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-C0RXcpWc.js b/assets/color-scheme-CRBG9uYh.js similarity index 96% rename from assets/color-scheme-C0RXcpWc.js rename to assets/color-scheme-CRBG9uYh.js index fa7a4f5f021ec5642e85c07f7ddcd51cd53f0826..8e355b422ec99c33b8b9457b801e05e3b1ccae66 100644 --- a/assets/color-scheme-C0RXcpWc.js +++ b/assets/color-scheme-CRBG9uYh.js @@ -1 +1 @@ -import"./dist-BXbmJYBn.js";import{ColorHueRange_default as e,Fragment as t,Section_default as n,__plugin_vue_export_helper_default as r,createBaseVNode as i,createBlock as a,createElementBlock as o,createTextVNode as s,createVNode as c,defineComponent as l,openBlock as u,renderList as d,resolveDirective as f,toDisplayString as p,unref as m,useI18n as h,useSettings as g,vModelCheckbox as _,withCtx as v,withDirectives as y}from"./index-jH8PbleY.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";import{ColorPalette_default as x}from"./ColorPalette-RTtXS1UD.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:5*50,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`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:320,delay:7*50,transition:`all ease-in-out duration-250`},D={"text-white":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:330,delay:8*50,transition:`all ease-in-out duration-250`},O={class:`color-bar transparency-grid`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:340,delay:9*50,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=l({__name:`color-scheme`,setup(r){let l=g(),{t:b}=h();return(r,h)=>{let g=f(`motion`);return u(),o(t,null,[y((u(),a(m(n),{"mb-2":``,title:m(b)(`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:4*50,transition:`all ease-in-out duration-250`},{default:v(()=>[y((u(),o(`div`,C,[i(`span`,w,p(r.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label`)),1),i(`label`,T,[y(i(`input`,{"onUpdate:modelValue":h[0]||=e=>m(l).themeColorsHueDynamic=e,type:`checkbox`,class:`peer sr-only`},null,512),[[_,m(l).themeColorsHueDynamic]]),h[2]||=i(`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),s(` `+p(r.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title`)),1)])])),[[g]]),y(c(m(e),{modelValue:m(l).themeColorsHue,"onUpdate:modelValue":h[1]||=e=>m(l).themeColorsHue=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:310,delay:6*50,disabled:m(l).themeColorsHueDynamic},null,8,[`modelValue`,`disabled`]),[[g]]),y((u(),o(`div`,E,[h[4]||=i(`span`,{"bg-primary-50":``},`50`,-1),h[5]||=i(`span`,{"bg-primary-100":``},`100`,-1),h[6]||=i(`span`,{"bg-primary-200":``},`200`,-1),h[7]||=i(`span`,{"bg-primary-300":``},`300`,-1),h[8]||=i(`span`,{"bg-primary-400":``},`400`,-1),h[9]||=i(`span`,{"bg-primary-500":``},`500`,-1),y((u(),o(`div`,D,h[3]||=[i(`span`,{"bg-primary-600":``},`600`,-1),i(`span`,{"bg-primary-700":``},`700`,-1),i(`span`,{"bg-primary-800":``},`800`,-1),i(`span`,{"bg-primary-900":``},`900`,-1),i(`span`,{"bg-primary-950":``},`950`,-1)])),[[g]])])),[[g]]),y((u(),o(`div`,O,h[10]||=[i(`span`,{bg:`primary-500/5`},`500/5`,-1),i(`span`,{bg:`primary-500/10`},`500/10`,-1),i(`span`,{bg:`primary-500/20`},`500/20`,-1),i(`span`,{bg:`primary-500/30`},`500/30`,-1),i(`span`,{bg:`primary-500/40`},`500/40`,-1),i(`span`,{bg:`primary-500/50`},`500/50`,-1),i(`span`,{bg:`primary-500/60`},`500/60`,-1),i(`span`,{bg:`primary-500/70`},`500/70`,-1),i(`span`,{bg:`primary-500/80`},`500/80`,-1),i(`span`,{bg:`primary-500/90`},`500/90`,-1),i(`span`,{bg:`primary-500`},`500`,-1)])),[[g]])]),_:1},8,[`title`])),[[g]]),y((u(),a(m(n),{"mb-2":``,title:m(b)(`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:10*50,transition:`all ease-in-out duration-250`},{default:v(()=>[(u(!0),o(t,null,d(r.$tm(`settings.pages.themes.sections.section.theme-presets.presets`),({title:e,description:t,colors:n},a)=>y((u(),o(`div`,{key:a,class:`w-full flex items-center justify-between rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out`,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+a*10,delay:11*50+a*50,transition:`all ease-in-out duration-250`},[i(`div`,null,[i(`span`,A,p(r.$rt(e)),1),i(`div`,j,p(r.$rt(t)),1)]),c(x,{colors:n.map((e,t)=>({hex:m(S)[a][t],name:r.$rt(e)}))},null,8,[`colors`])],8,k)),[[g]])),128))]),_:1},8,[`title`])),[[g]]),y((u(),o(`div`,M,h[11]||=[i(`div`,{text:`60`,"i-solar:pallete-2-bold-duotone":``},null,-1)])),[[g]])],64)}}});typeof b==`function`&&b(N);var P=r(N,[[`__scopeId`,`data-v-8d079c31`]]);export{P as default}; \ No newline at end of file +import"./dist-CM_LBh2l.js";import{ColorHueRange_default as e,Fragment as t,Section_default as n,__plugin_vue_export_helper_default as r,createBaseVNode as i,createBlock as a,createElementBlock as o,createTextVNode as s,createVNode as c,defineComponent as l,openBlock as u,renderList as d,resolveDirective as f,toDisplayString as p,unref as m,useI18n as h,useSettings as g,vModelCheckbox as _,withCtx as v,withDirectives as y}from"./index-C2W4XoWv.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";import{ColorPalette_default as x}from"./ColorPalette-D44Srp6v.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:5*50,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`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:320,delay:7*50,transition:`all ease-in-out duration-250`},D={"text-white":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:330,delay:8*50,transition:`all ease-in-out duration-250`},O={class:`color-bar transparency-grid`,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:340,delay:9*50,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=l({__name:`color-scheme`,setup(r){let l=g(),{t:b}=h();return(r,h)=>{let g=f(`motion`);return u(),o(t,null,[y((u(),a(m(n),{"mb-2":``,title:m(b)(`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:4*50,transition:`all ease-in-out duration-250`},{default:v(()=>[y((u(),o(`div`,C,[i(`span`,w,p(r.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.label`)),1),i(`label`,T,[y(i(`input`,{"onUpdate:modelValue":h[0]||=e=>m(l).themeColorsHueDynamic=e,type:`checkbox`,class:`peer sr-only`},null,512),[[_,m(l).themeColorsHueDynamic]]),h[2]||=i(`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),s(` `+p(r.$t(`settings.pages.themes.sections.section.custom-color.fields.field.primary-color.rgb-on.title`)),1)])])),[[g]]),y(c(m(e),{modelValue:m(l).themeColorsHue,"onUpdate:modelValue":h[1]||=e=>m(l).themeColorsHue=e,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:310,delay:6*50,disabled:m(l).themeColorsHueDynamic},null,8,[`modelValue`,`disabled`]),[[g]]),y((u(),o(`div`,E,[h[4]||=i(`span`,{"bg-primary-50":``},`50`,-1),h[5]||=i(`span`,{"bg-primary-100":``},`100`,-1),h[6]||=i(`span`,{"bg-primary-200":``},`200`,-1),h[7]||=i(`span`,{"bg-primary-300":``},`300`,-1),h[8]||=i(`span`,{"bg-primary-400":``},`400`,-1),h[9]||=i(`span`,{"bg-primary-500":``},`500`,-1),y((u(),o(`div`,D,h[3]||=[i(`span`,{"bg-primary-600":``},`600`,-1),i(`span`,{"bg-primary-700":``},`700`,-1),i(`span`,{"bg-primary-800":``},`800`,-1),i(`span`,{"bg-primary-900":``},`900`,-1),i(`span`,{"bg-primary-950":``},`950`,-1)])),[[g]])])),[[g]]),y((u(),o(`div`,O,h[10]||=[i(`span`,{bg:`primary-500/5`},`500/5`,-1),i(`span`,{bg:`primary-500/10`},`500/10`,-1),i(`span`,{bg:`primary-500/20`},`500/20`,-1),i(`span`,{bg:`primary-500/30`},`500/30`,-1),i(`span`,{bg:`primary-500/40`},`500/40`,-1),i(`span`,{bg:`primary-500/50`},`500/50`,-1),i(`span`,{bg:`primary-500/60`},`500/60`,-1),i(`span`,{bg:`primary-500/70`},`500/70`,-1),i(`span`,{bg:`primary-500/80`},`500/80`,-1),i(`span`,{bg:`primary-500/90`},`500/90`,-1),i(`span`,{bg:`primary-500`},`500`,-1)])),[[g]])]),_:1},8,[`title`])),[[g]]),y((u(),a(m(n),{"mb-2":``,title:m(b)(`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:10*50,transition:`all ease-in-out duration-250`},{default:v(()=>[(u(!0),o(t,null,d(r.$tm(`settings.pages.themes.sections.section.theme-presets.presets`),({title:e,description:t,colors:n},a)=>y((u(),o(`div`,{key:a,class:`w-full flex items-center justify-between rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out`,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+a*10,delay:11*50+a*50,transition:`all ease-in-out duration-250`},[i(`div`,null,[i(`span`,A,p(r.$rt(e)),1),i(`div`,j,p(r.$rt(t)),1)]),c(x,{colors:n.map((e,t)=>({hex:m(S)[a][t],name:r.$rt(e)}))},null,8,[`colors`])],8,k)),[[g]])),128))]),_:1},8,[`title`])),[[g]]),y((u(),o(`div`,M,h[11]||=[i(`div`,{text:`60`,"i-solar:pallete-2-bold-duotone":``},null,-1)])),[[g]])],64)}}});typeof b==`function`&&b(N);var P=r(N,[[`__scopeId`,`data-v-8d079c31`]]);export{P as default}; \ No newline at end of file diff --git a/assets/consciousness-C1NFF9FB.js b/assets/consciousness-DKxM8jWu.js similarity index 99% rename from assets/consciousness-C1NFF9FB.js rename to assets/consciousness-DKxM8jWu.js index 8e7bf235d0e349cf9887d99d06e47abd60de0fda..01ea2994bc4f10a37271edec1e77b49b50a966a1 100644 --- a/assets/consciousness-C1NFF9FB.js +++ b/assets/consciousness-DKxM8jWu.js @@ -1 +1 @@ -import{Fragment as e,RadioCardManySelect_default as t,RadioCardSimple_default as ee,RouterLink as te,createBaseVNode as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createVNode as ne,defineComponent as re,isRef as o,onMounted as s,openBlock as c,renderList as ie,resolveDirective as l,storeToRefs as u,toDisplayString as d,unref as f,useConsciousnessStore as ae,useI18n as p,useProvidersStore as oe,vModelText as se,withCtx as ce,withDirectives as m}from"./index-jH8PbleY.js";import{route_block_default as h}from"./route-block-DWE87cA-.js";const le={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},g={flex:`~ col gap-4`},_={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},v={text:`neutral-400 dark:neutral-400`},y={"max-w-full":``},b={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},x={key:1},S={key:0},C={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:1,class:`flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20`},O={class:`flex flex-col`},k={class:`font-medium`},A={class:`text-sm text-red-600 dark:text-red-400`},j={key:2,class:`flex items-center gap-3 border border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},M={class:`flex flex-col`},N={class:`font-medium`},P={class:`text-sm text-amber-600 dark:text-amber-400`},ue={key:1},F={flex:`~ col gap-4`},I={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},L={text:`neutral-400 dark:neutral-500`},R={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`},z={class:`flex flex-col`},B={class:`font-medium`},V={class:`text-sm text-primary-600 dark:text-primary-400`},H={class:`mt-2`},U={class:`mb-1 block text-sm font-medium`},de=[`placeholder`],fe={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=re({__name:`consciousness`,setup(re){let h=oe(),W=ae(),{configuredChatProvidersMetadata:G}=u(h),{activeProvider:K,activeModel:q,customModelName:pe,modelSearchQuery:J,supportsModelListing:Y,providerModels:X,isLoadingActiveProviderModels:Z,activeProviderModelError:Q}=u(W),{t:$}=p();s(async()=>{await W.loadModelsForProvider(K.value)});function me(e){pe.value=e}return(re,s)=>{let u=l(`motion`);return c(),a(e,null,[n(`div`,le,[n(`div`,null,[n(`div`,g,[n(`div`,null,[n(`h2`,_,d(f($)(`settings.pages.providers.title`)),1),n(`div`,v,[n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.description`)),1)])]),n(`div`,y,[f(G).length>0?(c(),a(`fieldset`,b,[(c(!0),a(e,null,ie(f(G),e=>(c(),r(f(ee),{id:e.id,key:e.id,modelValue:f(K),"onUpdate:modelValue":s[0]||=e=>o(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))])):(c(),a(`div`,x,[ne(f(te),{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:ce(()=>s[4]||=[n(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),n(`div`,{class:`flex flex-col`},[n(`span`,{class:`font-medium`},`No Providers Configured`),n(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your LLM providers`)],-1),n(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]),_:1,__:[4]})]))])])]),f(K)&&f(Y)?(c(),a(`div`,S,[n(`div`,C,[n(`div`,null,[n(`h2`,w,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),n(`div`,T,[n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),f(Z)?(c(),a(`div`,E,[s[5]||=n(`div`,{class:`mr-2 animate-spin`},[n(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):f(Q)?(c(),a(`div`,D,[s[6]||=n(`div`,{"i-solar:close-circle-line-duotone":``,class:`text-2xl text-red-500 dark:text-red-400`},null,-1),n(`div`,O,[n(`span`,k,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`)),1),n(`span`,A,d(f(Q)),1)])])):f(X).length===0&&!f(Z)?(c(),a(`div`,j,[s[7]||=n(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),n(`div`,M,[n(`span`,N,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1),n(`span`,P,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)])])):f(X).length>0?(c(),r(f(t),{key:3,modelValue:f(q),"onUpdate:modelValue":s[1]||=e=>o(q)?q.value=e:null,"search-query":f(J),"onUpdate:searchQuery":s[2]||=e=>o(J)?J.value=e:null,items:f(X).sort((e,t)=>e.id===f(q)?-1:t.id===f(q)?1:0),searchable:!0,"search-placeholder":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:f(J)}),"search-results-text":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":me},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`])):i(``,!0)])])):f(K)&&!f(Y)?(c(),a(`div`,ue,[n(`div`,F,[n(`div`,null,[n(`h2`,I,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),n(`div`,L,[n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),n(`div`,R,[s[8]||=n(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-primary-500 dark:text-primary-400`},null,-1),n(`div`,z,[n(`span`,B,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported`)),1),n(`span`,V,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported_description`)),1)])]),n(`div`,H,[n(`label`,U,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`)),1),m(n(`input`,{"onUpdate:modelValue":s[3]||=e=>o(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:f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,de),[[se,f(q)]])])])])):i(``,!0)]),m((c(),a(`div`,fe,s[9]||=[n(`div`,{text:`60`,"i-solar:ghost-bold-duotone":``},null,-1)])),[[u]])],64)}}});typeof h==`function`&&h(W);var G=W;export{G as default}; \ No newline at end of file +import{Fragment as e,RadioCardManySelect_default as t,RadioCardSimple_default as ee,RouterLink as te,createBaseVNode as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createVNode as ne,defineComponent as re,isRef as o,onMounted as s,openBlock as c,renderList as ie,resolveDirective as l,storeToRefs as u,toDisplayString as d,unref as f,useConsciousnessStore as ae,useI18n as p,useProvidersStore as oe,vModelText as se,withCtx as ce,withDirectives as m}from"./index-C2W4XoWv.js";import{route_block_default as h}from"./route-block-DWE87cA-.js";const le={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-4`},g={flex:`~ col gap-4`},_={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-500`},v={text:`neutral-400 dark:neutral-400`},y={"max-w-full":``},b={key:0,flex:`~ row gap-4`,style:{"scrollbar-width":`none`},"min-w-0":``,"of-x-scroll":``,"scroll-smooth":``,role:`radiogroup`},x={key:1},S={key:0},C={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:1,class:`flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20`},O={class:`flex flex-col`},k={class:`font-medium`},A={class:`text-sm text-red-600 dark:text-red-400`},j={key:2,class:`flex items-center gap-3 border border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},M={class:`flex flex-col`},N={class:`font-medium`},P={class:`text-sm text-amber-600 dark:text-amber-400`},ue={key:1},F={flex:`~ col gap-4`},I={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},L={text:`neutral-400 dark:neutral-500`},R={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`},z={class:`flex flex-col`},B={class:`font-medium`},V={class:`text-sm text-primary-600 dark:text-primary-400`},H={class:`mt-2`},U={class:`mb-1 block text-sm font-medium`},de=[`placeholder`],fe={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=re({__name:`consciousness`,setup(re){let h=oe(),W=ae(),{configuredChatProvidersMetadata:G}=u(h),{activeProvider:K,activeModel:q,customModelName:pe,modelSearchQuery:J,supportsModelListing:Y,providerModels:X,isLoadingActiveProviderModels:Z,activeProviderModelError:Q}=u(W),{t:$}=p();s(async()=>{await W.loadModelsForProvider(K.value)});function me(e){pe.value=e}return(re,s)=>{let u=l(`motion`);return c(),a(e,null,[n(`div`,le,[n(`div`,null,[n(`div`,g,[n(`div`,null,[n(`h2`,_,d(f($)(`settings.pages.providers.title`)),1),n(`div`,v,[n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.description`)),1)])]),n(`div`,y,[f(G).length>0?(c(),a(`fieldset`,b,[(c(!0),a(e,null,ie(f(G),e=>(c(),r(f(ee),{id:e.id,key:e.id,modelValue:f(K),"onUpdate:modelValue":s[0]||=e=>o(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))])):(c(),a(`div`,x,[ne(f(te),{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:ce(()=>s[4]||=[n(`div`,{"i-solar:warning-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),n(`div`,{class:`flex flex-col`},[n(`span`,{class:`font-medium`},`No Providers Configured`),n(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your LLM providers`)],-1),n(`div`,{"i-solar:arrow-right-line-duotone":``,class:`ml-auto text-xl text-neutral-400 dark:text-neutral-500`},null,-1)]),_:1,__:[4]})]))])])]),f(K)&&f(Y)?(c(),a(`div`,S,[n(`div`,C,[n(`div`,null,[n(`h2`,w,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),n(`div`,T,[n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),f(Z)?(c(),a(`div`,E,[s[5]||=n(`div`,{class:`mr-2 animate-spin`},[n(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):f(Q)?(c(),a(`div`,D,[s[6]||=n(`div`,{"i-solar:close-circle-line-duotone":``,class:`text-2xl text-red-500 dark:text-red-400`},null,-1),n(`div`,O,[n(`span`,k,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`)),1),n(`span`,A,d(f(Q)),1)])])):f(X).length===0&&!f(Z)?(c(),a(`div`,j,[s[7]||=n(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),n(`div`,M,[n(`span`,N,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1),n(`span`,P,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)])])):f(X).length>0?(c(),r(f(t),{key:3,modelValue:f(q),"onUpdate:modelValue":s[1]||=e=>o(q)?q.value=e:null,"search-query":f(J),"onUpdate:searchQuery":s[2]||=e=>o(J)?J.value=e:null,items:f(X).sort((e,t)=>e.id===f(q)?-1:t.id===f(q)?1:0),searchable:!0,"search-placeholder":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:f(J)}),"search-results-text":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":me},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`])):i(``,!0)])])):f(K)&&!f(Y)?(c(),a(`div`,ue,[n(`div`,F,[n(`div`,null,[n(`h2`,I,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),n(`div`,L,[n(`span`,null,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),n(`div`,R,[s[8]||=n(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-primary-500 dark:text-primary-400`},null,-1),n(`div`,z,[n(`span`,B,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported`)),1),n(`span`,V,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.not_supported_description`)),1)])]),n(`div`,H,[n(`label`,U,d(f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name`)),1),m(n(`input`,{"onUpdate:modelValue":s[3]||=e=>o(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:f($)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder`)},null,8,de),[[se,f(q)]])])])])):i(``,!0)]),m((c(),a(`div`,fe,s[9]||=[n(`div`,{text:`60`,"i-solar:ghost-bold-duotone":``},null,-1)])),[[u]])],64)}}});typeof h==`function`&&h(W);var G=W;export{G as default}; \ No newline at end of file diff --git a/assets/deepseek-DybRLjlw.js b/assets/deepseek-C9ey36GY.js similarity index 96% rename from assets/deepseek-DybRLjlw.js rename to assets/deepseek-C9ey36GY.js index 8f947676c5473d1fd7866be4e3302f9e6be053d8..eefd1ea9f9622f123c1b85edb383364f134f905b 100644 --- a/assets/deepseek-DybRLjlw.js +++ b/assets/deepseek-C9ey36GY.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`deepseek`;var x=l({__name:`deepseek`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`deepseek`;var x=l({__name:`deepseek`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-CWmzHQKB.js b/assets/default-0mJyAaQN.js similarity index 82% rename from assets/default-CWmzHQKB.js rename to assets/default-0mJyAaQN.js index 6dbe6fc8bf8958e26d8b2f5061b26beb7b7ebe0c..ac1e508b3a09951f9b38efad3b8677d75d95b6ff 100644 --- a/assets/default-CWmzHQKB.js +++ b/assets/default-0mJyAaQN.js @@ -1 +1 @@ -import{RouterView as e,createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,unref as o}from"./index-jH8PbleY.js";import{HeaderLink_default as s}from"./HeaderLink-DiAWfIpN.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`,"mx-auto":``,"h-full":``,"max-w-screen-xl":``};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 +import{RouterView as e,createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,unref as o}from"./index-C2W4XoWv.js";import{HeaderLink_default as s}from"./HeaderLink-B1-yiGgJ.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`,"mx-auto":``,"h-full":``,"max-w-screen-xl":``};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-CDQZ5bF4.js b/assets/default-node-JnkfFX6Q.js similarity index 58% rename from assets/default-node-CDQZ5bF4.js rename to assets/default-node-JnkfFX6Q.js index d5d3087ac73691f7f980a308f5fcfadb4be17278..124f6ed6e4ac2d8f382868c1b8abdb2e1b19fdc4 100644 --- a/assets/default-node-CDQZ5bF4.js +++ b/assets/default-node-JnkfFX6Q.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-CY0qZjqC.js","assets/index-jH8PbleY.js","assets/index-BVsAPyPZ.css"])))=>i.map(i=>d[i]); -import{__toDynamicImportESM as e,__vitePreload as t}from"./index-jH8PbleY.js";async function n(){let{createRequire:n}=await t(async()=>{let{createRequire:t}=await import(`./__vite-browser-external-CY0qZjqC.js`).then(e(1));return{createRequire:t}},__vite__mapDeps([0,1,2])),{dirname:r,resolve:i}=await t(async()=>{let{dirname:t,resolve:n}=await import(`./__vite-browser-external-CY0qZjqC.js`).then(e(1));return{dirname:t,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-DLPzVXxx.js","assets/index-C2W4XoWv.js","assets/index-B0_6uY9k.css"])))=>i.map(i=>d[i]); +import{__toDynamicImportESM as e,__vitePreload as t}from"./index-C2W4XoWv.js";async function n(){let{createRequire:n}=await t(async()=>{let{createRequire:t}=await import(`./__vite-browser-external-DLPzVXxx.js`).then(e(1));return{createRequire:t}},__vite__mapDeps([0,1,2])),{dirname:r,resolve:i}=await t(async()=>{let{dirname:t,resolve:n}=await import(`./__vite-browser-external-DLPzVXxx.js`).then(e(1));return{dirname:t,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-D0IW07bA.js b/assets/delays-CHbcnvO4.js similarity index 87% rename from assets/delays-D0IW07bA.js rename to assets/delays-CHbcnvO4.js index fb421c902a1577e7e877cb11edbd44dbc332d95e..fcd0659d1d866922ecdd7edea86fd0923044d21c 100644 --- a/assets/delays-D0IW07bA.js +++ b/assets/delays-CHbcnvO4.js @@ -1 +1 @@ -import"./Basic-DNa_H8OA.js";import{Textarea_default as e}from"./Textarea-D8CbwmdL.js";import{Fragment as t,createBaseVNode as n,createElementBlock as r,createVNode as i,defineComponent as a,llmInferenceEndToken as o,openBlock as s,ref as c,renderList as l,toDisplayString as u,unref as d,useDelayMessageQueue as f}from"./index-jH8PbleY.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=c(``),b=c([]),x=c([]),S=c(!1),C=f();C.onHandlerEvent(`delay`,e=>{x.value.push(e)});function w(){S.value=!0;let e=y.value.split(``);for(let t of e)C.add(t);C.add(o),y.value=``,S.value=!1}return(a,o)=>(s(),r(`div`,p,[n(`div`,m,[i(d(e),{modelValue:y.value,"onUpdate:modelValue":o[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`]),n(`button`,h,u(S.value?`Processing...`:`Send`),1)]),n(`div`,g,[n(`div`,_,[o[1]||=n(`h3`,{"font-normal":``},` Emotion Message `,-1),(s(!0),r(t,null,l(b.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))]),n(`div`,v,[o[2]||=n(`h3`,{"font-normal":``},` Delays `,-1),(s(!0),r(t,null,l(x.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e)+`s`,1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file +import"./Basic-eHldbasx.js";import{Textarea_default as e}from"./Textarea-BvqhLeCk.js";import{Fragment as t,createBaseVNode as n,createElementBlock as r,createVNode as i,defineComponent as a,llmInferenceEndToken as o,openBlock as s,ref as c,renderList as l,toDisplayString as u,unref as d,useDelayMessageQueue as f}from"./index-C2W4XoWv.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=c(``),b=c([]),x=c([]),S=c(!1),C=f();C.onHandlerEvent(`delay`,e=>{x.value.push(e)});function w(){S.value=!0;let e=y.value.split(``);for(let t of e)C.add(t);C.add(o),y.value=``,S.value=!1}return(a,o)=>(s(),r(`div`,p,[n(`div`,m,[i(d(e),{modelValue:y.value,"onUpdate:modelValue":o[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`]),n(`button`,h,u(S.value?`Processing...`:`Send`),1)]),n(`div`,g,[n(`div`,_,[o[1]||=n(`h3`,{"font-normal":``},` Emotion Message `,-1),(s(!0),r(t,null,l(b.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))]),n(`div`,v,[o[2]||=n(`h3`,{"font-normal":``},` Delays `,-1),(s(!0),r(t,null,l(x.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e)+`s`,1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file diff --git a/assets/developer-Bru_GAJj.js b/assets/developer-B3mC2s_x.js similarity index 97% rename from assets/developer-Bru_GAJj.js rename to assets/developer-B3mC2s_x.js index f45b2505ce5ba79c7ac14241b4c3205ccca52e76..f4c752dc4affe59af11b401c7d09da85f4b5f74d 100644 --- a/assets/developer-Bru_GAJj.js +++ b/assets/developer-B3mC2s_x.js @@ -1 +1 @@ -import{Fragment as e,Transition as t,createBaseVNode as n,createCommentVNode as r,createElementBlock as i,createTextVNode as a,createVNode as o,defineComponent as s,mergeModels as c,normalizeClass as l,openBlock as u,resolveDirective as d,toDisplayString as f,unref as p,useModel as m,useSettings as h,vModelCheckbox as g,withCtx as _,withDirectives as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={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`},x=[`aria-checked`],S={key:0,text:`sm neutral-500`};var C=s({__name:`CheckBar`,props:c({text:{},iconOn:{},iconOff:{},description:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let s=m(e,`modelValue`);return(e,c)=>(u(),i(`label`,b,[v(n(`input`,{"onUpdate:modelValue":c[0]||=e=>s.value=e,"aria-checked":s.value,type:`checkbox`,hidden:``},null,8,x),[[g,s.value]]),n(`div`,null,[a(f(e.$t(e.text))+` `,1),e.description?(u(),i(`div`,S,f(e.$t(e.description)),1)):r(``,!0)]),o(t,{name:`slide-away`,mode:`out-in`},{default:_(()=>[s.value?(u(),i(`div`,{key:0,class:l(e.iconOn),transition:`all ease-in-out duration-250`},null,2)):(u(),i(`div`,{key:1,class:l(e.iconOff),transition:`all ease-in-out duration-250`},null,2))]),_:1})]))}}),w=C;const T={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 E=s({__name:`developer`,setup(t){let r=h();return(t,a)=>{let s=d(`motion`);return u(),i(e,null,[v(o(w,{modelValue:p(r).disableTransitions,"onUpdate:modelValue":a[0]||=e=>p(r).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:19*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`]),[[s]]),v(o(w,{modelValue:p(r).usePageSpecificTransitions,"onUpdate:modelValue":a[1]||=e=>p(r).usePageSpecificTransitions=e,disabled:p(r).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:20*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`,`disabled`]),[[s]]),v((u(),i(`div`,T,a[2]||=[n(`div`,{text:`60`,"i-solar:code-bold-duotone":``},null,-1)])),[[s]])],64)}}});typeof y==`function`&&y(E);var D=E;export{D as default}; \ No newline at end of file +import{Fragment as e,Transition as t,createBaseVNode as n,createCommentVNode as r,createElementBlock as i,createTextVNode as a,createVNode as o,defineComponent as s,mergeModels as c,normalizeClass as l,openBlock as u,resolveDirective as d,toDisplayString as f,unref as p,useModel as m,useSettings as h,vModelCheckbox as g,withCtx as _,withDirectives as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={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`},x=[`aria-checked`],S={key:0,text:`sm neutral-500`};var C=s({__name:`CheckBar`,props:c({text:{},iconOn:{},iconOff:{},description:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let s=m(e,`modelValue`);return(e,c)=>(u(),i(`label`,b,[v(n(`input`,{"onUpdate:modelValue":c[0]||=e=>s.value=e,"aria-checked":s.value,type:`checkbox`,hidden:``},null,8,x),[[g,s.value]]),n(`div`,null,[a(f(e.$t(e.text))+` `,1),e.description?(u(),i(`div`,S,f(e.$t(e.description)),1)):r(``,!0)]),o(t,{name:`slide-away`,mode:`out-in`},{default:_(()=>[s.value?(u(),i(`div`,{key:0,class:l(e.iconOn),transition:`all ease-in-out duration-250`},null,2)):(u(),i(`div`,{key:1,class:l(e.iconOff),transition:`all ease-in-out duration-250`},null,2))]),_:1})]))}}),w=C;const T={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 E=s({__name:`developer`,setup(t){let r=h();return(t,a)=>{let s=d(`motion`);return u(),i(e,null,[v(o(w,{modelValue:p(r).disableTransitions,"onUpdate:modelValue":a[0]||=e=>p(r).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:19*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`]),[[s]]),v(o(w,{modelValue:p(r).usePageSpecificTransitions,"onUpdate:modelValue":a[1]||=e=>p(r).usePageSpecificTransitions=e,disabled:p(r).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:20*50,transition:`all ease-in-out duration-250`},null,8,[`modelValue`,`disabled`]),[[s]]),v((u(),i(`div`,T,a[2]||=[n(`div`,{text:`60`,"i-solar:code-bold-duotone":``},null,-1)])),[[s]])],64)}}});typeof y==`function`&&y(E);var D=E;export{D as default}; \ No newline at end of file diff --git a/assets/dist-BXbmJYBn.js b/assets/dist-CM_LBh2l.js similarity index 99% rename from assets/dist-BXbmJYBn.js rename to assets/dist-CM_LBh2l.js index 1818ddf1771cf15a33be268570e0c3bcdc2d056d..ee5193b4ba80321ebe6afe5f2d30ba7e8fa66482 100644 --- a/assets/dist-BXbmJYBn.js +++ b/assets/dist-CM_LBh2l.js @@ -1,4 +1,4 @@ -import{Comment as e,Fragment as t,Teleport as n,arrow as r,camelize as i,cloneVNode as a,computePosition as o,computed as s,createBaseVNode as c,createBlock as l,createCommentVNode as u,createCoords as d,createElementBlock as f,createTextVNode as p,createVNode as m,customRef as h,defineComponent as g,effectScope as _,flip as v,floor as y,getCurrentInstance as b,getCurrentScope as x,guardReactiveProps as S,h as C,hide as w,inject as T,isRef as E,limitShift as D,markRaw as O,max as k,mergeDefaults as A,mergeProps as j,min as M,nextTick as N,normalizeProps as P,normalizeStyle as F,offset as ee,onBeforeMount as te,onBeforeUnmount as ne,onBeforeUpdate as re,onMounted as I,onScopeDispose as ie,onUnmounted as ae,onUpdated as oe,openBlock as L,provide as se,reactive as ce,readonly as le,rectToClientRect as ue,ref as R,renderList as de,renderSlot as z,resolveDynamicComponent as fe,round as pe,shallowReadonly as me,shallowRef as he,shift as ge,size as _e,toDisplayString as ve,toHandlerKey as ye,toHandlers as be,toRaw as xe,toRef as Se,toRefs as B,triggerRef as Ce,unref as V,useId as we,useSlots as Te,vModelSelect as Ee,vShow as De,watch as H,watchEffect as U,watchPostEffect as Oe,watchSyncEffect as ke,withCtx as W,withDirectives as Ae,withKeys as G,withModifiers as K}from"./index-jH8PbleY.js";function je(){return typeof window<`u`}function Me(e){return Fe(e)?(e.nodeName||``).toLowerCase():`#document`}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pe(e){var t;return(t=(Fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Fe(e){return je()?e instanceof Node||e instanceof Ne(e).Node:!1}function Ie(e){return je()?e instanceof Element||e instanceof Ne(e).Element:!1}function Le(e){return je()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function Re(e){return!je()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}function ze(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Be(e){return[`table`,`td`,`th`].includes(Me(e))}function Ve(e){return[`:popover-open`,`:modal`].some(t=>{try{return e.matches(t)}catch{return!1}})}function He(e){let t=We(),n=Ie(e)?Ke(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 Ue(e){let t=Je(e);for(;Le(t)&&!Ge(t);){if(He(t))return t;if(Ve(t))return null;t=Je(t)}return null}function We(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}function Ge(e){return[`html`,`body`,`#document`].includes(Me(e))}function Ke(e){return Ne(e).getComputedStyle(e)}function qe(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(Me(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Re(e)&&e.host||Pe(e);return Re(t)?t.host:t}function Ye(e){let t=Je(e);return Ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:Le(t)&&ze(t)?t:Ye(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=Ye(e),a=i===(r=e.ownerDocument)?.body,o=Ne(i);if(a){let e=Ze(o);return t.concat(o,o.visualViewport||[],ze(i)?i:[],e&&n?Xe(e):[])}return t.concat(i,Xe(i,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qe(e){let t=Ke(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Le(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=pe(n)!==a||pe(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $e(e){return Ie(e)?e:e.contextElement}function et(e){let t=$e(e);if(!Le(t))return d(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qe(t),o=(a?pe(n.width):n.width)/r,s=(a?pe(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const tt=d(0);function nt(e){let t=Ne(e);return!We()||!t.visualViewport?tt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function it(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$e(e),o=d(1);t&&(r?Ie(r)&&(o=et(r)):o=et(e));let s=rt(a,n,r)?nt(a):d(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){let e=Ne(a),t=r&&Ie(r)?Ne(r):r,n=e,i=Ze(n);for(;i&&r&&t!==n;){let e=et(i),t=i.getBoundingClientRect(),r=Ke(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,f*=e.y,c+=a,l+=o,n=Ne(i),i=Ze(n)}}return ue({width:u,height:f,x:c,y:l})}function at(e,t){let n=qe(e).scrollLeft;return t?t.left+n:it(Pe(e)).left+n}function ot(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:at(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function st(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Pe(r),s=t?Ve(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=d(1),u=d(0),f=Le(r);if((f||!f&&!a)&&((Me(r)!==`body`||ze(o))&&(c=qe(r)),Le(r))){let e=it(r);l=et(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=o&&!f&&!a?ot(o,c,!0):d(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:n.y*l.y-c.scrollTop*l.y+u.y+p.y}}function ct(e){return Array.from(e.getClientRects())}function lt(e){let t=Pe(e),n=qe(e),r=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+at(e),s=-n.scrollTop;return Ke(r).direction===`rtl`&&(o+=k(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function ut(e,t){let n=Ne(e),r=Pe(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=We();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function dt(e,t){let n=it(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Le(e)?et(e):d(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 ft(e,t,n){let r;if(t===`viewport`)r=ut(e,n);else if(t===`document`)r=lt(Pe(e));else if(Ie(t))r=dt(t,n);else{let n=nt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ue(r)}function pt(e,t){let n=Je(e);return n===t||!Ie(n)||Ge(n)?!1:Ke(n).position===`fixed`||pt(n,t)}function mt(e,t){let n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(e=>Ie(e)&&Me(e)!==`body`),i=null,a=Ke(e).position===`fixed`,o=a?Je(e):e;for(;Ie(o)&&!Ge(o);){let t=Ke(o),n=He(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||ze(o)&&!n&&pt(e,o);s?r=r.filter(e=>e!==o):i=t,o=Je(o)}return t.set(e,r),r}function ht(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?Ve(t)?[]:mt(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=ft(t,n,i);return e.top=k(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=k(r.left,e.left),e},ft(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gt(e){let{width:t,height:n}=Qe(e);return{width:t,height:n}}function _t(e,t,n){let r=Le(t),i=Pe(t),a=n===`fixed`,o=it(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=d(0);if(r||!r&&!a)if((Me(t)!==`body`||ze(i))&&(s=qe(t)),r){let e=it(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=at(i));let l=i&&!r&&!a?ot(i,s):d(0),u=o.left+s.scrollLeft-c.x-l.x,f=o.top+s.scrollTop-c.y-l.y;return{x:u,y:f,width:o.width,height:o.height}}function vt(e){return Ke(e).position===`static`}function yt(e,t){if(!Le(e)||Ke(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Pe(e)===n&&(n=n.ownerDocument.body),n}function bt(e,t){let n=Ne(e);if(Ve(e))return n;if(!Le(e)){let t=Je(e);for(;t&&!Ge(t);){if(Ie(t)&&!vt(t))return t;t=Je(t)}return n}let r=yt(e,t);for(;r&&Be(r)&&vt(r);)r=yt(r,t);return r&&Ge(r)&&vt(r)&&!He(r)?n:r||Ue(e)||n}const xt=async function(e){let t=this.getOffsetParent||bt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function St(e){return Ke(e).direction===`rtl`}const Ct={convertOffsetParentRelativeRectToViewportRelativeRect:st,getDocumentElement:Pe,getClippingRect:ht,getOffsetParent:bt,getElementRects:xt,getClientRects:ct,getDimensions:gt,getScale:et,isElement:Ie,isRTL:St};function wt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tt(e,t){let n=null,r,i=Pe(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=y(d),h=y(i.clientWidth-(u+f)),g=y(i.clientHeight-(d+p)),_=y(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,b={rootMargin:v,threshold:k(0,M(1,c))||1},x=!0;function S(t){let n=t[0].intersectionRatio;if(n!==c){if(!x)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!wt(l,e.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return o(!0),a}function Et(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=$e(e),u=i||a?[...l?Xe(l):[],...Xe(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Tt(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?it(e):null;c&&g();function g(){let t=it(e);h&&!wt(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 Dt=ee,Ot=ge,kt=v,At=_e,jt=w,Mt=r,Nt=D,Pt=(e,t,n)=>{let r=new Map,i={platform:Ct,...n},a={...i.platform,_c:r};return o(e,t,{...i,platform:a})};function Ft(e){return typeof e==`object`&&!!e&&`$el`in e}function It(e){if(Ft(e)){let t=e.$el;return Fe(t)&&Me(t)===`#comment`?null:t}return e}function Lt(e){return typeof e==`function`?e():V(e)}function Rt(e){return{name:`arrow`,options:e,fn(t){let n=It(Lt(e.element));return n==null?{}:Mt({element:n,padding:e.padding}).fn(t)}}}function zt(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function Bt(e,t){let n=zt(e);return Math.round(t*n)/n}function Vt(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=s(()=>{var e;return(e=Lt(n.open))??!0}),a=s(()=>Lt(n.middleware)),o=s(()=>{var e;return(e=Lt(n.placement))??`bottom`}),c=s(()=>{var e;return(e=Lt(n.strategy))??`absolute`}),l=s(()=>{var e;return(e=Lt(n.transform))??!0}),u=s(()=>It(e.value)),d=s(()=>It(t.value)),f=R(0),p=R(0),m=R(c.value),h=R(o.value),g=he({}),_=R(!1),v=s(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=Bt(d.value,f.value),n=Bt(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...zt(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),y;function b(){if(u.value==null||d.value==null)return;let e=i.value;Pt(u.value,d.value,{middleware:a.value,placement:o.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,g.value=t.middlewareData,_.value=e!==!1})}function S(){typeof y==`function`&&(y(),y=void 0)}function C(){if(S(),r===void 0){b();return}if(u.value!=null&&d.value!=null){y=r(u.value,d.value,b);return}}function w(){i.value||(_.value=!1)}return H([a,o,c,i],b,{flush:`sync`}),H([u,d],C,{flush:`sync`}),H(i,w,{flush:`sync`}),x()&&ie(S),{x:me(f),y:me(p),strategy:me(m),placement:me(h),middlewareData:me(g),isPositioned:me(_),floatingStyles:v,update:b}}function Ht(e,t){return e-t*Math.floor(e/t)}const Ut=1721426;function Wt(e,t,n,r){t=Kt(e,t);let i=t-1,a=-2;return n<=2?a=0:Gt(t)&&(a=-1),Ut-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Gt(e){return e%4==0&&(e%100!=0||e%400==0)}function Kt(e,t){return e===`BC`?1-t:t}function qt(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}const Jt={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};var Yt=class{fromJulianDay(e){let t=e,n=t-Ut,r=Math.floor(n/146097),i=Ht(n,146097),a=Math.floor(i/36524),o=Ht(i,36524),s=Math.floor(o/1461),c=Ht(o,1461),l=Math.floor(c/365),u=r*400+a*100+s*4+l+(a!==4&&l!==4?1:0),[d,f]=qt(u),p=t-Wt(d,f,1,1),m=2;t0&&t===fn())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Sn(e,t),c=yn(n,r,i,a,o,s,0);return c-Math.floor(e/1e3)*1e3}const xn=new Map;function Sn(e,t){let n=xn.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),xn.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}const Cn=864e5;function wn(e,t,n,r){let i=n===r?[n]:[n,r];return i.filter(n=>Tn(e,t,n))}function Tn(e,t,n){let r=Sn(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function En(e,t,n=`compatible`){let r=An(e);if(t===`UTC`)return vn(r);if(t===fn()&&n===`compatible`){r=jn(r,new Yt);let e=new Date,t=Kt(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=vn(r),a=bn(i-Cn,t),o=bn(i+Cn,t),s=wn(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function Dn(e,t,n=`compatible`){return new Date(En(e,t,n))}function On(e,t){let n=bn(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new vr(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function kn(e){return new mr(e.calendar,e.era,e.year,e.month,e.day)}function An(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new gr(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function jn(e,t){if(tn(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Vn(r),r}function Mn(e,t,n){if(e instanceof vr)return e.timeZone===t?e:Pn(e,t);let r=En(e,t,n);return On(r,t)}function Nn(e){let t=vn(e)-e.offset;return new Date(t)}function Pn(e,t){let n=vn(e)-e.offset;return jn(On(n,t),e.calendar)}const Fn=36e5;function In(e,t){let n=e.copy(),r=`hour`in n?Yn(n,t):0;Ln(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Rn(n),Bn(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,zn(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let e=(a=(o=n.calendar).isInverseEra)?.call(o,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ln(e,t){var n,r;(n=(r=e.calendar).isInverseEra)?.call(r,e)&&(t=-t),e.year+=t}function Rn(e){for(;e.month<1;)Ln(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ln(e,1)}function zn(e){for(;e.day<1;)e.month--,Rn(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Rn(e)}function Bn(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Vn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Bn(e)}function Hn(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function Un(e,t){return In(e,Hn(t))}function Wn(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Vn(n),n}function Gn(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),qn(n),n}function Kn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Jn(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Jn(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Jn(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Jn(e.hour,24),t}function qn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Jn(e,t){let n=e%t;return n<0&&(n+=t),n}function Yn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Kn(e)}function Xn(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=Qn(a,n,0,t.length-1,r?.round),i.era=t[a],Vn(i);break}case`year`:var a,o;(a=(o=i.calendar).isInverseEra)?.call(o,i)&&(n=-n),i.year=Qn(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=Qn(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=Qn(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Vn(i),i}function Zn(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=Qn(t,n,a,o,r?.round);break}case`minute`:i.minute=Qn(e.minute,n,0,59,r?.round);break;case`second`:i.second=Qn(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=Qn(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function Qn(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,er&&(e=n+(e-r-1));return e}function $n(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let r=In(An(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=En(r,e.timeZone)}else n=vn(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=On(n,e.timeZone);return jn(r,e.calendar)}function er(e,t){return $n(e,Hn(t))}function tr(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=An(e),o=jn(Gn(a,{hour:t}),new Yt),s=[En(o,e.timeZone,`earlier`),En(o,e.timeZone,`later`)].filter(t=>On(t,e.timeZone).day===o.day)[0],c=jn(Gn(a,{hour:i}),new Yt),l=[En(c,e.timeZone,`earlier`),En(c,e.timeZone,`later`)].filter(t=>On(t,e.timeZone).day===c.day).pop(),u=vn(e)-e.offset,d=Math.floor(u/Fn),f=u%Fn;return u=Qn(d,n,Math.floor(s/Fn),Math.floor(l/Fn),r?.round)*Fn+f,jn(On(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return Zn(e,t,n,r);case`era`:case`year`:case`month`:case`day`:{let i=Xn(An(e),t,n,r),a=En(i,e.timeZone);return jn(On(a,e.timeZone),e.calendar)}default:throw Error(`Unsupported field `+t)}}function nr(e,t,n){let r=An(e),i=Gn(Wn(r,t),t);if(i.compare(r)===0)return e;let a=En(i,e.timeZone,n);return jn(On(a,e.timeZone),e.calendar)}const rr=[`hours`,`minutes`,`seconds`],ir=[`years`,`months`,`weeks`,`days`,...rr];function ar(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function or(e){let t=jn(e,new Yt),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function sr(e){return`${or(e)}T${ar(e)}`}function cr(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`}function lr(e){return`${sr(e)}${cr(e.offset)}[${e.timeZone}]`}function ur(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function dr(e,t,n){ur(e,t),t.set(e,n)}function fr(e){let t=typeof e[0]==`object`?e.shift():new Yt,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var pr=new WeakMap,mr=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return In(this,e)}subtract(e){return Un(this,e)}set(e){return Wn(this,e)}cycle(e,t,n){return Xn(this,e,t,n)}toDate(e){return Dn(this,e)}toString(){return or(this)}compare(e){return cn(this,e)}constructor(...e){dr(this,pr,{writable:!0,value:void 0});let[t,n,r,i,a]=fr(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,Vn(this)}},hr=new WeakMap,gr=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return In(this,e)}subtract(e){return Un(this,e)}set(e){return Wn(Gn(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return Xn(this,e,t,n);default:return Zn(this,e,t,n)}}toDate(e,t){return Dn(this,e,t)}toString(){return sr(this)}compare(e){let t=cn(this,e);return t===0?ln(this,An(e)):t}constructor(...e){dr(this,hr,{writable:!0,value:void 0});let[t,n,r,i,a]=fr(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Vn(this)}},_r=new WeakMap,vr=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return $n(this,e)}subtract(e){return er(this,e)}set(e,t){return nr(this,e,t)}cycle(e,t,n){return tr(this,e,t,n)}toDate(){return Nn(this)}toString(){return lr(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Mn(e,this.timeZone).toDate().getTime()}constructor(...e){dr(this,_r,{writable:!0,value:void 0});let[t,n,r,i,a]=fr(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Vn(this)}};const yr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],br=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],xr=[1867,1911,1925,1988,2018],Sr=[`meiji`,`taisho`,`showa`,`heisei`,`reiwa`];function Cr(e){let t=yr.findIndex(([t,n,r])=>e.year=0){let[,n,r]=yr[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return Sr}getYearsInEra(e){let t=Sr.indexOf(e.era),n=yr[t],r=yr[t+1];if(r==null)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month0?[`minguo`,t]:[`before_minguo`,1-t]}var Nr=class extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Kt(t.era,t.year),[r,i]=Mr(n);return new mr(this,r,i,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Pr(e))}getEras(){return[`before_minguo`,`minguo`]}balanceDate(e){let[t,n]=Mr(jr(e));e.era=t,e.year=n}isInverseEra(e){return e.era===`before_minguo`}getDaysInMonth(e){return super.getDaysInMonth(Pr(e))}getYearsInEra(e){return e.era===`before_minguo`?9999:9999-Ar}constructor(...e){super(...e),this.identifier=`roc`}};function Pr(e){let[t,n]=qt(jr(e));return new mr(t,n,e.month,e.day)}const Fr=1948320,Ir=[0,31,62,93,124,155,186,216,246,276,306,336];var Lr=class{fromJulianDay(e){let t=e-Fr,n=1+Math.floor((33*t+3)/12053),r=365*(n-1)+Math.floor((8*n+21)/33),i=t-r,a=i<216?Math.floor(i/31):Math.floor((i-6)/30),o=i-Ir[a]+1;return new mr(this,n,a+1,o)}toJulianDay(e){let t=Fr-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=Ir[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){if(e.month<=6)return 31;if(e.month<=11)return 30;let t=Ht(25*e.year+11,33)<8;return t?30:29}getEras(){return[`AP`]}getYearsInEra(){return 9377}constructor(){this.identifier=`persian`}};const Rr=78,zr=80;var Br=class extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-Rr,r=e-Wt(t.era,t.year,1,1),i;r=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&Gt(e.year+Rr)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return[`saka`]}balanceDate(){}constructor(...e){super(...e),this.identifier=`indian`}};const Vr=1948440,Hr=1948439,Ur=1300,Wr=1600,Gr=460322;function Kr(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function qr(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Kr(t,r,1,1)))/29.5)+1),a=n-Kr(t,r,i,1)+1;return new mr(e,r,i,a)}function Jr(e){return(14+11*e)%30<11}var Yr=class{fromJulianDay(e){return qr(this,Vr,e)}toJulianDay(e){return Kr(Vr,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Jr(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Jr(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return[`AH`]}constructor(){this.identifier=`islamic-civil`}},Xr=class extends Yr{fromJulianDay(e){return qr(this,Hr,e)}toJulianDay(e){return Kr(Hr,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier=`islamic-tbla`}};const Zr=`qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=`;let Qr,$r;function ei(e){return Gr+$r[e-Ur]}function ti(e,t){let n=e-Ur,r=1<<11-(t-1);return(Qr[n]&r)===0?29:30}function ni(e,t){let n=ei(e);for(let r=1;rr)return super.fromJulianDay(e);{let e=Ur-1,n=1,r=1;for(;r>0;){e++,r=t-ei(e)+1;let i=ri(e);if(r===i){n=12;break}else if(rt;)r-=t,n++,t=ti(e,n);break}}return new mr(this,e,n,t-ni(e,n)+1)}}toJulianDay(e){return e.yearWr?super.toJulianDay(e):Vr+ni(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.yearWr?super.getDaysInMonth(e):ti(e.year,e.month)}getDaysInYear(e){return e.yearWr?super.getDaysInYear(e):ri(e.year)}constructor(){if(super(),this.identifier=`islamic-umalqura`,Qr||=new Uint16Array(Uint8Array.from(atob(Zr),e=>e.charCodeAt(0)).buffer),!$r){$r=new Uint32Array(Wr-Ur+1);let e=0;for(let t=Ur;t<=Wr;t++){$r[t-Ur]=e;for(let n=1;n<=12;n++)e+=ti(t,n)}}}};const ai=347997,oi=1080,si=24*oi,ci=29,li=12*oi+793,ui=ci*si+li;function di(e){return Ht(e*7+1,19)<7}function fi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ht(3*(r+1),7)<3&&(r+=1),r}function pi(e){let t=fi(e-1),n=fi(e),r=fi(e+1);return r-n===356?2:n-t===382?1:0}function mi(e){return fi(e)+pi(e)}function hi(e){return mi(e+1)-mi(e)}function gi(e){let t=hi(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function _i(e,t){if(t>=6&&!di(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=gi(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?di(e)?30:0:30}var vi=class{fromJulianDay(e){let t=e-ai,n=t*si/ui,r=Math.floor((19*n+234)/235)+1,i=mi(r),a=Math.floor(t-i);for(;a<1;)r--,i=mi(r),a=Math.floor(t-i);let o=1,s=0;for(;s6?e.month--:!di(t.year)&&di(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier=`hebrew`}};const yi=1723856,bi=1824665,xi=5500;function Si(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ci(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Si(e,n,1,1))/30),i=t+1-Si(e,n,r,1);return[n,r,i]}function wi(e){return Math.floor(e%4/3)}function Ti(e,t){return t%13==0?wi(e)+5:30}var Ei=class{fromJulianDay(e){let[t,n,r]=Ci(yi,e),i=`AM`;return t<=0&&(i=`AA`,t+=xi),new mr(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`AA`&&(t-=xi),Si(yi,t,e.month,e.day)}getDaysInMonth(e){return Ti(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+wi(e.year)}getYearsInEra(e){return e.era===`AA`?9999:9991}getEras(){return[`AA`,`AM`]}constructor(){this.identifier=`ethiopic`}},Di=class extends Ei{fromJulianDay(e){let[t,n,r]=Ci(yi,e);return t+=xi,new mr(this,`AA`,t,n,r)}getEras(){return[`AA`]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier=`ethioaa`}},Oi=class extends Ei{fromJulianDay(e){let[t,n,r]=Ci(bi,e),i=`CE`;return t<=0&&(i=`BCE`,t=1-t),new mr(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Si(bi,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Ti(t,e.month)}isInverseEra(e){return e.era===`BCE`}balanceDate(e){e.year<=0&&(e.era=e.era===`BCE`?`CE`:`BCE`,e.year=1-e.year)}getEras(){return[`BCE`,`CE`]}getYearsInEra(e){return e.era===`BCE`?9999:9715}constructor(...e){super(...e),this.identifier=`coptic`}};function ki(e){switch(e){case`buddhist`:return new Or;case`ethiopic`:return new Ei;case`ethioaa`:return new Di;case`coptic`:return new Oi;case`hebrew`:return new vi;case`indian`:return new Br;case`islamic-civil`:return new Yr;case`islamic-tbla`:return new Xr;case`islamic-umalqura`:return new ii;case`japanese`:return new Tr;case`persian`:return new Lr;case`roc`:return new Nr;case`gregory`:default:return new Yt}}let Ai=new Map;var ji=class{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Li()&&(this.resolvedHourCycle||=Ri(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}constructor(e,t={}){this.formatter=Ni(e,t),this.options=t}};const Mi={true:{ja:`h11`},false:{}};function Ni(e,t={}){if(typeof t.hour12==`boolean`&&Fi()){t={...t};let n=Mi[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}let zi=new Map,Bi=!1;try{Bi=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}const Hi={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}};var Ui=class{format(e){let t=``;if(t=!Bi&&this.options.signDisplay!=null?Gi(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!Vi){var n;let{unit:e,unitDisplay:r=`short`,locale:i}=this.resolvedOptions();if(!e)return t;let a=(n=Hi[e])?.[r];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Bi&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Vi&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=Wi(e,t),this.options=t}};function Wi(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!Vi){var r;let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!(r=Hi[e])?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`);let a=t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r);return a}else return e.format(n)}}const Ki=RegExp(`^.*\\(.*\\).*$`),qi=[`latn`,`arab`,`hanidec`,`deva`,`beng`];var Ji=class{parse(e){return Xi(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Xi(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Xi(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}};const Yi=new Map;function Xi(e,t,n){let r=Zi(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of qi)if(i!==r.options.numberingSystem){let r=Zi(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function Zi(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if(this.options.style===`percent`){var r,i;let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min(((r=this.options.minimumFractionDigits)??0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)??0)+2,20)};return new Ji(this.locale,e).parse(new Ui(this.locale,e).format(n))}return this.options.currencySign===`accounting`&&Ki.test(e)&&(n=-1*n),n}sanitize(e){return e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=e.replace(`,`,this.symbols.decimal),e=e.replace(`،`,this.symbols.decimal)),this.symbols.group&&(e=na(e,`.`,this.symbols.group))),this.options.locale===`fr-FR`&&(e=na(e,`.`,` `)),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=na(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}constructor(e,t={}){this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=ta(e,this.formatter,this.options,t);var n,r;this.options.style===`percent`&&(((n=this.options.minimumFractionDigits)??0)>18||((r=this.options.maximumFractionDigits)??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}};const $i=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),ea=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ta(e,t,n,r){var i,a,o,s;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`}),l=c.formatToParts(-10000.111),u=c.formatToParts(10000.111),d=ea.map(e=>c.formatToParts(e));var f;let p=(f=(i=l.find(e=>e.type===`minusSign`))?.value)??`-`,m=(a=u.find(e=>e.type===`plusSign`))?.value;!m&&(r?.signDisplay===`exceptZero`||r?.signDisplay===`always`)&&(m=`+`);let h=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),g=(o=h.find(e=>e.type===`decimal`))?.value,_=(s=l.find(e=>e.type===`group`))?.value,v=l.filter(e=>!$i.has(e.type)).map(e=>ra(e.value)),y=d.flatMap(e=>e.filter(e=>!$i.has(e.type)).map(e=>ra(e.value))),b=[...new Set([...v,...y])].sort((e,t)=>t.length-e.length),x=b.length===0?RegExp(`[\\p{White_Space}]`,`gu`):RegExp(`${b.join(`|`)}|[\\p{White_Space}]`,`gu`),S=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),C=new Map(S.map((e,t)=>[e,t])),w=RegExp(`[${S.join(``)}]`,`g`),T=e=>String(C.get(e));return{minusSign:p,plusSign:m,decimal:g,group:_,literals:x,numeral:w,index:T}}function na(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ra(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ia(e,t){let n=[];for(let r=0;r0}function fa(e,t){return e.compare(t)<=0}function pa(e,t){return e.compare(t)>=0}function ma(e,t,n){return pa(e,t)&&fa(e,n)}function ha(e,t,n){return da(e,t)&&ua(e,n)}function ga(e,t,n){let r=an(e,n);return t>r?e.subtract({days:r+7-t}):t===r?e:e.subtract({days:r-t})}function _a(e,t,n){let r=an(e,n),i=t===0?6:t-1;return r===i?e:r>i?e.add({days:7-r+i}):e.add({days:i-r})}function va(e,t,n,r){if(n===void 0&&r===void 0)return!0;let i=e.add({days:1});if(r!=null&&r(i)||n!=null&&n(i))return!1;let a=t;for(;i.compare(a)<0;)if(i=i.add({days:1}),r!=null&&r(i)||n!=null&&n(i))return!1;return!0}function ya(e,t){let n=[],r=e.add({days:1}),i=t;for(;r.compare(i)<0;)n.push(r),r=r.add({days:1});return n}function ba(e){let{dateObj:t,weekStartsOn:n,fixedWeeks:r,locale:i}=e,a=la(t),o=Array.from({length:a},(e,n)=>t.set({day:n+1})),s=pn(t),c=mn(t),l=ga(s,n,i),u=_a(c,n,i),d=ya(l.subtract({days:1}),s),f=ya(c,u.add({days:1})),p=d.length+o.length+f.length;if(r&&p<42){let e=42-p,n=f[f.length-1];n||=mn(t);let r=Array.from({length:e},(e,t)=>{let r=t+1;return n.add({days:r})});f.push(...r)}let m=d.concat(o,f),h=ia(m,7);return{value:t,cells:m,rows:h}}function xa(e){let{numberOfMonths:t,dateObj:n,...r}=e,i=[];if(!t||t===1)return i.push(ba({...r,dateObj:n})),i;i.push(ba({...r,dateObj:n}));for(let e=1;e{let n=T(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}\``}`)},e=>(se(r,e),e)]}function Sa(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 Ca(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function wa(e,t){let n=e,r=t.toString(),i=r.indexOf(`.`),a=i>=0?r.length-i:0;if(a>0){let e=10**a;n=Math.round(n*e)/e}return n}function Ta(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(Number.isNaN(t)?0:t))%r,a=wa(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return Number.isNaN(t)?!Number.isNaN(n)&&a>n&&(a=Math.floor(wa(n/r,r))*r):an&&(a=t+Math.floor(wa((n-t)/r,r))*r),a=wa(a,r),a}function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Da=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const Oa=Ea(Da);function ka(e,t){if(e.length!==t.length)return!1;for(let n=0;nOa(e,t)),i=e.findIndex(e=>Oa(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}const ja=typeof document<`u`;function Ma(e){return e==null}function Na(e){let{defaultValue:t,defaultPlaceholder:n,granularity:r=`day`,locale:i=`en`}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(n)return n.copy();let a=new Date,o=a.getFullYear(),s=a.getMonth()+1,c=a.getDate(),l=[`hour`,`minute`,`second`],u=new ji(i),d=ki(u.resolvedOptions().calendar);return l.includes(r??`day`)?jn(new gr(o,s,c,0,0,0),d):jn(new mr(o,s,c),d)}const Pa=`ach.af.am.an.ar.ast.az.be.bg.bn.br.bs.ca.cak.ckb.cs.cy.da.de.dsb.el.en.eo.es.et.eu.fa.ff.fi.fr.fy.ga.gd.gl.he.hr.hsb.hu.ia.id.it.ja.ka.kk.kn.ko.lb.lo.lt.lv.meh.ml.ms.nl.nn.no.oc.pl.pt.rm.ro.ru.sc.scn.sk.sl.sr.sv.szl.tg.th.tr.uk.zh-CN.zh-TW`.split(`.`),Fa=[`year`,`month`,`day`],Ia={ach:{year:`mwaka`,month:`dwe`,day:`nino`},af:{year:`jjjj`,month:`mm`,day:`dd`},am:{year:`ዓዓዓዓ`,month:`ሚሜ`,day:`ቀቀ`},an:{year:`aaaa`,month:`mm`,day:`dd`},ar:{year:`سنة`,month:`شهر`,day:`يوم`},ast:{year:`aaaa`,month:`mm`,day:`dd`},az:{year:`iiii`,month:`aa`,day:`gg`},be:{year:`гггг`,month:`мм`,day:`дд`},bg:{year:`гггг`,month:`мм`,day:`дд`},bn:{year:`yyyy`,month:`মিমি`,day:`dd`},br:{year:`bbbb`,month:`mm`,day:`dd`},bs:{year:`gggg`,month:`mm`,day:`dd`},ca:{year:`aaaa`,month:`mm`,day:`dd`},cak:{year:`jjjj`,month:`ii`,day:`q'q'`},ckb:{year:`ساڵ`,month:`مانگ`,day:`ڕۆژ`},cs:{year:`rrrr`,month:`mm`,day:`dd`},cy:{year:`bbbb`,month:`mm`,day:`dd`},da:{year:`åååå`,month:`mm`,day:`dd`},de:{year:`jjjj`,month:`mm`,day:`tt`},dsb:{year:`llll`,month:`mm`,day:`źź`},el:{year:`εεεε`,month:`μμ`,day:`ηη`},en:{year:`yyyy`,month:`mm`,day:`dd`},eo:{year:`jjjj`,month:`mm`,day:`tt`},es:{year:`aaaa`,month:`mm`,day:`dd`},et:{year:`aaaa`,month:`kk`,day:`pp`},eu:{year:`uuuu`,month:`hh`,day:`ee`},fa:{year:`سال`,month:`ماه`,day:`روز`},ff:{year:`hhhh`,month:`ll`,day:`ññ`},fi:{year:`vvvv`,month:`kk`,day:`pp`},fr:{year:`aaaa`,month:`mm`,day:`jj`},fy:{year:`jjjj`,month:`mm`,day:`dd`},ga:{year:`bbbb`,month:`mm`,day:`ll`},gd:{year:`bbbb`,month:`mm`,day:`ll`},gl:{year:`aaaa`,month:`mm`,day:`dd`},he:{year:`שנה`,month:`חודש`,day:`יום`},hr:{year:`gggg`,month:`mm`,day:`dd`},hsb:{year:`llll`,month:`mm`,day:`dd`},hu:{year:`éééé`,month:`hh`,day:`nn`},ia:{year:`aaaa`,month:`mm`,day:`dd`},id:{year:`tttt`,month:`bb`,day:`hh`},it:{year:`aaaa`,month:`mm`,day:`gg`},ja:{year:` 年 `,month:`月`,day:`日`},ka:{year:`წწწწ`,month:`თთ`,day:`რრ`},kk:{year:`жжжж`,month:`аа`,day:`кк`},kn:{year:`ವವವವ`,month:`ಮಿಮೀ`,day:`ದಿದಿ`},ko:{year:`연도`,month:`월`,day:`일`},lb:{year:`jjjj`,month:`mm`,day:`dd`},lo:{year:`ປປປປ`,month:`ດດ`,day:`ວວ`},lt:{year:`mmmm`,month:`mm`,day:`dd`},lv:{year:`gggg`,month:`mm`,day:`dd`},meh:{year:`aaaa`,month:`mm`,day:`dd`},ml:{year:`വർഷം`,month:`മാസം`,day:`തീയതി`},ms:{year:`tttt`,month:`mm`,day:`hh`},nl:{year:`jjjj`,month:`mm`,day:`dd`},nn:{year:`åååå`,month:`mm`,day:`dd`},no:{year:`åååå`,month:`mm`,day:`dd`},oc:{year:`aaaa`,month:`mm`,day:`jj`},pl:{year:`rrrr`,month:`mm`,day:`dd`},pt:{year:`aaaa`,month:`mm`,day:`dd`},rm:{year:`oooo`,month:`mm`,day:`dd`},ro:{year:`aaaa`,month:`ll`,day:`zz`},ru:{year:`гггг`,month:`мм`,day:`дд`},sc:{year:`aaaa`,month:`mm`,day:`dd`},scn:{year:`aaaa`,month:`mm`,day:`jj`},sk:{year:`rrrr`,month:`mm`,day:`dd`},sl:{year:`llll`,month:`mm`,day:`dd`},sr:{year:`гггг`,month:`мм`,day:`дд`},sv:{year:`åååå`,month:`mm`,day:`dd`},szl:{year:`rrrr`,month:`mm`,day:`dd`},tg:{year:`сссс`,month:`мм`,day:`рр`},th:{year:`ปปปป`,month:`ดด`,day:`วว`},tr:{year:`yyyy`,month:`aa`,day:`gg`},uk:{year:`рррр`,month:`мм`,day:`дд`},"zh-CN":{year:`年`,month:`月`,day:`日`},"zh-TW":{year:`年`,month:`月`,day:`日`}};function La(e){if(za(e))return Ia[e];{let t=Ua(e);return za(t)?Ia[t]:Ia.en}}function Ra(e,t,n){return Ba(e)?La(n)[e]:Ha(e)?t:Va(e)?`––`:``}function za(e){return Pa.includes(e)}function Ba(e){return Fa.includes(e)}function Va(e){return e===`hour`||e===`minute`||e===`second`}function Ha(e){return e===`era`||e===`dayPeriod`}function Ua(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}const Wa=[`day`,`month`,`year`],Ga=[`hour`,`minute`,`second`,`dayPeriod`],Ka=[...Wa,...Ga];function qa(e){return Wa.includes(e)}function Ja(e){return Ka.includes(e)}function Ya(e,t){let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`,hourCycle:t===24?`h24`:void 0,hour12:t===24?!1:void 0};return e===`day`&&(delete n.second,delete n.hour,delete n.minute,delete n.timeZoneName),e===`hour`&&(delete n.minute,delete n.second),e===`minute`&&delete n.second,n}function Xa(e){let t=e.querySelector(`[data-selected]`);if(t)return t.focus();let n=e.querySelector(`[data-today]`);if(n)return n.focus();let r=e.querySelector(`[data-radix-vue-calendar-day]`);if(r)return r.focus()}function Za(e,t){var n;let r=he();return U(()=>{r.value=e()},{...t,flush:(n=void 0,`sync`)}),le(r)}function Qa(e,t){let n,r,i,a=R(!0),o=()=>{a.value=!0,i()};H(e,o,{flush:`sync`});let s=typeof t==`function`?t:t.get,c=typeof t==`function`?void 0:t.set,l=h((e,t)=>(r=e,i=t,{get(){return a.value&&(n=s(),a.value=!1),r(),n},set(e){c?.(e)}}));return Object.isExtensible(l)&&(l.trigger=o),l}function $a(e){return x()?(ie(e),!0):!1}function eo(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return $a(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t)))}}function to(e){let t=!1,n,r=_(!0);return(...i)=>(t||(n=r.run(()=>e(...i)),t=!0),n)}function no(e){let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,n||(r=_(!0),n=r.run(()=>e(...a))),$a(i),n)}function ro(e){return typeof e==`function`?e():V(e)}function io(e){if(!E(e))return ce(e);let t=new Proxy({},{get(t,n,r){return V(Reflect.get(e.value,n,r))},set(t,n,r){return E(e.value[n])&&!E(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 ce(t)}function ao(e){return io(s(e))}const oo=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const so=e=>typeof e<`u`,co=e=>e!=null,lo=Object.prototype.toString,uo=e=>lo.call(e)===`[object Object]`,fo=()=>{},po=mo();function mo(){var e,t;return oo&&(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 ho(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 go(e,t={}){let n,r,i=fo,a=e=>{clearTimeout(e),i(),i=fo};return o=>{let s=ro(e),c=ro(t.maxWait);return n&&a(n),s<=0||c!==void 0&&c<=0?(r&&(a(r),r=null),Promise.resolve(o())):new Promise((e,l)=>{i=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},c)),n=setTimeout(()=>{r&&a(r),r=null,e(o())},s)})}}function _o(e){return b()}function vo(e,t=1e4){return h((n,r)=>{let i=ro(e),a,o=()=>setTimeout(()=>{i=ro(e),r()},ro(t));return $a(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function yo(e,t=200,n={}){return ho(go(t,n),e)}function bo(e,t){_o()&&ne(e,t)}function xo(e,t=!0,n){_o()?I(e,n):t?e():N(e)}function So(e,t,n={}){let{immediate:r=!0}=n,i=R(!1),a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function c(...n){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...n)},ro(t))}return r&&(i.value=!0,oo&&c()),$a(s),{isPending:le(i),start:c,stop:s}}function Co(e=1e3,t={}){let{controls:n=!1,callback:r}=t,i=So(r??fo,e,t),a=s(()=>!i.isPending.value);return n?{ready:a,...i}:a}function wo(e,t,n){let r=H(e,(...e)=>(N(()=>r()),t(...e)),n);return r}function To(e){var t;let n=ro(e);return(t=n?.$el)??n}const Eo=oo?window:void 0;function Do(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=Eo):[t,n,r,i]=e,!t)return fo;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=H(()=>[To(t),ro(i)],([e,t])=>{if(o(),!e)return;let i=uo(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>s(e,t,n,i))))},{immediate:!0,flush:`post`}),l=()=>{c(),o()};return $a(l),l}function Oo(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ko(...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=Eo,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Oo(t);return Do(i,a,e=>{e.repeat&&ro(s)||c(e)&&n(e)},o)}function Ao(){let e=R(!1),t=b();return t&&I(()=>{e.value=!0},t),e}function jo(e){let t=Ao();return s(()=>(t.value,!!e()))}function Mo(e,t,n={}){let{window:r=Eo,...i}=n,a,o=jo(()=>r&&`MutationObserver`in r),c=()=>{a&&(a.disconnect(),a=void 0)},l=s(()=>{let t=ro(e),n=(Array.isArray(t)?t:[t]).map(To).filter(co);return new Set(n)}),u=H(()=>l.value,e=>{c(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),d=()=>a?.takeRecords(),f=()=>{c(),u()};return $a(f),{isSupported:o,stop:f,takeRecords:d}}function No(e={}){var t;let{window:n=Eo,deep:r=!0,triggerOnRemoval:i=!1}=e,a=(t=e.document)??n?.document,o=()=>{var e;let t=a?.activeElement;if(r)for(;t!=null&&t.shadowRoot;)t=(e=t?.shadowRoot)?.activeElement;return t},s=R(),c=()=>{s.value=o()};return n&&(Do(n,`blur`,e=>{e.relatedTarget===null&&c()},!0),Do(n,`focus`,c,!0)),i&&Mo(a,e=>{e.filter(e=>e.removedNodes.length).map(e=>Array.from(e.removedNodes)).flat().forEach(e=>{e===s.value&&c()})},{childList:!0,subtree:!0}),c(),s}function Po(e,t={}){let{immediate:n=!0,fpsLimit:r=void 0,window:i=Eo}=t,a=R(!1),o=r?1e3/r:null,s=0,c=null;function l(t){if(!a.value||!i)return;s||=t;let n=t-s;if(o&&nnull,()=>t.proxy.$el);return oe(n.trigger),I(n.trigger),n}function Lo(e,t,n={}){let{window:r=Eo,...i}=n,a,o=jo(()=>r&&`ResizeObserver`in r),c=()=>{a&&(a.disconnect(),a=void 0)},l=s(()=>Array.isArray(e)?e.map(e=>To(e)):[To(e)]),u=H(l,e=>{if(c(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),d=()=>{c(),u()};return $a(d),{isSupported:o,stop:d}}function Ro(e,t={}){let n=No(t),r=s(()=>To(e));return{focused:s(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function zo(e=Io()){let t=he(),n=()=>{let n=To(e);n&&(t.value=n.parentElement)};return xo(n),H(()=>ro(e),n),t}function J(e,t,n,r={}){var i,a,o;let{clone:c=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:f,shouldEmit:p}=r,m=b(),h=n||m?.emit||(i=m?.$emit)?.bind(m)||(o=(a=m?.proxy)?.$emit)?.bind(m?.proxy),g=u;t||=`modelValue`,g||=`update:${t.toString()}`;let _=e=>c?typeof c==`function`?c(e):Fo(e):e,v=()=>so(e[t])?_(e[t]):f,y=e=>{p?p(e)&&h(g,e):h(g,e)};if(l){let n=v(),r=R(n),i=!1;return H(()=>e[t],e=>{i||(i=!0,r.value=_(e),N(()=>i=!1))}),H(r,n=>{!i&&(n!==e[t]||d)&&y(n)},{deep:d}),r}else return s({get(){return v()},set(e){y(e)}})}function Bo(e){return e?e.flatMap(e=>e.type===t?Bo(e.children):[e]):[]}function Y(){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}const Vo=[`INPUT`,`TEXTAREA`];function Ho(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Vo.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-radix-vue-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;return v||_?b=Uo(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function Uo(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];return s?s.hasAttribute(`disabled`)&&s.getAttribute(`disabled`)!==`false`?Uo(e,s,n,r):s:null}function Wo(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 Go(e,t,n=`.`,r){if(!Wo(t))return Go(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Wo(a)&&Wo(i[t])?i[t]=Go(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Ko(e){return(...t)=>t.reduce((t,n)=>Go(t,n,``,e),{})}const qo=Ko(),[Jo,Yo]=q(`ConfigProvider`),Xo=g({inheritAttrs:!1,__name:`ConfigProvider`,props:{dir:{default:`ltr`},scrollBody:{type:[Boolean,Object],default:!0},nonce:{default:void 0},useId:{type:Function,default:void 0}},setup(e){let t=e,{dir:n,scrollBody:r,nonce:i}=B(t);return Yo({dir:n,scrollBody:r,nonce:i,useId:t.useId}),(e,t)=>z(e.$slots,`default`)}});let Zo=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Qo=(e=21)=>{let t=``,n=e;for(;n--;)t+=Zo[Math.random()*64|0];return t};const $o=no(()=>{let e=R(new Map),t=R(),n=s(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=Jo({scrollBody:R(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.body.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,po&&i?.(),t.value=void 0};return H(n,(e,n)=>{var o;if(!oo)return;if(!e){n&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=(o=r.scrollBody)!=null&&o.value?typeof r.scrollBody.value==`object`?qo({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.body.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),po&&(i=Do(document,`touchmove`,e=>ns(e),{passive:!1})),N(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})},{immediate:!0,flush:`sync`}),e});function es(e){let t=Qo(6),n=$o();n.value.set(t,e??!1);let r=s({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return bo(()=>{n.value.delete(t)}),r}function ts(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)}const rs=`data-radix-vue-collection-item`;function os(e,t=rs){let n=e??Symbol();return{createCollection:e=>{let r=R([]);function i(){let n=To(e);return n?r.value=Array.from(n.querySelectorAll(`[${t}]:not([data-disabled])`)):r.value=[]}return re(()=>{r.value=[]}),I(i),oe(i),H(()=>e?.value,i,{immediate:!0}),se(n,r),r},injectCollection:()=>T(n,R([]))}}function ss(e){let t=R(e);function n(){return t.value}function r(e){t.value=e}function i(e,n){return new ji(t.value,n).format(e)}function a(e,t=!0){return ca(e)&&t?i(aa(e),{dateStyle:`long`,timeStyle:`long`}):i(aa(e),{dateStyle:`long`})}function o(e,n={}){return new ji(t.value,{month:`long`,year:`numeric`,...n}).format(e)}function s(e,n={}){return new ji(t.value,{month:`long`,...n}).format(e)}function c(){let e=sn(fn());return[1,2,3,4,5,6,7,8,9,10,11,12].map(t=>({label:s(aa(e.set({month:t}))),value:t}))}function l(e,n={}){return new ji(t.value,{year:`numeric`,...n}).format(e)}function u(e,n){return sa(e)?new ji(t.value,{...n,timeZone:e.timeZone}).formatToParts(aa(e)):new ji(t.value,n).formatToParts(aa(e))}function d(e,n=`narrow`){return new ji(t.value,{weekday:n}).format(e)}function f(e){var n;return(n=new ji(t.value,{hour:`numeric`,minute:`numeric`}).formatToParts(e).find(e=>e.type===`dayPeriod`))?.value===`PM`?`PM`:`AM`}let p={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`};function m(e,t,n={}){let r={...p,...n},i=u(e,r).find(e=>e.type===t);return i?i.value:``}return{setLocale:r,getLocale:n,fullMonth:s,fullYear:l,fullMonthAndYear:o,toParts:u,custom:i,part:m,dayPeriod:f,selectedDate:a,dayOfWeek:d,getMonths:c}}function cs(e){let t=Jo({dir:R(`ltr`)});return s(()=>{var n;return e?.value||(n=t.dir)?.value||`ltr`})}function ls(e){let t=b(),n=t?.type.emits,r={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[ye(i(t))]=(...n)=>e(t,...n)}),r}let us=0;function ds(){U(e=>{if(!oo)return;let t=document.querySelectorAll(`[data-radix-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??fs()),document.body.insertAdjacentElement(`beforeend`,t[1]??fs()),us++,e(()=>{us===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),us--})})}function fs(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function ps(e){return s(()=>{var t;return ro(e)?!!((t=To(e))!=null&&t.closest(`form`)):!0})}function ms(e){let t=b(),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=Se(e);return s(()=>{let e={},a=t?.vnode.props??{};return Object.keys(a).forEach(t=>{e[i(t)]=a[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function hs(e,t){let n=ms(e),r=t?ls(t):{};return s(()=>({...n.value,...r}))}function X(){let e=b(),t=R(),n=s(()=>{var e,n;return[`#text`,`#comment`].includes((e=t.value)?.$el.nodeName)?(n=t.value)?.$el.nextElementSibling:To(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 gs(e,t){let n=vo(!1,300),r=R(null),i=eo();function a(){r.value=null,n.value=!1}function o(e,t){let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=_s(a,i.getBoundingClientRect()),s=vs(a,o),c=ys(t.getBoundingClientRect()),l=xs([...s,...c]);r.value=l,n.value=!0}return U(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(()=>{var n,a;(n=e.value)==null||n.removeEventListener(`pointerleave`,r),(a=t.value)==null||a.removeEventListener(`pointerleave`,i)})}}),U(n=>{var o;if(r.value){let s=n=>{var o,s;if(!r.value)return;let c=n.target,l={x:n.clientX,y:n.clientY},u=(o=e.value)?.contains(c)||(s=t.value)?.contains(c),d=!bs(l,r.value),f=!!c.closest(`[data-grace-area-trigger]`);u?a():(d||f)&&(a(),i.trigger())};(o=e.value)==null||o.ownerDocument.addEventListener(`pointermove`,s),n(()=>{var t;return(t=e.value)?.ownerDocument.removeEventListener(`pointermove`,s)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function _s(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 vs(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 ys(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 bs(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&&(i=!i)}return i}function xs(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),Ss(t)}function Ss(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 Cs=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ws=new WeakMap,Ts=new WeakMap,Es={},Ds=0,Os=function(e){return e&&(e.host||Os(e.parentNode))},ks=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Os(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})},As=function(e,t,n,r){var i=ks(t,Array.isArray(e)?e:[e]);Es[n]||(Es[n]=new WeakMap);var a=Es[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=(ws.get(e)||0)+1,l=(a.get(e)||0)+1;ws.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ts.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(),Ds++,function(){o.forEach(function(e){var t=ws.get(e)-1,i=a.get(e)-1;ws.set(e,t),a.set(e,i),t||(Ts.has(e)||e.removeAttribute(r),Ts.delete(e)),i||e.removeAttribute(n)}),Ds--,Ds||(ws=new WeakMap,ws=new WeakMap,Ts=new WeakMap,Es={})}},js=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=Cs(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),As(r,i,n,`aria-hidden`)):function(){return null}};function Ms(e){let t;H(()=>To(e),e=>{e?t=js(e):t&&t()}),ae(()=>{t&&t()})}let Ns=0;function Z(e,t=`radix`){if(e)return e;let n=Jo({useId:void 0});return we?`${t}-${we()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Ns}`}function Ps(e,t){let n=R(),r=(r,i)=>{if(t.multiple&&Array.isArray(e.value))if(t.selectionBehavior===`replace`)e.value=[r],n.value=r;else{let t=e.value.findIndex(e=>i(e));t===-1?e.value.push(r):e.value.splice(t,1)}else t.selectionBehavior===`replace`?e.value={...r}:!Array.isArray(e.value)&&i(e.value)?e.value=void 0:e.value={...r};return e.value};function i(r,i,a,o){var s;if(!(n!=null&&n.value)||!t.multiple||!Array.isArray(e.value))return;let c=(s=a().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===i))?.value;if(!c)return;let l=null;switch(r){case`prev`:case`next`:l=Aa(o,n.value,c);break;case`first`:l=Aa(o,n.value,o?.[0]);break;case`last`:l=Aa(o,n.value,o?.[o.length-1]);break}e.value=l}return{firstValue:n,onSelectItem:r,handleMultipleReplace:i}}function Fs(e){let t=R(),n=s(()=>{var e;return(e=t.value)?.width??0}),r=s(()=>{var e;return(e=t.value)?.height??0});return I(()=>{let n=To(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 Is(e,t){let n=R(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}const Ls=`data-item-text`;function Rs(e){let t=vo(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(!(e!=null&&e.value)&&!r)return;t.value+=n;let i=e?.value??r,a=Y(),o=i.map(e=>{var t;return{ref:e,textValue:(t=(e.querySelector(`[${Ls}]`)??e).textContent)?.trim()??``}}),s=o.find(e=>e.ref===a),c=o.map(e=>e.textValue),l=Bs(c,t.value,s?.textValue),u=o.find(e=>e.textValue===l);return u&&u.ref.focus(),u?.ref},resetTypeahead:()=>{t.value=``}}}function zs(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Bs(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=zs(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Vs(){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`}}const Hs=g({name:`PrimitiveSlot`,inheritAttrs:!1,setup(t,{attrs:n,slots:r}){return()=>{var t,i;if(!r.default)return null;let o=Bo(r.default()),s=o.findIndex(t=>t.type!==e);if(s===-1)return o;let c=o[s];(t=c.props)==null||delete t.ref;let l=c.props?j(n,c.props):n;n.class&&(i=c.props)!=null&&i.class&&delete c.props.class;let u=a(c,l);for(let e in l)e.startsWith(`on`)&&(u.props||={},u.props[e]=l[e]);return o.length===1?u:(o[s]=u,o)}}}),Q=g({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`&&[`area`,`img`,`input`].includes(r)?()=>C(r,t):r===`template`?()=>C(Hs,t,{default:n.default}):()=>C(e.as,t,{default:n.default})}});function Us(){let e=R(),t=s(()=>{var t,n;return[`#text`,`#comment`].includes((t=e.value)?.$el.nodeName)?(n=e.value)?.$el.nextElementSibling:To(e)});return{primitiveElement:e,currentElement:t}}const[Ws,Gs]=q(`CollapsibleRoot`),Ks=g({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=J(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=J(r,`disabled`);return Gs({contentId:``,disabled:a,open:i,onOpenToggle:()=>{i.value=!i.value}}),t({open:i}),X(),(e,t)=>(L(),l(V(Q),{as:e.as,"as-child":r.asChild,"data-state":V(i)?`open`:`closed`,"data-disabled":V(a)?``:void 0},{default:W(()=>[z(e.$slots,`default`,{open:V(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),qs=g({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(e){let t=e;X();let n=Ws();return(e,r)=>{var i,a;return L(),l(V(Q),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":V(n).contentId,"aria-expanded":V(n).open.value,"data-state":V(n).open.value?`open`:`closed`,"data-disabled":(i=V(n).disabled)!=null&&i.value?``:void 0,disabled:(a=V(n).disabled)?.value,onClick:V(n).onOpenToggle},{default:W(()=>[z(e.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`])}}});function Js(e,t){var n;let r=R({}),i=R(`none`),a=R(e),o=e.value?`mounted`:`unmounted`,c,l=(n=t.value)?.ownerDocument.defaultView??Eo,{state:u,dispatch:d}=Is(o,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),f=e=>{var n;if(oo){let r=new CustomEvent(e,{bubbles:!1,cancelable:!1});(n=t.value)==null||n.dispatchEvent(r)}};H(e,async(e,n)=>{var a;let o=n!==e;if(await N(),o){let o=i.value,s=Ys(t.value);e?(d(`MOUNT`),f(`enter`),s===`none`&&f(`after-enter`)):s===`none`||(a=r.value)?.display===`none`?(d(`UNMOUNT`),f(`leave`),f(`after-leave`)):n&&o!==s?(d(`ANIMATION_OUT`),f(`leave`)):(d(`UNMOUNT`),f(`after-leave`))}},{immediate:!0});let p=e=>{let n=Ys(t.value),r=n.includes(e.animationName),i=u.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(f(`after-${i}`),d(`ANIMATION_END`),!a.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,c=l?.setTimeout(()=>{var n;(n=t.value)?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&d(`ANIMATION_END`)},m=e=>{e.target===t.value&&(i.value=Ys(t.value))},h=H(t,(e,t)=>{e?(r.value=getComputedStyle(e),e.addEventListener(`animationstart`,m),e.addEventListener(`animationcancel`,p),e.addEventListener(`animationend`,p)):(d(`ANIMATION_END`),c!==void 0&&l?.clearTimeout(c),t?.removeEventListener(`animationstart`,m),t?.removeEventListener(`animationcancel`,p),t?.removeEventListener(`animationend`,p))},{immediate:!0}),g=H(u,()=>{let e=Ys(t.value);i.value=u.value===`mounted`?e:`none`});return ae(()=>{h(),g()}),{isPresent:s(()=>[`mounted`,`unmountSuspended`].includes(u.value))}}function Ys(e){return e&&getComputedStyle(e).animationName||`none`}const Xs=g({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var r;let{present:i,forceMount:a}=B(e),o=R(),{isPresent:s}=Js(i,o);n({present:s});let c=t.default({present:s});c=Bo(c||[]);let l=b();if(c&&c?.length>1){let e=(r=l?.parent)!=null&&r.type.name?`<${l.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(` +import{Comment as e,Fragment as t,Teleport as n,arrow as r,camelize as i,cloneVNode as a,computePosition as o,computed as s,createBaseVNode as c,createBlock as l,createCommentVNode as u,createCoords as d,createElementBlock as f,createTextVNode as p,createVNode as m,customRef as h,defineComponent as g,effectScope as _,flip as v,floor as y,getCurrentInstance as b,getCurrentScope as x,guardReactiveProps as S,h as C,hide as w,inject as T,isRef as E,limitShift as D,markRaw as O,max as k,mergeDefaults as A,mergeProps as j,min as M,nextTick as N,normalizeProps as P,normalizeStyle as F,offset as ee,onBeforeMount as te,onBeforeUnmount as ne,onBeforeUpdate as re,onMounted as I,onScopeDispose as ie,onUnmounted as ae,onUpdated as oe,openBlock as L,provide as se,reactive as ce,readonly as le,rectToClientRect as ue,ref as R,renderList as de,renderSlot as z,resolveDynamicComponent as fe,round as pe,shallowReadonly as me,shallowRef as he,shift as ge,size as _e,toDisplayString as ve,toHandlerKey as ye,toHandlers as be,toRaw as xe,toRef as Se,toRefs as B,triggerRef as Ce,unref as V,useId as we,useSlots as Te,vModelSelect as Ee,vShow as De,watch as H,watchEffect as U,watchPostEffect as Oe,watchSyncEffect as ke,withCtx as W,withDirectives as Ae,withKeys as G,withModifiers as K}from"./index-C2W4XoWv.js";function je(){return typeof window<`u`}function Me(e){return Fe(e)?(e.nodeName||``).toLowerCase():`#document`}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pe(e){var t;return(t=(Fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Fe(e){return je()?e instanceof Node||e instanceof Ne(e).Node:!1}function Ie(e){return je()?e instanceof Element||e instanceof Ne(e).Element:!1}function Le(e){return je()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function Re(e){return!je()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}function ze(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Be(e){return[`table`,`td`,`th`].includes(Me(e))}function Ve(e){return[`:popover-open`,`:modal`].some(t=>{try{return e.matches(t)}catch{return!1}})}function He(e){let t=We(),n=Ie(e)?Ke(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 Ue(e){let t=Je(e);for(;Le(t)&&!Ge(t);){if(He(t))return t;if(Ve(t))return null;t=Je(t)}return null}function We(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}function Ge(e){return[`html`,`body`,`#document`].includes(Me(e))}function Ke(e){return Ne(e).getComputedStyle(e)}function qe(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(Me(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Re(e)&&e.host||Pe(e);return Re(t)?t.host:t}function Ye(e){let t=Je(e);return Ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:Le(t)&&ze(t)?t:Ye(t)}function Xe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=Ye(e),a=i===(r=e.ownerDocument)?.body,o=Ne(i);if(a){let e=Ze(o);return t.concat(o,o.visualViewport||[],ze(i)?i:[],e&&n?Xe(e):[])}return t.concat(i,Xe(i,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qe(e){let t=Ke(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Le(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=pe(n)!==a||pe(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $e(e){return Ie(e)?e:e.contextElement}function et(e){let t=$e(e);if(!Le(t))return d(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qe(t),o=(a?pe(n.width):n.width)/r,s=(a?pe(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const tt=d(0);function nt(e){let t=Ne(e);return!We()||!t.visualViewport?tt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function it(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$e(e),o=d(1);t&&(r?Ie(r)&&(o=et(r)):o=et(e));let s=rt(a,n,r)?nt(a):d(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){let e=Ne(a),t=r&&Ie(r)?Ne(r):r,n=e,i=Ze(n);for(;i&&r&&t!==n;){let e=et(i),t=i.getBoundingClientRect(),r=Ke(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,f*=e.y,c+=a,l+=o,n=Ne(i),i=Ze(n)}}return ue({width:u,height:f,x:c,y:l})}function at(e,t){let n=qe(e).scrollLeft;return t?t.left+n:it(Pe(e)).left+n}function ot(e,t,n){n===void 0&&(n=!1);let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:at(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function st(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Pe(r),s=t?Ve(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=d(1),u=d(0),f=Le(r);if((f||!f&&!a)&&((Me(r)!==`body`||ze(o))&&(c=qe(r)),Le(r))){let e=it(r);l=et(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=o&&!f&&!a?ot(o,c,!0):d(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+p.x,y:n.y*l.y-c.scrollTop*l.y+u.y+p.y}}function ct(e){return Array.from(e.getClientRects())}function lt(e){let t=Pe(e),n=qe(e),r=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=k(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+at(e),s=-n.scrollTop;return Ke(r).direction===`rtl`&&(o+=k(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function ut(e,t){let n=Ne(e),r=Pe(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=We();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function dt(e,t){let n=it(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Le(e)?et(e):d(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 ft(e,t,n){let r;if(t===`viewport`)r=ut(e,n);else if(t===`document`)r=lt(Pe(e));else if(Ie(t))r=dt(t,n);else{let n=nt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ue(r)}function pt(e,t){let n=Je(e);return n===t||!Ie(n)||Ge(n)?!1:Ke(n).position===`fixed`||pt(n,t)}function mt(e,t){let n=t.get(e);if(n)return n;let r=Xe(e,[],!1).filter(e=>Ie(e)&&Me(e)!==`body`),i=null,a=Ke(e).position===`fixed`,o=a?Je(e):e;for(;Ie(o)&&!Ge(o);){let t=Ke(o),n=He(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||ze(o)&&!n&&pt(e,o);s?r=r.filter(e=>e!==o):i=t,o=Je(o)}return t.set(e,r),r}function ht(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?Ve(t)?[]:mt(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=ft(t,n,i);return e.top=k(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=k(r.left,e.left),e},ft(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gt(e){let{width:t,height:n}=Qe(e);return{width:t,height:n}}function _t(e,t,n){let r=Le(t),i=Pe(t),a=n===`fixed`,o=it(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=d(0);if(r||!r&&!a)if((Me(t)!==`body`||ze(i))&&(s=qe(t)),r){let e=it(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=at(i));let l=i&&!r&&!a?ot(i,s):d(0),u=o.left+s.scrollLeft-c.x-l.x,f=o.top+s.scrollTop-c.y-l.y;return{x:u,y:f,width:o.width,height:o.height}}function vt(e){return Ke(e).position===`static`}function yt(e,t){if(!Le(e)||Ke(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Pe(e)===n&&(n=n.ownerDocument.body),n}function bt(e,t){let n=Ne(e);if(Ve(e))return n;if(!Le(e)){let t=Je(e);for(;t&&!Ge(t);){if(Ie(t)&&!vt(t))return t;t=Je(t)}return n}let r=yt(e,t);for(;r&&Be(r)&&vt(r);)r=yt(r,t);return r&&Ge(r)&&vt(r)&&!He(r)?n:r||Ue(e)||n}const xt=async function(e){let t=this.getOffsetParent||bt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function St(e){return Ke(e).direction===`rtl`}const Ct={convertOffsetParentRelativeRectToViewportRelativeRect:st,getDocumentElement:Pe,getClippingRect:ht,getOffsetParent:bt,getElementRects:xt,getClientRects:ct,getDimensions:gt,getScale:et,isElement:Ie,isRTL:St};function wt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tt(e,t){let n=null,r,i=Pe(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=y(d),h=y(i.clientWidth-(u+f)),g=y(i.clientHeight-(d+p)),_=y(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,b={rootMargin:v,threshold:k(0,M(1,c))||1},x=!0;function S(t){let n=t[0].intersectionRatio;if(n!==c){if(!x)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!wt(l,e.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return o(!0),a}function Et(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=$e(e),u=i||a?[...l?Xe(l):[],...Xe(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Tt(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?it(e):null;c&&g();function g(){let t=it(e);h&&!wt(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 Dt=ee,Ot=ge,kt=v,At=_e,jt=w,Mt=r,Nt=D,Pt=(e,t,n)=>{let r=new Map,i={platform:Ct,...n},a={...i.platform,_c:r};return o(e,t,{...i,platform:a})};function Ft(e){return typeof e==`object`&&!!e&&`$el`in e}function It(e){if(Ft(e)){let t=e.$el;return Fe(t)&&Me(t)===`#comment`?null:t}return e}function Lt(e){return typeof e==`function`?e():V(e)}function Rt(e){return{name:`arrow`,options:e,fn(t){let n=It(Lt(e.element));return n==null?{}:Mt({element:n,padding:e.padding}).fn(t)}}}function zt(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function Bt(e,t){let n=zt(e);return Math.round(t*n)/n}function Vt(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=s(()=>{var e;return(e=Lt(n.open))??!0}),a=s(()=>Lt(n.middleware)),o=s(()=>{var e;return(e=Lt(n.placement))??`bottom`}),c=s(()=>{var e;return(e=Lt(n.strategy))??`absolute`}),l=s(()=>{var e;return(e=Lt(n.transform))??!0}),u=s(()=>It(e.value)),d=s(()=>It(t.value)),f=R(0),p=R(0),m=R(c.value),h=R(o.value),g=he({}),_=R(!1),v=s(()=>{let e={position:m.value,left:`0`,top:`0`};if(!d.value)return e;let t=Bt(d.value,f.value),n=Bt(d.value,p.value);return l.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...zt(d.value)>=1.5&&{willChange:`transform`}}:{position:m.value,left:t+`px`,top:n+`px`}}),y;function b(){if(u.value==null||d.value==null)return;let e=i.value;Pt(u.value,d.value,{middleware:a.value,placement:o.value,strategy:c.value}).then(t=>{f.value=t.x,p.value=t.y,m.value=t.strategy,h.value=t.placement,g.value=t.middlewareData,_.value=e!==!1})}function S(){typeof y==`function`&&(y(),y=void 0)}function C(){if(S(),r===void 0){b();return}if(u.value!=null&&d.value!=null){y=r(u.value,d.value,b);return}}function w(){i.value||(_.value=!1)}return H([a,o,c,i],b,{flush:`sync`}),H([u,d],C,{flush:`sync`}),H(i,w,{flush:`sync`}),x()&&ie(S),{x:me(f),y:me(p),strategy:me(m),placement:me(h),middlewareData:me(g),isPositioned:me(_),floatingStyles:v,update:b}}function Ht(e,t){return e-t*Math.floor(e/t)}const Ut=1721426;function Wt(e,t,n,r){t=Kt(e,t);let i=t-1,a=-2;return n<=2?a=0:Gt(t)&&(a=-1),Ut-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Gt(e){return e%4==0&&(e%100!=0||e%400==0)}function Kt(e,t){return e===`BC`?1-t:t}function qt(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}const Jt={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};var Yt=class{fromJulianDay(e){let t=e,n=t-Ut,r=Math.floor(n/146097),i=Ht(n,146097),a=Math.floor(i/36524),o=Ht(i,36524),s=Math.floor(o/1461),c=Ht(o,1461),l=Math.floor(c/365),u=r*400+a*100+s*4+l+(a!==4&&l!==4?1:0),[d,f]=qt(u),p=t-Wt(d,f,1,1),m=2;t0&&t===fn())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=Sn(e,t),c=yn(n,r,i,a,o,s,0);return c-Math.floor(e/1e3)*1e3}const xn=new Map;function Sn(e,t){let n=xn.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),xn.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}const Cn=864e5;function wn(e,t,n,r){let i=n===r?[n]:[n,r];return i.filter(n=>Tn(e,t,n))}function Tn(e,t,n){let r=Sn(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function En(e,t,n=`compatible`){let r=An(e);if(t===`UTC`)return vn(r);if(t===fn()&&n===`compatible`){r=jn(r,new Yt);let e=new Date,t=Kt(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=vn(r),a=bn(i-Cn,t),o=bn(i+Cn,t),s=wn(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function Dn(e,t,n=`compatible`){return new Date(En(e,t,n))}function On(e,t){let n=bn(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new vr(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function kn(e){return new mr(e.calendar,e.era,e.year,e.month,e.day)}function An(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new gr(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function jn(e,t){if(tn(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Vn(r),r}function Mn(e,t,n){if(e instanceof vr)return e.timeZone===t?e:Pn(e,t);let r=En(e,t,n);return On(r,t)}function Nn(e){let t=vn(e)-e.offset;return new Date(t)}function Pn(e,t){let n=vn(e)-e.offset;return jn(On(n,t),e.calendar)}const Fn=36e5;function In(e,t){let n=e.copy(),r=`hour`in n?Yn(n,t):0;Ln(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Rn(n),Bn(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,zn(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let e=(a=(o=n.calendar).isInverseEra)?.call(o,n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Ln(e,t){var n,r;(n=(r=e.calendar).isInverseEra)?.call(r,e)&&(t=-t),e.year+=t}function Rn(e){for(;e.month<1;)Ln(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ln(e,1)}function zn(e){for(;e.day<1;)e.month--,Rn(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Rn(e)}function Bn(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Vn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Bn(e)}function Hn(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function Un(e,t){return In(e,Hn(t))}function Wn(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Vn(n),n}function Gn(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),qn(n),n}function Kn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Jn(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Jn(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Jn(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Jn(e.hour,24),t}function qn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Jn(e,t){let n=e%t;return n<0&&(n+=t),n}function Yn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Kn(e)}function Xn(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=Qn(a,n,0,t.length-1,r?.round),i.era=t[a],Vn(i);break}case`year`:var a,o;(a=(o=i.calendar).isInverseEra)?.call(o,i)&&(n=-n),i.year=Qn(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=Qn(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=Qn(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Vn(i),i}function Zn(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=Qn(t,n,a,o,r?.round);break}case`minute`:i.minute=Qn(e.minute,n,0,59,r?.round);break;case`second`:i.second=Qn(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=Qn(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function Qn(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,er&&(e=n+(e-r-1));return e}function $n(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let r=In(An(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=En(r,e.timeZone)}else n=vn(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=On(n,e.timeZone);return jn(r,e.calendar)}function er(e,t){return $n(e,Hn(t))}function tr(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=An(e),o=jn(Gn(a,{hour:t}),new Yt),s=[En(o,e.timeZone,`earlier`),En(o,e.timeZone,`later`)].filter(t=>On(t,e.timeZone).day===o.day)[0],c=jn(Gn(a,{hour:i}),new Yt),l=[En(c,e.timeZone,`earlier`),En(c,e.timeZone,`later`)].filter(t=>On(t,e.timeZone).day===c.day).pop(),u=vn(e)-e.offset,d=Math.floor(u/Fn),f=u%Fn;return u=Qn(d,n,Math.floor(s/Fn),Math.floor(l/Fn),r?.round)*Fn+f,jn(On(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return Zn(e,t,n,r);case`era`:case`year`:case`month`:case`day`:{let i=Xn(An(e),t,n,r),a=En(i,e.timeZone);return jn(On(a,e.timeZone),e.calendar)}default:throw Error(`Unsupported field `+t)}}function nr(e,t,n){let r=An(e),i=Gn(Wn(r,t),t);if(i.compare(r)===0)return e;let a=En(i,e.timeZone,n);return jn(On(a,e.timeZone),e.calendar)}const rr=[`hours`,`minutes`,`seconds`],ir=[`years`,`months`,`weeks`,`days`,...rr];function ar(e){return`${String(e.hour).padStart(2,`0`)}:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function or(e){let t=jn(e,new Yt),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function sr(e){return`${or(e)}T${ar(e)}`}function cr(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`}function lr(e){return`${sr(e)}${cr(e.offset)}[${e.timeZone}]`}function ur(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function dr(e,t,n){ur(e,t),t.set(e,n)}function fr(e){let t=typeof e[0]==`object`?e.shift():new Yt,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var pr=new WeakMap,mr=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return In(this,e)}subtract(e){return Un(this,e)}set(e){return Wn(this,e)}cycle(e,t,n){return Xn(this,e,t,n)}toDate(e){return Dn(this,e)}toString(){return or(this)}compare(e){return cn(this,e)}constructor(...e){dr(this,pr,{writable:!0,value:void 0});let[t,n,r,i,a]=fr(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,Vn(this)}},hr=new WeakMap,gr=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return In(this,e)}subtract(e){return Un(this,e)}set(e){return Wn(Gn(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return Xn(this,e,t,n);default:return Zn(this,e,t,n)}}toDate(e,t){return Dn(this,e,t)}toString(){return sr(this)}compare(e){let t=cn(this,e);return t===0?ln(this,An(e)):t}constructor(...e){dr(this,hr,{writable:!0,value:void 0});let[t,n,r,i,a]=fr(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Vn(this)}},_r=new WeakMap,vr=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return $n(this,e)}subtract(e){return er(this,e)}set(e,t){return nr(this,e,t)}cycle(e,t,n){return tr(this,e,t,n)}toDate(){return Nn(this)}toString(){return lr(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Mn(e,this.timeZone).toDate().getTime()}constructor(...e){dr(this,_r,{writable:!0,value:void 0});let[t,n,r,i,a]=fr(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Vn(this)}};const yr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],br=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],xr=[1867,1911,1925,1988,2018],Sr=[`meiji`,`taisho`,`showa`,`heisei`,`reiwa`];function Cr(e){let t=yr.findIndex(([t,n,r])=>e.year=0){let[,n,r]=yr[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return Sr}getYearsInEra(e){let t=Sr.indexOf(e.era),n=yr[t],r=yr[t+1];if(r==null)return 9999-n[0]+1;let i=r[0]-n[0];return(e.month0?[`minguo`,t]:[`before_minguo`,1-t]}var Nr=class extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=Kt(t.era,t.year),[r,i]=Mr(n);return new mr(this,r,i,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Pr(e))}getEras(){return[`before_minguo`,`minguo`]}balanceDate(e){let[t,n]=Mr(jr(e));e.era=t,e.year=n}isInverseEra(e){return e.era===`before_minguo`}getDaysInMonth(e){return super.getDaysInMonth(Pr(e))}getYearsInEra(e){return e.era===`before_minguo`?9999:9999-Ar}constructor(...e){super(...e),this.identifier=`roc`}};function Pr(e){let[t,n]=qt(jr(e));return new mr(t,n,e.month,e.day)}const Fr=1948320,Ir=[0,31,62,93,124,155,186,216,246,276,306,336];var Lr=class{fromJulianDay(e){let t=e-Fr,n=1+Math.floor((33*t+3)/12053),r=365*(n-1)+Math.floor((8*n+21)/33),i=t-r,a=i<216?Math.floor(i/31):Math.floor((i-6)/30),o=i-Ir[a]+1;return new mr(this,n,a+1,o)}toJulianDay(e){let t=Fr-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=Ir[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){if(e.month<=6)return 31;if(e.month<=11)return 30;let t=Ht(25*e.year+11,33)<8;return t?30:29}getEras(){return[`AP`]}getYearsInEra(){return 9377}constructor(){this.identifier=`persian`}};const Rr=78,zr=80;var Br=class extends Yt{fromJulianDay(e){let t=super.fromJulianDay(e),n=t.year-Rr,r=e-Wt(t.era,t.year,1,1),i;r=8&&(a+=(e.month-7)*30),a+=e.day-1,a)}getDaysInMonth(e){return e.month===1&&Gt(e.year+Rr)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return[`saka`]}balanceDate(){}constructor(...e){super(...e),this.identifier=`indian`}};const Vr=1948440,Hr=1948439,Ur=1300,Wr=1600,Gr=460322;function Kr(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function qr(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Kr(t,r,1,1)))/29.5)+1),a=n-Kr(t,r,i,1)+1;return new mr(e,r,i,a)}function Jr(e){return(14+11*e)%30<11}var Yr=class{fromJulianDay(e){return qr(this,Vr,e)}toJulianDay(e){return Kr(Vr,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Jr(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Jr(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return[`AH`]}constructor(){this.identifier=`islamic-civil`}},Xr=class extends Yr{fromJulianDay(e){return qr(this,Hr,e)}toJulianDay(e){return Kr(Hr,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier=`islamic-tbla`}};const Zr=`qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=`;let Qr,$r;function ei(e){return Gr+$r[e-Ur]}function ti(e,t){let n=e-Ur,r=1<<11-(t-1);return(Qr[n]&r)===0?29:30}function ni(e,t){let n=ei(e);for(let r=1;rr)return super.fromJulianDay(e);{let e=Ur-1,n=1,r=1;for(;r>0;){e++,r=t-ei(e)+1;let i=ri(e);if(r===i){n=12;break}else if(rt;)r-=t,n++,t=ti(e,n);break}}return new mr(this,e,n,t-ni(e,n)+1)}}toJulianDay(e){return e.yearWr?super.toJulianDay(e):Vr+ni(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.yearWr?super.getDaysInMonth(e):ti(e.year,e.month)}getDaysInYear(e){return e.yearWr?super.getDaysInYear(e):ri(e.year)}constructor(){if(super(),this.identifier=`islamic-umalqura`,Qr||=new Uint16Array(Uint8Array.from(atob(Zr),e=>e.charCodeAt(0)).buffer),!$r){$r=new Uint32Array(Wr-Ur+1);let e=0;for(let t=Ur;t<=Wr;t++){$r[t-Ur]=e;for(let n=1;n<=12;n++)e+=ti(t,n)}}}};const ai=347997,oi=1080,si=24*oi,ci=29,li=12*oi+793,ui=ci*si+li;function di(e){return Ht(e*7+1,19)<7}function fi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ht(3*(r+1),7)<3&&(r+=1),r}function pi(e){let t=fi(e-1),n=fi(e),r=fi(e+1);return r-n===356?2:n-t===382?1:0}function mi(e){return fi(e)+pi(e)}function hi(e){return mi(e+1)-mi(e)}function gi(e){let t=hi(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function _i(e,t){if(t>=6&&!di(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=gi(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?di(e)?30:0:30}var vi=class{fromJulianDay(e){let t=e-ai,n=t*si/ui,r=Math.floor((19*n+234)/235)+1,i=mi(r),a=Math.floor(t-i);for(;a<1;)r--,i=mi(r),a=Math.floor(t-i);let o=1,s=0;for(;s6?e.month--:!di(t.year)&&di(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier=`hebrew`}};const yi=1723856,bi=1824665,xi=5500;function Si(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ci(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Si(e,n,1,1))/30),i=t+1-Si(e,n,r,1);return[n,r,i]}function wi(e){return Math.floor(e%4/3)}function Ti(e,t){return t%13==0?wi(e)+5:30}var Ei=class{fromJulianDay(e){let[t,n,r]=Ci(yi,e),i=`AM`;return t<=0&&(i=`AA`,t+=xi),new mr(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`AA`&&(t-=xi),Si(yi,t,e.month,e.day)}getDaysInMonth(e){return Ti(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+wi(e.year)}getYearsInEra(e){return e.era===`AA`?9999:9991}getEras(){return[`AA`,`AM`]}constructor(){this.identifier=`ethiopic`}},Di=class extends Ei{fromJulianDay(e){let[t,n,r]=Ci(yi,e);return t+=xi,new mr(this,`AA`,t,n,r)}getEras(){return[`AA`]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier=`ethioaa`}},Oi=class extends Ei{fromJulianDay(e){let[t,n,r]=Ci(bi,e),i=`CE`;return t<=0&&(i=`BCE`,t=1-t),new mr(this,i,t,n,r)}toJulianDay(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Si(bi,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era===`BCE`&&(t=1-t),Ti(t,e.month)}isInverseEra(e){return e.era===`BCE`}balanceDate(e){e.year<=0&&(e.era=e.era===`BCE`?`CE`:`BCE`,e.year=1-e.year)}getEras(){return[`BCE`,`CE`]}getYearsInEra(e){return e.era===`BCE`?9999:9715}constructor(...e){super(...e),this.identifier=`coptic`}};function ki(e){switch(e){case`buddhist`:return new Or;case`ethiopic`:return new Ei;case`ethioaa`:return new Di;case`coptic`:return new Oi;case`hebrew`:return new vi;case`indian`:return new Br;case`islamic-civil`:return new Yr;case`islamic-tbla`:return new Xr;case`islamic-umalqura`:return new ii;case`japanese`:return new Tr;case`persian`:return new Lr;case`roc`:return new Nr;case`gregory`:default:return new Yt}}let Ai=new Map;var ji=class{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Li()&&(this.resolvedHourCycle||=Ri(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}constructor(e,t={}){this.formatter=Ni(e,t),this.options=t}};const Mi={true:{ja:`h11`},false:{}};function Ni(e,t={}){if(typeof t.hour12==`boolean`&&Fi()){t={...t};let n=Mi[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}let zi=new Map,Bi=!1;try{Bi=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}let Vi=!1;try{Vi=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}const Hi={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}};var Ui=class{format(e){let t=``;if(t=!Bi&&this.options.signDisplay!=null?Gi(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!Vi){var n;let{unit:e,unitDisplay:r=`short`,locale:i}=this.resolvedOptions();if(!e)return t;let a=(n=Hi[e])?.[r];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange==`function`)return this.numberFormatter.formatRange(e,t);if(t= start date`);return`${this.format(e)} \u{2013} ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Bi&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!Vi&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=Wi(e,t),this.options=t}};function Wi(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes(`-nu-`)&&(e.includes(`-u-`)||(e+=`-u-`),e+=`-nu-${n}`),t.style===`unit`&&!Vi){var r;let{unit:e,unitDisplay:n=`short`}=t;if(!e)throw Error(`unit option must be provided with style: "unit"`);if(!(r=Hi[e])?.[n])throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:`decimal`}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]0||Object.is(n,0):t===`exceptZero`&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),i=t.replace(r,``).replace(/\u200e|\u061C/,``);[...i].length!==1&&console.warn(`@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case`);let a=t.replace(r,`!!!`).replace(i,`+`).replace(`!!!`,r);return a}else return e.format(n)}}const Ki=RegExp(`^.*\\(.*\\).*$`),qi=[`latn`,`arab`,`hanidec`,`deva`,`beng`];var Ji=class{parse(e){return Xi(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Xi(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Xi(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}};const Yi=new Map;function Xi(e,t,n){let r=Zi(e,t);if(!e.includes(`-nu-`)&&!r.isValidPartialNumber(n)){for(let i of qi)if(i!==r.options.numberingSystem){let r=Zi(e+(e.includes(`-u-`)?`-nu-`:`-u-nu-`)+i,t);if(r.isValidPartialNumber(n))return r}}return r}function Zi(e,t){let n=e+(t?Object.entries(t).sort((e,t)=>e[0]-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if(this.options.style===`percent`){var r,i;let e={...this.options,style:`decimal`,minimumFractionDigits:Math.min(((r=this.options.minimumFractionDigits)??0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)??0)+2,20)};return new Ji(this.locale,e).parse(new Ui(this.locale,e).format(n))}return this.options.currencySign===`accounting`&&Ki.test(e)&&(n=-1*n),n}sanitize(e){return e=e.replace(this.symbols.literals,``),this.symbols.minusSign&&(e=e.replace(`-`,this.symbols.minusSign)),this.options.numberingSystem===`arab`&&(this.symbols.decimal&&(e=e.replace(`,`,this.symbols.decimal),e=e.replace(`،`,this.symbols.decimal)),this.symbols.group&&(e=na(e,`.`,this.symbols.group))),this.options.locale===`fr-FR`&&(e=na(e,`.`,` `)),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=na(e,this.symbols.group,``)),e=e.replace(this.symbols.numeral,``),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,``)),e.length===0)}constructor(e,t={}){this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=ta(e,this.formatter,this.options,t);var n,r;this.options.style===`percent`&&(((n=this.options.minimumFractionDigits)??0)>18||((r=this.options.maximumFractionDigits)??0)>18)&&console.warn(`NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.`)}};const $i=new Set([`decimal`,`fraction`,`integer`,`minusSign`,`plusSign`,`group`]),ea=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ta(e,t,n,r){var i,a,o,s;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:`auto`,roundingMode:`halfExpand`}),l=c.formatToParts(-10000.111),u=c.formatToParts(10000.111),d=ea.map(e=>c.formatToParts(e));var f;let p=(f=(i=l.find(e=>e.type===`minusSign`))?.value)??`-`,m=(a=u.find(e=>e.type===`plusSign`))?.value;!m&&(r?.signDisplay===`exceptZero`||r?.signDisplay===`always`)&&(m=`+`);let h=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),g=(o=h.find(e=>e.type===`decimal`))?.value,_=(s=l.find(e=>e.type===`group`))?.value,v=l.filter(e=>!$i.has(e.type)).map(e=>ra(e.value)),y=d.flatMap(e=>e.filter(e=>!$i.has(e.type)).map(e=>ra(e.value))),b=[...new Set([...v,...y])].sort((e,t)=>t.length-e.length),x=b.length===0?RegExp(`[\\p{White_Space}]`,`gu`):RegExp(`${b.join(`|`)}|[\\p{White_Space}]`,`gu`),S=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),C=new Map(S.map((e,t)=>[e,t])),w=RegExp(`[${S.join(``)}]`,`g`),T=e=>String(C.get(e));return{minusSign:p,plusSign:m,decimal:g,group:_,literals:x,numeral:w,index:T}}function na(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ra(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ia(e,t){let n=[];for(let r=0;r0}function fa(e,t){return e.compare(t)<=0}function pa(e,t){return e.compare(t)>=0}function ma(e,t,n){return pa(e,t)&&fa(e,n)}function ha(e,t,n){return da(e,t)&&ua(e,n)}function ga(e,t,n){let r=an(e,n);return t>r?e.subtract({days:r+7-t}):t===r?e:e.subtract({days:r-t})}function _a(e,t,n){let r=an(e,n),i=t===0?6:t-1;return r===i?e:r>i?e.add({days:7-r+i}):e.add({days:i-r})}function va(e,t,n,r){if(n===void 0&&r===void 0)return!0;let i=e.add({days:1});if(r!=null&&r(i)||n!=null&&n(i))return!1;let a=t;for(;i.compare(a)<0;)if(i=i.add({days:1}),r!=null&&r(i)||n!=null&&n(i))return!1;return!0}function ya(e,t){let n=[],r=e.add({days:1}),i=t;for(;r.compare(i)<0;)n.push(r),r=r.add({days:1});return n}function ba(e){let{dateObj:t,weekStartsOn:n,fixedWeeks:r,locale:i}=e,a=la(t),o=Array.from({length:a},(e,n)=>t.set({day:n+1})),s=pn(t),c=mn(t),l=ga(s,n,i),u=_a(c,n,i),d=ya(l.subtract({days:1}),s),f=ya(c,u.add({days:1})),p=d.length+o.length+f.length;if(r&&p<42){let e=42-p,n=f[f.length-1];n||=mn(t);let r=Array.from({length:e},(e,t)=>{let r=t+1;return n.add({days:r})});f.push(...r)}let m=d.concat(o,f),h=ia(m,7);return{value:t,cells:m,rows:h}}function xa(e){let{numberOfMonths:t,dateObj:n,...r}=e,i=[];if(!t||t===1)return i.push(ba({...r,dateObj:n})),i;i.push(ba({...r,dateObj:n}));for(let e=1;e{let n=T(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}\``}`)},e=>(se(r,e),e)]}function Sa(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 Ca(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function wa(e,t){let n=e,r=t.toString(),i=r.indexOf(`.`),a=i>=0?r.length-i:0;if(a>0){let e=10**a;n=Math.round(n*e)/e}return n}function Ta(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(Number.isNaN(t)?0:t))%r,a=wa(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return Number.isNaN(t)?!Number.isNaN(n)&&a>n&&(a=Math.floor(wa(n/r,r))*r):an&&(a=t+Math.floor(wa((n-t)/r,r))*r),a=wa(a,r),a}function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Da=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const Oa=Ea(Da);function ka(e,t){if(e.length!==t.length)return!1;for(let n=0;nOa(e,t)),i=e.findIndex(e=>Oa(e,n));if(r===-1||i===-1)return[];let[a,o]=[r,i].sort((e,t)=>e-t);return e.slice(a,o+1)}const ja=typeof document<`u`;function Ma(e){return e==null}function Na(e){let{defaultValue:t,defaultPlaceholder:n,granularity:r=`day`,locale:i=`en`}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(n)return n.copy();let a=new Date,o=a.getFullYear(),s=a.getMonth()+1,c=a.getDate(),l=[`hour`,`minute`,`second`],u=new ji(i),d=ki(u.resolvedOptions().calendar);return l.includes(r??`day`)?jn(new gr(o,s,c,0,0,0),d):jn(new mr(o,s,c),d)}const Pa=`ach.af.am.an.ar.ast.az.be.bg.bn.br.bs.ca.cak.ckb.cs.cy.da.de.dsb.el.en.eo.es.et.eu.fa.ff.fi.fr.fy.ga.gd.gl.he.hr.hsb.hu.ia.id.it.ja.ka.kk.kn.ko.lb.lo.lt.lv.meh.ml.ms.nl.nn.no.oc.pl.pt.rm.ro.ru.sc.scn.sk.sl.sr.sv.szl.tg.th.tr.uk.zh-CN.zh-TW`.split(`.`),Fa=[`year`,`month`,`day`],Ia={ach:{year:`mwaka`,month:`dwe`,day:`nino`},af:{year:`jjjj`,month:`mm`,day:`dd`},am:{year:`ዓዓዓዓ`,month:`ሚሜ`,day:`ቀቀ`},an:{year:`aaaa`,month:`mm`,day:`dd`},ar:{year:`سنة`,month:`شهر`,day:`يوم`},ast:{year:`aaaa`,month:`mm`,day:`dd`},az:{year:`iiii`,month:`aa`,day:`gg`},be:{year:`гггг`,month:`мм`,day:`дд`},bg:{year:`гггг`,month:`мм`,day:`дд`},bn:{year:`yyyy`,month:`মিমি`,day:`dd`},br:{year:`bbbb`,month:`mm`,day:`dd`},bs:{year:`gggg`,month:`mm`,day:`dd`},ca:{year:`aaaa`,month:`mm`,day:`dd`},cak:{year:`jjjj`,month:`ii`,day:`q'q'`},ckb:{year:`ساڵ`,month:`مانگ`,day:`ڕۆژ`},cs:{year:`rrrr`,month:`mm`,day:`dd`},cy:{year:`bbbb`,month:`mm`,day:`dd`},da:{year:`åååå`,month:`mm`,day:`dd`},de:{year:`jjjj`,month:`mm`,day:`tt`},dsb:{year:`llll`,month:`mm`,day:`źź`},el:{year:`εεεε`,month:`μμ`,day:`ηη`},en:{year:`yyyy`,month:`mm`,day:`dd`},eo:{year:`jjjj`,month:`mm`,day:`tt`},es:{year:`aaaa`,month:`mm`,day:`dd`},et:{year:`aaaa`,month:`kk`,day:`pp`},eu:{year:`uuuu`,month:`hh`,day:`ee`},fa:{year:`سال`,month:`ماه`,day:`روز`},ff:{year:`hhhh`,month:`ll`,day:`ññ`},fi:{year:`vvvv`,month:`kk`,day:`pp`},fr:{year:`aaaa`,month:`mm`,day:`jj`},fy:{year:`jjjj`,month:`mm`,day:`dd`},ga:{year:`bbbb`,month:`mm`,day:`ll`},gd:{year:`bbbb`,month:`mm`,day:`ll`},gl:{year:`aaaa`,month:`mm`,day:`dd`},he:{year:`שנה`,month:`חודש`,day:`יום`},hr:{year:`gggg`,month:`mm`,day:`dd`},hsb:{year:`llll`,month:`mm`,day:`dd`},hu:{year:`éééé`,month:`hh`,day:`nn`},ia:{year:`aaaa`,month:`mm`,day:`dd`},id:{year:`tttt`,month:`bb`,day:`hh`},it:{year:`aaaa`,month:`mm`,day:`gg`},ja:{year:` 年 `,month:`月`,day:`日`},ka:{year:`წწწწ`,month:`თთ`,day:`რრ`},kk:{year:`жжжж`,month:`аа`,day:`кк`},kn:{year:`ವವವವ`,month:`ಮಿಮೀ`,day:`ದಿದಿ`},ko:{year:`연도`,month:`월`,day:`일`},lb:{year:`jjjj`,month:`mm`,day:`dd`},lo:{year:`ປປປປ`,month:`ດດ`,day:`ວວ`},lt:{year:`mmmm`,month:`mm`,day:`dd`},lv:{year:`gggg`,month:`mm`,day:`dd`},meh:{year:`aaaa`,month:`mm`,day:`dd`},ml:{year:`വർഷം`,month:`മാസം`,day:`തീയതി`},ms:{year:`tttt`,month:`mm`,day:`hh`},nl:{year:`jjjj`,month:`mm`,day:`dd`},nn:{year:`åååå`,month:`mm`,day:`dd`},no:{year:`åååå`,month:`mm`,day:`dd`},oc:{year:`aaaa`,month:`mm`,day:`jj`},pl:{year:`rrrr`,month:`mm`,day:`dd`},pt:{year:`aaaa`,month:`mm`,day:`dd`},rm:{year:`oooo`,month:`mm`,day:`dd`},ro:{year:`aaaa`,month:`ll`,day:`zz`},ru:{year:`гггг`,month:`мм`,day:`дд`},sc:{year:`aaaa`,month:`mm`,day:`dd`},scn:{year:`aaaa`,month:`mm`,day:`jj`},sk:{year:`rrrr`,month:`mm`,day:`dd`},sl:{year:`llll`,month:`mm`,day:`dd`},sr:{year:`гггг`,month:`мм`,day:`дд`},sv:{year:`åååå`,month:`mm`,day:`dd`},szl:{year:`rrrr`,month:`mm`,day:`dd`},tg:{year:`сссс`,month:`мм`,day:`рр`},th:{year:`ปปปป`,month:`ดด`,day:`วว`},tr:{year:`yyyy`,month:`aa`,day:`gg`},uk:{year:`рррр`,month:`мм`,day:`дд`},"zh-CN":{year:`年`,month:`月`,day:`日`},"zh-TW":{year:`年`,month:`月`,day:`日`}};function La(e){if(za(e))return Ia[e];{let t=Ua(e);return za(t)?Ia[t]:Ia.en}}function Ra(e,t,n){return Ba(e)?La(n)[e]:Ha(e)?t:Va(e)?`––`:``}function za(e){return Pa.includes(e)}function Ba(e){return Fa.includes(e)}function Va(e){return e===`hour`||e===`minute`||e===`second`}function Ha(e){return e===`era`||e===`dayPeriod`}function Ua(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}const Wa=[`day`,`month`,`year`],Ga=[`hour`,`minute`,`second`,`dayPeriod`],Ka=[...Wa,...Ga];function qa(e){return Wa.includes(e)}function Ja(e){return Ka.includes(e)}function Ya(e,t){let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`,hourCycle:t===24?`h24`:void 0,hour12:t===24?!1:void 0};return e===`day`&&(delete n.second,delete n.hour,delete n.minute,delete n.timeZoneName),e===`hour`&&(delete n.minute,delete n.second),e===`minute`&&delete n.second,n}function Xa(e){let t=e.querySelector(`[data-selected]`);if(t)return t.focus();let n=e.querySelector(`[data-today]`);if(n)return n.focus();let r=e.querySelector(`[data-radix-vue-calendar-day]`);if(r)return r.focus()}function Za(e,t){var n;let r=he();return U(()=>{r.value=e()},{...t,flush:(n=void 0,`sync`)}),le(r)}function Qa(e,t){let n,r,i,a=R(!0),o=()=>{a.value=!0,i()};H(e,o,{flush:`sync`});let s=typeof t==`function`?t:t.get,c=typeof t==`function`?void 0:t.set,l=h((e,t)=>(r=e,i=t,{get(){return a.value&&(n=s(),a.value=!1),r(),n},set(e){c?.(e)}}));return Object.isExtensible(l)&&(l.trigger=o),l}function $a(e){return x()?(ie(e),!0):!1}function eo(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return $a(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t)))}}function to(e){let t=!1,n,r=_(!0);return(...i)=>(t||(n=r.run(()=>e(...i)),t=!0),n)}function no(e){let t=0,n,r,i=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...a)=>(t+=1,n||(r=_(!0),n=r.run(()=>e(...a))),$a(i),n)}function ro(e){return typeof e==`function`?e():V(e)}function io(e){if(!E(e))return ce(e);let t=new Proxy({},{get(t,n,r){return V(Reflect.get(e.value,n,r))},set(t,n,r){return E(e.value[n])&&!E(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 ce(t)}function ao(e){return io(s(e))}const oo=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const so=e=>typeof e<`u`,co=e=>e!=null,lo=Object.prototype.toString,uo=e=>lo.call(e)===`[object Object]`,fo=()=>{},po=mo();function mo(){var e,t;return oo&&(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 ho(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 go(e,t={}){let n,r,i=fo,a=e=>{clearTimeout(e),i(),i=fo};return o=>{let s=ro(e),c=ro(t.maxWait);return n&&a(n),s<=0||c!==void 0&&c<=0?(r&&(a(r),r=null),Promise.resolve(o())):new Promise((e,l)=>{i=t.rejectOnCancel?l:e,c&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,e(o())},c)),n=setTimeout(()=>{r&&a(r),r=null,e(o())},s)})}}function _o(e){return b()}function vo(e,t=1e4){return h((n,r)=>{let i=ro(e),a,o=()=>setTimeout(()=>{i=ro(e),r()},ro(t));return $a(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function yo(e,t=200,n={}){return ho(go(t,n),e)}function bo(e,t){_o()&&ne(e,t)}function xo(e,t=!0,n){_o()?I(e,n):t?e():N(e)}function So(e,t,n={}){let{immediate:r=!0}=n,i=R(!1),a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function c(...n){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...n)},ro(t))}return r&&(i.value=!0,oo&&c()),$a(s),{isPending:le(i),start:c,stop:s}}function Co(e=1e3,t={}){let{controls:n=!1,callback:r}=t,i=So(r??fo,e,t),a=s(()=>!i.isPending.value);return n?{ready:a,...i}:a}function wo(e,t,n){let r=H(e,(...e)=>(N(()=>r()),t(...e)),n);return r}function To(e){var t;let n=ro(e);return(t=n?.$el)??n}const Eo=oo?window:void 0;function Do(...e){let t,n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0])?([n,r,i]=e,t=Eo):[t,n,r,i]=e,!t)return fo;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);let a=[],o=()=>{a.forEach(e=>e()),a.length=0},s=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),c=H(()=>[To(t),ro(i)],([e,t])=>{if(o(),!e)return;let i=uo(t)?{...t}:t;a.push(...n.flatMap(t=>r.map(n=>s(e,t,n,i))))},{immediate:!0,flush:`post`}),l=()=>{c(),o()};return $a(l),l}function Oo(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ko(...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=Eo,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=Oo(t);return Do(i,a,e=>{e.repeat&&ro(s)||c(e)&&n(e)},o)}function Ao(){let e=R(!1),t=b();return t&&I(()=>{e.value=!0},t),e}function jo(e){let t=Ao();return s(()=>(t.value,!!e()))}function Mo(e,t,n={}){let{window:r=Eo,...i}=n,a,o=jo(()=>r&&`MutationObserver`in r),c=()=>{a&&(a.disconnect(),a=void 0)},l=s(()=>{let t=ro(e),n=(Array.isArray(t)?t:[t]).map(To).filter(co);return new Set(n)}),u=H(()=>l.value,e=>{c(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),d=()=>a?.takeRecords(),f=()=>{c(),u()};return $a(f),{isSupported:o,stop:f,takeRecords:d}}function No(e={}){var t;let{window:n=Eo,deep:r=!0,triggerOnRemoval:i=!1}=e,a=(t=e.document)??n?.document,o=()=>{var e;let t=a?.activeElement;if(r)for(;t!=null&&t.shadowRoot;)t=(e=t?.shadowRoot)?.activeElement;return t},s=R(),c=()=>{s.value=o()};return n&&(Do(n,`blur`,e=>{e.relatedTarget===null&&c()},!0),Do(n,`focus`,c,!0)),i&&Mo(a,e=>{e.filter(e=>e.removedNodes.length).map(e=>Array.from(e.removedNodes)).flat().forEach(e=>{e===s.value&&c()})},{childList:!0,subtree:!0}),c(),s}function Po(e,t={}){let{immediate:n=!0,fpsLimit:r=void 0,window:i=Eo}=t,a=R(!1),o=r?1e3/r:null,s=0,c=null;function l(t){if(!a.value||!i)return;s||=t;let n=t-s;if(o&&nnull,()=>t.proxy.$el);return oe(n.trigger),I(n.trigger),n}function Lo(e,t,n={}){let{window:r=Eo,...i}=n,a,o=jo(()=>r&&`ResizeObserver`in r),c=()=>{a&&(a.disconnect(),a=void 0)},l=s(()=>Array.isArray(e)?e.map(e=>To(e)):[To(e)]),u=H(l,e=>{if(c(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),d=()=>{c(),u()};return $a(d),{isSupported:o,stop:d}}function Ro(e,t={}){let n=No(t),r=s(()=>To(e));return{focused:s(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function zo(e=Io()){let t=he(),n=()=>{let n=To(e);n&&(t.value=n.parentElement)};return xo(n),H(()=>ro(e),n),t}function J(e,t,n,r={}){var i,a,o;let{clone:c=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:f,shouldEmit:p}=r,m=b(),h=n||m?.emit||(i=m?.$emit)?.bind(m)||(o=(a=m?.proxy)?.$emit)?.bind(m?.proxy),g=u;t||=`modelValue`,g||=`update:${t.toString()}`;let _=e=>c?typeof c==`function`?c(e):Fo(e):e,v=()=>so(e[t])?_(e[t]):f,y=e=>{p?p(e)&&h(g,e):h(g,e)};if(l){let n=v(),r=R(n),i=!1;return H(()=>e[t],e=>{i||(i=!0,r.value=_(e),N(()=>i=!1))}),H(r,n=>{!i&&(n!==e[t]||d)&&y(n)},{deep:d}),r}else return s({get(){return v()},set(e){y(e)}})}function Bo(e){return e?e.flatMap(e=>e.type===t?Bo(e.children):[e]):[]}function Y(){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}const Vo=[`INPUT`,`TEXTAREA`];function Ho(e,t,n,r={}){if(!t||r.enableIgnoredElement&&Vo.includes(t.nodeName))return null;let{arrowKeyOptions:i=`both`,attributeName:a=`[data-radix-vue-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;return v||_?b=Uo(y,t,{goForward:_?m:c===`ltr`?d:f,loop:s}):h?b=y.at(0)||null:g&&(b=y.at(-1)||null),u&&b?.focus(),b}function Uo(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];return s?s.hasAttribute(`disabled`)&&s.getAttribute(`disabled`)!==`false`?Uo(e,s,n,r):s:null}function Wo(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 Go(e,t,n=`.`,r){if(!Wo(t))return Go(e,{},n,r);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:Wo(a)&&Wo(i[t])?i[t]=Go(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Ko(e){return(...t)=>t.reduce((t,n)=>Go(t,n,``,e),{})}const qo=Ko(),[Jo,Yo]=q(`ConfigProvider`),Xo=g({inheritAttrs:!1,__name:`ConfigProvider`,props:{dir:{default:`ltr`},scrollBody:{type:[Boolean,Object],default:!0},nonce:{default:void 0},useId:{type:Function,default:void 0}},setup(e){let t=e,{dir:n,scrollBody:r,nonce:i}=B(t);return Yo({dir:n,scrollBody:r,nonce:i,useId:t.useId}),(e,t)=>z(e.$slots,`default`)}});let Zo=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Qo=(e=21)=>{let t=``,n=e;for(;n--;)t+=Zo[Math.random()*64|0];return t};const $o=no(()=>{let e=R(new Map),t=R(),n=s(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=Jo({scrollBody:R(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.body.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,po&&i?.(),t.value=void 0};return H(n,(e,n)=>{var o;if(!oo)return;if(!e){n&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=(o=r.scrollBody)!=null&&o.value?typeof r.scrollBody.value==`object`?qo({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.body.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),po&&(i=Do(document,`touchmove`,e=>ns(e),{passive:!1})),N(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})},{immediate:!0,flush:`sync`}),e});function es(e){let t=Qo(6),n=$o();n.value.set(t,e??!1);let r=s({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return bo(()=>{n.value.delete(t)}),r}function ts(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)}const rs=`data-radix-vue-collection-item`;function os(e,t=rs){let n=e??Symbol();return{createCollection:e=>{let r=R([]);function i(){let n=To(e);return n?r.value=Array.from(n.querySelectorAll(`[${t}]:not([data-disabled])`)):r.value=[]}return re(()=>{r.value=[]}),I(i),oe(i),H(()=>e?.value,i,{immediate:!0}),se(n,r),r},injectCollection:()=>T(n,R([]))}}function ss(e){let t=R(e);function n(){return t.value}function r(e){t.value=e}function i(e,n){return new ji(t.value,n).format(e)}function a(e,t=!0){return ca(e)&&t?i(aa(e),{dateStyle:`long`,timeStyle:`long`}):i(aa(e),{dateStyle:`long`})}function o(e,n={}){return new ji(t.value,{month:`long`,year:`numeric`,...n}).format(e)}function s(e,n={}){return new ji(t.value,{month:`long`,...n}).format(e)}function c(){let e=sn(fn());return[1,2,3,4,5,6,7,8,9,10,11,12].map(t=>({label:s(aa(e.set({month:t}))),value:t}))}function l(e,n={}){return new ji(t.value,{year:`numeric`,...n}).format(e)}function u(e,n){return sa(e)?new ji(t.value,{...n,timeZone:e.timeZone}).formatToParts(aa(e)):new ji(t.value,n).formatToParts(aa(e))}function d(e,n=`narrow`){return new ji(t.value,{weekday:n}).format(e)}function f(e){var n;return(n=new ji(t.value,{hour:`numeric`,minute:`numeric`}).formatToParts(e).find(e=>e.type===`dayPeriod`))?.value===`PM`?`PM`:`AM`}let p={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`};function m(e,t,n={}){let r={...p,...n},i=u(e,r).find(e=>e.type===t);return i?i.value:``}return{setLocale:r,getLocale:n,fullMonth:s,fullYear:l,fullMonthAndYear:o,toParts:u,custom:i,part:m,dayPeriod:f,selectedDate:a,dayOfWeek:d,getMonths:c}}function cs(e){let t=Jo({dir:R(`ltr`)});return s(()=>{var n;return e?.value||(n=t.dir)?.value||`ltr`})}function ls(e){let t=b(),n=t?.type.emits,r={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[ye(i(t))]=(...n)=>e(t,...n)}),r}let us=0;function ds(){U(e=>{if(!oo)return;let t=document.querySelectorAll(`[data-radix-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??fs()),document.body.insertAdjacentElement(`beforeend`,t[1]??fs()),us++,e(()=>{us===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),us--})})}function fs(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function ps(e){return s(()=>{var t;return ro(e)?!!((t=To(e))!=null&&t.closest(`form`)):!0})}function ms(e){let t=b(),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=Se(e);return s(()=>{let e={},a=t?.vnode.props??{};return Object.keys(a).forEach(t=>{e[i(t)]=a[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function hs(e,t){let n=ms(e),r=t?ls(t):{};return s(()=>({...n.value,...r}))}function X(){let e=b(),t=R(),n=s(()=>{var e,n;return[`#text`,`#comment`].includes((e=t.value)?.$el.nodeName)?(n=t.value)?.$el.nextElementSibling:To(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 gs(e,t){let n=vo(!1,300),r=R(null),i=eo();function a(){r.value=null,n.value=!1}function o(e,t){let i=e.currentTarget,a={x:e.clientX,y:e.clientY},o=_s(a,i.getBoundingClientRect()),s=vs(a,o),c=ys(t.getBoundingClientRect()),l=xs([...s,...c]);r.value=l,n.value=!0}return U(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(()=>{var n,a;(n=e.value)==null||n.removeEventListener(`pointerleave`,r),(a=t.value)==null||a.removeEventListener(`pointerleave`,i)})}}),U(n=>{var o;if(r.value){let s=n=>{var o,s;if(!r.value)return;let c=n.target,l={x:n.clientX,y:n.clientY},u=(o=e.value)?.contains(c)||(s=t.value)?.contains(c),d=!bs(l,r.value),f=!!c.closest(`[data-grace-area-trigger]`);u?a():(d||f)&&(a(),i.trigger())};(o=e.value)==null||o.ownerDocument.addEventListener(`pointermove`,s),n(()=>{var t;return(t=e.value)?.ownerDocument.removeEventListener(`pointermove`,s)})}}),{isPointerInTransit:n,onPointerExit:i.on}}function _s(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 vs(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 ys(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 bs(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&&(i=!i)}return i}function xs(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),Ss(t)}function Ss(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 Cs=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ws=new WeakMap,Ts=new WeakMap,Es={},Ds=0,Os=function(e){return e&&(e.host||Os(e.parentNode))},ks=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Os(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})},As=function(e,t,n,r){var i=ks(t,Array.isArray(e)?e:[e]);Es[n]||(Es[n]=new WeakMap);var a=Es[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=(ws.get(e)||0)+1,l=(a.get(e)||0)+1;ws.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ts.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(),Ds++,function(){o.forEach(function(e){var t=ws.get(e)-1,i=a.get(e)-1;ws.set(e,t),a.set(e,i),t||(Ts.has(e)||e.removeAttribute(r),Ts.delete(e)),i||e.removeAttribute(n)}),Ds--,Ds||(ws=new WeakMap,ws=new WeakMap,Ts=new WeakMap,Es={})}},js=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=Cs(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),As(r,i,n,`aria-hidden`)):function(){return null}};function Ms(e){let t;H(()=>To(e),e=>{e?t=js(e):t&&t()}),ae(()=>{t&&t()})}let Ns=0;function Z(e,t=`radix`){if(e)return e;let n=Jo({useId:void 0});return we?`${t}-${we()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Ns}`}function Ps(e,t){let n=R(),r=(r,i)=>{if(t.multiple&&Array.isArray(e.value))if(t.selectionBehavior===`replace`)e.value=[r],n.value=r;else{let t=e.value.findIndex(e=>i(e));t===-1?e.value.push(r):e.value.splice(t,1)}else t.selectionBehavior===`replace`?e.value={...r}:!Array.isArray(e.value)&&i(e.value)?e.value=void 0:e.value={...r};return e.value};function i(r,i,a,o){var s;if(!(n!=null&&n.value)||!t.multiple||!Array.isArray(e.value))return;let c=(s=a().filter(e=>e.ref.dataset.disabled!==``).find(e=>e.ref===i))?.value;if(!c)return;let l=null;switch(r){case`prev`:case`next`:l=Aa(o,n.value,c);break;case`first`:l=Aa(o,n.value,o?.[0]);break;case`last`:l=Aa(o,n.value,o?.[o.length-1]);break}e.value=l}return{firstValue:n,onSelectItem:r,handleMultipleReplace:i}}function Fs(e){let t=R(),n=s(()=>{var e;return(e=t.value)?.width??0}),r=s(()=>{var e;return(e=t.value)?.height??0});return I(()=>{let n=To(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 Is(e,t){let n=R(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}const Ls=`data-item-text`;function Rs(e){let t=vo(``,1e3);return{search:t,handleTypeaheadSearch:(n,r)=>{if(!(e!=null&&e.value)&&!r)return;t.value+=n;let i=e?.value??r,a=Y(),o=i.map(e=>{var t;return{ref:e,textValue:(t=(e.querySelector(`[${Ls}]`)??e).textContent)?.trim()??``}}),s=o.find(e=>e.ref===a),c=o.map(e=>e.textValue),l=Bs(c,t.value,s?.textValue),u=o.find(e=>e.textValue===l);return u&&u.ref.focus(),u?.ref},resetTypeahead:()=>{t.value=``}}}function zs(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Bs(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=zs(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Vs(){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`}}const Hs=g({name:`PrimitiveSlot`,inheritAttrs:!1,setup(t,{attrs:n,slots:r}){return()=>{var t,i;if(!r.default)return null;let o=Bo(r.default()),s=o.findIndex(t=>t.type!==e);if(s===-1)return o;let c=o[s];(t=c.props)==null||delete t.ref;let l=c.props?j(n,c.props):n;n.class&&(i=c.props)!=null&&i.class&&delete c.props.class;let u=a(c,l);for(let e in l)e.startsWith(`on`)&&(u.props||={},u.props[e]=l[e]);return o.length===1?u:(o[s]=u,o)}}}),Q=g({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`&&[`area`,`img`,`input`].includes(r)?()=>C(r,t):r===`template`?()=>C(Hs,t,{default:n.default}):()=>C(e.as,t,{default:n.default})}});function Us(){let e=R(),t=s(()=>{var t,n;return[`#text`,`#comment`].includes((t=e.value)?.$el.nodeName)?(n=e.value)?.$el.nextElementSibling:To(e)});return{primitiveElement:e,currentElement:t}}const[Ws,Gs]=q(`CollapsibleRoot`),Ks=g({__name:`CollapsibleRoot`,props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`],setup(e,{expose:t,emit:n}){let r=e,i=J(r,`open`,n,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=J(r,`disabled`);return Gs({contentId:``,disabled:a,open:i,onOpenToggle:()=>{i.value=!i.value}}),t({open:i}),X(),(e,t)=>(L(),l(V(Q),{as:e.as,"as-child":r.asChild,"data-state":V(i)?`open`:`closed`,"data-disabled":V(a)?``:void 0},{default:W(()=>[z(e.$slots,`default`,{open:V(i)})]),_:3},8,[`as`,`as-child`,`data-state`,`data-disabled`]))}}),qs=g({__name:`CollapsibleTrigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(e){let t=e;X();let n=Ws();return(e,r)=>{var i,a;return L(),l(V(Q),{type:e.as===`button`?`button`:void 0,as:e.as,"as-child":t.asChild,"aria-controls":V(n).contentId,"aria-expanded":V(n).open.value,"data-state":V(n).open.value?`open`:`closed`,"data-disabled":(i=V(n).disabled)!=null&&i.value?``:void 0,disabled:(a=V(n).disabled)?.value,onClick:V(n).onOpenToggle},{default:W(()=>[z(e.$slots,`default`)]),_:3},8,[`type`,`as`,`as-child`,`aria-controls`,`aria-expanded`,`data-state`,`data-disabled`,`disabled`,`onClick`])}}});function Js(e,t){var n;let r=R({}),i=R(`none`),a=R(e),o=e.value?`mounted`:`unmounted`,c,l=(n=t.value)?.ownerDocument.defaultView??Eo,{state:u,dispatch:d}=Is(o,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),f=e=>{var n;if(oo){let r=new CustomEvent(e,{bubbles:!1,cancelable:!1});(n=t.value)==null||n.dispatchEvent(r)}};H(e,async(e,n)=>{var a;let o=n!==e;if(await N(),o){let o=i.value,s=Ys(t.value);e?(d(`MOUNT`),f(`enter`),s===`none`&&f(`after-enter`)):s===`none`||(a=r.value)?.display===`none`?(d(`UNMOUNT`),f(`leave`),f(`after-leave`)):n&&o!==s?(d(`ANIMATION_OUT`),f(`leave`)):(d(`UNMOUNT`),f(`after-leave`))}},{immediate:!0});let p=e=>{let n=Ys(t.value),r=n.includes(e.animationName),i=u.value===`mounted`?`enter`:`leave`;if(e.target===t.value&&r&&(f(`after-${i}`),d(`ANIMATION_END`),!a.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,c=l?.setTimeout(()=>{var n;(n=t.value)?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}e.target===t.value&&n===`none`&&d(`ANIMATION_END`)},m=e=>{e.target===t.value&&(i.value=Ys(t.value))},h=H(t,(e,t)=>{e?(r.value=getComputedStyle(e),e.addEventListener(`animationstart`,m),e.addEventListener(`animationcancel`,p),e.addEventListener(`animationend`,p)):(d(`ANIMATION_END`),c!==void 0&&l?.clearTimeout(c),t?.removeEventListener(`animationstart`,m),t?.removeEventListener(`animationcancel`,p),t?.removeEventListener(`animationend`,p))},{immediate:!0}),g=H(u,()=>{let e=Ys(t.value);i.value=u.value===`mounted`?e:`none`});return ae(()=>{h(),g()}),{isPresent:s(()=>[`mounted`,`unmountSuspended`].includes(u.value))}}function Ys(e){return e&&getComputedStyle(e).animationName||`none`}const Xs=g({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var r;let{present:i,forceMount:a}=B(e),o=R(),{isPresent:s}=Js(i,o);n({present:s});let c=t.default({present:s});c=Bo(c||[]);let l=b();if(c&&c?.length>1){let e=(r=l?.parent)!=null&&r.type.name?`<${l.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()=>a.value||i.value||s.value?C(t.default({present:s})[0],{ref:e=>{let t=To(e);return typeof t?.hasAttribute>`u`||(t!=null&&t.hasAttribute(`data-radix-popper-content-wrapper`)?o.value=t.firstElementChild:o.value=t),t}}):null}}),Zs=g({inheritAttrs:!1,__name:`CollapsibleContent`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){let t=e,n=Ws();n.contentId||=Z(void 0,`radix-vue-collapsible-content`);let r=R(),{forwardRef:i,currentElement:a}=X(),o=R(0),c=R(0),d=s(()=>n.open.value),f=R(d.value),p=R();return H(()=>{var e;return[d.value,(e=r.value)?.present]},async()=>{await N();let e=a.value;if(!e)return;p.value=p.value||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();c.value=t.height,o.value=t.width,f.value||(e.style.transitionDuration=p.value.transitionDuration,e.style.animationName=p.value.animationName)},{immediate:!0}),I(()=>{requestAnimationFrame(()=>{f.value=!1})}),(e,a)=>(L(),l(V(Xs),{ref_key:`presentRef`,ref:r,present:e.forceMount||V(n).open.value,"force-mount":!0},{default:W(()=>{var a,s;return[m(V(Q),j(e.$attrs,{id:V(n).contentId,ref:V(i),"as-child":t.asChild,as:e.as,"data-state":V(n).open.value?`open`:`closed`,"data-disabled":(a=V(n).disabled)!=null&&a.value?``:void 0,hidden:!((s=r.value)!=null&&s.present),style:{"--radix-collapsible-content-height":`${c.value}px`,"--radix-collapsible-content-width":`${o.value}px`}}),{default:W(()=>{var t;return[(t=r.value)!=null&&t.present?z(e.$slots,`default`,{key:0}):u(``,!0)]}),_:3},16,[`id`,`as-child`,`as`,`data-state`,`data-disabled`,`hidden`,`style`])]}),_:3},8,[`present`]))}});function Qs({type:e,defaultValue:t,modelValue:n}){let r=n||t;if(Ma(e)&&Ma(n)&&Ma(t))throw Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(n!==void 0&&t!==void 0&&typeof n!=typeof t)throw Error(`Invalid prop \`value\` of value \`${n}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${t}\`. The \`value\` prop must be: ${e===`single`?`- a string`:e===`multiple`?`- an array of strings`:`- a string diff --git a/assets/effect-DBSVVF8G-BTnTwOUs.js b/assets/effect-DBSVVF8G-BWPDDm8N.js similarity index 74% rename from assets/effect-DBSVVF8G-BTnTwOUs.js rename to assets/effect-DBSVVF8G-BWPDDm8N.js index d2c6df88c0633e921e2a93533877b9a73793011f..626a866569d0be1820e4ce0cf26009955a76dbad 100644 --- a/assets/effect-DBSVVF8G-BTnTwOUs.js +++ b/assets/effect-DBSVVF8G-BWPDDm8N.js @@ -1 +1 @@ -import{__vitePreload as e,tryImport as t}from"./index-jH8PbleY.js";const n=async()=>{let{JSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_effect_xsschema-DWjo7B8g.js`),[]),`effect`);return e=>n.make(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file +import{__vitePreload as e,tryImport as t}from"./index-C2W4XoWv.js";const n=async()=>{let{JSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_effect_xsschema-DWjo7B8g.js`),[]),`effect`);return e=>n.make(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/elevenlabs-Dn_js3QH.js b/assets/elevenlabs-Svidxf1r.js similarity index 98% rename from assets/elevenlabs-Dn_js3QH.js rename to assets/elevenlabs-Svidxf1r.js index 6e4b8762c13282711b80db4ba3326b8dd0b95e5a..8e4e73ecfef1c9944a62952e49ffdf28d82c0aad 100644 --- a/assets/elevenlabs-Dn_js3QH.js +++ b/assets/elevenlabs-Svidxf1r.js @@ -1 +1 @@ -import{FieldCheckbox_default as e,FieldRange_default as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,ref as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useSpeechStore as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={flex:`~ col gap-4`},x=`elevenlabs`,S=`eleven_multilingual_v2`;var C=c({__name:`elevenlabs`,setup(c){let y={similarityBoost:.75,stability:.5,speed:1,style:0,useSpeakerBoost:!0},C=d(0),w=d(1),T=d(0),E=d(0),D=d(.5),O=d(.75),k=d(!1),A=g(),j=h(),{providers:M}=f(j),{t:N}=m(),P=i(()=>{var e;return!!(e=M.value[x])?.apiKey}),F=i(()=>A.availableVoices[x]||[]);async function I(e,t,n){let r=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 l(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)}),_(C,async()=>{let e=j.getProviderConfig(x);e.pitch=C.value}),_(w,async()=>{let e=j.getProviderConfig(x);e.speed=w.value}),_(T,async()=>{let e=j.getProviderConfig(x);e.volume=T.value}),_(E,async()=>{let e=j.getProviderConfig(x);e.style=E.value}),_(D,async()=>{let e=j.getProviderConfig(x);e.stability=D.value}),_(O,async()=>{let e=j.getProviderConfig(x);e.similarityBoost=O.value}),_(k,async()=>{let e=j.getProviderConfig(x);e.useSpeakerBoost=k.value}),_(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}),(i,c)=>(u(),o(p(r),{"provider-id":x,"default-model":S,"additional-settings":y},{"voice-settings":v(()=>[a(`div`,b,[s(p(t),{modelValue:C.value,"onUpdate:modelValue":c[0]||=e=>C.value=e,label:p(N)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:p(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`]),s(p(t),{modelValue:w.value,"onUpdate:modelValue":c[1]||=e=>w.value=e,label:p(N)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:p(N)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:T.value,"onUpdate:modelValue":c[2]||=e=>T.value=e,label:p(N)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:p(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`]),s(p(t),{modelValue:E.value,"onUpdate:modelValue":c[3]||=e=>E.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:D.value,"onUpdate:modelValue":c[4]||=e=>D.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:O.value,"onUpdate:modelValue":c[5]||=e=>O.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(e),{modelValue:k.value,"onUpdate:modelValue":c[6]||=e=>k.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.description`)},null,8,[`modelValue`,`label`,`description`])])]),playground:v(()=>[s(p(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{FieldCheckbox_default as e,FieldRange_default as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,ref as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useSpeechStore as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={flex:`~ col gap-4`},x=`elevenlabs`,S=`eleven_multilingual_v2`;var C=c({__name:`elevenlabs`,setup(c){let y={similarityBoost:.75,stability:.5,speed:1,style:0,useSpeakerBoost:!0},C=d(0),w=d(1),T=d(0),E=d(0),D=d(.5),O=d(.75),k=d(!1),A=g(),j=h(),{providers:M}=f(j),{t:N}=m(),P=i(()=>{var e;return!!(e=M.value[x])?.apiKey}),F=i(()=>A.availableVoices[x]||[]);async function I(e,t,n){let r=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 l(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)}),_(C,async()=>{let e=j.getProviderConfig(x);e.pitch=C.value}),_(w,async()=>{let e=j.getProviderConfig(x);e.speed=w.value}),_(T,async()=>{let e=j.getProviderConfig(x);e.volume=T.value}),_(E,async()=>{let e=j.getProviderConfig(x);e.style=E.value}),_(D,async()=>{let e=j.getProviderConfig(x);e.stability=D.value}),_(O,async()=>{let e=j.getProviderConfig(x);e.similarityBoost=O.value}),_(k,async()=>{let e=j.getProviderConfig(x);e.useSpeakerBoost=k.value}),_(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}),(i,c)=>(u(),o(p(r),{"provider-id":x,"default-model":S,"additional-settings":y},{"voice-settings":v(()=>[a(`div`,b,[s(p(t),{modelValue:C.value,"onUpdate:modelValue":c[0]||=e=>C.value=e,label:p(N)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:p(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`]),s(p(t),{modelValue:w.value,"onUpdate:modelValue":c[1]||=e=>w.value=e,label:p(N)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:p(N)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:T.value,"onUpdate:modelValue":c[2]||=e=>T.value=e,label:p(N)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:p(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`]),s(p(t),{modelValue:E.value,"onUpdate:modelValue":c[3]||=e=>E.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.style.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:D.value,"onUpdate:modelValue":c[4]||=e=>D.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.stability.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:O.value,"onUpdate:modelValue":c[5]||=e=>O.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.simularity-boost.description`),min:0,max:1,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(e),{modelValue:k.value,"onUpdate:modelValue":c[6]||=e=>k.value=e,label:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.label`),description:p(N)(`settings.pages.providers.provider.elevenlabs.fields.field.speaker-boost.description`)},null,8,[`modelValue`,`label`,`description`])])]),playground:v(()=>[s(p(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-BBR1pGN_.js b/assets/emotions-5q0BUTGM.js similarity index 87% rename from assets/emotions-BBR1pGN_.js rename to assets/emotions-5q0BUTGM.js index 733876b7af5441aa9f6e307520630da1d1f5862a..522c9d6f482c7e80cf478d596bcb97f5a55aa2bf 100644 --- a/assets/emotions-BBR1pGN_.js +++ b/assets/emotions-5q0BUTGM.js @@ -1 +1 @@ -import"./Basic-DNa_H8OA.js";import{Textarea_default as e}from"./Textarea-D8CbwmdL.js";import{Fragment as t,createBaseVNode as n,createElementBlock as r,createVNode as i,defineComponent as a,llmInferenceEndToken as o,openBlock as s,ref as c,renderList as l,toDisplayString as u,unref as d,useEmotionsMessageQueue as f,useQueue as p}from"./index-jH8PbleY.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=a({__name:`emotions`,setup(a){let b=c(``),x=c([]),S=c([]),C=c(!1),w=p({handlers:[async e=>{S.value.push(e.data)}]}),T=f(w);function E(){C.value=!0;let e=b.value.split(``);for(let t of e)T.add(t);T.add(o),b.value=``,C.value=!1}return(a,o)=>(s(),r(`div`,m,[n(`div`,h,[i(d(e),{modelValue:b.value,"onUpdate:modelValue":o[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`]),n(`button`,g,u(C.value?`Processing...`:`Send`),1)]),n(`div`,_,[n(`div`,v,[o[1]||=n(`h3`,{"font-normal":``},` Messages `,-1),(s(!0),r(t,null,l(x.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))]),n(`div`,y,[o[2]||=n(`h3`,{"font-normal":``},` Emotions `,-1),(s(!0),r(t,null,l(S.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))])])]))}}),x=b;export{x as default}; \ No newline at end of file +import"./Basic-eHldbasx.js";import{Textarea_default as e}from"./Textarea-BvqhLeCk.js";import{Fragment as t,createBaseVNode as n,createElementBlock as r,createVNode as i,defineComponent as a,llmInferenceEndToken as o,openBlock as s,ref as c,renderList as l,toDisplayString as u,unref as d,useEmotionsMessageQueue as f,useQueue as p}from"./index-C2W4XoWv.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=a({__name:`emotions`,setup(a){let b=c(``),x=c([]),S=c([]),C=c(!1),w=p({handlers:[async e=>{S.value.push(e.data)}]}),T=f(w);function E(){C.value=!0;let e=b.value.split(``);for(let t of e)T.add(t);T.add(o),b.value=``,C.value=!1}return(a,o)=>(s(),r(`div`,m,[n(`div`,h,[i(d(e),{modelValue:b.value,"onUpdate:modelValue":o[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`]),n(`button`,g,u(C.value?`Processing...`:`Send`),1)]),n(`div`,_,[n(`div`,v,[o[1]||=n(`h3`,{"font-normal":``},` Messages `,-1),(s(!0),r(t,null,l(x.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))]),n(`div`,y,[o[2]||=n(`h3`,{"font-normal":``},` Emotions `,-1),(s(!0),r(t,null,l(S.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))])])]))}}),x=b;export{x as default}; \ No newline at end of file diff --git a/assets/esm-BEkGVbXU.js b/assets/esm-B_mnbyrn.js similarity index 99% rename from assets/esm-BEkGVbXU.js rename to assets/esm-B_mnbyrn.js index 5881193329fb34460f844b25843983cc58c896dd..5083aaec019ecdf653eb7e39160c0d99cfde7ae8 100644 --- a/assets/esm-BEkGVbXU.js +++ b/assets/esm-B_mnbyrn.js @@ -1,3 +1,3 @@ -import{ZodFirstPartyTypeKind as e}from"./index-jH8PbleY.js";const t=Symbol(`Let zodToJsonSchema decide on which parser to use`),n={name:void 0,$refStrategy:`root`,basePath:[`#`],effectStrategy:`input`,pipeStrategy:`all`,dateStrategy:`format:date-time`,mapStrategy:`entries`,removeAdditionalStrategy:`passthrough`,allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:`definitions`,target:`jsonSchema7`,strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:`escape`,applyRegexFlags:!1,emailStrategy:`format:email`,base64Strategy:`contentEncoding:base64`,nameStrategy:`ref`,openAiAnyTypeName:`OpenAiAnyType`},r=e=>typeof e==`string`?{...n,name:e}:{...n,...e},i=e=>{let t=r(e),n=t.name===void 0?t.basePath:[...t.basePath,t.definitionPath,t.name];return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}};function a(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function o(e,t,n,r,i){e[t]=n,a(e,t,r,i)}const s=(e,t)=>{let n=0;for(;n$(e.innerType._def,t);function m(e,t,n){let r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((n,r)=>m(e,t,n))};switch(r){case`string`:case`format:date-time`:return{type:`string`,format:`date-time`};case`format:date`:return{type:`string`,format:`date`};case`integer`:return h(e,t)}}const h=(e,t)=>{let n={type:`integer`,format:`unix-time`};if(t.target===`openApi3`)return n;for(let r of e.checks)switch(r.kind){case`min`:o(n,`minimum`,r.value,r.message,t);break;case`max`:o(n,`maximum`,r.value,r.message,t);break}return n};function g(e,t){return{...$(e.innerType._def,t),default:e.defaultValue()}}function _(e,t){return t.effectStrategy===`input`?$(e.schema._def,t):c(t)}function v(e){return{type:`string`,enum:Array.from(e.values)}}const y=e=>`type`in e&&e.type===`string`?!1:`allOf`in e;function b(e,t){let n=[$(e.left._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]}),$(e.right._def,{...t,currentPath:[...t.currentPath,`allOf`,`1`]})].filter(e=>!!e),r=t.target===`jsonSchema2019-09`?{unevaluatedProperties:!1}:void 0,i=[];return n.forEach(e=>{if(y(e))i.push(...e.allOf),e.unevaluatedProperties===void 0&&(r=void 0);else{let t=e;if(`additionalProperties`in e&&e.additionalProperties===!1){let{additionalProperties:n,...r}=e;t=r}else r=void 0;i.push(t)}}),i.length?{allOf:i,...r}:void 0}function x(e,t){let n=typeof e.value;return n!==`bigint`&&n!==`number`&&n!==`boolean`&&n!==`string`?{type:Array.isArray(e.value)?`array`:`object`}:t.target===`openApi3`?{type:n===`bigint`?`integer`:n,enum:[e.value]}:{type:n===`bigint`?`integer`:n,const:e.value}}let S;const C={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(S===void 0&&(S=RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)),S),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function w(e,t){let n={type:`string`};if(e.checks)for(let r of e.checks)switch(r.kind){case`min`:o(n,`minLength`,typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,r.message,t);break;case`max`:o(n,`maxLength`,typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case`email`:switch(t.emailStrategy){case`format:email`:O(n,`email`,r.message,t);break;case`format:idn-email`:O(n,`idn-email`,r.message,t);break;case`pattern:zod`:k(n,C.email,r.message,t);break}break;case`url`:O(n,`uri`,r.message,t);break;case`uuid`:O(n,`uuid`,r.message,t);break;case`regex`:k(n,r.regex,r.message,t);break;case`cuid`:k(n,C.cuid,r.message,t);break;case`cuid2`:k(n,C.cuid2,r.message,t);break;case`startsWith`:k(n,RegExp(`^${T(r.value,t)}`),r.message,t);break;case`endsWith`:k(n,RegExp(`${T(r.value,t)}$`),r.message,t);break;case`datetime`:O(n,`date-time`,r.message,t);break;case`date`:O(n,`date`,r.message,t);break;case`time`:O(n,`time`,r.message,t);break;case`duration`:O(n,`duration`,r.message,t);break;case`length`:o(n,`minLength`,typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,r.message,t),o(n,`maxLength`,typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case`includes`:k(n,RegExp(T(r.value,t)),r.message,t);break;case`ip`:r.version!==`v6`&&O(n,`ipv4`,r.message,t),r.version!==`v4`&&O(n,`ipv6`,r.message,t);break;case`base64url`:k(n,C.base64url,r.message,t);break;case`jwt`:k(n,C.jwt,r.message,t);break;case`cidr`:r.version!==`v6`&&k(n,C.ipv4Cidr,r.message,t),r.version!==`v4`&&k(n,C.ipv6Cidr,r.message,t);break;case`emoji`:k(n,C.emoji(),r.message,t);break;case`ulid`:k(n,C.ulid,r.message,t);break;case`base64`:switch(t.base64Strategy){case`format:binary`:O(n,`binary`,r.message,t);break;case`contentEncoding:base64`:o(n,`contentEncoding`,`base64`,r.message,t);break;case`pattern:zod`:k(n,C.base64,r.message,t);break}break;case`nanoid`:k(n,C.nanoid,r.message,t);case`toLowerCase`:case`toUpperCase`:case`trim`:break;default:(e=>{})(r)}return n}function T(e,t){return t.patternStrategy===`escape`?D(e):e}const E=new Set(`ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789`);function D(e){let t=``;for(let n=0;ne.format)?(e.anyOf||=[],e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):o(e,`format`,t,n,r)}function k(e,t,n,r){var i;e.pattern||(i=e.allOf)?.some(e=>e.pattern)?(e.allOf||=[],e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:A(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):o(e,`pattern`,A(t,r),n,r)}function A(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes(`i`),m:e.flags.includes(`m`),s:e.flags.includes(`s`)},r=n.i?e.source.toLowerCase():e.source,i=``,a=!1,o=!1,s=!1;for(let e=0;etypeof e==`string`?{...n,name:e}:{...n,...e},i=e=>{let t=r(e),n=t.name===void 0?t.basePath:[...t.basePath,t.definitionPath,t.name];return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}};function a(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}function o(e,t,n,r,i){e[t]=n,a(e,t,r,i)}const s=(e,t)=>{let n=0;for(;n$(e.innerType._def,t);function m(e,t,n){let r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((n,r)=>m(e,t,n))};switch(r){case`string`:case`format:date-time`:return{type:`string`,format:`date-time`};case`format:date`:return{type:`string`,format:`date`};case`integer`:return h(e,t)}}const h=(e,t)=>{let n={type:`integer`,format:`unix-time`};if(t.target===`openApi3`)return n;for(let r of e.checks)switch(r.kind){case`min`:o(n,`minimum`,r.value,r.message,t);break;case`max`:o(n,`maximum`,r.value,r.message,t);break}return n};function g(e,t){return{...$(e.innerType._def,t),default:e.defaultValue()}}function _(e,t){return t.effectStrategy===`input`?$(e.schema._def,t):c(t)}function v(e){return{type:`string`,enum:Array.from(e.values)}}const y=e=>`type`in e&&e.type===`string`?!1:`allOf`in e;function b(e,t){let n=[$(e.left._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]}),$(e.right._def,{...t,currentPath:[...t.currentPath,`allOf`,`1`]})].filter(e=>!!e),r=t.target===`jsonSchema2019-09`?{unevaluatedProperties:!1}:void 0,i=[];return n.forEach(e=>{if(y(e))i.push(...e.allOf),e.unevaluatedProperties===void 0&&(r=void 0);else{let t=e;if(`additionalProperties`in e&&e.additionalProperties===!1){let{additionalProperties:n,...r}=e;t=r}else r=void 0;i.push(t)}}),i.length?{allOf:i,...r}:void 0}function x(e,t){let n=typeof e.value;return n!==`bigint`&&n!==`number`&&n!==`boolean`&&n!==`string`?{type:Array.isArray(e.value)?`array`:`object`}:t.target===`openApi3`?{type:n===`bigint`?`integer`:n,enum:[e.value]}:{type:n===`bigint`?`integer`:n,const:e.value}}let S;const C={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(S===void 0&&(S=RegExp(`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,`u`)),S),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function w(e,t){let n={type:`string`};if(e.checks)for(let r of e.checks)switch(r.kind){case`min`:o(n,`minLength`,typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,r.message,t);break;case`max`:o(n,`maxLength`,typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case`email`:switch(t.emailStrategy){case`format:email`:O(n,`email`,r.message,t);break;case`format:idn-email`:O(n,`idn-email`,r.message,t);break;case`pattern:zod`:k(n,C.email,r.message,t);break}break;case`url`:O(n,`uri`,r.message,t);break;case`uuid`:O(n,`uuid`,r.message,t);break;case`regex`:k(n,r.regex,r.message,t);break;case`cuid`:k(n,C.cuid,r.message,t);break;case`cuid2`:k(n,C.cuid2,r.message,t);break;case`startsWith`:k(n,RegExp(`^${T(r.value,t)}`),r.message,t);break;case`endsWith`:k(n,RegExp(`${T(r.value,t)}$`),r.message,t);break;case`datetime`:O(n,`date-time`,r.message,t);break;case`date`:O(n,`date`,r.message,t);break;case`time`:O(n,`time`,r.message,t);break;case`duration`:O(n,`duration`,r.message,t);break;case`length`:o(n,`minLength`,typeof n.minLength==`number`?Math.max(n.minLength,r.value):r.value,r.message,t),o(n,`maxLength`,typeof n.maxLength==`number`?Math.min(n.maxLength,r.value):r.value,r.message,t);break;case`includes`:k(n,RegExp(T(r.value,t)),r.message,t);break;case`ip`:r.version!==`v6`&&O(n,`ipv4`,r.message,t),r.version!==`v4`&&O(n,`ipv6`,r.message,t);break;case`base64url`:k(n,C.base64url,r.message,t);break;case`jwt`:k(n,C.jwt,r.message,t);break;case`cidr`:r.version!==`v6`&&k(n,C.ipv4Cidr,r.message,t),r.version!==`v4`&&k(n,C.ipv6Cidr,r.message,t);break;case`emoji`:k(n,C.emoji(),r.message,t);break;case`ulid`:k(n,C.ulid,r.message,t);break;case`base64`:switch(t.base64Strategy){case`format:binary`:O(n,`binary`,r.message,t);break;case`contentEncoding:base64`:o(n,`contentEncoding`,`base64`,r.message,t);break;case`pattern:zod`:k(n,C.base64,r.message,t);break}break;case`nanoid`:k(n,C.nanoid,r.message,t);case`toLowerCase`:case`toUpperCase`:case`trim`:break;default:(e=>{})(r)}return n}function T(e,t){return t.patternStrategy===`escape`?D(e):e}const E=new Set(`ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789`);function D(e){let t=``;for(let n=0;ne.format)?(e.anyOf||=[],e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&r.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):o(e,`format`,t,n,r)}function k(e,t,n,r){var i;e.pattern||(i=e.allOf)?.some(e=>e.pattern)?(e.allOf||=[],e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&r.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:A(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):o(e,`pattern`,A(t,r),n,r)}function A(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes(`i`),m:e.flags.includes(`m`),s:e.flags.includes(`s`)},r=n.i?e.source.toLowerCase():e.source,i=``,a=!1,o=!1,s=!1;for(let e=0;e({...e,[r]:$(t.valueType._def,{...n,currentPath:[...n.currentPath,`properties`,r]})??c(n)}),{}),additionalProperties:n.rejectedAdditionalProperties};let u={type:`object`,additionalProperties:$(t.valueType._def,{...n,currentPath:[...n.currentPath,`additionalProperties`]})??n.allowedAdditionalProperties};if(n.target===`openApi3`)return u;if((i=t.keyType)?._def.typeName===e.ZodString&&(a=t.keyType._def.checks)?.length){let{type:e,...r}=w(t.keyType._def,n);return{...u,propertyNames:r}}else if((o=t.keyType)?._def.typeName===e.ZodEnum)return{...u,propertyNames:{enum:t.keyType._def.values}};else if((s=t.keyType)?._def.typeName===e.ZodBranded&&t.keyType._def.type._def.typeName===e.ZodString&&(l=t.keyType._def.type._def.checks)?.length){let{type:e,...r}=f(t.keyType._def,n);return{...u,propertyNames:r}}return u}function M(e,t){if(t.mapStrategy===`record`)return j(e,t);let n=$(e.keyType._def,{...t,currentPath:[...t.currentPath,`items`,`items`,`0`]})||c(t),r=$(e.valueType._def,{...t,currentPath:[...t.currentPath,`items`,`items`,`1`]})||c(t);return{type:`array`,maxItems:125,items:{type:`array`,items:[n,r],minItems:2,maxItems:2}}}function N(e){let t=e.values,n=Object.keys(e.values).filter(e=>typeof t[t[e]]!=`number`),r=n.map(e=>t[e]),i=Array.from(new Set(r.map(e=>typeof e)));return{type:i.length===1?i[0]===`string`?`string`:`number`:[`string`,`number`],enum:r}}function P(e){return e.target===`openAi`?void 0:{not:c({...e,currentPath:[...e.currentPath,`not`]})}}function F(e){return e.target===`openApi3`?{enum:[`null`],nullable:!0}:{type:`null`}}const I={ZodString:`string`,ZodNumber:`number`,ZodBigInt:`integer`,ZodBoolean:`boolean`,ZodNull:`null`};function L(e,t){if(t.target===`openApi3`)return R(e,t);let n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(e=>e._def.typeName in I&&(!e._def.checks||!e._def.checks.length))){let e=n.reduce((e,t)=>{let n=I[t._def.typeName];return n&&!e.includes(n)?[...e,n]:e},[]);return{type:e.length>1?e:e[0]}}else if(n.every(e=>e._def.typeName===`ZodLiteral`&&!e.description)){let e=n.reduce((e,t)=>{let n=typeof t._def.value;switch(n){case`string`:case`number`:case`boolean`:return[...e,n];case`bigint`:return[...e,`integer`];case`object`:if(t._def.value===null)return[...e,`null`];case`symbol`:case`undefined`:case`function`:default:return e}},[]);if(e.length===n.length){let t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:n.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(n.every(e=>e._def.typeName===`ZodEnum`))return{type:`string`,enum:n.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return R(e,t)}const R=(e,t)=>{let n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>$(e._def,{...t,currentPath:[...t.currentPath,`anyOf`,`${n}`]})).filter(e=>!!e&&(!t.strictUnions||typeof e==`object`&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0};function z(e,t){if([`ZodString`,`ZodNumber`,`ZodBigInt`,`ZodBoolean`,`ZodNull`].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target===`openApi3`?{type:I[e.innerType._def.typeName],nullable:!0}:{type:[I[e.innerType._def.typeName],`null`]};if(t.target===`openApi3`){let n=$(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&`$ref`in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let n=$(e.innerType._def,{...t,currentPath:[...t.currentPath,`anyOf`,`0`]});return n&&{anyOf:[n,{type:`null`}]}}function B(e,t){let n={type:`number`};if(!e.checks)return n;for(let r of e.checks)switch(r.kind){case`int`:n.type=`integer`,a(n,`type`,r.message,t);break;case`min`:t.target===`jsonSchema7`?r.inclusive?o(n,`minimum`,r.value,r.message,t):o(n,`exclusiveMinimum`,r.value,r.message,t):(r.inclusive||(n.exclusiveMinimum=!0),o(n,`minimum`,r.value,r.message,t));break;case`max`:t.target===`jsonSchema7`?r.inclusive?o(n,`maximum`,r.value,r.message,t):o(n,`exclusiveMaximum`,r.value,r.message,t):(r.inclusive||(n.exclusiveMaximum=!0),o(n,`maximum`,r.value,r.message,t));break;case`multipleOf`:o(n,`multipleOf`,r.value,r.message,t);break}return n}function V(e,t){let n=t.target===`openAi`,r={type:`object`,properties:{}},i=[],a=e.shape();for(let e in a){let o=a[e];if(o===void 0||o._def===void 0)continue;let s=U(o);s&&n&&(o._def.typeName===`ZodOptional`&&(o=o._def.innerType),o.isNullable()||(o=o.nullable()),s=!1);let c=$(o._def,{...t,currentPath:[...t.currentPath,`properties`,e],propertyPath:[...t.currentPath,`properties`,e]});if(c===void 0)continue;r.properties[e]=c,s||i.push(e)}i.length&&(r.required=i);let o=H(e,t);return o!==void 0&&(r.additionalProperties=o),r}function H(e,t){if(e.catchall._def.typeName!==`ZodNever`)return $(e.catchall._def,{...t,currentPath:[...t.currentPath,`additionalProperties`]});switch(e.unknownKeys){case`passthrough`:return t.allowedAdditionalProperties;case`strict`:return t.rejectedAdditionalProperties;case`strip`:return t.removeAdditionalStrategy===`strict`?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function U(e){try{return e.isOptional()}catch{return!0}}const W=(e,t)=>{var n;if(t.currentPath.toString()===(n=t.propertyPath)?.toString())return $(e.innerType._def,t);let r=$(e.innerType._def,{...t,currentPath:[...t.currentPath,`anyOf`,`1`]});return r?{anyOf:[{not:c(t)},r]}:c(t)},G=(e,t)=>{if(t.pipeStrategy===`input`)return $(e.in._def,t);if(t.pipeStrategy===`output`)return $(e.out._def,t);let n=$(e.in._def,{...t,currentPath:[...t.currentPath,`allOf`,`0`]}),r=$(e.out._def,{...t,currentPath:[...t.currentPath,`allOf`,n?`1`:`0`]});return{allOf:[n,r].filter(e=>e!==void 0)}};function K(e,t){return $(e.type._def,t)}function q(e,t){let n=$(e.valueType._def,{...t,currentPath:[...t.currentPath,`items`]}),r={type:`array`,uniqueItems:!0,items:n};return e.minSize&&o(r,`minItems`,e.minSize.value,e.minSize.message,t),e.maxSize&&o(r,`maxItems`,e.maxSize.value,e.maxSize.message,t),r}function J(e,t){return e.rest?{type:`array`,minItems:e.items.length,items:e.items.map((e,n)=>$(e._def,{...t,currentPath:[...t.currentPath,`items`,`${n}`]})).reduce((e,t)=>t===void 0?e:[...e,t],[]),additionalItems:$(e.rest._def,{...t,currentPath:[...t.currentPath,`additionalItems`]})}:{type:`array`,minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,n)=>$(e._def,{...t,currentPath:[...t.currentPath,`items`,`${n}`]})).reduce((e,t)=>t===void 0?e:[...e,t],[])}}function Y(e){return{not:c(e)}}function X(e){return c(e)}const Z=(e,t)=>$(e.innerType._def,t),Q=(t,n,r)=>{switch(n){case e.ZodString:return w(t,r);case e.ZodNumber:return B(t,r);case e.ZodObject:return V(t,r);case e.ZodBigInt:return u(t,r);case e.ZodBoolean:return d();case e.ZodDate:return m(t,r);case e.ZodUndefined:return Y(r);case e.ZodNull:return F(r);case e.ZodArray:return l(t,r);case e.ZodUnion:case e.ZodDiscriminatedUnion:return L(t,r);case e.ZodIntersection:return b(t,r);case e.ZodTuple:return J(t,r);case e.ZodRecord:return j(t,r);case e.ZodLiteral:return x(t,r);case e.ZodEnum:return v(t);case e.ZodNativeEnum:return N(t);case e.ZodNullable:return z(t,r);case e.ZodOptional:return W(t,r);case e.ZodMap:return M(t,r);case e.ZodSet:return q(t,r);case e.ZodLazy:return()=>t.getter()._def;case e.ZodPromise:return K(t,r);case e.ZodNaN:case e.ZodNever:return P(r);case e.ZodEffects:return _(t,r);case e.ZodAny:return c(r);case e.ZodUnknown:return X(r);case e.ZodDefault:return g(t,r);case e.ZodBranded:return f(t,r);case e.ZodReadonly:return Z(t,r);case e.ZodCatch:return p(t,r);case e.ZodPipeline:return G(t,r);case e.ZodFunction:case e.ZodVoid:case e.ZodSymbol:return;default:return(e=>void 0)(n)}};function $(e,n,r=!1){let i=n.seen.get(e);if(n.override){var a;let o=(a=n.override)?.call(n,e,n,i,r);if(o!==t)return o}if(i&&!r){let e=ee(i,n);if(e!==void 0)return e}let o={def:e,path:n.currentPath,jsonSchema:void 0};n.seen.set(e,o);let s=Q(e,e.typeName,n),c=typeof s==`function`?$(s(),n):s;if(c&&te(e,n,c),n.postProcess){let t=n.postProcess(c,e,n);return o.jsonSchema=c,t}return o.jsonSchema=c,c}const ee=(e,t)=>{switch(t.$refStrategy){case`root`:return{$ref:e.path.join(`/`)};case`relative`:return{$ref:s(t.currentPath,e.path)};case`none`:case`seen`:return e.path.lengtht.currentPath[n]===e)?(console.warn(`Recursive reference detected at ${t.currentPath.join(`/`)}! Defaulting to any`),c(t)):t.$refStrategy===`seen`?c(t):void 0}},te=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n),ne=(e,t)=>{let n=i(t),r=typeof t==`object`&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>({...e,[t]:$(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??c(n)}),{}):void 0,a=typeof t==`string`?t:t?.nameStrategy===`title`?void 0:t?.name,o=$(e._def,a===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1)??c(n),s=typeof t==`object`&&t.name!==void 0&&t.nameStrategy===`title`?t.name:void 0;s!==void 0&&(o.title=s),n.flags.hasReferencedOpenAiAnyType&&(r||={},r[n.openAiAnyTypeName]||(r[n.openAiAnyTypeName]={type:[`string`,`number`,`integer`,`boolean`,`array`,`null`],items:{$ref:n.$refStrategy===`relative`?`1`:[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join(`/`)}}));let l=a===void 0?r?{...o,[n.definitionPath]:r}:o:{$ref:[...n.$refStrategy===`relative`?[]:n.basePath,n.definitionPath,a].join(`/`),[n.definitionPath]:{...r,[a]:o}};return n.target===`jsonSchema7`?l.$schema=`http://json-schema.org/draft-07/schema#`:(n.target===`jsonSchema2019-09`||n.target===`openAi`)&&(l.$schema=`https://json-schema.org/draft/2019-09/schema#`),n.target===`openAi`&&(`anyOf`in l||`oneOf`in l||`allOf`in l||`type`in l&&Array.isArray(l.type))&&console.warn(`Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.`),l};export{ne as zodToJsonSchema}; \ No newline at end of file diff --git a/assets/featherless-ai-C8B7oLSw.js b/assets/featherless-ai-DF2K1yKk.js similarity index 96% rename from assets/featherless-ai-C8B7oLSw.js rename to assets/featherless-ai-DF2K1yKk.js index 67b541f0b7517e673e6e0e7d6f28c39e3be712f4..4301ee8019e29dc48c12827eb4301edde17cfc3d 100644 --- a/assets/featherless-ai-C8B7oLSw.js +++ b/assets/featherless-ai-DF2K1yKk.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`featherless-ai`;var x=l({__name:`featherless-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`featherless-ai`;var x=l({__name:`featherless-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-BYIiopdJ.js b/assets/filter-message-CFDl3g_d.js similarity index 86% rename from assets/filter-message-BYIiopdJ.js rename to assets/filter-message-CFDl3g_d.js index 596ba83f2726ad9f753c49eb3852cffd80438e88..20b702f5a125211840f56e6ea318a8a82cac69d6 100644 --- a/assets/filter-message-BYIiopdJ.js +++ b/assets/filter-message-CFDl3g_d.js @@ -1 +1 @@ -import"./Basic-DNa_H8OA.js";import{Textarea_default as e}from"./Textarea-D8CbwmdL.js";import{createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,ref as o,sleep as s,toDisplayString as c,unref as l}from"./index-jH8PbleY.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=o(``),h=o(!1),g=o({content:``});async function _(){h.value=!0;let e=m.value.split(``),t=function(e){return e.Literal=`literal`,e.Special=`special`,e}({}),n=t.Literal,r=``;for(let i of e){await s(50);let e=n;i===`<`?e=t.Special:i===`>`&&(e=t.Literal),n===t.Literal&&e===t.Special&&(g.value.content+=r,r=``),n===t.Special&&e===t.Literal&&(r=``),n===t.Literal&&e===t.Literal&&(g.value.content+=i,r=``),n=e}r&&(g.value.content+=r),m.value=``,h.value=!1}return(i,o)=>(a(),n(`div`,u,[t(`div`,d,[r(l(e),{modelValue:m.value,"onUpdate:modelValue":o[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`]),t(`button`,f,c(h.value?`Processing...`:`Send`),1)]),t(`div`,p,[o[1]||=t(`h3`,{"font-normal":``},` Streaming Message `,-1),t(`div`,null,c(g.value.content),1)])]))}}),h=m;export{h as default}; \ No newline at end of file +import"./Basic-eHldbasx.js";import{Textarea_default as e}from"./Textarea-BvqhLeCk.js";import{createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,ref as o,sleep as s,toDisplayString as c,unref as l}from"./index-C2W4XoWv.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=o(``),h=o(!1),g=o({content:``});async function _(){h.value=!0;let e=m.value.split(``),t=function(e){return e.Literal=`literal`,e.Special=`special`,e}({}),n=t.Literal,r=``;for(let i of e){await s(50);let e=n;i===`<`?e=t.Special:i===`>`&&(e=t.Literal),n===t.Literal&&e===t.Special&&(g.value.content+=r,r=``),n===t.Special&&e===t.Literal&&(r=``),n===t.Literal&&e===t.Literal&&(g.value.content+=i,r=``),n=e}r&&(g.value.content+=r),m.value=``,h.value=!1}return(i,o)=>(a(),n(`div`,u,[t(`div`,d,[r(l(e),{modelValue:m.value,"onUpdate:modelValue":o[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`]),t(`button`,f,c(h.value?`Processing...`:`Send`),1)]),t(`div`,p,[o[1]||=t(`h3`,{"font-normal":``},` Streaming Message `,-1),t(`div`,null,c(g.value.content),1)])]))}}),h=m;export{h as default}; \ No newline at end of file diff --git a/assets/fireworks-ai-Lz68hytB.js b/assets/fireworks-ai-CKsopCss.js similarity index 96% rename from assets/fireworks-ai-Lz68hytB.js rename to assets/fireworks-ai-CKsopCss.js index 6f245afc6420fb14b72899b8f9d4a34564c14880..c858db3690da75d1f89d0de6670c46eecf4bb87a 100644 --- a/assets/fireworks-ai-Lz68hytB.js +++ b/assets/fireworks-ai-CKsopCss.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`fireworks-ai`;var x=l({__name:`fireworks-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`fireworks-ai`;var x=l({__name:`fireworks-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`fw-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-BXJrx6sY.js b/assets/general-MWxAYrT-.js similarity index 97% rename from assets/general-BXJrx6sY.js rename to assets/general-MWxAYrT-.js index 4d0c90bfde5ef6b97f3c8c42981b87b4c6a03684..02858da4a2f9512dfe16e6365e0d5645f07bc2b7 100644 --- a/assets/general-BXJrx6sY.js +++ b/assets/general-MWxAYrT-.js @@ -1 +1 @@ -import{FieldCheckbox_default as e,FieldSelect_default as t,Option_default as n,Select_default as r,createBaseVNode as i,createBlock as a,createElementBlock as o,createTextVNode as s,createVNode as c,defineComponent as l,isRef as u,openBlock as d,resolveDirective as f,toDisplayString as p,unref as m,useDark as h,useI18n as g,useSettings as _,withCtx as v,withDirectives as y}from"./index-jH8PbleY.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";const x={"rounded-lg":``,"bg-neutral-50":``,"p-4":``,"dark:bg-neutral-800":``,flex:`~ col gap-4`},S={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 C=l({__name:`general`,setup(l){let b=_(),{t:C,locale:w}=g(),T=h();return(l,h)=>{let g=f(`motion`);return d(),o(`div`,x,[y(c(m(e),{modelValue:m(T),"onUpdate:modelValue":h[0]||=e=>u(T)?T.value=e:null,"mb-2":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:270,delay:2*50,label:m(C)(`settings.theme.title`),description:m(C)(`settings.theme.description`)},null,8,[`modelValue`,`label`,`description`]),[[g]]),y((d(),a(m(t),{initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:280,delay:3*50,transition:`all ease-in-out duration-250`,label:m(C)(`settings.language.title`),description:m(C)(`settings.language.description`)},{default:v(()=>[c(m(r),{modelValue:m(b).language,"onUpdate:modelValue":h[1]||=e=>m(b).language=e,transition:`all ease-in-out duration-250`,"cursor-pointer":``,"bg-transparent":``,"outline-none":``},{default:v(({value:e})=>[i(`div`,null,p(e?l.$t(`settings.language.${e}`):m(C)(`settings.language.english`)),1)]),options:v(({hide:e})=>[c(m(n),{value:`en`,active:m(w)===`en`,onClick:t=>e()},{default:v(()=>[s(p(l.$t(`settings.language.english`)),1)]),_:2},1032,[`active`,`onClick`]),c(m(n),{value:`zh-Hans`,active:m(w)===`zh-Hans`,onClick:t=>e()},{default:v(()=>[s(p(l.$t(`settings.language.chinese`)),1)]),_:2},1032,[`active`,`onClick`])]),_:1},8,[`modelValue`])]),_:1},8,[`label`,`description`])),[[g]]),y((d(),o(`div`,S,h[2]||=[i(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)])),[[g]])])}}});typeof b==`function`&&b(C);var w=C;export{w as default}; \ No newline at end of file +import{FieldCheckbox_default as e,FieldSelect_default as t,Option_default as n,Select_default as r,createBaseVNode as i,createBlock as a,createElementBlock as o,createTextVNode as s,createVNode as c,defineComponent as l,isRef as u,openBlock as d,resolveDirective as f,toDisplayString as p,unref as m,useDark as h,useI18n as g,useSettings as _,withCtx as v,withDirectives as y}from"./index-C2W4XoWv.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";const x={"rounded-lg":``,"bg-neutral-50":``,"p-4":``,"dark:bg-neutral-800":``,flex:`~ col gap-4`},S={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 C=l({__name:`general`,setup(l){let b=_(),{t:C,locale:w}=g(),T=h();return(l,h)=>{let g=f(`motion`);return d(),o(`div`,x,[y(c(m(e),{modelValue:m(T),"onUpdate:modelValue":h[0]||=e=>u(T)?T.value=e:null,"mb-2":``,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:270,delay:2*50,label:m(C)(`settings.theme.title`),description:m(C)(`settings.theme.description`)},null,8,[`modelValue`,`label`,`description`]),[[g]]),y((d(),a(m(t),{initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:280,delay:3*50,transition:`all ease-in-out duration-250`,label:m(C)(`settings.language.title`),description:m(C)(`settings.language.description`)},{default:v(()=>[c(m(r),{modelValue:m(b).language,"onUpdate:modelValue":h[1]||=e=>m(b).language=e,transition:`all ease-in-out duration-250`,"cursor-pointer":``,"bg-transparent":``,"outline-none":``},{default:v(({value:e})=>[i(`div`,null,p(e?l.$t(`settings.language.${e}`):m(C)(`settings.language.english`)),1)]),options:v(({hide:e})=>[c(m(n),{value:`en`,active:m(w)===`en`,onClick:t=>e()},{default:v(()=>[s(p(l.$t(`settings.language.english`)),1)]),_:2},1032,[`active`,`onClick`]),c(m(n),{value:`zh-Hans`,active:m(w)===`zh-Hans`,onClick:t=>e()},{default:v(()=>[s(p(l.$t(`settings.language.chinese`)),1)]),_:2},1032,[`active`,`onClick`])]),_:1},8,[`modelValue`])]),_:1},8,[`label`,`description`])),[[g]]),y((d(),o(`div`,S,h[2]||=[i(`div`,{text:`60`,"i-solar:emoji-funny-square-bold-duotone":``},null,-1)])),[[g]])])}}});typeof b==`function`&&b(C);var w=C;export{w as default}; \ No newline at end of file diff --git a/assets/gesture-circle-B7owgJTt.js b/assets/gesture-circle-DCCP1PVe.js similarity index 97% rename from assets/gesture-circle-B7owgJTt.js rename to assets/gesture-circle-DCCP1PVe.js index c1e57b9fb2bfe046af4e87d996b1a72753ffb081..bd1ce76d5ca9882d6e67a85a5e1de7671215e720 100644 --- a/assets/gesture-circle-B7owgJTt.js +++ b/assets/gesture-circle-DCCP1PVe.js @@ -1 +1 @@ -import{computed as e,createBaseVNode as t,createElementBlock as n,defineComponent as r,openBlock as i,ref as a,refDebounced as o,refThrottled as s,toDisplayString as c,unref as l,useElementBounding as u,usePointer as d,useResizeObserver as f,watch as p}from"./index-jH8PbleY.js";import{route_block_default as m}from"./route-block-DWE87cA-.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]`},_=6;var v=r({__name:`gesture-circle`,setup(r){let m=a(),v=a(),y=a(),b=a(),{x,y:S}=d({target:y}),C=u(v,{immediate:!0,windowResize:!0}),w=e(()=>({x:x.value,y:S.value}));f(v,e=>{let t=e[0],{width:n,height:r}=t.contentRect;y.value&&(y.value.width=n,y.value.height=r)}),p(v,e=>{var t;if(!e)return;let n=document.createElement(`canvas`);n.width=C.width.value,n.height=C.height.value,n.style.objectFit=`contain`;let r=n.getContext(`2d`);b.value=r,y.value=n,(t=v.value)?.appendChild(n)});let T=s(w,50),E=o(w,50),D=a(E.value),O=a(0),k=a(0),A=a(!1),j=a([]),M=a(!1);return p([x,S],()=>{b.value&&(b.value.beginPath(),b.value.fillStyle=`red`,b.value.arc(x.value,S.value,4,0,2*Math.PI),b.value.closePath(),b.value.fill())}),p(E,()=>{if(M.value=!1,b.value&&b.value.reset(),j.value.length>=_){let e=j.value.reduce((e,t)=>e+t.x,0)/j.value.length,t=j.value.reduce((e,t)=>e+t.y,0)/j.value.length,n=j.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&&(k.value++,M.value=!0)}j.value=[]}),p(T,e=>{j.value.push(e)}),(e,r)=>(i(),n(`div`,{ref_key:`containerRef`,ref:m,"h-full":``},[t(`div`,h,[t(`div`,g,[r[0]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` pointThrottled: `,-1),t(`div`,null,c(l(T)),1),r[1]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` pointDebounced: `,-1),t(`div`,null,c(l(E)),1),r[2]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoint: `,-1),t(`div`,null,c(D.value),1),r[3]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` distance: `,-1),t(`div`,null,c(O.value),1),r[4]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` count: `,-1),t(`div`,null,c(k.value),1),r[5]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` show: `,-1),t(`div`,null,c(A.value),1),r[6]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoints: `,-1),t(`div`,null,c(j.value),1),r[7]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` isCircle: `,-1),t(`div`,null,c(M.value),1)]),t(`div`,{ref_key:`canvasContainerRef`,ref:v,"h-full":``,"w-full":``},null,512)])],512))}});typeof m==`function`&&m(v);var y=v;export{y as default}; \ No newline at end of file +import{computed as e,createBaseVNode as t,createElementBlock as n,defineComponent as r,openBlock as i,ref as a,refDebounced as o,refThrottled as s,toDisplayString as c,unref as l,useElementBounding as u,usePointer as d,useResizeObserver as f,watch as p}from"./index-C2W4XoWv.js";import{route_block_default as m}from"./route-block-DWE87cA-.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]`},_=6;var v=r({__name:`gesture-circle`,setup(r){let m=a(),v=a(),y=a(),b=a(),{x,y:S}=d({target:y}),C=u(v,{immediate:!0,windowResize:!0}),w=e(()=>({x:x.value,y:S.value}));f(v,e=>{let t=e[0],{width:n,height:r}=t.contentRect;y.value&&(y.value.width=n,y.value.height=r)}),p(v,e=>{var t;if(!e)return;let n=document.createElement(`canvas`);n.width=C.width.value,n.height=C.height.value,n.style.objectFit=`contain`;let r=n.getContext(`2d`);b.value=r,y.value=n,(t=v.value)?.appendChild(n)});let T=s(w,50),E=o(w,50),D=a(E.value),O=a(0),k=a(0),A=a(!1),j=a([]),M=a(!1);return p([x,S],()=>{b.value&&(b.value.beginPath(),b.value.fillStyle=`red`,b.value.arc(x.value,S.value,4,0,2*Math.PI),b.value.closePath(),b.value.fill())}),p(E,()=>{if(M.value=!1,b.value&&b.value.reset(),j.value.length>=_){let e=j.value.reduce((e,t)=>e+t.x,0)/j.value.length,t=j.value.reduce((e,t)=>e+t.y,0)/j.value.length,n=j.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&&(k.value++,M.value=!0)}j.value=[]}),p(T,e=>{j.value.push(e)}),(e,r)=>(i(),n(`div`,{ref_key:`containerRef`,ref:m,"h-full":``},[t(`div`,h,[t(`div`,g,[r[0]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` pointThrottled: `,-1),t(`div`,null,c(l(T)),1),r[1]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` pointDebounced: `,-1),t(`div`,null,c(l(E)),1),r[2]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoint: `,-1),t(`div`,null,c(D.value),1),r[3]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` distance: `,-1),t(`div`,null,c(O.value),1),r[4]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` count: `,-1),t(`div`,null,c(k.value),1),r[5]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` show: `,-1),t(`div`,null,c(A.value),1),r[6]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` lastPoints: `,-1),t(`div`,null,c(j.value),1),r[7]||=t(`div`,{text:`neutral-400 dark:neutral-600`},` isCircle: `,-1),t(`div`,null,c(M.value),1)]),t(`div`,{ref_key:`canvasContainerRef`,ref:v,"h-full":``,"w-full":``},null,512)])],512))}});typeof m==`function`&&m(v);var y=v;export{y as default}; \ No newline at end of file diff --git a/assets/google-generative-ai-Illmbd4Q.js b/assets/google-generative-ai-5ZQ3g8vz.js similarity index 97% rename from assets/google-generative-ai-Illmbd4Q.js rename to assets/google-generative-ai-5ZQ3g8vz.js index acbcfe4295b5699b011c8580c868b85324f034c4..f35657e3d9ebc7c122f0bc8d439e6adeffbc4487 100644 --- a/assets/google-generative-ai-Illmbd4Q.js +++ b/assets/google-generative-ai-5ZQ3g8vz.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`google-generative-ai`;var x=l({__name:`google-generative-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.anthropic.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`Google | Gemini`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`Google`,placeholder:`GEMINI_API_KEY`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`google-generative-ai`;var x=l({__name:`google-generative-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.anthropic.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://generativelanguage.googleapis.com/v1beta/openai/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`Google | Gemini`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`Google`,placeholder:`GEMINI_API_KEY`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-D9BWMp_9.js b/assets/hearing-CRj71d-D.js similarity index 99% rename from assets/hearing-D9BWMp_9.js rename to assets/hearing-CRj71d-D.js index c4e21a6575ebf0e23c323002961046bb5bbe4355..51ad7d9e5e6202478748498be76c6e5e4a6beed6 100644 --- a/assets/hearing-D9BWMp_9.js +++ b/assets/hearing-CRj71d-D.js @@ -1 +1 @@ -var e=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({});import{FieldCheckbox_default as t,FieldRange_default as n,FieldSelect_default as r,LevelMeter_default as i,ThresholdMeter_default as a,TimeSeriesChart_default as o,computed as s,createBaseVNode as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createTextVNode as ee,createVNode as f,defineComponent as p,nextTick as te,normalizeClass as ne,onMounted as re,onUnmounted as ie,openBlock as m,ref as h,toDisplayString as g,unref as _,useDevicesList as v,watch as y}from"./index-jH8PbleY.js";import{__webpack_exports__AutoModel as b,__webpack_exports__Tensor as x}from"./transformers.web-BHSa4vch.js";import{route_block_default as S}from"./route-block-DWE87cA-.js";var ae=`/assets/process.worklet-CF6Ao8XG.js`,oe=class{constructor(t,n={}){e.defineProperty(this,`audioContext`,null),e.defineProperty(this,`audioWorkletNode`,null),e.defineProperty(this,`mediaStream`,null),e.defineProperty(this,`sourceNode`,null),e.defineProperty(this,`vad`,void 0),e.defineProperty(this,`workletInitialized`,!1),this.vad=t,this.audioContext=new AudioContext(n.audioContextOptions||{sampleRate:16e3,latencyHint:`interactive`})}async initialize(e){if(!this.audioContext)throw Error(`Audio context not created`);try{this.workletInitialized||(await this.audioContext.audioWorklet.addModule(e),URL.revokeObjectURL(e),this.workletInitialized=!0),this.audioWorkletNode=new AudioWorkletNode(this.audioContext,`vad-processor`),this.audioWorkletNode.port.onmessage=async e=>{let{buffer:t}=e.data;t&&t.length>0&&await this.vad.processAudio(new Float32Array(t))}}catch(e){throw console.error(`Failed to initialize audio worklet:`,e),e}}async startMicrophone(){if(!this.audioContext||!this.audioWorkletNode)throw Error(`Audio system not initialized. Call initialize() first.`);try{this.audioContext.state===`suspended`&&await this.audioContext.resume(),this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:this.audioContext.sampleRate}}),this.sourceNode=this.audioContext.createMediaStreamSource(this.mediaStream),this.sourceNode.connect(this.audioWorkletNode);let e=this.audioContext.createGain();e.gain.value=0,this.audioWorkletNode.connect(e),e.connect(this.audioContext.destination)}catch(e){throw console.error(`Failed to start microphone:`,e),e}}async stopMicrophone(){var e,t;this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),this.mediaStream=null),this.sourceNode&&(this.sourceNode.disconnect(),this.sourceNode=null),(e=this.audioContext)?.suspend(),(t=this.audioWorkletNode)?.disconnect()}stop(){this.sourceNode&&this.audioWorkletNode&&(this.sourceNode.disconnect(),this.audioWorkletNode.disconnect()),this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),this.mediaStream=null),this.audioContext&&this.audioContext.state!==`closed`&&this.audioContext.suspend(),this.sourceNode=null,this.audioWorkletNode=null}dispose(){this.stop(),this.audioContext&&this.audioContext.state!==`closed`&&(this.audioContext.close(),this.audioContext=null),this.workletInitialized=!1}},C=class{constructor(t={}){e.defineProperty(this,`config`,void 0),e.defineProperty(this,`model`,void 0),e.defineProperty(this,`state`,void 0),e.defineProperty(this,`sampleRateTensor`,void 0),e.defineProperty(this,`buffer`,void 0),e.defineProperty(this,`bufferPointer`,0),e.defineProperty(this,`isRecording`,!1),e.defineProperty(this,`postSpeechSamples`,0),e.defineProperty(this,`prevBuffers`,[]),e.defineProperty(this,`inferenceChain`,Promise.resolve()),e.defineProperty(this,`eventListeners`,{}),e.defineProperty(this,`isReady`,!1);let n={sampleRate:16e3,speechThreshold:.3,exitThreshold:.1,minSilenceDurationMs:400,speechPadMs:80,minSpeechDurationMs:250,maxBufferDuration:30,newBufferSize:512};this.config={...n,...t},this.buffer=new Float32Array(this.config.maxBufferDuration*this.config.sampleRate),this.sampleRateTensor=new x(`int64`,[this.config.sampleRate],[]),this.state=new x(`float32`,new Float32Array(2*1*128),[2,1,128])}async initialize(){try{this.emit(`status`,{type:`info`,message:`Loading VAD model...`}),this.model=await b.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.bufferPointer{var e;return(e=this.model)?.call(this,{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 x(`int64`,[this.config.sampleRate],[]))}getLastProbability(){return 0}isCurrentlyRecording(){return this.isRecording}};async function se(e){let t=new C(e);return await t.initialize(),t}const w={class:`space-y-6`},ce={class:`rounded-lg bg-neutral-50 p-4 dark:bg-neutral-800`},le={class:`space-y-4`},T={key:0,class:`space-y-3`},ue={key:1,class:`space-y-3`},de={key:2,class:`space-y-3`},fe={class:`flex items-center gap-3`},pe={class:`text-sm font-medium`},me={class:`ml-auto text-xs text-neutral-500`},he={class:`border-t border-neutral-200 pt-3 dark:border-neutral-700`},ge={key:0,class:`mt-3 space-y-2`},_e={key:0,class:`flex items-center gap-2 text-primary-600 dark:text-primary-400`},E={key:1,class:`flex items-center gap-2 text-red-600 dark:text-red-400`},ve={class:`text-sm`},D={key:2,class:`flex items-center gap-2 text-green-600 dark:text-green-400`},O={class:`ml-auto text-xs text-neutral-500`},k={key:1,class:`border-t border-neutral-200 pt-4 dark:border-neutral-700`},A={key:0,class:`mt-3`},j={key:2,class:`border border-amber-200 rounded-lg bg-amber-50 p-3 dark:border-amber-800 dark:bg-amber-900/20`},M=50;var N=p({__name:`hearing`,setup(e){var p;let b=v({constraints:{audio:!0}}),x=s(()=>b.audioInputs.value),S=h((p=b.audioInputs.value[0])?.deviceId||``),C=h(!1),N=h(!1),P=h(),F=h(),I=h(),L=h(),R=h(),z=h(),B=h(0),V=h(!1),H=h(25),U=h(50),W=h(),G=h(!1),K=h(!1),q=h(``),J=h(!0),Y=h(0),X=h(.5),Z=h([]);async function ye(){if(!(G.value||K.value)){K.value=!0,q.value=``;try{let e=await se({sampleRate:16e3,speechThreshold:X.value,exitThreshold:X.value*.3,minSilenceDurationMs:400});e.on(`speech-start`,()=>{V.value=!0}),e.on(`speech-end`,()=>{V.value=!1}),e.on(`debug`,({data:e})=>{e?.probability!==void 0&&(Y.value=e.probability,Z.value.push(e.probability),Z.value.length>M&&Z.value.shift())}),e.on(`status`,({type:e,message:t})=>{e===`error`&&(q.value=t)});let t=new oe(e,{minChunkSize:512,audioContextOptions:{sampleRate:16e3,latencyHint:`interactive`}});await t.initialize(ae),W.value=t,G.value=!0}catch(e){q.value=e instanceof Error?e.message:String(e),console.error(`Failed to load VAD model:`,e)}finally{K.value=!1}}}async function Q(){try{if(!S.value){console.warn(`No audio input device selected`);return}await $(),F.value=await navigator.mediaDevices.getUserMedia({audio:{deviceId:S.value,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}),P.value=new AudioContext;let e=P.value.createMediaStreamSource(F.value);I.value=P.value.createAnalyser(),I.value.fftSize=256,I.value.smoothingTimeConstant=.3,L.value=P.value.createGain(),L.value.gain.value=N.value?U.value/100:0,e.connect(I.value),N.value&&(e.connect(L.value),L.value.connect(P.value.destination));let t=I.value.frequencyBinCount;R.value=new Uint8Array(t),be(),J.value&&(await ye(),W.value&&await W.value.startMicrophone())}catch(e){console.error(`Error setting up audio monitoring:`,e),q.value=e instanceof Error?e.message:String(e)}}async function $(){z.value&&(cancelAnimationFrame(z.value),z.value=void 0),W.value&&await W.value.stopMicrophone(),F.value&&(F.value.getTracks().forEach(e=>e.stop()),F.value=void 0),P.value&&(await P.value.close(),P.value=void 0),I.value=void 0,L.value=void 0,R.value=void 0,B.value=0,V.value=!1,Y.value=0,Z.value=[]}function be(){let e=()=>{if(!I.value||!R.value)return;I.value.getByteFrequencyData(R.value);let t=0;for(let e=0;eH.value),z.value=requestAnimationFrame(e)};e()}async function xe(){!P.value||!L.value||(N.value?(L.value.gain.value=U.value/100,L.value.connect(P.value.destination)):(L.value.gain.value=0,L.value.disconnect()))}y(S,async()=>{C.value&&await Q()}),y(N,xe),y(U,()=>{L.value&&N.value&&(L.value.gain.value=U.value/100)}),y(x,()=>{var e;!S.value&&x.value.length>0&&(S.value=(e=x.value[0])?.deviceId)}),y(X,()=>{W.value&&G.value});async function Se(){C.value?await Q():await $()}let Ce=s(()=>{if(!J.value||!G.value)return V.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`});return re(()=>{b.ensurePermissions().then(()=>te()).then(()=>{var e;x.value.length>0&&!S.value&&(S.value=(e=x.value[0])?.deviceId)})}),ie(()=>{$(),W.value&&W.value.dispose()}),(e,s)=>(m(),d(`div`,w,[c(`div`,null,[f(_(r),{modelValue:S.value,"onUpdate:modelValue":s[0]||=e=>S.value=e,label:`Audio Input Device`,description:`Select the audio input device for your hearing module.`,options:x.value.map(e=>({label:e.label||e.deviceId,value:e.deviceId})),placeholder:`Select an audio input device`},null,8,[`modelValue`,`options`])]),c(`div`,ce,[s[12]||=c(`h3`,{class:`mb-4 flex items-center gap-2 text-lg`},[c(`div`,{class:`text-xl`,"i-solar:volume-loud-bold-duotone":``}),ee(` Monitoring `)],-1),c(`div`,le,[f(_(t),{modelValue:C.value,"onUpdate:modelValue":[s[1]||=e=>C.value=e,Se],label:`Enable Audio Monitoring`,description:`Start monitoring audio input levels and voice activity detection`},null,8,[`modelValue`]),C.value?(m(),d(`div`,T,[f(_(i),{level:B.value,label:`Input Level`},null,8,[`level`]),J.value&&G.value?(m(),l(_(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`])):u(``,!0),J.value&&G.value?(m(),d(`div`,ue,[f(_(n),{modelValue:X.value,"onUpdate:modelValue":s[2]||=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`])])):(m(),d(`div`,de,[f(_(n),{modelValue:H.value,"onUpdate:modelValue":s[3]||=e=>H.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`])])),c(`div`,fe,[c(`div`,{class:ne([`h-4 w-4 rounded-full transition-all duration-200`,Ce.value])},null,2),c(`span`,pe,g(V.value?`Speaking Detected`:`Silence`),1),c(`span`,me,g(J.value&&G.value?`Model Based`:`Volume Based`),1)]),c(`div`,he,[f(_(t),{modelValue:J.value,"onUpdate:modelValue":s[4]||=e=>J.value=e,label:`Model Based`,description:`Use AI models for more accurate speech detection`},null,8,[`modelValue`]),J.value?(m(),d(`div`,ge,[K.value?(m(),d(`div`,_e,s[7]||=[c(`div`,{class:`animate-spin text-sm`,"i-solar:spinner-line-duotone":``},null,-1),c(`span`,{class:`text-sm`},`Loading...`,-1)])):q.value?(m(),d(`div`,E,[s[8]||=c(`div`,{class:`text-sm`,"i-solar:close-circle-bold-duotone":``},null,-1),c(`span`,ve,`Inference error: `+g(q.value),1)])):G.value?(m(),d(`div`,D,[s[9]||=c(`div`,{class:`text-sm`,"i-solar:check-circle-bold-duotone":``},null,-1),s[10]||=c(`span`,{class:`text-sm`},`Activated`,-1),c(`span`,O,` Probability: `+g((Y.value*100).toFixed(1))+`% `,1)])):u(``,!0)])):u(``,!0)]),J.value&&G.value?(m(),l(_(o),{key:3,history:Z.value,"current-value":Y.value,threshold:X.value,"is-active":V.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`])):u(``,!0)])):u(``,!0),C.value?(m(),d(`div`,k,[f(_(t),{modelValue:N.value,"onUpdate:modelValue":s[5]||=e=>N.value=e,label:`Monitor Audio (Listen)`,description:`Enable audio playback monitoring (like OBS). Be careful of feedback!`},null,8,[`modelValue`]),N.value?(m(),d(`div`,A,[f(_(n),{modelValue:U.value,"onUpdate:modelValue":s[6]||=e=>U.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`])])):u(``,!0)])):u(``,!0),N.value?(m(),d(`div`,j,s[11]||=[c(`div`,{class:`flex items-center gap-2 text-amber-700 dark:text-amber-300`},[c(`div`,{class:`text-sm`,"i-solar:warning-circle-bold-duotone":``}),c(`span`,{class:`text-sm font-medium`},`Audio feedback warning`)],-1),c(`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)])):u(``,!0)])])]))}});typeof S==`function`&&S(N);var P=N;export{P as default}; \ No newline at end of file +var e=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({});import{FieldCheckbox_default as t,FieldRange_default as n,FieldSelect_default as r,LevelMeter_default as i,ThresholdMeter_default as a,TimeSeriesChart_default as o,computed as s,createBaseVNode as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createTextVNode as ee,createVNode as f,defineComponent as p,nextTick as te,normalizeClass as ne,onMounted as re,onUnmounted as ie,openBlock as m,ref as h,toDisplayString as g,unref as _,useDevicesList as v,watch as y}from"./index-C2W4XoWv.js";import{__webpack_exports__AutoModel as b,__webpack_exports__Tensor as x}from"./transformers.web-BWxQFDpM.js";import{route_block_default as S}from"./route-block-DWE87cA-.js";var ae=`/assets/process.worklet-CF6Ao8XG.js`,oe=class{constructor(t,n={}){e.defineProperty(this,`audioContext`,null),e.defineProperty(this,`audioWorkletNode`,null),e.defineProperty(this,`mediaStream`,null),e.defineProperty(this,`sourceNode`,null),e.defineProperty(this,`vad`,void 0),e.defineProperty(this,`workletInitialized`,!1),this.vad=t,this.audioContext=new AudioContext(n.audioContextOptions||{sampleRate:16e3,latencyHint:`interactive`})}async initialize(e){if(!this.audioContext)throw Error(`Audio context not created`);try{this.workletInitialized||(await this.audioContext.audioWorklet.addModule(e),URL.revokeObjectURL(e),this.workletInitialized=!0),this.audioWorkletNode=new AudioWorkletNode(this.audioContext,`vad-processor`),this.audioWorkletNode.port.onmessage=async e=>{let{buffer:t}=e.data;t&&t.length>0&&await this.vad.processAudio(new Float32Array(t))}}catch(e){throw console.error(`Failed to initialize audio worklet:`,e),e}}async startMicrophone(){if(!this.audioContext||!this.audioWorkletNode)throw Error(`Audio system not initialized. Call initialize() first.`);try{this.audioContext.state===`suspended`&&await this.audioContext.resume(),this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:this.audioContext.sampleRate}}),this.sourceNode=this.audioContext.createMediaStreamSource(this.mediaStream),this.sourceNode.connect(this.audioWorkletNode);let e=this.audioContext.createGain();e.gain.value=0,this.audioWorkletNode.connect(e),e.connect(this.audioContext.destination)}catch(e){throw console.error(`Failed to start microphone:`,e),e}}async stopMicrophone(){var e,t;this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),this.mediaStream=null),this.sourceNode&&(this.sourceNode.disconnect(),this.sourceNode=null),(e=this.audioContext)?.suspend(),(t=this.audioWorkletNode)?.disconnect()}stop(){this.sourceNode&&this.audioWorkletNode&&(this.sourceNode.disconnect(),this.audioWorkletNode.disconnect()),this.mediaStream&&(this.mediaStream.getTracks().forEach(e=>e.stop()),this.mediaStream=null),this.audioContext&&this.audioContext.state!==`closed`&&this.audioContext.suspend(),this.sourceNode=null,this.audioWorkletNode=null}dispose(){this.stop(),this.audioContext&&this.audioContext.state!==`closed`&&(this.audioContext.close(),this.audioContext=null),this.workletInitialized=!1}},C=class{constructor(t={}){e.defineProperty(this,`config`,void 0),e.defineProperty(this,`model`,void 0),e.defineProperty(this,`state`,void 0),e.defineProperty(this,`sampleRateTensor`,void 0),e.defineProperty(this,`buffer`,void 0),e.defineProperty(this,`bufferPointer`,0),e.defineProperty(this,`isRecording`,!1),e.defineProperty(this,`postSpeechSamples`,0),e.defineProperty(this,`prevBuffers`,[]),e.defineProperty(this,`inferenceChain`,Promise.resolve()),e.defineProperty(this,`eventListeners`,{}),e.defineProperty(this,`isReady`,!1);let n={sampleRate:16e3,speechThreshold:.3,exitThreshold:.1,minSilenceDurationMs:400,speechPadMs:80,minSpeechDurationMs:250,maxBufferDuration:30,newBufferSize:512};this.config={...n,...t},this.buffer=new Float32Array(this.config.maxBufferDuration*this.config.sampleRate),this.sampleRateTensor=new x(`int64`,[this.config.sampleRate],[]),this.state=new x(`float32`,new Float32Array(2*1*128),[2,1,128])}async initialize(){try{this.emit(`status`,{type:`info`,message:`Loading VAD model...`}),this.model=await b.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.bufferPointer{var e;return(e=this.model)?.call(this,{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 x(`int64`,[this.config.sampleRate],[]))}getLastProbability(){return 0}isCurrentlyRecording(){return this.isRecording}};async function se(e){let t=new C(e);return await t.initialize(),t}const w={class:`space-y-6`},ce={class:`rounded-lg bg-neutral-50 p-4 dark:bg-neutral-800`},le={class:`space-y-4`},T={key:0,class:`space-y-3`},ue={key:1,class:`space-y-3`},de={key:2,class:`space-y-3`},fe={class:`flex items-center gap-3`},pe={class:`text-sm font-medium`},me={class:`ml-auto text-xs text-neutral-500`},he={class:`border-t border-neutral-200 pt-3 dark:border-neutral-700`},ge={key:0,class:`mt-3 space-y-2`},_e={key:0,class:`flex items-center gap-2 text-primary-600 dark:text-primary-400`},E={key:1,class:`flex items-center gap-2 text-red-600 dark:text-red-400`},ve={class:`text-sm`},D={key:2,class:`flex items-center gap-2 text-green-600 dark:text-green-400`},O={class:`ml-auto text-xs text-neutral-500`},k={key:1,class:`border-t border-neutral-200 pt-4 dark:border-neutral-700`},A={key:0,class:`mt-3`},j={key:2,class:`border border-amber-200 rounded-lg bg-amber-50 p-3 dark:border-amber-800 dark:bg-amber-900/20`},M=50;var N=p({__name:`hearing`,setup(e){var p;let b=v({constraints:{audio:!0}}),x=s(()=>b.audioInputs.value),S=h((p=b.audioInputs.value[0])?.deviceId||``),C=h(!1),N=h(!1),P=h(),F=h(),I=h(),L=h(),R=h(),z=h(),B=h(0),V=h(!1),H=h(25),U=h(50),W=h(),G=h(!1),K=h(!1),q=h(``),J=h(!0),Y=h(0),X=h(.5),Z=h([]);async function ye(){if(!(G.value||K.value)){K.value=!0,q.value=``;try{let e=await se({sampleRate:16e3,speechThreshold:X.value,exitThreshold:X.value*.3,minSilenceDurationMs:400});e.on(`speech-start`,()=>{V.value=!0}),e.on(`speech-end`,()=>{V.value=!1}),e.on(`debug`,({data:e})=>{e?.probability!==void 0&&(Y.value=e.probability,Z.value.push(e.probability),Z.value.length>M&&Z.value.shift())}),e.on(`status`,({type:e,message:t})=>{e===`error`&&(q.value=t)});let t=new oe(e,{minChunkSize:512,audioContextOptions:{sampleRate:16e3,latencyHint:`interactive`}});await t.initialize(ae),W.value=t,G.value=!0}catch(e){q.value=e instanceof Error?e.message:String(e),console.error(`Failed to load VAD model:`,e)}finally{K.value=!1}}}async function Q(){try{if(!S.value){console.warn(`No audio input device selected`);return}await $(),F.value=await navigator.mediaDevices.getUserMedia({audio:{deviceId:S.value,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}),P.value=new AudioContext;let e=P.value.createMediaStreamSource(F.value);I.value=P.value.createAnalyser(),I.value.fftSize=256,I.value.smoothingTimeConstant=.3,L.value=P.value.createGain(),L.value.gain.value=N.value?U.value/100:0,e.connect(I.value),N.value&&(e.connect(L.value),L.value.connect(P.value.destination));let t=I.value.frequencyBinCount;R.value=new Uint8Array(t),be(),J.value&&(await ye(),W.value&&await W.value.startMicrophone())}catch(e){console.error(`Error setting up audio monitoring:`,e),q.value=e instanceof Error?e.message:String(e)}}async function $(){z.value&&(cancelAnimationFrame(z.value),z.value=void 0),W.value&&await W.value.stopMicrophone(),F.value&&(F.value.getTracks().forEach(e=>e.stop()),F.value=void 0),P.value&&(await P.value.close(),P.value=void 0),I.value=void 0,L.value=void 0,R.value=void 0,B.value=0,V.value=!1,Y.value=0,Z.value=[]}function be(){let e=()=>{if(!I.value||!R.value)return;I.value.getByteFrequencyData(R.value);let t=0;for(let e=0;eH.value),z.value=requestAnimationFrame(e)};e()}async function xe(){!P.value||!L.value||(N.value?(L.value.gain.value=U.value/100,L.value.connect(P.value.destination)):(L.value.gain.value=0,L.value.disconnect()))}y(S,async()=>{C.value&&await Q()}),y(N,xe),y(U,()=>{L.value&&N.value&&(L.value.gain.value=U.value/100)}),y(x,()=>{var e;!S.value&&x.value.length>0&&(S.value=(e=x.value[0])?.deviceId)}),y(X,()=>{W.value&&G.value});async function Se(){C.value?await Q():await $()}let Ce=s(()=>{if(!J.value||!G.value)return V.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`});return re(()=>{b.ensurePermissions().then(()=>te()).then(()=>{var e;x.value.length>0&&!S.value&&(S.value=(e=x.value[0])?.deviceId)})}),ie(()=>{$(),W.value&&W.value.dispose()}),(e,s)=>(m(),d(`div`,w,[c(`div`,null,[f(_(r),{modelValue:S.value,"onUpdate:modelValue":s[0]||=e=>S.value=e,label:`Audio Input Device`,description:`Select the audio input device for your hearing module.`,options:x.value.map(e=>({label:e.label||e.deviceId,value:e.deviceId})),placeholder:`Select an audio input device`},null,8,[`modelValue`,`options`])]),c(`div`,ce,[s[12]||=c(`h3`,{class:`mb-4 flex items-center gap-2 text-lg`},[c(`div`,{class:`text-xl`,"i-solar:volume-loud-bold-duotone":``}),ee(` Monitoring `)],-1),c(`div`,le,[f(_(t),{modelValue:C.value,"onUpdate:modelValue":[s[1]||=e=>C.value=e,Se],label:`Enable Audio Monitoring`,description:`Start monitoring audio input levels and voice activity detection`},null,8,[`modelValue`]),C.value?(m(),d(`div`,T,[f(_(i),{level:B.value,label:`Input Level`},null,8,[`level`]),J.value&&G.value?(m(),l(_(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`])):u(``,!0),J.value&&G.value?(m(),d(`div`,ue,[f(_(n),{modelValue:X.value,"onUpdate:modelValue":s[2]||=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`])])):(m(),d(`div`,de,[f(_(n),{modelValue:H.value,"onUpdate:modelValue":s[3]||=e=>H.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`])])),c(`div`,fe,[c(`div`,{class:ne([`h-4 w-4 rounded-full transition-all duration-200`,Ce.value])},null,2),c(`span`,pe,g(V.value?`Speaking Detected`:`Silence`),1),c(`span`,me,g(J.value&&G.value?`Model Based`:`Volume Based`),1)]),c(`div`,he,[f(_(t),{modelValue:J.value,"onUpdate:modelValue":s[4]||=e=>J.value=e,label:`Model Based`,description:`Use AI models for more accurate speech detection`},null,8,[`modelValue`]),J.value?(m(),d(`div`,ge,[K.value?(m(),d(`div`,_e,s[7]||=[c(`div`,{class:`animate-spin text-sm`,"i-solar:spinner-line-duotone":``},null,-1),c(`span`,{class:`text-sm`},`Loading...`,-1)])):q.value?(m(),d(`div`,E,[s[8]||=c(`div`,{class:`text-sm`,"i-solar:close-circle-bold-duotone":``},null,-1),c(`span`,ve,`Inference error: `+g(q.value),1)])):G.value?(m(),d(`div`,D,[s[9]||=c(`div`,{class:`text-sm`,"i-solar:check-circle-bold-duotone":``},null,-1),s[10]||=c(`span`,{class:`text-sm`},`Activated`,-1),c(`span`,O,` Probability: `+g((Y.value*100).toFixed(1))+`% `,1)])):u(``,!0)])):u(``,!0)]),J.value&&G.value?(m(),l(_(o),{key:3,history:Z.value,"current-value":Y.value,threshold:X.value,"is-active":V.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`])):u(``,!0)])):u(``,!0),C.value?(m(),d(`div`,k,[f(_(t),{modelValue:N.value,"onUpdate:modelValue":s[5]||=e=>N.value=e,label:`Monitor Audio (Listen)`,description:`Enable audio playback monitoring (like OBS). Be careful of feedback!`},null,8,[`modelValue`]),N.value?(m(),d(`div`,A,[f(_(n),{modelValue:U.value,"onUpdate:modelValue":s[6]||=e=>U.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`])])):u(``,!0)])):u(``,!0),N.value?(m(),d(`div`,j,s[11]||=[c(`div`,{class:`flex items-center gap-2 text-amber-700 dark:text-amber-300`},[c(`div`,{class:`text-sm`,"i-solar:warning-circle-bold-duotone":``}),c(`span`,{class:`text-sm font-medium`},`Audio feedback warning`)],-1),c(`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)])):u(``,!0)])])]))}});typeof S==`function`&&S(N);var P=N;export{P as default}; \ No newline at end of file diff --git a/assets/home-viOrQmVG.js b/assets/home-yc6BAt_u.js similarity index 88% rename from assets/home-viOrQmVG.js rename to assets/home-yc6BAt_u.js index 2197a40d1c98f6ecd97a6f50b81b737188b00586..a5088eb1005a1b2302be2d0a10545526a6486fbf 100644 --- a/assets/home-viOrQmVG.js +++ b/assets/home-yc6BAt_u.js @@ -1 +1 @@ -import{RouterView as e,createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,unref as o}from"./index-jH8PbleY.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 +import{RouterView as e,createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,unref as o}from"./index-C2W4XoWv.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/icon-animation-h5tjr2vU.js b/assets/icon-animation-C9bqWV38.js similarity index 84% rename from assets/icon-animation-h5tjr2vU.js rename to assets/icon-animation-C9bqWV38.js index a7d67646586162f3dc23ca2b88679c6e287ee4e1..667202a76d654dbedf14a8eadfdcb342413e0ae0 100644 --- a/assets/icon-animation-h5tjr2vU.js +++ b/assets/icon-animation-C9bqWV38.js @@ -1 +1 @@ -import{computed as e,onMounted as t,onUnmounted as n,ref as r,useSettings as i}from"./index-jH8PbleY.js";function a(a){let o=r(!1),s=r(!1),c=r(a),l=i(),u=e(()=>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 useIconAnimation}; \ No newline at end of file +import{computed as e,onMounted as t,onUnmounted as n,ref as r,useSettings as i}from"./index-C2W4XoWv.js";function a(a){let o=r(!1),s=r(!1),c=r(a),l=i(),u=e(()=>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 useIconAnimation}; \ No newline at end of file diff --git a/assets/image-C0gexLey.js b/assets/image-CAayhVhY.js similarity index 95% rename from assets/image-C0gexLey.js rename to assets/image-CAayhVhY.js index d4e7a150bfb758d2288fe8e26fe3abad6bbc9778..f37b27aa98333981d2d43876444d51ecce1f7165 100644 --- a/assets/image-C0gexLey.js +++ b/assets/image-CAayhVhY.js @@ -1,2 +1,2 @@ -import{__plugin_vue_export_helper_default as e,createBaseVNode as t,createCommentVNode as n,createElementBlock as r,defineComponent as i,openBlock as a,ref as o,toDisplayString as s,unref as c,useClipboard as l}from"./index-jH8PbleY.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=o(),m=o(``),{copy:h}=l({source:m});async function g(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{var n;t(((n=e.target)==null||(n=n.result)==null?void 0:n.toString())||``)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}async function _(e){var t;let n=e.target,r=(t=n.files)?.[0];if(r){i.value=r;let e=await g(r);m.value=e}}return(e,i)=>(a(),r(`div`,null,[t(`label`,u,[t(`input`,{type:`file`,accept:`image/*`,hidden:``,onChange:_},null,32),i[1]||=t(`span`,null,`Upload Image`,-1)]),m.value?(a(),r(`div`,d,[t(`img`,{src:m.value,alt:`Uploaded Image`,"w-100":``},null,8,f),t(`pre`,p,` `+s(m.value)+` +import{__plugin_vue_export_helper_default as e,createBaseVNode as t,createCommentVNode as n,createElementBlock as r,defineComponent as i,openBlock as a,ref as o,toDisplayString as s,unref as c,useClipboard as l}from"./index-C2W4XoWv.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=o(),m=o(``),{copy:h}=l({source:m});async function g(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=e=>{var n;t(((n=e.target)==null||(n=n.result)==null?void 0:n.toString())||``)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}async function _(e){var t;let n=e.target,r=(t=n.files)?.[0];if(r){i.value=r;let e=await g(r);m.value=e}}return(e,i)=>(a(),r(`div`,null,[t(`label`,u,[t(`input`,{type:`file`,accept:`image/*`,hidden:``,onChange:_},null,32),i[1]||=t(`span`,null,`Upload Image`,-1)]),m.value?(a(),r(`div`,d,[t(`img`,{src:m.value,alt:`Uploaded Image`,"w-100":``},null,8,f),t(`pre`,p,` `+s(m.value)+` `,1),t(`button`,{bg:`primary-500`,text:`white`,"mt-4":``,"rounded-lg":``,"px-4":``,"py-2":``,onClick:i[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/index-B0_6uY9k.css b/assets/index-B0_6uY9k.css new file mode 100644 index 0000000000000000000000000000000000000000..c3907183290e78b41aea359db5b6354e06157a53 --- /dev/null +++ b/assets/index-B0_6uY9k.css @@ -0,0 +1 @@ +.form_input-range[data-v-8956898c]{--height:2em;min-height:var(--height);-webkit-appearance:none;-moz-appearance:none;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:#eee;--track-background-hover:#eee;--track-background-active:#eee;--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-8956898c]{--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:#2c2c2c;--track-background-hover:#2c2c2c;--track-background-active:#2c2c2c;--track-value-background:#a4a4a4;--track-value-background-hover:#a4a4a4;--track-value-background-active:#a4a4a4}.form_input-range.slider-progress[data-v-8956898c]{--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-8956898c]:focus{outline:none}.form_input-range[data-v-8956898c]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;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 ease-in-out}.form_input-range[data-v-8956898c]::-webkit-slider-runnable-track{height:var(--track-height);border:var(--track-border);border-radius:var(--track-border-radius);background:var(--track-background);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-8956898c]::-webkit-slider-thumb:hover{background:var(--thumb-background-hover)}.form_input-range[data-v-8956898c]:hover::-webkit-slider-runnable-track{background:var(--track-background-hover)}.form_input-range[data-v-8956898c]::-webkit-slider-thumb:active{background:var(--thumb-background-active)}.form_input-range[data-v-8956898c]:active::-webkit-slider-runnable-track{background:var(--track-background-active)}.form_input-range.slider-progress[data-v-8956898c]::-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-8956898c]: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-8956898c]: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-8956898c]::-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}.form_input-range[data-v-8956898c]::-moz-range-track{height:var(--track-height);border:var(--track-border);border-radius:var(--track-border-radius);background:var(--track-background);box-shadow:var(--track-box-shadow);cursor:col-resize;width:calc(100% - var(--track-value-padding)*2)}.form_input-range[data-v-8956898c]::-moz-range-thumb:hover{background:var(--thumb-background-hover)}.form_input-range[data-v-8956898c]:hover::-moz-range-track{background:var(--track-background-hover)}.form_input-range[data-v-8956898c]::-moz-range-thumb:active{background:var(--thumb-background-active)}.form_input-range[data-v-8956898c]:active::-moz-range-track{background:var(--track-background-active)}.form_input-range.slider-progress[data-v-8956898c]::-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-8956898c]: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-8956898c]: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-8956898c]::-ms-fill-upper{background:0 0;border-color:#0000}.form_input-range[data-v-8956898c]::-ms-fill-lower{background:0 0;border-color:#0000}.form_input-range[data-v-8956898c]::-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}.form_input-range[data-v-8956898c]::-ms-track{height:var(--track-height);border-radius:var(--track-border-radius);background:var(--track-background);border:var(--track-border);box-shadow:var(--track-box-shadow);box-sizing:border-box;cursor:col-resize}.form_input-range[data-v-8956898c]::-ms-thumb:hover{background:var(--thumb-background-hover)}.form_input-range[data-v-8956898c]:hover::-ms-track{background:var(--track-background-hover)}.form_input-range[data-v-8956898c]::-ms-thumb:active{background:var(--thumb-background-active)}.form_input-range[data-v-8956898c]:active::-ms-track{background:var(--track-background-active)}.form_input-range.slider-progress[data-v-8956898c]::-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-8956898c]:hover::-ms-fill-lower{background:var(--track-value-background-hover)}.form_input-range.slider-progress[data-v-8956898c]:active::-ms-fill-lower{background:var(--track-value-background-active)}.color-hue-range[data-v-49fc55e8]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(90deg,#ffb2cb,#ffba76,#bedf0d,#00efd2,#90d7ff,#d8bfff,#ffb2cb);background:linear-gradient(90deg,color(display-p3 1.1215 .595378 .781922),color(display-p3 1.09855 .68498 .251398),color(display-p3 .770516 .871468 .284878),color(display-p3 .170102 .947674 .829549),color(display-p3 .372107 .846211 1.22764),color(display-p3 .856305 .680188 1.20214),color(display-p3 1.1215 .595378 .781922));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-49fc55e8]::-webkit-slider-thumb{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;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;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark .color-hue-range[data-v-49fc55e8]::-webkit-slider-thumb{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;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;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.color-hue-range[data-v-49fc55e8]::-moz-range-thumb{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;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;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.dark .color-hue-range[data-v-49fc55e8]::-moz-range-thumb{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;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;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.resize-observer[data-v-b329ee4c]{z-index:-1;pointer-events:none;opacity:0;background-color:#0000;border:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.resize-observer[data-v-b329ee4c] object{pointer-events:none;z-index:-1;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.v-popper__popper{z-index:10000;outline:none;top:0;left:0}.v-popper__arrow-container{display:none}.v-popper__inner{border:none!important}.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;top:0;bottom:0;left:0;right: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;top:0;bottom:0;left:0;right: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-93a9757f]{position:relative;overflow:hidden}.menu-icon-status-item[data-v-93a9757f]: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;top:0;bottom:0;left:0;right:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .menu-icon-status-item[data-v-93a9757f]: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-93a9757f]:hover:before,.menu-icon-status-item._hover[data-v-93a9757f]: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-93a9757f]:hover:before,.dark .menu-icon-status-item._hover[data-v-93a9757f]: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-93a9757f]: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;top:0;bottom:0;left:0;right: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-93a9757f]: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-93a9757f]: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-93a9757f]: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-93a9757f]{opacity:.5}.menu-icon-status-item:hover .menu-icon-status-item-title[data-v-93a9757f],.menu-icon-status-item._hover .menu-icon-status-item-title[data-v-93a9757f]{--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-93a9757f],.menu-icon-status-item._hover .menu-icon-status-item-description[data-v-93a9757f]{--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-93a9757f],.menu-icon-status-item._hover .menu-icon-status-item-icon[data-v-93a9757f],.menu-icon-status-item:hover .menu-icon-status-item-icon-color[data-v-93a9757f],.menu-icon-status-item._hover .menu-icon-status-item-icon-color[data-v-93a9757f]{--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-93a9757f],.dark .menu-icon-status-item._hover .menu-icon-status-item-title[data-v-93a9757f]{--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-93a9757f],.dark .menu-icon-status-item._hover .menu-icon-status-item-description[data-v-93a9757f]{--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-93a9757f],.dark .menu-icon-status-item._hover .menu-icon-status-item-icon[data-v-93a9757f],.dark .menu-icon-status-item:hover .menu-icon-status-item-icon-color[data-v-93a9757f],.dark .menu-icon-status-item._hover .menu-icon-status-item-icon-color[data-v-93a9757f]{--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;top:0;bottom:0;left:0;right: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-98ce709a]::-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;top:0;bottom:0;left:0;right: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%}.volumed[data-v-d8ce56aa]{transform-style:preserve-3d;width:-moz-fit-content;width:fit-content;height:-moz-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;top:0;bottom:0;left:0;right: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}.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;top:0;bottom:0;left:0;right: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-55cec23c]::-webkit-search-cancel-button{display:none}.voice-card[data-v-55cec23c]{flex-direction:column;display:flex;position:relative;overflow:hidden}.voice-card[data-v-55cec23c]: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;top:0;bottom:0;left:0;right:0;-webkit-mask-image:linear-gradient(120deg,#fff 100%);mask-image:linear-gradient(120deg,#fff 100%)}.dark .voice-card[data-v-55cec23c]: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-55cec23c]: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-55cec23c]: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-9aeafd92]{transition:all .2s ease-in-out;position:relative}.skeleton-pulse[data-v-9aeafd92]{animation:2s ease-in-out .5s infinite skeleton-pulse-9aeafd92}@keyframes skeleton-pulse-9aeafd92{0%{opacity:1}50%{opacity:.5}to{opacity:1}}.skeleton-wave[data-v-9aeafd92]:after{content:"";border-radius:inherit;background:linear-gradient(90deg,#0000,#fff3,#0000);animation:2s ease-in-out infinite skeleton-wave-9aeafd92;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(-100%)}.dark .skeleton-wave[data-v-9aeafd92]:after{background:linear-gradient(90deg,#0000,#ffffff1a,#0000)}@keyframes skeleton-wave-9aeafd92{0%{opacity:0;transform:translate(-100%)}60%{opacity:1;transform:translate(100%)}to{opacity:0;transform:translate(100%)}}.slide-next-enter-active[data-v-8ccf0d7a],.slide-next-leave-active[data-v-8ccf0d7a]{transition:transform .2s ease-in-out,opacity .2s ease-in-out}.slide-next-enter-from[data-v-8ccf0d7a]{opacity:0;transform:translate(100%)}.slide-next-enter-to[data-v-8ccf0d7a],.slide-next-leave-from[data-v-8ccf0d7a]{opacity:1;transform:translate(0)}.slide-next-leave-to[data-v-8ccf0d7a]{opacity:0;transform:translate(-100%)}.slide-prev-enter-active[data-v-8ccf0d7a],.slide-prev-leave-active[data-v-8ccf0d7a]{transition:transform .2s ease-in-out,opacity .2s ease-in-out}.slide-prev-enter-from[data-v-8ccf0d7a]{opacity:0;transform:translate(-100%)}.slide-prev-enter-to[data-v-8ccf0d7a],.slide-prev-leave-from[data-v-8ccf0d7a]{opacity:1;transform:translate(0)}.slide-prev-leave-to[data-v-8ccf0d7a]{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;top:0;bottom:0;left:0;right: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)}.stage-transition-3[data-v-17464329]{--delay:0s;--sharpness:40%;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.stage-transition-3[data-v-17464329]:before{content:"";animation:1s cubic-bezier(.87,.05,.02,.97) both arrowIn-17464329,1s cubic-bezier(.87,.05,.02,.97) forwards arrowOut-17464329;position:absolute;top:0;bottom:0;left:0;right:0}.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;top:0;bottom:0;left:0;right: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;top:0;bottom:0;left:0;right: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;top:0;bottom:0;left:0;right:0;overflow:hidden}.stage-transition-4__block[data-v-4221f976]{width:100%;height:100%;position:relative}.stage-transition-4__block[data-v-4221f976]:before{content:"";animation:.8s cubic-bezier(.87,.05,.02,.97) both slideIn-4221f976,.8s cubic-bezier(.87,.05,.02,.97) forwards slideOut-4221f976;position:absolute;top:0;bottom:0;left:0;right:0}.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;top:0;bottom:0;left:0;right: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;top:0;bottom:0;left:0;right:0;overflow:hidden}.stage-transition-1[data-v-81c0af14]:before{content:"";animation:1s cubic-bezier(.87,.05,.02,.97) both slideIn-81c0af14,1s cubic-bezier(.87,.05,.02,.97) forwards slideOut-81c0af14;position:absolute;top:0;bottom:0;left:0;right:0}.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;top:0;bottom:0;left:0;right: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;top:0;bottom:0;left:0;right:0;overflow:hidden}.stage-transition-2[data-v-9e8b66c8]:before{content:"";animation:1s cubic-bezier(.87,.05,.02,.97) both maskIn-9e8b66c8,1s cubic-bezier(.87,.05,.02,.97) forwards maskOut-9e8b66c8;position:absolute;top:0;bottom:0;left:0;right:0}.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;top:0;bottom:0;left:0;right: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;top:0;bottom:0;left:0;right: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))}}@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%;-moz-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,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)}:root{--bg-color-light:#fff;--bg-color-dark:#121212;--progress-bar-color:#f472b6;--bg-color:var(--bg-color-light)}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:var(--progress-bar-color);opacity:.75;z-index:1031;width:100%;height:2px;position:fixed;top:0;left:0}@font-face{font-family:DM Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmmono/v15/aFTU7PB1QTsUX8KYthSQBK6PYK3EXw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmmono/v15/aFTU7PB1QTsUX8KYthqQBK6PYK0.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 Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmsans/v16/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRR232RmYJp8I5zzw.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 Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmsans/v16/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRSW32RmYJp8I5.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmserifdisplay/v16/-nFnOHM81r4j6k0gjAW3mujVU2B2G_5x0vrx52jJ3Q.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 Serif Display;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmserifdisplay/v16/-nFnOHM81r4j6k0gjAW3mujVU2B2G_Bx0vrx52g.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:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.2.woff2)format("woff2");unicode-range:U+D723-D728,U+D72A-D733,U+D735-D748,U+D74A-D74F,U+D752-D753,U+D755-D757,U+D75A-D75F,U+D762-D764,U+D766-D768,U+D76A-D76B,U+D76D-D76F,U+D771-D787,U+D789-D78B,U+D78D-D78F,U+D791-D797,U+D79A,U+D79C,U+D79E-D7A3,U+F900-F909,U+F90B-F92E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.3.woff2)format("woff2");unicode-range:U+D679-D68B,U+D68E-D69E,U+D6A0,U+D6A2-D6A7,U+D6A9-D6C3,U+D6C6-D6C7,U+D6C9-D6CB,U+D6CD-D6D3,U+D6D5-D6D6,U+D6D8-D6E3,U+D6E5-D6E7,U+D6E9-D6FB,U+D6FD-D717,U+D719-D71F,U+D721-D722}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.4.woff2)format("woff2");unicode-range:U+D5BC-D5C7,U+D5CA-D5CB,U+D5CD-D5CF,U+D5D1-D5D7,U+D5D9-D5DA,U+D5DC,U+D5DE-D5E3,U+D5E6-D5E7,U+D5E9-D5EB,U+D5ED-D5F6,U+D5F8,U+D5FA-D5FF,U+D602-D603,U+D605-D607,U+D609-D60F,U+D612-D613,U+D616-D61B,U+D61D-D637,U+D63A-D63B,U+D63D-D63F,U+D641-D647,U+D64A-D64C,U+D64E-D653,U+D656-D657,U+D659-D65B,U+D65D-D666,U+D668,U+D66A-D678}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.5.woff2)format("woff2");unicode-range:U+D507,U+D509-D50B,U+D50D-D513,U+D515-D53B,U+D53E-D53F,U+D541-D543,U+D545-D54C,U+D54E,U+D550,U+D552-D557,U+D55A-D55B,U+D55D-D55F,U+D561-D564,U+D566-D567,U+D56A,U+D56C,U+D56E-D573,U+D576-D577,U+D579-D583,U+D585-D586,U+D58A-D5A4,U+D5A6-D5BB}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.6.woff2)format("woff2");unicode-range:U+D464-D477,U+D47A-D47B,U+D47D-D47F,U+D481-D487,U+D489-D48A,U+D48C,U+D48E-D4E7,U+D4E9-D503,U+D505-D506}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.7.woff2)format("woff2");unicode-range:U+D3BF-D3C7,U+D3CA-D3CF,U+D3D1-D3EB,U+D3EE-D3EF,U+D3F1-D3F3,U+D3F5-D3FB,U+D3FD-D400,U+D402-D45B,U+D45D-D463}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.8.woff2)format("woff2");unicode-range:U+D2FF,U+D302-D304,U+D306-D30B,U+D30F,U+D311-D313,U+D315-D31B,U+D31E,U+D322-D324,U+D326-D327,U+D32A-D32B,U+D32D-D32F,U+D331-D337,U+D339-D33C,U+D33E-D37B,U+D37E-D37F,U+D381-D383,U+D385-D38B,U+D38E-D390,U+D392-D397,U+D39A-D39B,U+D39D-D39F,U+D3A1-D3A7,U+D3A9-D3AA,U+D3AC,U+D3AE-D3B3,U+D3B5-D3B7,U+D3B9-D3BB,U+D3BD-D3BE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.9.woff2)format("woff2");unicode-range:U+D257-D27F,U+D281-D29B,U+D29D-D29F,U+D2A1-D2AB,U+D2AD-D2B7,U+D2BA-D2BB,U+D2BD-D2BF,U+D2C1-D2C7,U+D2C9-D2EF,U+D2F2-D2F3,U+D2F5-D2F7,U+D2F9-D2FE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.10.woff2)format("woff2");unicode-range:U+D1B4,U+D1B6-D1F3,U+D1F5-D22B,U+D22E-D22F,U+D231-D233,U+D235-D23B,U+D23D-D240,U+D242-D256}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.11.woff2)format("woff2");unicode-range:U+D105-D12F,U+D132-D133,U+D135-D137,U+D139-D13F,U+D141-D142,U+D144,U+D146-D14B,U+D14E-D14F,U+D151-D153,U+D155-D15B,U+D15E-D187,U+D189-D19F,U+D1A2-D1A3,U+D1A5-D1A7,U+D1A9-D1AF,U+D1B2-D1B3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.12.woff2)format("woff2");unicode-range:U+D04B-D04F,U+D051-D057,U+D059-D06B,U+D06D-D06F,U+D071-D073,U+D075-D07B,U+D07E-D0A3,U+D0A6-D0A7,U+D0A9-D0AB,U+D0AD-D0B3,U+D0B6,U+D0B8,U+D0BA-D0BF,U+D0C2-D0C3,U+D0C5-D0C7,U+D0C9-D0CF,U+D0D2,U+D0D6-D0DB,U+D0DE-D0DF,U+D0E1-D0E3,U+D0E5-D0EB,U+D0EE-D0F0,U+D0F2-D104}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.13.woff2)format("woff2");unicode-range:U+CFA2-CFC3,U+CFC5-CFDF,U+CFE2-CFE3,U+CFE5-CFE7,U+CFE9-CFF4,U+CFF6-CFFB,U+CFFD-CFFF,U+D001-D003,U+D005-D017,U+D019-D033,U+D036-D037,U+D039-D03B,U+D03D-D04A}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.14.woff2)format("woff2");unicode-range:U+CEF0-CEF3,U+CEF6,U+CEF9-CEFF,U+CF01-CF03,U+CF05-CF07,U+CF09-CF0F,U+CF11-CF12,U+CF14-CF1B,U+CF1D-CF1F,U+CF21-CF2F,U+CF31-CF53,U+CF56-CF57,U+CF59-CF5B,U+CF5D-CF63,U+CF66,U+CF68,U+CF6A-CF6F,U+CF71-CF84,U+CF86-CF8B,U+CF8D-CFA1}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.15.woff2)format("woff2");unicode-range:U+CE3C-CE57,U+CE5A-CE5B,U+CE5D-CE5F,U+CE61-CE67,U+CE6A,U+CE6C,U+CE6E-CE73,U+CE76-CE77,U+CE79-CE7B,U+CE7D-CE83,U+CE85-CE88,U+CE8A-CE8F,U+CE91-CE93,U+CE95-CE97,U+CE99-CE9F,U+CEA2,U+CEA4-CEAB,U+CEAD-CEE3,U+CEE6-CEE7,U+CEE9-CEEB,U+CEED-CEEF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.16.woff2)format("woff2");unicode-range:U+CD92-CD93,U+CD96-CD97,U+CD99-CD9B,U+CD9D-CDA3,U+CDA6-CDA8,U+CDAA-CDAF,U+CDB1-CDC3,U+CDC5-CDCB,U+CDCD-CDE7,U+CDE9-CE03,U+CE05-CE1F,U+CE22-CE34,U+CE36-CE3B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.17.woff2)format("woff2");unicode-range:U+CCEF-CD07,U+CD0A-CD0B,U+CD0D-CD1A,U+CD1C,U+CD1E-CD2B,U+CD2D-CD5B,U+CD5D-CD77,U+CD79-CD91}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.18.woff2)format("woff2");unicode-range:U+CC3F-CC43,U+CC46-CC47,U+CC49-CC4B,U+CC4D-CC53,U+CC55-CC58,U+CC5A-CC5F,U+CC61-CC97,U+CC9A-CC9B,U+CC9D-CC9F,U+CCA1-CCA7,U+CCAA,U+CCAC,U+CCAE-CCB3,U+CCB6-CCB7,U+CCB9-CCBB,U+CCBD-CCCF,U+CCD1-CCE3,U+CCE5-CCEE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.19.woff2)format("woff2");unicode-range:U+CB91-CBD3,U+CBD5-CBE3,U+CBE5-CC0B,U+CC0E-CC0F,U+CC11-CC13,U+CC15-CC1B,U+CC1D-CC20,U+CC23-CC27,U+CC2A-CC2B,U+CC2D,U+CC2F,U+CC31-CC37,U+CC3A,U+CC3C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.20.woff2)format("woff2");unicode-range:U+CAF4-CB47,U+CB4A-CB90}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.21.woff2)format("woff2");unicode-range:U+CA4A-CA4B,U+CA4E-CA4F,U+CA51-CA53,U+CA55-CA5B,U+CA5D-CA60,U+CA62-CA83,U+CA85-CABB,U+CABE-CABF,U+CAC1-CAC3,U+CAC5-CACB,U+CACD-CAD0,U+CAD2,U+CAD4-CAD8,U+CADA-CAF3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.22.woff2)format("woff2");unicode-range:U+C996-C997,U+C99A-C99C,U+C99E-C9BF,U+C9C2-C9C3,U+C9C5-C9C7,U+C9C9-C9CF,U+C9D2,U+C9D4,U+C9D7-C9D8,U+C9DB,U+C9DE-C9DF,U+C9E1-C9E3,U+C9E5-C9E6,U+C9E8-C9EB,U+C9EE-C9F0,U+C9F2-C9F7,U+C9F9-CA0B,U+CA0D-CA28,U+CA2A-CA49}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.23.woff2)format("woff2");unicode-range:U+C8E9-C8F4,U+C8F6-C8FB,U+C8FE-C8FF,U+C901-C903,U+C905-C90B,U+C90E-C910,U+C912-C917,U+C919-C92B,U+C92D-C94F,U+C951-C953,U+C955-C96B,U+C96D-C973,U+C975-C987,U+C98A-C98B,U+C98D-C98F,U+C991-C995}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.24.woff2)format("woff2");unicode-range:U+C841-C84B,U+C84D-C86F,U+C872-C873,U+C875-C877,U+C879-C87F,U+C882-C884,U+C887-C88A,U+C88D-C8C3,U+C8C5-C8DF,U+C8E1-C8E8}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.25.woff2)format("woff2");unicode-range:U+C779-C77B,U+C77E-C782,U+C786,U+C78B,U+C78D,U+C78F,U+C792-C793,U+C795,U+C797,U+C799-C79F,U+C7A2,U+C7A7-C7AB,U+C7AE-C7BB,U+C7BD-C7C0,U+C7C2-C7C7,U+C7C9-C7DC,U+C7DE-C7FF,U+C802-C803,U+C805-C807,U+C809,U+C80B-C80F,U+C812,U+C814,U+C817-C81B,U+C81E-C81F,U+C821-C823,U+C825-C82E,U+C830-C837,U+C839-C83B,U+C83D-C840}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.26.woff2)format("woff2");unicode-range:U+C6BB-C6BF,U+C6C2,U+C6C4,U+C6C6-C6CB,U+C6CE-C6CF,U+C6D1-C6D3,U+C6D5-C6DB,U+C6DD-C6DF,U+C6E1-C6E7,U+C6E9-C6EB,U+C6ED-C6EF,U+C6F1-C6F8,U+C6FA-C703,U+C705-C707,U+C709-C70B,U+C70D-C716,U+C718,U+C71A-C71F,U+C722-C723,U+C725-C727,U+C729-C734,U+C736-C73B,U+C73E-C73F,U+C741-C743,U+C745-C74B,U+C74E-C750,U+C752-C757,U+C759-C773,U+C776-C777}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.27.woff2)format("woff2");unicode-range:U+C5F5-C5FB,U+C5FE,U+C602-C605,U+C607,U+C609-C60F,U+C611-C61A,U+C61C-C623,U+C626-C627,U+C629-C62B,U+C62D,U+C62F-C632,U+C636,U+C638,U+C63A-C63F,U+C642-C643,U+C645-C647,U+C649-C652,U+C656-C65B,U+C65D-C65F,U+C661-C663,U+C665-C677,U+C679-C67B,U+C67D-C693,U+C696-C697,U+C699-C69B,U+C69D-C6A3,U+C6A6,U+C6A8,U+C6AA-C6AF,U+C6B2-C6B3,U+C6B5-C6B7,U+C6B9-C6BA}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.28.woff2)format("woff2");unicode-range:U+C517-C527,U+C52A-C52B,U+C52D-C52F,U+C531-C538,U+C53A,U+C53C,U+C53E-C543,U+C546-C547,U+C54B,U+C54D-C552,U+C556,U+C55A-C55B,U+C55D,U+C55F,U+C562-C563,U+C565-C567,U+C569-C56F,U+C572,U+C574,U+C576-C57B,U+C57E-C57F,U+C581-C583,U+C585-C586,U+C588-C58B,U+C58E,U+C590,U+C592-C596,U+C599-C5B3,U+C5B6-C5B7,U+C5BA,U+C5BE-C5C3,U+C5CA-C5CB,U+C5CD,U+C5CF,U+C5D2-C5D3,U+C5D5-C5D7,U+C5D9-C5DF,U+C5E1-C5E2,U+C5E4,U+C5E6-C5EB,U+C5EF,U+C5F1-C5F3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.29.woff2)format("woff2");unicode-range:U+C475-C4EF,U+C4F2-C4F3,U+C4F5-C4F7,U+C4F9-C4FF,U+C502-C50B,U+C50D-C516}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.30.woff2)format("woff2");unicode-range:U+C3D0-C3D7,U+C3DA-C3DB,U+C3DD-C3DE,U+C3E1-C3EC,U+C3EE-C3F3,U+C3F5-C42B,U+C42D-C463,U+C466-C474}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.31.woff2)format("woff2");unicode-range:U+C32B-C367,U+C36A-C36B,U+C36D-C36F,U+C371-C377,U+C37A-C37B,U+C37E-C383,U+C385-C387,U+C389-C3CF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.32.woff2)format("woff2");unicode-range:U+C26A-C26B,U+C26D-C26F,U+C271-C273,U+C275-C27B,U+C27E-C287,U+C289-C28F,U+C291-C297,U+C299-C29A,U+C29C-C2A3,U+C2A5-C2A7,U+C2A9-C2AB,U+C2AD-C2B3,U+C2B6,U+C2B8,U+C2BA-C2BB,U+C2BD-C2DB,U+C2DE-C2DF,U+C2E1-C2E2,U+C2E5-C2EA,U+C2EE,U+C2F0,U+C2F2-C2F5,U+C2F7,U+C2FA-C2FB,U+C2FD-C2FF,U+C301-C307,U+C309-C30C,U+C30E-C312,U+C315-C323,U+C325-C328,U+C32A}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.33.woff2)format("woff2");unicode-range:U+C1BC-C1C3,U+C1C5-C1DF,U+C1E1-C1FB,U+C1FD-C203,U+C205-C20C,U+C20E,U+C210-C217,U+C21A-C21B,U+C21D-C21E,U+C221-C227,U+C229-C22A,U+C22C,U+C22E,U+C230,U+C233-C24F,U+C251-C257,U+C259-C269}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.34.woff2)format("woff2");unicode-range:U+C101-C11B,U+C11F,U+C121-C123,U+C125-C12B,U+C12E,U+C132-C137,U+C13A-C13B,U+C13D-C13F,U+C141-C147,U+C14A,U+C14C-C153,U+C155-C157,U+C159-C15B,U+C15D-C166,U+C169-C16F,U+C171-C177,U+C179-C18B,U+C18E-C18F,U+C191-C193,U+C195-C19B,U+C19D-C19E,U+C1A0,U+C1A2-C1A4,U+C1A6-C1BB}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.35.woff2)format("woff2");unicode-range:U+C049-C057,U+C059-C05B,U+C05D-C05F,U+C061-C067,U+C069-C08F,U+C091-C0AB,U+C0AE-C0AF,U+C0B1-C0B3,U+C0B5,U+C0B7-C0BB,U+C0BE,U+C0C2-C0C7,U+C0CA-C0CB,U+C0CD-C0CF,U+C0D1-C0D7,U+C0D9-C0DA,U+C0DC,U+C0DE-C0E3,U+C0E5-C0EB,U+C0ED-C0F3,U+C0F6,U+C0F8,U+C0FA-C0FF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.36.woff2)format("woff2");unicode-range:U+BFA7-BFAF,U+BFB1-BFC4,U+BFC6-BFCB,U+BFCE-BFCF,U+BFD1-BFD3,U+BFD5-BFDB,U+BFDD-C048}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.37.woff2)format("woff2");unicode-range:U+BF07,U+BF09-BF3F,U+BF41-BF4F,U+BF52-BF54,U+BF56-BFA6}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.38.woff2)format("woff2");unicode-range:U+BE56,U+BE58,U+BE5C-BE5F,U+BE62-BE63,U+BE65-BE67,U+BE69-BE74,U+BE76-BE7B,U+BE7E-BE7F,U+BE81-BE8E,U+BE90,U+BE92-BEA7,U+BEA9-BECF,U+BED2-BED3,U+BED5-BED6,U+BED9-BEE3,U+BEE6-BF06}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.39.woff2)format("woff2");unicode-range:U+BDB0-BDD3,U+BDD5-BDEF,U+BDF1-BE0B,U+BE0D-BE0F,U+BE11-BE13,U+BE15-BE43,U+BE46-BE47,U+BE49-BE4B,U+BE4D-BE53}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.40.woff2)format("woff2");unicode-range:U+BD03,U+BD06,U+BD08,U+BD0A-BD0F,U+BD11-BD22,U+BD25-BD47,U+BD49-BD58,U+BD5A-BD7F,U+BD82-BD83,U+BD85-BD87,U+BD8A-BD8F,U+BD91-BD92,U+BD94,U+BD96-BD98,U+BD9A-BDAF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.41.woff2)format("woff2");unicode-range:U+BC4E-BC83,U+BC86-BC87,U+BC89-BC8B,U+BC8D-BC93,U+BC96,U+BC98,U+BC9B-BC9F,U+BCA2-BCA3,U+BCA5-BCA7,U+BCA9-BCB2,U+BCB4-BCBB,U+BCBE-BCBF,U+BCC1-BCC3,U+BCC5-BCCC,U+BCCE-BCD0,U+BCD2-BCD4,U+BCD6-BCF3,U+BCF7,U+BCF9-BCFB,U+BCFD-BD02}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.42.woff2)format("woff2");unicode-range:U+BB90-BBA3,U+BBA5-BBAB,U+BBAD-BBBF,U+BBC1-BBF7,U+BBFA-BBFB,U+BBFD-BBFE,U+BC01-BC07,U+BC09-BC0A,U+BC0E,U+BC10,U+BC12-BC13,U+BC17,U+BC19-BC1A,U+BC1E,U+BC20-BC23,U+BC26,U+BC28,U+BC2A-BC2C,U+BC2E-BC2F,U+BC32-BC33,U+BC35-BC37,U+BC39-BC3F,U+BC41-BC42,U+BC44,U+BC46-BC48,U+BC4A-BC4D}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.43.woff2)format("woff2");unicode-range:U+BAE6-BAFB,U+BAFD-BB17,U+BB19-BB33,U+BB37,U+BB39-BB3A,U+BB3D-BB43,U+BB45-BB46,U+BB48,U+BB4A-BB4F,U+BB51-BB53,U+BB55-BB57,U+BB59-BB62,U+BB64-BB8F}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.44.woff2)format("woff2");unicode-range:U+BA30-BA37,U+BA3A-BA3B,U+BA3D-BA3F,U+BA41-BA47,U+BA49-BA4A,U+BA4C,U+BA4E-BA53,U+BA56-BA57,U+BA59-BA5B,U+BA5D-BA63,U+BA65-BA66,U+BA68-BA6F,U+BA71-BA73,U+BA75-BA77,U+BA79-BA84,U+BA86,U+BA88-BAA7,U+BAAA,U+BAAD-BAAF,U+BAB1-BAB7,U+BABA,U+BABC,U+BABE-BAE5}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.45.woff2)format("woff2");unicode-range:U+B96E-B973,U+B976-B977,U+B979-B97B,U+B97D-B983,U+B986,U+B988,U+B98A-B98D,U+B98F-B9AB,U+B9AE-B9AF,U+B9B1-B9B3,U+B9B5-B9BB,U+B9BE,U+B9C0,U+B9C2-B9C7,U+B9CA-B9CB,U+B9CD,U+B9D2-B9D7,U+B9DA,U+B9DC,U+B9DF-B9E0,U+B9E2,U+B9E6-B9E7,U+B9E9-B9F3,U+B9F6,U+B9F8,U+B9FB-BA2F}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.46.woff2)format("woff2");unicode-range:U+B8BF-B8CB,U+B8CD-B8E0,U+B8E2-B8E7,U+B8EA-B8EB,U+B8ED-B8EF,U+B8F1-B8F7,U+B8FA,U+B8FC,U+B8FE-B903,U+B905-B917,U+B919-B91F,U+B921-B93B,U+B93D-B957,U+B95A-B95B,U+B95D-B95F,U+B961-B967,U+B969-B96C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.47.woff2)format("woff2");unicode-range:U+B80D-B80F,U+B811-B817,U+B81A,U+B81C-B823,U+B826-B827,U+B829-B82B,U+B82D-B833,U+B836,U+B83A-B83F,U+B841-B85B,U+B85E-B85F,U+B861-B863,U+B865-B86B,U+B86E,U+B870,U+B872-B8AF,U+B8B1-B8BE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.48.woff2)format("woff2");unicode-range:U+B74D-B75F,U+B761-B763,U+B765-B774,U+B776-B77B,U+B77E-B77F,U+B781-B783,U+B785-B78B,U+B78E,U+B792-B796,U+B79A-B79B,U+B79D-B7A7,U+B7AA,U+B7AE-B7B3,U+B7B6-B7C8,U+B7CA-B7EB,U+B7EE-B7EF,U+B7F1-B7F3,U+B7F5-B7FB,U+B7FE,U+B802-B806,U+B80A-B80B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.49.woff2)format("woff2");unicode-range:U+B6A7-B6AA,U+B6AC-B6B0,U+B6B2-B6EF,U+B6F1-B727,U+B72A-B72B,U+B72D-B72E,U+B731-B737,U+B739-B73A,U+B73C-B743,U+B745-B74C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.50.woff2)format("woff2");unicode-range:U+B605-B60F,U+B612-B617,U+B619-B624,U+B626-B69B,U+B69E-B6A3,U+B6A5-B6A6}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.51.woff2)format("woff2");unicode-range:U+B55F,U+B562-B583,U+B585-B59F,U+B5A2-B5A3,U+B5A5-B5A7,U+B5A9-B5B2,U+B5B5-B5BA,U+B5BD-B604}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.52.woff2)format("woff2");unicode-range:U+B4A5-B4B6,U+B4B8-B4BF,U+B4C1-B4C7,U+B4C9-B4DB,U+B4DE-B4DF,U+B4E1-B4E2,U+B4E5-B4EB,U+B4EE,U+B4F0,U+B4F2-B513,U+B516-B517,U+B519-B51A,U+B51D-B523,U+B526,U+B528,U+B52B-B52F,U+B532-B533,U+B535-B537,U+B539-B53F,U+B541-B544,U+B546-B54B,U+B54D-B54F,U+B551-B55B,U+B55D-B55E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.53.woff2)format("woff2");unicode-range:U+B3F8-B3FB,U+B3FD-B40F,U+B411-B417,U+B419-B41B,U+B41D-B41F,U+B421-B427,U+B42A-B42B,U+B42D-B44F,U+B452-B453,U+B455-B457,U+B459-B45F,U+B462-B464,U+B466-B46B,U+B46D-B47F,U+B481-B4A3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.54.woff2)format("woff2");unicode-range:U+B342-B353,U+B356-B357,U+B359-B35B,U+B35D-B35E,U+B360-B363,U+B366,U+B368,U+B36A-B36D,U+B36F,U+B372-B373,U+B375-B377,U+B379-B37F,U+B381-B382,U+B384,U+B386-B38B,U+B38D-B3C3,U+B3C6-B3C7,U+B3C9-B3CA,U+B3CD-B3D3,U+B3D6,U+B3D8,U+B3DA-B3F7}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.55.woff2)format("woff2");unicode-range:U+B27C-B283,U+B285-B28F,U+B292-B293,U+B295-B297,U+B29A-B29F,U+B2A1-B2A4,U+B2A7-B2A9,U+B2AB,U+B2AD-B2C7,U+B2CA-B2CB,U+B2CD-B2CF,U+B2D1-B2D7,U+B2DA,U+B2DC,U+B2DE-B2E3,U+B2E7,U+B2E9-B2EA,U+B2EF-B2F3,U+B2F6,U+B2F8,U+B2FA-B2FB,U+B2FD-B2FE,U+B302-B303,U+B305-B307,U+B309-B30F,U+B312,U+B316-B31B,U+B31D-B341}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.56.woff2)format("woff2");unicode-range:U+B1D6-B1E7,U+B1E9-B1FC,U+B1FE-B203,U+B206-B207,U+B209-B20B,U+B20D-B213,U+B216-B21F,U+B221-B257,U+B259-B273,U+B275-B27B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.57.woff2)format("woff2");unicode-range:U+B120-B122,U+B126-B127,U+B129-B12B,U+B12D-B133,U+B136,U+B138,U+B13A-B13F,U+B142-B143,U+B145-B14F,U+B151-B153,U+B156-B157,U+B159-B177,U+B17A-B17B,U+B17D-B17F,U+B181-B187,U+B189-B18C,U+B18E-B191,U+B195-B1A7,U+B1A9-B1CB,U+B1CD-B1D5}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.58.woff2)format("woff2");unicode-range:U+B05F-B07B,U+B07E-B07F,U+B081-B083,U+B085-B08B,U+B08D-B097,U+B09B,U+B09D-B09F,U+B0A2-B0A7,U+B0AA,U+B0B0,U+B0B2,U+B0B6-B0B7,U+B0B9-B0BB,U+B0BD-B0C3,U+B0C6-B0C7,U+B0CA-B0CF,U+B0D1-B0DF,U+B0E1-B0E4,U+B0E6-B107,U+B10A-B10B,U+B10D-B10F,U+B111-B112,U+B114-B117,U+B119-B11A,U+B11C-B11F}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.59.woff2)format("woff2");unicode-range:U+AFAC-AFB7,U+AFBA-AFBB,U+AFBD-AFBF,U+AFC1-AFC6,U+AFCA-AFCC,U+AFCE-AFD3,U+AFD5-AFE7,U+AFE9-AFEF,U+AFF1-B00B,U+B00D-B00F,U+B011-B013,U+B015-B01B,U+B01D-B027,U+B029-B043,U+B045-B047,U+B049,U+B04B,U+B04D-B052,U+B055-B056,U+B058-B05C,U+B05E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.60.woff2)format("woff2");unicode-range:U+AF03-AF07,U+AF09-AF2B,U+AF2E-AF33,U+AF35-AF3B,U+AF3E-AF40,U+AF44-AF47,U+AF4A-AF5C,U+AF5E-AF63,U+AF65-AF7F,U+AF81-AFAB}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.61.woff2)format("woff2");unicode-range:U+AE56-AE5B,U+AE5E-AE60,U+AE62-AE64,U+AE66-AE67,U+AE69-AE6B,U+AE6D-AE83,U+AE85-AEBB,U+AEBF,U+AEC1-AEC3,U+AEC5-AECB,U+AECE,U+AED0,U+AED2-AED7,U+AED9-AEF3,U+AEF5-AF02}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.62.woff2)format("woff2");unicode-range:U+AD9C-ADA3,U+ADA5-ADBF,U+ADC1-ADC3,U+ADC5-ADC7,U+ADC9-ADD2,U+ADD4-ADDB,U+ADDD-ADDF,U+ADE1-ADE3,U+ADE5-ADF7,U+ADFA-ADFB,U+ADFD-ADFF,U+AE02-AE07,U+AE0A,U+AE0C,U+AE0E-AE13,U+AE15-AE2F,U+AE31-AE33,U+AE35-AE37,U+AE39-AE3F,U+AE42,U+AE44,U+AE46-AE49,U+AE4B,U+AE4F,U+AE51-AE53,U+AE55}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.63.woff2)format("woff2");unicode-range:U+ACE2-ACE3,U+ACE5-ACE6,U+ACE9-ACEF,U+ACF2,U+ACF4,U+ACF7-ACFB,U+ACFE-ACFF,U+AD01-AD03,U+AD05-AD0B,U+AD0D-AD10,U+AD12-AD1B,U+AD1D-AD33,U+AD35-AD48,U+AD4A-AD4F,U+AD51-AD6B,U+AD6E-AD6F,U+AD71-AD72,U+AD77-AD7C,U+AD7E,U+AD80,U+AD82-AD87,U+AD89-AD8B,U+AD8D-AD8F,U+AD91-AD9B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.64.woff2)format("woff2");unicode-range:U+AC25-AC2C,U+AC2E,U+AC30,U+AC32-AC37,U+AC39-AC3F,U+AC41-AC4C,U+AC4E-AC6F,U+AC72-AC73,U+AC75-AC76,U+AC79-AC7F,U+AC82,U+AC84-AC88,U+AC8A-AC8B,U+AC8D-AC8F,U+AC91-AC93,U+AC95-AC9B,U+AC9D-AC9E,U+ACA1-ACA7,U+ACAB,U+ACAD-ACAF,U+ACB1-ACB7,U+ACBA-ACBB,U+ACBE-ACC0,U+ACC2-ACC3,U+ACC5-ACDF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.65.woff2)format("woff2");unicode-range:U+99DF,U+99ED,U+99F1,U+99FF,U+9A01,U+9A08,U+9A0E-9A0F,U+9A19,U+9A2B,U+9A30,U+9A36-9A37,U+9A40,U+9A43,U+9A45,U+9A4D,U+9A55,U+9A57,U+9A5A-9A5B,U+9A5F,U+9A62,U+9A65,U+9A69-9A6A,U+9AA8,U+9AB8,U+9AD3,U+9AE5,U+9AEE,U+9B1A,U+9B27,U+9B2A,U+9B31,U+9B3C,U+9B41-9B45,U+9B4F,U+9B54,U+9B5A,U+9B6F,U+9B8E,U+9B91,U+9B9F,U+9BAB,U+9BAE,U+9BC9,U+9BD6,U+9BE4,U+9BE8,U+9C0D,U+9C10,U+9C12,U+9C15,U+9C25,U+9C32,U+9C3B,U+9C47,U+9C49,U+9C57,U+9CE5,U+9CE7,U+9CE9,U+9CF3-9CF4,U+9CF6,U+9D09,U+9D1B,U+9D26,U+9D28,U+9D3B,U+9D51,U+9D5D,U+9D60-9D61,U+9D6C,U+9D72,U+9DA9,U+9DAF,U+9DB4,U+9DC4,U+9DD7,U+9DF2,U+9DF8-9DFA,U+9E1A,U+9E1E,U+9E75,U+9E79,U+9E7D,U+9E7F,U+9E92-9E93,U+9E97,U+9E9D,U+9E9F,U+9EA5,U+9EB4-9EB5,U+9EBB,U+9EBE,U+9EC3,U+9ECD-9ECE,U+9ED4,U+9ED8,U+9EDB-9EDC,U+9EDE,U+9EE8,U+9EF4,U+9F07-9F08,U+9F0E,U+9F13,U+9F20,U+9F3B,U+9F4A-9F4B,U+9F4E,U+9F52,U+9F5F,U+9F61,U+9F67,U+9F6A,U+9F6C,U+9F77,U+9F8D,U+9F90,U+9F95,U+9F9C,U+AC02-AC03,U+AC05-AC06,U+AC09-AC0F,U+AC17-AC18,U+AC1B,U+AC1E-AC1F,U+AC21-AC23}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.94.woff2)format("woff2");unicode-range:U+3136,U+3138,U+313A-3140,U+3143-3144,U+3150,U+3152,U+3154-3156,U+3158-315B,U+315D-315F,U+3162,U+3164-318C,U+318E,U+3200-321B,U+3231,U+3239,U+3251-325A,U+3260-327B,U+327E-327F,U+328A-3290,U+3294,U+329E,U+32A5,U+3380-3384,U+3388-338B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.95.woff2)format("woff2");unicode-range:U+2F7D,U+2F7F-2F8B,U+2F8E-2F90,U+2F92-2F97,U+2F99-2FA0,U+2FA2-2FA3,U+2FA5-2FA9,U+2FAC-2FB1,U+2FB3-2FBC,U+2FC1-2FCA,U+2FCD-2FD4,U+3003,U+3012-3019,U+301C,U+301E-3020,U+3036,U+3041,U+3043,U+3045,U+3047,U+3049,U+304E,U+3050,U+3052,U+3056,U+305A,U+305C,U+305E,U+3062,U+3065,U+306C,U+3070-307D,U+3080,U+3085,U+3087,U+308E,U+3090-3091,U+30A1,U+30A5,U+30A9,U+30AE,U+30B1-30B2,U+30B4,U+30B6,U+30BC-30BE,U+30C2,U+30C5,U+30CC,U+30D2,U+30D4,U+30D8-30DD,U+30E4,U+30E6,U+30E8,U+30EE,U+30F0-30F2,U+30F4-30F6,U+3133,U+3135}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.100.woff2)format("woff2");unicode-range:U+E8,U+2DA,U+2160,U+2194,U+3054,U+3058,U+306D,U+3086,U+308D,U+30AC,U+30BB,U+30C4,U+30CD-30CE,U+30E2,U+3132,U+3146,U+3149,U+339D,U+4E3B,U+4F0A,U+4FDD,U+4FE1,U+5409,U+540C,U+5834,U+592A-592B,U+5B9A,U+5DDE,U+5E0C,U+5E73,U+5F0F,U+60F3,U+653F,U+661F,U+662F,U+667A,U+683C,U+6B4C,U+6C11,U+767C,U+76EE,U+76F4,U+77F3,U+79D1,U+7A7A,U+7B2C,U+7D22,U+8207,U+8A00,U+8A71,U+9280,U+9580,U+958B,U+96C6,U+9762,U+98DF,U+9ED1,U+AC2D,U+ADC8,U+ADD3,U+AF48,U+B014,U+B134-B135,U+B158,U+B2AA,U+B35F,U+B6A4,U+B9CF,U+BB63,U+BD23,U+BE91,U+C29B,U+C3F4,U+C42C,U+C55C,U+C573,U+C58F,U+C78C,U+C7DD,U+C8F5,U+CAD1,U+CC48,U+CF10,U+CF20,U+D03C,U+D07D,U+D2A0,U+D30E,U+D38D,U+D3A8,U+D3C8,U+D5E5,U+D5F9,U+D6E4,U+F90A,U+FF02,U+FF1C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.101.woff2)format("woff2");unicode-range:U+3B1,U+2466,U+25A1,U+25A3,U+261C,U+3008-3009,U+305B,U+305D,U+3069,U+30A7,U+30BA,U+30CF,U+30EF,U+3151,U+3157,U+4E4B,U+4E5F,U+4E8C,U+4ECA,U+4ED6,U+4F5B,U+50CF,U+5149,U+5165,U+5171,U+5229,U+529B,U+5316,U+539F,U+53F2,U+571F,U+5728,U+58EB,U+591C,U+5B78,U+5C11,U+5C55,U+5DDD,U+5E02,U+5FB7,U+60C5,U+610F,U+611F,U+6625,U+66F8,U+6797,U+679C,U+682A,U+6D2A,U+706B,U+7406,U+767B,U+76F8,U+77E5,U+7ACB,U+898B,U+8A69,U+8DEF,U+8FD1,U+901A,U+90E8,U+91CD,U+975E,U+AE14,U+AE6C,U+AEC0,U+AFC7,U+AFC9,U+B01C,U+B028,U+B308,U+B311,U+B314,U+B31C,U+B524,U+B560,U+B764,U+B920,U+B9E3,U+BD48,U+BE7D,U+C0DB,U+C231,U+C270,U+C2E3,U+C37D,U+C3ED,U+C530,U+C6A5,U+C6DC,U+C7A4,U+C954,U+C974,U+D000,U+D565,U+D667,U+D6C5,U+D79D,U+FF1E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.102.woff2)format("woff2");unicode-range:U+131,U+2032,U+2465,U+2642,U+3048,U+3051,U+3083-3084,U+308F,U+30C0,U+30D1,U+30D3,U+30D6,U+30DF,U+30E7,U+3153,U+4E16,U+4E8B,U+4EE5,U+5206,U+52A0,U+52D5,U+53E4,U+53EF,U+54C1,U+57CE,U+597D,U+5B8C,U+5EA6,U+5F8C,U+5F97,U+6210,U+6240,U+624B,U+6728,U+6BD4,U+7236,U+7269,U+7279,U+738B,U+7528,U+7530,U+767E,U+798F,U+8005,U+8A18,U+90FD,U+91CC,U+9577,U+9593,U+98A8,U+AC20,U+ACF6,U+AD90,U+AF5D,U+AF80,U+AFCD,U+AFF0,U+B0A1,U+B0B5,U+B1FD,U+B2FC,U+B380,U+B51B,U+B584,U+B5B3,U+B8FD,U+B93C,U+B9F4,U+BB44,U+BC08,U+BC27,U+BC49,U+BE55,U+BE64,U+BFB0,U+BFC5,U+C178,U+C21F,U+C314,U+C4F1,U+C58D,U+C664,U+C698,U+C6A7,U+C6C1,U+C9ED,U+CAC0,U+CACC,U+CAD9,U+CCB5,U+CDCC,U+D0E4,U+D143,U+D320,U+D330,U+D54D,U+FF06,U+FF1F,U+FF5E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.103.woff2)format("woff2");unicode-range:U+B4,U+20A9,U+20AC,U+2190,U+24D8,U+2502,U+2514,U+2592,U+25C7-25C8,U+2663,U+3060,U+3064,U+3081,U+3088,U+30A3,U+30A6,U+30AA,U+30B5,U+30C7,U+30CA-30CB,U+30D0,U+30E3,U+30E5,U+339E,U+4E09,U+4EAC,U+4F5C,U+5167-5168,U+516C,U+51FA,U+5408,U+540D,U+591A,U+5B57,U+6211,U+65B9,U+660E,U+6642,U+6700,U+6B63,U+6E2F,U+7063,U+7532,U+793E,U+81EA,U+8272,U+82B1,U+897F,U+8ECA,U+91CE,U+AC38,U+AD76,U+AE84,U+AECC,U+B07D,U+B0B1,U+B215,U+B2A0,U+B310,U+B3D7,U+B52A,U+B618,U+B775,U+B797,U+BCD5,U+BD59,U+BE80,U+BEA8,U+BED1,U+BEE4-BEE5,U+C060,U+C2EF,U+C329,U+C3DC,U+C597,U+C5BD,U+C5E5,U+C69C,U+C9D6,U+CA29,U+CA5C,U+CA84,U+CC39,U+CC3B,U+CE89,U+CEE5,U+CF65,U+CF85,U+D058,U+D145,U+D22D,U+D325,U+D37D,U+D3AD,U+D769,U+FF0C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.104.woff2)format("woff2");unicode-range:U+2161,U+2228,U+2299,U+2464,U+2517,U+2640,U+3042,U+304A,U+3053,U+3061,U+307F,U+3082,U+308C,U+3092,U+30A8,U+30AB,U+30AD,U+30B0,U+30B3,U+30B7,U+30C1,U+30C6,U+30C9,U+30D5,U+30D7,U+30DE,U+30E0-30E1,U+30EC-30ED,U+4E0B,U+4E0D,U+4EE3,U+53F0,U+548C,U+5B89,U+5BB6,U+5C0F,U+611B,U+6771,U+6AA2,U+6BCD,U+6C34,U+6CD5,U+6D77,U+767D,U+795E,U+8ECD,U+9999,U+9AD8,U+AC07,U+AC1A,U+AC40,U+AD0C,U+AD88,U+ADA4,U+AE01,U+AE65,U+AEBD,U+AEC4,U+AFE8,U+B139,U+B205,U+B383,U+B38C,U+B42C,U+B461,U+B55C,U+B78F,U+B8FB,U+B9F7,U+BAFC,U+BC99,U+BED8,U+BFCD,U+C0BF,U+C0F9,U+C167,U+C204,U+C20F,U+C22F,U+C258,U+C298,U+C2BC,U+C388,U+C501,U+C50C,U+C5B9,U+C5CE,U+C641,U+C648,U+C73D,U+CA50,U+CA61,U+CC4C,U+CEAC,U+D0D4,U+D5F7,U+D6D7,U+FF1A}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.105.woff2)format("woff2");unicode-range:U+2103,U+2463,U+25C6,U+25CB,U+266C,U+3001,U+300A,U+3046,U+304C-304D,U+304F,U+3055,U+3059,U+3063,U+3066-3068,U+306F,U+3089,U+30B8,U+30BF,U+314F,U+4E0A,U+570B,U+5730,U+5916,U+5929,U+5C71,U+5E74,U+5FC3,U+601D,U+6027,U+63D0,U+6709,U+6734,U+751F,U+7684,U+82F1,U+9053,U+91D1,U+97F3,U+AC2F,U+AC4D,U+ADC4,U+ADE4,U+AE41,U+AE4D-AE4E,U+AED1,U+AFB9,U+B0E0,U+B299,U+B365,U+B46C,U+B480,U+B4C8,U+B7B4,U+B819,U+B918,U+BAAB,U+BAB9,U+BE8F,U+BED7,U+C0EC,U+C19F,U+C1A5,U+C3D9,U+C464,U+C53D,U+C553,U+C570,U+C5CC,U+C633,U+C6A4,U+C7A3,U+C7A6,U+C886,U+C9D9-C9DA,U+C9EC,U+CA0C,U+CC21,U+CD1B,U+CD78,U+CDC4,U+CEF8,U+CFE4,U+D0A5,U+D0B5,U+D0EC,U+D15D,U+D188,U+D23C,U+D2AC,U+D729,U+D79B,U+FF01,U+FF08-FF09,U+FF5C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.106.woff2)format("woff2");unicode-range:U+2039-203A,U+223C,U+25B3,U+25B7,U+25BD,U+25CF,U+266A,U+3002,U+300B,U+304B,U+3057,U+305F,U+306A-306B,U+307E,U+308A-308B,U+3093,U+30A2,U+30AF,U+30B9,U+30C3,U+30C8,U+30E9-30EB,U+33A1,U+4E00,U+524D,U+5357,U+5B50,U+7121,U+884C,U+9751,U+AC94,U+AEBE,U+AECD,U+AF08,U+AF41,U+AF49,U+B010,U+B053,U+B109,U+B11B,U+B128,U+B154,U+B291,U+B2E6,U+B301,U+B385,U+B525,U+B5B4,U+B729,U+B72F,U+B738,U+B7FF,U+B837,U+B975,U+BA67,U+BB47,U+BC1F,U+BD90,U+BFD4,U+C27C,U+C324,U+C379,U+C3E0,U+C465,U+C53B,U+C58C,U+C610,U+C653,U+C6CD,U+C813,U+C82F,U+C999,U+C9E0,U+CAC4,U+CAD3,U+CBD4,U+CC10,U+CC22,U+CCB8,U+CCBC,U+CDA5,U+CE84,U+CEA3,U+CF67,U+CFE1,U+D241,U+D30D,U+D31C,U+D391,U+D401,U+D479,U+D5C9,U+D5DB,U+D649,U+D6D4}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.107.woff2)format("woff2");unicode-range:U+B0,U+E9,U+2193,U+2462,U+260E,U+261E,U+300E-300F,U+3044,U+30A4,U+30FB-30FC,U+314D,U+5973,U+6545,U+6708,U+7537,U+AC89,U+AC9C,U+ACC1,U+AD04,U+AD75,U+AD7D,U+AE45,U+AE61,U+AF42,U+B0AB,U+B0AF,U+B0B3,U+B12C,U+B194,U+B1A8,U+B220,U+B258,U+B284,U+B2FF,U+B315,U+B371,U+B3D4-B3D5,U+B460,U+B527,U+B534,U+B810,U+B818,U+B98E,U+BA55,U+BBAC,U+BC0B,U+BC40,U+BCA1,U+BCCD,U+BD93,U+BE54,U+BE5A,U+BF08,U+BF50,U+BF55,U+BFDC,U+C0C0,U+C0D0,U+C0F4,U+C100,U+C11E,U+C170,U+C20D,U+C274,U+C290,U+C308,U+C369,U+C539,U+C587,U+C5FF,U+C6EC,U+C70C,U+C7AD,U+C7C8,U+C83C,U+C881,U+CB48,U+CC60,U+CE69,U+CE6B,U+CE75,U+CF04,U+CF08,U+CF55,U+CF70,U+CFFC,U+D0B7,U+D1A8,U+D2C8,U+D384,U+D47C,U+D48B,U+D5DD,U+D5E8,U+D720,U+D759,U+F981}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.108.woff2)format("woff2");unicode-range:U+E0,U+E2,U+395,U+3B7,U+3BA,U+2460-2461,U+25A0,U+3010-3011,U+306E,U+30F3,U+314A,U+314C,U+5927,U+65B0,U+7E41,U+97D3,U+9AD4,U+AD49,U+AE0B,U+AE0D,U+AE43,U+AE5D,U+AECF,U+AF3C,U+AF64,U+AFD4,U+B080,U+B084,U+B0C5,U+B10C,U+B1E8,U+B2AC,U+B36E,U+B451,U+B515,U+B540,U+B561,U+B6AB,U+B6B1,U+B72C,U+B730,U+B744,U+B800,U+B8EC,U+B8F0,U+B904,U+B968,U+B96D,U+B987,U+B9D9,U+BB36,U+BB49,U+BC2D,U+BC43,U+BCF6,U+BD89,U+BE57,U+BE61,U+BED4,U+C090,U+C130,U+C148,U+C19C,U+C2F9,U+C36C,U+C37C,U+C384,U+C3DF,U+C575,U+C584,U+C660,U+C719,U+C816,U+CA4D,U+CA54,U+CABC,U+CB49,U+CC14,U+CFF5,U+D004,U+D038,U+D0B4,U+D0D3,U+D0E0,U+D0ED,U+D131,U+D1B0,U+D31F,U+D33D,U+D3A0,U+D3AB,U+D514,U+D584,U+D6A1,U+D6CC,U+D749,U+D760,U+D799}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.109.woff2)format("woff2");unicode-range:U+24,U+60,U+3B9,U+3BB,U+3BD,U+2191,U+2606,U+300C-300D,U+3131,U+3134,U+3139,U+3141-3142,U+3148,U+3161,U+3163,U+321C,U+4EBA,U+5317,U+AC31,U+AC77,U+AC9F,U+ACB9,U+ACF0-ACF1,U+ACFD,U+AD73,U+AF3D,U+B00C,U+B04A,U+B057,U+B0C4,U+B188,U+B1CC,U+B214,U+B2DB,U+B2EE,U+B304,U+B4ED,U+B518,U+B5BC,U+B625,U+B69C-B69D,U+B7AC,U+B801,U+B86C,U+B959,U+B95C,U+B985,U+BA48,U+BB58,U+BC0C,U+BC38,U+BC85,U+BC9A,U+BF40,U+C068,U+C0BD,U+C0CC,U+C12F,U+C149,U+C1E0,U+C22B,U+C22D,U+C250,U+C2FC,U+C300,U+C313,U+C370,U+C3D8,U+C557,U+C580,U+C5E3,U+C62E,U+C634,U+C6F0,U+C74D,U+C783,U+C78E,U+C796,U+C7BC,U+C92C,U+CA4C,U+CC1C,U+CC54,U+CC59,U+CE04,U+CF30,U+CFC4,U+D140,U+D321,U+D38C,U+D399,U+D54F,U+D587,U+D5D0,U+D6E8,U+D770}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.110.woff2)format("woff2");unicode-range:U+D7,U+EA,U+FC,U+2192,U+25BC,U+3000,U+3137,U+3145,U+315C,U+7F8E,U+AC13,U+AC71,U+AC90,U+ACB8,U+ACE7,U+AD7F,U+AE50,U+AEF4,U+AF34,U+AFBC,U+B048,U+B09A,U+B0AD,U+B0BC,U+B113,U+B125,U+B141,U+B20C,U+B2D9,U+B2ED,U+B367,U+B369,U+B374,U+B3CB,U+B4EC,U+B611,U+B760,U+B81B,U+B834,U+B8B0,U+B8E1,U+B989,U+B9D1,U+B9E1,U+B9FA,U+BA4D,U+BA78,U+BB35,U+BB54,U+BBF9,U+BC11,U+BCB3,U+BD05,U+BD95,U+BDD4,U+BE10,U+BED0,U+BF51,U+C0D8,U+C232,U+C2B7,U+C2EB,U+C378,U+C500,U+C52C,U+C549,U+C568,U+C598,U+C5C9,U+C61B,U+C639,U+C67C,U+C717,U+C78A,U+C80A,U+C90C-C90D,U+C950,U+C9E7,U+CBE4,U+CCA9,U+CCE4,U+CDB0,U+CE78,U+CE94,U+CE98,U+CF8C,U+D018,U+D034,U+D0F1,U+D1B1,U+D280,U+D2F8,U+D338,U+D380,U+D3B4,U+D610,U+D69F,U+D6FC,U+D758}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.111.woff2)format("woff2");unicode-range:U+E7,U+2022,U+203B,U+25C0,U+2605,U+2661,U+3147,U+318D,U+672C,U+8A9E,U+ACAA,U+ACBC,U+AD1C,U+AE4A,U+AE5C,U+B044,U+B054,U+B0C8-B0C9,U+B2A6,U+B2D0,U+B35C,U+B364,U+B428,U+B454,U+B465,U+B4B7,U+B4E3,U+B51C,U+B5A1,U+B784,U+B790,U+B7AB,U+B7F4,U+B82C,U+B835,U+B8E9,U+B8F8,U+B9D8,U+B9F9,U+BA5C,U+BA64,U+BABD,U+BB18,U+BB3B,U+BBFF,U+BC0D,U+BC45,U+BC97,U+BCBC,U+BE45,U+BE75,U+BE7C,U+BFCC,U+C0B6,U+C0F7,U+C14B,U+C2B4,U+C30D,U+C4F8,U+C5BB,U+C5D1,U+C5E0,U+C5EE,U+C5FD,U+C606,U+C6C5,U+C6E0,U+C708,U+C81D,U+C820,U+C824,U+C878,U+C918,U+C96C,U+C9E4,U+C9F1,U+CC2E,U+CD09,U+CEA1,U+CEF5,U+CEF7,U+CF64,U+CF69,U+CFE8,U+D035,U+D0AC,U+D230,U+D234,U+D2F4,U+D31D,U+D575,U+D578,U+D608,U+D614,U+D718,U+D751,U+D761,U+D78C,U+D790}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.112.woff2)format("woff2");unicode-range:U+2665,U+3160,U+4E2D,U+6587,U+65E5,U+AC12,U+AC14,U+AC16,U+AC81,U+AD34,U+ADE0,U+AE54,U+AEBC,U+AF2C,U+AFC0,U+AFC8,U+B04C,U+B08C,U+B099,U+B0A9,U+B0AC,U+B0AE,U+B0B8,U+B123,U+B179,U+B2E5,U+B2F7,U+B4C0,U+B531,U+B538,U+B545,U+B550,U+B5A8,U+B6F0,U+B728,U+B73B,U+B7AD,U+B7ED,U+B809,U+B864,U+B86D,U+B871,U+B9BF,U+B9F5,U+BA40,U+BA4B,U+BA58,U+BA87,U+BAAC,U+BBC0,U+BC16,U+BC34,U+BD07,U+BD99,U+BE59,U+BFD0,U+C058,U+C0E4,U+C0F5,U+C12D,U+C139,U+C228,U+C529,U+C5C7,U+C635,U+C637,U+C735,U+C77D,U+C787,U+C789,U+C8C4,U+C989,U+C98C,U+C9D0,U+C9D3,U+CC0C,U+CC99,U+CD0C,U+CD2C,U+CD98,U+CDA4,U+CE59,U+CE60,U+CE6D,U+CEA0,U+D0D0-D0D1,U+D0D5,U+D14D,U+D1A4,U+D29C,U+D2F1,U+D301,U+D39C,U+D3BC,U+D4E8,U+D540,U+D5EC,U+D640,U+D750}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.113.woff2)format("woff2");unicode-range:U+5E,U+25B2,U+25B6,U+314E,U+AC24,U+ACE1,U+ACE4,U+AE68,U+AF2D,U+B0D0,U+B0E5,U+B150,U+B155,U+B193,U+B2C9,U+B2DD,U+B3C8,U+B3FC,U+B410,U+B458,U+B4DD,U+B5A0,U+B5A4,U+B5BB,U+B7B5,U+B838,U+B840,U+B86F,U+B8F9,U+B960,U+B9E5,U+BAB8,U+BB50,U+BC1D,U+BC24-BC25,U+BCA8,U+BCBD,U+BD04,U+BD10,U+BD24,U+BE48,U+BE5B,U+BE68,U+C05C,U+C12C,U+C140,U+C15C,U+C168,U+C194,U+C219,U+C27D,U+C2A8,U+C2F1,U+C2F8,U+C368,U+C554-C555,U+C559,U+C564,U+C5D8,U+C5FC,U+C625,U+C65C,U+C6B1,U+C728,U+C794,U+C84C,U+C88C,U+C8E0,U+C8FD,U+C998,U+C9DD,U+CC0D,U+CC30,U+CEEC,U+CF13,U+CF1C,U+CF5C,U+D050,U+D07C,U+D0A8,U+D134,U+D138,U+D154,U+D1F4,U+D2BC,U+D329,U+D32C,U+D3D0,U+D3F4,U+D3FC,U+D56B,U+D5CC,U+D600-D601,U+D639,U+D6C8,U+D754,U+D765}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.114.woff2)format("woff2");unicode-range:U+3C-3D,U+2026,U+24D2,U+314B,U+AC11,U+ACF3,U+AD74,U+AD81,U+ADF9,U+AE34,U+AF43,U+AFB8,U+B05D,U+B07C,U+B110,U+B118,U+B17C,U+B180,U+B18D,U+B192,U+B2CC,U+B355,U+B378,U+B4A4,U+B4EF,U+B78D,U+B799,U+B7A9,U+B7FD,U+B807,U+B80C,U+B839,U+B9B4,U+B9DB,U+BA3C,U+BAB0,U+BBA4,U+BC94,U+BE4C,U+C154,U+C1C4,U+C26C,U+C2AC,U+C2ED,U+C4F4,U+C55E,U+C561,U+C571,U+C5B5,U+C5C4,U+C654-C655,U+C695,U+C6E8,U+C6F9,U+C724,U+C751,U+C775,U+C7A0,U+C7C1,U+C874,U+C880,U+C9D5,U+C9F8,U+CABD,U+CC29,U+CC2C,U+CCA8,U+CCAB,U+CCD0,U+CE21,U+CE35,U+CE7C,U+CE90,U+CEE8,U+CEF4,U+CFE0,U+D070,U+D0B9,U+D0C1,U+D0C4,U+D0C8,U+D15C,U+D1A1,U+D2C0,U+D300,U+D314,U+D3ED,U+D478,U+D480,U+D48D,U+D508,U+D53D,U+D5E4,U+D611,U+D61C,U+D68D,U+D6A8,U+D798}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.115.woff2)format("woff2");unicode-range:U+23,U+25,U+5F,U+A9,U+AC08,U+AC78,U+ACA8,U+ACAC,U+ACE8,U+AD70,U+ADC0,U+ADDC,U+B137,U+B140,U+B208,U+B290,U+B2F5,U+B3C5,U+B3CC,U+B420,U+B429,U+B529,U+B530,U+B77D,U+B79C,U+B7A8,U+B7C9,U+B7F0,U+B7FC,U+B828,U+B860,U+B9AD,U+B9C1,U+B9C9,U+B9DD-B9DE,U+B9E8,U+BA38-BA39,U+BABB,U+BC00,U+BC8C,U+BCA0,U+BCA4,U+BCD1,U+BCFC,U+BD09,U+BDF0,U+BE60,U+C0AD,U+C0B4,U+C0BC,U+C190,U+C1FC,U+C220,U+C288,U+C2B9,U+C2F6,U+C528,U+C545,U+C558,U+C5BC,U+C5D4,U+C600,U+C644,U+C6C0,U+C6C3,U+C721,U+C798,U+C7A1,U+C811,U+C838,U+C871,U+C904,U+C990,U+C9DC,U+CC38,U+CC44,U+CCA0,U+CD1D,U+CD95,U+CDA9,U+CE5C,U+CF00,U+CF58,U+D150,U+D22C,U+D305,U+D328,U+D37C,U+D3F0,U+D551,U+D5A5,U+D5C8,U+D5D8,U+D63C,U+D64D,U+D669,U+D734,U+D76C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.116.woff2)format("woff2");unicode-range:U+26,U+2B,U+3E,U+40,U+7E,U+AC01,U+AC19,U+AC1D,U+ACA0,U+ACA9,U+ACB0,U+AD8C,U+AE09,U+AE38,U+AE40,U+AED8,U+B09C,U+B0A0,U+B108,U+B204,U+B298,U+B2D8,U+B2EB-B2EC,U+B2F4,U+B313,U+B358,U+B450,U+B4E0,U+B54C,U+B610,U+B780,U+B78C,U+B791,U+B8E8,U+B958,U+B974,U+B984,U+B9B0,U+B9BC-B9BD,U+B9CE,U+BA70,U+BBFC,U+BC0F,U+BC15,U+BC1B,U+BC31,U+BC95,U+BCC0,U+BCC4,U+BD81,U+BD88,U+C0C8,U+C11D,U+C13C,U+C158,U+C18D,U+C1A1,U+C21C,U+C4F0,U+C54A,U+C560,U+C5B8,U+C5C8,U+C5F4,U+C628,U+C62C,U+C678,U+C6CC,U+C808,U+C810,U+C885,U+C88B,U+C900,U+C988,U+C99D,U+C9C8,U+CC3D-CC3E,U+CC45,U+CD08,U+CE20,U+CEE4,U+D074,U+D0A4,U+D0DD,U+D2B9,U+D3B8,U+D3C9,U+D488,U+D544,U+D559,U+D56D,U+D588,U+D615,U+D648,U+D655,U+D658,U+D65C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.117.woff2)format("woff2");unicode-range:U+D,U+48,U+7C,U+AC10,U+AC15,U+AC74,U+AC80,U+AC83,U+ACC4,U+AD11,U+AD50,U+AD6D,U+ADFC,U+AE00,U+AE08,U+AE4C,U+B0A8,U+B124,U+B144,U+B178,U+B274,U+B2A5,U+B2E8,U+B2F9,U+B354,U+B370,U+B418,U+B41C,U+B4F1,U+B514,U+B798,U+B808,U+B824-B825,U+B8CC,U+B978,U+B9D0,U+B9E4,U+BAA9,U+BB3C,U+BC18,U+BC1C,U+BC30,U+BC84,U+BCF5,U+BCF8,U+BD84,U+BE0C,U+BE14,U+C0B0,U+C0C9,U+C0DD,U+C124,U+C2DD,U+C2E4,U+C2EC,U+C54C,U+C57C-C57D,U+C591,U+C5C5-C5C6,U+C5ED,U+C608,U+C640,U+C6B8,U+C6D4,U+C784,U+C7AC,U+C800-C801,U+C9C1,U+C9D1,U+CC28,U+CC98,U+CC9C,U+CCAD,U+CD5C,U+CD94,U+CD9C,U+CDE8,U+CE68,U+CF54,U+D0DC,U+D14C,U+D1A0,U+D1B5,U+D2F0,U+D30C,U+D310,U+D398,U+D45C,U+D50C,U+D53C,U+D560,U+D568,U+D589,U+D604,U+D6C4,U+D788}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.118.woff2)format("woff2");unicode-range:U+39,U+49,U+4D-4E,U+A0,U+AC04,U+AC1C,U+AC70,U+AC8C,U+ACBD,U+ACF5,U+ACFC,U+AD00,U+AD6C,U+ADF8,U+B098,U+B0B4,U+B294,U+B2C8,U+B300,U+B3C4,U+B3D9,U+B4DC,U+B4E4,U+B77C,U+B7EC,U+B85D,U+B97C,U+B9C8,U+B9CC,U+BA54,U+BA74,U+BA85,U+BAA8,U+BB34,U+BB38,U+BBF8,U+BC14,U+BC29,U+BC88,U+BCF4,U+BD80,U+BE44,U+C0C1,U+C11C,U+C120,U+C131,U+C138,U+C18C,U+C218,U+C2B5,U+C2E0,U+C544,U+C548,U+C5B4,U+C5D0,U+C5EC,U+C5F0,U+C601,U+C624,U+C694,U+C6A9,U+C6B0,U+C6B4,U+C6D0,U+C704,U+C720,U+C73C,U+C740,U+C744,U+C74C,U+C758,U+C77C,U+C785,U+C788,U+C790-C791,U+C7A5,U+C804,U+C815,U+C81C,U+C870,U+C8FC,U+C911,U+C9C4,U+CCB4,U+CE58,U+CE74,U+D06C,U+D0C0,U+D130,U+D2B8,U+D3EC,U+D504,U+D55C,U+D569,U+D574,U+D638,U+D654,U+D68C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.119.woff2)format("woff2");unicode-range:U+20-22,U+27-2A,U+2C-38,U+3A-3B,U+3F,U+41-47,U+4A-4C,U+4F-5D,U+61-7B,U+7D,U+A1,U+AB,U+AE,U+B7,U+BB,U+BF,U+2013-2014,U+201C-201D,U+2122,U+AC00,U+ACE0,U+AE30,U+B2E4,U+B85C,U+B9AC,U+C0AC,U+C2A4,U+C2DC,U+C774,U+C778,U+C9C0,U+D558}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshZAmK9RMckqI.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZurR_iJGursUpyo0Q.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuiR_iJGursUpyo0Q.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuqR_iJGursUpyo0Q.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZulR_iJGursUpyo0Q.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZvuR_iJGursUpyo0Q.woff2)format("woff2");unicode-range:U+200C-200D,U+2010,U+25CC,U+A900-A92F}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZupR_iJGursUpyo0Q.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuoR_iJGursUpyo0Q.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZumR_iJGursUpw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.0.woff2)format("woff2");unicode-range:U+25EE8,U+25F23,U+25F5C,U+25FD4,U+25FE0,U+25FFB,U+2600C,U+26017,U+26060,U+260ED,U+26222,U+2626A,U+26270,U+26286,U+2634C,U+26402,U+2667E,U+266B0,U+2671D,U+268DD,U+268EA,U+26951,U+2696F,U+26999,U+269DD,U+26A1E,U+26A58,U+26A8C,U+26AB7,U+26AFF,U+26C29,U+26C73,U+26C9E,U+26CDD,U+26E40,U+26E65,U+26F94,U+26FF6-26FF8,U+270F4,U+2710D,U+27139,U+273DA-273DB,U+273FE,U+27410,U+27449,U+27614-27615,U+27631,U+27684,U+27693,U+2770E,U+27723,U+27752,U+278B2,U+27985,U+279B4,U+27A84,U+27BB3,U+27BBE,U+27BC7,U+27C3C,U+27CB8,U+27D73,U+27DA0,U+27E10,U+27EAF,U+27FB7,U+2808A,U+280BB,U+28277,U+28282,U+282F3,U+283CD,U+2840C,U+28455,U+284DC,U+2856B,U+285C8-285C9,U+286D7,U+286FA,U+28946,U+28949,U+2896B,U+28987-28988,U+289BA-289BB,U+28A1E,U+28A29,U+28A43,U+28A71,U+28A99,U+28ACD,U+28ADD,U+28AE4,U+28BC1,U+28BEF,U+28CDD,U+28D10,U+28D71,U+28DFB,U+28E0F,U+28E17,U+28E1F,U+28E36,U+28E89,U+28EEB,U+28EF6,U+28F32,U+28FF8,U+292A0,U+292B1,U+29490,U+295CF,U+2967F,U+296F0,U+29719,U+29750,U+29810,U+298C6,U+29A72,U+29D4B,U+29DDB,U+29E15,U+29E3D,U+29E49,U+29E8A,U+29EC4,U+29EDB,U+29EE9,U+29FCE,U+29FD7,U+2A01A,U+2A02F,U+2A082,U+2A0F9,U+2A190,U+2A2B2,U+2A38C,U+2A437,U+2A5F1,U+2A602,U+2A61A,U+2A6B2,U+2A9E6,U+2B746,U+2B751,U+2B753,U+2B75A,U+2B75C,U+2B765,U+2B776-2B777,U+2B77C,U+2B782,U+2B789,U+2B78B,U+2B78E,U+2B794,U+2B7AC,U+2B7AF,U+2B7BD,U+2B7C9,U+2B7CF,U+2B7D2,U+2B7D8,U+2B7F0,U+2B80D,U+2B817,U+2B81A,U+2D544,U+2E278,U+2E569,U+2E6EA,U+2F804,U+2F80F,U+2F815,U+2F818,U+2F81A,U+2F822,U+2F828,U+2F82C,U+2F833,U+2F83F,U+2F846,U+2F852,U+2F862,U+2F86D,U+2F873,U+2F877,U+2F884,U+2F899-2F89A,U+2F8A6,U+2F8AC,U+2F8B2,U+2F8B6,U+2F8D3,U+2F8DB-2F8DC,U+2F8E1,U+2F8E5,U+2F8EA,U+2F8ED,U+2F8FC,U+2F903,U+2F90B,U+2F90F,U+2F91A,U+2F920-2F921,U+2F945,U+2F947,U+2F96C,U+2F995,U+2F9D0,U+2F9DE-2F9DF,U+2F9F4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.1.woff2)format("woff2");unicode-range:U+1F235-1F23B,U+1F240-1F248,U+1F250-1F251,U+2000B,U+20089-2008A,U+200A2,U+200A4,U+200B0,U+200F5,U+20158,U+201A2,U+20213,U+2032B,U+20371,U+20381,U+203F9,U+2044A,U+20509,U+2053F,U+205B1,U+205D6,U+20611,U+20628,U+206EC,U+2074F,U+207C8,U+20807,U+2083A,U+208B9,U+2090E,U+2097C,U+20984,U+2099D,U+20A64,U+20AD3,U+20B1D,U+20B9F,U+20BB7,U+20D45,U+20D58,U+20DE1,U+20E64,U+20E6D,U+20E95,U+20F5F,U+21201,U+2123D,U+21255,U+21274,U+2127B,U+212D7,U+212E4,U+212FD,U+2131B,U+21336,U+21344,U+213C4,U+2146D-2146E,U+215D7,U+21647,U+216B4,U+21706,U+21742,U+218BD,U+219C3,U+21A1A,U+21C56,U+21D2D,U+21D45,U+21D62,U+21D78,U+21D92,U+21D9C,U+21DA1,U+21DB7,U+21DE0,U+21E33-21E34,U+21F1E,U+21F76,U+21FFA,U+2217B,U+22218,U+2231E,U+223AD,U+22609,U+226F3,U+2285B,U+228AB,U+2298F,U+22AB8,U+22B46,U+22B4F-22B50,U+22BA6,U+22C1D,U+22C24,U+22DE1,U+22E42,U+22FEB,U+231B6,U+231C3-231C4,U+231F5,U+23372,U+233CC,U+233D0,U+233D2-233D3,U+233D5,U+233DA,U+233DF,U+233E4,U+233FE,U+2344A-2344B,U+23451,U+23465,U+234E4,U+2355A,U+23594,U+235C4,U+23638-2363A,U+23647,U+2370C,U+2371C,U+2373F,U+23763-23764,U+237E7,U+237F1,U+237FF,U+23824,U+2383D,U+23A98,U+23C7F,U+23CBE,U+23CFE,U+23D00,U+23D0E,U+23D40,U+23DD3,U+23DF9-23DFA,U+23F7E,U+2404B,U+24096,U+24103,U+241C6,U+241FE,U+242EE,U+243BC,U+243D0,U+24629,U+246A5,U+247F1,U+24896,U+248E9,U+24A4D,U+24B56,U+24B6F,U+24C16,U+24D14,U+24E04,U+24E0E,U+24E37,U+24E6A,U+24E8B,U+24FF2,U+2504A,U+25055,U+25122,U+251A9,U+251CD,U+251E5,U+2521E,U+2524C,U+2542E,U+2548E,U+254D9,U+2550E,U+255A7,U+2567F,U+25771,U+257A9,U+257B4,U+25874,U+259C4,U+259CC,U+259D4,U+25AD7,U+25AE3-25AE4,U+25AF1,U+25BB2,U+25C4B,U+25C64,U+25DA1,U+25E2E,U+25E56,U+25E62,U+25E65,U+25EC2,U+25ED8}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.2.woff2)format("woff2");unicode-range:U+FFD7,U+FFDA-FFDC,U+FFE0-FFE2,U+FFE4,U+FFE6,U+FFE8-FFEE,U+1F100-1F10C,U+1F110-1F16C,U+1F170-1F1AC,U+1F200-1F202,U+1F210-1F234}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.3.woff2)format("woff2");unicode-range:U+FA10,U+FA12-FA6D,U+FB00-FB04,U+FE10-FE19,U+FE30-FE42,U+FE44-FE52,U+FE54-FE66,U+FE68-FE6B,U+FF02,U+FF04,U+FF07,U+FF51,U+FF5B,U+FF5D,U+FF5F-FF60,U+FF66,U+FF69,U+FF87,U+FFA1-FFBE,U+FFC2-FFC7,U+FFCA-FFCF,U+FFD2-FFD6}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.4.woff2)format("woff2");unicode-range:U+F92D-F959,U+F95B-F9F2,U+F9F4-FA0B,U+FA0E-FA0F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.5.woff2)format("woff2");unicode-range:U+9E8B-9E8C,U+9E8E-9E8F,U+9E91-9E92,U+9E95-9E96,U+9E98,U+9E9B,U+9E9D-9E9E,U+9EA4-9EA5,U+9EA8-9EAA,U+9EAC-9EB0,U+9EB3-9EB5,U+9EB8,U+9EBC-9EBF,U+9EC3,U+9EC6,U+9EC8,U+9ECB-9ECD,U+9ECF-9ED1,U+9ED4-9ED5,U+9ED8,U+9EDB-9EE0,U+9EE4-9EE5,U+9EE7-9EE8,U+9EEC-9EF2,U+9EF4-9EF9,U+9EFB-9EFF,U+9F02-9F03,U+9F07-9F09,U+9F0E-9F12,U+9F14-9F17,U+9F19-9F1B,U+9F1F-9F22,U+9F26,U+9F2A-9F2C,U+9F2F,U+9F31-9F32,U+9F34,U+9F37,U+9F39-9F3A,U+9F3C-9F3F,U+9F41,U+9F43-9F47,U+9F4A,U+9F4E-9F50,U+9F52-9F58,U+9F5A,U+9F5D-9F61,U+9F63,U+9F66-9F6A,U+9F6C-9F73,U+9F75-9F77,U+9F7A,U+9F7D,U+9F7F,U+9F8F-9F92,U+9F94-9F97,U+9F99,U+9F9C-9FA3,U+9FA5,U+9FB4,U+9FBC-9FC2,U+9FC4,U+9FC6,U+9FCC,U+F900-F92C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.6.woff2)format("woff2");unicode-range:U+9C3E,U+9C41,U+9C43-9C4A,U+9C4E-9C50,U+9C52-9C54,U+9C56,U+9C58,U+9C5A-9C61,U+9C63,U+9C65,U+9C67-9C6B,U+9C6D-9C6E,U+9C70,U+9C72,U+9C75-9C78,U+9C7A-9C7C,U+9CE6-9CE7,U+9CEB-9CEC,U+9CF0,U+9CF2,U+9CF6-9CF7,U+9CF9,U+9D02-9D03,U+9D06-9D09,U+9D0B,U+9D0E,U+9D11-9D12,U+9D15,U+9D17-9D18,U+9D1B-9D1F,U+9D23,U+9D26,U+9D2A-9D2C,U+9D2F-9D30,U+9D32-9D34,U+9D3A,U+9D3C-9D3F,U+9D41-9D48,U+9D4A,U+9D50-9D54,U+9D59,U+9D5D-9D65,U+9D69-9D6C,U+9D6F-9D70,U+9D72-9D73,U+9D76-9D77,U+9D7A-9D7C,U+9D7E,U+9D83-9D84,U+9D86-9D87,U+9D89-9D8A,U+9D8D-9D8E,U+9D92-9D93,U+9D95-9D9A,U+9DA1,U+9DA4,U+9DA9-9DAC,U+9DAE,U+9DB1-9DB2,U+9DB5,U+9DB8-9DBD,U+9DBF-9DC4,U+9DC6-9DC7,U+9DC9-9DCA,U+9DCF,U+9DD3-9DD7,U+9DD9-9DDA,U+9DDE-9DE0,U+9DE3,U+9DE5-9DE7,U+9DE9,U+9DEB,U+9DED-9DF0,U+9DF3-9DF4,U+9DF8,U+9DFD-9DFE,U+9E02,U+9E07,U+9E0A,U+9E0D-9E0E,U+9E10-9E12,U+9E15-9E16,U+9E19-9E1F,U+9E75,U+9E79-9E7D,U+9E80-9E85,U+9E87-9E88}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.7.woff2)format("woff2");unicode-range:U+9AE5-9AE7,U+9AE9,U+9AEB-9AEC,U+9AEE-9AEF,U+9AF1-9AF5,U+9AF7,U+9AF9-9AFB,U+9AFD,U+9AFF-9B06,U+9B08-9B09,U+9B0B-9B0E,U+9B10,U+9B12,U+9B16,U+9B18-9B1D,U+9B1F-9B20,U+9B22-9B23,U+9B25-9B2F,U+9B32-9B35,U+9B37,U+9B39-9B3B,U+9B3D,U+9B43-9B44,U+9B48,U+9B4B-9B4F,U+9B51,U+9B55-9B58,U+9B5B,U+9B5E,U+9B61,U+9B63,U+9B65-9B66,U+9B68,U+9B6A-9B6F,U+9B72-9B79,U+9B7F-9B80,U+9B83-9B87,U+9B89-9B8B,U+9B8D,U+9B8F-9B94,U+9B96-9B97,U+9B9A,U+9B9D-9BA0,U+9BA6-9BA7,U+9BA9-9BAA,U+9BAC,U+9BB0-9BB2,U+9BB4,U+9BB7-9BB9,U+9BBB-9BBC,U+9BBE-9BC1,U+9BC6-9BC8,U+9BCA,U+9BCE-9BD2,U+9BD4,U+9BD7-9BD8,U+9BDD,U+9BDF,U+9BE1-9BE5,U+9BE7,U+9BEA-9BEB,U+9BEE-9BF3,U+9BF5,U+9BF7-9BFA,U+9BFD,U+9BFF-9C00,U+9C02,U+9C04,U+9C06,U+9C08-9C0D,U+9C0F-9C16,U+9C18-9C1E,U+9C21-9C2A,U+9C2D-9C32,U+9C35-9C37,U+9C39-9C3A,U+9C3D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.8.woff2)format("woff2");unicode-range:U+98EB,U+98ED-98EE,U+98F0-98F1,U+98F3,U+98F6,U+9902,U+9907-9909,U+9911-9912,U+9914-9918,U+991A-9922,U+9924,U+9926-9927,U+992B-992C,U+992E,U+9931-9935,U+9939-993E,U+9940-9942,U+9945-9949,U+994B-994E,U+9950-9952,U+9954-9955,U+9958-9959,U+995B-995C,U+995E-9960,U+9963,U+9997-9998,U+999B,U+999D-999F,U+99A3,U+99A5-99A6,U+99A8,U+99AD-99AE,U+99B0-99B2,U+99B5,U+99B9-99BA,U+99BC-99BD,U+99BF,U+99C1,U+99C3,U+99C8-99C9,U+99D1,U+99D3-99D5,U+99D8-99DF,U+99E1-99E2,U+99E7,U+99EA-99EE,U+99F0-99F2,U+99F4-99F5,U+99F8-99F9,U+99FB-99FE,U+9A01-9A05,U+9A08,U+9A0A-9A0C,U+9A0F-9A11,U+9A16,U+9A1A,U+9A1E,U+9A20,U+9A22-9A24,U+9A27,U+9A2B,U+9A2D-9A2E,U+9A31,U+9A33,U+9A35-9A38,U+9A3E,U+9A40-9A45,U+9A47,U+9A4A-9A4E,U+9A51-9A52,U+9A54-9A58,U+9A5B,U+9A5D,U+9A5F,U+9A62,U+9A64-9A65,U+9A69-9A6C,U+9AAA,U+9AAC-9AB0,U+9AB2,U+9AB4-9AB7,U+9AB9,U+9ABB-9AC1,U+9AC3,U+9AC6,U+9AC8,U+9ACE-9AD3,U+9AD5-9AD7,U+9ADB-9ADC,U+9ADE-9AE0,U+9AE2-9AE4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.9.woff2)format("woff2");unicode-range:U+971D,U+9721-9724,U+9728,U+972A,U+9730-9731,U+9733,U+9736,U+9738-9739,U+973B,U+973D-973E,U+9741-9744,U+9746-974A,U+974D-974F,U+9751,U+9755,U+9757-9758,U+975A-975C,U+9760-9761,U+9763-9764,U+9766-9768,U+976A-976B,U+976E,U+9771,U+9773,U+9776-977D,U+977F-9781,U+9785-9786,U+9789,U+978B,U+978F-9790,U+9795-9797,U+9799-979A,U+979C,U+979E-97A0,U+97A2-97A3,U+97A6,U+97A8,U+97AB-97AC,U+97AE,U+97B1-97B6,U+97B8-97BA,U+97BC,U+97BE-97BF,U+97C1,U+97C3-97CE,U+97D0-97D1,U+97D4,U+97D7-97D9,U+97DB-97DE,U+97E0-97E1,U+97E4,U+97E6,U+97ED-97EF,U+97F1-97F2,U+97F4-97F8,U+97FA,U+9804,U+9807,U+980A,U+980C-980F,U+9814,U+9816-9817,U+9819-981A,U+981C,U+981E,U+9820-9821,U+9823-9826,U+982B,U+982E-9830,U+9832-9835,U+9837,U+9839,U+983D-983E,U+9844,U+9846-9847,U+984A-984B,U+984F,U+9851-9853,U+9856-9857,U+9859-985B,U+9862-9863,U+9865-9866,U+986A-986C,U+986F-9871,U+9873-9875,U+98AA-98AB,U+98AD-98AE,U+98B0-98B1,U+98B4,U+98B6-98B8,U+98BA-98BC,U+98BF,U+98C2-98C8,U+98CB-98CC,U+98CE,U+98DC,U+98DE,U+98E0-98E1,U+98E3,U+98E5-98E7,U+98E9-98EA}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.10.woff2)format("woff2");unicode-range:U+944A,U+944C,U+9452-9453,U+9455,U+9459-945C,U+945E-9463,U+9468,U+946A-946B,U+946D-9472,U+9475,U+9477,U+947C-947F,U+9481,U+9483-9485,U+9578-9579,U+957E-957F,U+9582,U+9584,U+9586-9588,U+958A,U+958C-958F,U+9592,U+9594,U+9596,U+9598-9599,U+959D-95A1,U+95A4,U+95A6-95A9,U+95AB-95AD,U+95B1,U+95B4,U+95B6,U+95B9-95BF,U+95C3,U+95C6,U+95C8-95CD,U+95D0-95D6,U+95D9-95DA,U+95DC-95E2,U+95E4-95E6,U+95E8,U+961D-961E,U+9621-9622,U+9624-9626,U+9628,U+962C,U+962E-962F,U+9631,U+9633-9634,U+9637-963A,U+963C-963D,U+9641-9642,U+964B-964C,U+964F,U+9652,U+9654,U+9656-9658,U+965C-965F,U+9661,U+9666,U+966A,U+966C,U+966E,U+9672,U+9674,U+9677,U+967B-967C,U+967E-967F,U+9681-9684,U+9689,U+968B,U+968D,U+9691,U+9695-9698,U+969A,U+969D,U+969F,U+96A4-96AA,U+96AE-96B4,U+96B6,U+96B8-96BB,U+96BD,U+96C1,U+96C9-96CB,U+96CD-96CE,U+96D2,U+96D5-96D6,U+96D8-96DA,U+96DC-96DF,U+96E9,U+96EF,U+96F1,U+96F9-96FA,U+9702-9706,U+9708-9709,U+970D-970F,U+9711,U+9713-9714,U+9716,U+9719-971B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.11.woff2)format("woff2");unicode-range:U+92BC-92BD,U+92BF-92C3,U+92C5-92C8,U+92CB-92D0,U+92D2-92D3,U+92D5,U+92D7-92D9,U+92DC-92DD,U+92DF-92E1,U+92E3-92E5,U+92E7-92EA,U+92EC,U+92EE,U+92F0,U+92F2,U+92F7-92FB,U+92FF-9300,U+9302,U+9304,U+9308,U+930D,U+930F-9311,U+9314-9315,U+9318-931A,U+931C-931F,U+9321-9325,U+9327-932B,U+932E,U+9333-9337,U+933A-933B,U+9344,U+9347-934A,U+934D,U+9350-9352,U+9354-9358,U+935A,U+935C,U+935E,U+9360,U+9364-9365,U+9367,U+9369-936D,U+936F-9371,U+9373-9374,U+9376,U+937A,U+937D-9382,U+9388,U+938A-938B,U+938D,U+938F,U+9392,U+9394-9395,U+9397-9398,U+939A-939B,U+939E,U+93A1,U+93A3-93A4,U+93A6,U+93A8-93A9,U+93AB-93AD,U+93B0,U+93B4-93B6,U+93B9-93BB,U+93C1,U+93C3-93CD,U+93D0-93D1,U+93D3,U+93D6-93D9,U+93DC-93DF,U+93E2,U+93E4-93E8,U+93F1,U+93F5,U+93F7-93FB,U+93FD,U+9401-9404,U+9407-9409,U+940D-9410,U+9413-9417,U+9419-941A,U+941F,U+9421,U+942B,U+942E-942F,U+9431-9434,U+9436,U+9438,U+943A-943B,U+943D,U+943F,U+9441,U+9443-9445,U+9448}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.12.woff2)format("woff2");unicode-range:U+9143,U+9146-914C,U+914F,U+9153,U+9156-915B,U+9161,U+9163-9165,U+9167,U+9169,U+916D,U+9172-9174,U+9179-917B,U+9181-9183,U+9185-9187,U+9189-918B,U+918E,U+9191,U+9193-9195,U+9197-9198,U+919E,U+91A1-91A2,U+91A6,U+91A8,U+91AA-91B6,U+91BA-91BD,U+91BF-91C6,U+91C9,U+91CB,U+91D0,U+91D3-91D4,U+91D6-91D7,U+91D9-91DB,U+91DE-91DF,U+91E1,U+91E4-91E6,U+91E9-91EA,U+91EC-91F1,U+91F5-91F7,U+91F9,U+91FB-91FD,U+91FF-9201,U+9204-9207,U+9209-920A,U+920C,U+920E,U+9210-9218,U+921C-921E,U+9223-9226,U+9228-9229,U+922C,U+922E-9230,U+9233,U+9235-923A,U+923C,U+923E-9240,U+9242-9243,U+9245-924B,U+924D-9251,U+9256-925A,U+925C-925E,U+9260-9261,U+9264-9269,U+926E-9270,U+9275-9279,U+927B-927F,U+9288-928A,U+928D-928E,U+9291-9293,U+9295-9297,U+9299,U+929B-929C,U+929F-92A0,U+92A4-92A5,U+92A7-92A8,U+92AB,U+92AF,U+92B2-92B3,U+92B6-92BB}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.13.woff2)format("woff2");unicode-range:U+8F52-8F55,U+8F57-8F58,U+8F5C-8F5E,U+8F61-8F66,U+8F9C-8F9D,U+8F9F-8FA2,U+8FA4-8FA8,U+8FAD-8FAF,U+8FB4-8FB8,U+8FBE,U+8FC0-8FC2,U+8FC6,U+8FC8,U+8FCA-8FCB,U+8FCD,U+8FD0,U+8FD2-8FD3,U+8FD5,U+8FDA,U+8FE0,U+8FE2-8FE5,U+8FE8-8FEA,U+8FED-8FEF,U+8FF1,U+8FF4-8FF6,U+8FF8-8FFB,U+8FFE,U+9002,U+9004-9005,U+9008,U+900B-900E,U+9011,U+9013,U+9015-9016,U+9018,U+901B,U+901E,U+9021,U+9027-902A,U+902C-902D,U+902F,U+9033-9037,U+9039,U+903C,U+903E-903F,U+9041,U+9043-9044,U+9049,U+904C,U+904F-9052,U+9056,U+9058,U+905B-905E,U+9062,U+9066-9068,U+906C,U+906F-9070,U+9072,U+9074,U+9076,U+9079,U+9080-9083,U+9085,U+9087-9088,U+908B-908C,U+908E-9090,U+9095,U+9097-9099,U+909B,U+90A0-90A2,U+90A5,U+90A8,U+90AF-90B6,U+90BD-90BE,U+90C3-90C5,U+90C7-90C9,U+90CC,U+90D2,U+90D5,U+90D7-90D9,U+90DB-90DF,U+90E2,U+90E4-90E5,U+90EB,U+90EF-90F0,U+90F2,U+90F4,U+90F6,U+90FE-9100,U+9102,U+9104-9106,U+9108,U+910D,U+9110,U+9112,U+9114-911A,U+911C,U+911E,U+9120,U+9122-9123,U+9125,U+9127,U+9129,U+912D-9132,U+9134,U+9136-9137,U+9139-913A,U+913C-913D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.14.woff2)format("woff2");unicode-range:U+8DC0,U+8DC2,U+8DC5-8DC8,U+8DCA-8DCC,U+8DCE-8DCF,U+8DD1,U+8DD4-8DD7,U+8DD9-8DDB,U+8DDF,U+8DE3-8DE5,U+8DE7,U+8DEA-8DEC,U+8DF0-8DF2,U+8DF4,U+8DFC-8DFD,U+8DFF,U+8E01,U+8E04-8E06,U+8E08-8E09,U+8E0B-8E0C,U+8E10-8E11,U+8E14,U+8E16,U+8E1D-8E23,U+8E26-8E27,U+8E30-8E31,U+8E33-8E39,U+8E3D,U+8E40-8E42,U+8E44,U+8E47-8E50,U+8E54-8E55,U+8E59,U+8E5B-8E64,U+8E69,U+8E6C-8E6D,U+8E6F-8E72,U+8E75-8E77,U+8E79-8E7C,U+8E81-8E85,U+8E89,U+8E8B,U+8E90-8E95,U+8E98-8E9B,U+8E9D-8E9E,U+8EA1-8EA2,U+8EA7,U+8EA9-8EAA,U+8EAC-8EB1,U+8EB3,U+8EB5-8EB6,U+8EBA-8EBB,U+8EBE,U+8EC0-8EC1,U+8EC3-8EC8,U+8ECB,U+8ECF,U+8ED1,U+8ED4,U+8EDB-8EDC,U+8EE3,U+8EE8,U+8EEB,U+8EED-8EEE,U+8EF0-8EF1,U+8EF7,U+8EF9-8EFC,U+8EFE,U+8F00,U+8F02,U+8F05,U+8F07-8F08,U+8F0A,U+8F0F-8F10,U+8F12-8F13,U+8F15-8F19,U+8F1B-8F1C,U+8F1E-8F21,U+8F23,U+8F25-8F28,U+8F2B-8F2F,U+8F33-8F37,U+8F39-8F3B,U+8F3E,U+8F40-8F43,U+8F45-8F47,U+8F49-8F4A,U+8F4C-8F4F,U+8F51}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.15.woff2)format("woff2");unicode-range:U+8B2D,U+8B30,U+8B37,U+8B3C,U+8B3E,U+8B41-8B46,U+8B48-8B49,U+8B4C-8B4F,U+8B51-8B54,U+8B56,U+8B59,U+8B5B,U+8B5E-8B5F,U+8B63,U+8B69,U+8B6B-8B6D,U+8B6F,U+8B71,U+8B74,U+8B76,U+8B78-8B79,U+8B7C-8B81,U+8B84-8B85,U+8B8A-8B8F,U+8B92-8B96,U+8B99-8B9A,U+8B9C-8BA0,U+8C38-8C3A,U+8C3D-8C3F,U+8C41,U+8C45,U+8C47-8C49,U+8C4B-8C4C,U+8C4E-8C51,U+8C53-8C55,U+8C57-8C59,U+8C5B,U+8C5D,U+8C62-8C64,U+8C66,U+8C68-8C69,U+8C6B-8C6D,U+8C73,U+8C75-8C76,U+8C78,U+8C7A-8C7C,U+8C7E,U+8C82,U+8C85-8C87,U+8C89-8C8B,U+8C8D-8C8E,U+8C90,U+8C92-8C94,U+8C98-8C99,U+8C9B-8C9C,U+8C9F,U+8CA4,U+8CAD-8CAE,U+8CB2-8CB3,U+8CB6,U+8CB9-8CBA,U+8CBD,U+8CC1-8CC2,U+8CC4-8CC6,U+8CC8-8CC9,U+8CCB,U+8CCD-8CCF,U+8CD2,U+8CD5-8CD6,U+8CD9-8CDA,U+8CDD,U+8CE1,U+8CE3-8CE4,U+8CE6,U+8CE8,U+8CEC,U+8CEF-8CF2,U+8CF4-8CF5,U+8CF7-8CF8,U+8CFA-8CFB,U+8CFD-8CFF,U+8D01,U+8D03-8D04,U+8D07,U+8D09-8D0B,U+8D0D-8D10,U+8D12-8D14,U+8D16-8D17,U+8D1B-8D1D,U+8D65,U+8D67,U+8D69,U+8D6B-8D6E,U+8D71,U+8D73,U+8D76,U+8D7F,U+8D81-8D82,U+8D84,U+8D88,U+8D8D,U+8D90-8D91,U+8D95,U+8D99,U+8D9E-8DA0,U+8DA6,U+8DA8,U+8DAB-8DAC,U+8DAF,U+8DB2,U+8DB5,U+8DB7,U+8DB9-8DBC,U+8DBE}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.16.woff2)format("woff2");unicode-range:U+8973-8975,U+8977,U+897A-897E,U+8980,U+8983,U+8988-898A,U+898D,U+8990,U+8993-8995,U+8998,U+899B-899C,U+899F-89A1,U+89A5-89A6,U+89A9,U+89AC,U+89AF-89B0,U+89B2,U+89B4-89B7,U+89BA,U+89BC-89BD,U+89BF-89C1,U+89D4-89D8,U+89DA,U+89DC-89DD,U+89E5,U+89E7,U+89E9,U+89EB,U+89ED,U+89F1,U+89F3-89F4,U+89F6,U+89F8-89F9,U+89FD,U+89FF,U+8A01,U+8A04-8A05,U+8A07,U+8A0C,U+8A0F-8A12,U+8A14-8A16,U+8A1B,U+8A1D-8A1E,U+8A20-8A22,U+8A24-8A26,U+8A2B-8A2C,U+8A2F,U+8A35-8A37,U+8A3B,U+8A3D-8A3E,U+8A40-8A41,U+8A43,U+8A45-8A49,U+8A4D-8A4E,U+8A51-8A54,U+8A56-8A58,U+8A5B-8A5D,U+8A61-8A62,U+8A65,U+8A67,U+8A6C-8A6D,U+8A75-8A77,U+8A79-8A7C,U+8A7E-8A80,U+8A82-8A86,U+8A8B,U+8A8F-8A92,U+8A96-8A97,U+8A99-8A9A,U+8A9F,U+8AA1,U+8AA3,U+8AA5-8AAA,U+8AAE-8AAF,U+8AB3,U+8AB6-8AB7,U+8ABB-8ABC,U+8ABE,U+8AC2-8AC4,U+8AC6,U+8AC8-8ACA,U+8ACC-8ACD,U+8AD0-8AD1,U+8AD3-8AD5,U+8AD7,U+8ADA-8AE2,U+8AE4,U+8AE7,U+8AEB-8AEC,U+8AEE,U+8AF0-8AF1,U+8AF3-8AF7,U+8AFA,U+8AFC,U+8AFF,U+8B01-8B02,U+8B04-8B07,U+8B0A-8B0D,U+8B0F-8B11,U+8B14,U+8B16,U+8B1A,U+8B1C,U+8B1E-8B20,U+8B26,U+8B28,U+8B2B-8B2C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.17.woff2)format("woff2");unicode-range:U+87E2-87E6,U+87EA-87ED,U+87EF,U+87F1,U+87F3,U+87F5-87F8,U+87FA-87FB,U+87FE-87FF,U+8801,U+8803,U+8805-8807,U+8809-880B,U+880D-8816,U+8818-881C,U+881E-881F,U+8821-8822,U+8827-8828,U+882D-882E,U+8830-8832,U+8835-8836,U+8839-883C,U+8841-8845,U+8848-884B,U+884D-884E,U+8851-8852,U+8855-8856,U+8858-885A,U+885C,U+885E-8860,U+8862,U+8864,U+8869,U+886B,U+886E-886F,U+8871-8872,U+8875,U+8877,U+8879,U+887B,U+887D-887E,U+8880-8882,U+8888,U+888D,U+8892,U+8897-889C,U+889E-88A0,U+88A2,U+88A4,U+88A8,U+88AA,U+88AE,U+88B0-88B1,U+88B5,U+88B7,U+88BA,U+88BC-88C0,U+88C3-88C4,U+88C6,U+88CA-88CE,U+88D1-88D4,U+88D8-88D9,U+88DB,U+88DD-88E1,U+88E7-88E8,U+88EF-88F2,U+88F4-88F5,U+88F7,U+88F9,U+88FC,U+8901-8902,U+8904,U+8906,U+890A,U+890C-890F,U+8913,U+8915-8916,U+8918-891A,U+891C-891E,U+8920,U+8925-8928,U+892A-892B,U+8930-8932,U+8935-893B,U+893E,U+8940-8946,U+8949,U+894C-894D,U+894F,U+8952,U+8956-8957,U+895A-895C,U+895E,U+8960-8964,U+8966,U+896A-896B,U+896D-8970}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.18.woff2)format("woff2");unicode-range:U+8655-8659,U+865B,U+865D-8664,U+8667,U+8669,U+866C,U+866F,U+8671,U+8675-8677,U+867A-867B,U+867D,U+8687-8689,U+868B-868D,U+8691,U+8693,U+8695-8696,U+8698,U+869A,U+869C-869D,U+86A1,U+86A3-86A4,U+86A6-86AB,U+86AD,U+86AF-86B1,U+86B3-86B9,U+86BF-86C1,U+86C3-86C6,U+86C9,U+86CB,U+86CE,U+86D1-86D2,U+86D4-86D5,U+86D7,U+86DA,U+86DC,U+86DE-86E0,U+86E3-86E7,U+86E9,U+86EC-86ED,U+86EF,U+86F8-86FE,U+8700,U+8703-870B,U+870D-8714,U+8719-871A,U+871E-871F,U+8721-8723,U+8725,U+8728-8729,U+872E-872F,U+8731-8732,U+8734,U+8737,U+8739-8740,U+8743,U+8745,U+8749,U+874B-874E,U+8751,U+8753,U+8755,U+8757-8759,U+875D,U+875F-8761,U+8763-8766,U+8768,U+876A,U+876E-876F,U+8771-8772,U+8774,U+8778,U+877B-877C,U+877F,U+8782-8789,U+878B-878C,U+878E,U+8790,U+8793,U+8795,U+8797-8799,U+879E-87A0,U+87A2-87A3,U+87A7,U+87AB-87AF,U+87B1,U+87B3,U+87B5,U+87BB,U+87BD-87C1,U+87C4,U+87C6-87CB,U+87CE,U+87D0,U+87D2,U+87D5-87D6,U+87D9-87DA,U+87DC,U+87DF-87E0}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.19.woff2)format("woff2");unicode-range:U+84B4,U+84B9-84BB,U+84BD-84C2,U+84C6-84CA,U+84CC-84D1,U+84D3,U+84D6,U+84D9-84DA,U+84DC,U+84E7,U+84EA,U+84EC,U+84EF-84F2,U+84F4,U+84F7,U+84FA-84FD,U+84FF-8500,U+8502-8503,U+8506-8507,U+850C,U+850E,U+8510,U+8514-8515,U+8517-8518,U+851A-851C,U+851E-851F,U+8521-8525,U+8527,U+852A-852C,U+852F,U+8532-8534,U+8536,U+853E-8541,U+8543,U+8546,U+8548,U+854A-854B,U+854F-8553,U+8555-855A,U+855C-8564,U+8569-856B,U+856D,U+856F,U+8577,U+8579-857B,U+857D-8581,U+8585-8586,U+8588-858C,U+858F-8591,U+8593,U+8597-8598,U+859B-859D,U+859F-85A0,U+85A2,U+85A4-85A5,U+85A7-85A8,U+85AD-85B0,U+85B4,U+85B6-85BA,U+85BC-85BF,U+85C1-85C2,U+85C7,U+85C9-85CB,U+85CE-85D0,U+85D5,U+85D8-85DA,U+85DC,U+85DF-85E1,U+85E5-85E6,U+85E8,U+85ED,U+85F3-85F4,U+85F6-85F7,U+85F9-85FA,U+85FC,U+85FE-8600,U+8602,U+8604-8606,U+860A-860B,U+860D-860E,U+8610-8613,U+8616-861B,U+861E,U+8621-8622,U+8624,U+8627,U+8629,U+862F-8630,U+8636,U+8638-863A,U+863C-863D,U+863F-8642,U+8646,U+864D,U+8652-8654}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.20.woff2)format("woff2");unicode-range:U+82E8,U+82EA,U+82ED,U+82EF,U+82F3-82F4,U+82F6-82F7,U+82F9,U+82FB,U+82FD-82FE,U+8300-8301,U+8303,U+8306-8308,U+830A-830C,U+8316-8318,U+831B,U+831D-831F,U+8321-8323,U+832B-8335,U+8337,U+833A,U+833C-833D,U+8340,U+8342-8347,U+834A,U+834D-8351,U+8353-8357,U+835A,U+8362-8363,U+8370,U+8373,U+8375,U+8378,U+837C-837D,U+837F-8380,U+8382,U+8384-8387,U+838A,U+838D-838E,U+8392-8396,U+8398-83A0,U+83A2,U+83A6-83AD,U+83B1,U+83B5,U+83BD-83C1,U+83C7,U+83C9,U+83CE-83D1,U+83D4,U+83D6,U+83D8,U+83DD,U+83DF-83E1,U+83E5,U+83E8,U+83EA-83EB,U+83F0,U+83F2,U+83F4,U+83F6-83F9,U+83FB-83FD,U+8401,U+8403-8404,U+8406-8407,U+840A-840B,U+840D,U+840F,U+8411,U+8413,U+8415,U+8417,U+8419,U+8420,U+8422,U+842A,U+842F,U+8431,U+8435,U+8438-8439,U+843C,U+8445-8448,U+844A,U+844D-844F,U+8451-8452,U+8456,U+8458-845A,U+845C,U+845F-8462,U+8464-8467,U+8469-846B,U+846D-8470,U+8473-8474,U+8476-847A,U+847C-847D,U+8481-8482,U+8484-8485,U+848B,U+8490,U+8492-8493,U+8495,U+8497,U+849C,U+849E-849F,U+84A1,U+84A6,U+84A8-84AA,U+84AD,U+84AF,U+84B1}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.21.woff2)format("woff2");unicode-range:U+814A,U+814C,U+8151-8153,U+8157,U+815F-8161,U+8165-8169,U+816D-816F,U+8171,U+8173-8174,U+8177,U+8180-8186,U+8188,U+818A-818B,U+818E,U+8190,U+8193,U+8195-8196,U+8198,U+819B,U+819E,U+81A0,U+81A2,U+81A4,U+81A9,U+81AE,U+81B0,U+81B2,U+81B4-81B5,U+81B8,U+81BA-81BB,U+81BD-81BE,U+81C0-81C3,U+81C5-81C6,U+81C8-81CB,U+81CD-81CF,U+81D1,U+81D5-81DB,U+81DD-81E1,U+81E4-81E5,U+81E7,U+81EB-81EC,U+81EF-81F2,U+81F5-81F6,U+81F8-81FB,U+81FD-8205,U+8209-820B,U+820D,U+820F,U+8212-8214,U+8216,U+8219-821D,U+8221-8222,U+8228-8229,U+822B,U+822E,U+8232-8235,U+8237-8238,U+823A,U+823C,U+8240,U+8243-8246,U+8249,U+824B,U+824E-824F,U+8251,U+8256-825A,U+825C-825D,U+825F-8260,U+8262-8264,U+8267-8268,U+826A-826B,U+826D-826E,U+8271,U+8274,U+8277,U+8279,U+827B,U+827D-8281,U+8283-8284,U+8287,U+8289-828A,U+828D-828E,U+8291-8294,U+8296,U+8298-829B,U+829F-82A1,U+82A3-82A4,U+82A7-82AC,U+82AE,U+82B0,U+82B2,U+82B4,U+82B7,U+82BA-82BC,U+82BE-82BF,U+82C5-82C6,U+82D0,U+82D2-82D3,U+82D5,U+82D9-82DA,U+82DC,U+82DE-82E4,U+82E7}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.22.woff2)format("woff2");unicode-range:U+7F77-7F79,U+7F7D-7F80,U+7F82-7F83,U+7F86-7F88,U+7F8B-7F8D,U+7F8F-7F91,U+7F94,U+7F96-7F97,U+7F9A,U+7F9C-7F9D,U+7FA1-7FA3,U+7FA6,U+7FAA,U+7FAD-7FAF,U+7FB2,U+7FB4,U+7FB6,U+7FB8-7FB9,U+7FBC,U+7FBF-7FC0,U+7FC3,U+7FC5-7FC6,U+7FC8,U+7FCA,U+7FCE-7FCF,U+7FD5,U+7FDB,U+7FDF,U+7FE1,U+7FE3,U+7FE5-7FE6,U+7FE8-7FE9,U+7FEB-7FEC,U+7FEE-7FF0,U+7FF2-7FF3,U+7FF9-7FFA,U+7FFD-7FFF,U+8002,U+8004,U+8006-8008,U+800A-800F,U+8011-8014,U+8016,U+8018-8019,U+801C-8021,U+8024,U+8026,U+8028,U+802C,U+802E,U+8030,U+8034-8035,U+8037,U+8039-8040,U+8043-8044,U+8046,U+804A,U+8052,U+8058,U+805A,U+805F-8060,U+8062,U+8064,U+8066,U+8068,U+806D,U+806F-8073,U+8075-8076,U+8079,U+807B,U+807D-8081,U+8084-8088,U+808B,U+808E,U+8093,U+8099-809A,U+809C,U+809E,U+80A4,U+80A6-80A7,U+80AB-80AD,U+80B1,U+80B8-80B9,U+80C4-80C5,U+80C8,U+80CA,U+80CD,U+80CF,U+80D2,U+80D4-80DB,U+80DD,U+80E0,U+80E4-80E6,U+80ED-80F3,U+80F5-80F7,U+80F9-80FC,U+80FE,U+8101,U+8103,U+8109,U+810B,U+810D,U+8116-8118,U+811B-811C,U+811E,U+8120,U+8123-8124,U+8127,U+8129,U+812B-812C,U+812F-8130,U+8135,U+8139-813A,U+813C-813E,U+8141,U+8145-8147}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.23.woff2)format("woff2");unicode-range:U+7D57,U+7D59-7D5D,U+7D63,U+7D65,U+7D67,U+7D6A,U+7D6E,U+7D70,U+7D72-7D73,U+7D78,U+7D7A-7D7B,U+7D7D,U+7D7F,U+7D81-7D83,U+7D85-7D86,U+7D88-7D89,U+7D8B-7D8D,U+7D8F,U+7D91,U+7D93,U+7D96-7D97,U+7D9B-7DA0,U+7DA2-7DA3,U+7DA6-7DA7,U+7DAA-7DAC,U+7DAE-7DB0,U+7DB3,U+7DB5-7DB9,U+7DBD,U+7DC0,U+7DC2-7DC7,U+7DCC-7DCE,U+7DD0,U+7DD5-7DD9,U+7DDC-7DDE,U+7DE1-7DE6,U+7DEA-7DED,U+7DF1-7DF2,U+7DF5-7DF6,U+7DF9-7DFA,U+7E00,U+7E05,U+7E08-7E0B,U+7E10-7E12,U+7E15,U+7E17,U+7E1C-7E1D,U+7E1F-7E23,U+7E27-7E28,U+7E2C-7E2D,U+7E2F,U+7E31-7E33,U+7E35-7E37,U+7E39-7E3B,U+7E3D,U+7E3F,U+7E43-7E48,U+7E4E,U+7E50,U+7E52,U+7E56,U+7E58-7E5A,U+7E5D-7E5F,U+7E61-7E62,U+7E65-7E67,U+7E69-7E6B,U+7E6D-7E6F,U+7E73,U+7E75,U+7E78-7E79,U+7E7B-7E7F,U+7E81-7E83,U+7E86-7E8A,U+7E8C-7E8E,U+7E90-7E96,U+7E98,U+7E9A-7E9F,U+7F38,U+7F3A-7F3F,U+7F43-7F45,U+7F47,U+7F4C-7F50,U+7F52-7F55,U+7F58,U+7F5B-7F5D,U+7F5F,U+7F61,U+7F63-7F69,U+7F6B,U+7F6D,U+7F71}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.24.woff2)format("woff2");unicode-range:U+7BC8,U+7BCA-7BCC,U+7BCF,U+7BD4,U+7BD6-7BD7,U+7BD9-7BDB,U+7BDD,U+7BE5-7BE6,U+7BE8-7BEA,U+7BF0,U+7BF2-7BFA,U+7BFC,U+7BFE,U+7C00-7C04,U+7C06-7C07,U+7C09,U+7C0B-7C0F,U+7C11-7C14,U+7C17,U+7C19,U+7C1B,U+7C1E-7C20,U+7C23,U+7C25-7C28,U+7C2A-7C2C,U+7C2F,U+7C31,U+7C33-7C34,U+7C36-7C3A,U+7C3D-7C3E,U+7C40,U+7C42-7C43,U+7C45-7C46,U+7C4A,U+7C4C,U+7C4F-7C5F,U+7C61,U+7C63-7C65,U+7C67,U+7C69,U+7C6C-7C70,U+7C72,U+7C75,U+7C79,U+7C7B-7C7E,U+7C81-7C83,U+7C86-7C87,U+7C8D,U+7C8F-7C90,U+7C94,U+7C9E,U+7CA0-7CA2,U+7CA4-7CA6,U+7CA8,U+7CAB,U+7CAD-7CAE,U+7CB0-7CB3,U+7CB6-7CB7,U+7CB9-7CBD,U+7CBF-7CC0,U+7CC2,U+7CC4-7CC5,U+7CC7-7CCA,U+7CCD-7CCF,U+7CD2-7CD5,U+7CD7-7CDA,U+7CDC-7CDD,U+7CDF-7CE0,U+7CE2,U+7CE6,U+7CE9,U+7CEB,U+7CEF,U+7CF2,U+7CF4-7CF6,U+7CF9-7CFA,U+7CFE,U+7D02-7D03,U+7D06-7D0A,U+7D0F,U+7D11-7D13,U+7D15-7D16,U+7D1C-7D1E,U+7D23,U+7D26,U+7D2A,U+7D2C-7D2E,U+7D31-7D32,U+7D35,U+7D3C-7D41,U+7D43,U+7D45,U+7D47-7D48,U+7D4B,U+7D4D-7D4F,U+7D51,U+7D53,U+7D55-7D56}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.25.woff2)format("woff2");unicode-range:U+7A17-7A19,U+7A1B,U+7A1E-7A21,U+7A27,U+7A2B,U+7A2D,U+7A2F-7A31,U+7A34-7A35,U+7A37-7A3B,U+7A3E,U+7A43-7A49,U+7A4C,U+7A4E,U+7A50,U+7A55-7A57,U+7A59,U+7A5C-7A5D,U+7A5F-7A63,U+7A65,U+7A67,U+7A69-7A6A,U+7A6D,U+7A70,U+7A75,U+7A78-7A79,U+7A7D-7A7E,U+7A80,U+7A82,U+7A84-7A86,U+7A88,U+7A8A-7A8B,U+7A90-7A91,U+7A94-7A98,U+7A9E,U+7AA0,U+7AA3,U+7AA9,U+7AAC,U+7AB0,U+7AB3,U+7AB5-7AB6,U+7AB9-7ABF,U+7AC3,U+7AC5-7ACA,U+7ACC-7ACF,U+7AD1-7AD3,U+7AD5,U+7ADA-7ADB,U+7ADD,U+7ADF,U+7AE1-7AE2,U+7AE6-7AED,U+7AF0-7AF1,U+7AF4,U+7AF8,U+7AFA-7AFB,U+7AFD-7AFE,U+7B02,U+7B04,U+7B06-7B08,U+7B0A-7B0B,U+7B0F,U+7B12,U+7B14,U+7B18-7B19,U+7B1E-7B1F,U+7B23,U+7B25,U+7B27-7B2B,U+7B2D-7B31,U+7B33-7B36,U+7B3B,U+7B3D,U+7B3F-7B41,U+7B45,U+7B47,U+7B4C-7B50,U+7B53,U+7B55,U+7B5D,U+7B60,U+7B64-7B66,U+7B69-7B6A,U+7B6C-7B75,U+7B77,U+7B79-7B7A,U+7B7F,U+7B84,U+7B86,U+7B89,U+7B8D-7B92,U+7B96,U+7B98-7BA0,U+7BA5,U+7BAC-7BAD,U+7BAF-7BB0,U+7BB2,U+7BB4-7BB6,U+7BBA-7BBD,U+7BC1-7BC2,U+7BC5-7BC6}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.26.woff2)format("woff2");unicode-range:U+7851-7852,U+785C,U+785E,U+7860-7861,U+7863-7864,U+7868,U+786A,U+786E-786F,U+7872,U+7874,U+787A,U+787C,U+787E,U+7886-7887,U+788A,U+788C-788F,U+7893-7895,U+7898,U+789A,U+789D-789F,U+78A1,U+78A3-78A4,U+78A8-78AA,U+78AC-78AD,U+78AF-78B3,U+78B5,U+78BB-78BF,U+78C5-78CC,U+78CE,U+78D1-78D6,U+78DA-78DB,U+78DF-78E1,U+78E4,U+78E6-78E7,U+78EA,U+78EC,U+78F2-78F4,U+78F6-78F7,U+78F9-78FB,U+78FD-7901,U+7906-7907,U+790C,U+7910-7912,U+7919-791C,U+791E-7920,U+7925-792E,U+7930-7931,U+7934-7935,U+793B,U+793D,U+793F,U+7941-7942,U+7944-7946,U+794A-794B,U+794F,U+7951,U+7954-7955,U+7957-7958,U+795A-795C,U+795F-7960,U+7962,U+7967,U+7969,U+796B,U+7972,U+7977,U+7979-797C,U+797E-7980,U+798A-798E,U+7991,U+7993-7996,U+7998,U+799B-799D,U+79A1,U+79A6-79AB,U+79AE-79B1,U+79B3-79B4,U+79B8-79BB,U+79BD-79BE,U+79C2,U+79C4,U+79C7-79CA,U+79CC-79CD,U+79CF,U+79D4-79D6,U+79DA,U+79DD-79E3,U+79E5,U+79E7,U+79EA-79ED,U+79F1,U+79F8,U+79FC,U+7A02-7A03,U+7A05,U+7A07-7A0A,U+7A0C-7A0D,U+7A11,U+7A15}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.27.woff2)format("woff2");unicode-range:U+768C-768E,U+7690,U+7693,U+7695-7696,U+7699-76A8,U+76AA,U+76AD,U+76AF-76B0,U+76B4,U+76B6-76BA,U+76BD,U+76C1-76C3,U+76C5,U+76C8-76C9,U+76CB-76CE,U+76D2,U+76D4,U+76D6,U+76D9,U+76DC,U+76DE,U+76E0-76E1,U+76E5-76E8,U+76EA-76EC,U+76F0-76F1,U+76F6,U+76F9,U+76FB-76FC,U+7700,U+7704,U+7706-7708,U+770A,U+770E,U+7712,U+7714-7715,U+7717,U+7719-771C,U+7722,U+7724-7726,U+7728,U+772D-772F,U+7734-7739,U+773D-773E,U+7742,U+7745-7747,U+774A,U+774D-774F,U+7752,U+7756-7758,U+775A-775C,U+775E-7760,U+7762,U+7764-7765,U+7767,U+776A-776C,U+7770,U+7772-7774,U+7779-777A,U+777C-7780,U+7784,U+778B-778E,U+7794-7796,U+779A,U+779E-77A0,U+77A2,U+77A4-77A5,U+77A7,U+77A9-77AA,U+77AE-77B1,U+77B5-77B7,U+77B9,U+77BB-77BF,U+77C3,U+77C7,U+77C9,U+77CD,U+77D1-77D2,U+77D5,U+77D7,U+77D9-77DA,U+77DC,U+77DE-77E0,U+77E3-77E4,U+77E6-77E7,U+77E9-77EA,U+77EC,U+77EE,U+77F0-77F1,U+77F4,U+77F8,U+77FB-77FC,U+7805-7806,U+7809,U+780C-780E,U+7811-7812,U+7819,U+781D,U+7820-7823,U+7826-7827,U+782C-782E,U+7830,U+7835,U+7837,U+783A,U+783F,U+7843-7845,U+7847-7848,U+784C,U+784E-784F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.28.woff2)format("woff2");unicode-range:U+7511-7513,U+7515-7517,U+751C,U+751E,U+7520-7522,U+7524,U+7526-7527,U+7529-752C,U+752F,U+7536,U+7538-7539,U+753C-7540,U+7543-7544,U+7546-754B,U+754D-7550,U+7552,U+7557,U+755A-755B,U+755D-755F,U+7561-7562,U+7564,U+7566-7567,U+7569,U+756B-756D,U+756F,U+7571-7572,U+7574-757E,U+7581-7582,U+7585-7587,U+7589-758C,U+758F-7590,U+7592-7595,U+7599-759A,U+759C-759D,U+75A2-75A5,U+75B0-75B1,U+75B3-75B5,U+75B7-75B8,U+75BA,U+75BD,U+75BF-75C4,U+75C6,U+75CA,U+75CC-75CF,U+75D3-75D4,U+75D7-75D8,U+75DC-75E1,U+75E3-75E4,U+75E7,U+75EC,U+75EE-75F3,U+75F9,U+75FC,U+75FE-7604,U+7607-760C,U+760F,U+7612-7613,U+7615-7616,U+7618-7619,U+761B-7629,U+762D,U+7630,U+7632-7635,U+7638-763C,U+7640-7641,U+7643-764B,U+764E,U+7655,U+7658-7659,U+765C,U+765F,U+7661-7662,U+7664-7665,U+7667-766A,U+766C-7672,U+7674,U+7676,U+7678,U+7680-7683,U+7685,U+7688,U+768B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.29.woff2)format("woff2");unicode-range:U+736C,U+736E-7371,U+7375,U+7377-737C,U+7380-7381,U+7383,U+7385-7386,U+738A,U+738E,U+7390,U+7393-7398,U+739C,U+739E-73A0,U+73A2,U+73A5-73A6,U+73A8,U+73AA-73AB,U+73AD,U+73B3,U+73B5,U+73B7,U+73B9-73BD,U+73BF,U+73C5-73C6,U+73C9-73CC,U+73CE-73CF,U+73D2-73D3,U+73D6,U+73D9,U+73DD-73DE,U+73E1,U+73E3-73E7,U+73E9-73EA,U+73EE,U+73F1,U+73F4-73F5,U+73F7-73FB,U+73FD,U+73FF-7401,U+7404-7405,U+7407,U+740A,U+7411,U+7413,U+741A-741B,U+7421,U+7424,U+7426,U+7428-7431,U+7433,U+7439-743A,U+743F-7441,U+7443-7444,U+7446-7447,U+744B,U+744D,U+7451-7453,U+7455,U+7457,U+7459-745A,U+745C-745D,U+745F,U+7462-7464,U+7466-746B,U+746D-7473,U+7476,U+747E,U+7480-7481,U+7485-7489,U+748B,U+748F-7492,U+7497-749A,U+749C,U+749E-74A3,U+74A5-74A6,U+74A8-74AB,U+74AE-74AF,U+74B1-74B2,U+74B5,U+74B9-74BB,U+74BD,U+74BF,U+74C8-74CA,U+74CC,U+74CF-74D0,U+74D3-74D4,U+74D6,U+74D8,U+74DA-74DB,U+74DE-74E0,U+74E3-74E4,U+74E7-74EB,U+74EE-74F2,U+74F4,U+74F7-74F8,U+74FA-74FC,U+74FF,U+7501,U+7503-7506,U+750C-750E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.30.woff2)format("woff2");unicode-range:U+7166,U+7168,U+716C,U+7179,U+7180,U+7184-7185,U+7187-7188,U+718C,U+718F,U+7192,U+7194-7196,U+7199-719B,U+71A0,U+71A2,U+71A8,U+71AC,U+71AE-71B0,U+71B2-71B3,U+71B9-71BA,U+71BE-71C1,U+71C4,U+71C9,U+71CB-71CC,U+71CE,U+71D0,U+71D2-71D4,U+71D6-71D7,U+71D9-71DA,U+71DC,U+71DF-71E0,U+71E6-71E7,U+71EC-71EE,U+71F4-71F5,U+71F8-71F9,U+71FC,U+71FE-7200,U+7207-7209,U+720D,U+7210,U+7213,U+7215,U+7217,U+721A,U+721D,U+721F,U+7224,U+7228,U+722B,U+722D,U+722F-7230,U+7232,U+7234,U+7238-7239,U+723B-723C,U+723E-7243,U+7245-7246,U+724B,U+724E-7250,U+7252-7253,U+7255-7258,U+725A,U+725C,U+725E,U+7260,U+7263,U+7268,U+726B,U+726E-726F,U+7271,U+7274,U+7277-7278,U+727B-727C,U+727E-7282,U+7284,U+7287,U+7289,U+728D-728E,U+7292-7293,U+7296,U+729B,U+72A2,U+72A7-72A8,U+72AD-72AE,U+72B0-72B2,U+72B4,U+72B9,U+72BE,U+72C0-72C1,U+72C3-72C4,U+72C6-72C7,U+72C9,U+72CC,U+72CE,U+72D2,U+72D5-72D6,U+72D8,U+72DF-72E2,U+72E5,U+72F3-72F4,U+72F7,U+72F9-72FB,U+72FD-72FE,U+7302,U+7304-7305,U+7307,U+730A-730B,U+730D,U+7312-7313,U+7316-7319,U+731C-731E,U+7322,U+7324,U+7327-7329,U+732C,U+732F,U+7331-7337,U+7339-733B,U+733D-733E,U+7343,U+734D-7350,U+7352,U+7356-7358,U+735D-7360,U+7366-736B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.31.woff2)format("woff2");unicode-range:U+6F58-6F5B,U+6F5D-6F5E,U+6F60-6F62,U+6F66,U+6F68,U+6F6C-6F6D,U+6F6F,U+6F74,U+6F78,U+6F7A,U+6F7C-6F7E,U+6F80,U+6F82-6F83,U+6F86-6F88,U+6F8B-6F8E,U+6F90-6F94,U+6F96-6F98,U+6F9A,U+6F9D,U+6F9F-6FA1,U+6FA3,U+6FA5-6FA8,U+6FAE-6FB1,U+6FB3,U+6FB5-6FB7,U+6FB9,U+6FBC,U+6FBE,U+6FC2,U+6FC5-6FCA,U+6FD4-6FD5,U+6FD8,U+6FDA-6FDB,U+6FDE-6FE0,U+6FE4,U+6FE8-6FE9,U+6FEB-6FEC,U+6FEE,U+6FF0,U+6FF3,U+6FF5-6FF6,U+6FF9-6FFA,U+6FFC-6FFE,U+7000-7001,U+7005-7007,U+7009-700B,U+700D,U+700F,U+7011,U+7015,U+7017-7018,U+701A-701B,U+701D-7020,U+7023,U+7026,U+7028,U+702F-7030,U+7032,U+7034,U+7037,U+7039-703A,U+703C,U+703E,U+7043-7044,U+7047-704C,U+704E,U+7051,U+7054-7055,U+705D-705E,U+7064-7065,U+7069,U+706C,U+706E,U+7075-7076,U+707E,U+7081,U+7085-7086,U+7094-7098,U+709B,U+709F,U+70A4,U+70AB-70AC,U+70AE-70B1,U+70B3-70B4,U+70B7,U+70BB,U+70CA-70CB,U+70D1,U+70D3-70D6,U+70D8-70D9,U+70DC-70DD,U+70DF,U+70E4,U+70EC,U+70F1,U+70FA,U+70FD,U+7103-7108,U+710B-710C,U+710F,U+7114,U+7119,U+711C,U+711E,U+7120,U+712B,U+712D-7131,U+7138,U+7141,U+7145-7147,U+7149-714B,U+7150-7153,U+7155-7157,U+715A,U+715C,U+715E,U+7160,U+7162,U+7164-7165}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.32.woff2)format("woff2");unicode-range:U+6D7C,U+6D80-6D82,U+6D85,U+6D87,U+6D89-6D8A,U+6D8C-6D8E,U+6D91-6D98,U+6D9C,U+6DAA-6DAC,U+6DAE,U+6DB4-6DB5,U+6DB7-6DB9,U+6DBD,U+6DBF,U+6DC2,U+6DC4-6DC8,U+6DCA,U+6DCC,U+6DCE-6DD0,U+6DD2,U+6DD5-6DD6,U+6DD8-6DDB,U+6DDD-6DE0,U+6DE2,U+6DE4-6DE6,U+6DE8-6DEA,U+6DEC,U+6DEE-6DF0,U+6DF2,U+6DF4,U+6DF6,U+6DF8-6DFA,U+6DFC,U+6E00,U+6E04,U+6E0A,U+6E17,U+6E19,U+6E1D-6E20,U+6E22-6E25,U+6E27,U+6E2B,U+6E2D-6E2E,U+6E32,U+6E34,U+6E36,U+6E38-6E3C,U+6E42-6E45,U+6E48-6E49,U+6E4B-6E4F,U+6E51-6E54,U+6E57,U+6E5B-6E5F,U+6E62-6E63,U+6E68,U+6E6B,U+6E6E,U+6E72-6E73,U+6E76,U+6E7B,U+6E7D,U+6E82,U+6E89,U+6E8C-6E8D,U+6E8F,U+6E93,U+6E98-6E99,U+6E9F-6EA0,U+6EA5,U+6EA7,U+6EAA-6EAB,U+6EAD-6EAF,U+6EB1-6EB4,U+6EB7,U+6EBB-6EBD,U+6EBF-6EC4,U+6EC7-6ECA,U+6ECC-6ECF,U+6ED3-6ED5,U+6ED9-6EDB,U+6EE6,U+6EEB-6EEF,U+6EF7-6EF9,U+6EFB,U+6EFD-6EFF,U+6F04,U+6F08-6F0A,U+6F0C-6F0D,U+6F10-6F11,U+6F13,U+6F15-6F16,U+6F18,U+6F1A-6F1B,U+6F25-6F26,U+6F29-6F2A,U+6F2D,U+6F2F-6F33,U+6F35-6F36,U+6F38,U+6F3B-6F3C,U+6F3E-6F3F,U+6F41,U+6F45,U+6F4F,U+6F51-6F53,U+6F57}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.33.woff2)format("woff2");unicode-range:U+6B85,U+6B89,U+6B8D,U+6B95,U+6B97-6B98,U+6B9B,U+6B9E-6BA0,U+6BA2-6BA4,U+6BA8-6BB3,U+6BB7-6BB9,U+6BBC-6BBE,U+6BC0,U+6BC3-6BC4,U+6BC6-6BC9,U+6BCB-6BCC,U+6BCF,U+6BD3,U+6BD6-6BD8,U+6BDA,U+6BDF,U+6BE1,U+6BE3,U+6BE6-6BE7,U+6BEB-6BEC,U+6BEE,U+6BF1,U+6BF3,U+6BF7,U+6BF9,U+6BFF,U+6C02,U+6C04-6C05,U+6C08-6C0A,U+6C0D-6C0E,U+6C10,U+6C12-6C14,U+6C19,U+6C1B,U+6C1F,U+6C24,U+6C26-6C28,U+6C2C,U+6C2E,U+6C33,U+6C35-6C36,U+6C3A-6C3B,U+6C3E-6C40,U+6C4A-6C4B,U+6C4D,U+6C4F,U+6C52,U+6C54-6C55,U+6C59,U+6C5B-6C5E,U+6C62,U+6C67-6C68,U+6C6A-6C6B,U+6C6D,U+6C6F,U+6C73-6C74,U+6C76,U+6C78-6C79,U+6C7B,U+6C7E,U+6C81-6C87,U+6C89,U+6C8C-6C8D,U+6C90,U+6C92-6C95,U+6C97-6C98,U+6C9A-6C9C,U+6C9F,U+6CAA-6CAE,U+6CB0-6CB2,U+6CB4,U+6CBA,U+6CBD-6CBE,U+6CC2,U+6CC5-6CC6,U+6CCD,U+6CCF-6CD4,U+6CD6-6CD7,U+6CD9-6CDD,U+6CE0,U+6CE7,U+6CE9-6CEF,U+6CF1-6CF2,U+6CF4,U+6CFB,U+6D00-6D01,U+6D04,U+6D07,U+6D0A,U+6D0C,U+6D0E-6D0F,U+6D11,U+6D13,U+6D19-6D1A,U+6D1F,U+6D24,U+6D26-6D28,U+6D2B,U+6D2E-6D2F,U+6D31,U+6D33-6D36,U+6D38-6D39,U+6D3C-6D3D,U+6D3F,U+6D57-6D5B,U+6D5E-6D61,U+6D64-6D65,U+6D67,U+6D6C,U+6D6F-6D70,U+6D79}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.34.woff2)format("woff2");unicode-range:U+69DD-69DE,U+69E2-69E3,U+69E5,U+69E7-69EB,U+69ED-69EF,U+69F1-69F6,U+69F9,U+69FE-6A01,U+6A03,U+6A05,U+6A0A,U+6A0C,U+6A0F,U+6A11-6A15,U+6A17,U+6A1A-6A1B,U+6A1D-6A20,U+6A22-6A24,U+6A28,U+6A2E,U+6A30,U+6A32-6A38,U+6A3B,U+6A3E-6A3F,U+6A44-6A4A,U+6A4E,U+6A50-6A52,U+6A54-6A56,U+6A5B,U+6A61-6A62,U+6A64,U+6A66-6A67,U+6A6A-6A6B,U+6A71-6A73,U+6A78,U+6A7A,U+6A7E-6A7F,U+6A81,U+6A83-6A84,U+6A86-6A87,U+6A89,U+6A8B,U+6A8D,U+6A90-6A91,U+6A94,U+6A97,U+6A9B,U+6A9D-6AA3,U+6AA5,U+6AAA-6AAC,U+6AAE-6AB1,U+6AB3-6AB4,U+6AB8,U+6ABB,U+6ABD-6ABF,U+6AC1-6AC3,U+6AC6,U+6AC8-6AC9,U+6ACC,U+6AD0-6AD1,U+6AD3-6AD6,U+6ADA-6ADF,U+6AE2,U+6AE4,U+6AE7-6AE8,U+6AEA,U+6AEC,U+6AF0-6AF3,U+6AF8,U+6AFA,U+6AFC-6AFD,U+6B02-6B03,U+6B06-6B07,U+6B09-6B0B,U+6B0F-6B12,U+6B16-6B17,U+6B1B,U+6B1D-6B1F,U+6B23-6B24,U+6B28,U+6B2B-6B2C,U+6B2F,U+6B35-6B39,U+6B3B,U+6B3D,U+6B3F,U+6B43,U+6B46-6B47,U+6B49-6B4A,U+6B4D-6B4E,U+6B50,U+6B52,U+6B54,U+6B56,U+6B58-6B59,U+6B5B,U+6B5D,U+6B5F-6B61,U+6B65,U+6B67,U+6B6B-6B6C,U+6B6E,U+6B70,U+6B72,U+6B75,U+6B77-6B7A,U+6B7D-6B84}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.35.woff2)format("woff2");unicode-range:U+6855,U+6857-6859,U+685B,U+685D,U+685F,U+6863,U+6867,U+686B,U+686E-6872,U+6874-6875,U+6877,U+6879-687C,U+687E-687F,U+6882-6884,U+6886,U+6888,U+688D-6890,U+6894,U+6896,U+6898-689C,U+689F-68A3,U+68A5-68A7,U+68A9-68AB,U+68AD-68AF,U+68B2-68B5,U+68B9-68BC,U+68C3,U+68C5-68C6,U+68C8-68CA,U+68CC-68CD,U+68CF-68D1,U+68D3-68D9,U+68DC-68DD,U+68E0-68E1,U+68E3-68E5,U+68E7-68E8,U+68EA-68ED,U+68EF-68F1,U+68F5-68F7,U+68F9,U+68FB-68FD,U+6900-6901,U+6903-6904,U+6906-690C,U+690F-6911,U+6913,U+6916-6917,U+6919-691B,U+6921-6923,U+6925-6926,U+6928,U+692A,U+6930-6931,U+6933-6936,U+6938-6939,U+693B,U+693D,U+6942,U+6945-6946,U+6949,U+694E,U+6954,U+6957,U+6959,U+695B-695E,U+6961-6966,U+6968-696C,U+696E-6974,U+6977-697B,U+697E-6981,U+6986,U+698D,U+6991-6992,U+6994-6996,U+6998,U+699C,U+69A0-69A1,U+69A5-69A8,U+69AB,U+69AD,U+69AF-69B2,U+69B4,U+69B7-69B8,U+69BA-69BC,U+69BE-69C1,U+69C3,U+69C5,U+69C7-69C8,U+69CA,U+69CE-69D1,U+69D3,U+69D6-69D7,U+69D9}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.36.woff2)format("woff2");unicode-range:U+667E-6680,U+6683-6684,U+6688,U+668B-668E,U+6690,U+6692,U+6698-669D,U+669F-66A0,U+66A2,U+66A4,U+66AD,U+66B1-66B3,U+66B5,U+66B8-66B9,U+66BB-66BC,U+66BE-66C4,U+66C6,U+66C8-66C9,U+66CC,U+66CE-66CF,U+66D4,U+66DA-66DB,U+66DD,U+66DF-66E0,U+66E6,U+66E8-66E9,U+66EB-66EC,U+66EE,U+66F5,U+66F7,U+66FA-66FC,U+6701,U+6705,U+6707,U+670C,U+670E-6710,U+6712-6716,U+6719,U+671C,U+671E,U+6720,U+6722,U+6725-6726,U+672E,U+6733,U+6735-6738,U+673E-673F,U+6741,U+6743,U+6745-6748,U+674C-674D,U+6753-6755,U+6759,U+675D-675E,U+6760,U+6762-6764,U+6766,U+676A,U+676C,U+676E,U+6770,U+6772-6774,U+6776-6777,U+677B-677C,U+6780-6781,U+6784-6785,U+6787,U+6789,U+678B-678C,U+678E-678F,U+6791-6793,U+6796,U+6798-6799,U+679B,U+67A1,U+67A4,U+67A6,U+67A9,U+67B0-67B5,U+67B7-67B9,U+67BB-67BE,U+67C0-67C3,U+67C5-67C6,U+67C8-67C9,U+67CE,U+67D2,U+67D7-67D9,U+67DB-67DE,U+67E1-67E2,U+67E4,U+67E6-67E7,U+67E9,U+67EC,U+67EE-67F0,U+67F2,U+67F6-67F7,U+67F9-67FA,U+67FC,U+67FE,U+6801-6802,U+6805,U+6810,U+6814,U+6818-6819,U+681D,U+681F,U+6822,U+6827-6829,U+682B-682D,U+682F-6834,U+683B,U+683E-6840,U+6844-6846,U+6849-684A,U+684C-684E,U+6852-6854}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.37.woff2)format("woff2");unicode-range:U+64D2,U+64D4-64D5,U+64D7-64D8,U+64DA,U+64E0-64E1,U+64E3-64E5,U+64E7,U+64E9-64EA,U+64ED,U+64EF-64F2,U+64F4-64F7,U+64FA-64FB,U+64FD-6501,U+6504-6505,U+6508-650A,U+650F,U+6513-6514,U+6516,U+6518-6519,U+651B-651F,U+6522,U+6524,U+6526,U+6529-652C,U+652E,U+6531-6532,U+6534-6538,U+653A,U+653C-653D,U+6543-6544,U+6547-6549,U+654D-654E,U+6550,U+6552,U+6554-6556,U+6558,U+655D-6560,U+6567,U+656B,U+6572,U+6578,U+657A,U+657D,U+6581-6585,U+6588,U+658A,U+658C,U+6592,U+6595,U+6598,U+659B,U+659D,U+659F-65A1,U+65A3-65A6,U+65AB,U+65AE,U+65B2-65B5,U+65B7-65B8,U+65BE-65BF,U+65C1-65C4,U+65C6,U+65C8-65C9,U+65CC,U+65CE,U+65D0,U+65D2,U+65D4,U+65D6,U+65D8-65D9,U+65DB,U+65DF-65E1,U+65E3,U+65F0-65F2,U+65F4-65F5,U+65F9,U+65FB-65FC,U+65FE-6600,U+6603-6604,U+6608-660A,U+660D,U+6611-6612,U+6615-6616,U+661C-661E,U+6621-6624,U+6626,U+6629-662C,U+662E,U+6630-6631,U+6633-6637,U+6639-663B,U+663F-6641,U+6644-6646,U+6648-664A,U+664C,U+664E-664F,U+6651,U+6657-6665,U+6667-6668,U+666A-666D,U+6670,U+6673,U+6675,U+6677-6679,U+667B-667C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.38.woff2)format("woff2");unicode-range:U+62CF,U+62D1,U+62D4-62D6,U+62DA,U+62DC,U+62EA,U+62EE-62EF,U+62F1-62F2,U+62F4-62F5,U+62FC-62FD,U+62FF,U+6302-6304,U+6308-630D,U+6310,U+6313,U+6316,U+6318,U+631B,U+6327,U+6329-632A,U+632D,U+6332,U+6335-6336,U+6339-633C,U+633E,U+6341-6344,U+6346,U+634A-634E,U+6350,U+6352-6354,U+6358-6359,U+635B,U+6365-6366,U+6369,U+636B-636D,U+6371-6372,U+6374-6378,U+637A,U+637C-637D,U+637F-6380,U+6382,U+6384,U+6387,U+6389-638A,U+638E-6390,U+6394-6396,U+6399-639A,U+639E,U+63A0,U+63A3-63A4,U+63A6,U+63A9,U+63AB-63AF,U+63B5,U+63BD-63BE,U+63C0-63C1,U+63C4-63C6,U+63C8,U+63CE,U+63D1-63D6,U+63DC,U+63E0,U+63E3,U+63E5,U+63E9-63ED,U+63F2-63F3,U+63F5-63F9,U+6406,U+6409-640A,U+640F-6410,U+6412-6414,U+6416-6418,U+641E,U+6420,U+6422,U+6424-6426,U+6428-642A,U+642F-6430,U+6434-6436,U+643D,U+643F,U+644B,U+644E-644F,U+6451-6454,U+645A-645D,U+645F-6461,U+6463,U+6467,U+646D,U+6473-6474,U+6476,U+6478-6479,U+647B,U+647D,U+6485,U+6487-6488,U+648F-6491,U+6493,U+6495,U+6498-649B,U+649D-649F,U+64A1,U+64A3,U+64A6,U+64A8-64A9,U+64AC,U+64B3,U+64BB-64BF,U+64C2,U+64C4-64C5,U+64C7,U+64C9-64CC,U+64CE,U+64D0-64D1}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.39.woff2)format("woff2");unicode-range:U+6117,U+6119,U+611C,U+611E,U+6120-6122,U+6127-6128,U+612A-612C,U+6130-6131,U+6134-6137,U+6139-613A,U+613C-613F,U+6141-6142,U+6144-6147,U+6149-614A,U+614D,U+6153,U+6158-615A,U+615D-6160,U+6164-6165,U+616B-616C,U+616F,U+6171-6175,U+6177-6178,U+617B-6181,U+6183-6184,U+6187,U+618A-618B,U+618D,U+6192-6194,U+6196-619A,U+619C-619D,U+619F-61A0,U+61A5,U+61A8,U+61AA-61AE,U+61B8-61BA,U+61BC,U+61BE,U+61C0-61C3,U+61C6,U+61C8,U+61CA-61CF,U+61D5,U+61DC-61DF,U+61E1-61E3,U+61E5-61E9,U+61EC-61ED,U+61EF,U+61F4-61F7,U+61FA,U+61FC-6201,U+6203-6204,U+6207-620A,U+620D-620E,U+6213-6215,U+621B-621E,U+6220-6223,U+6227,U+6229-622B,U+622E,U+6230-6233,U+6236,U+6239,U+623D-623E,U+6241-6244,U+6246,U+6248,U+624C,U+624E,U+6250-6252,U+6254,U+6256,U+6258,U+625A-625C,U+625E,U+6260-6261,U+6263-6264,U+6268,U+626D,U+626F,U+6273,U+627A-627E,U+6282-6283,U+6285,U+6289,U+628D-6290,U+6292-6294,U+6296,U+6299,U+629B,U+62A6,U+62A8,U+62AC,U+62B3,U+62B6-62B7,U+62BA-62BB,U+62BE-62BF,U+62C2,U+62C4,U+62C6-62C8,U+62CA,U+62CE}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.40.woff2)format("woff2");unicode-range:U+5F6C-5F6D,U+5F6F,U+5F72-5F75,U+5F78,U+5F7A,U+5F7D-5F7F,U+5F82-5F83,U+5F87-5F89,U+5F8D,U+5F8F,U+5F91,U+5F96,U+5F99,U+5F9C-5F9D,U+5FA0,U+5FA2,U+5FA4,U+5FA7-5FA8,U+5FAB-5FAD,U+5FAF-5FB1,U+5FB5,U+5FB7-5FB8,U+5FBC-5FBD,U+5FC4,U+5FC7-5FC9,U+5FCB,U+5FD0-5FD4,U+5FDD-5FDE,U+5FE1-5FE2,U+5FE4,U+5FE8-5FEA,U+5FEC-5FF3,U+5FF6,U+5FF8,U+5FFA-5FFD,U+5FFF,U+6007,U+600A,U+600D-6010,U+6013-6015,U+6017-601B,U+601F,U+6021-6022,U+6024,U+6026,U+6029,U+602B,U+602D,U+6031,U+6033,U+6035,U+603A,U+6040-6043,U+6046-604A,U+604C-604D,U+6051,U+6054-6057,U+6059-605A,U+605D,U+605F-6064,U+6067,U+606A-606C,U+6070-6071,U+6077,U+607E-607F,U+6081-6086,U+6088-608E,U+6091-6093,U+6095-6098,U+609A-609B,U+609D-609E,U+60A2,U+60A4-60A5,U+60A7-60A8,U+60B0-60B1,U+60B3-60B5,U+60B7-60B8,U+60BB,U+60BD-60BE,U+60C2,U+60C4,U+60C6-60CB,U+60CE-60CF,U+60D3-60D5,U+60D8-60D9,U+60DB,U+60DD-60DF,U+60E1-60E2,U+60E5,U+60EE,U+60F0-60F2,U+60F4-60F8,U+60FA-60FD,U+6100,U+6102-6103,U+6106-6108,U+610A,U+610C-610E,U+6110-6114,U+6116}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.41.woff2)format("woff2");unicode-range:U+5D9B,U+5D9D,U+5D9F-5DA0,U+5DA2,U+5DA4,U+5DA7,U+5DAB-5DAC,U+5DAE,U+5DB0,U+5DB2,U+5DB4,U+5DB7-5DB9,U+5DBC-5DBD,U+5DC3,U+5DC7,U+5DC9,U+5DCB-5DCE,U+5DD0-5DD3,U+5DD6-5DD9,U+5DDB,U+5DE0,U+5DE2,U+5DE4,U+5DE9,U+5DF2,U+5DF5,U+5DF8-5DF9,U+5DFD,U+5DFF-5E00,U+5E07,U+5E0B,U+5E0D,U+5E11-5E12,U+5E14-5E15,U+5E18-5E1B,U+5E1F-5E20,U+5E25,U+5E28,U+5E2E,U+5E32,U+5E35-5E37,U+5E3E,U+5E40,U+5E43-5E44,U+5E47,U+5E49,U+5E4B,U+5E4E,U+5E50-5E51,U+5E54,U+5E56-5E58,U+5E5B-5E5C,U+5E5E-5E5F,U+5E62,U+5E64,U+5E68,U+5E6A-5E6E,U+5E70,U+5E75-5E77,U+5E7A,U+5E7F-5E80,U+5E87,U+5E8B,U+5E8E,U+5E96,U+5E99-5E9A,U+5EA0,U+5EA2,U+5EA4-5EA5,U+5EA8,U+5EAA,U+5EAC,U+5EB1,U+5EB3,U+5EB8-5EB9,U+5EBD-5EBF,U+5EC1-5EC2,U+5EC6,U+5EC8,U+5ECB-5ECC,U+5ECE-5ED6,U+5ED9-5EE2,U+5EE5,U+5EE8-5EE9,U+5EEB-5EEC,U+5EF0-5EF1,U+5EF3-5EF4,U+5EF8-5EF9,U+5EFC-5F00,U+5F02-5F03,U+5F06-5F09,U+5F0B-5F0E,U+5F11,U+5F16-5F17,U+5F19,U+5F1B-5F1E,U+5F21-5F24,U+5F27-5F29,U+5F2B-5F30,U+5F34,U+5F36,U+5F38,U+5F3A-5F3D,U+5F3F-5F41,U+5F44-5F45,U+5F47-5F48,U+5F4A,U+5F4C-5F4E,U+5F50-5F51,U+5F54,U+5F56-5F58,U+5F5B-5F5D,U+5F60,U+5F63-5F65,U+5F67,U+5F6A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.42.woff2)format("woff2");unicode-range:U+5BBC,U+5BC0-5BC1,U+5BC3,U+5BC7,U+5BC9,U+5BCD-5BD0,U+5BD3-5BD4,U+5BD6-5BDA,U+5BDE,U+5BE0-5BE2,U+5BE4-5BE6,U+5BE8,U+5BEB-5BEC,U+5BEF-5BF1,U+5BF3-5BF6,U+5BFD,U+5C03,U+5C05,U+5C07-5C09,U+5C0C-5C0D,U+5C12-5C14,U+5C17,U+5C19,U+5C1E-5C20,U+5C22-5C24,U+5C26,U+5C28-5C2E,U+5C30,U+5C32,U+5C35-5C36,U+5C38-5C39,U+5C46,U+5C4D-5C50,U+5C53,U+5C59-5C5C,U+5C5F-5C63,U+5C67-5C69,U+5C6C-5C70,U+5C74-5C76,U+5C79-5C7D,U+5C87-5C88,U+5C8A,U+5C8C,U+5C8F,U+5C91-5C92,U+5C94,U+5C9D,U+5C9F-5CA0,U+5CA2-5CA3,U+5CA6-5CA8,U+5CAA-5CAB,U+5CAD,U+5CB1-5CB2,U+5CB4-5CB7,U+5CBA-5CBC,U+5CBE,U+5CC5,U+5CC7,U+5CC9,U+5CCB,U+5CD0,U+5CD2,U+5CD7,U+5CD9,U+5CDD,U+5CE6,U+5CE8-5CEA,U+5CED-5CEE,U+5CF1-5CF2,U+5CF4-5CF5,U+5CFA-5CFB,U+5CFD,U+5D01,U+5D06,U+5D0B,U+5D0D,U+5D10-5D12,U+5D14-5D15,U+5D17-5D1B,U+5D1D,U+5D1F-5D20,U+5D22-5D24,U+5D26-5D27,U+5D2B,U+5D31,U+5D34,U+5D39,U+5D3D,U+5D3F,U+5D42-5D43,U+5D46-5D48,U+5D4A-5D4B,U+5D4E,U+5D51-5D53,U+5D55,U+5D59,U+5D5C,U+5D5F-5D62,U+5D64,U+5D69-5D6A,U+5D6C-5D6D,U+5D6F-5D70,U+5D73,U+5D76,U+5D79-5D7A,U+5D7E-5D7F,U+5D81-5D84,U+5D87-5D88,U+5D8A,U+5D8C,U+5D90,U+5D92-5D95,U+5D97,U+5D99}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.43.woff2)format("woff2");unicode-range:U+598B-598E,U+5992,U+5995,U+5997,U+599B,U+599D,U+599F,U+59A3-59A4,U+59A7,U+59AD-59B0,U+59B2-59B3,U+59B7,U+59BA,U+59BC,U+59BE,U+59C1,U+59C3-59C4,U+59C6,U+59C8,U+59CA,U+59CD,U+59D2,U+59D9-59DA,U+59DD-59DF,U+59E3-59E5,U+59E7-59E8,U+59EC,U+59EE-59EF,U+59F1-59F2,U+59F4,U+59F6-59F8,U+5A00,U+5A03-5A04,U+5A09,U+5A0C-5A0E,U+5A11-5A13,U+5A17,U+5A1A-5A1C,U+5A1E-5A1F,U+5A23-5A25,U+5A27-5A28,U+5A2A,U+5A2D,U+5A30,U+5A35-5A36,U+5A40-5A41,U+5A44-5A45,U+5A47-5A49,U+5A4C,U+5A50,U+5A55,U+5A5E,U+5A62-5A63,U+5A65,U+5A67,U+5A6A,U+5A6C-5A6D,U+5A77,U+5A7A-5A7B,U+5A7E,U+5A84,U+5A8B,U+5A90,U+5A93,U+5A96,U+5A99,U+5A9C,U+5A9E-5AA0,U+5AA2,U+5AA7,U+5AAC,U+5AB1-5AB3,U+5AB5,U+5AB8,U+5ABA-5ABF,U+5AC2,U+5AC4,U+5AC6,U+5AC8,U+5ACB,U+5ACF-5AD0,U+5AD6-5AD7,U+5ADA,U+5ADC,U+5AE0-5AE1,U+5AE3,U+5AE5-5AE6,U+5AE9-5AEA,U+5AEE,U+5AF0,U+5AF5-5AF6,U+5AFA-5AFB,U+5AFD,U+5B00-5B01,U+5B08,U+5B0B,U+5B16-5B17,U+5B19,U+5B1B,U+5B1D,U+5B21,U+5B25,U+5B2A,U+5B2C-5B2D,U+5B30,U+5B32,U+5B34,U+5B36,U+5B38,U+5B3E,U+5B40-5B41,U+5B43,U+5B45,U+5B4B-5B4C,U+5B51-5B52,U+5B56,U+5B5A-5B5C,U+5B5E-5B5F,U+5B65,U+5B68-5B69,U+5B6E-5B71,U+5B73,U+5B75-5B76,U+5B7A,U+5B7C-5B84,U+5B86,U+5B8A-5B8B,U+5B8D-5B8E,U+5B90-5B91,U+5B93-5B94,U+5B96,U+5BA5-5BA6,U+5BA8-5BA9,U+5BAC-5BAD,U+5BAF,U+5BB1-5BB2,U+5BB7-5BB8,U+5BBA}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.44.woff2)format("woff2");unicode-range:U+57B3,U+57B8,U+57BD,U+57C0,U+57C3,U+57C6-57C8,U+57CC,U+57CF,U+57D2-57D7,U+57DC-57DE,U+57E0-57E1,U+57E3-57E4,U+57E6-57E7,U+57E9,U+57ED,U+57F0,U+57F4-57F6,U+57F8,U+57FB,U+57FD-57FF,U+5803-5804,U+5808-580D,U+5819,U+581B,U+581D-5821,U+5826-5827,U+582D,U+582F-5830,U+5832,U+5835,U+5839,U+583D,U+583F-5840,U+5849,U+584B-584D,U+584F-5852,U+5855,U+5858-5859,U+585F,U+5861-5862,U+5864,U+5867-5868,U+586D,U+5870,U+5872,U+5878-5879,U+587C,U+587F-5881,U+5885,U+5887-588D,U+588F-5890,U+5894,U+5896,U+5898,U+589D-589E,U+58A0-58A2,U+58A6,U+58A9-58AB,U+58AE,U+58B1-58B3,U+58B8-58BC,U+58BE,U+58C2-58C5,U+58C8,U+58CD-58CE,U+58D0-58DA,U+58DC-58E2,U+58E4-58E5,U+58E9,U+58EC,U+58EF,U+58F3-58F4,U+58F7,U+58F9,U+58FB-58FD,U+5902,U+5905-5906,U+590A-590D,U+5910,U+5912-5914,U+5918-5919,U+591B,U+591D,U+591F,U+5921,U+5923-5925,U+5928,U+592C-592D,U+592F-5930,U+5932-5933,U+5935-5936,U+5938-5939,U+593D-593F,U+5943,U+5946,U+594E,U+5950,U+5952-5953,U+5955,U+5957-595B,U+595D-5961,U+5963,U+5967,U+5969,U+596B-596D,U+596F,U+5972,U+5975-5976,U+5978-5979,U+597B-597C,U+5981}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.45.woff2)format("woff2");unicode-range:U+5616-5617,U+5619,U+561B,U+5620,U+5628,U+562C,U+562F-5639,U+563B-563D,U+563F-5641,U+5643-5644,U+5646-5647,U+5649,U+564B,U+564D-5650,U+5653-5654,U+565E,U+5660-5664,U+5666,U+5669-566D,U+566F,U+5671-5672,U+5675-5676,U+5678,U+567A,U+5680,U+5684-5688,U+568A-568C,U+568F,U+5694-5695,U+5699-569A,U+569D-56A0,U+56A5-56A9,U+56AB-56AE,U+56B1-56B4,U+56B6-56B7,U+56BC,U+56BE,U+56C0,U+56C2-56C3,U+56C5,U+56C8-56D1,U+56D3,U+56D7-56D9,U+56DC-56DD,U+56DF,U+56E1,U+56E4-56E8,U+56EB,U+56ED-56EE,U+56F1,U+56F6-56F7,U+56F9,U+56FF-5704,U+5707-570A,U+570C-570D,U+5711,U+5713,U+5715-5716,U+5718,U+571A-571D,U+5720-5726,U+5729-572A,U+572C,U+572E-572F,U+5733-5734,U+5737-5738,U+573B,U+573D-573F,U+5745-5746,U+574C-574F,U+5751-5752,U+5759,U+575F,U+5761-5762,U+5764-5765,U+5767-5769,U+576B,U+576D-5771,U+5773-5775,U+5777,U+5779-577C,U+577E-577F,U+5781,U+5783,U+5788-5789,U+578C,U+5793-5795,U+5797,U+5799-579A,U+579C-57A1,U+57A4,U+57A7-57AA,U+57AC,U+57AE,U+57B0}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.46.woff2)format("woff2");unicode-range:U+543F-5440,U+5443-5444,U+5447,U+544C-544F,U+5455,U+545E,U+5462,U+5464,U+5466-5467,U+5469,U+546B-546E,U+5470-5471,U+5474-5477,U+547B,U+547F-5481,U+5483-5486,U+5488-548B,U+548D-5492,U+5495-5496,U+549C,U+549F-54A2,U+54A4,U+54A6-54AF,U+54B1,U+54B7-54BC,U+54BE-54BF,U+54C2-54C4,U+54C6-54C8,U+54CA,U+54CD-54CE,U+54D8,U+54E0,U+54E2,U+54E5-54E6,U+54E8-54EA,U+54EC-54EF,U+54F1,U+54F3,U+54F6,U+54FC-5501,U+5505,U+5508-5509,U+550C-550F,U+5514-5516,U+5527,U+552A-552B,U+552E,U+5532-5533,U+5535-5536,U+5538-5539,U+553B-553D,U+5540-5541,U+5544-5545,U+5547,U+5549-554A,U+554C-554D,U+5550-5551,U+5556-5558,U+555A-555E,U+5560-5561,U+5563-5564,U+5566,U+557B-5583,U+5586-5588,U+558A,U+558E-558F,U+5591-5594,U+5597,U+5599,U+559E-559F,U+55A3-55A4,U+55A8-55A9,U+55AC-55AE,U+55B2,U+55BF,U+55C1,U+55C3-55C4,U+55C6-55C7,U+55C9,U+55CB-55CC,U+55CE,U+55D1-55D4,U+55D7-55D8,U+55DA-55DB,U+55DD-55DF,U+55E2,U+55E4,U+55E9,U+55EC,U+55EE,U+55F1,U+55F6-55F9,U+55FD-55FF,U+5605,U+5607-5608,U+560A,U+560D-5612}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.47.woff2)format("woff2");unicode-range:U+528D,U+5291-5298,U+529A,U+529C,U+52A4-52A7,U+52AB-52AD,U+52AF-52B0,U+52B5-52B8,U+52BA-52BE,U+52C0-52C1,U+52C4-52C6,U+52C8,U+52CA,U+52CC-52CD,U+52CF-52D2,U+52D4,U+52D6-52D7,U+52DB-52DC,U+52DE,U+52E0-52E1,U+52E3,U+52E5-52E6,U+52E8-52EA,U+52EC,U+52F0-52F1,U+52F3-52FB,U+5300-5301,U+5303,U+5306-5308,U+530A-530D,U+530F-5311,U+5313,U+5315,U+5318-531F,U+5321,U+5323-5325,U+5327-532D,U+532F-5333,U+5335,U+5338,U+533C-533E,U+5340,U+5342,U+5345-5346,U+5349,U+534B-534C,U+5359,U+535B,U+535E,U+5361,U+5363-5367,U+5369,U+536C-536E,U+5372,U+5377,U+5379-537B,U+537D-537F,U+5382-5383,U+5387-5389,U+538E,U+5393-5394,U+5396,U+5398-5399,U+539D,U+53A0-53A1,U+53A4-53A6,U+53A9-53AB,U+53AD-53B0,U+53B2,U+53B4-53B8,U+53BA,U+53BD,U+53C0-53C1,U+53C3-53C5,U+53CF,U+53D2-53D3,U+53D5,U+53DA-53DB,U+53DD-53E0,U+53E2,U+53E6-53E8,U+53ED-53EE,U+53F4-53F5,U+53FA,U+5401-5403,U+540B,U+540F,U+5412-5413,U+541A,U+541D-541E,U+5421,U+5424,U+5427-542A,U+542C-542F,U+5431,U+5433-5436,U+543C-543D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.48.woff2)format("woff2");unicode-range:U+50DD-50DF,U+50E1-50E6,U+50E8-50E9,U+50ED-50F6,U+50F9-50FB,U+50FE,U+5101-5103,U+5106-5109,U+510B-510E,U+5110,U+5112,U+5114-511E,U+5121,U+5123,U+5127-5128,U+512C-512D,U+512F,U+5131,U+5133-5135,U+5137-513C,U+513F-5142,U+5147,U+514A,U+514C,U+514F,U+5152-5155,U+5157-5158,U+515F-5160,U+5162,U+5164,U+5166-5167,U+5169-516A,U+516E,U+5173-5174,U+5179,U+517B,U+517E,U+5180,U+5182-5184,U+5189,U+518B-518C,U+518E-5191,U+5193,U+5195-5196,U+5198,U+519D,U+51A1-51A4,U+51A6,U+51A9-51AB,U+51AD,U+51B0-51B3,U+51B5,U+51B8,U+51BA,U+51BC-51BF,U+51C2-51C3,U+51C5,U+51C8-51CB,U+51CF,U+51D1-51D6,U+51D8,U+51DE-51E0,U+51E2,U+51E5,U+51E7,U+51E9,U+51EC-51EE,U+51F2-51F5,U+51F7,U+51FE,U+5201-5202,U+5204-5205,U+520B,U+520E,U+5212-5216,U+5218,U+5222,U+5226-5228,U+522A-522B,U+522E,U+5231-5233,U+5235,U+523C,U+5244-5245,U+5249,U+524B-524C,U+524F,U+5254-5255,U+5257-5258,U+525A,U+525C-5261,U+5266,U+5269,U+526C,U+526E,U+5271,U+5273-5274,U+5277-5279,U+527D,U+527F-5280,U+5282-5285,U+5288-528A,U+528C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.49.woff2)format("woff2");unicode-range:U+4F57-4F58,U+4F5A-4F5B,U+4F5D-4F5F,U+4F63-4F64,U+4F69-4F6A,U+4F6C,U+4F6E-4F71,U+4F76-4F7E,U+4F81-4F85,U+4F88-4F8A,U+4F8C,U+4F8E-4F90,U+4F92-4F94,U+4F96-4F9A,U+4F9E-4FA0,U+4FAB,U+4FAD,U+4FAF,U+4FB2,U+4FB7,U+4FB9,U+4FBB-4FBE,U+4FC0-4FC1,U+4FC4-4FC6,U+4FC8-4FC9,U+4FCB-4FD4,U+4FD8,U+4FDA-4FDC,U+4FDF-4FE0,U+4FE2,U+4FE4-4FE6,U+4FEF-4FF2,U+4FF6,U+4FFC-5002,U+5004-5007,U+500A,U+500C,U+500E-5011,U+5013-5014,U+5016-5018,U+501A-501E,U+5021-5023,U+5025-502A,U+502C-502E,U+5030,U+5032-5033,U+5035,U+5039,U+503B,U+5040-5043,U+5045-5048,U+504A,U+504C,U+504E,U+5050-5053,U+5055-5057,U+5059-505A,U+505F-5060,U+5062-5063,U+5066-5067,U+506A,U+506C-506D,U+5070-5072,U+5077-5078,U+5080-5081,U+5083-5086,U+5088,U+508A,U+508E-5090,U+5092-5096,U+509A-509C,U+509E-50A3,U+50AA,U+50AD,U+50AF-50B4,U+50B9-50BB,U+50BD,U+50C0,U+50C2-50C4,U+50C7,U+50C9-50CA,U+50CC,U+50CE,U+50D0-50D1,U+50D3-50D4,U+50D6,U+50D8-50D9,U+50DC}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.50.woff2)format("woff2");unicode-range:U+4093,U+4103,U+4105,U+4148,U+414F,U+4163,U+41B4,U+41BF,U+41E6,U+41EE,U+41F3,U+4207,U+420E,U+4264,U+4293,U+42C6,U+42D6,U+42DD,U+4302,U+432B,U+4343,U+43EE,U+43F0,U+4408,U+440C,U+4417,U+441C,U+4422,U+4453,U+445B,U+4476,U+447A,U+4491,U+44B3,U+44BE,U+44D4,U+4508,U+450D,U+4525,U+4543,U+457A,U+459D,U+45B8,U+45BE,U+45E5,U+45EA,U+460F-4610,U+4641,U+4665,U+46A1,U+46AE-46AF,U+470C,U+471F,U+4764,U+47E6,U+47FD,U+4816,U+481E,U+4844,U+484E,U+48B5,U+49B0,U+49E7,U+49FA,U+4A04,U+4A29,U+4ABC,U+4B38,U+4B3B,U+4B7E,U+4BC2,U+4BCA,U+4BD2,U+4BE8,U+4C17,U+4C20,U+4C38,U+4CC4,U+4CD1,U+4CE1,U+4D07,U+4D77,U+4E02,U+4E04-4E05,U+4E0C,U+4E0F-4E12,U+4E15,U+4E17,U+4E19,U+4E1E-4E1F,U+4E23-4E24,U+4E28-4E2C,U+4E2E-4E31,U+4E35-4E37,U+4E3F-4E42,U+4E44,U+4E47-4E48,U+4E4D-4E4E,U+4E51,U+4E55-4E56,U+4E58,U+4E5A-4E5C,U+4E62-4E63,U+4E68-4E69,U+4E74-4E75,U+4E79,U+4E7F,U+4E82,U+4E85,U+4E8A,U+4E8D-4E8E,U+4E96-4E99,U+4E9D-4EA0,U+4EA2,U+4EA5-4EA6,U+4EA8,U+4EAF-4EB0,U+4EB3,U+4EB6,U+4EB9,U+4EBB-4EBC,U+4EC2-4EC4,U+4EC6-4EC8,U+4ECD,U+4ED0,U+4ED7,U+4EDA-4EDB,U+4EDD-4EE2,U+4EE8,U+4EEB,U+4EED,U+4EEF,U+4EF1,U+4EF3,U+4EF5,U+4EF7,U+4EFC-4F00,U+4F02-4F03,U+4F08-4F09,U+4F0B-4F0D,U+4F12,U+4F15-4F17,U+4F19,U+4F1C,U+4F2B,U+4F2E,U+4F30-4F31,U+4F33,U+4F35-4F37,U+4F39,U+4F3B,U+4F3E,U+4F40,U+4F42-4F43,U+4F48-4F49,U+4F4B-4F4C,U+4F52,U+4F54,U+4F56}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.51.woff2)format("woff2");unicode-range:U+3395-339B,U+339E-33A0,U+33A2-33FF,U+3402,U+3405-3406,U+3427,U+342C,U+342E,U+3468,U+346A,U+3488,U+3492,U+34B5,U+34BC,U+34C1,U+34C7,U+34DB,U+351F,U+353E,U+355D-355E,U+3563,U+356E,U+35A6,U+35A8,U+35C5,U+35DA,U+35DE,U+35F4,U+3605,U+3614,U+364A,U+3691,U+3696,U+3699,U+36CF,U+3761-3762,U+376B-376C,U+3775,U+378D,U+37C1,U+37E2,U+37E8,U+37F4,U+37FD,U+3800,U+382F,U+3836,U+3840,U+385C,U+3861,U+38A1,U+38AD,U+38FA,U+3917,U+391A,U+396F,U+39A4,U+39B8,U+3A5C,U+3A6E,U+3A73,U+3A85,U+3AC4,U+3ACB,U+3AD6-3AD7,U+3AEA,U+3AF3,U+3B0E,U+3B1A,U+3B1C,U+3B22,U+3B35,U+3B6D,U+3B77,U+3B87-3B88,U+3B8D,U+3BA4,U+3BB6,U+3BC3,U+3BCD,U+3BF0,U+3BF3,U+3C0F,U+3C26,U+3CC3,U+3CD2,U+3D11,U+3D1E,U+3D31,U+3D4E,U+3D64,U+3D9A,U+3DC0,U+3DCC,U+3DD4,U+3E05,U+3E3F-3E40,U+3E60,U+3E66,U+3E68,U+3E83,U+3E8A,U+3E94,U+3EDA,U+3F57,U+3F72,U+3F75,U+3F77,U+3FAE,U+3FB1,U+3FC9,U+3FD7,U+3FDC,U+4039,U+4058}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.52.woff2)format("woff2");unicode-range:U+32B5-332B,U+332D-3394}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.53.woff2)format("woff2");unicode-range:U+31C8-31E3,U+31F0-321E,U+3220-3230,U+3232-32B4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.54.woff2)format("woff2");unicode-range:U+3028-303F,U+3094-3096,U+309F-30A0,U+30EE,U+30F7-30FA,U+30FF,U+3105-312F,U+3131-3163,U+3165-318E,U+3190-31BB,U+31C0-31C7}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.55.woff2)format("woff2");unicode-range:U+2F14-2FD5,U+2FF0-2FFB,U+3004,U+3013,U+3016-301B,U+301E,U+3020-3027}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.56.woff2)format("woff2");unicode-range:U+25E4-25E6,U+2601-2603,U+2609,U+260E-260F,U+2616-2617,U+261C-261F,U+262F,U+2641,U+2660,U+2662-2664,U+2666-2668,U+266D-266E,U+2672-267D,U+26BD-26BE,U+2702,U+271A,U+273D,U+2740,U+2756,U+2776-2793,U+27A1,U+2934-2935,U+29BF,U+29FA-29FB,U+2B05-2B07,U+2B1A,U+2B95,U+2E3A-2E3B,U+2E80-2E99,U+2E9B-2EF3,U+2F00-2F13}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.57.woff2)format("woff2");unicode-range:U+24D1-24FF,U+2503-2513,U+2515-2516,U+2518-251B,U+251D-2522,U+2524-259F,U+25A2-25AB,U+25B1,U+25B7,U+25C0-25C1,U+25C9-25CA,U+25CC,U+25D0-25D3,U+25E2-25E3}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.58.woff2)format("woff2");unicode-range:U+2105,U+2109-210A,U+210F,U+2116,U+2121,U+2126-2127,U+212B,U+212E,U+2135,U+213B,U+2194-2199,U+21B8-21B9,U+21C4-21C6,U+21CB-21CC,U+21D0,U+21E6-21E9,U+21F5,U+2202-2203,U+2205-2206,U+2208-220B,U+220F,U+2211,U+2213,U+2215,U+221A,U+221D,U+2220,U+2223,U+2225-2226,U+2228,U+222A-222E,U+2234-2237,U+223D,U+2243,U+2245,U+2248,U+224C,U+2260,U+2262,U+2264-2265,U+226E-226F,U+2272-2273,U+2276-2277,U+2283-2287,U+228A-228B,U+2295-2299,U+22A0,U+22A5,U+22BF,U+22DA-22DB,U+22EF,U+2305-2307,U+2318,U+2329-232A,U+23B0-23B1,U+23BE-23CC,U+23CE,U+23DA-23DB,U+2423,U+2469-24D0}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.59.woff2)format("woff2");unicode-range:U+A1-A4,U+A6-A7,U+AA,U+AC-AD,U+B5-B6,U+B8-BA,U+BC-C8,U+CA-CC,U+CE-D5,U+D9-DB,U+DD-DF,U+E6,U+EE,U+F0,U+F5,U+F7,U+F9,U+FB,U+FE-102,U+110-113,U+11A-11B,U+128-12B,U+143-144,U+147-148,U+14C,U+14E-14F,U+152-153,U+168-16D,U+192,U+1A0-1A1,U+1AF,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+2BB,U+2C7,U+2C9,U+2EA-2EB,U+304,U+307,U+30C,U+1E3E-1E3F,U+1EA0-1EBE,U+1EC0-1EC6,U+1EC8-1EF9,U+2011-2012,U+2016,U+2018-201A,U+201E,U+2021,U+2030,U+2033,U+2035,U+2042,U+2047,U+2051,U+2074,U+20A9,U+20AB-20AC,U+20DD-20DE,U+2100}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.60.woff2)format("woff2");unicode-range:U+2227,U+26A0,U+2713,U+301F,U+4FF8,U+5239,U+526A,U+54FA,U+5740,U+5937,U+5993,U+59FB,U+5A3C,U+5C41,U+6028,U+626E,U+646F,U+647A,U+64B0,U+64E2,U+65A7,U+66FE,U+6727,U+6955,U+6BEF,U+6F23,U+724C,U+767C,U+7A83,U+7AC4,U+7B67,U+8000,U+8471,U+8513,U+8599,U+86DB,U+8718,U+87F2,U+88F3,U+8AD2,U+8E2A,U+8FA3,U+95A5,U+9798,U+9910,U+9957,U+9BAB,U+9C3B,U+9DAF,U+FF95}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.61.woff2)format("woff2");unicode-range:U+A8,U+2032,U+2261,U+2282,U+3090,U+30F1,U+339C,U+535C,U+53D9,U+56A2,U+56C1,U+5806,U+589F,U+59D0,U+5A7F,U+60E0,U+639F,U+65AF,U+68FA,U+69AE,U+6D1B,U+6EF2,U+71FB,U+725D,U+7262,U+75BC,U+7768,U+7940,U+79BF,U+7BED,U+7D68,U+7DFB,U+814B,U+8207,U+83E9,U+8494,U+8526,U+8568,U+85EA,U+86D9,U+87BA,U+8861,U+887F,U+8FE6,U+9059,U+9061,U+916A,U+976D,U+97AD,U+9ECE}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.62.woff2)format("woff2");unicode-range:U+2D9,U+21D4,U+301D,U+515C,U+52FE,U+5420,U+5750,U+5766,U+5954,U+5B95,U+5F8A,U+5F98,U+620C,U+621F,U+641C,U+66D9,U+676D,U+6775,U+67F5,U+694A,U+6A02,U+6A3A,U+6A80,U+6C23,U+6C72,U+6DCB,U+6FAA,U+707C,U+71C8,U+7422,U+74E2,U+7791,U+7825,U+7A14,U+7A1C,U+7C95,U+7FC1,U+82A5,U+82DB,U+8304,U+853D,U+8CD3,U+8DE8,U+8F0C,U+8F3F,U+9091,U+91C7,U+929A,U+98AF,U+9913}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.63.woff2)format("woff2");unicode-range:U+2CA-2CB,U+2229,U+2468,U+2669,U+266F,U+273F,U+4EC0,U+4F60,U+4FB6,U+5347,U+540E,U+543B,U+5B0C,U+5D4C,U+5F14,U+5F9E,U+6155,U+62D0,U+6602,U+6666,U+66F3,U+67A2,U+67CA,U+69CC,U+6D29,U+6D9B,U+6E3E,U+6F81,U+7109,U+73C0,U+73C2,U+7425,U+7435-7436,U+7525,U+7554,U+785D,U+786B,U+7AE3,U+7B94,U+7D18,U+81BF,U+8511,U+8549,U+9075,U+9640,U+98E2,U+9E9F,U+FF96}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.64.woff2)format("woff2");unicode-range:U+2467,U+4ECE,U+4ED4,U+4F91,U+4FAE,U+534D,U+53C9,U+54B3,U+586B,U+5944,U+5B78,U+5DF7,U+5F77,U+6101,U+6167-6168,U+61A4,U+62D9,U+698A,U+699B,U+6A59,U+6CC4,U+6E07,U+7099,U+75D2,U+77AD,U+7953,U+7984,U+7A92,U+7BAA,U+7DBB,U+817F,U+82AD,U+85E9,U+868A,U+8CAA,U+8F44,U+9017,U+907C,U+908A,U+92F3,U+936E,U+9435,U+978D,U+9838,U+9A28,U+9B41,U+9BA8,U+9C57,U+9EB9}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.65.woff2)format("woff2");unicode-range:U+B1,U+309B,U+4E5E,U+51F1,U+5506,U+55C5,U+58CC,U+59D1,U+5C51,U+5EF7,U+6284,U+62D7,U+6689,U+673D,U+6A2B,U+6A8E,U+6A9C,U+6D63,U+6DD1,U+70B8,U+7235,U+72DB,U+72F8,U+7560,U+7C9B,U+7CE7,U+7E1E,U+80AF,U+82EB,U+8463,U+8499,U+85DD,U+86EE,U+8A60,U+8A6E,U+8C79,U+8E87,U+8E8A,U+8F5F,U+9010,U+918D,U+9190,U+965B,U+97FB,U+9AB8,U+9BAD,U+9D3B,U+9D5C,U+9DFA,U+9E93}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.66.woff2)format("woff2");unicode-range:U+2020,U+3003,U+3231,U+4E9B,U+4F3D,U+4F47,U+51B6,U+51DC,U+53E1,U+5BC5,U+602F,U+60BC,U+61C9,U+633D,U+637B,U+6492,U+65FA,U+660F,U+66F0,U+6703,U+681E,U+6876,U+6893,U+6912,U+698E,U+6C7D,U+714C,U+7169,U+71D5,U+725F,U+72D7,U+745B,U+74DC,U+75E2,U+7891,U+7897,U+7DCB,U+810A,U+8218,U+8339,U+840E,U+852D,U+8823,U+8A0A,U+9089,U+919C,U+971C,U+9AD9,U+FF4A,U+FF5A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.67.woff2)format("woff2");unicode-range:U+2466,U+2600,U+4EAB,U+4FE3,U+4FF5,U+51A5,U+51F0,U+536F,U+53D4,U+53F1,U+54A5,U+559D,U+55E3,U+58FA,U+5962,U+59EA,U+5C16,U+5CEF,U+5D16,U+5F10,U+5FD6,U+6190,U+6216,U+634F,U+63BB,U+66D6,U+6756,U+6BC5,U+6E26,U+727D,U+731F,U+76F2,U+7729,U+7A7F,U+7AFF,U+7C9F,U+818F,U+8236,U+82B9,U+8338,U+85AA,U+88B4,U+8B33,U+904D,U+93A7,U+96CC,U+96EB,U+9AED,U+9B8E,U+FA11}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.68.woff2)format("woff2");unicode-range:U+251C,U+2523,U+4E14,U+545F,U+54BD,U+553E,U+55DC,U+56DA,U+589C,U+5B55,U+5BB5,U+5CE1,U+5DF4,U+5EB6,U+5EC9,U+6191,U+62F7,U+6357,U+64A5,U+6591,U+65BC,U+6897,U+6E1A,U+7063,U+711A,U+721B,U+722C,U+75B9,U+75D5,U+75FA,U+7766,U+7AAE,U+7B48,U+7B8B,U+7D21,U+7E55,U+7F75,U+842C,U+8910,U+8A63,U+8B39,U+8B5A,U+8CDC,U+8D74,U+907D,U+91E7,U+9306,U+96BC,U+98F4,U+9AC4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.69.woff2)format("woff2");unicode-range:U+2003,U+2312,U+266C,U+4F86,U+51EA,U+5243,U+5256,U+541F,U+5841,U+59DC,U+5DF3,U+601C,U+60E7,U+632B,U+638C,U+64AD,U+6881,U+697C,U+69CD,U+6C50,U+6D2A,U+6FC1,U+7027,U+7058,U+70F9,U+714E,U+7345,U+751A,U+760D,U+764C,U+77DB,U+7D79,U+7E8F,U+80CE,U+814E,U+81FC,U+8247,U+8278,U+85A9,U+8A03,U+90ED,U+9784,U+9801,U+984E,U+99B3,U+9BC9,U+9BDB,U+9BE8,U+9E78,U+FF6B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.70.woff2)format("woff2");unicode-range:U+266B,U+3006,U+5176,U+5197,U+51A8,U+51C6,U+52F2,U+5614,U+5875,U+5A2F,U+5B54,U+5CE0,U+5DBA,U+5DEB,U+5E63,U+5F59,U+5FCC,U+6068,U+6367,U+68B6,U+6A0B,U+6B64,U+6E15,U+6EBA,U+7272,U+72A0,U+7947,U+7985,U+79E6,U+79E9,U+7A3D,U+7A9F,U+7AAF,U+7B95,U+7F60,U+7F9E,U+7FE0,U+8098,U+80BA,U+8106,U+82D4,U+831C,U+87F9,U+8A1F,U+8ACF,U+90C1,U+920D,U+9756,U+FE43,U+FF94}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.71.woff2)format("woff2");unicode-range:U+AF,U+2465,U+2517,U+33A1,U+4F10,U+50C5,U+51B4,U+5384,U+5606,U+5BB0,U+5CAC,U+5EE3,U+618E,U+61F2,U+62C9,U+66AB,U+66F9,U+6816,U+6960,U+6B3E,U+6F20,U+7078,U+72D0,U+73ED,U+7AD9,U+7B1B,U+7BE4,U+7D62,U+7F51,U+80B4,U+80F4,U+8154,U+85FB,U+865C,U+8702,U+895F,U+8AED,U+8B90,U+8CED,U+8FBF,U+91D8,U+9418,U+9583,U+9591,U+9813,U+982C,U+9BD6,U+FF46,U+FF7F,U+FF88}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.72.woff2)format("woff2");unicode-range:U+4E91,U+508D,U+50E7,U+514E,U+51F6,U+5446,U+5504,U+584A,U+59A8,U+59D3,U+5A46,U+5AC9,U+6020,U+60A6,U+6148,U+621A,U+6234,U+64C1,U+6523,U+675C,U+67D1,U+6953,U+6CCC,U+6DF5,U+6E13,U+6F06,U+723A,U+7325,U+74E6,U+758E,U+75AB,U+75D9,U+7A40,U+8096,U+82FA,U+8587,U+8594,U+8A6B,U+8AB9,U+8B17,U+8B83,U+937C,U+963B,U+9673,U+96DB,U+9CE9,U+9F4B,U+FF67,U+FF82,U+FF93}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.73.woff2)format("woff2");unicode-range:U+221E,U+2514,U+51F9,U+5270,U+5449,U+5824,U+59A5,U+5A29,U+5D07,U+5E16,U+60E3,U+614C,U+6276,U+643E,U+64AB,U+6562,U+6681,U+670B,U+6734,U+67AF,U+6A3D,U+6B05,U+6DC0,U+6E4A,U+7259,U+732A,U+7409,U+78A7,U+7A6B,U+8015,U+809B,U+817A,U+830E,U+837B,U+85AB,U+8A23,U+8A93,U+8B00,U+8B19,U+8B21,U+8CBF,U+8FB0,U+901D,U+91B8,U+9320,U+932C,U+9688,U+96F6,U+9DF2,U+FF6A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.74.woff2)format("woff2");unicode-range:U+2002,U+2025,U+4F8D,U+51E1,U+51F8,U+5507,U+5598,U+58F1,U+5983,U+59AC,U+5C3C,U+5DE7,U+5E7D,U+5ECA,U+5F61,U+606D,U+60F9,U+636E,U+64EC,U+67DA,U+67FF,U+6813,U+68F2,U+693F,U+6B6A,U+6BBB,U+6EF4,U+7092,U+717D,U+7261,U+73C8,U+7432,U+7483,U+76FE,U+7709,U+78D0,U+81A3,U+81B3,U+82AF,U+8305,U+8309,U+8870,U+88FE,U+8CD1,U+8D66,U+906E,U+971E,U+9812,U+FF79,U+FF90}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.75.woff2)format("woff2");unicode-range:U+2464,U+2501,U+2640,U+2642,U+339D,U+4F0E,U+5091,U+50B5,U+5132,U+51CC,U+558B,U+55AA,U+585E,U+5BEE,U+5DFE,U+60B6,U+62B9,U+6349,U+6566,U+6590,U+6842,U+689D,U+6A58,U+6C70,U+6FF1,U+7815,U+7881,U+7AAA,U+7BC7,U+7DEF,U+7FA8,U+8017,U+8036,U+8061,U+821F,U+8429,U+8CE0,U+8E74,U+9019,U+90CA,U+9162,U+932F,U+93AE,U+9644,U+990C,U+9CF3,U+FF56,U+FF6E,U+FF7E,U+FF85}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.76.woff2)format("woff2");unicode-range:U+2266-2267,U+4F2F,U+5208,U+5451,U+546A,U+5589,U+576A,U+5815,U+5A9A,U+5B9B,U+5C3A,U+5EFB,U+5FAA,U+6109,U+6643,U+6652,U+695A,U+69FD,U+6B86,U+6BB4,U+6DAF,U+7089,U+70CF,U+7A00,U+7A4F,U+7B39,U+7D33,U+80E1,U+828B,U+82A6,U+86CD,U+8C8C,U+8CCA,U+8DF3,U+9077,U+9175,U+91DC,U+925B,U+9262,U+9271,U+92ED,U+9855,U+9905,U+9D28,U+FF3F,U+FF58,U+FF68,U+FF6D,U+FF9C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.77.woff2)format("woff2");unicode-range:U+2207,U+25EF,U+309C,U+4E4F,U+5146,U+51DD,U+5351,U+540A,U+5629,U+5EB5,U+5F04,U+5F13,U+60DC,U+6212,U+63B4,U+642C,U+6627,U+66A6,U+66C7,U+66FD,U+674E,U+6B96,U+6C4E,U+6DF3,U+6E67,U+6F84,U+72FC,U+733F,U+7C97,U+7DB1,U+7E4D,U+816B,U+82D1,U+84CB,U+854E,U+8607,U+86C7,U+871C,U+8776,U+8A89,U+8FC4,U+91A4,U+9285,U+9685,U+9903,U+9B31,U+9F13,U+FF42,U+FF74,U+FF91}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.78.woff2)format("woff2");unicode-range:U+4E32,U+51DB,U+53A8,U+53EA,U+5609,U+5674,U+5A92,U+5E7E,U+6115,U+611A,U+62CC,U+62ED,U+63C9,U+64B9,U+64E6,U+65CB,U+6606,U+6731,U+683D,U+6AFB,U+7460,U+771E,U+78EF,U+7B26,U+7B51,U+7CDE,U+7D10,U+7D2F,U+7D46,U+80DE,U+819C,U+84B2,U+85CD,U+865A,U+8ECC,U+9022,U+90B8,U+9192,U+9675,U+96B7,U+99FF,U+FF44,U+FF55,U+FF6C,U+FF73,U+FF75,U+FF86,U+FF8D,U+FF92,U+FFE3}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.79.woff2)format("woff2");unicode-range:U+25B3,U+30F5,U+4EAE,U+4F46,U+4F51,U+5203,U+52FF,U+55A7,U+564C,U+565B,U+57F9,U+5805,U+5B64,U+5E06,U+5F70,U+5F90,U+60E8,U+6182,U+62F3,U+62FE,U+63AA,U+64A4,U+65D7,U+673A,U+6851,U+68CB,U+68DF,U+6D1E,U+6E58,U+6E9D,U+77B3,U+7832,U+7C3F,U+7DB4,U+7F70,U+80AA,U+80C6,U+8105,U+819D,U+8276,U+8679,U+8986,U+8C9D,U+8FC5,U+916C,U+9665,U+9699,U+96C0,U+9A19,U+FF8B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.80.woff2)format("woff2");unicode-range:U+2463,U+25A1,U+4EF0,U+5076,U+5098,U+51FD,U+5302,U+5448,U+54C9,U+570B,U+583A,U+5893,U+58A8,U+58EE,U+5949,U+5BDB,U+5F26,U+5F81,U+6052,U+6170,U+61C7,U+631F,U+635C,U+664B,U+69FB,U+6F01,U+7070,U+722A,U+745E,U+755C,U+76C6,U+78C1,U+79E4,U+7BB8,U+7D0B,U+81A8,U+82D7,U+8B5C,U+8F14,U+8FB1,U+8FBB,U+9283,U+9298,U+9A30,U+FF03,U+FF50,U+FF59,U+FF7B,U+FF8E-FF8F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.81.woff2)format("woff2");unicode-range:U+2010,U+2502,U+25B6,U+4F3A,U+514B,U+5265,U+52C3,U+5339,U+53EC,U+54C0,U+55B0,U+5854,U+5B8F,U+5CB3,U+5E84,U+60DA,U+6247,U+6249,U+628A,U+62CD,U+65AC,U+6838,U+690E,U+6CF0,U+6F02,U+6F2C,U+6F70,U+708A,U+7434,U+75BE,U+77EF,U+7C60,U+7C98,U+7D1B,U+7E2B,U+80A5,U+81E3,U+820C,U+8210,U+8475,U+862D,U+8650,U+8997,U+906D,U+91C8,U+9700,U+9727,U+9DF9,U+FF3A,U+FF9A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.82.woff2)format("woff2");unicode-range:U+2103,U+5049,U+52B1,U+5320,U+5553,U+572D,U+58C7,U+5B5D,U+5BC2,U+5DE3,U+5E61,U+5F80,U+61A9,U+67D0,U+67F4,U+6C88,U+6CA1,U+6CE5,U+6D78,U+6E9C,U+6F54,U+731B,U+73B2,U+74A7,U+74F6,U+75E9,U+7B20,U+7C8B,U+7F72,U+809D,U+8108,U+82B3,U+82BD,U+84B8,U+84C4,U+88C2,U+8AE6,U+8EF8,U+902E,U+9065,U+9326,U+935B,U+938C,U+9676,U+9694,U+96F7,U+9ED9,U+FF48,U+FF4C,U+FF81}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.83.woff2)format("woff2");unicode-range:U+2500,U+3008-3009,U+4EAD,U+4F0F,U+4FCA,U+53EB,U+543E,U+57A2,U+5CF0,U+5E8F,U+5FE0,U+61B2,U+62D8,U+6442,U+64B2,U+6589,U+659C,U+67F1,U+68C4,U+6CB8,U+6D12,U+6DE1,U+6FE1,U+70C8,U+723D,U+73E0,U+7656,U+773A,U+7948,U+7B87,U+7C92,U+7D3A,U+7E1B,U+7E4A,U+819A,U+8358,U+83C5,U+84BC,U+864E,U+8912,U+8C9E,U+8D05,U+92FC,U+9396,U+98FD,U+99D2,U+FF64,U+FF7A,U+FF83}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.84.woff2)format("woff2");unicode-range:U+3014-3015,U+4E3C,U+5036,U+5075,U+533F,U+53E9,U+5531,U+5642,U+5984,U+59E6,U+5A01,U+5B6B,U+5C0B,U+5F25,U+6069,U+60A0,U+614E,U+62B5,U+62D2-62D3,U+6597,U+660C,U+674F,U+67CF,U+6841,U+6905,U+6CF3,U+6D32,U+6D69,U+6F64,U+716E,U+7761,U+7B52,U+7BE0,U+7DBF,U+7DE9,U+7F36,U+81D3,U+8302,U+8389,U+846C,U+84EE,U+8A69,U+9038,U+9D8F,U+FF47,U+FF4B,U+FF76,U+FF9B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.85.woff2)format("woff2");unicode-range:U+25C7,U+3007,U+504F,U+507D,U+51A0,U+52A3,U+5410,U+5510,U+559A,U+5782,U+582A,U+5C0A,U+5C3F,U+5C48,U+5F6B,U+6176,U+622F,U+6279,U+62BD,U+62DD,U+65ED,U+67B6,U+6817,U+6850,U+6D6A,U+6DEB,U+6EA2,U+6EDD,U+6F5C,U+72E9,U+73A9,U+7573,U+76BF,U+7950,U+7956,U+7F8A,U+7FFC,U+80A2,U+80C3,U+83CA,U+8A02,U+8A13,U+8DF5,U+9375,U+983B,U+99B4,U+FF4E,U+FF71,U+FF89,U+FF97}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.86.woff2)format("woff2");unicode-range:U+24,U+2022,U+2212,U+221F,U+2665,U+4ECF,U+5100,U+51CD,U+52D8,U+5378,U+53F6,U+574A,U+5982,U+5996,U+5C1A,U+5E1D,U+5F84,U+609F,U+61A7,U+61F8,U+6398,U+63EE,U+6676,U+6691,U+6EB6,U+7126,U+71E5,U+7687,U+7965,U+7D17,U+80A1,U+8107,U+8266,U+85A6,U+8987,U+8CA2,U+8CAB,U+8E0A,U+9042,U+95C7,U+9810,U+9867,U+98FC,U+FF52-FF54,U+FF61,U+FF77,U+FF98-FF99}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.87.woff2)format("woff2");unicode-range:U+B0,U+226A,U+2462,U+4E39,U+4FC3,U+4FD7,U+50BE,U+50DA,U+5200,U+5211,U+54F2,U+5618,U+596A,U+5B22,U+5BB4,U+5D50,U+60A3,U+63FA,U+658E,U+65E8,U+6669,U+6795,U+679D,U+67A0,U+6B3A,U+6E09,U+757F,U+7CD6,U+7DBE,U+7FFB,U+83CC,U+83F1,U+840C,U+845B,U+8846,U+8972,U+8A34,U+8A50,U+8A87,U+8EDF,U+8FF0,U+90A6,U+9154,U+95A3,U+9663,U+9686,U+96C7,U+FF3C,U+FF7C,U+FF8A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.88.woff2)format("woff2");unicode-range:U+25BD,U+4E59,U+4EC1,U+4FF3,U+515A,U+518A,U+525B,U+5375,U+552F,U+57A3,U+5B9C,U+5C3D,U+5E3D,U+5E7B,U+5F0A,U+6094,U+6458,U+654F,U+67F3,U+6B8A,U+6BD2,U+6C37,U+6CE1,U+6E56,U+6E7F,U+6ED1,U+6EDE,U+6F0F,U+70AD,U+7267,U+7363,U+786C,U+7A42,U+7DB2,U+7F85,U+8178,U+829D,U+8896,U+8C5A,U+8CB0,U+8CE2,U+8ED2,U+9047,U+9177,U+970A,U+9EA6,U+FF1B,U+FF31,U+FF39,U+FF80}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.89.woff2)format("woff2");unicode-range:U+A5,U+4E80,U+4F34,U+4F73,U+4F75,U+511F,U+5192,U+52AA,U+53C8,U+570F,U+57CB,U+596E,U+5D8B,U+5F66,U+5FD9,U+62DB,U+62F6,U+6328,U+633F,U+63A7,U+6469,U+6BBF,U+6C41,U+6C57,U+6D44,U+6DBC,U+706F,U+72C2,U+72ED,U+7551,U+75F4,U+7949,U+7E26,U+7FD4,U+8150,U+8AF8,U+8B0E,U+8B72,U+8CA7,U+934B,U+9A0E,U+9A12,U+9B42,U+FF41,U+FF43,U+FF45,U+FF49,U+FF4F,U+FF62-FF63}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.90.woff2)format("woff2");unicode-range:U+4E18,U+4FB5,U+5104,U+52C7,U+5353,U+5374,U+53E5,U+587E,U+594F,U+5A20,U+5DE1,U+5F18,U+5FCD,U+6291,U+62AB,U+6355,U+6392,U+63DA,U+63E1,U+656C,U+6687,U+68B0-68B1,U+68D2,U+68DA,U+6B27,U+6CBC,U+7159,U+7344,U+73CD,U+76DF,U+790E,U+7CF8,U+8102,U+88C1,U+8AA0,U+8E0F,U+9178,U+92AD,U+9670,U+96C5,U+9CF4,U+9DB4,U+FF3E,U+FF6F,U+FF72,U+FF78,U+FF7D,U+FF84,U+FF8C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.91.woff2)format("woff2");unicode-range:U+60,U+2200,U+226B,U+2461,U+517C,U+526F,U+5800,U+5B97,U+5BF8,U+5C01,U+5D29,U+5E4C,U+5E81,U+6065,U+61D0,U+667A,U+6696,U+6843,U+6C99,U+6D99,U+6EC5,U+6F22,U+6F6E,U+6FA4,U+6FEF,U+71C3,U+72D9,U+7384,U+78E8,U+7A1A,U+7A32,U+7A3C,U+7ADC,U+7CA7,U+7D2B,U+7DAD,U+7E4B,U+80A9,U+8170,U+81ED,U+820E,U+8A17,U+8AFE,U+90AA,U+914E,U+963F,U+99C4,U+9EBA,U+9F3B,U+FF38}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.92.woff2)format("woff2");unicode-range:U+2460,U+4E5F,U+4E7E,U+4ED9,U+501F,U+502B,U+5968,U+5974,U+5AC1,U+5B99,U+5BA3,U+5BE7,U+5BE9,U+5C64,U+5CB8,U+5EC3,U+5F1F,U+616E,U+6297,U+62E0,U+62EC,U+6368,U+642D,U+65E6,U+6717,U+676F,U+6B04,U+732E,U+7652,U+76CA,U+76D7,U+7802,U+7E70,U+7F6A,U+8133,U+81E8,U+866B,U+878D,U+88F8,U+8A5E,U+8CDB,U+8D08,U+907A,U+90E1,U+96F2,U+9F8D,U+FF35,U+FF37,U+FF40,U+FF9D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.93.woff2)format("woff2");unicode-range:U+21D2,U+25CE,U+300A-300B,U+4E89,U+4E9C,U+4EA1,U+5263,U+53CC,U+5426,U+5869,U+5947,U+598A,U+5999,U+5E55,U+5E72,U+5E79,U+5FAE,U+5FB9,U+602A,U+6163,U+624D,U+6749,U+6C5A,U+6CBF,U+6D45,U+6DFB,U+6E7E,U+708E,U+725B,U+7763,U+79C0,U+7BC4,U+7C89,U+7E01,U+7E2E,U+8010,U+8033,U+8C6A,U+8CC3,U+8F1D,U+8F9B,U+8FB2,U+907F,U+90F7,U+9707,U+9818,U+9B3C,U+FF0A,U+FF4D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.94.woff2)format("woff2");unicode-range:U+2015,U+2190,U+4E43,U+5019,U+5247,U+52E7,U+5438,U+54B2,U+55AB,U+57F7,U+5BD2,U+5E8A,U+5EF6,U+6016,U+60B2,U+6162,U+6319,U+6551,U+6607,U+66B4,U+675F,U+67D4,U+6B20,U+6B53,U+6CE3,U+719F,U+75B2,U+770B,U+7720,U+77AC,U+79D2,U+7AF9,U+7D05,U+7DCA,U+8056,U+80F8,U+81F3,U+8352,U+885D,U+8A70,U+8AA4,U+8CBC,U+900F,U+9084,U+91E3,U+9451,U+96C4,U+99C6,U+9AD4,U+FF70}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.95.woff2)format("woff2");unicode-range:U+2193,U+25B2,U+4E4B,U+516D,U+51C4,U+529F,U+52C9,U+5360,U+5442,U+5857,U+5915,U+59EB,U+5A9B,U+5C3B,U+6012,U+61B6,U+62B1,U+6311,U+6577,U+65E2,U+65EC,U+6613,U+6790,U+6CB9,U+7372,U+76AE,U+7D5E,U+7FCC,U+88AB,U+88D5,U+8CAF,U+8DDD,U+8ECD,U+8F38,U+8F9E,U+8FEB,U+9063,U+90F5,U+93E1,U+968A,U+968F,U+98FE,U+9EC4,U+FF1D,U+FF27,U+FF2A,U+FF36,U+FF3B,U+FF3D,U+FFE5}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.96.woff2)format("woff2");unicode-range:U+4E03,U+4F38,U+50B7,U+5264,U+5348,U+5371,U+585A,U+58CA,U+5951,U+59B9,U+59D4,U+5B98,U+5F8B,U+6388,U+64CD,U+65E7,U+6803,U+6B6F,U+6D66,U+6E0B,U+6ECB,U+6FC3,U+72AC,U+773C,U+77E2,U+7968,U+7A74,U+7DBA,U+7DD1,U+7E3E,U+808C,U+811A,U+8179,U+8239,U+8584,U+8A0E,U+8A72,U+8B66,U+8C46,U+8F29,U+90A3,U+9234,U+96F0,U+9769,U+9774,U+9AA8,U+FF26,U+FF28,U+FF9E-FF9F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.97.woff2)format("woff2");unicode-range:U+7E,U+B4,U+25C6,U+2661,U+4E92,U+4EEE,U+4FFA,U+5144,U+5237,U+5287,U+52B4,U+58C1,U+5BFF,U+5C04,U+5C06,U+5E95,U+5F31,U+5F93,U+63C3,U+640D,U+6557,U+6614,U+662F,U+67D3,U+690D,U+6BBA,U+6E6F,U+72AF,U+732B,U+7518,U+7AE0,U+7AE5,U+7AF6,U+822A,U+89E6,U+8A3A,U+8A98,U+8CB8,U+8DE1,U+8E8D,U+95D8,U+961C,U+96A3,U+96EA,U+9BAE,U+FF20,U+FF22,U+FF29,U+FF2B-FF2C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.98.woff2)format("woff2");unicode-range:U+25CB,U+4E71,U+4F59,U+50D5,U+520A,U+5217,U+5230,U+523A-523B,U+541B,U+5439,U+5747,U+59C9,U+5BDF,U+5C31,U+5DE8,U+5E7C,U+5F69,U+6050,U+60D1,U+63CF,U+663C,U+67C4,U+6885,U+6C38,U+6D6E,U+6DB2,U+6DF7,U+6E2C,U+6F5F,U+7532,U+76E3-76E4,U+7701,U+793C,U+79F0,U+7A93,U+7D00,U+7DE0,U+7E54,U+8328,U+8840,U+969C,U+96E8,U+9811,U+9AEA,U+9B5A,U+FF24,U+FF2E,U+FF57}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.99.woff2)format("woff2");unicode-range:U+2191,U+505C,U+52E4,U+5305,U+535A,U+56E0,U+59BB,U+5ACC,U+5B09,U+5B87,U+5C90,U+5DF1,U+5E2D,U+5E33,U+5F3E,U+6298,U+6383,U+653B,U+6697,U+6804,U+6A39,U+6CCA,U+6E90,U+6F2B,U+702C,U+7206,U+7236,U+7559,U+7565,U+7591,U+75C7,U+75DB,U+7B4B,U+7BB1,U+7D99,U+7FBD,U+8131,U+885B,U+8B1D,U+8FF7,U+9003,U+9045,U+96A0,U+9732,U+990A,U+99D0,U+9E97,U+9F62,U+FF25,U+FF2D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.100.woff2)format("woff2");unicode-range:U+4E08,U+4F9D,U+5012,U+514D,U+51B7,U+5275,U+53CA,U+53F8,U+5584,U+57FC,U+5B9D,U+5BFA,U+5C3E,U+5F01,U+5FB4,U+5FD7,U+606F,U+62E1,U+6563,U+6674,U+6CB3,U+6D3E,U+6D74,U+6E1B,U+6E2F,U+718A,U+7247,U+79D8,U+7D14,U+7D66,U+7D71,U+7DF4,U+7E41,U+80CC,U+8155,U+83D3,U+8A95,U+8AB2,U+8AD6,U+8CA1,U+9000,U+9006,U+9678,U+97D3,U+9808,U+98EF,U+9A5A,U+9B45,U+FF23,U+FF30}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.101.woff2)format("woff2");unicode-range:U+25BC,U+3012,U+4EF2,U+4F0A,U+516B,U+5373,U+539A,U+53B3,U+559C,U+56F0,U+5727,U+5742,U+5965,U+59FF,U+5BC6,U+5DFB,U+5E45,U+5EAD,U+5FB3,U+6211,U+6253,U+639B,U+63A8,U+6545,U+6575,U+6628,U+672D,U+68A8,U+6BDB,U+6D25,U+707D,U+767E,U+7834,U+7B46,U+7BC9,U+8074,U+82E6,U+8349,U+8A2A,U+8D70,U+8DA3,U+8FCE,U+91CC,U+967D,U+97FF,U+9996,U+FF1C,U+FF2F,U+FF32,U+FF34}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.102.woff2)format("woff2");unicode-range:U+3D,U+5E,U+25CF,U+4E0E,U+4E5D,U+4E73,U+4E94,U+4F3C,U+5009,U+5145,U+51AC,U+5238,U+524A,U+53F3,U+547C,U+5802,U+5922,U+5A66,U+5C0E,U+5DE6,U+5FD8,U+5FEB,U+6797,U+685C,U+6B7B,U+6C5F-6C60,U+6CC9,U+6CE2,U+6D17,U+6E21,U+7167,U+7642,U+76DB,U+8001,U+821E,U+8857,U+89D2,U+8B1B,U+8B70,U+8CB4,U+8CDE,U+8F03,U+8F2A,U+968E,U+9B54,U+9E7F,U+9EBB,U+FF05,U+FF33}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.103.woff2)format("woff2");unicode-range:U+500D,U+5074,U+50CD,U+5175,U+52E2,U+5352,U+5354,U+53F2,U+5409,U+56FA,U+5A18,U+5B88,U+5BDD,U+5CA9,U+5F92,U+5FA9,U+60A9,U+623F,U+6483,U+653F,U+666F,U+66AE,U+66F2,U+6A21,U+6B66,U+6BCD,U+6D5C,U+796D,U+7A4D,U+7AEF,U+7B56,U+7B97,U+7C4D,U+7E04,U+7FA9,U+8377,U+83DC,U+83EF,U+8535,U+8863,U+88CF,U+88DC,U+8907,U+8ACB,U+90CE,U+91DD,U+FF0B,U+FF0D,U+FF19,U+FF65}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.104.woff2)format("woff2");unicode-range:U+4E01,U+4E21,U+4E38,U+52A9,U+547D,U+592E,U+5931,U+5B63,U+5C40,U+5DDE,U+5E78,U+5EFA,U+5FA1,U+604B,U+6075,U+62C5,U+632F,U+6A19,U+6C0F,U+6C11,U+6C96,U+6E05,U+70BA,U+71B1,U+7387,U+7403,U+75C5,U+77ED,U+795D,U+7B54,U+7CBE,U+7D19,U+7FA4,U+8089,U+81F4,U+8208,U+8336,U+8457,U+8A33,U+8C4A,U+8CA0,U+8CA8,U+8CC0,U+9014,U+964D,U+9803,U+983C,U+98DB,U+FF17,U+FF21}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.105.woff2)format("woff2");unicode-range:U+25,U+25A0,U+4E26,U+4F4E,U+5341,U+56F2,U+5BBF,U+5C45,U+5C55,U+5C5E,U+5DEE,U+5E9C,U+5F7C,U+6255,U+627F,U+62BC,U+65CF,U+661F,U+666E,U+66DC,U+67FB,U+6975,U+6A4B,U+6B32,U+6DF1,U+6E29,U+6FC0,U+738B,U+7686,U+7A76,U+7A81,U+7C73,U+7D75,U+7DD2,U+82E5,U+82F1,U+85AC,U+888B,U+899A,U+8A31,U+8A8C,U+8AB0,U+8B58,U+904A,U+9060,U+9280,U+95B2,U+984D,U+9CE5,U+FF18}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.106.woff2)format("woff2");unicode-range:U+30F6,U+50AC,U+5178,U+51E6,U+5224,U+52DD,U+5883,U+5897,U+590F,U+5A5A,U+5BB3,U+5C65,U+5E03,U+5E2B,U+5E30,U+5EB7,U+6271,U+63F4,U+64AE,U+6574,U+672B,U+679A,U+6A29-6A2A,U+6CA2,U+6CC1,U+6D0B,U+713C,U+74B0,U+7981,U+7A0B,U+7BC0,U+7D1A,U+7D61,U+7FD2,U+822C,U+8996,U+89AA,U+8CAC,U+8CBB,U+8D77,U+8DEF,U+9020,U+9152,U+9244,U+9662,U+967A,U+96E3,U+9759,U+FF16}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.107.woff2)format("woff2");unicode-range:U+23,U+3C,U+2192,U+4E45,U+4EFB,U+4F50,U+4F8B,U+4FC2,U+5024,U+5150,U+5272,U+5370,U+53BB,U+542B,U+56DB,U+56E3,U+57CE,U+5BC4,U+5BCC,U+5F71,U+60AA,U+6238,U+6280,U+629C,U+6539,U+66FF,U+670D,U+677E-677F,U+6839,U+69CB,U+6B4C,U+6BB5,U+6E96,U+6F14,U+72EC,U+7389,U+7814,U+79CB,U+79D1,U+79FB,U+7A0E,U+7D0D,U+85E4,U+8D64,U+9632,U+96E2,U+9805,U+99AC,U+FF1E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.108.woff2)format("woff2");unicode-range:U+2605-2606,U+301C,U+4E57,U+4FEE,U+5065,U+52DF,U+533B,U+5357,U+57DF,U+58EB,U+58F0,U+591C,U+592A-592B,U+5948,U+5B85,U+5D0E,U+5EA7,U+5FF5,U+6025,U+63A1,U+63A5,U+63DB,U+643A,U+65BD,U+671D,U+68EE,U+6982,U+6B73,U+6BD4,U+6D88,U+7570,U+7B11,U+7D76,U+8077,U+8217,U+8C37,U+8C61,U+8CC7,U+8D85,U+901F,U+962A,U+9802,U+9806,U+9854,U+98F2,U+9928,U+99C5,U+9ED2}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.109.woff2)format("woff2");unicode-range:U+266A,U+4F11,U+533A,U+5343,U+534A,U+53CD,U+5404,U+56F3,U+5B57-5B58,U+5BAE,U+5C4A,U+5E0C,U+5E2F,U+5EAB,U+5F35,U+5F79,U+614B,U+6226,U+629E,U+65C5,U+6625,U+6751,U+6821,U+6B69,U+6B8B,U+6BCE,U+6C42,U+706B,U+7C21,U+7CFB,U+805E,U+80B2,U+82B8,U+843D,U+8853,U+88C5,U+8A3C,U+8A66,U+8D8A,U+8FBA,U+9069,U+91CF,U+9752,U+975E,U+9999,U+FF0F-FF10,U+FF14-FF15}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.110.woff2)format("woff2");unicode-range:U+40,U+4E86,U+4E95,U+4F01,U+4F1D,U+4FBF,U+5099,U+5171,U+5177,U+53CB,U+53CE,U+53F0,U+5668,U+5712,U+5BA4,U+5CA1,U+5F85,U+60F3,U+653E,U+65AD,U+65E9,U+6620,U+6750,U+6761,U+6B62,U+6B74,U+6E08,U+6E80,U+7248,U+7531,U+7533,U+753A,U+77F3,U+798F,U+7F6E,U+8449,U+88FD,U+89B3,U+8A55,U+8AC7,U+8B77,U+8DB3,U+8EFD,U+8FD4,U+9031-9032,U+9580,U+9589,U+96D1,U+985E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.111.woff2)format("woff2");unicode-range:U+2B,U+D7,U+300E-300F,U+4E07,U+4E8C,U+512A,U+5149,U+518D,U+5236,U+52B9,U+52D9,U+5468,U+578B,U+57FA,U+5B8C,U+5BA2,U+5C02,U+5DE5,U+5F37,U+5F62,U+623B,U+63D0,U+652F,U+672A,U+6848,U+6D41,U+7136,U+7537,U+754C,U+76F4,U+79C1,U+7BA1,U+7D44,U+7D4C,U+7DCF,U+7DDA,U+7DE8,U+82B1,U+897F,U+8CA9,U+8CFC,U+904E,U+9664,U+982D,U+9858,U+98A8,U+9A13,U+FF13,U+FF5C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.112.woff2)format("woff2");unicode-range:U+4E16,U+4E3B,U+4EA4,U+4EE4,U+4F4D,U+4F4F,U+4F55,U+4F9B,U+5317,U+5358,U+53C2,U+53E4,U+548C,U+571F,U+59CB,U+5CF6,U+5E38,U+63A2,U+63B2,U+6559,U+662D,U+679C,U+6C7A,U+72B6,U+7523,U+767D,U+770C,U+7A2E,U+7A3F,U+7A7A,U+7B2C,U+7B49,U+7D20,U+7D42,U+8003,U+8272,U+8A08,U+8AAC,U+8CB7,U+8EAB,U+8EE2,U+9054-9055,U+90FD,U+914D,U+91CD,U+969B,U+97F3,U+984C,U+FF06}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.113.woff2)format("woff2");unicode-range:U+26,U+5F,U+2026,U+203B,U+4E09,U+4EAC,U+4ED5,U+4FA1,U+5143,U+5199,U+5207,U+539F,U+53E3,U+53F7,U+5411,U+5473,U+5546,U+55B6,U+5929,U+597D,U+5BB9,U+5C11,U+5C4B,U+5DDD,U+5F97,U+5FC5,U+6295,U+6301,U+6307,U+671B,U+76F8,U+78BA,U+795E,U+7D30,U+7D39,U+7D9A,U+89E3,U+8A00,U+8A73,U+8A8D,U+8A9E,U+8AAD,U+8ABF,U+8CEA,U+8ECA,U+8FFD,U+904B,U+9650,U+FF11-FF12}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.114.woff2)format("woff2");unicode-range:U+3E,U+3005,U+4E0D,U+4E88,U+4ECB,U+4EE3,U+4EF6,U+4FDD,U+4FE1,U+500B,U+50CF,U+5186,U+5316,U+53D7,U+540C,U+544A,U+54E1,U+5728,U+58F2,U+5973,U+5B89,U+5C71,U+5E02,U+5E97,U+5F15,U+5FC3,U+5FDC,U+601D,U+611B,U+611F,U+671F,U+6728,U+6765,U+683C,U+6B21,U+6CE8,U+6D3B,U+6D77,U+7530,U+7740,U+7ACB,U+7D50,U+826F,U+8F09,U+8FBC,U+9001,U+9053,U+91CE,U+9762,U+98DF}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.115.woff2)format("woff2");unicode-range:U+7C,U+3080,U+4EE5,U+5148,U+516C,U+521D,U+5225,U+529B,U+52A0,U+53EF,U+56DE,U+56FD,U+5909,U+591A,U+5B66,U+5B9F,U+5BB6,U+5BFE,U+5E73,U+5E83,U+5EA6,U+5F53,U+6027,U+610F,U+6210,U+6240,U+660E,U+66F4,U+66F8,U+6709,U+6771,U+697D,U+69D8,U+6A5F,U+6C34,U+6CBB,U+73FE,U+756A,U+7684,U+771F,U+793A,U+7F8E,U+898F,U+8A2D,U+8A71,U+8FD1,U+9078,U+9577,U+96FB,U+FF5E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.116.woff2)format("woff2");unicode-range:U+A9,U+3010-3011,U+30E2,U+4E0B,U+4ECA,U+4ED6,U+4ED8,U+4F53,U+4F5C,U+4F7F,U+53D6,U+540D,U+54C1,U+5730,U+5916,U+5B50,U+5C0F,U+5F8C,U+624B,U+6570,U+6587,U+6599,U+691C,U+696D,U+6CD5,U+7269,U+7279,U+7406,U+767A-767B,U+77E5,U+7D04,U+7D22,U+8005,U+80FD,U+81EA,U+8868,U+8981,U+89A7,U+901A,U+9023,U+90E8,U+91D1,U+9332,U+958B,U+96C6,U+9AD8,U+FF1A,U+FF1F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.117.woff2)format("woff2");unicode-range:U+4E,U+A0,U+3000,U+300C-300D,U+4E00,U+4E0A,U+4E2D,U+4E8B,U+4EBA,U+4F1A,U+5165,U+5168,U+5185,U+51FA,U+5206,U+5229,U+524D,U+52D5,U+5408,U+554F,U+5831,U+5834,U+5927,U+5B9A,U+5E74,U+5F0F,U+60C5,U+65B0,U+65B9,U+6642,U+6700,U+672C,U+682A,U+6B63,U+6C17,U+7121,U+751F,U+7528,U+753B,U+76EE,U+793E,U+884C,U+898B,U+8A18,U+9593,U+95A2,U+FF01,U+FF08-FF09}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.118.woff2)format("woff2");unicode-range:U+21-22,U+27-2A,U+2C-3B,U+3F,U+41-4D,U+4F-5D,U+61-7B,U+7D,U+AB,U+AE,U+B2-B3,U+B7,U+BB,U+C9,U+CD,U+D6,U+D8,U+DC,U+E0-E5,U+E7-ED,U+EF,U+F1-F4,U+F6,U+F8,U+FA,U+FC-FD,U+103,U+14D,U+1B0,U+300-301,U+1EBF,U+1EC7,U+2013-2014,U+201C-201D,U+2039-203A,U+203C,U+2048-2049,U+2113,U+2122,U+65E5,U+6708,U+70B9}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.119.woff2)format("woff2");unicode-range:U+20,U+2027,U+3001-3002,U+3041-307F,U+3081-308F,U+3091-3093,U+3099-309A,U+309D-309E,U+30A1-30E1,U+30E3-30ED,U+30EF-30F0,U+30F2-30F4,U+30FB-30FE,U+FF0C,U+FF0E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6omwqRfTHxT624.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6okQqRfTHxT624.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6onwqRfTHxTw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.0.woff2)format("woff2");unicode-range:U+25EE8,U+25F23,U+25F5C,U+25FD4,U+25FE0,U+25FFB,U+2600C,U+26017,U+26060,U+260ED,U+26222,U+2626A,U+26270,U+26286,U+2634C,U+26402,U+2667E,U+266B0,U+2671D,U+268DD,U+268EA,U+26951,U+2696F,U+26999,U+269DD,U+26A1E,U+26A58,U+26A8C,U+26AB7,U+26AFF,U+26C29,U+26C73,U+26C9E,U+26CDD,U+26E40,U+26E65,U+26F94,U+26FF6-26FF8,U+270F4,U+2710D,U+27139,U+273DA-273DB,U+273FE,U+27410,U+27449,U+27614-27615,U+27631,U+27684,U+27693,U+2770E,U+27723,U+27752,U+278B2,U+27985,U+279B4,U+27A84,U+27BB3,U+27BBE,U+27BC7,U+27C3C,U+27CB8,U+27D73,U+27DA0,U+27E10,U+27EAF,U+27FB7,U+2808A,U+280BB,U+28277,U+28282,U+282F3,U+283CD,U+2840C,U+28455,U+284DC,U+2856B,U+285C8-285C9,U+286D7,U+286FA,U+28946,U+28949,U+2896B,U+28987-28988,U+289BA-289BB,U+28A1E,U+28A29,U+28A43,U+28A71,U+28A99,U+28ACD,U+28ADD,U+28AE4,U+28BC1,U+28BEF,U+28CDD,U+28D10,U+28D71,U+28DFB,U+28E0F,U+28E17,U+28E1F,U+28E36,U+28E89,U+28EEB,U+28EF6,U+28F32,U+28FF8,U+292A0,U+292B1,U+29490,U+295CF,U+2967F,U+296F0,U+29719,U+29750,U+29810,U+298C6,U+29A72,U+29D4B,U+29DDB,U+29E15,U+29E3D,U+29E49,U+29E8A,U+29EC4,U+29EDB,U+29EE9,U+29FCE,U+29FD7,U+2A01A,U+2A02F,U+2A082,U+2A0F9,U+2A190,U+2A2B2,U+2A38C,U+2A437,U+2A5F1,U+2A602,U+2A61A,U+2A6B2,U+2A9E6,U+2B746,U+2B751,U+2B753,U+2B75A,U+2B75C,U+2B765,U+2B776-2B777,U+2B77C,U+2B782,U+2B789,U+2B78B,U+2B78E,U+2B794,U+2B7AC,U+2B7AF,U+2B7BD,U+2B7C9,U+2B7CF,U+2B7D2,U+2B7D8,U+2B7F0,U+2B80D,U+2B817,U+2B81A,U+2D544,U+2E278,U+2E569,U+2E6EA,U+2F804,U+2F80F,U+2F815,U+2F818,U+2F81A,U+2F822,U+2F828,U+2F82C,U+2F833,U+2F83F,U+2F846,U+2F852,U+2F862,U+2F86D,U+2F873,U+2F877,U+2F884,U+2F899-2F89A,U+2F8A6,U+2F8AC,U+2F8B2,U+2F8B6,U+2F8D3,U+2F8DB-2F8DC,U+2F8E1,U+2F8E5,U+2F8EA,U+2F8ED,U+2F8FC,U+2F903,U+2F90B,U+2F90F,U+2F91A,U+2F920-2F921,U+2F945,U+2F947,U+2F96C,U+2F995,U+2F9D0,U+2F9DE-2F9DF,U+2F9F4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.1.woff2)format("woff2");unicode-range:U+1F235-1F23B,U+1F240-1F248,U+1F250-1F251,U+2000B,U+20089-2008A,U+200A2,U+200A4,U+200B0,U+200F5,U+20158,U+201A2,U+20213,U+2032B,U+20371,U+20381,U+203F9,U+2044A,U+20509,U+2053F,U+205B1,U+205D6,U+20611,U+20628,U+206EC,U+2074F,U+207C8,U+20807,U+2083A,U+208B9,U+2090E,U+2097C,U+20984,U+2099D,U+20A64,U+20AD3,U+20B1D,U+20B9F,U+20BB7,U+20D45,U+20D58,U+20DE1,U+20E64,U+20E6D,U+20E95,U+20F5F,U+21201,U+2123D,U+21255,U+21274,U+2127B,U+212D7,U+212E4,U+212FD,U+2131B,U+21336,U+21344,U+213C4,U+2146D-2146E,U+215D7,U+21647,U+216B4,U+21706,U+21742,U+218BD,U+219C3,U+21A1A,U+21C56,U+21D2D,U+21D45,U+21D62,U+21D78,U+21D92,U+21D9C,U+21DA1,U+21DB7,U+21DE0,U+21E33-21E34,U+21F1E,U+21F76,U+21FFA,U+2217B,U+22218,U+2231E,U+223AD,U+22609,U+226F3,U+2285B,U+228AB,U+2298F,U+22AB8,U+22B46,U+22B4F-22B50,U+22BA6,U+22C1D,U+22C24,U+22DE1,U+22E42,U+22FEB,U+231B6,U+231C3-231C4,U+231F5,U+23372,U+233CC,U+233D0,U+233D2-233D3,U+233D5,U+233DA,U+233DF,U+233E4,U+233FE,U+2344A-2344B,U+23451,U+23465,U+234E4,U+2355A,U+23594,U+235C4,U+23638-2363A,U+23647,U+2370C,U+2371C,U+2373F,U+23763-23764,U+237E7,U+237F1,U+237FF,U+23824,U+2383D,U+23A98,U+23C7F,U+23CBE,U+23CFE,U+23D00,U+23D0E,U+23D40,U+23DD3,U+23DF9-23DFA,U+23F7E,U+2404B,U+24096,U+24103,U+241C6,U+241FE,U+242EE,U+243BC,U+243D0,U+24629,U+246A5,U+247F1,U+24896,U+248E9,U+24A4D,U+24B56,U+24B6F,U+24C16,U+24D14,U+24E04,U+24E0E,U+24E37,U+24E6A,U+24E8B,U+24FF2,U+2504A,U+25055,U+25122,U+251A9,U+251CD,U+251E5,U+2521E,U+2524C,U+2542E,U+2548E,U+254D9,U+2550E,U+255A7,U+2567F,U+25771,U+257A9,U+257B4,U+25874,U+259C4,U+259CC,U+259D4,U+25AD7,U+25AE3-25AE4,U+25AF1,U+25BB2,U+25C4B,U+25C64,U+25DA1,U+25E2E,U+25E56,U+25E62,U+25E65,U+25EC2,U+25ED8}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.2.woff2)format("woff2");unicode-range:U+FFD7,U+FFDA-FFDC,U+FFE0-FFE2,U+FFE4,U+FFE6,U+FFE8-FFEE,U+1F100-1F10C,U+1F110-1F16C,U+1F170-1F1AC,U+1F200-1F202,U+1F210-1F234}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.3.woff2)format("woff2");unicode-range:U+FA10,U+FA12-FA6D,U+FB00-FB04,U+FE10-FE19,U+FE30-FE42,U+FE44-FE52,U+FE54-FE66,U+FE68-FE6B,U+FF02,U+FF04,U+FF07,U+FF51,U+FF5B,U+FF5D,U+FF5F-FF60,U+FF66,U+FF69,U+FF87,U+FFA1-FFBE,U+FFC2-FFC7,U+FFCA-FFCF,U+FFD2-FFD6}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.5.woff2)format("woff2");unicode-range:U+9E8B-9E8C,U+9E8E-9E8F,U+9E91-9E92,U+9E95-9E96,U+9E98,U+9E9B,U+9E9D-9E9E,U+9EA4-9EA5,U+9EA8-9EAA,U+9EAC-9EB0,U+9EB3-9EB5,U+9EB8,U+9EBC-9EBF,U+9EC3,U+9EC6,U+9EC8,U+9ECB-9ECD,U+9ECF-9ED1,U+9ED4-9ED5,U+9ED8,U+9EDB-9EE0,U+9EE4-9EE5,U+9EE7-9EE8,U+9EEC-9EF2,U+9EF4-9EF9,U+9EFB-9EFF,U+9F02-9F03,U+9F07-9F09,U+9F0E-9F12,U+9F14-9F17,U+9F19-9F1B,U+9F1F-9F22,U+9F26,U+9F2A-9F2C,U+9F2F,U+9F31-9F32,U+9F34,U+9F37,U+9F39-9F3A,U+9F3C-9F3F,U+9F41,U+9F43-9F47,U+9F4A,U+9F4E-9F50,U+9F52-9F58,U+9F5A,U+9F5D-9F61,U+9F63,U+9F66-9F6A,U+9F6C-9F73,U+9F75-9F77,U+9F7A,U+9F7D,U+9F7F,U+9F8F-9F92,U+9F94-9F97,U+9F99,U+9F9C-9FA3,U+9FA5,U+9FB4,U+9FBC-9FC2,U+9FC4,U+9FC6,U+9FCC,U+F900-F92C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.6.woff2)format("woff2");unicode-range:U+9C3E,U+9C41,U+9C43-9C4A,U+9C4E-9C50,U+9C52-9C54,U+9C56,U+9C58,U+9C5A-9C61,U+9C63,U+9C65,U+9C67-9C6B,U+9C6D-9C6E,U+9C70,U+9C72,U+9C75-9C78,U+9C7A-9C7C,U+9CE6-9CE7,U+9CEB-9CEC,U+9CF0,U+9CF2,U+9CF6-9CF7,U+9CF9,U+9D02-9D03,U+9D06-9D09,U+9D0B,U+9D0E,U+9D11-9D12,U+9D15,U+9D17-9D18,U+9D1B-9D1F,U+9D23,U+9D26,U+9D2A-9D2C,U+9D2F-9D30,U+9D32-9D34,U+9D3A,U+9D3C-9D3F,U+9D41-9D48,U+9D4A,U+9D50-9D54,U+9D59,U+9D5D-9D65,U+9D69-9D6C,U+9D6F-9D70,U+9D72-9D73,U+9D76-9D77,U+9D7A-9D7C,U+9D7E,U+9D83-9D84,U+9D86-9D87,U+9D89-9D8A,U+9D8D-9D8E,U+9D92-9D93,U+9D95-9D9A,U+9DA1,U+9DA4,U+9DA9-9DAC,U+9DAE,U+9DB1-9DB2,U+9DB5,U+9DB8-9DBD,U+9DBF-9DC4,U+9DC6-9DC7,U+9DC9-9DCA,U+9DCF,U+9DD3-9DD7,U+9DD9-9DDA,U+9DDE-9DE0,U+9DE3,U+9DE5-9DE7,U+9DE9,U+9DEB,U+9DED-9DF0,U+9DF3-9DF4,U+9DF8,U+9DFD-9DFE,U+9E02,U+9E07,U+9E0A,U+9E0D-9E0E,U+9E10-9E12,U+9E15-9E16,U+9E19-9E1F,U+9E75,U+9E79-9E7D,U+9E80-9E85,U+9E87-9E88}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.7.woff2)format("woff2");unicode-range:U+9AE5-9AE7,U+9AE9,U+9AEB-9AEC,U+9AEE-9AEF,U+9AF1-9AF5,U+9AF7,U+9AF9-9AFB,U+9AFD,U+9AFF-9B06,U+9B08-9B09,U+9B0B-9B0E,U+9B10,U+9B12,U+9B16,U+9B18-9B1D,U+9B1F-9B20,U+9B22-9B23,U+9B25-9B2F,U+9B32-9B35,U+9B37,U+9B39-9B3B,U+9B3D,U+9B43-9B44,U+9B48,U+9B4B-9B4F,U+9B51,U+9B55-9B58,U+9B5B,U+9B5E,U+9B61,U+9B63,U+9B65-9B66,U+9B68,U+9B6A-9B6F,U+9B72-9B79,U+9B7F-9B80,U+9B83-9B87,U+9B89-9B8B,U+9B8D,U+9B8F-9B94,U+9B96-9B97,U+9B9A,U+9B9D-9BA0,U+9BA6-9BA7,U+9BA9-9BAA,U+9BAC,U+9BB0-9BB2,U+9BB4,U+9BB7-9BB9,U+9BBB-9BBC,U+9BBE-9BC1,U+9BC6-9BC8,U+9BCA,U+9BCE-9BD2,U+9BD4,U+9BD7-9BD8,U+9BDD,U+9BDF,U+9BE1-9BE5,U+9BE7,U+9BEA-9BEB,U+9BEE-9BF3,U+9BF5,U+9BF7-9BFA,U+9BFD,U+9BFF-9C00,U+9C02,U+9C04,U+9C06,U+9C08-9C0D,U+9C0F-9C16,U+9C18-9C1E,U+9C21-9C2A,U+9C2D-9C32,U+9C35-9C37,U+9C39-9C3A,U+9C3D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.8.woff2)format("woff2");unicode-range:U+98EB,U+98ED-98EE,U+98F0-98F1,U+98F3,U+98F6,U+9902,U+9907-9909,U+9911-9912,U+9914-9918,U+991A-9922,U+9924,U+9926-9927,U+992B-992C,U+992E,U+9931-9935,U+9939-993E,U+9940-9942,U+9945-9949,U+994B-994E,U+9950-9952,U+9954-9955,U+9958-9959,U+995B-995C,U+995E-9960,U+9963,U+9997-9998,U+999B,U+999D-999F,U+99A3,U+99A5-99A6,U+99A8,U+99AD-99AE,U+99B0-99B2,U+99B5,U+99B9-99BA,U+99BC-99BD,U+99BF,U+99C1,U+99C3,U+99C8-99C9,U+99D1,U+99D3-99D5,U+99D8-99DF,U+99E1-99E2,U+99E7,U+99EA-99EE,U+99F0-99F2,U+99F4-99F5,U+99F8-99F9,U+99FB-99FE,U+9A01-9A05,U+9A08,U+9A0A-9A0C,U+9A0F-9A11,U+9A16,U+9A1A,U+9A1E,U+9A20,U+9A22-9A24,U+9A27,U+9A2B,U+9A2D-9A2E,U+9A31,U+9A33,U+9A35-9A38,U+9A3E,U+9A40-9A45,U+9A47,U+9A4A-9A4E,U+9A51-9A52,U+9A54-9A58,U+9A5B,U+9A5D,U+9A5F,U+9A62,U+9A64-9A65,U+9A69-9A6C,U+9AAA,U+9AAC-9AB0,U+9AB2,U+9AB4-9AB7,U+9AB9,U+9ABB-9AC1,U+9AC3,U+9AC6,U+9AC8,U+9ACE-9AD3,U+9AD5-9AD7,U+9ADB-9ADC,U+9ADE-9AE0,U+9AE2-9AE4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.9.woff2)format("woff2");unicode-range:U+971D,U+9721-9724,U+9728,U+972A,U+9730-9731,U+9733,U+9736,U+9738-9739,U+973B,U+973D-973E,U+9741-9744,U+9746-974A,U+974D-974F,U+9751,U+9755,U+9757-9758,U+975A-975C,U+9760-9761,U+9763-9764,U+9766-9768,U+976A-976B,U+976E,U+9771,U+9773,U+9776-977D,U+977F-9781,U+9785-9786,U+9789,U+978B,U+978F-9790,U+9795-9797,U+9799-979A,U+979C,U+979E-97A0,U+97A2-97A3,U+97A6,U+97A8,U+97AB-97AC,U+97AE,U+97B1-97B6,U+97B8-97BA,U+97BC,U+97BE-97BF,U+97C1,U+97C3-97CE,U+97D0-97D1,U+97D4,U+97D7-97D9,U+97DB-97DE,U+97E0-97E1,U+97E4,U+97E6,U+97ED-97EF,U+97F1-97F2,U+97F4-97F8,U+97FA,U+9804,U+9807,U+980A,U+980C-980F,U+9814,U+9816-9817,U+9819-981A,U+981C,U+981E,U+9820-9821,U+9823-9826,U+982B,U+982E-9830,U+9832-9835,U+9837,U+9839,U+983D-983E,U+9844,U+9846-9847,U+984A-984B,U+984F,U+9851-9853,U+9856-9857,U+9859-985B,U+9862-9863,U+9865-9866,U+986A-986C,U+986F-9871,U+9873-9875,U+98AA-98AB,U+98AD-98AE,U+98B0-98B1,U+98B4,U+98B6-98B8,U+98BA-98BC,U+98BF,U+98C2-98C8,U+98CB-98CC,U+98CE,U+98DC,U+98DE,U+98E0-98E1,U+98E3,U+98E5-98E7,U+98E9-98EA}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.10.woff2)format("woff2");unicode-range:U+944A,U+944C,U+9452-9453,U+9455,U+9459-945C,U+945E-9463,U+9468,U+946A-946B,U+946D-9472,U+9475,U+9477,U+947C-947F,U+9481,U+9483-9485,U+9578-9579,U+957E-957F,U+9582,U+9584,U+9586-9588,U+958A,U+958C-958F,U+9592,U+9594,U+9596,U+9598-9599,U+959D-95A1,U+95A4,U+95A6-95A9,U+95AB-95AD,U+95B1,U+95B4,U+95B6,U+95B9-95BF,U+95C3,U+95C6,U+95C8-95CD,U+95D0-95D6,U+95D9-95DA,U+95DC-95E2,U+95E4-95E6,U+95E8,U+961D-961E,U+9621-9622,U+9624-9626,U+9628,U+962C,U+962E-962F,U+9631,U+9633-9634,U+9637-963A,U+963C-963D,U+9641-9642,U+964B-964C,U+964F,U+9652,U+9654,U+9656-9658,U+965C-965F,U+9661,U+9666,U+966A,U+966C,U+966E,U+9672,U+9674,U+9677,U+967B-967C,U+967E-967F,U+9681-9684,U+9689,U+968B,U+968D,U+9691,U+9695-9698,U+969A,U+969D,U+969F,U+96A4-96AA,U+96AE-96B4,U+96B6,U+96B8-96BB,U+96BD,U+96C1,U+96C9-96CB,U+96CD-96CE,U+96D2,U+96D5-96D6,U+96D8-96DA,U+96DC-96DF,U+96E9,U+96EF,U+96F1,U+96F9-96FA,U+9702-9706,U+9708-9709,U+970D-970F,U+9711,U+9713-9714,U+9716,U+9719-971B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.11.woff2)format("woff2");unicode-range:U+92BC-92BD,U+92BF-92C3,U+92C5-92C8,U+92CB-92D0,U+92D2-92D3,U+92D5,U+92D7-92D9,U+92DC-92DD,U+92DF-92E1,U+92E3-92E5,U+92E7-92EA,U+92EC,U+92EE,U+92F0,U+92F2,U+92F7-92FB,U+92FF-9300,U+9302,U+9304,U+9308,U+930D,U+930F-9311,U+9314-9315,U+9318-931A,U+931C-931F,U+9321-9325,U+9327-932B,U+932E,U+9333-9337,U+933A-933B,U+9344,U+9347-934A,U+934D,U+9350-9352,U+9354-9358,U+935A,U+935C,U+935E,U+9360,U+9364-9365,U+9367,U+9369-936D,U+936F-9371,U+9373-9374,U+9376,U+937A,U+937D-9382,U+9388,U+938A-938B,U+938D,U+938F,U+9392,U+9394-9395,U+9397-9398,U+939A-939B,U+939E,U+93A1,U+93A3-93A4,U+93A6,U+93A8-93A9,U+93AB-93AD,U+93B0,U+93B4-93B6,U+93B9-93BB,U+93C1,U+93C3-93CD,U+93D0-93D1,U+93D3,U+93D6-93D9,U+93DC-93DF,U+93E2,U+93E4-93E8,U+93F1,U+93F5,U+93F7-93FB,U+93FD,U+9401-9404,U+9407-9409,U+940D-9410,U+9413-9417,U+9419-941A,U+941F,U+9421,U+942B,U+942E-942F,U+9431-9434,U+9436,U+9438,U+943A-943B,U+943D,U+943F,U+9441,U+9443-9445,U+9448}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.12.woff2)format("woff2");unicode-range:U+9143,U+9146-914C,U+914F,U+9153,U+9156-915B,U+9161,U+9163-9165,U+9167,U+9169,U+916D,U+9172-9174,U+9179-917B,U+9181-9183,U+9185-9187,U+9189-918B,U+918E,U+9191,U+9193-9195,U+9197-9198,U+919E,U+91A1-91A2,U+91A6,U+91A8,U+91AA-91B6,U+91BA-91BD,U+91BF-91C6,U+91C9,U+91CB,U+91D0,U+91D3-91D4,U+91D6-91D7,U+91D9-91DB,U+91DE-91DF,U+91E1,U+91E4-91E6,U+91E9-91EA,U+91EC-91F1,U+91F5-91F7,U+91F9,U+91FB-91FD,U+91FF-9201,U+9204-9207,U+9209-920A,U+920C,U+920E,U+9210-9218,U+921C-921E,U+9223-9226,U+9228-9229,U+922C,U+922E-9230,U+9233,U+9235-923A,U+923C,U+923E-9240,U+9242-9243,U+9245-924B,U+924D-9251,U+9256-925A,U+925C-925E,U+9260-9261,U+9264-9269,U+926E-9270,U+9275-9279,U+927B-927F,U+9288-928A,U+928D-928E,U+9291-9293,U+9295-9297,U+9299,U+929B-929C,U+929F-92A0,U+92A4-92A5,U+92A7-92A8,U+92AB,U+92AF,U+92B2-92B3,U+92B6-92BB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.13.woff2)format("woff2");unicode-range:U+8F52-8F55,U+8F57-8F58,U+8F5C-8F5E,U+8F61-8F66,U+8F9C-8F9D,U+8F9F-8FA2,U+8FA4-8FA8,U+8FAD-8FAF,U+8FB4-8FB8,U+8FBE,U+8FC0-8FC2,U+8FC6,U+8FC8,U+8FCA-8FCB,U+8FCD,U+8FD0,U+8FD2-8FD3,U+8FD5,U+8FDA,U+8FE0,U+8FE2-8FE5,U+8FE8-8FEA,U+8FED-8FEF,U+8FF1,U+8FF4-8FF6,U+8FF8-8FFB,U+8FFE,U+9002,U+9004-9005,U+9008,U+900B-900E,U+9011,U+9013,U+9015-9016,U+9018,U+901B,U+901E,U+9021,U+9027-902A,U+902C-902D,U+902F,U+9033-9037,U+9039,U+903C,U+903E-903F,U+9041,U+9043-9044,U+9049,U+904C,U+904F-9052,U+9056,U+9058,U+905B-905E,U+9062,U+9066-9068,U+906C,U+906F-9070,U+9072,U+9074,U+9076,U+9079,U+9080-9083,U+9085,U+9087-9088,U+908B-908C,U+908E-9090,U+9095,U+9097-9099,U+909B,U+90A0-90A2,U+90A5,U+90A8,U+90AF-90B6,U+90BD-90BE,U+90C3-90C5,U+90C7-90C9,U+90CC,U+90D2,U+90D5,U+90D7-90D9,U+90DB-90DF,U+90E2,U+90E4-90E5,U+90EB,U+90EF-90F0,U+90F2,U+90F4,U+90F6,U+90FE-9100,U+9102,U+9104-9106,U+9108,U+910D,U+9110,U+9112,U+9114-911A,U+911C,U+911E,U+9120,U+9122-9123,U+9125,U+9127,U+9129,U+912D-9132,U+9134,U+9136-9137,U+9139-913A,U+913C-913D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.14.woff2)format("woff2");unicode-range:U+8DC0,U+8DC2,U+8DC5-8DC8,U+8DCA-8DCC,U+8DCE-8DCF,U+8DD1,U+8DD4-8DD7,U+8DD9-8DDB,U+8DDF,U+8DE3-8DE5,U+8DE7,U+8DEA-8DEC,U+8DF0-8DF2,U+8DF4,U+8DFC-8DFD,U+8DFF,U+8E01,U+8E04-8E06,U+8E08-8E09,U+8E0B-8E0C,U+8E10-8E11,U+8E14,U+8E16,U+8E1D-8E23,U+8E26-8E27,U+8E30-8E31,U+8E33-8E39,U+8E3D,U+8E40-8E42,U+8E44,U+8E47-8E50,U+8E54-8E55,U+8E59,U+8E5B-8E64,U+8E69,U+8E6C-8E6D,U+8E6F-8E72,U+8E75-8E77,U+8E79-8E7C,U+8E81-8E85,U+8E89,U+8E8B,U+8E90-8E95,U+8E98-8E9B,U+8E9D-8E9E,U+8EA1-8EA2,U+8EA7,U+8EA9-8EAA,U+8EAC-8EB1,U+8EB3,U+8EB5-8EB6,U+8EBA-8EBB,U+8EBE,U+8EC0-8EC1,U+8EC3-8EC8,U+8ECB,U+8ECF,U+8ED1,U+8ED4,U+8EDB-8EDC,U+8EE3,U+8EE8,U+8EEB,U+8EED-8EEE,U+8EF0-8EF1,U+8EF7,U+8EF9-8EFC,U+8EFE,U+8F00,U+8F02,U+8F05,U+8F07-8F08,U+8F0A,U+8F0F-8F10,U+8F12-8F13,U+8F15-8F19,U+8F1B-8F1C,U+8F1E-8F21,U+8F23,U+8F25-8F28,U+8F2B-8F2F,U+8F33-8F37,U+8F39-8F3B,U+8F3E,U+8F40-8F43,U+8F45-8F47,U+8F49-8F4A,U+8F4C-8F4F,U+8F51}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.15.woff2)format("woff2");unicode-range:U+8B2D,U+8B30,U+8B37,U+8B3C,U+8B3E,U+8B41-8B46,U+8B48-8B49,U+8B4C-8B4F,U+8B51-8B54,U+8B56,U+8B59,U+8B5B,U+8B5E-8B5F,U+8B63,U+8B69,U+8B6B-8B6D,U+8B6F,U+8B71,U+8B74,U+8B76,U+8B78-8B79,U+8B7C-8B81,U+8B84-8B85,U+8B8A-8B8F,U+8B92-8B96,U+8B99-8B9A,U+8B9C-8BA0,U+8C38-8C3A,U+8C3D-8C3F,U+8C41,U+8C45,U+8C47-8C49,U+8C4B-8C4C,U+8C4E-8C51,U+8C53-8C55,U+8C57-8C59,U+8C5B,U+8C5D,U+8C62-8C64,U+8C66,U+8C68-8C69,U+8C6B-8C6D,U+8C73,U+8C75-8C76,U+8C78,U+8C7A-8C7C,U+8C7E,U+8C82,U+8C85-8C87,U+8C89-8C8B,U+8C8D-8C8E,U+8C90,U+8C92-8C94,U+8C98-8C99,U+8C9B-8C9C,U+8C9F,U+8CA4,U+8CAD-8CAE,U+8CB2-8CB3,U+8CB6,U+8CB9-8CBA,U+8CBD,U+8CC1-8CC2,U+8CC4-8CC6,U+8CC8-8CC9,U+8CCB,U+8CCD-8CCF,U+8CD2,U+8CD5-8CD6,U+8CD9-8CDA,U+8CDD,U+8CE1,U+8CE3-8CE4,U+8CE6,U+8CE8,U+8CEC,U+8CEF-8CF2,U+8CF4-8CF5,U+8CF7-8CF8,U+8CFA-8CFB,U+8CFD-8CFF,U+8D01,U+8D03-8D04,U+8D07,U+8D09-8D0B,U+8D0D-8D10,U+8D12-8D14,U+8D16-8D17,U+8D1B-8D1D,U+8D65,U+8D67,U+8D69,U+8D6B-8D6E,U+8D71,U+8D73,U+8D76,U+8D7F,U+8D81-8D82,U+8D84,U+8D88,U+8D8D,U+8D90-8D91,U+8D95,U+8D99,U+8D9E-8DA0,U+8DA6,U+8DA8,U+8DAB-8DAC,U+8DAF,U+8DB2,U+8DB5,U+8DB7,U+8DB9-8DBC,U+8DBE}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.16.woff2)format("woff2");unicode-range:U+8973-8975,U+8977,U+897A-897E,U+8980,U+8983,U+8988-898A,U+898D,U+8990,U+8993-8995,U+8998,U+899B-899C,U+899F-89A1,U+89A5-89A6,U+89A9,U+89AC,U+89AF-89B0,U+89B2,U+89B4-89B7,U+89BA,U+89BC-89BD,U+89BF-89C1,U+89D4-89D8,U+89DA,U+89DC-89DD,U+89E5,U+89E7,U+89E9,U+89EB,U+89ED,U+89F1,U+89F3-89F4,U+89F6,U+89F8-89F9,U+89FD,U+89FF,U+8A01,U+8A04-8A05,U+8A07,U+8A0C,U+8A0F-8A12,U+8A14-8A16,U+8A1B,U+8A1D-8A1E,U+8A20-8A22,U+8A24-8A26,U+8A2B-8A2C,U+8A2F,U+8A35-8A37,U+8A3B,U+8A3D-8A3E,U+8A40-8A41,U+8A43,U+8A45-8A49,U+8A4D-8A4E,U+8A51-8A54,U+8A56-8A58,U+8A5B-8A5D,U+8A61-8A62,U+8A65,U+8A67,U+8A6C-8A6D,U+8A75-8A77,U+8A79-8A7C,U+8A7E-8A80,U+8A82-8A86,U+8A8B,U+8A8F-8A92,U+8A96-8A97,U+8A99-8A9A,U+8A9F,U+8AA1,U+8AA3,U+8AA5-8AAA,U+8AAE-8AAF,U+8AB3,U+8AB6-8AB7,U+8ABB-8ABC,U+8ABE,U+8AC2-8AC4,U+8AC6,U+8AC8-8ACA,U+8ACC-8ACD,U+8AD0-8AD1,U+8AD3-8AD5,U+8AD7,U+8ADA-8AE2,U+8AE4,U+8AE7,U+8AEB-8AEC,U+8AEE,U+8AF0-8AF1,U+8AF3-8AF7,U+8AFA,U+8AFC,U+8AFF,U+8B01-8B02,U+8B04-8B07,U+8B0A-8B0D,U+8B0F-8B11,U+8B14,U+8B16,U+8B1A,U+8B1C,U+8B1E-8B20,U+8B26,U+8B28,U+8B2B-8B2C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.17.woff2)format("woff2");unicode-range:U+87E2-87E6,U+87EA-87ED,U+87EF,U+87F1,U+87F3,U+87F5-87F8,U+87FA-87FB,U+87FE-87FF,U+8801,U+8803,U+8805-8807,U+8809-880B,U+880D-8816,U+8818-881C,U+881E-881F,U+8821-8822,U+8827-8828,U+882D-882E,U+8830-8832,U+8835-8836,U+8839-883C,U+8841-8845,U+8848-884B,U+884D-884E,U+8851-8852,U+8855-8856,U+8858-885A,U+885C,U+885E-8860,U+8862,U+8864,U+8869,U+886B,U+886E-886F,U+8871-8872,U+8875,U+8877,U+8879,U+887B,U+887D-887E,U+8880-8882,U+8888,U+888D,U+8892,U+8897-889C,U+889E-88A0,U+88A2,U+88A4,U+88A8,U+88AA,U+88AE,U+88B0-88B1,U+88B5,U+88B7,U+88BA,U+88BC-88C0,U+88C3-88C4,U+88C6,U+88CA-88CE,U+88D1-88D4,U+88D8-88D9,U+88DB,U+88DD-88E1,U+88E7-88E8,U+88EF-88F2,U+88F4-88F5,U+88F7,U+88F9,U+88FC,U+8901-8902,U+8904,U+8906,U+890A,U+890C-890F,U+8913,U+8915-8916,U+8918-891A,U+891C-891E,U+8920,U+8925-8928,U+892A-892B,U+8930-8932,U+8935-893B,U+893E,U+8940-8946,U+8949,U+894C-894D,U+894F,U+8952,U+8956-8957,U+895A-895C,U+895E,U+8960-8964,U+8966,U+896A-896B,U+896D-8970}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.18.woff2)format("woff2");unicode-range:U+8655-8659,U+865B,U+865D-8664,U+8667,U+8669,U+866C,U+866F,U+8671,U+8675-8677,U+867A-867B,U+867D,U+8687-8689,U+868B-868D,U+8691,U+8693,U+8695-8696,U+8698,U+869A,U+869C-869D,U+86A1,U+86A3-86A4,U+86A6-86AB,U+86AD,U+86AF-86B1,U+86B3-86B9,U+86BF-86C1,U+86C3-86C6,U+86C9,U+86CB,U+86CE,U+86D1-86D2,U+86D4-86D5,U+86D7,U+86DA,U+86DC,U+86DE-86E0,U+86E3-86E7,U+86E9,U+86EC-86ED,U+86EF,U+86F8-86FE,U+8700,U+8703-870B,U+870D-8714,U+8719-871A,U+871E-871F,U+8721-8723,U+8725,U+8728-8729,U+872E-872F,U+8731-8732,U+8734,U+8737,U+8739-8740,U+8743,U+8745,U+8749,U+874B-874E,U+8751,U+8753,U+8755,U+8757-8759,U+875D,U+875F-8761,U+8763-8766,U+8768,U+876A,U+876E-876F,U+8771-8772,U+8774,U+8778,U+877B-877C,U+877F,U+8782-8789,U+878B-878C,U+878E,U+8790,U+8793,U+8795,U+8797-8799,U+879E-87A0,U+87A2-87A3,U+87A7,U+87AB-87AF,U+87B1,U+87B3,U+87B5,U+87BB,U+87BD-87C1,U+87C4,U+87C6-87CB,U+87CE,U+87D0,U+87D2,U+87D5-87D6,U+87D9-87DA,U+87DC,U+87DF-87E0}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.19.woff2)format("woff2");unicode-range:U+84B4,U+84B9-84BB,U+84BD-84C2,U+84C6-84CA,U+84CC-84D1,U+84D3,U+84D6,U+84D9-84DA,U+84DC,U+84E7,U+84EA,U+84EC,U+84EF-84F2,U+84F4,U+84F7,U+84FA-84FD,U+84FF-8500,U+8502-8503,U+8506-8507,U+850C,U+850E,U+8510,U+8514-8515,U+8517-8518,U+851A-851C,U+851E-851F,U+8521-8525,U+8527,U+852A-852C,U+852F,U+8532-8534,U+8536,U+853E-8541,U+8543,U+8546,U+8548,U+854A-854B,U+854F-8553,U+8555-855A,U+855C-8564,U+8569-856B,U+856D,U+856F,U+8577,U+8579-857B,U+857D-8581,U+8585-8586,U+8588-858C,U+858F-8591,U+8593,U+8597-8598,U+859B-859D,U+859F-85A0,U+85A2,U+85A4-85A5,U+85A7-85A8,U+85AD-85B0,U+85B4,U+85B6-85BA,U+85BC-85BF,U+85C1-85C2,U+85C7,U+85C9-85CB,U+85CE-85D0,U+85D5,U+85D8-85DA,U+85DC,U+85DF-85E1,U+85E5-85E6,U+85E8,U+85ED,U+85F3-85F4,U+85F6-85F7,U+85F9-85FA,U+85FC,U+85FE-8600,U+8602,U+8604-8606,U+860A-860B,U+860D-860E,U+8610-8613,U+8616-861B,U+861E,U+8621-8622,U+8624,U+8627,U+8629,U+862F-8630,U+8636,U+8638-863A,U+863C-863D,U+863F-8642,U+8646,U+864D,U+8652-8654}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.20.woff2)format("woff2");unicode-range:U+82E8,U+82EA,U+82ED,U+82EF,U+82F3-82F4,U+82F6-82F7,U+82F9,U+82FB,U+82FD-82FE,U+8300-8301,U+8303,U+8306-8308,U+830A-830C,U+8316-8318,U+831B,U+831D-831F,U+8321-8323,U+832B-8335,U+8337,U+833A,U+833C-833D,U+8340,U+8342-8347,U+834A,U+834D-8351,U+8353-8357,U+835A,U+8362-8363,U+8370,U+8373,U+8375,U+8378,U+837C-837D,U+837F-8380,U+8382,U+8384-8387,U+838A,U+838D-838E,U+8392-8396,U+8398-83A0,U+83A2,U+83A6-83AD,U+83B1,U+83B5,U+83BD-83C1,U+83C7,U+83C9,U+83CE-83D1,U+83D4,U+83D6,U+83D8,U+83DD,U+83DF-83E1,U+83E5,U+83E8,U+83EA-83EB,U+83F0,U+83F2,U+83F4,U+83F6-83F9,U+83FB-83FD,U+8401,U+8403-8404,U+8406-8407,U+840A-840B,U+840D,U+840F,U+8411,U+8413,U+8415,U+8417,U+8419,U+8420,U+8422,U+842A,U+842F,U+8431,U+8435,U+8438-8439,U+843C,U+8445-8448,U+844A,U+844D-844F,U+8451-8452,U+8456,U+8458-845A,U+845C,U+845F-8462,U+8464-8467,U+8469-846B,U+846D-8470,U+8473-8474,U+8476-847A,U+847C-847D,U+8481-8482,U+8484-8485,U+848B,U+8490,U+8492-8493,U+8495,U+8497,U+849C,U+849E-849F,U+84A1,U+84A6,U+84A8-84AA,U+84AD,U+84AF,U+84B1}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.21.woff2)format("woff2");unicode-range:U+814A,U+814C,U+8151-8153,U+8157,U+815F-8161,U+8165-8169,U+816D-816F,U+8171,U+8173-8174,U+8177,U+8180-8186,U+8188,U+818A-818B,U+818E,U+8190,U+8193,U+8195-8196,U+8198,U+819B,U+819E,U+81A0,U+81A2,U+81A4,U+81A9,U+81AE,U+81B0,U+81B2,U+81B4-81B5,U+81B8,U+81BA-81BB,U+81BD-81BE,U+81C0-81C3,U+81C5-81C6,U+81C8-81CB,U+81CD-81CF,U+81D1,U+81D5-81DB,U+81DD-81E1,U+81E4-81E5,U+81E7,U+81EB-81EC,U+81EF-81F2,U+81F5-81F6,U+81F8-81FB,U+81FD-8205,U+8209-820B,U+820D,U+820F,U+8212-8214,U+8216,U+8219-821D,U+8221-8222,U+8228-8229,U+822B,U+822E,U+8232-8235,U+8237-8238,U+823A,U+823C,U+8240,U+8243-8246,U+8249,U+824B,U+824E-824F,U+8251,U+8256-825A,U+825C-825D,U+825F-8260,U+8262-8264,U+8267-8268,U+826A-826B,U+826D-826E,U+8271,U+8274,U+8277,U+8279,U+827B,U+827D-8281,U+8283-8284,U+8287,U+8289-828A,U+828D-828E,U+8291-8294,U+8296,U+8298-829B,U+829F-82A1,U+82A3-82A4,U+82A7-82AC,U+82AE,U+82B0,U+82B2,U+82B4,U+82B7,U+82BA-82BC,U+82BE-82BF,U+82C5-82C6,U+82D0,U+82D2-82D3,U+82D5,U+82D9-82DA,U+82DC,U+82DE-82E4,U+82E7}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.22.woff2)format("woff2");unicode-range:U+7F77-7F79,U+7F7D-7F80,U+7F82-7F83,U+7F86-7F88,U+7F8B-7F8D,U+7F8F-7F91,U+7F94,U+7F96-7F97,U+7F9A,U+7F9C-7F9D,U+7FA1-7FA3,U+7FA6,U+7FAA,U+7FAD-7FAF,U+7FB2,U+7FB4,U+7FB6,U+7FB8-7FB9,U+7FBC,U+7FBF-7FC0,U+7FC3,U+7FC5-7FC6,U+7FC8,U+7FCA,U+7FCE-7FCF,U+7FD5,U+7FDB,U+7FDF,U+7FE1,U+7FE3,U+7FE5-7FE6,U+7FE8-7FE9,U+7FEB-7FEC,U+7FEE-7FF0,U+7FF2-7FF3,U+7FF9-7FFA,U+7FFD-7FFF,U+8002,U+8004,U+8006-8008,U+800A-800F,U+8011-8014,U+8016,U+8018-8019,U+801C-8021,U+8024,U+8026,U+8028,U+802C,U+802E,U+8030,U+8034-8035,U+8037,U+8039-8040,U+8043-8044,U+8046,U+804A,U+8052,U+8058,U+805A,U+805F-8060,U+8062,U+8064,U+8066,U+8068,U+806D,U+806F-8073,U+8075-8076,U+8079,U+807B,U+807D-8081,U+8084-8088,U+808B,U+808E,U+8093,U+8099-809A,U+809C,U+809E,U+80A4,U+80A6-80A7,U+80AB-80AD,U+80B1,U+80B8-80B9,U+80C4-80C5,U+80C8,U+80CA,U+80CD,U+80CF,U+80D2,U+80D4-80DB,U+80DD,U+80E0,U+80E4-80E6,U+80ED-80F3,U+80F5-80F7,U+80F9-80FC,U+80FE,U+8101,U+8103,U+8109,U+810B,U+810D,U+8116-8118,U+811B-811C,U+811E,U+8120,U+8123-8124,U+8127,U+8129,U+812B-812C,U+812F-8130,U+8135,U+8139-813A,U+813C-813E,U+8141,U+8145-8147}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.23.woff2)format("woff2");unicode-range:U+7D57,U+7D59-7D5D,U+7D63,U+7D65,U+7D67,U+7D6A,U+7D6E,U+7D70,U+7D72-7D73,U+7D78,U+7D7A-7D7B,U+7D7D,U+7D7F,U+7D81-7D83,U+7D85-7D86,U+7D88-7D89,U+7D8B-7D8D,U+7D8F,U+7D91,U+7D93,U+7D96-7D97,U+7D9B-7DA0,U+7DA2-7DA3,U+7DA6-7DA7,U+7DAA-7DAC,U+7DAE-7DB0,U+7DB3,U+7DB5-7DB9,U+7DBD,U+7DC0,U+7DC2-7DC7,U+7DCC-7DCE,U+7DD0,U+7DD5-7DD9,U+7DDC-7DDE,U+7DE1-7DE6,U+7DEA-7DED,U+7DF1-7DF2,U+7DF5-7DF6,U+7DF9-7DFA,U+7E00,U+7E05,U+7E08-7E0B,U+7E10-7E12,U+7E15,U+7E17,U+7E1C-7E1D,U+7E1F-7E23,U+7E27-7E28,U+7E2C-7E2D,U+7E2F,U+7E31-7E33,U+7E35-7E37,U+7E39-7E3B,U+7E3D,U+7E3F,U+7E43-7E48,U+7E4E,U+7E50,U+7E52,U+7E56,U+7E58-7E5A,U+7E5D-7E5F,U+7E61-7E62,U+7E65-7E67,U+7E69-7E6B,U+7E6D-7E6F,U+7E73,U+7E75,U+7E78-7E79,U+7E7B-7E7F,U+7E81-7E83,U+7E86-7E8A,U+7E8C-7E8E,U+7E90-7E96,U+7E98,U+7E9A-7E9F,U+7F38,U+7F3A-7F3F,U+7F43-7F45,U+7F47,U+7F4C-7F50,U+7F52-7F55,U+7F58,U+7F5B-7F5D,U+7F5F,U+7F61,U+7F63-7F69,U+7F6B,U+7F6D,U+7F71}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.24.woff2)format("woff2");unicode-range:U+7BC8,U+7BCA-7BCC,U+7BCF,U+7BD4,U+7BD6-7BD7,U+7BD9-7BDB,U+7BDD,U+7BE5-7BE6,U+7BE8-7BEA,U+7BF0,U+7BF2-7BFA,U+7BFC,U+7BFE,U+7C00-7C04,U+7C06-7C07,U+7C09,U+7C0B-7C0F,U+7C11-7C14,U+7C17,U+7C19,U+7C1B,U+7C1E-7C20,U+7C23,U+7C25-7C28,U+7C2A-7C2C,U+7C2F,U+7C31,U+7C33-7C34,U+7C36-7C3A,U+7C3D-7C3E,U+7C40,U+7C42-7C43,U+7C45-7C46,U+7C4A,U+7C4C,U+7C4F-7C5F,U+7C61,U+7C63-7C65,U+7C67,U+7C69,U+7C6C-7C70,U+7C72,U+7C75,U+7C79,U+7C7B-7C7E,U+7C81-7C83,U+7C86-7C87,U+7C8D,U+7C8F-7C90,U+7C94,U+7C9E,U+7CA0-7CA2,U+7CA4-7CA6,U+7CA8,U+7CAB,U+7CAD-7CAE,U+7CB0-7CB3,U+7CB6-7CB7,U+7CB9-7CBD,U+7CBF-7CC0,U+7CC2,U+7CC4-7CC5,U+7CC7-7CCA,U+7CCD-7CCF,U+7CD2-7CD5,U+7CD7-7CDA,U+7CDC-7CDD,U+7CDF-7CE0,U+7CE2,U+7CE6,U+7CE9,U+7CEB,U+7CEF,U+7CF2,U+7CF4-7CF6,U+7CF9-7CFA,U+7CFE,U+7D02-7D03,U+7D06-7D0A,U+7D0F,U+7D11-7D13,U+7D15-7D16,U+7D1C-7D1E,U+7D23,U+7D26,U+7D2A,U+7D2C-7D2E,U+7D31-7D32,U+7D35,U+7D3C-7D41,U+7D43,U+7D45,U+7D47-7D48,U+7D4B,U+7D4D-7D4F,U+7D51,U+7D53,U+7D55-7D56}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.25.woff2)format("woff2");unicode-range:U+7A17-7A19,U+7A1B,U+7A1E-7A21,U+7A27,U+7A2B,U+7A2D,U+7A2F-7A31,U+7A34-7A35,U+7A37-7A3B,U+7A3E,U+7A43-7A49,U+7A4C,U+7A4E,U+7A50,U+7A55-7A57,U+7A59,U+7A5C-7A5D,U+7A5F-7A63,U+7A65,U+7A67,U+7A69-7A6A,U+7A6D,U+7A70,U+7A75,U+7A78-7A79,U+7A7D-7A7E,U+7A80,U+7A82,U+7A84-7A86,U+7A88,U+7A8A-7A8B,U+7A90-7A91,U+7A94-7A98,U+7A9E,U+7AA0,U+7AA3,U+7AA9,U+7AAC,U+7AB0,U+7AB3,U+7AB5-7AB6,U+7AB9-7ABF,U+7AC3,U+7AC5-7ACA,U+7ACC-7ACF,U+7AD1-7AD3,U+7AD5,U+7ADA-7ADB,U+7ADD,U+7ADF,U+7AE1-7AE2,U+7AE6-7AED,U+7AF0-7AF1,U+7AF4,U+7AF8,U+7AFA-7AFB,U+7AFD-7AFE,U+7B02,U+7B04,U+7B06-7B08,U+7B0A-7B0B,U+7B0F,U+7B12,U+7B14,U+7B18-7B19,U+7B1E-7B1F,U+7B23,U+7B25,U+7B27-7B2B,U+7B2D-7B31,U+7B33-7B36,U+7B3B,U+7B3D,U+7B3F-7B41,U+7B45,U+7B47,U+7B4C-7B50,U+7B53,U+7B55,U+7B5D,U+7B60,U+7B64-7B66,U+7B69-7B6A,U+7B6C-7B75,U+7B77,U+7B79-7B7A,U+7B7F,U+7B84,U+7B86,U+7B89,U+7B8D-7B92,U+7B96,U+7B98-7BA0,U+7BA5,U+7BAC-7BAD,U+7BAF-7BB0,U+7BB2,U+7BB4-7BB6,U+7BBA-7BBD,U+7BC1-7BC2,U+7BC5-7BC6}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.26.woff2)format("woff2");unicode-range:U+7851-7852,U+785C,U+785E,U+7860-7861,U+7863-7864,U+7868,U+786A,U+786E-786F,U+7872,U+7874,U+787A,U+787C,U+787E,U+7886-7887,U+788A,U+788C-788F,U+7893-7895,U+7898,U+789A,U+789D-789F,U+78A1,U+78A3-78A4,U+78A8-78AA,U+78AC-78AD,U+78AF-78B3,U+78B5,U+78BB-78BF,U+78C5-78CC,U+78CE,U+78D1-78D6,U+78DA-78DB,U+78DF-78E1,U+78E4,U+78E6-78E7,U+78EA,U+78EC,U+78F2-78F4,U+78F6-78F7,U+78F9-78FB,U+78FD-7901,U+7906-7907,U+790C,U+7910-7912,U+7919-791C,U+791E-7920,U+7925-792E,U+7930-7931,U+7934-7935,U+793B,U+793D,U+793F,U+7941-7942,U+7944-7946,U+794A-794B,U+794F,U+7951,U+7954-7955,U+7957-7958,U+795A-795C,U+795F-7960,U+7962,U+7967,U+7969,U+796B,U+7972,U+7977,U+7979-797C,U+797E-7980,U+798A-798E,U+7991,U+7993-7996,U+7998,U+799B-799D,U+79A1,U+79A6-79AB,U+79AE-79B1,U+79B3-79B4,U+79B8-79BB,U+79BD-79BE,U+79C2,U+79C4,U+79C7-79CA,U+79CC-79CD,U+79CF,U+79D4-79D6,U+79DA,U+79DD-79E3,U+79E5,U+79E7,U+79EA-79ED,U+79F1,U+79F8,U+79FC,U+7A02-7A03,U+7A05,U+7A07-7A0A,U+7A0C-7A0D,U+7A11,U+7A15}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.27.woff2)format("woff2");unicode-range:U+768C-768E,U+7690,U+7693,U+7695-7696,U+7699-76A8,U+76AA,U+76AD,U+76AF-76B0,U+76B4,U+76B6-76BA,U+76BD,U+76C1-76C3,U+76C5,U+76C8-76C9,U+76CB-76CE,U+76D2,U+76D4,U+76D6,U+76D9,U+76DC,U+76DE,U+76E0-76E1,U+76E5-76E8,U+76EA-76EC,U+76F0-76F1,U+76F6,U+76F9,U+76FB-76FC,U+7700,U+7704,U+7706-7708,U+770A,U+770E,U+7712,U+7714-7715,U+7717,U+7719-771C,U+7722,U+7724-7726,U+7728,U+772D-772F,U+7734-7739,U+773D-773E,U+7742,U+7745-7747,U+774A,U+774D-774F,U+7752,U+7756-7758,U+775A-775C,U+775E-7760,U+7762,U+7764-7765,U+7767,U+776A-776C,U+7770,U+7772-7774,U+7779-777A,U+777C-7780,U+7784,U+778B-778E,U+7794-7796,U+779A,U+779E-77A0,U+77A2,U+77A4-77A5,U+77A7,U+77A9-77AA,U+77AE-77B1,U+77B5-77B7,U+77B9,U+77BB-77BF,U+77C3,U+77C7,U+77C9,U+77CD,U+77D1-77D2,U+77D5,U+77D7,U+77D9-77DA,U+77DC,U+77DE-77E0,U+77E3-77E4,U+77E6-77E7,U+77E9-77EA,U+77EC,U+77EE,U+77F0-77F1,U+77F4,U+77F8,U+77FB-77FC,U+7805-7806,U+7809,U+780C-780E,U+7811-7812,U+7819,U+781D,U+7820-7823,U+7826-7827,U+782C-782E,U+7830,U+7835,U+7837,U+783A,U+783F,U+7843-7845,U+7847-7848,U+784C,U+784E-784F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.28.woff2)format("woff2");unicode-range:U+7511-7513,U+7515-7517,U+751C,U+751E,U+7520-7522,U+7524,U+7526-7527,U+7529-752C,U+752F,U+7536,U+7538-7539,U+753C-7540,U+7543-7544,U+7546-754B,U+754D-7550,U+7552,U+7557,U+755A-755B,U+755D-755F,U+7561-7562,U+7564,U+7566-7567,U+7569,U+756B-756D,U+756F,U+7571-7572,U+7574-757E,U+7581-7582,U+7585-7587,U+7589-758C,U+758F-7590,U+7592-7595,U+7599-759A,U+759C-759D,U+75A2-75A5,U+75B0-75B1,U+75B3-75B5,U+75B7-75B8,U+75BA,U+75BD,U+75BF-75C4,U+75C6,U+75CA,U+75CC-75CF,U+75D3-75D4,U+75D7-75D8,U+75DC-75E1,U+75E3-75E4,U+75E7,U+75EC,U+75EE-75F3,U+75F9,U+75FC,U+75FE-7604,U+7607-760C,U+760F,U+7612-7613,U+7615-7616,U+7618-7619,U+761B-7629,U+762D,U+7630,U+7632-7635,U+7638-763C,U+7640-7641,U+7643-764B,U+764E,U+7655,U+7658-7659,U+765C,U+765F,U+7661-7662,U+7664-7665,U+7667-766A,U+766C-7672,U+7674,U+7676,U+7678,U+7680-7683,U+7685,U+7688,U+768B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.29.woff2)format("woff2");unicode-range:U+736C,U+736E-7371,U+7375,U+7377-737C,U+7380-7381,U+7383,U+7385-7386,U+738A,U+738E,U+7390,U+7393-7398,U+739C,U+739E-73A0,U+73A2,U+73A5-73A6,U+73A8,U+73AA-73AB,U+73AD,U+73B3,U+73B5,U+73B7,U+73B9-73BD,U+73BF,U+73C5-73C6,U+73C9-73CC,U+73CE-73CF,U+73D2-73D3,U+73D6,U+73D9,U+73DD-73DE,U+73E1,U+73E3-73E7,U+73E9-73EA,U+73EE,U+73F1,U+73F4-73F5,U+73F7-73FB,U+73FD,U+73FF-7401,U+7404-7405,U+7407,U+740A,U+7411,U+7413,U+741A-741B,U+7421,U+7424,U+7426,U+7428-7431,U+7433,U+7439-743A,U+743F-7441,U+7443-7444,U+7446-7447,U+744B,U+744D,U+7451-7453,U+7455,U+7457,U+7459-745A,U+745C-745D,U+745F,U+7462-7464,U+7466-746B,U+746D-7473,U+7476,U+747E,U+7480-7481,U+7485-7489,U+748B,U+748F-7492,U+7497-749A,U+749C,U+749E-74A3,U+74A5-74A6,U+74A8-74AB,U+74AE-74AF,U+74B1-74B2,U+74B5,U+74B9-74BB,U+74BD,U+74BF,U+74C8-74CA,U+74CC,U+74CF-74D0,U+74D3-74D4,U+74D6,U+74D8,U+74DA-74DB,U+74DE-74E0,U+74E3-74E4,U+74E7-74EB,U+74EE-74F2,U+74F4,U+74F7-74F8,U+74FA-74FC,U+74FF,U+7501,U+7503-7506,U+750C-750E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.30.woff2)format("woff2");unicode-range:U+7166,U+7168,U+716C,U+7179,U+7180,U+7184-7185,U+7187-7188,U+718C,U+718F,U+7192,U+7194-7196,U+7199-719B,U+71A0,U+71A2,U+71A8,U+71AC,U+71AE-71B0,U+71B2-71B3,U+71B9-71BA,U+71BE-71C1,U+71C4,U+71C9,U+71CB-71CC,U+71CE,U+71D0,U+71D2-71D4,U+71D6-71D7,U+71D9-71DA,U+71DC,U+71DF-71E0,U+71E6-71E7,U+71EC-71EE,U+71F4-71F5,U+71F8-71F9,U+71FC,U+71FE-7200,U+7207-7209,U+720D,U+7210,U+7213,U+7215,U+7217,U+721A,U+721D,U+721F,U+7224,U+7228,U+722B,U+722D,U+722F-7230,U+7232,U+7234,U+7238-7239,U+723B-723C,U+723E-7243,U+7245-7246,U+724B,U+724E-7250,U+7252-7253,U+7255-7258,U+725A,U+725C,U+725E,U+7260,U+7263,U+7268,U+726B,U+726E-726F,U+7271,U+7274,U+7277-7278,U+727B-727C,U+727E-7282,U+7284,U+7287,U+7289,U+728D-728E,U+7292-7293,U+7296,U+729B,U+72A2,U+72A7-72A8,U+72AD-72AE,U+72B0-72B2,U+72B4,U+72B9,U+72BE,U+72C0-72C1,U+72C3-72C4,U+72C6-72C7,U+72C9,U+72CC,U+72CE,U+72D2,U+72D5-72D6,U+72D8,U+72DF-72E2,U+72E5,U+72F3-72F4,U+72F7,U+72F9-72FB,U+72FD-72FE,U+7302,U+7304-7305,U+7307,U+730A-730B,U+730D,U+7312-7313,U+7316-7319,U+731C-731E,U+7322,U+7324,U+7327-7329,U+732C,U+732F,U+7331-7337,U+7339-733B,U+733D-733E,U+7343,U+734D-7350,U+7352,U+7356-7358,U+735D-7360,U+7366-736B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.31.woff2)format("woff2");unicode-range:U+6F58-6F5B,U+6F5D-6F5E,U+6F60-6F62,U+6F66,U+6F68,U+6F6C-6F6D,U+6F6F,U+6F74,U+6F78,U+6F7A,U+6F7C-6F7E,U+6F80,U+6F82-6F83,U+6F86-6F88,U+6F8B-6F8E,U+6F90-6F94,U+6F96-6F98,U+6F9A,U+6F9D,U+6F9F-6FA1,U+6FA3,U+6FA5-6FA8,U+6FAE-6FB1,U+6FB3,U+6FB5-6FB7,U+6FB9,U+6FBC,U+6FBE,U+6FC2,U+6FC5-6FCA,U+6FD4-6FD5,U+6FD8,U+6FDA-6FDB,U+6FDE-6FE0,U+6FE4,U+6FE8-6FE9,U+6FEB-6FEC,U+6FEE,U+6FF0,U+6FF3,U+6FF5-6FF6,U+6FF9-6FFA,U+6FFC-6FFE,U+7000-7001,U+7005-7007,U+7009-700B,U+700D,U+700F,U+7011,U+7015,U+7017-7018,U+701A-701B,U+701D-7020,U+7023,U+7026,U+7028,U+702F-7030,U+7032,U+7034,U+7037,U+7039-703A,U+703C,U+703E,U+7043-7044,U+7047-704C,U+704E,U+7051,U+7054-7055,U+705D-705E,U+7064-7065,U+7069,U+706C,U+706E,U+7075-7076,U+707E,U+7081,U+7085-7086,U+7094-7098,U+709B,U+709F,U+70A4,U+70AB-70AC,U+70AE-70B1,U+70B3-70B4,U+70B7,U+70BB,U+70CA-70CB,U+70D1,U+70D3-70D6,U+70D8-70D9,U+70DC-70DD,U+70DF,U+70E4,U+70EC,U+70F1,U+70FA,U+70FD,U+7103-7108,U+710B-710C,U+710F,U+7114,U+7119,U+711C,U+711E,U+7120,U+712B,U+712D-7131,U+7138,U+7141,U+7145-7147,U+7149-714B,U+7150-7153,U+7155-7157,U+715A,U+715C,U+715E,U+7160,U+7162,U+7164-7165}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.32.woff2)format("woff2");unicode-range:U+6D7C,U+6D80-6D82,U+6D85,U+6D87,U+6D89-6D8A,U+6D8C-6D8E,U+6D91-6D98,U+6D9C,U+6DAA-6DAC,U+6DAE,U+6DB4-6DB5,U+6DB7-6DB9,U+6DBD,U+6DBF,U+6DC2,U+6DC4-6DC8,U+6DCA,U+6DCC,U+6DCE-6DD0,U+6DD2,U+6DD5-6DD6,U+6DD8-6DDB,U+6DDD-6DE0,U+6DE2,U+6DE4-6DE6,U+6DE8-6DEA,U+6DEC,U+6DEE-6DF0,U+6DF2,U+6DF4,U+6DF6,U+6DF8-6DFA,U+6DFC,U+6E00,U+6E04,U+6E0A,U+6E17,U+6E19,U+6E1D-6E20,U+6E22-6E25,U+6E27,U+6E2B,U+6E2D-6E2E,U+6E32,U+6E34,U+6E36,U+6E38-6E3C,U+6E42-6E45,U+6E48-6E49,U+6E4B-6E4F,U+6E51-6E54,U+6E57,U+6E5B-6E5F,U+6E62-6E63,U+6E68,U+6E6B,U+6E6E,U+6E72-6E73,U+6E76,U+6E7B,U+6E7D,U+6E82,U+6E89,U+6E8C-6E8D,U+6E8F,U+6E93,U+6E98-6E99,U+6E9F-6EA0,U+6EA5,U+6EA7,U+6EAA-6EAB,U+6EAD-6EAF,U+6EB1-6EB4,U+6EB7,U+6EBB-6EBD,U+6EBF-6EC4,U+6EC7-6ECA,U+6ECC-6ECF,U+6ED3-6ED5,U+6ED9-6EDB,U+6EE6,U+6EEB-6EEF,U+6EF7-6EF9,U+6EFB,U+6EFD-6EFF,U+6F04,U+6F08-6F0A,U+6F0C-6F0D,U+6F10-6F11,U+6F13,U+6F15-6F16,U+6F18,U+6F1A-6F1B,U+6F25-6F26,U+6F29-6F2A,U+6F2D,U+6F2F-6F33,U+6F35-6F36,U+6F38,U+6F3B-6F3C,U+6F3E-6F3F,U+6F41,U+6F45,U+6F4F,U+6F51-6F53,U+6F57}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.33.woff2)format("woff2");unicode-range:U+6B85,U+6B89,U+6B8D,U+6B95,U+6B97-6B98,U+6B9B,U+6B9E-6BA0,U+6BA2-6BA4,U+6BA8-6BB3,U+6BB7-6BB9,U+6BBC-6BBE,U+6BC0,U+6BC3-6BC4,U+6BC6-6BC9,U+6BCB-6BCC,U+6BCF,U+6BD3,U+6BD6-6BD8,U+6BDA,U+6BDF,U+6BE1,U+6BE3,U+6BE6-6BE7,U+6BEB-6BEC,U+6BEE,U+6BF1,U+6BF3,U+6BF7,U+6BF9,U+6BFF,U+6C02,U+6C04-6C05,U+6C08-6C0A,U+6C0D-6C0E,U+6C10,U+6C12-6C14,U+6C19,U+6C1B,U+6C1F,U+6C24,U+6C26-6C28,U+6C2C,U+6C2E,U+6C33,U+6C35-6C36,U+6C3A-6C3B,U+6C3E-6C40,U+6C4A-6C4B,U+6C4D,U+6C4F,U+6C52,U+6C54-6C55,U+6C59,U+6C5B-6C5E,U+6C62,U+6C67-6C68,U+6C6A-6C6B,U+6C6D,U+6C6F,U+6C73-6C74,U+6C76,U+6C78-6C79,U+6C7B,U+6C7E,U+6C81-6C87,U+6C89,U+6C8C-6C8D,U+6C90,U+6C92-6C95,U+6C97-6C98,U+6C9A-6C9C,U+6C9F,U+6CAA-6CAE,U+6CB0-6CB2,U+6CB4,U+6CBA,U+6CBD-6CBE,U+6CC2,U+6CC5-6CC6,U+6CCD,U+6CCF-6CD4,U+6CD6-6CD7,U+6CD9-6CDD,U+6CE0,U+6CE7,U+6CE9-6CEF,U+6CF1-6CF2,U+6CF4,U+6CFB,U+6D00-6D01,U+6D04,U+6D07,U+6D0A,U+6D0C,U+6D0E-6D0F,U+6D11,U+6D13,U+6D19-6D1A,U+6D1F,U+6D24,U+6D26-6D28,U+6D2B,U+6D2E-6D2F,U+6D31,U+6D33-6D36,U+6D38-6D39,U+6D3C-6D3D,U+6D3F,U+6D57-6D5B,U+6D5E-6D61,U+6D64-6D65,U+6D67,U+6D6C,U+6D6F-6D70,U+6D79}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.34.woff2)format("woff2");unicode-range:U+69DD-69DE,U+69E2-69E3,U+69E5,U+69E7-69EB,U+69ED-69EF,U+69F1-69F6,U+69F9,U+69FE-6A01,U+6A03,U+6A05,U+6A0A,U+6A0C,U+6A0F,U+6A11-6A15,U+6A17,U+6A1A-6A1B,U+6A1D-6A20,U+6A22-6A24,U+6A28,U+6A2E,U+6A30,U+6A32-6A38,U+6A3B,U+6A3E-6A3F,U+6A44-6A4A,U+6A4E,U+6A50-6A52,U+6A54-6A56,U+6A5B,U+6A61-6A62,U+6A64,U+6A66-6A67,U+6A6A-6A6B,U+6A71-6A73,U+6A78,U+6A7A,U+6A7E-6A7F,U+6A81,U+6A83-6A84,U+6A86-6A87,U+6A89,U+6A8B,U+6A8D,U+6A90-6A91,U+6A94,U+6A97,U+6A9B,U+6A9D-6AA3,U+6AA5,U+6AAA-6AAC,U+6AAE-6AB1,U+6AB3-6AB4,U+6AB8,U+6ABB,U+6ABD-6ABF,U+6AC1-6AC3,U+6AC6,U+6AC8-6AC9,U+6ACC,U+6AD0-6AD1,U+6AD3-6AD6,U+6ADA-6ADF,U+6AE2,U+6AE4,U+6AE7-6AE8,U+6AEA,U+6AEC,U+6AF0-6AF3,U+6AF8,U+6AFA,U+6AFC-6AFD,U+6B02-6B03,U+6B06-6B07,U+6B09-6B0B,U+6B0F-6B12,U+6B16-6B17,U+6B1B,U+6B1D-6B1F,U+6B23-6B24,U+6B28,U+6B2B-6B2C,U+6B2F,U+6B35-6B39,U+6B3B,U+6B3D,U+6B3F,U+6B43,U+6B46-6B47,U+6B49-6B4A,U+6B4D-6B4E,U+6B50,U+6B52,U+6B54,U+6B56,U+6B58-6B59,U+6B5B,U+6B5D,U+6B5F-6B61,U+6B65,U+6B67,U+6B6B-6B6C,U+6B6E,U+6B70,U+6B72,U+6B75,U+6B77-6B7A,U+6B7D-6B84}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.35.woff2)format("woff2");unicode-range:U+6855,U+6857-6859,U+685B,U+685D,U+685F,U+6863,U+6867,U+686B,U+686E-6872,U+6874-6875,U+6877,U+6879-687C,U+687E-687F,U+6882-6884,U+6886,U+6888,U+688D-6890,U+6894,U+6896,U+6898-689C,U+689F-68A3,U+68A5-68A7,U+68A9-68AB,U+68AD-68AF,U+68B2-68B5,U+68B9-68BC,U+68C3,U+68C5-68C6,U+68C8-68CA,U+68CC-68CD,U+68CF-68D1,U+68D3-68D9,U+68DC-68DD,U+68E0-68E1,U+68E3-68E5,U+68E7-68E8,U+68EA-68ED,U+68EF-68F1,U+68F5-68F7,U+68F9,U+68FB-68FD,U+6900-6901,U+6903-6904,U+6906-690C,U+690F-6911,U+6913,U+6916-6917,U+6919-691B,U+6921-6923,U+6925-6926,U+6928,U+692A,U+6930-6931,U+6933-6936,U+6938-6939,U+693B,U+693D,U+6942,U+6945-6946,U+6949,U+694E,U+6954,U+6957,U+6959,U+695B-695E,U+6961-6966,U+6968-696C,U+696E-6974,U+6977-697B,U+697E-6981,U+6986,U+698D,U+6991-6992,U+6994-6996,U+6998,U+699C,U+69A0-69A1,U+69A5-69A8,U+69AB,U+69AD,U+69AF-69B2,U+69B4,U+69B7-69B8,U+69BA-69BC,U+69BE-69C1,U+69C3,U+69C5,U+69C7-69C8,U+69CA,U+69CE-69D1,U+69D3,U+69D6-69D7,U+69D9}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.36.woff2)format("woff2");unicode-range:U+667E-6680,U+6683-6684,U+6688,U+668B-668E,U+6690,U+6692,U+6698-669D,U+669F-66A0,U+66A2,U+66A4,U+66AD,U+66B1-66B3,U+66B5,U+66B8-66B9,U+66BB-66BC,U+66BE-66C4,U+66C6,U+66C8-66C9,U+66CC,U+66CE-66CF,U+66D4,U+66DA-66DB,U+66DD,U+66DF-66E0,U+66E6,U+66E8-66E9,U+66EB-66EC,U+66EE,U+66F5,U+66F7,U+66FA-66FC,U+6701,U+6705,U+6707,U+670C,U+670E-6710,U+6712-6716,U+6719,U+671C,U+671E,U+6720,U+6722,U+6725-6726,U+672E,U+6733,U+6735-6738,U+673E-673F,U+6741,U+6743,U+6745-6748,U+674C-674D,U+6753-6755,U+6759,U+675D-675E,U+6760,U+6762-6764,U+6766,U+676A,U+676C,U+676E,U+6770,U+6772-6774,U+6776-6777,U+677B-677C,U+6780-6781,U+6784-6785,U+6787,U+6789,U+678B-678C,U+678E-678F,U+6791-6793,U+6796,U+6798-6799,U+679B,U+67A1,U+67A4,U+67A6,U+67A9,U+67B0-67B5,U+67B7-67B9,U+67BB-67BE,U+67C0-67C3,U+67C5-67C6,U+67C8-67C9,U+67CE,U+67D2,U+67D7-67D9,U+67DB-67DE,U+67E1-67E2,U+67E4,U+67E6-67E7,U+67E9,U+67EC,U+67EE-67F0,U+67F2,U+67F6-67F7,U+67F9-67FA,U+67FC,U+67FE,U+6801-6802,U+6805,U+6810,U+6814,U+6818-6819,U+681D,U+681F,U+6822,U+6827-6829,U+682B-682D,U+682F-6834,U+683B,U+683E-6840,U+6844-6846,U+6849-684A,U+684C-684E,U+6852-6854}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.37.woff2)format("woff2");unicode-range:U+64D2,U+64D4-64D5,U+64D7-64D8,U+64DA,U+64E0-64E1,U+64E3-64E5,U+64E7,U+64E9-64EA,U+64ED,U+64EF-64F2,U+64F4-64F7,U+64FA-64FB,U+64FD-6501,U+6504-6505,U+6508-650A,U+650F,U+6513-6514,U+6516,U+6518-6519,U+651B-651F,U+6522,U+6524,U+6526,U+6529-652C,U+652E,U+6531-6532,U+6534-6538,U+653A,U+653C-653D,U+6543-6544,U+6547-6549,U+654D-654E,U+6550,U+6552,U+6554-6556,U+6558,U+655D-6560,U+6567,U+656B,U+6572,U+6578,U+657A,U+657D,U+6581-6585,U+6588,U+658A,U+658C,U+6592,U+6595,U+6598,U+659B,U+659D,U+659F-65A1,U+65A3-65A6,U+65AB,U+65AE,U+65B2-65B5,U+65B7-65B8,U+65BE-65BF,U+65C1-65C4,U+65C6,U+65C8-65C9,U+65CC,U+65CE,U+65D0,U+65D2,U+65D4,U+65D6,U+65D8-65D9,U+65DB,U+65DF-65E1,U+65E3,U+65F0-65F2,U+65F4-65F5,U+65F9,U+65FB-65FC,U+65FE-6600,U+6603-6604,U+6608-660A,U+660D,U+6611-6612,U+6615-6616,U+661C-661E,U+6621-6624,U+6626,U+6629-662C,U+662E,U+6630-6631,U+6633-6637,U+6639-663B,U+663F-6641,U+6644-6646,U+6648-664A,U+664C,U+664E-664F,U+6651,U+6657-6665,U+6667-6668,U+666A-666D,U+6670,U+6673,U+6675,U+6677-6679,U+667B-667C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.38.woff2)format("woff2");unicode-range:U+62CF,U+62D1,U+62D4-62D6,U+62DA,U+62DC,U+62EA,U+62EE-62EF,U+62F1-62F2,U+62F4-62F5,U+62FC-62FD,U+62FF,U+6302-6304,U+6308-630D,U+6310,U+6313,U+6316,U+6318,U+631B,U+6327,U+6329-632A,U+632D,U+6332,U+6335-6336,U+6339-633C,U+633E,U+6341-6344,U+6346,U+634A-634E,U+6350,U+6352-6354,U+6358-6359,U+635B,U+6365-6366,U+6369,U+636B-636D,U+6371-6372,U+6374-6378,U+637A,U+637C-637D,U+637F-6380,U+6382,U+6384,U+6387,U+6389-638A,U+638E-6390,U+6394-6396,U+6399-639A,U+639E,U+63A0,U+63A3-63A4,U+63A6,U+63A9,U+63AB-63AF,U+63B5,U+63BD-63BE,U+63C0-63C1,U+63C4-63C6,U+63C8,U+63CE,U+63D1-63D6,U+63DC,U+63E0,U+63E3,U+63E5,U+63E9-63ED,U+63F2-63F3,U+63F5-63F9,U+6406,U+6409-640A,U+640F-6410,U+6412-6414,U+6416-6418,U+641E,U+6420,U+6422,U+6424-6426,U+6428-642A,U+642F-6430,U+6434-6436,U+643D,U+643F,U+644B,U+644E-644F,U+6451-6454,U+645A-645D,U+645F-6461,U+6463,U+6467,U+646D,U+6473-6474,U+6476,U+6478-6479,U+647B,U+647D,U+6485,U+6487-6488,U+648F-6491,U+6493,U+6495,U+6498-649B,U+649D-649F,U+64A1,U+64A3,U+64A6,U+64A8-64A9,U+64AC,U+64B3,U+64BB-64BF,U+64C2,U+64C4-64C5,U+64C7,U+64C9-64CC,U+64CE,U+64D0-64D1}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.39.woff2)format("woff2");unicode-range:U+6117,U+6119,U+611C,U+611E,U+6120-6122,U+6127-6128,U+612A-612C,U+6130-6131,U+6134-6137,U+6139-613A,U+613C-613F,U+6141-6142,U+6144-6147,U+6149-614A,U+614D,U+6153,U+6158-615A,U+615D-6160,U+6164-6165,U+616B-616C,U+616F,U+6171-6175,U+6177-6178,U+617B-6181,U+6183-6184,U+6187,U+618A-618B,U+618D,U+6192-6194,U+6196-619A,U+619C-619D,U+619F-61A0,U+61A5,U+61A8,U+61AA-61AE,U+61B8-61BA,U+61BC,U+61BE,U+61C0-61C3,U+61C6,U+61C8,U+61CA-61CF,U+61D5,U+61DC-61DF,U+61E1-61E3,U+61E5-61E9,U+61EC-61ED,U+61EF,U+61F4-61F7,U+61FA,U+61FC-6201,U+6203-6204,U+6207-620A,U+620D-620E,U+6213-6215,U+621B-621E,U+6220-6223,U+6227,U+6229-622B,U+622E,U+6230-6233,U+6236,U+6239,U+623D-623E,U+6241-6244,U+6246,U+6248,U+624C,U+624E,U+6250-6252,U+6254,U+6256,U+6258,U+625A-625C,U+625E,U+6260-6261,U+6263-6264,U+6268,U+626D,U+626F,U+6273,U+627A-627E,U+6282-6283,U+6285,U+6289,U+628D-6290,U+6292-6294,U+6296,U+6299,U+629B,U+62A6,U+62A8,U+62AC,U+62B3,U+62B6-62B7,U+62BA-62BB,U+62BE-62BF,U+62C2,U+62C4,U+62C6-62C8,U+62CA,U+62CE}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.40.woff2)format("woff2");unicode-range:U+5F6C-5F6D,U+5F6F,U+5F72-5F75,U+5F78,U+5F7A,U+5F7D-5F7F,U+5F82-5F83,U+5F87-5F89,U+5F8D,U+5F8F,U+5F91,U+5F96,U+5F99,U+5F9C-5F9D,U+5FA0,U+5FA2,U+5FA4,U+5FA7-5FA8,U+5FAB-5FAD,U+5FAF-5FB1,U+5FB5,U+5FB7-5FB8,U+5FBC-5FBD,U+5FC4,U+5FC7-5FC9,U+5FCB,U+5FD0-5FD4,U+5FDD-5FDE,U+5FE1-5FE2,U+5FE4,U+5FE8-5FEA,U+5FEC-5FF3,U+5FF6,U+5FF8,U+5FFA-5FFD,U+5FFF,U+6007,U+600A,U+600D-6010,U+6013-6015,U+6017-601B,U+601F,U+6021-6022,U+6024,U+6026,U+6029,U+602B,U+602D,U+6031,U+6033,U+6035,U+603A,U+6040-6043,U+6046-604A,U+604C-604D,U+6051,U+6054-6057,U+6059-605A,U+605D,U+605F-6064,U+6067,U+606A-606C,U+6070-6071,U+6077,U+607E-607F,U+6081-6086,U+6088-608E,U+6091-6093,U+6095-6098,U+609A-609B,U+609D-609E,U+60A2,U+60A4-60A5,U+60A7-60A8,U+60B0-60B1,U+60B3-60B5,U+60B7-60B8,U+60BB,U+60BD-60BE,U+60C2,U+60C4,U+60C6-60CB,U+60CE-60CF,U+60D3-60D5,U+60D8-60D9,U+60DB,U+60DD-60DF,U+60E1-60E2,U+60E5,U+60EE,U+60F0-60F2,U+60F4-60F8,U+60FA-60FD,U+6100,U+6102-6103,U+6106-6108,U+610A,U+610C-610E,U+6110-6114,U+6116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.41.woff2)format("woff2");unicode-range:U+5D9B,U+5D9D,U+5D9F-5DA0,U+5DA2,U+5DA4,U+5DA7,U+5DAB-5DAC,U+5DAE,U+5DB0,U+5DB2,U+5DB4,U+5DB7-5DB9,U+5DBC-5DBD,U+5DC3,U+5DC7,U+5DC9,U+5DCB-5DCE,U+5DD0-5DD3,U+5DD6-5DD9,U+5DDB,U+5DE0,U+5DE2,U+5DE4,U+5DE9,U+5DF2,U+5DF5,U+5DF8-5DF9,U+5DFD,U+5DFF-5E00,U+5E07,U+5E0B,U+5E0D,U+5E11-5E12,U+5E14-5E15,U+5E18-5E1B,U+5E1F-5E20,U+5E25,U+5E28,U+5E2E,U+5E32,U+5E35-5E37,U+5E3E,U+5E40,U+5E43-5E44,U+5E47,U+5E49,U+5E4B,U+5E4E,U+5E50-5E51,U+5E54,U+5E56-5E58,U+5E5B-5E5C,U+5E5E-5E5F,U+5E62,U+5E64,U+5E68,U+5E6A-5E6E,U+5E70,U+5E75-5E77,U+5E7A,U+5E7F-5E80,U+5E87,U+5E8B,U+5E8E,U+5E96,U+5E99-5E9A,U+5EA0,U+5EA2,U+5EA4-5EA5,U+5EA8,U+5EAA,U+5EAC,U+5EB1,U+5EB3,U+5EB8-5EB9,U+5EBD-5EBF,U+5EC1-5EC2,U+5EC6,U+5EC8,U+5ECB-5ECC,U+5ECE-5ED6,U+5ED9-5EE2,U+5EE5,U+5EE8-5EE9,U+5EEB-5EEC,U+5EF0-5EF1,U+5EF3-5EF4,U+5EF8-5EF9,U+5EFC-5F00,U+5F02-5F03,U+5F06-5F09,U+5F0B-5F0E,U+5F11,U+5F16-5F17,U+5F19,U+5F1B-5F1E,U+5F21-5F24,U+5F27-5F29,U+5F2B-5F30,U+5F34,U+5F36,U+5F38,U+5F3A-5F3D,U+5F3F-5F41,U+5F44-5F45,U+5F47-5F48,U+5F4A,U+5F4C-5F4E,U+5F50-5F51,U+5F54,U+5F56-5F58,U+5F5B-5F5D,U+5F60,U+5F63-5F65,U+5F67,U+5F6A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.42.woff2)format("woff2");unicode-range:U+5BBC,U+5BC0-5BC1,U+5BC3,U+5BC7,U+5BC9,U+5BCD-5BD0,U+5BD3-5BD4,U+5BD6-5BDA,U+5BDE,U+5BE0-5BE2,U+5BE4-5BE6,U+5BE8,U+5BEB-5BEC,U+5BEF-5BF1,U+5BF3-5BF6,U+5BFD,U+5C03,U+5C05,U+5C07-5C09,U+5C0C-5C0D,U+5C12-5C14,U+5C17,U+5C19,U+5C1E-5C20,U+5C22-5C24,U+5C26,U+5C28-5C2E,U+5C30,U+5C32,U+5C35-5C36,U+5C38-5C39,U+5C46,U+5C4D-5C50,U+5C53,U+5C59-5C5C,U+5C5F-5C63,U+5C67-5C69,U+5C6C-5C70,U+5C74-5C76,U+5C79-5C7D,U+5C87-5C88,U+5C8A,U+5C8C,U+5C8F,U+5C91-5C92,U+5C94,U+5C9D,U+5C9F-5CA0,U+5CA2-5CA3,U+5CA6-5CA8,U+5CAA-5CAB,U+5CAD,U+5CB1-5CB2,U+5CB4-5CB7,U+5CBA-5CBC,U+5CBE,U+5CC5,U+5CC7,U+5CC9,U+5CCB,U+5CD0,U+5CD2,U+5CD7,U+5CD9,U+5CDD,U+5CE6,U+5CE8-5CEA,U+5CED-5CEE,U+5CF1-5CF2,U+5CF4-5CF5,U+5CFA-5CFB,U+5CFD,U+5D01,U+5D06,U+5D0B,U+5D0D,U+5D10-5D12,U+5D14-5D15,U+5D17-5D1B,U+5D1D,U+5D1F-5D20,U+5D22-5D24,U+5D26-5D27,U+5D2B,U+5D31,U+5D34,U+5D39,U+5D3D,U+5D3F,U+5D42-5D43,U+5D46-5D48,U+5D4A-5D4B,U+5D4E,U+5D51-5D53,U+5D55,U+5D59,U+5D5C,U+5D5F-5D62,U+5D64,U+5D69-5D6A,U+5D6C-5D6D,U+5D6F-5D70,U+5D73,U+5D76,U+5D79-5D7A,U+5D7E-5D7F,U+5D81-5D84,U+5D87-5D88,U+5D8A,U+5D8C,U+5D90,U+5D92-5D95,U+5D97,U+5D99}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.43.woff2)format("woff2");unicode-range:U+598B-598E,U+5992,U+5995,U+5997,U+599B,U+599D,U+599F,U+59A3-59A4,U+59A7,U+59AD-59B0,U+59B2-59B3,U+59B7,U+59BA,U+59BC,U+59BE,U+59C1,U+59C3-59C4,U+59C6,U+59C8,U+59CA,U+59CD,U+59D2,U+59D9-59DA,U+59DD-59DF,U+59E3-59E5,U+59E7-59E8,U+59EC,U+59EE-59EF,U+59F1-59F2,U+59F4,U+59F6-59F8,U+5A00,U+5A03-5A04,U+5A09,U+5A0C-5A0E,U+5A11-5A13,U+5A17,U+5A1A-5A1C,U+5A1E-5A1F,U+5A23-5A25,U+5A27-5A28,U+5A2A,U+5A2D,U+5A30,U+5A35-5A36,U+5A40-5A41,U+5A44-5A45,U+5A47-5A49,U+5A4C,U+5A50,U+5A55,U+5A5E,U+5A62-5A63,U+5A65,U+5A67,U+5A6A,U+5A6C-5A6D,U+5A77,U+5A7A-5A7B,U+5A7E,U+5A84,U+5A8B,U+5A90,U+5A93,U+5A96,U+5A99,U+5A9C,U+5A9E-5AA0,U+5AA2,U+5AA7,U+5AAC,U+5AB1-5AB3,U+5AB5,U+5AB8,U+5ABA-5ABF,U+5AC2,U+5AC4,U+5AC6,U+5AC8,U+5ACB,U+5ACF-5AD0,U+5AD6-5AD7,U+5ADA,U+5ADC,U+5AE0-5AE1,U+5AE3,U+5AE5-5AE6,U+5AE9-5AEA,U+5AEE,U+5AF0,U+5AF5-5AF6,U+5AFA-5AFB,U+5AFD,U+5B00-5B01,U+5B08,U+5B0B,U+5B16-5B17,U+5B19,U+5B1B,U+5B1D,U+5B21,U+5B25,U+5B2A,U+5B2C-5B2D,U+5B30,U+5B32,U+5B34,U+5B36,U+5B38,U+5B3E,U+5B40-5B41,U+5B43,U+5B45,U+5B4B-5B4C,U+5B51-5B52,U+5B56,U+5B5A-5B5C,U+5B5E-5B5F,U+5B65,U+5B68-5B69,U+5B6E-5B71,U+5B73,U+5B75-5B76,U+5B7A,U+5B7C-5B84,U+5B86,U+5B8A-5B8B,U+5B8D-5B8E,U+5B90-5B91,U+5B93-5B94,U+5B96,U+5BA5-5BA6,U+5BA8-5BA9,U+5BAC-5BAD,U+5BAF,U+5BB1-5BB2,U+5BB7-5BB8,U+5BBA}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.44.woff2)format("woff2");unicode-range:U+57B3,U+57B8,U+57BD,U+57C0,U+57C3,U+57C6-57C8,U+57CC,U+57CF,U+57D2-57D7,U+57DC-57DE,U+57E0-57E1,U+57E3-57E4,U+57E6-57E7,U+57E9,U+57ED,U+57F0,U+57F4-57F6,U+57F8,U+57FB,U+57FD-57FF,U+5803-5804,U+5808-580D,U+5819,U+581B,U+581D-5821,U+5826-5827,U+582D,U+582F-5830,U+5832,U+5835,U+5839,U+583D,U+583F-5840,U+5849,U+584B-584D,U+584F-5852,U+5855,U+5858-5859,U+585F,U+5861-5862,U+5864,U+5867-5868,U+586D,U+5870,U+5872,U+5878-5879,U+587C,U+587F-5881,U+5885,U+5887-588D,U+588F-5890,U+5894,U+5896,U+5898,U+589D-589E,U+58A0-58A2,U+58A6,U+58A9-58AB,U+58AE,U+58B1-58B3,U+58B8-58BC,U+58BE,U+58C2-58C5,U+58C8,U+58CD-58CE,U+58D0-58DA,U+58DC-58E2,U+58E4-58E5,U+58E9,U+58EC,U+58EF,U+58F3-58F4,U+58F7,U+58F9,U+58FB-58FD,U+5902,U+5905-5906,U+590A-590D,U+5910,U+5912-5914,U+5918-5919,U+591B,U+591D,U+591F,U+5921,U+5923-5925,U+5928,U+592C-592D,U+592F-5930,U+5932-5933,U+5935-5936,U+5938-5939,U+593D-593F,U+5943,U+5946,U+594E,U+5950,U+5952-5953,U+5955,U+5957-595B,U+595D-5961,U+5963,U+5967,U+5969,U+596B-596D,U+596F,U+5972,U+5975-5976,U+5978-5979,U+597B-597C,U+5981}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.45.woff2)format("woff2");unicode-range:U+5616-5617,U+5619,U+561B,U+5620,U+5628,U+562C,U+562F-5639,U+563B-563D,U+563F-5641,U+5643-5644,U+5646-5647,U+5649,U+564B,U+564D-5650,U+5653-5654,U+565E,U+5660-5664,U+5666,U+5669-566D,U+566F,U+5671-5672,U+5675-5676,U+5678,U+567A,U+5680,U+5684-5688,U+568A-568C,U+568F,U+5694-5695,U+5699-569A,U+569D-56A0,U+56A5-56A9,U+56AB-56AE,U+56B1-56B4,U+56B6-56B7,U+56BC,U+56BE,U+56C0,U+56C2-56C3,U+56C5,U+56C8-56D1,U+56D3,U+56D7-56D9,U+56DC-56DD,U+56DF,U+56E1,U+56E4-56E8,U+56EB,U+56ED-56EE,U+56F1,U+56F6-56F7,U+56F9,U+56FF-5704,U+5707-570A,U+570C-570D,U+5711,U+5713,U+5715-5716,U+5718,U+571A-571D,U+5720-5726,U+5729-572A,U+572C,U+572E-572F,U+5733-5734,U+5737-5738,U+573B,U+573D-573F,U+5745-5746,U+574C-574F,U+5751-5752,U+5759,U+575F,U+5761-5762,U+5764-5765,U+5767-5769,U+576B,U+576D-5771,U+5773-5775,U+5777,U+5779-577C,U+577E-577F,U+5781,U+5783,U+5788-5789,U+578C,U+5793-5795,U+5797,U+5799-579A,U+579C-57A1,U+57A4,U+57A7-57AA,U+57AC,U+57AE,U+57B0}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.46.woff2)format("woff2");unicode-range:U+543F-5440,U+5443-5444,U+5447,U+544C-544F,U+5455,U+545E,U+5462,U+5464,U+5466-5467,U+5469,U+546B-546E,U+5470-5471,U+5474-5477,U+547B,U+547F-5481,U+5483-5486,U+5488-548B,U+548D-5492,U+5495-5496,U+549C,U+549F-54A2,U+54A4,U+54A6-54AF,U+54B1,U+54B7-54BC,U+54BE-54BF,U+54C2-54C4,U+54C6-54C8,U+54CA,U+54CD-54CE,U+54D8,U+54E0,U+54E2,U+54E5-54E6,U+54E8-54EA,U+54EC-54EF,U+54F1,U+54F3,U+54F6,U+54FC-5501,U+5505,U+5508-5509,U+550C-550F,U+5514-5516,U+5527,U+552A-552B,U+552E,U+5532-5533,U+5535-5536,U+5538-5539,U+553B-553D,U+5540-5541,U+5544-5545,U+5547,U+5549-554A,U+554C-554D,U+5550-5551,U+5556-5558,U+555A-555E,U+5560-5561,U+5563-5564,U+5566,U+557B-5583,U+5586-5588,U+558A,U+558E-558F,U+5591-5594,U+5597,U+5599,U+559E-559F,U+55A3-55A4,U+55A8-55A9,U+55AC-55AE,U+55B2,U+55BF,U+55C1,U+55C3-55C4,U+55C6-55C7,U+55C9,U+55CB-55CC,U+55CE,U+55D1-55D4,U+55D7-55D8,U+55DA-55DB,U+55DD-55DF,U+55E2,U+55E4,U+55E9,U+55EC,U+55EE,U+55F1,U+55F6-55F9,U+55FD-55FF,U+5605,U+5607-5608,U+560A,U+560D-5612}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.47.woff2)format("woff2");unicode-range:U+528D,U+5291-5298,U+529A,U+529C,U+52A4-52A7,U+52AB-52AD,U+52AF-52B0,U+52B5-52B8,U+52BA-52BE,U+52C0-52C1,U+52C4-52C6,U+52C8,U+52CA,U+52CC-52CD,U+52CF-52D2,U+52D4,U+52D6-52D7,U+52DB-52DC,U+52DE,U+52E0-52E1,U+52E3,U+52E5-52E6,U+52E8-52EA,U+52EC,U+52F0-52F1,U+52F3-52FB,U+5300-5301,U+5303,U+5306-5308,U+530A-530D,U+530F-5311,U+5313,U+5315,U+5318-531F,U+5321,U+5323-5325,U+5327-532D,U+532F-5333,U+5335,U+5338,U+533C-533E,U+5340,U+5342,U+5345-5346,U+5349,U+534B-534C,U+5359,U+535B,U+535E,U+5361,U+5363-5367,U+5369,U+536C-536E,U+5372,U+5377,U+5379-537B,U+537D-537F,U+5382-5383,U+5387-5389,U+538E,U+5393-5394,U+5396,U+5398-5399,U+539D,U+53A0-53A1,U+53A4-53A6,U+53A9-53AB,U+53AD-53B0,U+53B2,U+53B4-53B8,U+53BA,U+53BD,U+53C0-53C1,U+53C3-53C5,U+53CF,U+53D2-53D3,U+53D5,U+53DA-53DB,U+53DD-53E0,U+53E2,U+53E6-53E8,U+53ED-53EE,U+53F4-53F5,U+53FA,U+5401-5403,U+540B,U+540F,U+5412-5413,U+541A,U+541D-541E,U+5421,U+5424,U+5427-542A,U+542C-542F,U+5431,U+5433-5436,U+543C-543D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.48.woff2)format("woff2");unicode-range:U+50DD-50DF,U+50E1-50E6,U+50E8-50E9,U+50ED-50F6,U+50F9-50FB,U+50FE,U+5101-5103,U+5106-5109,U+510B-510E,U+5110,U+5112,U+5114-511E,U+5121,U+5123,U+5127-5128,U+512C-512D,U+512F,U+5131,U+5133-5135,U+5137-513C,U+513F-5142,U+5147,U+514A,U+514C,U+514F,U+5152-5155,U+5157-5158,U+515F-5160,U+5162,U+5164,U+5166-5167,U+5169-516A,U+516E,U+5173-5174,U+5179,U+517B,U+517E,U+5180,U+5182-5184,U+5189,U+518B-518C,U+518E-5191,U+5193,U+5195-5196,U+5198,U+519D,U+51A1-51A4,U+51A6,U+51A9-51AB,U+51AD,U+51B0-51B3,U+51B5,U+51B8,U+51BA,U+51BC-51BF,U+51C2-51C3,U+51C5,U+51C8-51CB,U+51CF,U+51D1-51D6,U+51D8,U+51DE-51E0,U+51E2,U+51E5,U+51E7,U+51E9,U+51EC-51EE,U+51F2-51F5,U+51F7,U+51FE,U+5201-5202,U+5204-5205,U+520B,U+520E,U+5212-5216,U+5218,U+5222,U+5226-5228,U+522A-522B,U+522E,U+5231-5233,U+5235,U+523C,U+5244-5245,U+5249,U+524B-524C,U+524F,U+5254-5255,U+5257-5258,U+525A,U+525C-5261,U+5266,U+5269,U+526C,U+526E,U+5271,U+5273-5274,U+5277-5279,U+527D,U+527F-5280,U+5282-5285,U+5288-528A,U+528C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.49.woff2)format("woff2");unicode-range:U+4F57-4F58,U+4F5A-4F5B,U+4F5D-4F5F,U+4F63-4F64,U+4F69-4F6A,U+4F6C,U+4F6E-4F71,U+4F76-4F7E,U+4F81-4F85,U+4F88-4F8A,U+4F8C,U+4F8E-4F90,U+4F92-4F94,U+4F96-4F9A,U+4F9E-4FA0,U+4FAB,U+4FAD,U+4FAF,U+4FB2,U+4FB7,U+4FB9,U+4FBB-4FBE,U+4FC0-4FC1,U+4FC4-4FC6,U+4FC8-4FC9,U+4FCB-4FD4,U+4FD8,U+4FDA-4FDC,U+4FDF-4FE0,U+4FE2,U+4FE4-4FE6,U+4FEF-4FF2,U+4FF6,U+4FFC-5002,U+5004-5007,U+500A,U+500C,U+500E-5011,U+5013-5014,U+5016-5018,U+501A-501E,U+5021-5023,U+5025-502A,U+502C-502E,U+5030,U+5032-5033,U+5035,U+5039,U+503B,U+5040-5043,U+5045-5048,U+504A,U+504C,U+504E,U+5050-5053,U+5055-5057,U+5059-505A,U+505F-5060,U+5062-5063,U+5066-5067,U+506A,U+506C-506D,U+5070-5072,U+5077-5078,U+5080-5081,U+5083-5086,U+5088,U+508A,U+508E-5090,U+5092-5096,U+509A-509C,U+509E-50A3,U+50AA,U+50AD,U+50AF-50B4,U+50B9-50BB,U+50BD,U+50C0,U+50C2-50C4,U+50C7,U+50C9-50CA,U+50CC,U+50CE,U+50D0-50D1,U+50D3-50D4,U+50D6,U+50D8-50D9,U+50DC}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.50.woff2)format("woff2");unicode-range:U+4093,U+4103,U+4105,U+4148,U+414F,U+4163,U+41B4,U+41BF,U+41E6,U+41EE,U+41F3,U+4207,U+420E,U+4264,U+4293,U+42C6,U+42D6,U+42DD,U+4302,U+432B,U+4343,U+43EE,U+43F0,U+4408,U+440C,U+4417,U+441C,U+4422,U+4453,U+445B,U+4476,U+447A,U+4491,U+44B3,U+44BE,U+44D4,U+4508,U+450D,U+4525,U+4543,U+457A,U+459D,U+45B8,U+45BE,U+45E5,U+45EA,U+460F-4610,U+4641,U+4665,U+46A1,U+46AE-46AF,U+470C,U+471F,U+4764,U+47E6,U+47FD,U+4816,U+481E,U+4844,U+484E,U+48B5,U+49B0,U+49E7,U+49FA,U+4A04,U+4A29,U+4ABC,U+4B38,U+4B3B,U+4B7E,U+4BC2,U+4BCA,U+4BD2,U+4BE8,U+4C17,U+4C20,U+4C38,U+4CC4,U+4CD1,U+4CE1,U+4D07,U+4D77,U+4E02,U+4E04-4E05,U+4E0C,U+4E0F-4E12,U+4E15,U+4E17,U+4E19,U+4E1E-4E1F,U+4E23-4E24,U+4E28-4E2C,U+4E2E-4E31,U+4E35-4E37,U+4E3F-4E42,U+4E44,U+4E47-4E48,U+4E4D-4E4E,U+4E51,U+4E55-4E56,U+4E58,U+4E5A-4E5C,U+4E62-4E63,U+4E68-4E69,U+4E74-4E75,U+4E79,U+4E7F,U+4E82,U+4E85,U+4E8A,U+4E8D-4E8E,U+4E96-4E99,U+4E9D-4EA0,U+4EA2,U+4EA5-4EA6,U+4EA8,U+4EAF-4EB0,U+4EB3,U+4EB6,U+4EB9,U+4EBB-4EBC,U+4EC2-4EC4,U+4EC6-4EC8,U+4ECD,U+4ED0,U+4ED7,U+4EDA-4EDB,U+4EDD-4EE2,U+4EE8,U+4EEB,U+4EED,U+4EEF,U+4EF1,U+4EF3,U+4EF5,U+4EF7,U+4EFC-4F00,U+4F02-4F03,U+4F08-4F09,U+4F0B-4F0D,U+4F12,U+4F15-4F17,U+4F19,U+4F1C,U+4F2B,U+4F2E,U+4F30-4F31,U+4F33,U+4F35-4F37,U+4F39,U+4F3B,U+4F3E,U+4F40,U+4F42-4F43,U+4F48-4F49,U+4F4B-4F4C,U+4F52,U+4F54,U+4F56}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.52.woff2)format("woff2");unicode-range:U+32B5-332B,U+332D-3394}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.53.woff2)format("woff2");unicode-range:U+31C8-31E3,U+31F0-321E,U+3220-3230,U+3232-32B4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.54.woff2)format("woff2");unicode-range:U+3028-303F,U+3094-3096,U+309F-30A0,U+30EE,U+30F7-30FA,U+30FF,U+3105-312F,U+3131-3163,U+3165-318E,U+3190-31BB,U+31C0-31C7}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.55.woff2)format("woff2");unicode-range:U+2F14-2FD5,U+2FF0-2FFB,U+3004,U+3013,U+3016-301B,U+301E,U+3020-3027}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.56.woff2)format("woff2");unicode-range:U+25E4-25E6,U+2601-2603,U+2609,U+260E-260F,U+2616-2617,U+261C-261F,U+262F,U+2641,U+2660,U+2662-2664,U+2666-2668,U+266D-266E,U+2672-267D,U+26BD-26BE,U+2702,U+271A,U+273D,U+2740,U+2756,U+2776-2793,U+27A1,U+2934-2935,U+29BF,U+29FA-29FB,U+2B05-2B07,U+2B1A,U+2B95,U+2E3A-2E3B,U+2E80-2E99,U+2E9B-2EF3,U+2F00-2F13}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.57.woff2)format("woff2");unicode-range:U+24D1-24FF,U+2503-2513,U+2515-2516,U+2518-251B,U+251D-2522,U+2524-259F,U+25A2-25AB,U+25B1,U+25B7,U+25C0-25C1,U+25C9-25CA,U+25CC,U+25D0-25D3,U+25E2-25E3}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.58.woff2)format("woff2");unicode-range:U+2105,U+2109-210A,U+210F,U+2116,U+2121,U+2126-2127,U+212B,U+212E,U+2135,U+213B,U+2194-2199,U+21B8-21B9,U+21C4-21C6,U+21CB-21CC,U+21D0,U+21E6-21E9,U+21F5,U+2202-2203,U+2205-2206,U+2208-220B,U+220F,U+2211,U+2213,U+2215,U+221A,U+221D,U+2220,U+2223,U+2225-2226,U+2228,U+222A-222E,U+2234-2237,U+223D,U+2243,U+2245,U+2248,U+224C,U+2260,U+2262,U+2264-2265,U+226E-226F,U+2272-2273,U+2276-2277,U+2283-2287,U+228A-228B,U+2295-2299,U+22A0,U+22A5,U+22BF,U+22DA-22DB,U+22EF,U+2305-2307,U+2318,U+2329-232A,U+23B0-23B1,U+23BE-23CC,U+23CE,U+23DA-23DB,U+2423,U+2469-24D0}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.59.woff2)format("woff2");unicode-range:U+A1-A4,U+A6-A7,U+AA,U+AC-AD,U+B5-B6,U+B8-BA,U+BC-C8,U+CA-CC,U+CE-D5,U+D9-DB,U+DD-DF,U+E6,U+EE,U+F0,U+F5,U+F7,U+F9,U+FB,U+FE-102,U+110-113,U+11A-11B,U+128-12B,U+143-144,U+147-148,U+14C,U+14E-14F,U+152-153,U+168-16D,U+192,U+1A0-1A1,U+1AF,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+2BB,U+2C7,U+2C9,U+2EA-2EB,U+304,U+307,U+30C,U+1E3E-1E3F,U+1EA0-1EBE,U+1EC0-1EC6,U+1EC8-1EF9,U+2011-2012,U+2016,U+2018-201A,U+201E,U+2021,U+2030,U+2033,U+2035,U+2042,U+2047,U+2051,U+2074,U+20A9,U+20AB-20AC,U+20DD-20DE,U+2100}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.60.woff2)format("woff2");unicode-range:U+2227,U+26A0,U+2713,U+301F,U+4FF8,U+5239,U+526A,U+54FA,U+5740,U+5937,U+5993,U+59FB,U+5A3C,U+5C41,U+6028,U+626E,U+646F,U+647A,U+64B0,U+64E2,U+65A7,U+66FE,U+6727,U+6955,U+6BEF,U+6F23,U+724C,U+767C,U+7A83,U+7AC4,U+7B67,U+8000,U+8471,U+8513,U+8599,U+86DB,U+8718,U+87F2,U+88F3,U+8AD2,U+8E2A,U+8FA3,U+95A5,U+9798,U+9910,U+9957,U+9BAB,U+9C3B,U+9DAF,U+FF95}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.61.woff2)format("woff2");unicode-range:U+A8,U+2032,U+2261,U+2282,U+3090,U+30F1,U+339C,U+535C,U+53D9,U+56A2,U+56C1,U+5806,U+589F,U+59D0,U+5A7F,U+60E0,U+639F,U+65AF,U+68FA,U+69AE,U+6D1B,U+6EF2,U+71FB,U+725D,U+7262,U+75BC,U+7768,U+7940,U+79BF,U+7BED,U+7D68,U+7DFB,U+814B,U+8207,U+83E9,U+8494,U+8526,U+8568,U+85EA,U+86D9,U+87BA,U+8861,U+887F,U+8FE6,U+9059,U+9061,U+916A,U+976D,U+97AD,U+9ECE}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.62.woff2)format("woff2");unicode-range:U+2D9,U+21D4,U+301D,U+515C,U+52FE,U+5420,U+5750,U+5766,U+5954,U+5B95,U+5F8A,U+5F98,U+620C,U+621F,U+641C,U+66D9,U+676D,U+6775,U+67F5,U+694A,U+6A02,U+6A3A,U+6A80,U+6C23,U+6C72,U+6DCB,U+6FAA,U+707C,U+71C8,U+7422,U+74E2,U+7791,U+7825,U+7A14,U+7A1C,U+7C95,U+7FC1,U+82A5,U+82DB,U+8304,U+853D,U+8CD3,U+8DE8,U+8F0C,U+8F3F,U+9091,U+91C7,U+929A,U+98AF,U+9913}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.63.woff2)format("woff2");unicode-range:U+2CA-2CB,U+2229,U+2468,U+2669,U+266F,U+273F,U+4EC0,U+4F60,U+4FB6,U+5347,U+540E,U+543B,U+5B0C,U+5D4C,U+5F14,U+5F9E,U+6155,U+62D0,U+6602,U+6666,U+66F3,U+67A2,U+67CA,U+69CC,U+6D29,U+6D9B,U+6E3E,U+6F81,U+7109,U+73C0,U+73C2,U+7425,U+7435-7436,U+7525,U+7554,U+785D,U+786B,U+7AE3,U+7B94,U+7D18,U+81BF,U+8511,U+8549,U+9075,U+9640,U+98E2,U+9E9F,U+FF96}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.64.woff2)format("woff2");unicode-range:U+2467,U+4ECE,U+4ED4,U+4F91,U+4FAE,U+534D,U+53C9,U+54B3,U+586B,U+5944,U+5B78,U+5DF7,U+5F77,U+6101,U+6167-6168,U+61A4,U+62D9,U+698A,U+699B,U+6A59,U+6CC4,U+6E07,U+7099,U+75D2,U+77AD,U+7953,U+7984,U+7A92,U+7BAA,U+7DBB,U+817F,U+82AD,U+85E9,U+868A,U+8CAA,U+8F44,U+9017,U+907C,U+908A,U+92F3,U+936E,U+9435,U+978D,U+9838,U+9A28,U+9B41,U+9BA8,U+9C57,U+9EB9}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.65.woff2)format("woff2");unicode-range:U+B1,U+309B,U+4E5E,U+51F1,U+5506,U+55C5,U+58CC,U+59D1,U+5C51,U+5EF7,U+6284,U+62D7,U+6689,U+673D,U+6A2B,U+6A8E,U+6A9C,U+6D63,U+6DD1,U+70B8,U+7235,U+72DB,U+72F8,U+7560,U+7C9B,U+7CE7,U+7E1E,U+80AF,U+82EB,U+8463,U+8499,U+85DD,U+86EE,U+8A60,U+8A6E,U+8C79,U+8E87,U+8E8A,U+8F5F,U+9010,U+918D,U+9190,U+965B,U+97FB,U+9AB8,U+9BAD,U+9D3B,U+9D5C,U+9DFA,U+9E93}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.66.woff2)format("woff2");unicode-range:U+2020,U+3003,U+3231,U+4E9B,U+4F3D,U+4F47,U+51B6,U+51DC,U+53E1,U+5BC5,U+602F,U+60BC,U+61C9,U+633D,U+637B,U+6492,U+65FA,U+660F,U+66F0,U+6703,U+681E,U+6876,U+6893,U+6912,U+698E,U+6C7D,U+714C,U+7169,U+71D5,U+725F,U+72D7,U+745B,U+74DC,U+75E2,U+7891,U+7897,U+7DCB,U+810A,U+8218,U+8339,U+840E,U+852D,U+8823,U+8A0A,U+9089,U+919C,U+971C,U+9AD9,U+FF4A,U+FF5A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.67.woff2)format("woff2");unicode-range:U+2466,U+2600,U+4EAB,U+4FE3,U+4FF5,U+51A5,U+51F0,U+536F,U+53D4,U+53F1,U+54A5,U+559D,U+55E3,U+58FA,U+5962,U+59EA,U+5C16,U+5CEF,U+5D16,U+5F10,U+5FD6,U+6190,U+6216,U+634F,U+63BB,U+66D6,U+6756,U+6BC5,U+6E26,U+727D,U+731F,U+76F2,U+7729,U+7A7F,U+7AFF,U+7C9F,U+818F,U+8236,U+82B9,U+8338,U+85AA,U+88B4,U+8B33,U+904D,U+93A7,U+96CC,U+96EB,U+9AED,U+9B8E,U+FA11}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.68.woff2)format("woff2");unicode-range:U+251C,U+2523,U+4E14,U+545F,U+54BD,U+553E,U+55DC,U+56DA,U+589C,U+5B55,U+5BB5,U+5CE1,U+5DF4,U+5EB6,U+5EC9,U+6191,U+62F7,U+6357,U+64A5,U+6591,U+65BC,U+6897,U+6E1A,U+7063,U+711A,U+721B,U+722C,U+75B9,U+75D5,U+75FA,U+7766,U+7AAE,U+7B48,U+7B8B,U+7D21,U+7E55,U+7F75,U+842C,U+8910,U+8A63,U+8B39,U+8B5A,U+8CDC,U+8D74,U+907D,U+91E7,U+9306,U+96BC,U+98F4,U+9AC4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.69.woff2)format("woff2");unicode-range:U+2003,U+2312,U+266C,U+4F86,U+51EA,U+5243,U+5256,U+541F,U+5841,U+59DC,U+5DF3,U+601C,U+60E7,U+632B,U+638C,U+64AD,U+6881,U+697C,U+69CD,U+6C50,U+6D2A,U+6FC1,U+7027,U+7058,U+70F9,U+714E,U+7345,U+751A,U+760D,U+764C,U+77DB,U+7D79,U+7E8F,U+80CE,U+814E,U+81FC,U+8247,U+8278,U+85A9,U+8A03,U+90ED,U+9784,U+9801,U+984E,U+99B3,U+9BC9,U+9BDB,U+9BE8,U+9E78,U+FF6B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.70.woff2)format("woff2");unicode-range:U+266B,U+3006,U+5176,U+5197,U+51A8,U+51C6,U+52F2,U+5614,U+5875,U+5A2F,U+5B54,U+5CE0,U+5DBA,U+5DEB,U+5E63,U+5F59,U+5FCC,U+6068,U+6367,U+68B6,U+6A0B,U+6B64,U+6E15,U+6EBA,U+7272,U+72A0,U+7947,U+7985,U+79E6,U+79E9,U+7A3D,U+7A9F,U+7AAF,U+7B95,U+7F60,U+7F9E,U+7FE0,U+8098,U+80BA,U+8106,U+82D4,U+831C,U+87F9,U+8A1F,U+8ACF,U+90C1,U+920D,U+9756,U+FE43,U+FF94}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.71.woff2)format("woff2");unicode-range:U+AF,U+2465,U+2517,U+33A1,U+4F10,U+50C5,U+51B4,U+5384,U+5606,U+5BB0,U+5CAC,U+5EE3,U+618E,U+61F2,U+62C9,U+66AB,U+66F9,U+6816,U+6960,U+6B3E,U+6F20,U+7078,U+72D0,U+73ED,U+7AD9,U+7B1B,U+7BE4,U+7D62,U+7F51,U+80B4,U+80F4,U+8154,U+85FB,U+865C,U+8702,U+895F,U+8AED,U+8B90,U+8CED,U+8FBF,U+91D8,U+9418,U+9583,U+9591,U+9813,U+982C,U+9BD6,U+FF46,U+FF7F,U+FF88}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.72.woff2)format("woff2");unicode-range:U+4E91,U+508D,U+50E7,U+514E,U+51F6,U+5446,U+5504,U+584A,U+59A8,U+59D3,U+5A46,U+5AC9,U+6020,U+60A6,U+6148,U+621A,U+6234,U+64C1,U+6523,U+675C,U+67D1,U+6953,U+6CCC,U+6DF5,U+6E13,U+6F06,U+723A,U+7325,U+74E6,U+758E,U+75AB,U+75D9,U+7A40,U+8096,U+82FA,U+8587,U+8594,U+8A6B,U+8AB9,U+8B17,U+8B83,U+937C,U+963B,U+9673,U+96DB,U+9CE9,U+9F4B,U+FF67,U+FF82,U+FF93}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.73.woff2)format("woff2");unicode-range:U+221E,U+2514,U+51F9,U+5270,U+5449,U+5824,U+59A5,U+5A29,U+5D07,U+5E16,U+60E3,U+614C,U+6276,U+643E,U+64AB,U+6562,U+6681,U+670B,U+6734,U+67AF,U+6A3D,U+6B05,U+6DC0,U+6E4A,U+7259,U+732A,U+7409,U+78A7,U+7A6B,U+8015,U+809B,U+817A,U+830E,U+837B,U+85AB,U+8A23,U+8A93,U+8B00,U+8B19,U+8B21,U+8CBF,U+8FB0,U+901D,U+91B8,U+9320,U+932C,U+9688,U+96F6,U+9DF2,U+FF6A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.74.woff2)format("woff2");unicode-range:U+2002,U+2025,U+4F8D,U+51E1,U+51F8,U+5507,U+5598,U+58F1,U+5983,U+59AC,U+5C3C,U+5DE7,U+5E7D,U+5ECA,U+5F61,U+606D,U+60F9,U+636E,U+64EC,U+67DA,U+67FF,U+6813,U+68F2,U+693F,U+6B6A,U+6BBB,U+6EF4,U+7092,U+717D,U+7261,U+73C8,U+7432,U+7483,U+76FE,U+7709,U+78D0,U+81A3,U+81B3,U+82AF,U+8305,U+8309,U+8870,U+88FE,U+8CD1,U+8D66,U+906E,U+971E,U+9812,U+FF79,U+FF90}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.75.woff2)format("woff2");unicode-range:U+2464,U+2501,U+2640,U+2642,U+339D,U+4F0E,U+5091,U+50B5,U+5132,U+51CC,U+558B,U+55AA,U+585E,U+5BEE,U+5DFE,U+60B6,U+62B9,U+6349,U+6566,U+6590,U+6842,U+689D,U+6A58,U+6C70,U+6FF1,U+7815,U+7881,U+7AAA,U+7BC7,U+7DEF,U+7FA8,U+8017,U+8036,U+8061,U+821F,U+8429,U+8CE0,U+8E74,U+9019,U+90CA,U+9162,U+932F,U+93AE,U+9644,U+990C,U+9CF3,U+FF56,U+FF6E,U+FF7E,U+FF85}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.76.woff2)format("woff2");unicode-range:U+2266-2267,U+4F2F,U+5208,U+5451,U+546A,U+5589,U+576A,U+5815,U+5A9A,U+5B9B,U+5C3A,U+5EFB,U+5FAA,U+6109,U+6643,U+6652,U+695A,U+69FD,U+6B86,U+6BB4,U+6DAF,U+7089,U+70CF,U+7A00,U+7A4F,U+7B39,U+7D33,U+80E1,U+828B,U+82A6,U+86CD,U+8C8C,U+8CCA,U+8DF3,U+9077,U+9175,U+91DC,U+925B,U+9262,U+9271,U+92ED,U+9855,U+9905,U+9D28,U+FF3F,U+FF58,U+FF68,U+FF6D,U+FF9C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.77.woff2)format("woff2");unicode-range:U+2207,U+25EF,U+309C,U+4E4F,U+5146,U+51DD,U+5351,U+540A,U+5629,U+5EB5,U+5F04,U+5F13,U+60DC,U+6212,U+63B4,U+642C,U+6627,U+66A6,U+66C7,U+66FD,U+674E,U+6B96,U+6C4E,U+6DF3,U+6E67,U+6F84,U+72FC,U+733F,U+7C97,U+7DB1,U+7E4D,U+816B,U+82D1,U+84CB,U+854E,U+8607,U+86C7,U+871C,U+8776,U+8A89,U+8FC4,U+91A4,U+9285,U+9685,U+9903,U+9B31,U+9F13,U+FF42,U+FF74,U+FF91}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.78.woff2)format("woff2");unicode-range:U+4E32,U+51DB,U+53A8,U+53EA,U+5609,U+5674,U+5A92,U+5E7E,U+6115,U+611A,U+62CC,U+62ED,U+63C9,U+64B9,U+64E6,U+65CB,U+6606,U+6731,U+683D,U+6AFB,U+7460,U+771E,U+78EF,U+7B26,U+7B51,U+7CDE,U+7D10,U+7D2F,U+7D46,U+80DE,U+819C,U+84B2,U+85CD,U+865A,U+8ECC,U+9022,U+90B8,U+9192,U+9675,U+96B7,U+99FF,U+FF44,U+FF55,U+FF6C,U+FF73,U+FF75,U+FF86,U+FF8D,U+FF92,U+FFE3}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.79.woff2)format("woff2");unicode-range:U+25B3,U+30F5,U+4EAE,U+4F46,U+4F51,U+5203,U+52FF,U+55A7,U+564C,U+565B,U+57F9,U+5805,U+5B64,U+5E06,U+5F70,U+5F90,U+60E8,U+6182,U+62F3,U+62FE,U+63AA,U+64A4,U+65D7,U+673A,U+6851,U+68CB,U+68DF,U+6D1E,U+6E58,U+6E9D,U+77B3,U+7832,U+7C3F,U+7DB4,U+7F70,U+80AA,U+80C6,U+8105,U+819D,U+8276,U+8679,U+8986,U+8C9D,U+8FC5,U+916C,U+9665,U+9699,U+96C0,U+9A19,U+FF8B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.80.woff2)format("woff2");unicode-range:U+2463,U+25A1,U+4EF0,U+5076,U+5098,U+51FD,U+5302,U+5448,U+54C9,U+570B,U+583A,U+5893,U+58A8,U+58EE,U+5949,U+5BDB,U+5F26,U+5F81,U+6052,U+6170,U+61C7,U+631F,U+635C,U+664B,U+69FB,U+6F01,U+7070,U+722A,U+745E,U+755C,U+76C6,U+78C1,U+79E4,U+7BB8,U+7D0B,U+81A8,U+82D7,U+8B5C,U+8F14,U+8FB1,U+8FBB,U+9283,U+9298,U+9A30,U+FF03,U+FF50,U+FF59,U+FF7B,U+FF8E-FF8F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.81.woff2)format("woff2");unicode-range:U+2010,U+2502,U+25B6,U+4F3A,U+514B,U+5265,U+52C3,U+5339,U+53EC,U+54C0,U+55B0,U+5854,U+5B8F,U+5CB3,U+5E84,U+60DA,U+6247,U+6249,U+628A,U+62CD,U+65AC,U+6838,U+690E,U+6CF0,U+6F02,U+6F2C,U+6F70,U+708A,U+7434,U+75BE,U+77EF,U+7C60,U+7C98,U+7D1B,U+7E2B,U+80A5,U+81E3,U+820C,U+8210,U+8475,U+862D,U+8650,U+8997,U+906D,U+91C8,U+9700,U+9727,U+9DF9,U+FF3A,U+FF9A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.82.woff2)format("woff2");unicode-range:U+2103,U+5049,U+52B1,U+5320,U+5553,U+572D,U+58C7,U+5B5D,U+5BC2,U+5DE3,U+5E61,U+5F80,U+61A9,U+67D0,U+67F4,U+6C88,U+6CA1,U+6CE5,U+6D78,U+6E9C,U+6F54,U+731B,U+73B2,U+74A7,U+74F6,U+75E9,U+7B20,U+7C8B,U+7F72,U+809D,U+8108,U+82B3,U+82BD,U+84B8,U+84C4,U+88C2,U+8AE6,U+8EF8,U+902E,U+9065,U+9326,U+935B,U+938C,U+9676,U+9694,U+96F7,U+9ED9,U+FF48,U+FF4C,U+FF81}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.83.woff2)format("woff2");unicode-range:U+2500,U+3008-3009,U+4EAD,U+4F0F,U+4FCA,U+53EB,U+543E,U+57A2,U+5CF0,U+5E8F,U+5FE0,U+61B2,U+62D8,U+6442,U+64B2,U+6589,U+659C,U+67F1,U+68C4,U+6CB8,U+6D12,U+6DE1,U+6FE1,U+70C8,U+723D,U+73E0,U+7656,U+773A,U+7948,U+7B87,U+7C92,U+7D3A,U+7E1B,U+7E4A,U+819A,U+8358,U+83C5,U+84BC,U+864E,U+8912,U+8C9E,U+8D05,U+92FC,U+9396,U+98FD,U+99D2,U+FF64,U+FF7A,U+FF83}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.84.woff2)format("woff2");unicode-range:U+3014-3015,U+4E3C,U+5036,U+5075,U+533F,U+53E9,U+5531,U+5642,U+5984,U+59E6,U+5A01,U+5B6B,U+5C0B,U+5F25,U+6069,U+60A0,U+614E,U+62B5,U+62D2-62D3,U+6597,U+660C,U+674F,U+67CF,U+6841,U+6905,U+6CF3,U+6D32,U+6D69,U+6F64,U+716E,U+7761,U+7B52,U+7BE0,U+7DBF,U+7DE9,U+7F36,U+81D3,U+8302,U+8389,U+846C,U+84EE,U+8A69,U+9038,U+9D8F,U+FF47,U+FF4B,U+FF76,U+FF9B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.85.woff2)format("woff2");unicode-range:U+25C7,U+3007,U+504F,U+507D,U+51A0,U+52A3,U+5410,U+5510,U+559A,U+5782,U+582A,U+5C0A,U+5C3F,U+5C48,U+5F6B,U+6176,U+622F,U+6279,U+62BD,U+62DD,U+65ED,U+67B6,U+6817,U+6850,U+6D6A,U+6DEB,U+6EA2,U+6EDD,U+6F5C,U+72E9,U+73A9,U+7573,U+76BF,U+7950,U+7956,U+7F8A,U+7FFC,U+80A2,U+80C3,U+83CA,U+8A02,U+8A13,U+8DF5,U+9375,U+983B,U+99B4,U+FF4E,U+FF71,U+FF89,U+FF97}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.86.woff2)format("woff2");unicode-range:U+24,U+2022,U+2212,U+221F,U+2665,U+4ECF,U+5100,U+51CD,U+52D8,U+5378,U+53F6,U+574A,U+5982,U+5996,U+5C1A,U+5E1D,U+5F84,U+609F,U+61A7,U+61F8,U+6398,U+63EE,U+6676,U+6691,U+6EB6,U+7126,U+71E5,U+7687,U+7965,U+7D17,U+80A1,U+8107,U+8266,U+85A6,U+8987,U+8CA2,U+8CAB,U+8E0A,U+9042,U+95C7,U+9810,U+9867,U+98FC,U+FF52-FF54,U+FF61,U+FF77,U+FF98-FF99}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.87.woff2)format("woff2");unicode-range:U+B0,U+226A,U+2462,U+4E39,U+4FC3,U+4FD7,U+50BE,U+50DA,U+5200,U+5211,U+54F2,U+5618,U+596A,U+5B22,U+5BB4,U+5D50,U+60A3,U+63FA,U+658E,U+65E8,U+6669,U+6795,U+679D,U+67A0,U+6B3A,U+6E09,U+757F,U+7CD6,U+7DBE,U+7FFB,U+83CC,U+83F1,U+840C,U+845B,U+8846,U+8972,U+8A34,U+8A50,U+8A87,U+8EDF,U+8FF0,U+90A6,U+9154,U+95A3,U+9663,U+9686,U+96C7,U+FF3C,U+FF7C,U+FF8A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.88.woff2)format("woff2");unicode-range:U+25BD,U+4E59,U+4EC1,U+4FF3,U+515A,U+518A,U+525B,U+5375,U+552F,U+57A3,U+5B9C,U+5C3D,U+5E3D,U+5E7B,U+5F0A,U+6094,U+6458,U+654F,U+67F3,U+6B8A,U+6BD2,U+6C37,U+6CE1,U+6E56,U+6E7F,U+6ED1,U+6EDE,U+6F0F,U+70AD,U+7267,U+7363,U+786C,U+7A42,U+7DB2,U+7F85,U+8178,U+829D,U+8896,U+8C5A,U+8CB0,U+8CE2,U+8ED2,U+9047,U+9177,U+970A,U+9EA6,U+FF1B,U+FF31,U+FF39,U+FF80}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.89.woff2)format("woff2");unicode-range:U+A5,U+4E80,U+4F34,U+4F73,U+4F75,U+511F,U+5192,U+52AA,U+53C8,U+570F,U+57CB,U+596E,U+5D8B,U+5F66,U+5FD9,U+62DB,U+62F6,U+6328,U+633F,U+63A7,U+6469,U+6BBF,U+6C41,U+6C57,U+6D44,U+6DBC,U+706F,U+72C2,U+72ED,U+7551,U+75F4,U+7949,U+7E26,U+7FD4,U+8150,U+8AF8,U+8B0E,U+8B72,U+8CA7,U+934B,U+9A0E,U+9A12,U+9B42,U+FF41,U+FF43,U+FF45,U+FF49,U+FF4F,U+FF62-FF63}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.90.woff2)format("woff2");unicode-range:U+4E18,U+4FB5,U+5104,U+52C7,U+5353,U+5374,U+53E5,U+587E,U+594F,U+5A20,U+5DE1,U+5F18,U+5FCD,U+6291,U+62AB,U+6355,U+6392,U+63DA,U+63E1,U+656C,U+6687,U+68B0-68B1,U+68D2,U+68DA,U+6B27,U+6CBC,U+7159,U+7344,U+73CD,U+76DF,U+790E,U+7CF8,U+8102,U+88C1,U+8AA0,U+8E0F,U+9178,U+92AD,U+9670,U+96C5,U+9CF4,U+9DB4,U+FF3E,U+FF6F,U+FF72,U+FF78,U+FF7D,U+FF84,U+FF8C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.91.woff2)format("woff2");unicode-range:U+60,U+2200,U+226B,U+2461,U+517C,U+526F,U+5800,U+5B97,U+5BF8,U+5C01,U+5D29,U+5E4C,U+5E81,U+6065,U+61D0,U+667A,U+6696,U+6843,U+6C99,U+6D99,U+6EC5,U+6F22,U+6F6E,U+6FA4,U+6FEF,U+71C3,U+72D9,U+7384,U+78E8,U+7A1A,U+7A32,U+7A3C,U+7ADC,U+7CA7,U+7D2B,U+7DAD,U+7E4B,U+80A9,U+8170,U+81ED,U+820E,U+8A17,U+8AFE,U+90AA,U+914E,U+963F,U+99C4,U+9EBA,U+9F3B,U+FF38}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.92.woff2)format("woff2");unicode-range:U+2460,U+4E5F,U+4E7E,U+4ED9,U+501F,U+502B,U+5968,U+5974,U+5AC1,U+5B99,U+5BA3,U+5BE7,U+5BE9,U+5C64,U+5CB8,U+5EC3,U+5F1F,U+616E,U+6297,U+62E0,U+62EC,U+6368,U+642D,U+65E6,U+6717,U+676F,U+6B04,U+732E,U+7652,U+76CA,U+76D7,U+7802,U+7E70,U+7F6A,U+8133,U+81E8,U+866B,U+878D,U+88F8,U+8A5E,U+8CDB,U+8D08,U+907A,U+90E1,U+96F2,U+9F8D,U+FF35,U+FF37,U+FF40,U+FF9D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.93.woff2)format("woff2");unicode-range:U+21D2,U+25CE,U+300A-300B,U+4E89,U+4E9C,U+4EA1,U+5263,U+53CC,U+5426,U+5869,U+5947,U+598A,U+5999,U+5E55,U+5E72,U+5E79,U+5FAE,U+5FB9,U+602A,U+6163,U+624D,U+6749,U+6C5A,U+6CBF,U+6D45,U+6DFB,U+6E7E,U+708E,U+725B,U+7763,U+79C0,U+7BC4,U+7C89,U+7E01,U+7E2E,U+8010,U+8033,U+8C6A,U+8CC3,U+8F1D,U+8F9B,U+8FB2,U+907F,U+90F7,U+9707,U+9818,U+9B3C,U+FF0A,U+FF4D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.94.woff2)format("woff2");unicode-range:U+2015,U+2190,U+4E43,U+5019,U+5247,U+52E7,U+5438,U+54B2,U+55AB,U+57F7,U+5BD2,U+5E8A,U+5EF6,U+6016,U+60B2,U+6162,U+6319,U+6551,U+6607,U+66B4,U+675F,U+67D4,U+6B20,U+6B53,U+6CE3,U+719F,U+75B2,U+770B,U+7720,U+77AC,U+79D2,U+7AF9,U+7D05,U+7DCA,U+8056,U+80F8,U+81F3,U+8352,U+885D,U+8A70,U+8AA4,U+8CBC,U+900F,U+9084,U+91E3,U+9451,U+96C4,U+99C6,U+9AD4,U+FF70}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.95.woff2)format("woff2");unicode-range:U+2193,U+25B2,U+4E4B,U+516D,U+51C4,U+529F,U+52C9,U+5360,U+5442,U+5857,U+5915,U+59EB,U+5A9B,U+5C3B,U+6012,U+61B6,U+62B1,U+6311,U+6577,U+65E2,U+65EC,U+6613,U+6790,U+6CB9,U+7372,U+76AE,U+7D5E,U+7FCC,U+88AB,U+88D5,U+8CAF,U+8DDD,U+8ECD,U+8F38,U+8F9E,U+8FEB,U+9063,U+90F5,U+93E1,U+968A,U+968F,U+98FE,U+9EC4,U+FF1D,U+FF27,U+FF2A,U+FF36,U+FF3B,U+FF3D,U+FFE5}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.96.woff2)format("woff2");unicode-range:U+4E03,U+4F38,U+50B7,U+5264,U+5348,U+5371,U+585A,U+58CA,U+5951,U+59B9,U+59D4,U+5B98,U+5F8B,U+6388,U+64CD,U+65E7,U+6803,U+6B6F,U+6D66,U+6E0B,U+6ECB,U+6FC3,U+72AC,U+773C,U+77E2,U+7968,U+7A74,U+7DBA,U+7DD1,U+7E3E,U+808C,U+811A,U+8179,U+8239,U+8584,U+8A0E,U+8A72,U+8B66,U+8C46,U+8F29,U+90A3,U+9234,U+96F0,U+9769,U+9774,U+9AA8,U+FF26,U+FF28,U+FF9E-FF9F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.97.woff2)format("woff2");unicode-range:U+7E,U+B4,U+25C6,U+2661,U+4E92,U+4EEE,U+4FFA,U+5144,U+5237,U+5287,U+52B4,U+58C1,U+5BFF,U+5C04,U+5C06,U+5E95,U+5F31,U+5F93,U+63C3,U+640D,U+6557,U+6614,U+662F,U+67D3,U+690D,U+6BBA,U+6E6F,U+72AF,U+732B,U+7518,U+7AE0,U+7AE5,U+7AF6,U+822A,U+89E6,U+8A3A,U+8A98,U+8CB8,U+8DE1,U+8E8D,U+95D8,U+961C,U+96A3,U+96EA,U+9BAE,U+FF20,U+FF22,U+FF29,U+FF2B-FF2C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.98.woff2)format("woff2");unicode-range:U+25CB,U+4E71,U+4F59,U+50D5,U+520A,U+5217,U+5230,U+523A-523B,U+541B,U+5439,U+5747,U+59C9,U+5BDF,U+5C31,U+5DE8,U+5E7C,U+5F69,U+6050,U+60D1,U+63CF,U+663C,U+67C4,U+6885,U+6C38,U+6D6E,U+6DB2,U+6DF7,U+6E2C,U+6F5F,U+7532,U+76E3-76E4,U+7701,U+793C,U+79F0,U+7A93,U+7D00,U+7DE0,U+7E54,U+8328,U+8840,U+969C,U+96E8,U+9811,U+9AEA,U+9B5A,U+FF24,U+FF2E,U+FF57}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.99.woff2)format("woff2");unicode-range:U+2191,U+505C,U+52E4,U+5305,U+535A,U+56E0,U+59BB,U+5ACC,U+5B09,U+5B87,U+5C90,U+5DF1,U+5E2D,U+5E33,U+5F3E,U+6298,U+6383,U+653B,U+6697,U+6804,U+6A39,U+6CCA,U+6E90,U+6F2B,U+702C,U+7206,U+7236,U+7559,U+7565,U+7591,U+75C7,U+75DB,U+7B4B,U+7BB1,U+7D99,U+7FBD,U+8131,U+885B,U+8B1D,U+8FF7,U+9003,U+9045,U+96A0,U+9732,U+990A,U+99D0,U+9E97,U+9F62,U+FF25,U+FF2D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.100.woff2)format("woff2");unicode-range:U+4E08,U+4F9D,U+5012,U+514D,U+51B7,U+5275,U+53CA,U+53F8,U+5584,U+57FC,U+5B9D,U+5BFA,U+5C3E,U+5F01,U+5FB4,U+5FD7,U+606F,U+62E1,U+6563,U+6674,U+6CB3,U+6D3E,U+6D74,U+6E1B,U+6E2F,U+718A,U+7247,U+79D8,U+7D14,U+7D66,U+7D71,U+7DF4,U+7E41,U+80CC,U+8155,U+83D3,U+8A95,U+8AB2,U+8AD6,U+8CA1,U+9000,U+9006,U+9678,U+97D3,U+9808,U+98EF,U+9A5A,U+9B45,U+FF23,U+FF30}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.101.woff2)format("woff2");unicode-range:U+25BC,U+3012,U+4EF2,U+4F0A,U+516B,U+5373,U+539A,U+53B3,U+559C,U+56F0,U+5727,U+5742,U+5965,U+59FF,U+5BC6,U+5DFB,U+5E45,U+5EAD,U+5FB3,U+6211,U+6253,U+639B,U+63A8,U+6545,U+6575,U+6628,U+672D,U+68A8,U+6BDB,U+6D25,U+707D,U+767E,U+7834,U+7B46,U+7BC9,U+8074,U+82E6,U+8349,U+8A2A,U+8D70,U+8DA3,U+8FCE,U+91CC,U+967D,U+97FF,U+9996,U+FF1C,U+FF2F,U+FF32,U+FF34}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.102.woff2)format("woff2");unicode-range:U+3D,U+5E,U+25CF,U+4E0E,U+4E5D,U+4E73,U+4E94,U+4F3C,U+5009,U+5145,U+51AC,U+5238,U+524A,U+53F3,U+547C,U+5802,U+5922,U+5A66,U+5C0E,U+5DE6,U+5FD8,U+5FEB,U+6797,U+685C,U+6B7B,U+6C5F-6C60,U+6CC9,U+6CE2,U+6D17,U+6E21,U+7167,U+7642,U+76DB,U+8001,U+821E,U+8857,U+89D2,U+8B1B,U+8B70,U+8CB4,U+8CDE,U+8F03,U+8F2A,U+968E,U+9B54,U+9E7F,U+9EBB,U+FF05,U+FF33}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.103.woff2)format("woff2");unicode-range:U+500D,U+5074,U+50CD,U+5175,U+52E2,U+5352,U+5354,U+53F2,U+5409,U+56FA,U+5A18,U+5B88,U+5BDD,U+5CA9,U+5F92,U+5FA9,U+60A9,U+623F,U+6483,U+653F,U+666F,U+66AE,U+66F2,U+6A21,U+6B66,U+6BCD,U+6D5C,U+796D,U+7A4D,U+7AEF,U+7B56,U+7B97,U+7C4D,U+7E04,U+7FA9,U+8377,U+83DC,U+83EF,U+8535,U+8863,U+88CF,U+88DC,U+8907,U+8ACB,U+90CE,U+91DD,U+FF0B,U+FF0D,U+FF19,U+FF65}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.104.woff2)format("woff2");unicode-range:U+4E01,U+4E21,U+4E38,U+52A9,U+547D,U+592E,U+5931,U+5B63,U+5C40,U+5DDE,U+5E78,U+5EFA,U+5FA1,U+604B,U+6075,U+62C5,U+632F,U+6A19,U+6C0F,U+6C11,U+6C96,U+6E05,U+70BA,U+71B1,U+7387,U+7403,U+75C5,U+77ED,U+795D,U+7B54,U+7CBE,U+7D19,U+7FA4,U+8089,U+81F4,U+8208,U+8336,U+8457,U+8A33,U+8C4A,U+8CA0,U+8CA8,U+8CC0,U+9014,U+964D,U+9803,U+983C,U+98DB,U+FF17,U+FF21}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.105.woff2)format("woff2");unicode-range:U+25,U+25A0,U+4E26,U+4F4E,U+5341,U+56F2,U+5BBF,U+5C45,U+5C55,U+5C5E,U+5DEE,U+5E9C,U+5F7C,U+6255,U+627F,U+62BC,U+65CF,U+661F,U+666E,U+66DC,U+67FB,U+6975,U+6A4B,U+6B32,U+6DF1,U+6E29,U+6FC0,U+738B,U+7686,U+7A76,U+7A81,U+7C73,U+7D75,U+7DD2,U+82E5,U+82F1,U+85AC,U+888B,U+899A,U+8A31,U+8A8C,U+8AB0,U+8B58,U+904A,U+9060,U+9280,U+95B2,U+984D,U+9CE5,U+FF18}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.106.woff2)format("woff2");unicode-range:U+30F6,U+50AC,U+5178,U+51E6,U+5224,U+52DD,U+5883,U+5897,U+590F,U+5A5A,U+5BB3,U+5C65,U+5E03,U+5E2B,U+5E30,U+5EB7,U+6271,U+63F4,U+64AE,U+6574,U+672B,U+679A,U+6A29-6A2A,U+6CA2,U+6CC1,U+6D0B,U+713C,U+74B0,U+7981,U+7A0B,U+7BC0,U+7D1A,U+7D61,U+7FD2,U+822C,U+8996,U+89AA,U+8CAC,U+8CBB,U+8D77,U+8DEF,U+9020,U+9152,U+9244,U+9662,U+967A,U+96E3,U+9759,U+FF16}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.107.woff2)format("woff2");unicode-range:U+23,U+3C,U+2192,U+4E45,U+4EFB,U+4F50,U+4F8B,U+4FC2,U+5024,U+5150,U+5272,U+5370,U+53BB,U+542B,U+56DB,U+56E3,U+57CE,U+5BC4,U+5BCC,U+5F71,U+60AA,U+6238,U+6280,U+629C,U+6539,U+66FF,U+670D,U+677E-677F,U+6839,U+69CB,U+6B4C,U+6BB5,U+6E96,U+6F14,U+72EC,U+7389,U+7814,U+79CB,U+79D1,U+79FB,U+7A0E,U+7D0D,U+85E4,U+8D64,U+9632,U+96E2,U+9805,U+99AC,U+FF1E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.108.woff2)format("woff2");unicode-range:U+2605-2606,U+301C,U+4E57,U+4FEE,U+5065,U+52DF,U+533B,U+5357,U+57DF,U+58EB,U+58F0,U+591C,U+592A-592B,U+5948,U+5B85,U+5D0E,U+5EA7,U+5FF5,U+6025,U+63A1,U+63A5,U+63DB,U+643A,U+65BD,U+671D,U+68EE,U+6982,U+6B73,U+6BD4,U+6D88,U+7570,U+7B11,U+7D76,U+8077,U+8217,U+8C37,U+8C61,U+8CC7,U+8D85,U+901F,U+962A,U+9802,U+9806,U+9854,U+98F2,U+9928,U+99C5,U+9ED2}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.109.woff2)format("woff2");unicode-range:U+266A,U+4F11,U+533A,U+5343,U+534A,U+53CD,U+5404,U+56F3,U+5B57-5B58,U+5BAE,U+5C4A,U+5E0C,U+5E2F,U+5EAB,U+5F35,U+5F79,U+614B,U+6226,U+629E,U+65C5,U+6625,U+6751,U+6821,U+6B69,U+6B8B,U+6BCE,U+6C42,U+706B,U+7C21,U+7CFB,U+805E,U+80B2,U+82B8,U+843D,U+8853,U+88C5,U+8A3C,U+8A66,U+8D8A,U+8FBA,U+9069,U+91CF,U+9752,U+975E,U+9999,U+FF0F-FF10,U+FF14-FF15}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.110.woff2)format("woff2");unicode-range:U+40,U+4E86,U+4E95,U+4F01,U+4F1D,U+4FBF,U+5099,U+5171,U+5177,U+53CB,U+53CE,U+53F0,U+5668,U+5712,U+5BA4,U+5CA1,U+5F85,U+60F3,U+653E,U+65AD,U+65E9,U+6620,U+6750,U+6761,U+6B62,U+6B74,U+6E08,U+6E80,U+7248,U+7531,U+7533,U+753A,U+77F3,U+798F,U+7F6E,U+8449,U+88FD,U+89B3,U+8A55,U+8AC7,U+8B77,U+8DB3,U+8EFD,U+8FD4,U+9031-9032,U+9580,U+9589,U+96D1,U+985E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.111.woff2)format("woff2");unicode-range:U+2B,U+D7,U+300E-300F,U+4E07,U+4E8C,U+512A,U+5149,U+518D,U+5236,U+52B9,U+52D9,U+5468,U+578B,U+57FA,U+5B8C,U+5BA2,U+5C02,U+5DE5,U+5F37,U+5F62,U+623B,U+63D0,U+652F,U+672A,U+6848,U+6D41,U+7136,U+7537,U+754C,U+76F4,U+79C1,U+7BA1,U+7D44,U+7D4C,U+7DCF,U+7DDA,U+7DE8,U+82B1,U+897F,U+8CA9,U+8CFC,U+904E,U+9664,U+982D,U+9858,U+98A8,U+9A13,U+FF13,U+FF5C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.112.woff2)format("woff2");unicode-range:U+4E16,U+4E3B,U+4EA4,U+4EE4,U+4F4D,U+4F4F,U+4F55,U+4F9B,U+5317,U+5358,U+53C2,U+53E4,U+548C,U+571F,U+59CB,U+5CF6,U+5E38,U+63A2,U+63B2,U+6559,U+662D,U+679C,U+6C7A,U+72B6,U+7523,U+767D,U+770C,U+7A2E,U+7A3F,U+7A7A,U+7B2C,U+7B49,U+7D20,U+7D42,U+8003,U+8272,U+8A08,U+8AAC,U+8CB7,U+8EAB,U+8EE2,U+9054-9055,U+90FD,U+914D,U+91CD,U+969B,U+97F3,U+984C,U+FF06}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.113.woff2)format("woff2");unicode-range:U+26,U+5F,U+2026,U+203B,U+4E09,U+4EAC,U+4ED5,U+4FA1,U+5143,U+5199,U+5207,U+539F,U+53E3,U+53F7,U+5411,U+5473,U+5546,U+55B6,U+5929,U+597D,U+5BB9,U+5C11,U+5C4B,U+5DDD,U+5F97,U+5FC5,U+6295,U+6301,U+6307,U+671B,U+76F8,U+78BA,U+795E,U+7D30,U+7D39,U+7D9A,U+89E3,U+8A00,U+8A73,U+8A8D,U+8A9E,U+8AAD,U+8ABF,U+8CEA,U+8ECA,U+8FFD,U+904B,U+9650,U+FF11-FF12}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.114.woff2)format("woff2");unicode-range:U+3E,U+3005,U+4E0D,U+4E88,U+4ECB,U+4EE3,U+4EF6,U+4FDD,U+4FE1,U+500B,U+50CF,U+5186,U+5316,U+53D7,U+540C,U+544A,U+54E1,U+5728,U+58F2,U+5973,U+5B89,U+5C71,U+5E02,U+5E97,U+5F15,U+5FC3,U+5FDC,U+601D,U+611B,U+611F,U+671F,U+6728,U+6765,U+683C,U+6B21,U+6CE8,U+6D3B,U+6D77,U+7530,U+7740,U+7ACB,U+7D50,U+826F,U+8F09,U+8FBC,U+9001,U+9053,U+91CE,U+9762,U+98DF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.115.woff2)format("woff2");unicode-range:U+7C,U+3080,U+4EE5,U+5148,U+516C,U+521D,U+5225,U+529B,U+52A0,U+53EF,U+56DE,U+56FD,U+5909,U+591A,U+5B66,U+5B9F,U+5BB6,U+5BFE,U+5E73,U+5E83,U+5EA6,U+5F53,U+6027,U+610F,U+6210,U+6240,U+660E,U+66F4,U+66F8,U+6709,U+6771,U+697D,U+69D8,U+6A5F,U+6C34,U+6CBB,U+73FE,U+756A,U+7684,U+771F,U+793A,U+7F8E,U+898F,U+8A2D,U+8A71,U+8FD1,U+9078,U+9577,U+96FB,U+FF5E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.116.woff2)format("woff2");unicode-range:U+A9,U+3010-3011,U+30E2,U+4E0B,U+4ECA,U+4ED6,U+4ED8,U+4F53,U+4F5C,U+4F7F,U+53D6,U+540D,U+54C1,U+5730,U+5916,U+5B50,U+5C0F,U+5F8C,U+624B,U+6570,U+6587,U+6599,U+691C,U+696D,U+6CD5,U+7269,U+7279,U+7406,U+767A-767B,U+77E5,U+7D04,U+7D22,U+8005,U+80FD,U+81EA,U+8868,U+8981,U+89A7,U+901A,U+9023,U+90E8,U+91D1,U+9332,U+958B,U+96C6,U+9AD8,U+FF1A,U+FF1F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.117.woff2)format("woff2");unicode-range:U+4E,U+A0,U+3000,U+300C-300D,U+4E00,U+4E0A,U+4E2D,U+4E8B,U+4EBA,U+4F1A,U+5165,U+5168,U+5185,U+51FA,U+5206,U+5229,U+524D,U+52D5,U+5408,U+554F,U+5831,U+5834,U+5927,U+5B9A,U+5E74,U+5F0F,U+60C5,U+65B0,U+65B9,U+6642,U+6700,U+672C,U+682A,U+6B63,U+6C17,U+7121,U+751F,U+7528,U+753B,U+76EE,U+793E,U+884C,U+898B,U+8A18,U+9593,U+95A2,U+FF01,U+FF08-FF09}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.118.woff2)format("woff2");unicode-range:U+21-22,U+27-2A,U+2C-3B,U+3F,U+41-4D,U+4F-5D,U+61-7B,U+7D,U+AB,U+AE,U+B2-B3,U+B7,U+BB,U+C9,U+CD,U+D6,U+D8,U+DC,U+E0-E5,U+E7-ED,U+EF,U+F1-F4,U+F6,U+F8,U+FA,U+FC-FD,U+103,U+14D,U+1B0,U+300-301,U+1EBF,U+1EC7,U+2013-2014,U+201C-201D,U+2039-203A,U+203C,U+2048-2049,U+2113,U+2122,U+65E5,U+6708,U+70B9}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.119.woff2)format("woff2");unicode-range:U+20,U+2027,U+3001-3002,U+3041-307F,U+3081-308F,U+3091-3093,U+3099-309A,U+309D-309E,U+30A1-30E1,U+30E3-30ED,U+30EF-30F0,U+30F2-30F4,U+30FB-30FE,U+FF0C,U+FF0E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWMxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWFxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWNxL4g7eau9x0.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWCxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWDxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWOxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWPxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWBxL4g7eau.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/quicksand/v36/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58m-wjwxUD2GF9Zc.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:Quicksand;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/quicksand/v36/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58i-wjwxUD2GF9Zc.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:Quicksand;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/quicksand/v36/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58a-wjwxUD2GFw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/sniglet/v17/cIf9MaFLtkE3UjaJ9CChYUsEkIpdQQ.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/sniglet/v17/cIf9MaFLtkE3UjaJ9C6hYUsEkIo.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:Urbanist;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/urbanist/v17/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDyx4vH5mqacG1Koy1cIU.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:Urbanist;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/urbanist/v17/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDyx4vEZmqacG1Koy1.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}*,:before,:after{--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: }::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\: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%3Cg%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/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='M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-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-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\: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\: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%3Cg%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/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\: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\: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\: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\:bug-bold-duotone,[i-solar\:bug-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='M19 11.938V15a7 7 0 0 1-6.25 6.96V15a.75.75 0 0 0-1.5 0v6.96A7 7 0 0 1 5 15v-3.062A3.94 3.94 0 0 1 8.938 8h6.124A3.94 3.94 0 0 1 19 11.938' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M19 14.75v-1.5h3a.75.75 0 0 1 0 1.5zm-1.504 4.586c.31-.393.58-.82.801-1.276l2.538 1.27a.75.75 0 1 1-.67 1.34zM5.703 18.06q.333.684.801 1.276l-2.669 1.335a.75.75 0 0 1-.67-1.342zM5 13.25H2a.75.75 0 0 0 0 1.5h3zm12.354-4.515l2.81-1.406a.75.75 0 1 1 .671 1.341L18.42 9.88a4 4 0 0 0-1.065-1.144M6.647 8.735c-.427.306-.79.695-1.067 1.144L3.165 8.67a.75.75 0 0 1 .67-1.341zM16.5 8.27V7.5a4.5 4.5 0 1 0-9 0v.77A3.9 3.9 0 0 1 8.938 8h6.124c.508 0 .993.096 1.438.27'/%3E%3Cpath fill='currentColor' d='M6.376 1.584a.75.75 0 0 0 .208 1.04l2.36 1.573a4.5 4.5 0 0 1 1.387-.877L7.416 1.376a.75.75 0 0 0-1.04.208m8.68 2.613a4.5 4.5 0 0 0-1.387-.877l2.915-1.944a.75.75 0 1 1 .832 1.248z' opacity='.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 14.25a.75.75 0 0 1 .75.75v7h-1.5v-7a.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\: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-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\:close-circle-bold-duotone,[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\:dialog-2-bold-duotone,[i-solar\:dialog-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' fill-rule='evenodd' d='m10.404 22.48l.275-.465c.44-.745.66-1.117 1.012-1.325c.351-.207.81-.222 1.725-.252c.859-.027 1.436-.102 1.93-.306a4.24 4.24 0 0 0 2.295-2.296c.323-.779.323-1.767.323-3.743v-.848c0-2.777 0-4.165-.625-5.185c-.35-.57-.83-1.05-1.4-1.4c-1.02-.625-2.408-.625-5.185-.625H8.21c-2.777 0-4.165 0-5.185.625c-.57.35-1.05.83-1.4 1.4C1 9.08 1 10.468 1 13.245v.848c0 1.976 0 2.964.323 3.744a4.24 4.24 0 0 0 2.295 2.295c.494.204 1.07.28 1.93.306c.916.03 1.374.045 1.725.252c.35.208.571.58 1.012 1.325l.275.465c.41.692 1.434.692 1.844 0m2.789-7.963a1.06 1.06 0 1 0 0-2.12a1.06 1.06 0 0 0 0 2.12m-2.65-1.06a1.06 1.06 0 1 1-2.121 0a1.06 1.06 0 0 1 2.12 0m-4.772 1.06a1.06 1.06 0 1 0 0-2.12a1.06 1.06 0 0 0 0 2.12' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M15.486 1c1.267 0 2.274 0 3.082.077c.829.079 1.53.244 2.153.626a4.8 4.8 0 0 1 1.575 1.575c.383.624.548 1.325.627 2.153c.076.808.076 1.816.076 3.082v.866c0 .901 0 1.619-.04 2.2c-.04.595-.125 1.106-.323 1.584a4.77 4.77 0 0 1-2.67 2.617q-.21.082-.368.135h-1.65c.016-.499.016-1.093.016-1.822v-.848c0-2.777 0-4.165-.625-5.185c-.35-.57-.83-1.05-1.4-1.4c-1.02-.625-2.408-.625-5.185-.625H8.21c-.986 0-1.796 0-2.478.028v-1.65q.05-.17.13-.396q.133-.389.346-.739a4.8 4.8 0 0 1 1.576-1.575c.624-.382 1.324-.547 2.153-.626C10.745 1 11.752 1 13.019 1z' 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\: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\: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\: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\: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\: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\: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\: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='solarMagniferLineDuotone0'%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(%23solarMagniferLineDuotone0)'/%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-2-bold-duotone,[i-solar\:microphone-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' 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' d='M9.75 7.75A.75.75 0 0 0 9 7H6.298a5.751 5.751 0 0 1 11.404 0H13.5a.75.75 0 0 0 0 1.5h4.25V10H13.5a.75.75 0 0 0 0 1.5h4.201a5.751 5.751 0 0 1-11.403 0H9A.75.75 0 0 0 9 10H6.25V8.5H9a.75.75 0 0 0 .75-.75' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12.75 10.75c0 .414.336.75.75.75h4.201l.049-1.5H13.5a.75.75 0 0 0-.75.75m0-3c0 .414.336.75.75.75h4.25L17.701 7H13.5a.75.75 0 0 0-.75.75m-3 0A.75.75 0 0 0 9 7H6.298L6.25 8.5H9a.75.75 0 0 0 .75-.75m0 3A.75.75 0 0 0 9 10H6.25l.048 1.5H9a.75.75 0 0 0 .75-.75'/%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\: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\: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\: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\: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\: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\: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\: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-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-solar\:volume-loud-bold-duotone,[i-solar\:volume-loud-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.003 11.716c.037-1.843.056-2.764.668-3.552a3 3 0 0 1 .413-.431c.752-.636 1.746-.636 3.733-.636c.71 0 1.065 0 1.403-.092q.105-.03.209-.067c.33-.121.627-.33 1.22-.746c2.338-1.645 3.508-2.467 4.489-2.11c.188.069.37.168.533.29c.848.635.913 2.115 1.042 5.073c.048 1.096.08 2.034.08 2.555s-.032 1.46-.08 2.555c-.13 2.958-.194 4.438-1.042 5.073a2.1 2.1 0 0 1-.533.29c-.982.357-2.15-.465-4.49-2.11c-.592-.416-.889-.625-1.22-.746a3 3 0 0 0-.208-.067c-.338-.092-.693-.092-1.403-.092c-1.987 0-2.98 0-3.733-.636a3 3 0 0 1-.413-.43c-.612-.79-.63-1.71-.668-3.552a14 14 0 0 1 0-.57'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M19.49 5.552a.66.66 0 0 1 .97.094l-.53.471l.53-.47h.002v.002l.004.004l.007.009l.078.112a5 5 0 0 1 .187.305c.149.265.339.652.526 1.171C21.64 8.291 22 9.851 22 12s-.36 3.71-.736 4.75c-.187.52-.377.907-.526 1.172a5 5 0 0 1-.265.417l-.007.009l-.003.003l-.001.002s-.001.001-.531-.47l.53.471a.66.66 0 0 1-.972.094a.77.77 0 0 1-.091-1.03l.003-.005l.028-.04a3 3 0 0 0 .126-.208c.11-.195.264-.506.422-.943c.314-.871.643-2.252.643-4.222c0-1.969-.329-3.35-.643-4.222a6 6 0 0 0-.422-.942a3 3 0 0 0-.126-.207l-.028-.041l-.003-.004' clip-rule='evenodd' opacity='.4'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M17.757 8.416c.333-.197.753-.07.938.286l-.603.357l.603-.357l.001.002l.002.003l.003.007l.01.018l.024.053q.028.063.07.17c.053.145.12.35.185.62c.13.54.252 1.337.252 2.425c0 1.089-.122 1.886-.252 2.426c-.065.27-.132.475-.186.619a3 3 0 0 1-.094.223l-.009.018l-.003.007l-.002.003v.002s-.001.001-.604-.356l.603.357c-.185.355-.605.483-.938.286c-.33-.196-.45-.638-.272-.991l.004-.01l.035-.085c.032-.086.08-.23.13-.438c.1-.416.208-1.09.208-2.06c0-.971-.108-1.645-.208-2.061a4 4 0 0 0-.165-.523l-.004-.01c-.179-.354-.058-.796.272-.991' clip-rule='evenodd' 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-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='svgSpinners3DotsFade0' fill='freeze' attributeName='opacity' begin='0;svgSpinners3DotsFade1.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='svgSpinners3DotsFade0.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='svgSpinners3DotsFade1' fill='freeze' attributeName='opacity' begin='svgSpinners3DotsFade0.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}[i-solar\:danger-circle-bold-duotone~=disabled\:]:disabled{--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%}.prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){border-left:.25em solid var(--un-prose-borders);margin:1em 0;padding-left:1em;font-style:italic}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875em;font-weight:600}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):before{content:"`"}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){border-radius:.375rem;padding:1.25rem 1.5rem;overflow-x:auto}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type=A]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol>li):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(ul>li):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-hr);margin:2em 0}.prose :where(table):not(:where(.not-prose,.not-prose *)){border-collapse:collapse;margin:1em 0;display:block;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;border-radius:.25rem;padding:.25rem .5rem;font-size:.875em}.prose :where(details):not(:where(.not-prose,.not-prose *)){background:var(--un-prose-bg-soft);margin:1em 0;padding:1.25rem 1.5rem}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.container,[container=""]{width:100%}.scrollbar-none{scrollbar-width: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}.pointer-events-none,[pointer-events-none=""],.disabled\:pointer-events-none:disabled{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-position-absolute=""]:before,[before~=absolute]:before,.after\:absolute:after,[after~=absolute]:after{position:absolute}.inset-0,[inset-0=""],.before\:inset-0:before,[before\:inset-0=""]:before,[before~=inset-0]:before,[after~=inset-0]:after{top:0;bottom:0;left:0;right:0}.inset-x-0,[inset-x-0=""]{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0,[bottom-0=""]{bottom:0}.bottom-11,[bottom-11=""]{bottom:2.75rem}.bottom-2{bottom:.5rem}.left-0,[left-0=""]{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.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: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}[bottom~="[calc(100%+8px)]"]{bottom:calc(100% + 8px)}[bottom~="3"]{bottom:.75rem}[right~="3"]{right:.75rem}[top~="[65dvh]"]{top:65dvh}[top~="[calc(100dvh-12rem)]"]{top:calc(100dvh - 12rem)}[top~="[calc(100dvh-15rem)]"]{top:calc(100dvh - 15rem)}.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-index:100}.z-1000{z-index:1000}.z-2,[z-2=""]{z-index:2}.z-3,[z-3=""]{z-index:3}.z-30,[z-30=""]{z-index:30}.z-4,[z-4=""]{z-index:4}.z-99,[z-99=""]{z-index:99}[before~=z-0]:before{z-index:0}[after~=z--2]:after{z-index:-2}.grid,[grid=""],[grid~=\~]{display:grid}.col-span-full{grid-column:1/-1}.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}.cols-\[150px_1fr\],[grid~="cols-[150px_1fr]"]{grid-template-columns:150px 1fr}.cols-\[20px_1fr_60px\],[grid~="cols-[20px_1fr_60px]"]{grid-template-columns:20px 1fr 60px}.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-2,.grid-cols-2,[grid-cols-2=""],[grid~=cols-2]{grid-template-columns:repeat(2,minmax(0,1fr))}.m-0,[m0=""]{margin:0}.m-1,[m-1=""]{margin:.25rem}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.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}.mx2,[mx2=""]{margin-left:.5rem;margin-right:.5rem}.my{margin-top:1rem;margin-bottom:1rem}.my-0,[my-0=""]{margin-top:0;margin-bottom:0}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5,[my-5=""]{margin-top:1.25rem;margin-bottom:1.25rem}.my-auto,[my-auto=""]{margin-top:auto;margin-bottom:auto}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1,[mb-1=""]{margin-bottom:.25rem}.mb-2,.mb2,[mb-2=""],[mb2=""]{margin-bottom:.5rem}.mb-3,[mb-3=""]{margin-bottom:.75rem}.mb-4,[mb-4=""]{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml{margin-left:1rem}.ml-0\.5,[ml-0\.5=""]{margin-left:.125rem}.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\.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}.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,[size-3=""]{width:.75rem;height:.75rem}.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}.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-16{height:4rem}.h-18,[h-18=""]{height:4.5rem}.h-1lh{height:1lh}.h-2,.h2,[h-2=""]{height:.5rem}.h-24,[h-24=""]{height:6rem}.h-3\.5{height:.875rem}.h-30,[h-30=""]{height:7.5rem}.h-4,[h-4=""]{height:1rem}.h-48,[h-48=""]{height:12rem}.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-fit,[h-fit=""]{height:-moz-fit-content;height:fit-content}.h-full,[h-full=""]{height:100%}.h1{height:.25rem}.h3{height:.75rem}.max-h-\[10lh\],[max-h~="[10lh]"]{max-height:10lh}.max-h-\[25dvh\]{max-height:25dvh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[96\%\]{max-height:96%}.max-h-\[calc\(100dvh-7lh\)\]{max-height:calc(100dvh - 7lh)}.max-h-60,[max-h-60=""]{max-height:15rem}.max-h-none,[max-h-none=""]{max-height:none}.max-w-2xl{max-width:42rem}.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-16,[min-h-16=""]{min-height:4rem}.min-h-40px,[min-h-40px=""]{min-height:40px}.min-h-70dvh,[min-h-70dvh=""]{min-height:70dvh}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\],[min-w~="[160px]"]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-0,[min-w-0=""]{min-width:0}.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}.w-\[92vw\]{width:92vw}.w-0\!{width:0!important}.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-100vw,[w-100vw=""]{width:100vw}.w-11{width:2.75rem}.w-18,[w-18=""]{width:4.5rem}.w-1lh{width:1lh}.w-2,[w-2=""]{width:.5rem}.w-25\%{width:25%}.w-3\.5{width:.875rem}.w-30,[w-30=""]{width:7.5rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-5,[w-5=""]{width:1.25rem}.w-8,[w-8=""]{width:2rem}.w-90\%{width:90%}.w-95\%{width:95%}.w-fit,[w-fit=""]{width:-moz-fit-content;width:fit-content}.w-full,[w-full=""],[w~="100%"],[w~=full]{width:100%}[h~="[14px]"]{height:14px}[h~="[calc(100%-3rem)]"]{height:calc(100% - 3rem)}[h~="300"]{height:75rem}[h~="50dvh"]{height:50dvh}[h~="80dvh"]{height:80dvh}[h~="85dvh"]{height:85dvh}[h~=auto]{height:auto}[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~="100dvh"]{max-height:100dvh}[max-h~="40%"]{max-height:40%}[max-w~="[calc(100dvw-1rem)]"]{max-width:calc(100dvw - 1rem)}[max-w~="500px"]{max-width:500px}[min-h~="[100px]"]{min-height:100px}[min-h~="[2lh]"]{min-height:2lh}[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%}[min-w~="3em"]{min-width:3em}[min-w~="50vw"]{min-width:50vw}[min-w~="6"]{min-width:1.5rem}[w~="[1px]"]{width:1px}[w~="100dvw"]{width:100dvw}[w~="12.5"]{width:3.125rem}[w~="20"]{width:5rem}[w~="50"]{width:12.5rem}[w~="70%"]{width:70%}.before\:h-full:before{height:100%}.before\:w-1:before{width:.25rem}[before\:h-full=""]:before{height:100%}[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%}.max-w-screen-xl,[max-w-screen-xl=""]{max-width:1280px}.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,[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\%\],[transform~="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-\[50\%\],[transform~="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--2,[transform~=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-\[-100\%\],[transform~="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-\[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~="[-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))}.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))}.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))}.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-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-150{--un-scale-x:1.5;--un-scale-y:1.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))}.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 pulse{0%,to{opacity:1}50%{opacity:.5}}@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}.disabled\:cursor-default:disabled{cursor:default}.cursor-pointer,[cursor-pointer=""],[cursor~=pointer]{cursor:pointer}.cursor-not-allowed,.disabled\:cursor-not-allowed:disabled,[cursor~=disabled\:not-allowed]:disabled,[disabled\:cursor-not-allowed=""]:disabled{cursor:not-allowed}.cursor-ew-resize,[cursor-ew-resize=""]{cursor:ew-resize}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize-none,[resize-none=""]{resize:none}.appearance-none,[appearance-none=""]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.place-self-end{place-self:end}.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}.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}.gap-0\.5,[gap-0\.5=""]{gap:.125rem}.gap-1,[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=""],[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-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]){--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))}[divide~=y]>:not([hidden])~:not([hidden]){--un-divide-y-reverse:0;border-top-width:calc(1px*calc(1 - var(--un-divide-y-reverse)));border-bottom-width:calc(1px*var(--un-divide-y-reverse))}[divide~=gray\/25]>:not([hidden])~:not([hidden]){border-color:#9ca3af40}[border~=dashed],[divide~=dashed]>:not([hidden])~:not([hidden]){border-style:dashed}.of-clip,[of-clip=""]{overflow:clip}.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-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}.b,.border,[b=""],[border=""],[border~=\~],[border~="1"]{border-width:1px}.border-2,[border-2=""],[border~="2"],[border~="2px"]{border-width:2px}[border~="4"]{border-width:4px}.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))}.border-amber-200{--un-border-opacity:1;border-color:rgb(253 230 138/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-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-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,[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]{--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-red-200{--un-border-opacity:1;border-color:rgb(254 202 202/var(--un-border-opacity))}.border-white,[border~=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-neutral-600,.dark [border~=dark\:neutral-600],.dark [dark\:border-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-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-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,.dark [border~=dark\: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-red-800{--un-border-opacity:1;border-color:rgb(153 27 27/var(--un-border-opacity))}.dark [border~="dark:cyan-500/50"]{border-color:#06b6d480}.dark [border~="dark:neutral-700/30"]{border-color:#4040404d}.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:primary-950/10"]{border-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.1)}.dark [border~="dark:violet-500/50"]{border-color:#8b5cf680}[border~=cyan-200\/50]{border-color:#a5f3fc80}[border~=gray\/25]{border-color:#9ca3af40}[border~=neutral-200\/50]{border-color:#e5e5e580}[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~=primary-50]{--un-border-opacity:1;border-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))30%,oklch(100% 0 360/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 [border~="dark:focus:neutral-600"]:focus{--un-border-opacity:1;border-color:rgb(82 82 82/var(--un-border-opacity))}.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)}[border~=focus\:neutral-200]:focus{--un-border-opacity:1;border-color:rgb(229 229 229/var(--un-border-opacity))}[border~=focus\:neutral-400]:focus{--un-border-opacity:1;border-color:rgb(163 163 163/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))}.rounded,[rounded=""]{border-radius:.25rem}.rounded-2xl,[rounded-2xl=""]{border-radius:1rem}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-lg,[border~=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}.before\:rounded-full:before,[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-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-xl,[rounded-t-xl=""]{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-none,[border-none=""]{border-style:none}[border~=solid]{border-style:solid}.bg-amber-50{--un-bg-opacity:1;background-color:rgb(255 251 235/var(--un-bg-opacity))}.bg-amber-50\/80{background-color:#fffbebcc}.bg-black\/40,.dark .dark\:bg-black\/40{background-color:#0006}.bg-black\/50,[bg~=black\/50]{background-color:#00000080}.bg-blue-50,[bg-blue-50=""]{--un-bg-opacity:1;background-color:rgb(239 246 255/var(--un-bg-opacity))}.bg-green-50,[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-neutral-100,[bg-neutral-100=""],[bg~=neutral-100]{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.bg-neutral-200,.dark .dark\: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-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,.dark [bg~=dark\:neutral-400],[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-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 [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-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:color(display-p3 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%,color(display-p3 1 1 1/.1))}}@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:color(display-p3 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%,color(display-p3 1 1 1))}}@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{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,#fff3)}@supports (color:color(display-p3 0 0 0)){.bg-primary-100\/20{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,color(display-p3 1 1 1/.2))}}@supports (color:lab(0% 0 0)){.bg-primary-100\/20{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:color(display-p3 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%,color(display-p3 1 1 1/.3))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.4))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.05))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.5))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.6))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.7))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.8))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.9))}}@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=""]{--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:color(display-p3 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%,color(display-p3 1 1 1/.1))}}@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:color(display-p3 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%,color(display-p3 1 1 1))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.2))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.3))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.4))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.05))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.5))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.6))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.7))}}@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{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,#fffc)}@supports (color:color(display-p3 0 0 0)){.bg-primary-50\/80{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,color(display-p3 1 1 1/.8))}}@supports (color:lab(0% 0 0)){.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:color(display-p3 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%,color(display-p3 1 1 1/.9))}}@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\/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{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{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,.dark .dark\: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-400{--un-bg-opacity:1;background-color:rgb(248 113 113/var(--un-bg-opacity))}.bg-red-50,[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-red900,.dark [dark\:bg-red-900=""]{--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\/10{background-color:#f5f3ff1a}.bg-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-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-amber-900\/30{background-color:#78350f4d}.dark .dark\:bg-black\/30,.dark [bg~="dark:black/30"]{background-color:#0000004d}.dark .dark\:bg-blue-900\/30{background-color:#1e3a8a4d}.dark .dark\:bg-green-900\/30{background-color:#14532d4d}.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{background-color:#40404080}.dark .dark\:bg-neutral-800\/50,.dark [bg~="dark:neutral-800/50"]{background-color:#26262680}.dark .dark\:bg-neutral-900,.dark [bg~=dark\:neutral-900],.dark [dark\:bg-neutral-900=""]{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}.dark .dark\:bg-neutral-900\/20{background-color:#17171733}.dark .dark\:bg-neutral-900\/95{background-color:#171717f2}.dark .dark\:bg-primary-800\/25{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.25)}.dark .dark\:bg-red-700{--un-bg-opacity:1;background-color:rgb(185 28 28/var(--un-bg-opacity))}.dark .dark\:bg-red-900\/20{background-color:#7f1d1d33}.dark .dark\:bg-red-900\/30{background-color:#7f1d1d4d}.dark .dark\:bg-violet-900\/10{background-color:#4c1d951a}.dark [bg~="dark:[#4e34b9]"]{--un-bg-opacity:1;background-color:rgb(78 52 185/var(--un-bg-opacity))}.dark [bg~="dark:[#676085]"]{--un-bg-opacity:1;background-color:rgb(103 96 133/var(--un-bg-opacity))}.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/20"],.group:hover [bg~="group-hover:black/20"]{background-color:#0003}.dark [bg~=dark\:blue-900],.dark [dark\:bg-blue-900=""]{--un-bg-opacity:1;background-color:rgb(30 58 138/var(--un-bg-opacity))}.dark [bg~=dark\:complementary-800]{--un-bg-opacity:1;background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))}.dark [bg~=dark\:cyan-900]{--un-bg-opacity:1;background-color:rgb(22 78 99/var(--un-bg-opacity))}.dark [bg~=dark\:green-600]{--un-bg-opacity:1;background-color:rgb(22 163 74/var(--un-bg-opacity))}.dark [bg~=dark\:neutral-500]{--un-bg-opacity:1;background-color:rgb(115 115 115/var(--un-bg-opacity))}.dark [bg~="dark:neutral-900/50"]{background-color:#17171780}.dark [bg~="dark:neutral-900/70"]{background-color:#171717b3}.dark [bg~=dark\:neutral-950]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.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))}.dark [dark\:bg-green-900=""]{--un-bg-opacity:1;background-color:rgb(20 83 45/var(--un-bg-opacity))}.dark [dark\:bg-violet-900=""]{--un-bg-opacity:1;background-color:rgb(76 29 149/var(--un-bg-opacity))}[bg-violet-50=""]{--un-bg-opacity:1;background-color:rgb(245 243 255/var(--un-bg-opacity))}[bg~="[#cabeff]"]{--un-bg-opacity:1;background-color:rgb(202 190 255/var(--un-bg-opacity))}[bg~="[#e6e1fc]"]{--un-bg-opacity:1;background-color:rgb(230 225 252/var(--un-bg-opacity))}[bg~=\$bg-color]{background-color:var(--bg-color)}[bg~=black\/0]{background-color:#0000}[bg~=blue-100]{--un-bg-opacity:1;background-color:rgb(219 234 254/var(--un-bg-opacity))}[bg~=complementary-100]{--un-bg-opacity:1;background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))80%,oklch(100% 0 360/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-100\/70]{background-color:#f5f5f5b3}[bg~=neutral-200\/20]{background-color:#e5e5e533}[bg~=neutral-200\/50]{background-color:#e5e5e580}[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-500]{--un-bg-opacity:1;background-color:rgb(139 92 246/var(--un-bg-opacity))}[bg~=white\/70]{background-color:#ffffffb3}.dark [dark\:bg-neutral-700~=default\:]:default,.dark [dark\:bg-neutral-700~=checked\:]:checked{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .\[\&_div_span\]\:dark\:hover\:bg-cyan-300:hover div span{--un-bg-opacity:1;background-color:rgb(103 232 249/var(--un-bg-opacity))}.dark .\[\&_div_span\]\:dark\:hover\:bg-cyan-900:hover div span{--un-bg-opacity:1;background-color:rgb(22 78 99/var(--un-bg-opacity))}.dark .dark\:hover\:bg-black\/40:hover{background-color:#0006}.dark .dark\:hover\:bg-neutral-500:hover{--un-bg-opacity:1;background-color:rgb(115 115 115/var(--un-bg-opacity))}.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-800:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark .dark\:hover\:bg-primary-500:hover{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.dark .dark\:hover\:bg-red-500:hover{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.dark [bg~="dark:hover:complementary-700"]:hover{--un-bg-opacity:1;background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))}.dark [bg~="dark:hover:neutral-800"]:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark [dark\:hover\:bg-cyan-300=""]:hover{--un-bg-opacity:1;background-color:rgb(103 232 249/var(--un-bg-opacity))}.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}.hover\:bg-neutral-100:hover{--un-bg-opacity:1;background-color:rgb(245 245 245/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-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-primary-500:hover{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/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-red-500:hover{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.hover\:bg-white\/80:hover{background-color:#fffc}[bg~=hover\:complementary-200]:hover{--un-bg-opacity:1;background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))}[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-50]:hover{--un-bg-opacity:1;background-color:rgb(250 250 250/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-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-300:active{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.active\:bg-primary-600:active{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.active\:bg-red-600:active{--un-bg-opacity:1;background-color:rgb(220 38 38/var(--un-bg-opacity))}.dark .dark\:active\:bg-neutral-700:active{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .dark\:active\:bg-primary-700:active{--un-bg-opacity:1;background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.dark .dark\:active\:bg-red-700:active{--un-bg-opacity:1;background-color:rgb(185 28 28/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\:gray-50]:active{--un-bg-opacity:1;background-color:rgb(249 250 251/var(--un-bg-opacity))}[bg~=active\:neutral-300]:active{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.dark [bg~="dark:disabled:neutral-800"]:disabled{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}[bg~=disabled\:neutral-100]:disabled{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.before\:bg-violet-50:before{--un-bg-opacity:1;background-color:rgb(245 243 255/var(--un-bg-opacity))}.dark .before\:dark\:bg-violet-900:before{--un-bg-opacity:1;background-color:rgb(76 29 149/var(--un-bg-opacity))}[before\:bg-violet-50=""]:before{--un-bg-opacity:1;background-color:rgb(245 243 255/var(--un-bg-opacity))}.after\:bg-white:after{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.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-1,[p-1=""]{padding:.25rem}.p-1\.5,[p-1\.5=""]{padding:.375rem}.p-2,.p2,[p-2=""],[p~="2"],[p2=""]{padding:.5rem}.p-2\.5,[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-0{padding-left:0;padding-right:0}.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-6{padding-left:1.5rem;padding-right:1.5rem}.py,.py-4,[py~="4"]{padding-top:1rem;padding-bottom:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1,.py1,[py-1=""],[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}.pb-0{padding-bottom:0}.pb-2,[pb-2=""]{padding-bottom:.5rem}.pb-4,[pb-4=""]{padding-bottom:1rem}.pb-6,[pb-6=""]{padding-bottom:1.5rem}.pl,.pl-4,[pl-4=""]{padding-left:1rem}.pl-10{padding-left:2.5rem}.pl-3,[pl-3=""]{padding-left:.75rem}.pl-5,[pl-5=""]{padding-left:1.25rem}.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=""]{padding-top:1rem}.pt-0{padding-top:0}.pt-10,[pt-10=""]{padding-top:2.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-align:right}.text-wrap,[text-wrap=""]{text-wrap:wrap}.text-nowrap,[text-nowrap=""]{text-wrap:nowrap}.text-2xl,[text-2xl=""],[text~="2xl"]{font-size:1.5rem;line-height:2rem}.text-3xl,[text-3xl=""]{font-size:1.875rem;line-height:2.25rem}.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~="4xl"]{font-size:2.25rem;line-height:2.5rem}[text~="60"]{font-size:15rem}[default-text~="2"]:default{font-size:.5rem}.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-blue-300{--un-text-opacity:1;color:rgb(147 197 253/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{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.dark .dark\:text-neutral-100,.dark [dark\:text-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=""],.dark [text~=dark\:neutral-200]{--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-400,.dark [dark\:text-neutral-400=""],.dark [text~=dark\:neutral-400],.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,.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-neutral-600\/20,.dark [text~="dark:neutral-600/20"]{color:#52525233}.dark .dark\:text-primary-100,.dark [text~=dark\: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-300,.dark [text~=dark\:primary-300],.text-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)}.dark .dark\:text-primary-400,.dark [text~=dark\: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-500,.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))}.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-300{--un-text-opacity:1;color:rgb(252 165 165/var(--un-text-opacity))}.dark .dark\:text-red-400{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.dark .dark\:text-white,.dark [dark\:text-white=""],.dark [text~=dark\:white],.text-white,[text-white=""],[text~=white]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.dark .dark\:text-white\/50{color:#ffffff80}.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-600/50"]{color:#52525280}.dark [text~=dark\:neutral-900],.text-neutral-900,[text-neutral-900=""]{--un-text-opacity:1;color:rgb(23 23 23/var(--un-text-opacity))}.dark [text~=dark\:orange-500]{--un-text-opacity:1;color:rgb(249 115 22/var(--un-text-opacity))}.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-400]{--un-text-opacity:1;color:rgb(167 139 250/var(--un-text-opacity))}.dark [text~="dark:violet-600/90"]{color:#7c3aede6}.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-black,[text-black=""]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.text-blue-500{--un-text-opacity:1;color:rgb(59 130 246/var(--un-text-opacity))}.text-blue-700,[text-blue-700=""]{--un-text-opacity:1;color:rgb(29 78 216/var(--un-text-opacity))}.text-green-600{--un-text-opacity:1;color:rgb(22 163 74/var(--un-text-opacity))}.text-green-700,[text-green-700=""]{--un-text-opacity:1;color:rgb(21 128 61/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=""],[text~=neutral-700]{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}.text-neutral-800{--un-text-opacity:1;color:rgb(38 38 38/var(--un-text-opacity))}.text-neutral-900\/80{color:#171717cc}.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-red-500{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}.text-red-600{--un-text-opacity:1;color:rgb(220 38 38/var(--un-text-opacity))}.text-red-700,[text-red-700=""]{--un-text-opacity:1;color:rgb(185 28 28/var(--un-text-opacity))}.text-transparent{color:#0000}.text-violet-500,[text-violet-500=""],[text~=violet-500]{--un-text-opacity:1;color:rgb(139 92 246/var(--un-text-opacity))}[text~=complementary-400]{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 180)/var(--un-text-opacity))}[text~=cyan-400]{--un-text-opacity:1;color:rgb(34 211 238/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~=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~="dark:text-primary-300/80"]:hover{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.dark [text~="dark:hover:primary-200"]:hover{--un-text-opacity:1;color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/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-primary-600\/80]:hover{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}[text~=hover\:primary-500]:hover{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/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 [text~="placeholder:dark:hover:primary-400"]:hover::placeholder{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/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:primary-300"]::placeholder{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/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)}[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\: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-10,.lh-10{line-height:2.5rem}[leading~="[0.75]"]{line-height:.75}[leading~="[1]"]{line-height:1}.font-cuteen,[font-cuteen=""]{font-family:Sniglet}.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,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Arial,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-dashed,[decoration-dashed=""]{text-decoration-style:dashed}.tab,[aria-checked~=tab][aria-checked=true],[tab=""],[checked~=tab]:checked{-moz-tab-size:4;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)}.\[\&\: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,[opacity-0=""]{opacity:0}.op50,.opacity-50,[op50=""]{opacity:.5}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95,[opacity-95=""]{opacity:.95}[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=""]{--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-green-500=""]{--un-shadow-opacity:1;--un-shadow-color:rgb(34 197 94/var(--un-shadow-opacity))}[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)}.outline{outline-style:solid}.outline-none,[outline-none=""],[outline~=focus-within\:none]:focus-within{outline-offset:2px;outline:2px solid #0000}.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)}.focus\:ring-offset-2:focus{--un-ring-offset-width:2px}.dark .dark\:focus\:ring-neutral-600\/50:focus{--un-ring-color:#52525280 }.dark .dark\:focus\:ring-primary-600\/50:focus{--un-ring-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.5)}.dark .dark\:focus\:ring-red-600\/50:focus{--un-ring-color:#dc262680 }.focus\:ring-black\/10:focus{--un-ring-color:#0000001a }.focus\:ring-neutral-300\/50:focus{--un-ring-color:#d4d4d480 }.focus\:ring-primary-300\/50:focus{--un-ring-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.focus\:ring-red-300\/50:focus{--un-ring-color:#fca5a580 }.dark .dark\:focus\:ring-offset-neutral-900:focus{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(23 23 23/var(--un-ring-offset-opacity))}.focus\:ring-offset-white:focus{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(255 255 255/var(--un-ring-offset-opacity))}.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-opacity,[transition-opacity=""]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.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~=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~="10"]{transition-delay:10ms}[delay~="11"]{transition-delay:11ms}[delay~="19"]{transition-delay:19ms}[delay~="2"]{transition-delay:2ms}[delay~="20"]{transition-delay:20ms}[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:""}.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~="";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%;-moz-tab-size:4;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,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)}:root{--bg-color-light:#fff;--bg-color-dark:#121212;--progress-bar-color:#f472b6;--bg-color:var(--bg-color-light)}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:var(--progress-bar-color);opacity:.75;z-index:1031;width:100%;height:2px;position:fixed;top:0;left:0}@font-face{font-family:DM Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmmono/v15/aFTU7PB1QTsUX8KYthSQBK6PYK3EXw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmmono/v15/aFTU7PB1QTsUX8KYthqQBK6PYK0.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 Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmsans/v16/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRR232RmYJp8I5zzw.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 Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmsans/v16/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRSW32RmYJp8I5.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmserifdisplay/v16/-nFnOHM81r4j6k0gjAW3mujVU2B2G_5x0vrx52jJ3Q.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 Serif Display;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmserifdisplay/v16/-nFnOHM81r4j6k0gjAW3mujVU2B2G_Bx0vrx52g.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:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.2.woff2)format("woff2");unicode-range:U+D723-D728,U+D72A-D733,U+D735-D748,U+D74A-D74F,U+D752-D753,U+D755-D757,U+D75A-D75F,U+D762-D764,U+D766-D768,U+D76A-D76B,U+D76D-D76F,U+D771-D787,U+D789-D78B,U+D78D-D78F,U+D791-D797,U+D79A,U+D79C,U+D79E-D7A3,U+F900-F909,U+F90B-F92E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.3.woff2)format("woff2");unicode-range:U+D679-D68B,U+D68E-D69E,U+D6A0,U+D6A2-D6A7,U+D6A9-D6C3,U+D6C6-D6C7,U+D6C9-D6CB,U+D6CD-D6D3,U+D6D5-D6D6,U+D6D8-D6E3,U+D6E5-D6E7,U+D6E9-D6FB,U+D6FD-D717,U+D719-D71F,U+D721-D722}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.4.woff2)format("woff2");unicode-range:U+D5BC-D5C7,U+D5CA-D5CB,U+D5CD-D5CF,U+D5D1-D5D7,U+D5D9-D5DA,U+D5DC,U+D5DE-D5E3,U+D5E6-D5E7,U+D5E9-D5EB,U+D5ED-D5F6,U+D5F8,U+D5FA-D5FF,U+D602-D603,U+D605-D607,U+D609-D60F,U+D612-D613,U+D616-D61B,U+D61D-D637,U+D63A-D63B,U+D63D-D63F,U+D641-D647,U+D64A-D64C,U+D64E-D653,U+D656-D657,U+D659-D65B,U+D65D-D666,U+D668,U+D66A-D678}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.5.woff2)format("woff2");unicode-range:U+D507,U+D509-D50B,U+D50D-D513,U+D515-D53B,U+D53E-D53F,U+D541-D543,U+D545-D54C,U+D54E,U+D550,U+D552-D557,U+D55A-D55B,U+D55D-D55F,U+D561-D564,U+D566-D567,U+D56A,U+D56C,U+D56E-D573,U+D576-D577,U+D579-D583,U+D585-D586,U+D58A-D5A4,U+D5A6-D5BB}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.6.woff2)format("woff2");unicode-range:U+D464-D477,U+D47A-D47B,U+D47D-D47F,U+D481-D487,U+D489-D48A,U+D48C,U+D48E-D4E7,U+D4E9-D503,U+D505-D506}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.7.woff2)format("woff2");unicode-range:U+D3BF-D3C7,U+D3CA-D3CF,U+D3D1-D3EB,U+D3EE-D3EF,U+D3F1-D3F3,U+D3F5-D3FB,U+D3FD-D400,U+D402-D45B,U+D45D-D463}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.8.woff2)format("woff2");unicode-range:U+D2FF,U+D302-D304,U+D306-D30B,U+D30F,U+D311-D313,U+D315-D31B,U+D31E,U+D322-D324,U+D326-D327,U+D32A-D32B,U+D32D-D32F,U+D331-D337,U+D339-D33C,U+D33E-D37B,U+D37E-D37F,U+D381-D383,U+D385-D38B,U+D38E-D390,U+D392-D397,U+D39A-D39B,U+D39D-D39F,U+D3A1-D3A7,U+D3A9-D3AA,U+D3AC,U+D3AE-D3B3,U+D3B5-D3B7,U+D3B9-D3BB,U+D3BD-D3BE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.9.woff2)format("woff2");unicode-range:U+D257-D27F,U+D281-D29B,U+D29D-D29F,U+D2A1-D2AB,U+D2AD-D2B7,U+D2BA-D2BB,U+D2BD-D2BF,U+D2C1-D2C7,U+D2C9-D2EF,U+D2F2-D2F3,U+D2F5-D2F7,U+D2F9-D2FE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.10.woff2)format("woff2");unicode-range:U+D1B4,U+D1B6-D1F3,U+D1F5-D22B,U+D22E-D22F,U+D231-D233,U+D235-D23B,U+D23D-D240,U+D242-D256}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.11.woff2)format("woff2");unicode-range:U+D105-D12F,U+D132-D133,U+D135-D137,U+D139-D13F,U+D141-D142,U+D144,U+D146-D14B,U+D14E-D14F,U+D151-D153,U+D155-D15B,U+D15E-D187,U+D189-D19F,U+D1A2-D1A3,U+D1A5-D1A7,U+D1A9-D1AF,U+D1B2-D1B3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.12.woff2)format("woff2");unicode-range:U+D04B-D04F,U+D051-D057,U+D059-D06B,U+D06D-D06F,U+D071-D073,U+D075-D07B,U+D07E-D0A3,U+D0A6-D0A7,U+D0A9-D0AB,U+D0AD-D0B3,U+D0B6,U+D0B8,U+D0BA-D0BF,U+D0C2-D0C3,U+D0C5-D0C7,U+D0C9-D0CF,U+D0D2,U+D0D6-D0DB,U+D0DE-D0DF,U+D0E1-D0E3,U+D0E5-D0EB,U+D0EE-D0F0,U+D0F2-D104}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.13.woff2)format("woff2");unicode-range:U+CFA2-CFC3,U+CFC5-CFDF,U+CFE2-CFE3,U+CFE5-CFE7,U+CFE9-CFF4,U+CFF6-CFFB,U+CFFD-CFFF,U+D001-D003,U+D005-D017,U+D019-D033,U+D036-D037,U+D039-D03B,U+D03D-D04A}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.14.woff2)format("woff2");unicode-range:U+CEF0-CEF3,U+CEF6,U+CEF9-CEFF,U+CF01-CF03,U+CF05-CF07,U+CF09-CF0F,U+CF11-CF12,U+CF14-CF1B,U+CF1D-CF1F,U+CF21-CF2F,U+CF31-CF53,U+CF56-CF57,U+CF59-CF5B,U+CF5D-CF63,U+CF66,U+CF68,U+CF6A-CF6F,U+CF71-CF84,U+CF86-CF8B,U+CF8D-CFA1}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.15.woff2)format("woff2");unicode-range:U+CE3C-CE57,U+CE5A-CE5B,U+CE5D-CE5F,U+CE61-CE67,U+CE6A,U+CE6C,U+CE6E-CE73,U+CE76-CE77,U+CE79-CE7B,U+CE7D-CE83,U+CE85-CE88,U+CE8A-CE8F,U+CE91-CE93,U+CE95-CE97,U+CE99-CE9F,U+CEA2,U+CEA4-CEAB,U+CEAD-CEE3,U+CEE6-CEE7,U+CEE9-CEEB,U+CEED-CEEF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.16.woff2)format("woff2");unicode-range:U+CD92-CD93,U+CD96-CD97,U+CD99-CD9B,U+CD9D-CDA3,U+CDA6-CDA8,U+CDAA-CDAF,U+CDB1-CDC3,U+CDC5-CDCB,U+CDCD-CDE7,U+CDE9-CE03,U+CE05-CE1F,U+CE22-CE34,U+CE36-CE3B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.17.woff2)format("woff2");unicode-range:U+CCEF-CD07,U+CD0A-CD0B,U+CD0D-CD1A,U+CD1C,U+CD1E-CD2B,U+CD2D-CD5B,U+CD5D-CD77,U+CD79-CD91}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.18.woff2)format("woff2");unicode-range:U+CC3F-CC43,U+CC46-CC47,U+CC49-CC4B,U+CC4D-CC53,U+CC55-CC58,U+CC5A-CC5F,U+CC61-CC97,U+CC9A-CC9B,U+CC9D-CC9F,U+CCA1-CCA7,U+CCAA,U+CCAC,U+CCAE-CCB3,U+CCB6-CCB7,U+CCB9-CCBB,U+CCBD-CCCF,U+CCD1-CCE3,U+CCE5-CCEE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.19.woff2)format("woff2");unicode-range:U+CB91-CBD3,U+CBD5-CBE3,U+CBE5-CC0B,U+CC0E-CC0F,U+CC11-CC13,U+CC15-CC1B,U+CC1D-CC20,U+CC23-CC27,U+CC2A-CC2B,U+CC2D,U+CC2F,U+CC31-CC37,U+CC3A,U+CC3C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.20.woff2)format("woff2");unicode-range:U+CAF4-CB47,U+CB4A-CB90}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.21.woff2)format("woff2");unicode-range:U+CA4A-CA4B,U+CA4E-CA4F,U+CA51-CA53,U+CA55-CA5B,U+CA5D-CA60,U+CA62-CA83,U+CA85-CABB,U+CABE-CABF,U+CAC1-CAC3,U+CAC5-CACB,U+CACD-CAD0,U+CAD2,U+CAD4-CAD8,U+CADA-CAF3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.22.woff2)format("woff2");unicode-range:U+C996-C997,U+C99A-C99C,U+C99E-C9BF,U+C9C2-C9C3,U+C9C5-C9C7,U+C9C9-C9CF,U+C9D2,U+C9D4,U+C9D7-C9D8,U+C9DB,U+C9DE-C9DF,U+C9E1-C9E3,U+C9E5-C9E6,U+C9E8-C9EB,U+C9EE-C9F0,U+C9F2-C9F7,U+C9F9-CA0B,U+CA0D-CA28,U+CA2A-CA49}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.23.woff2)format("woff2");unicode-range:U+C8E9-C8F4,U+C8F6-C8FB,U+C8FE-C8FF,U+C901-C903,U+C905-C90B,U+C90E-C910,U+C912-C917,U+C919-C92B,U+C92D-C94F,U+C951-C953,U+C955-C96B,U+C96D-C973,U+C975-C987,U+C98A-C98B,U+C98D-C98F,U+C991-C995}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.24.woff2)format("woff2");unicode-range:U+C841-C84B,U+C84D-C86F,U+C872-C873,U+C875-C877,U+C879-C87F,U+C882-C884,U+C887-C88A,U+C88D-C8C3,U+C8C5-C8DF,U+C8E1-C8E8}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.25.woff2)format("woff2");unicode-range:U+C779-C77B,U+C77E-C782,U+C786,U+C78B,U+C78D,U+C78F,U+C792-C793,U+C795,U+C797,U+C799-C79F,U+C7A2,U+C7A7-C7AB,U+C7AE-C7BB,U+C7BD-C7C0,U+C7C2-C7C7,U+C7C9-C7DC,U+C7DE-C7FF,U+C802-C803,U+C805-C807,U+C809,U+C80B-C80F,U+C812,U+C814,U+C817-C81B,U+C81E-C81F,U+C821-C823,U+C825-C82E,U+C830-C837,U+C839-C83B,U+C83D-C840}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.26.woff2)format("woff2");unicode-range:U+C6BB-C6BF,U+C6C2,U+C6C4,U+C6C6-C6CB,U+C6CE-C6CF,U+C6D1-C6D3,U+C6D5-C6DB,U+C6DD-C6DF,U+C6E1-C6E7,U+C6E9-C6EB,U+C6ED-C6EF,U+C6F1-C6F8,U+C6FA-C703,U+C705-C707,U+C709-C70B,U+C70D-C716,U+C718,U+C71A-C71F,U+C722-C723,U+C725-C727,U+C729-C734,U+C736-C73B,U+C73E-C73F,U+C741-C743,U+C745-C74B,U+C74E-C750,U+C752-C757,U+C759-C773,U+C776-C777}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.27.woff2)format("woff2");unicode-range:U+C5F5-C5FB,U+C5FE,U+C602-C605,U+C607,U+C609-C60F,U+C611-C61A,U+C61C-C623,U+C626-C627,U+C629-C62B,U+C62D,U+C62F-C632,U+C636,U+C638,U+C63A-C63F,U+C642-C643,U+C645-C647,U+C649-C652,U+C656-C65B,U+C65D-C65F,U+C661-C663,U+C665-C677,U+C679-C67B,U+C67D-C693,U+C696-C697,U+C699-C69B,U+C69D-C6A3,U+C6A6,U+C6A8,U+C6AA-C6AF,U+C6B2-C6B3,U+C6B5-C6B7,U+C6B9-C6BA}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.28.woff2)format("woff2");unicode-range:U+C517-C527,U+C52A-C52B,U+C52D-C52F,U+C531-C538,U+C53A,U+C53C,U+C53E-C543,U+C546-C547,U+C54B,U+C54D-C552,U+C556,U+C55A-C55B,U+C55D,U+C55F,U+C562-C563,U+C565-C567,U+C569-C56F,U+C572,U+C574,U+C576-C57B,U+C57E-C57F,U+C581-C583,U+C585-C586,U+C588-C58B,U+C58E,U+C590,U+C592-C596,U+C599-C5B3,U+C5B6-C5B7,U+C5BA,U+C5BE-C5C3,U+C5CA-C5CB,U+C5CD,U+C5CF,U+C5D2-C5D3,U+C5D5-C5D7,U+C5D9-C5DF,U+C5E1-C5E2,U+C5E4,U+C5E6-C5EB,U+C5EF,U+C5F1-C5F3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.29.woff2)format("woff2");unicode-range:U+C475-C4EF,U+C4F2-C4F3,U+C4F5-C4F7,U+C4F9-C4FF,U+C502-C50B,U+C50D-C516}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.30.woff2)format("woff2");unicode-range:U+C3D0-C3D7,U+C3DA-C3DB,U+C3DD-C3DE,U+C3E1-C3EC,U+C3EE-C3F3,U+C3F5-C42B,U+C42D-C463,U+C466-C474}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.31.woff2)format("woff2");unicode-range:U+C32B-C367,U+C36A-C36B,U+C36D-C36F,U+C371-C377,U+C37A-C37B,U+C37E-C383,U+C385-C387,U+C389-C3CF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.32.woff2)format("woff2");unicode-range:U+C26A-C26B,U+C26D-C26F,U+C271-C273,U+C275-C27B,U+C27E-C287,U+C289-C28F,U+C291-C297,U+C299-C29A,U+C29C-C2A3,U+C2A5-C2A7,U+C2A9-C2AB,U+C2AD-C2B3,U+C2B6,U+C2B8,U+C2BA-C2BB,U+C2BD-C2DB,U+C2DE-C2DF,U+C2E1-C2E2,U+C2E5-C2EA,U+C2EE,U+C2F0,U+C2F2-C2F5,U+C2F7,U+C2FA-C2FB,U+C2FD-C2FF,U+C301-C307,U+C309-C30C,U+C30E-C312,U+C315-C323,U+C325-C328,U+C32A}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.33.woff2)format("woff2");unicode-range:U+C1BC-C1C3,U+C1C5-C1DF,U+C1E1-C1FB,U+C1FD-C203,U+C205-C20C,U+C20E,U+C210-C217,U+C21A-C21B,U+C21D-C21E,U+C221-C227,U+C229-C22A,U+C22C,U+C22E,U+C230,U+C233-C24F,U+C251-C257,U+C259-C269}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.34.woff2)format("woff2");unicode-range:U+C101-C11B,U+C11F,U+C121-C123,U+C125-C12B,U+C12E,U+C132-C137,U+C13A-C13B,U+C13D-C13F,U+C141-C147,U+C14A,U+C14C-C153,U+C155-C157,U+C159-C15B,U+C15D-C166,U+C169-C16F,U+C171-C177,U+C179-C18B,U+C18E-C18F,U+C191-C193,U+C195-C19B,U+C19D-C19E,U+C1A0,U+C1A2-C1A4,U+C1A6-C1BB}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.35.woff2)format("woff2");unicode-range:U+C049-C057,U+C059-C05B,U+C05D-C05F,U+C061-C067,U+C069-C08F,U+C091-C0AB,U+C0AE-C0AF,U+C0B1-C0B3,U+C0B5,U+C0B7-C0BB,U+C0BE,U+C0C2-C0C7,U+C0CA-C0CB,U+C0CD-C0CF,U+C0D1-C0D7,U+C0D9-C0DA,U+C0DC,U+C0DE-C0E3,U+C0E5-C0EB,U+C0ED-C0F3,U+C0F6,U+C0F8,U+C0FA-C0FF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.36.woff2)format("woff2");unicode-range:U+BFA7-BFAF,U+BFB1-BFC4,U+BFC6-BFCB,U+BFCE-BFCF,U+BFD1-BFD3,U+BFD5-BFDB,U+BFDD-C048}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.37.woff2)format("woff2");unicode-range:U+BF07,U+BF09-BF3F,U+BF41-BF4F,U+BF52-BF54,U+BF56-BFA6}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.38.woff2)format("woff2");unicode-range:U+BE56,U+BE58,U+BE5C-BE5F,U+BE62-BE63,U+BE65-BE67,U+BE69-BE74,U+BE76-BE7B,U+BE7E-BE7F,U+BE81-BE8E,U+BE90,U+BE92-BEA7,U+BEA9-BECF,U+BED2-BED3,U+BED5-BED6,U+BED9-BEE3,U+BEE6-BF06}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.39.woff2)format("woff2");unicode-range:U+BDB0-BDD3,U+BDD5-BDEF,U+BDF1-BE0B,U+BE0D-BE0F,U+BE11-BE13,U+BE15-BE43,U+BE46-BE47,U+BE49-BE4B,U+BE4D-BE53}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.40.woff2)format("woff2");unicode-range:U+BD03,U+BD06,U+BD08,U+BD0A-BD0F,U+BD11-BD22,U+BD25-BD47,U+BD49-BD58,U+BD5A-BD7F,U+BD82-BD83,U+BD85-BD87,U+BD8A-BD8F,U+BD91-BD92,U+BD94,U+BD96-BD98,U+BD9A-BDAF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.41.woff2)format("woff2");unicode-range:U+BC4E-BC83,U+BC86-BC87,U+BC89-BC8B,U+BC8D-BC93,U+BC96,U+BC98,U+BC9B-BC9F,U+BCA2-BCA3,U+BCA5-BCA7,U+BCA9-BCB2,U+BCB4-BCBB,U+BCBE-BCBF,U+BCC1-BCC3,U+BCC5-BCCC,U+BCCE-BCD0,U+BCD2-BCD4,U+BCD6-BCF3,U+BCF7,U+BCF9-BCFB,U+BCFD-BD02}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.42.woff2)format("woff2");unicode-range:U+BB90-BBA3,U+BBA5-BBAB,U+BBAD-BBBF,U+BBC1-BBF7,U+BBFA-BBFB,U+BBFD-BBFE,U+BC01-BC07,U+BC09-BC0A,U+BC0E,U+BC10,U+BC12-BC13,U+BC17,U+BC19-BC1A,U+BC1E,U+BC20-BC23,U+BC26,U+BC28,U+BC2A-BC2C,U+BC2E-BC2F,U+BC32-BC33,U+BC35-BC37,U+BC39-BC3F,U+BC41-BC42,U+BC44,U+BC46-BC48,U+BC4A-BC4D}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.43.woff2)format("woff2");unicode-range:U+BAE6-BAFB,U+BAFD-BB17,U+BB19-BB33,U+BB37,U+BB39-BB3A,U+BB3D-BB43,U+BB45-BB46,U+BB48,U+BB4A-BB4F,U+BB51-BB53,U+BB55-BB57,U+BB59-BB62,U+BB64-BB8F}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.44.woff2)format("woff2");unicode-range:U+BA30-BA37,U+BA3A-BA3B,U+BA3D-BA3F,U+BA41-BA47,U+BA49-BA4A,U+BA4C,U+BA4E-BA53,U+BA56-BA57,U+BA59-BA5B,U+BA5D-BA63,U+BA65-BA66,U+BA68-BA6F,U+BA71-BA73,U+BA75-BA77,U+BA79-BA84,U+BA86,U+BA88-BAA7,U+BAAA,U+BAAD-BAAF,U+BAB1-BAB7,U+BABA,U+BABC,U+BABE-BAE5}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.45.woff2)format("woff2");unicode-range:U+B96E-B973,U+B976-B977,U+B979-B97B,U+B97D-B983,U+B986,U+B988,U+B98A-B98D,U+B98F-B9AB,U+B9AE-B9AF,U+B9B1-B9B3,U+B9B5-B9BB,U+B9BE,U+B9C0,U+B9C2-B9C7,U+B9CA-B9CB,U+B9CD,U+B9D2-B9D7,U+B9DA,U+B9DC,U+B9DF-B9E0,U+B9E2,U+B9E6-B9E7,U+B9E9-B9F3,U+B9F6,U+B9F8,U+B9FB-BA2F}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.46.woff2)format("woff2");unicode-range:U+B8BF-B8CB,U+B8CD-B8E0,U+B8E2-B8E7,U+B8EA-B8EB,U+B8ED-B8EF,U+B8F1-B8F7,U+B8FA,U+B8FC,U+B8FE-B903,U+B905-B917,U+B919-B91F,U+B921-B93B,U+B93D-B957,U+B95A-B95B,U+B95D-B95F,U+B961-B967,U+B969-B96C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.47.woff2)format("woff2");unicode-range:U+B80D-B80F,U+B811-B817,U+B81A,U+B81C-B823,U+B826-B827,U+B829-B82B,U+B82D-B833,U+B836,U+B83A-B83F,U+B841-B85B,U+B85E-B85F,U+B861-B863,U+B865-B86B,U+B86E,U+B870,U+B872-B8AF,U+B8B1-B8BE}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.48.woff2)format("woff2");unicode-range:U+B74D-B75F,U+B761-B763,U+B765-B774,U+B776-B77B,U+B77E-B77F,U+B781-B783,U+B785-B78B,U+B78E,U+B792-B796,U+B79A-B79B,U+B79D-B7A7,U+B7AA,U+B7AE-B7B3,U+B7B6-B7C8,U+B7CA-B7EB,U+B7EE-B7EF,U+B7F1-B7F3,U+B7F5-B7FB,U+B7FE,U+B802-B806,U+B80A-B80B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.49.woff2)format("woff2");unicode-range:U+B6A7-B6AA,U+B6AC-B6B0,U+B6B2-B6EF,U+B6F1-B727,U+B72A-B72B,U+B72D-B72E,U+B731-B737,U+B739-B73A,U+B73C-B743,U+B745-B74C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.50.woff2)format("woff2");unicode-range:U+B605-B60F,U+B612-B617,U+B619-B624,U+B626-B69B,U+B69E-B6A3,U+B6A5-B6A6}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.51.woff2)format("woff2");unicode-range:U+B55F,U+B562-B583,U+B585-B59F,U+B5A2-B5A3,U+B5A5-B5A7,U+B5A9-B5B2,U+B5B5-B5BA,U+B5BD-B604}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.52.woff2)format("woff2");unicode-range:U+B4A5-B4B6,U+B4B8-B4BF,U+B4C1-B4C7,U+B4C9-B4DB,U+B4DE-B4DF,U+B4E1-B4E2,U+B4E5-B4EB,U+B4EE,U+B4F0,U+B4F2-B513,U+B516-B517,U+B519-B51A,U+B51D-B523,U+B526,U+B528,U+B52B-B52F,U+B532-B533,U+B535-B537,U+B539-B53F,U+B541-B544,U+B546-B54B,U+B54D-B54F,U+B551-B55B,U+B55D-B55E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.53.woff2)format("woff2");unicode-range:U+B3F8-B3FB,U+B3FD-B40F,U+B411-B417,U+B419-B41B,U+B41D-B41F,U+B421-B427,U+B42A-B42B,U+B42D-B44F,U+B452-B453,U+B455-B457,U+B459-B45F,U+B462-B464,U+B466-B46B,U+B46D-B47F,U+B481-B4A3}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.54.woff2)format("woff2");unicode-range:U+B342-B353,U+B356-B357,U+B359-B35B,U+B35D-B35E,U+B360-B363,U+B366,U+B368,U+B36A-B36D,U+B36F,U+B372-B373,U+B375-B377,U+B379-B37F,U+B381-B382,U+B384,U+B386-B38B,U+B38D-B3C3,U+B3C6-B3C7,U+B3C9-B3CA,U+B3CD-B3D3,U+B3D6,U+B3D8,U+B3DA-B3F7}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.55.woff2)format("woff2");unicode-range:U+B27C-B283,U+B285-B28F,U+B292-B293,U+B295-B297,U+B29A-B29F,U+B2A1-B2A4,U+B2A7-B2A9,U+B2AB,U+B2AD-B2C7,U+B2CA-B2CB,U+B2CD-B2CF,U+B2D1-B2D7,U+B2DA,U+B2DC,U+B2DE-B2E3,U+B2E7,U+B2E9-B2EA,U+B2EF-B2F3,U+B2F6,U+B2F8,U+B2FA-B2FB,U+B2FD-B2FE,U+B302-B303,U+B305-B307,U+B309-B30F,U+B312,U+B316-B31B,U+B31D-B341}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.56.woff2)format("woff2");unicode-range:U+B1D6-B1E7,U+B1E9-B1FC,U+B1FE-B203,U+B206-B207,U+B209-B20B,U+B20D-B213,U+B216-B21F,U+B221-B257,U+B259-B273,U+B275-B27B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.57.woff2)format("woff2");unicode-range:U+B120-B122,U+B126-B127,U+B129-B12B,U+B12D-B133,U+B136,U+B138,U+B13A-B13F,U+B142-B143,U+B145-B14F,U+B151-B153,U+B156-B157,U+B159-B177,U+B17A-B17B,U+B17D-B17F,U+B181-B187,U+B189-B18C,U+B18E-B191,U+B195-B1A7,U+B1A9-B1CB,U+B1CD-B1D5}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.58.woff2)format("woff2");unicode-range:U+B05F-B07B,U+B07E-B07F,U+B081-B083,U+B085-B08B,U+B08D-B097,U+B09B,U+B09D-B09F,U+B0A2-B0A7,U+B0AA,U+B0B0,U+B0B2,U+B0B6-B0B7,U+B0B9-B0BB,U+B0BD-B0C3,U+B0C6-B0C7,U+B0CA-B0CF,U+B0D1-B0DF,U+B0E1-B0E4,U+B0E6-B107,U+B10A-B10B,U+B10D-B10F,U+B111-B112,U+B114-B117,U+B119-B11A,U+B11C-B11F}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.59.woff2)format("woff2");unicode-range:U+AFAC-AFB7,U+AFBA-AFBB,U+AFBD-AFBF,U+AFC1-AFC6,U+AFCA-AFCC,U+AFCE-AFD3,U+AFD5-AFE7,U+AFE9-AFEF,U+AFF1-B00B,U+B00D-B00F,U+B011-B013,U+B015-B01B,U+B01D-B027,U+B029-B043,U+B045-B047,U+B049,U+B04B,U+B04D-B052,U+B055-B056,U+B058-B05C,U+B05E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.60.woff2)format("woff2");unicode-range:U+AF03-AF07,U+AF09-AF2B,U+AF2E-AF33,U+AF35-AF3B,U+AF3E-AF40,U+AF44-AF47,U+AF4A-AF5C,U+AF5E-AF63,U+AF65-AF7F,U+AF81-AFAB}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.61.woff2)format("woff2");unicode-range:U+AE56-AE5B,U+AE5E-AE60,U+AE62-AE64,U+AE66-AE67,U+AE69-AE6B,U+AE6D-AE83,U+AE85-AEBB,U+AEBF,U+AEC1-AEC3,U+AEC5-AECB,U+AECE,U+AED0,U+AED2-AED7,U+AED9-AEF3,U+AEF5-AF02}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.62.woff2)format("woff2");unicode-range:U+AD9C-ADA3,U+ADA5-ADBF,U+ADC1-ADC3,U+ADC5-ADC7,U+ADC9-ADD2,U+ADD4-ADDB,U+ADDD-ADDF,U+ADE1-ADE3,U+ADE5-ADF7,U+ADFA-ADFB,U+ADFD-ADFF,U+AE02-AE07,U+AE0A,U+AE0C,U+AE0E-AE13,U+AE15-AE2F,U+AE31-AE33,U+AE35-AE37,U+AE39-AE3F,U+AE42,U+AE44,U+AE46-AE49,U+AE4B,U+AE4F,U+AE51-AE53,U+AE55}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.63.woff2)format("woff2");unicode-range:U+ACE2-ACE3,U+ACE5-ACE6,U+ACE9-ACEF,U+ACF2,U+ACF4,U+ACF7-ACFB,U+ACFE-ACFF,U+AD01-AD03,U+AD05-AD0B,U+AD0D-AD10,U+AD12-AD1B,U+AD1D-AD33,U+AD35-AD48,U+AD4A-AD4F,U+AD51-AD6B,U+AD6E-AD6F,U+AD71-AD72,U+AD77-AD7C,U+AD7E,U+AD80,U+AD82-AD87,U+AD89-AD8B,U+AD8D-AD8F,U+AD91-AD9B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.64.woff2)format("woff2");unicode-range:U+AC25-AC2C,U+AC2E,U+AC30,U+AC32-AC37,U+AC39-AC3F,U+AC41-AC4C,U+AC4E-AC6F,U+AC72-AC73,U+AC75-AC76,U+AC79-AC7F,U+AC82,U+AC84-AC88,U+AC8A-AC8B,U+AC8D-AC8F,U+AC91-AC93,U+AC95-AC9B,U+AC9D-AC9E,U+ACA1-ACA7,U+ACAB,U+ACAD-ACAF,U+ACB1-ACB7,U+ACBA-ACBB,U+ACBE-ACC0,U+ACC2-ACC3,U+ACC5-ACDF}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.65.woff2)format("woff2");unicode-range:U+99DF,U+99ED,U+99F1,U+99FF,U+9A01,U+9A08,U+9A0E-9A0F,U+9A19,U+9A2B,U+9A30,U+9A36-9A37,U+9A40,U+9A43,U+9A45,U+9A4D,U+9A55,U+9A57,U+9A5A-9A5B,U+9A5F,U+9A62,U+9A65,U+9A69-9A6A,U+9AA8,U+9AB8,U+9AD3,U+9AE5,U+9AEE,U+9B1A,U+9B27,U+9B2A,U+9B31,U+9B3C,U+9B41-9B45,U+9B4F,U+9B54,U+9B5A,U+9B6F,U+9B8E,U+9B91,U+9B9F,U+9BAB,U+9BAE,U+9BC9,U+9BD6,U+9BE4,U+9BE8,U+9C0D,U+9C10,U+9C12,U+9C15,U+9C25,U+9C32,U+9C3B,U+9C47,U+9C49,U+9C57,U+9CE5,U+9CE7,U+9CE9,U+9CF3-9CF4,U+9CF6,U+9D09,U+9D1B,U+9D26,U+9D28,U+9D3B,U+9D51,U+9D5D,U+9D60-9D61,U+9D6C,U+9D72,U+9DA9,U+9DAF,U+9DB4,U+9DC4,U+9DD7,U+9DF2,U+9DF8-9DFA,U+9E1A,U+9E1E,U+9E75,U+9E79,U+9E7D,U+9E7F,U+9E92-9E93,U+9E97,U+9E9D,U+9E9F,U+9EA5,U+9EB4-9EB5,U+9EBB,U+9EBE,U+9EC3,U+9ECD-9ECE,U+9ED4,U+9ED8,U+9EDB-9EDC,U+9EDE,U+9EE8,U+9EF4,U+9F07-9F08,U+9F0E,U+9F13,U+9F20,U+9F3B,U+9F4A-9F4B,U+9F4E,U+9F52,U+9F5F,U+9F61,U+9F67,U+9F6A,U+9F6C,U+9F77,U+9F8D,U+9F90,U+9F95,U+9F9C,U+AC02-AC03,U+AC05-AC06,U+AC09-AC0F,U+AC17-AC18,U+AC1B,U+AC1E-AC1F,U+AC21-AC23}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.94.woff2)format("woff2");unicode-range:U+3136,U+3138,U+313A-3140,U+3143-3144,U+3150,U+3152,U+3154-3156,U+3158-315B,U+315D-315F,U+3162,U+3164-318C,U+318E,U+3200-321B,U+3231,U+3239,U+3251-325A,U+3260-327B,U+327E-327F,U+328A-3290,U+3294,U+329E,U+32A5,U+3380-3384,U+3388-338B}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.95.woff2)format("woff2");unicode-range:U+2F7D,U+2F7F-2F8B,U+2F8E-2F90,U+2F92-2F97,U+2F99-2FA0,U+2FA2-2FA3,U+2FA5-2FA9,U+2FAC-2FB1,U+2FB3-2FBC,U+2FC1-2FCA,U+2FCD-2FD4,U+3003,U+3012-3019,U+301C,U+301E-3020,U+3036,U+3041,U+3043,U+3045,U+3047,U+3049,U+304E,U+3050,U+3052,U+3056,U+305A,U+305C,U+305E,U+3062,U+3065,U+306C,U+3070-307D,U+3080,U+3085,U+3087,U+308E,U+3090-3091,U+30A1,U+30A5,U+30A9,U+30AE,U+30B1-30B2,U+30B4,U+30B6,U+30BC-30BE,U+30C2,U+30C5,U+30CC,U+30D2,U+30D4,U+30D8-30DD,U+30E4,U+30E6,U+30E8,U+30EE,U+30F0-30F2,U+30F4-30F6,U+3133,U+3135}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.100.woff2)format("woff2");unicode-range:U+E8,U+2DA,U+2160,U+2194,U+3054,U+3058,U+306D,U+3086,U+308D,U+30AC,U+30BB,U+30C4,U+30CD-30CE,U+30E2,U+3132,U+3146,U+3149,U+339D,U+4E3B,U+4F0A,U+4FDD,U+4FE1,U+5409,U+540C,U+5834,U+592A-592B,U+5B9A,U+5DDE,U+5E0C,U+5E73,U+5F0F,U+60F3,U+653F,U+661F,U+662F,U+667A,U+683C,U+6B4C,U+6C11,U+767C,U+76EE,U+76F4,U+77F3,U+79D1,U+7A7A,U+7B2C,U+7D22,U+8207,U+8A00,U+8A71,U+9280,U+9580,U+958B,U+96C6,U+9762,U+98DF,U+9ED1,U+AC2D,U+ADC8,U+ADD3,U+AF48,U+B014,U+B134-B135,U+B158,U+B2AA,U+B35F,U+B6A4,U+B9CF,U+BB63,U+BD23,U+BE91,U+C29B,U+C3F4,U+C42C,U+C55C,U+C573,U+C58F,U+C78C,U+C7DD,U+C8F5,U+CAD1,U+CC48,U+CF10,U+CF20,U+D03C,U+D07D,U+D2A0,U+D30E,U+D38D,U+D3A8,U+D3C8,U+D5E5,U+D5F9,U+D6E4,U+F90A,U+FF02,U+FF1C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.101.woff2)format("woff2");unicode-range:U+3B1,U+2466,U+25A1,U+25A3,U+261C,U+3008-3009,U+305B,U+305D,U+3069,U+30A7,U+30BA,U+30CF,U+30EF,U+3151,U+3157,U+4E4B,U+4E5F,U+4E8C,U+4ECA,U+4ED6,U+4F5B,U+50CF,U+5149,U+5165,U+5171,U+5229,U+529B,U+5316,U+539F,U+53F2,U+571F,U+5728,U+58EB,U+591C,U+5B78,U+5C11,U+5C55,U+5DDD,U+5E02,U+5FB7,U+60C5,U+610F,U+611F,U+6625,U+66F8,U+6797,U+679C,U+682A,U+6D2A,U+706B,U+7406,U+767B,U+76F8,U+77E5,U+7ACB,U+898B,U+8A69,U+8DEF,U+8FD1,U+901A,U+90E8,U+91CD,U+975E,U+AE14,U+AE6C,U+AEC0,U+AFC7,U+AFC9,U+B01C,U+B028,U+B308,U+B311,U+B314,U+B31C,U+B524,U+B560,U+B764,U+B920,U+B9E3,U+BD48,U+BE7D,U+C0DB,U+C231,U+C270,U+C2E3,U+C37D,U+C3ED,U+C530,U+C6A5,U+C6DC,U+C7A4,U+C954,U+C974,U+D000,U+D565,U+D667,U+D6C5,U+D79D,U+FF1E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.102.woff2)format("woff2");unicode-range:U+131,U+2032,U+2465,U+2642,U+3048,U+3051,U+3083-3084,U+308F,U+30C0,U+30D1,U+30D3,U+30D6,U+30DF,U+30E7,U+3153,U+4E16,U+4E8B,U+4EE5,U+5206,U+52A0,U+52D5,U+53E4,U+53EF,U+54C1,U+57CE,U+597D,U+5B8C,U+5EA6,U+5F8C,U+5F97,U+6210,U+6240,U+624B,U+6728,U+6BD4,U+7236,U+7269,U+7279,U+738B,U+7528,U+7530,U+767E,U+798F,U+8005,U+8A18,U+90FD,U+91CC,U+9577,U+9593,U+98A8,U+AC20,U+ACF6,U+AD90,U+AF5D,U+AF80,U+AFCD,U+AFF0,U+B0A1,U+B0B5,U+B1FD,U+B2FC,U+B380,U+B51B,U+B584,U+B5B3,U+B8FD,U+B93C,U+B9F4,U+BB44,U+BC08,U+BC27,U+BC49,U+BE55,U+BE64,U+BFB0,U+BFC5,U+C178,U+C21F,U+C314,U+C4F1,U+C58D,U+C664,U+C698,U+C6A7,U+C6C1,U+C9ED,U+CAC0,U+CACC,U+CAD9,U+CCB5,U+CDCC,U+D0E4,U+D143,U+D320,U+D330,U+D54D,U+FF06,U+FF1F,U+FF5E}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.103.woff2)format("woff2");unicode-range:U+B4,U+20A9,U+20AC,U+2190,U+24D8,U+2502,U+2514,U+2592,U+25C7-25C8,U+2663,U+3060,U+3064,U+3081,U+3088,U+30A3,U+30A6,U+30AA,U+30B5,U+30C7,U+30CA-30CB,U+30D0,U+30E3,U+30E5,U+339E,U+4E09,U+4EAC,U+4F5C,U+5167-5168,U+516C,U+51FA,U+5408,U+540D,U+591A,U+5B57,U+6211,U+65B9,U+660E,U+6642,U+6700,U+6B63,U+6E2F,U+7063,U+7532,U+793E,U+81EA,U+8272,U+82B1,U+897F,U+8ECA,U+91CE,U+AC38,U+AD76,U+AE84,U+AECC,U+B07D,U+B0B1,U+B215,U+B2A0,U+B310,U+B3D7,U+B52A,U+B618,U+B775,U+B797,U+BCD5,U+BD59,U+BE80,U+BEA8,U+BED1,U+BEE4-BEE5,U+C060,U+C2EF,U+C329,U+C3DC,U+C597,U+C5BD,U+C5E5,U+C69C,U+C9D6,U+CA29,U+CA5C,U+CA84,U+CC39,U+CC3B,U+CE89,U+CEE5,U+CF65,U+CF85,U+D058,U+D145,U+D22D,U+D325,U+D37D,U+D3AD,U+D769,U+FF0C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.104.woff2)format("woff2");unicode-range:U+2161,U+2228,U+2299,U+2464,U+2517,U+2640,U+3042,U+304A,U+3053,U+3061,U+307F,U+3082,U+308C,U+3092,U+30A8,U+30AB,U+30AD,U+30B0,U+30B3,U+30B7,U+30C1,U+30C6,U+30C9,U+30D5,U+30D7,U+30DE,U+30E0-30E1,U+30EC-30ED,U+4E0B,U+4E0D,U+4EE3,U+53F0,U+548C,U+5B89,U+5BB6,U+5C0F,U+611B,U+6771,U+6AA2,U+6BCD,U+6C34,U+6CD5,U+6D77,U+767D,U+795E,U+8ECD,U+9999,U+9AD8,U+AC07,U+AC1A,U+AC40,U+AD0C,U+AD88,U+ADA4,U+AE01,U+AE65,U+AEBD,U+AEC4,U+AFE8,U+B139,U+B205,U+B383,U+B38C,U+B42C,U+B461,U+B55C,U+B78F,U+B8FB,U+B9F7,U+BAFC,U+BC99,U+BED8,U+BFCD,U+C0BF,U+C0F9,U+C167,U+C204,U+C20F,U+C22F,U+C258,U+C298,U+C2BC,U+C388,U+C501,U+C50C,U+C5B9,U+C5CE,U+C641,U+C648,U+C73D,U+CA50,U+CA61,U+CC4C,U+CEAC,U+D0D4,U+D5F7,U+D6D7,U+FF1A}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.105.woff2)format("woff2");unicode-range:U+2103,U+2463,U+25C6,U+25CB,U+266C,U+3001,U+300A,U+3046,U+304C-304D,U+304F,U+3055,U+3059,U+3063,U+3066-3068,U+306F,U+3089,U+30B8,U+30BF,U+314F,U+4E0A,U+570B,U+5730,U+5916,U+5929,U+5C71,U+5E74,U+5FC3,U+601D,U+6027,U+63D0,U+6709,U+6734,U+751F,U+7684,U+82F1,U+9053,U+91D1,U+97F3,U+AC2F,U+AC4D,U+ADC4,U+ADE4,U+AE41,U+AE4D-AE4E,U+AED1,U+AFB9,U+B0E0,U+B299,U+B365,U+B46C,U+B480,U+B4C8,U+B7B4,U+B819,U+B918,U+BAAB,U+BAB9,U+BE8F,U+BED7,U+C0EC,U+C19F,U+C1A5,U+C3D9,U+C464,U+C53D,U+C553,U+C570,U+C5CC,U+C633,U+C6A4,U+C7A3,U+C7A6,U+C886,U+C9D9-C9DA,U+C9EC,U+CA0C,U+CC21,U+CD1B,U+CD78,U+CDC4,U+CEF8,U+CFE4,U+D0A5,U+D0B5,U+D0EC,U+D15D,U+D188,U+D23C,U+D2AC,U+D729,U+D79B,U+FF01,U+FF08-FF09,U+FF5C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.106.woff2)format("woff2");unicode-range:U+2039-203A,U+223C,U+25B3,U+25B7,U+25BD,U+25CF,U+266A,U+3002,U+300B,U+304B,U+3057,U+305F,U+306A-306B,U+307E,U+308A-308B,U+3093,U+30A2,U+30AF,U+30B9,U+30C3,U+30C8,U+30E9-30EB,U+33A1,U+4E00,U+524D,U+5357,U+5B50,U+7121,U+884C,U+9751,U+AC94,U+AEBE,U+AECD,U+AF08,U+AF41,U+AF49,U+B010,U+B053,U+B109,U+B11B,U+B128,U+B154,U+B291,U+B2E6,U+B301,U+B385,U+B525,U+B5B4,U+B729,U+B72F,U+B738,U+B7FF,U+B837,U+B975,U+BA67,U+BB47,U+BC1F,U+BD90,U+BFD4,U+C27C,U+C324,U+C379,U+C3E0,U+C465,U+C53B,U+C58C,U+C610,U+C653,U+C6CD,U+C813,U+C82F,U+C999,U+C9E0,U+CAC4,U+CAD3,U+CBD4,U+CC10,U+CC22,U+CCB8,U+CCBC,U+CDA5,U+CE84,U+CEA3,U+CF67,U+CFE1,U+D241,U+D30D,U+D31C,U+D391,U+D401,U+D479,U+D5C9,U+D5DB,U+D649,U+D6D4}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.107.woff2)format("woff2");unicode-range:U+B0,U+E9,U+2193,U+2462,U+260E,U+261E,U+300E-300F,U+3044,U+30A4,U+30FB-30FC,U+314D,U+5973,U+6545,U+6708,U+7537,U+AC89,U+AC9C,U+ACC1,U+AD04,U+AD75,U+AD7D,U+AE45,U+AE61,U+AF42,U+B0AB,U+B0AF,U+B0B3,U+B12C,U+B194,U+B1A8,U+B220,U+B258,U+B284,U+B2FF,U+B315,U+B371,U+B3D4-B3D5,U+B460,U+B527,U+B534,U+B810,U+B818,U+B98E,U+BA55,U+BBAC,U+BC0B,U+BC40,U+BCA1,U+BCCD,U+BD93,U+BE54,U+BE5A,U+BF08,U+BF50,U+BF55,U+BFDC,U+C0C0,U+C0D0,U+C0F4,U+C100,U+C11E,U+C170,U+C20D,U+C274,U+C290,U+C308,U+C369,U+C539,U+C587,U+C5FF,U+C6EC,U+C70C,U+C7AD,U+C7C8,U+C83C,U+C881,U+CB48,U+CC60,U+CE69,U+CE6B,U+CE75,U+CF04,U+CF08,U+CF55,U+CF70,U+CFFC,U+D0B7,U+D1A8,U+D2C8,U+D384,U+D47C,U+D48B,U+D5DD,U+D5E8,U+D720,U+D759,U+F981}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.108.woff2)format("woff2");unicode-range:U+E0,U+E2,U+395,U+3B7,U+3BA,U+2460-2461,U+25A0,U+3010-3011,U+306E,U+30F3,U+314A,U+314C,U+5927,U+65B0,U+7E41,U+97D3,U+9AD4,U+AD49,U+AE0B,U+AE0D,U+AE43,U+AE5D,U+AECF,U+AF3C,U+AF64,U+AFD4,U+B080,U+B084,U+B0C5,U+B10C,U+B1E8,U+B2AC,U+B36E,U+B451,U+B515,U+B540,U+B561,U+B6AB,U+B6B1,U+B72C,U+B730,U+B744,U+B800,U+B8EC,U+B8F0,U+B904,U+B968,U+B96D,U+B987,U+B9D9,U+BB36,U+BB49,U+BC2D,U+BC43,U+BCF6,U+BD89,U+BE57,U+BE61,U+BED4,U+C090,U+C130,U+C148,U+C19C,U+C2F9,U+C36C,U+C37C,U+C384,U+C3DF,U+C575,U+C584,U+C660,U+C719,U+C816,U+CA4D,U+CA54,U+CABC,U+CB49,U+CC14,U+CFF5,U+D004,U+D038,U+D0B4,U+D0D3,U+D0E0,U+D0ED,U+D131,U+D1B0,U+D31F,U+D33D,U+D3A0,U+D3AB,U+D514,U+D584,U+D6A1,U+D6CC,U+D749,U+D760,U+D799}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.109.woff2)format("woff2");unicode-range:U+24,U+60,U+3B9,U+3BB,U+3BD,U+2191,U+2606,U+300C-300D,U+3131,U+3134,U+3139,U+3141-3142,U+3148,U+3161,U+3163,U+321C,U+4EBA,U+5317,U+AC31,U+AC77,U+AC9F,U+ACB9,U+ACF0-ACF1,U+ACFD,U+AD73,U+AF3D,U+B00C,U+B04A,U+B057,U+B0C4,U+B188,U+B1CC,U+B214,U+B2DB,U+B2EE,U+B304,U+B4ED,U+B518,U+B5BC,U+B625,U+B69C-B69D,U+B7AC,U+B801,U+B86C,U+B959,U+B95C,U+B985,U+BA48,U+BB58,U+BC0C,U+BC38,U+BC85,U+BC9A,U+BF40,U+C068,U+C0BD,U+C0CC,U+C12F,U+C149,U+C1E0,U+C22B,U+C22D,U+C250,U+C2FC,U+C300,U+C313,U+C370,U+C3D8,U+C557,U+C580,U+C5E3,U+C62E,U+C634,U+C6F0,U+C74D,U+C783,U+C78E,U+C796,U+C7BC,U+C92C,U+CA4C,U+CC1C,U+CC54,U+CC59,U+CE04,U+CF30,U+CFC4,U+D140,U+D321,U+D38C,U+D399,U+D54F,U+D587,U+D5D0,U+D6E8,U+D770}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.110.woff2)format("woff2");unicode-range:U+D7,U+EA,U+FC,U+2192,U+25BC,U+3000,U+3137,U+3145,U+315C,U+7F8E,U+AC13,U+AC71,U+AC90,U+ACB8,U+ACE7,U+AD7F,U+AE50,U+AEF4,U+AF34,U+AFBC,U+B048,U+B09A,U+B0AD,U+B0BC,U+B113,U+B125,U+B141,U+B20C,U+B2D9,U+B2ED,U+B367,U+B369,U+B374,U+B3CB,U+B4EC,U+B611,U+B760,U+B81B,U+B834,U+B8B0,U+B8E1,U+B989,U+B9D1,U+B9E1,U+B9FA,U+BA4D,U+BA78,U+BB35,U+BB54,U+BBF9,U+BC11,U+BCB3,U+BD05,U+BD95,U+BDD4,U+BE10,U+BED0,U+BF51,U+C0D8,U+C232,U+C2B7,U+C2EB,U+C378,U+C500,U+C52C,U+C549,U+C568,U+C598,U+C5C9,U+C61B,U+C639,U+C67C,U+C717,U+C78A,U+C80A,U+C90C-C90D,U+C950,U+C9E7,U+CBE4,U+CCA9,U+CCE4,U+CDB0,U+CE78,U+CE94,U+CE98,U+CF8C,U+D018,U+D034,U+D0F1,U+D1B1,U+D280,U+D2F8,U+D338,U+D380,U+D3B4,U+D610,U+D69F,U+D6FC,U+D758}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.111.woff2)format("woff2");unicode-range:U+E7,U+2022,U+203B,U+25C0,U+2605,U+2661,U+3147,U+318D,U+672C,U+8A9E,U+ACAA,U+ACBC,U+AD1C,U+AE4A,U+AE5C,U+B044,U+B054,U+B0C8-B0C9,U+B2A6,U+B2D0,U+B35C,U+B364,U+B428,U+B454,U+B465,U+B4B7,U+B4E3,U+B51C,U+B5A1,U+B784,U+B790,U+B7AB,U+B7F4,U+B82C,U+B835,U+B8E9,U+B8F8,U+B9D8,U+B9F9,U+BA5C,U+BA64,U+BABD,U+BB18,U+BB3B,U+BBFF,U+BC0D,U+BC45,U+BC97,U+BCBC,U+BE45,U+BE75,U+BE7C,U+BFCC,U+C0B6,U+C0F7,U+C14B,U+C2B4,U+C30D,U+C4F8,U+C5BB,U+C5D1,U+C5E0,U+C5EE,U+C5FD,U+C606,U+C6C5,U+C6E0,U+C708,U+C81D,U+C820,U+C824,U+C878,U+C918,U+C96C,U+C9E4,U+C9F1,U+CC2E,U+CD09,U+CEA1,U+CEF5,U+CEF7,U+CF64,U+CF69,U+CFE8,U+D035,U+D0AC,U+D230,U+D234,U+D2F4,U+D31D,U+D575,U+D578,U+D608,U+D614,U+D718,U+D751,U+D761,U+D78C,U+D790}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.112.woff2)format("woff2");unicode-range:U+2665,U+3160,U+4E2D,U+6587,U+65E5,U+AC12,U+AC14,U+AC16,U+AC81,U+AD34,U+ADE0,U+AE54,U+AEBC,U+AF2C,U+AFC0,U+AFC8,U+B04C,U+B08C,U+B099,U+B0A9,U+B0AC,U+B0AE,U+B0B8,U+B123,U+B179,U+B2E5,U+B2F7,U+B4C0,U+B531,U+B538,U+B545,U+B550,U+B5A8,U+B6F0,U+B728,U+B73B,U+B7AD,U+B7ED,U+B809,U+B864,U+B86D,U+B871,U+B9BF,U+B9F5,U+BA40,U+BA4B,U+BA58,U+BA87,U+BAAC,U+BBC0,U+BC16,U+BC34,U+BD07,U+BD99,U+BE59,U+BFD0,U+C058,U+C0E4,U+C0F5,U+C12D,U+C139,U+C228,U+C529,U+C5C7,U+C635,U+C637,U+C735,U+C77D,U+C787,U+C789,U+C8C4,U+C989,U+C98C,U+C9D0,U+C9D3,U+CC0C,U+CC99,U+CD0C,U+CD2C,U+CD98,U+CDA4,U+CE59,U+CE60,U+CE6D,U+CEA0,U+D0D0-D0D1,U+D0D5,U+D14D,U+D1A4,U+D29C,U+D2F1,U+D301,U+D39C,U+D3BC,U+D4E8,U+D540,U+D5EC,U+D640,U+D750}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.113.woff2)format("woff2");unicode-range:U+5E,U+25B2,U+25B6,U+314E,U+AC24,U+ACE1,U+ACE4,U+AE68,U+AF2D,U+B0D0,U+B0E5,U+B150,U+B155,U+B193,U+B2C9,U+B2DD,U+B3C8,U+B3FC,U+B410,U+B458,U+B4DD,U+B5A0,U+B5A4,U+B5BB,U+B7B5,U+B838,U+B840,U+B86F,U+B8F9,U+B960,U+B9E5,U+BAB8,U+BB50,U+BC1D,U+BC24-BC25,U+BCA8,U+BCBD,U+BD04,U+BD10,U+BD24,U+BE48,U+BE5B,U+BE68,U+C05C,U+C12C,U+C140,U+C15C,U+C168,U+C194,U+C219,U+C27D,U+C2A8,U+C2F1,U+C2F8,U+C368,U+C554-C555,U+C559,U+C564,U+C5D8,U+C5FC,U+C625,U+C65C,U+C6B1,U+C728,U+C794,U+C84C,U+C88C,U+C8E0,U+C8FD,U+C998,U+C9DD,U+CC0D,U+CC30,U+CEEC,U+CF13,U+CF1C,U+CF5C,U+D050,U+D07C,U+D0A8,U+D134,U+D138,U+D154,U+D1F4,U+D2BC,U+D329,U+D32C,U+D3D0,U+D3F4,U+D3FC,U+D56B,U+D5CC,U+D600-D601,U+D639,U+D6C8,U+D754,U+D765}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.114.woff2)format("woff2");unicode-range:U+3C-3D,U+2026,U+24D2,U+314B,U+AC11,U+ACF3,U+AD74,U+AD81,U+ADF9,U+AE34,U+AF43,U+AFB8,U+B05D,U+B07C,U+B110,U+B118,U+B17C,U+B180,U+B18D,U+B192,U+B2CC,U+B355,U+B378,U+B4A4,U+B4EF,U+B78D,U+B799,U+B7A9,U+B7FD,U+B807,U+B80C,U+B839,U+B9B4,U+B9DB,U+BA3C,U+BAB0,U+BBA4,U+BC94,U+BE4C,U+C154,U+C1C4,U+C26C,U+C2AC,U+C2ED,U+C4F4,U+C55E,U+C561,U+C571,U+C5B5,U+C5C4,U+C654-C655,U+C695,U+C6E8,U+C6F9,U+C724,U+C751,U+C775,U+C7A0,U+C7C1,U+C874,U+C880,U+C9D5,U+C9F8,U+CABD,U+CC29,U+CC2C,U+CCA8,U+CCAB,U+CCD0,U+CE21,U+CE35,U+CE7C,U+CE90,U+CEE8,U+CEF4,U+CFE0,U+D070,U+D0B9,U+D0C1,U+D0C4,U+D0C8,U+D15C,U+D1A1,U+D2C0,U+D300,U+D314,U+D3ED,U+D478,U+D480,U+D48D,U+D508,U+D53D,U+D5E4,U+D611,U+D61C,U+D68D,U+D6A8,U+D798}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.115.woff2)format("woff2");unicode-range:U+23,U+25,U+5F,U+A9,U+AC08,U+AC78,U+ACA8,U+ACAC,U+ACE8,U+AD70,U+ADC0,U+ADDC,U+B137,U+B140,U+B208,U+B290,U+B2F5,U+B3C5,U+B3CC,U+B420,U+B429,U+B529,U+B530,U+B77D,U+B79C,U+B7A8,U+B7C9,U+B7F0,U+B7FC,U+B828,U+B860,U+B9AD,U+B9C1,U+B9C9,U+B9DD-B9DE,U+B9E8,U+BA38-BA39,U+BABB,U+BC00,U+BC8C,U+BCA0,U+BCA4,U+BCD1,U+BCFC,U+BD09,U+BDF0,U+BE60,U+C0AD,U+C0B4,U+C0BC,U+C190,U+C1FC,U+C220,U+C288,U+C2B9,U+C2F6,U+C528,U+C545,U+C558,U+C5BC,U+C5D4,U+C600,U+C644,U+C6C0,U+C6C3,U+C721,U+C798,U+C7A1,U+C811,U+C838,U+C871,U+C904,U+C990,U+C9DC,U+CC38,U+CC44,U+CCA0,U+CD1D,U+CD95,U+CDA9,U+CE5C,U+CF00,U+CF58,U+D150,U+D22C,U+D305,U+D328,U+D37C,U+D3F0,U+D551,U+D5A5,U+D5C8,U+D5D8,U+D63C,U+D64D,U+D669,U+D734,U+D76C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.116.woff2)format("woff2");unicode-range:U+26,U+2B,U+3E,U+40,U+7E,U+AC01,U+AC19,U+AC1D,U+ACA0,U+ACA9,U+ACB0,U+AD8C,U+AE09,U+AE38,U+AE40,U+AED8,U+B09C,U+B0A0,U+B108,U+B204,U+B298,U+B2D8,U+B2EB-B2EC,U+B2F4,U+B313,U+B358,U+B450,U+B4E0,U+B54C,U+B610,U+B780,U+B78C,U+B791,U+B8E8,U+B958,U+B974,U+B984,U+B9B0,U+B9BC-B9BD,U+B9CE,U+BA70,U+BBFC,U+BC0F,U+BC15,U+BC1B,U+BC31,U+BC95,U+BCC0,U+BCC4,U+BD81,U+BD88,U+C0C8,U+C11D,U+C13C,U+C158,U+C18D,U+C1A1,U+C21C,U+C4F0,U+C54A,U+C560,U+C5B8,U+C5C8,U+C5F4,U+C628,U+C62C,U+C678,U+C6CC,U+C808,U+C810,U+C885,U+C88B,U+C900,U+C988,U+C99D,U+C9C8,U+CC3D-CC3E,U+CC45,U+CD08,U+CE20,U+CEE4,U+D074,U+D0A4,U+D0DD,U+D2B9,U+D3B8,U+D3C9,U+D488,U+D544,U+D559,U+D56D,U+D588,U+D615,U+D648,U+D655,U+D658,U+D65C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.117.woff2)format("woff2");unicode-range:U+D,U+48,U+7C,U+AC10,U+AC15,U+AC74,U+AC80,U+AC83,U+ACC4,U+AD11,U+AD50,U+AD6D,U+ADFC,U+AE00,U+AE08,U+AE4C,U+B0A8,U+B124,U+B144,U+B178,U+B274,U+B2A5,U+B2E8,U+B2F9,U+B354,U+B370,U+B418,U+B41C,U+B4F1,U+B514,U+B798,U+B808,U+B824-B825,U+B8CC,U+B978,U+B9D0,U+B9E4,U+BAA9,U+BB3C,U+BC18,U+BC1C,U+BC30,U+BC84,U+BCF5,U+BCF8,U+BD84,U+BE0C,U+BE14,U+C0B0,U+C0C9,U+C0DD,U+C124,U+C2DD,U+C2E4,U+C2EC,U+C54C,U+C57C-C57D,U+C591,U+C5C5-C5C6,U+C5ED,U+C608,U+C640,U+C6B8,U+C6D4,U+C784,U+C7AC,U+C800-C801,U+C9C1,U+C9D1,U+CC28,U+CC98,U+CC9C,U+CCAD,U+CD5C,U+CD94,U+CD9C,U+CDE8,U+CE68,U+CF54,U+D0DC,U+D14C,U+D1A0,U+D1B5,U+D2F0,U+D30C,U+D310,U+D398,U+D45C,U+D50C,U+D53C,U+D560,U+D568,U+D589,U+D604,U+D6C4,U+D788}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.118.woff2)format("woff2");unicode-range:U+39,U+49,U+4D-4E,U+A0,U+AC04,U+AC1C,U+AC70,U+AC8C,U+ACBD,U+ACF5,U+ACFC,U+AD00,U+AD6C,U+ADF8,U+B098,U+B0B4,U+B294,U+B2C8,U+B300,U+B3C4,U+B3D9,U+B4DC,U+B4E4,U+B77C,U+B7EC,U+B85D,U+B97C,U+B9C8,U+B9CC,U+BA54,U+BA74,U+BA85,U+BAA8,U+BB34,U+BB38,U+BBF8,U+BC14,U+BC29,U+BC88,U+BCF4,U+BD80,U+BE44,U+C0C1,U+C11C,U+C120,U+C131,U+C138,U+C18C,U+C218,U+C2B5,U+C2E0,U+C544,U+C548,U+C5B4,U+C5D0,U+C5EC,U+C5F0,U+C601,U+C624,U+C694,U+C6A9,U+C6B0,U+C6B4,U+C6D0,U+C704,U+C720,U+C73C,U+C740,U+C744,U+C74C,U+C758,U+C77C,U+C785,U+C788,U+C790-C791,U+C7A5,U+C804,U+C815,U+C81C,U+C870,U+C8FC,U+C911,U+C9C4,U+CCB4,U+CE58,U+CE74,U+D06C,U+D0C0,U+D130,U+D2B8,U+D3EC,U+D504,U+D55C,U+D569,U+D574,U+D638,U+D654,U+D68C}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshVAuA8jEe2LD_Xfj-yqp8xQ6VsVzYGYHDC3g.119.woff2)format("woff2");unicode-range:U+20-22,U+27-2A,U+2C-38,U+3A-3B,U+3F,U+41-47,U+4A-4C,U+4F-5D,U+61-7B,U+7D,U+A1,U+AB,U+AE,U+B7,U+BB,U+BF,U+2013-2014,U+201C-201D,U+2122,U+AC00,U+ACE0,U+AE30,U+B2E4,U+B85C,U+B9AC,U+C0AC,U+C2A4,U+C2DC,U+C774,U+C778,U+C9C0,U+D558}@font-face{font-family:Gugi;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/gugi/v20/A2BVn5dXywshZAmK9RMckqI.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZurR_iJGursUpyo0Q.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuiR_iJGursUpyo0Q.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuqR_iJGursUpyo0Q.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZulR_iJGursUpyo0Q.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZvuR_iJGursUpyo0Q.woff2)format("woff2");unicode-range:U+200C-200D,U+2010,U+25CC,U+A900-A92F}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZupR_iJGursUpyo0Q.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:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuoR_iJGursUpyo0Q.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v33/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZumR_iJGursUpw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.0.woff2)format("woff2");unicode-range:U+25EE8,U+25F23,U+25F5C,U+25FD4,U+25FE0,U+25FFB,U+2600C,U+26017,U+26060,U+260ED,U+26222,U+2626A,U+26270,U+26286,U+2634C,U+26402,U+2667E,U+266B0,U+2671D,U+268DD,U+268EA,U+26951,U+2696F,U+26999,U+269DD,U+26A1E,U+26A58,U+26A8C,U+26AB7,U+26AFF,U+26C29,U+26C73,U+26C9E,U+26CDD,U+26E40,U+26E65,U+26F94,U+26FF6-26FF8,U+270F4,U+2710D,U+27139,U+273DA-273DB,U+273FE,U+27410,U+27449,U+27614-27615,U+27631,U+27684,U+27693,U+2770E,U+27723,U+27752,U+278B2,U+27985,U+279B4,U+27A84,U+27BB3,U+27BBE,U+27BC7,U+27C3C,U+27CB8,U+27D73,U+27DA0,U+27E10,U+27EAF,U+27FB7,U+2808A,U+280BB,U+28277,U+28282,U+282F3,U+283CD,U+2840C,U+28455,U+284DC,U+2856B,U+285C8-285C9,U+286D7,U+286FA,U+28946,U+28949,U+2896B,U+28987-28988,U+289BA-289BB,U+28A1E,U+28A29,U+28A43,U+28A71,U+28A99,U+28ACD,U+28ADD,U+28AE4,U+28BC1,U+28BEF,U+28CDD,U+28D10,U+28D71,U+28DFB,U+28E0F,U+28E17,U+28E1F,U+28E36,U+28E89,U+28EEB,U+28EF6,U+28F32,U+28FF8,U+292A0,U+292B1,U+29490,U+295CF,U+2967F,U+296F0,U+29719,U+29750,U+29810,U+298C6,U+29A72,U+29D4B,U+29DDB,U+29E15,U+29E3D,U+29E49,U+29E8A,U+29EC4,U+29EDB,U+29EE9,U+29FCE,U+29FD7,U+2A01A,U+2A02F,U+2A082,U+2A0F9,U+2A190,U+2A2B2,U+2A38C,U+2A437,U+2A5F1,U+2A602,U+2A61A,U+2A6B2,U+2A9E6,U+2B746,U+2B751,U+2B753,U+2B75A,U+2B75C,U+2B765,U+2B776-2B777,U+2B77C,U+2B782,U+2B789,U+2B78B,U+2B78E,U+2B794,U+2B7AC,U+2B7AF,U+2B7BD,U+2B7C9,U+2B7CF,U+2B7D2,U+2B7D8,U+2B7F0,U+2B80D,U+2B817,U+2B81A,U+2D544,U+2E278,U+2E569,U+2E6EA,U+2F804,U+2F80F,U+2F815,U+2F818,U+2F81A,U+2F822,U+2F828,U+2F82C,U+2F833,U+2F83F,U+2F846,U+2F852,U+2F862,U+2F86D,U+2F873,U+2F877,U+2F884,U+2F899-2F89A,U+2F8A6,U+2F8AC,U+2F8B2,U+2F8B6,U+2F8D3,U+2F8DB-2F8DC,U+2F8E1,U+2F8E5,U+2F8EA,U+2F8ED,U+2F8FC,U+2F903,U+2F90B,U+2F90F,U+2F91A,U+2F920-2F921,U+2F945,U+2F947,U+2F96C,U+2F995,U+2F9D0,U+2F9DE-2F9DF,U+2F9F4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.1.woff2)format("woff2");unicode-range:U+1F235-1F23B,U+1F240-1F248,U+1F250-1F251,U+2000B,U+20089-2008A,U+200A2,U+200A4,U+200B0,U+200F5,U+20158,U+201A2,U+20213,U+2032B,U+20371,U+20381,U+203F9,U+2044A,U+20509,U+2053F,U+205B1,U+205D6,U+20611,U+20628,U+206EC,U+2074F,U+207C8,U+20807,U+2083A,U+208B9,U+2090E,U+2097C,U+20984,U+2099D,U+20A64,U+20AD3,U+20B1D,U+20B9F,U+20BB7,U+20D45,U+20D58,U+20DE1,U+20E64,U+20E6D,U+20E95,U+20F5F,U+21201,U+2123D,U+21255,U+21274,U+2127B,U+212D7,U+212E4,U+212FD,U+2131B,U+21336,U+21344,U+213C4,U+2146D-2146E,U+215D7,U+21647,U+216B4,U+21706,U+21742,U+218BD,U+219C3,U+21A1A,U+21C56,U+21D2D,U+21D45,U+21D62,U+21D78,U+21D92,U+21D9C,U+21DA1,U+21DB7,U+21DE0,U+21E33-21E34,U+21F1E,U+21F76,U+21FFA,U+2217B,U+22218,U+2231E,U+223AD,U+22609,U+226F3,U+2285B,U+228AB,U+2298F,U+22AB8,U+22B46,U+22B4F-22B50,U+22BA6,U+22C1D,U+22C24,U+22DE1,U+22E42,U+22FEB,U+231B6,U+231C3-231C4,U+231F5,U+23372,U+233CC,U+233D0,U+233D2-233D3,U+233D5,U+233DA,U+233DF,U+233E4,U+233FE,U+2344A-2344B,U+23451,U+23465,U+234E4,U+2355A,U+23594,U+235C4,U+23638-2363A,U+23647,U+2370C,U+2371C,U+2373F,U+23763-23764,U+237E7,U+237F1,U+237FF,U+23824,U+2383D,U+23A98,U+23C7F,U+23CBE,U+23CFE,U+23D00,U+23D0E,U+23D40,U+23DD3,U+23DF9-23DFA,U+23F7E,U+2404B,U+24096,U+24103,U+241C6,U+241FE,U+242EE,U+243BC,U+243D0,U+24629,U+246A5,U+247F1,U+24896,U+248E9,U+24A4D,U+24B56,U+24B6F,U+24C16,U+24D14,U+24E04,U+24E0E,U+24E37,U+24E6A,U+24E8B,U+24FF2,U+2504A,U+25055,U+25122,U+251A9,U+251CD,U+251E5,U+2521E,U+2524C,U+2542E,U+2548E,U+254D9,U+2550E,U+255A7,U+2567F,U+25771,U+257A9,U+257B4,U+25874,U+259C4,U+259CC,U+259D4,U+25AD7,U+25AE3-25AE4,U+25AF1,U+25BB2,U+25C4B,U+25C64,U+25DA1,U+25E2E,U+25E56,U+25E62,U+25E65,U+25EC2,U+25ED8}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.2.woff2)format("woff2");unicode-range:U+FFD7,U+FFDA-FFDC,U+FFE0-FFE2,U+FFE4,U+FFE6,U+FFE8-FFEE,U+1F100-1F10C,U+1F110-1F16C,U+1F170-1F1AC,U+1F200-1F202,U+1F210-1F234}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.3.woff2)format("woff2");unicode-range:U+FA10,U+FA12-FA6D,U+FB00-FB04,U+FE10-FE19,U+FE30-FE42,U+FE44-FE52,U+FE54-FE66,U+FE68-FE6B,U+FF02,U+FF04,U+FF07,U+FF51,U+FF5B,U+FF5D,U+FF5F-FF60,U+FF66,U+FF69,U+FF87,U+FFA1-FFBE,U+FFC2-FFC7,U+FFCA-FFCF,U+FFD2-FFD6}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.4.woff2)format("woff2");unicode-range:U+F92D-F959,U+F95B-F9F2,U+F9F4-FA0B,U+FA0E-FA0F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.5.woff2)format("woff2");unicode-range:U+9E8B-9E8C,U+9E8E-9E8F,U+9E91-9E92,U+9E95-9E96,U+9E98,U+9E9B,U+9E9D-9E9E,U+9EA4-9EA5,U+9EA8-9EAA,U+9EAC-9EB0,U+9EB3-9EB5,U+9EB8,U+9EBC-9EBF,U+9EC3,U+9EC6,U+9EC8,U+9ECB-9ECD,U+9ECF-9ED1,U+9ED4-9ED5,U+9ED8,U+9EDB-9EE0,U+9EE4-9EE5,U+9EE7-9EE8,U+9EEC-9EF2,U+9EF4-9EF9,U+9EFB-9EFF,U+9F02-9F03,U+9F07-9F09,U+9F0E-9F12,U+9F14-9F17,U+9F19-9F1B,U+9F1F-9F22,U+9F26,U+9F2A-9F2C,U+9F2F,U+9F31-9F32,U+9F34,U+9F37,U+9F39-9F3A,U+9F3C-9F3F,U+9F41,U+9F43-9F47,U+9F4A,U+9F4E-9F50,U+9F52-9F58,U+9F5A,U+9F5D-9F61,U+9F63,U+9F66-9F6A,U+9F6C-9F73,U+9F75-9F77,U+9F7A,U+9F7D,U+9F7F,U+9F8F-9F92,U+9F94-9F97,U+9F99,U+9F9C-9FA3,U+9FA5,U+9FB4,U+9FBC-9FC2,U+9FC4,U+9FC6,U+9FCC,U+F900-F92C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.6.woff2)format("woff2");unicode-range:U+9C3E,U+9C41,U+9C43-9C4A,U+9C4E-9C50,U+9C52-9C54,U+9C56,U+9C58,U+9C5A-9C61,U+9C63,U+9C65,U+9C67-9C6B,U+9C6D-9C6E,U+9C70,U+9C72,U+9C75-9C78,U+9C7A-9C7C,U+9CE6-9CE7,U+9CEB-9CEC,U+9CF0,U+9CF2,U+9CF6-9CF7,U+9CF9,U+9D02-9D03,U+9D06-9D09,U+9D0B,U+9D0E,U+9D11-9D12,U+9D15,U+9D17-9D18,U+9D1B-9D1F,U+9D23,U+9D26,U+9D2A-9D2C,U+9D2F-9D30,U+9D32-9D34,U+9D3A,U+9D3C-9D3F,U+9D41-9D48,U+9D4A,U+9D50-9D54,U+9D59,U+9D5D-9D65,U+9D69-9D6C,U+9D6F-9D70,U+9D72-9D73,U+9D76-9D77,U+9D7A-9D7C,U+9D7E,U+9D83-9D84,U+9D86-9D87,U+9D89-9D8A,U+9D8D-9D8E,U+9D92-9D93,U+9D95-9D9A,U+9DA1,U+9DA4,U+9DA9-9DAC,U+9DAE,U+9DB1-9DB2,U+9DB5,U+9DB8-9DBD,U+9DBF-9DC4,U+9DC6-9DC7,U+9DC9-9DCA,U+9DCF,U+9DD3-9DD7,U+9DD9-9DDA,U+9DDE-9DE0,U+9DE3,U+9DE5-9DE7,U+9DE9,U+9DEB,U+9DED-9DF0,U+9DF3-9DF4,U+9DF8,U+9DFD-9DFE,U+9E02,U+9E07,U+9E0A,U+9E0D-9E0E,U+9E10-9E12,U+9E15-9E16,U+9E19-9E1F,U+9E75,U+9E79-9E7D,U+9E80-9E85,U+9E87-9E88}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.7.woff2)format("woff2");unicode-range:U+9AE5-9AE7,U+9AE9,U+9AEB-9AEC,U+9AEE-9AEF,U+9AF1-9AF5,U+9AF7,U+9AF9-9AFB,U+9AFD,U+9AFF-9B06,U+9B08-9B09,U+9B0B-9B0E,U+9B10,U+9B12,U+9B16,U+9B18-9B1D,U+9B1F-9B20,U+9B22-9B23,U+9B25-9B2F,U+9B32-9B35,U+9B37,U+9B39-9B3B,U+9B3D,U+9B43-9B44,U+9B48,U+9B4B-9B4F,U+9B51,U+9B55-9B58,U+9B5B,U+9B5E,U+9B61,U+9B63,U+9B65-9B66,U+9B68,U+9B6A-9B6F,U+9B72-9B79,U+9B7F-9B80,U+9B83-9B87,U+9B89-9B8B,U+9B8D,U+9B8F-9B94,U+9B96-9B97,U+9B9A,U+9B9D-9BA0,U+9BA6-9BA7,U+9BA9-9BAA,U+9BAC,U+9BB0-9BB2,U+9BB4,U+9BB7-9BB9,U+9BBB-9BBC,U+9BBE-9BC1,U+9BC6-9BC8,U+9BCA,U+9BCE-9BD2,U+9BD4,U+9BD7-9BD8,U+9BDD,U+9BDF,U+9BE1-9BE5,U+9BE7,U+9BEA-9BEB,U+9BEE-9BF3,U+9BF5,U+9BF7-9BFA,U+9BFD,U+9BFF-9C00,U+9C02,U+9C04,U+9C06,U+9C08-9C0D,U+9C0F-9C16,U+9C18-9C1E,U+9C21-9C2A,U+9C2D-9C32,U+9C35-9C37,U+9C39-9C3A,U+9C3D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.8.woff2)format("woff2");unicode-range:U+98EB,U+98ED-98EE,U+98F0-98F1,U+98F3,U+98F6,U+9902,U+9907-9909,U+9911-9912,U+9914-9918,U+991A-9922,U+9924,U+9926-9927,U+992B-992C,U+992E,U+9931-9935,U+9939-993E,U+9940-9942,U+9945-9949,U+994B-994E,U+9950-9952,U+9954-9955,U+9958-9959,U+995B-995C,U+995E-9960,U+9963,U+9997-9998,U+999B,U+999D-999F,U+99A3,U+99A5-99A6,U+99A8,U+99AD-99AE,U+99B0-99B2,U+99B5,U+99B9-99BA,U+99BC-99BD,U+99BF,U+99C1,U+99C3,U+99C8-99C9,U+99D1,U+99D3-99D5,U+99D8-99DF,U+99E1-99E2,U+99E7,U+99EA-99EE,U+99F0-99F2,U+99F4-99F5,U+99F8-99F9,U+99FB-99FE,U+9A01-9A05,U+9A08,U+9A0A-9A0C,U+9A0F-9A11,U+9A16,U+9A1A,U+9A1E,U+9A20,U+9A22-9A24,U+9A27,U+9A2B,U+9A2D-9A2E,U+9A31,U+9A33,U+9A35-9A38,U+9A3E,U+9A40-9A45,U+9A47,U+9A4A-9A4E,U+9A51-9A52,U+9A54-9A58,U+9A5B,U+9A5D,U+9A5F,U+9A62,U+9A64-9A65,U+9A69-9A6C,U+9AAA,U+9AAC-9AB0,U+9AB2,U+9AB4-9AB7,U+9AB9,U+9ABB-9AC1,U+9AC3,U+9AC6,U+9AC8,U+9ACE-9AD3,U+9AD5-9AD7,U+9ADB-9ADC,U+9ADE-9AE0,U+9AE2-9AE4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.9.woff2)format("woff2");unicode-range:U+971D,U+9721-9724,U+9728,U+972A,U+9730-9731,U+9733,U+9736,U+9738-9739,U+973B,U+973D-973E,U+9741-9744,U+9746-974A,U+974D-974F,U+9751,U+9755,U+9757-9758,U+975A-975C,U+9760-9761,U+9763-9764,U+9766-9768,U+976A-976B,U+976E,U+9771,U+9773,U+9776-977D,U+977F-9781,U+9785-9786,U+9789,U+978B,U+978F-9790,U+9795-9797,U+9799-979A,U+979C,U+979E-97A0,U+97A2-97A3,U+97A6,U+97A8,U+97AB-97AC,U+97AE,U+97B1-97B6,U+97B8-97BA,U+97BC,U+97BE-97BF,U+97C1,U+97C3-97CE,U+97D0-97D1,U+97D4,U+97D7-97D9,U+97DB-97DE,U+97E0-97E1,U+97E4,U+97E6,U+97ED-97EF,U+97F1-97F2,U+97F4-97F8,U+97FA,U+9804,U+9807,U+980A,U+980C-980F,U+9814,U+9816-9817,U+9819-981A,U+981C,U+981E,U+9820-9821,U+9823-9826,U+982B,U+982E-9830,U+9832-9835,U+9837,U+9839,U+983D-983E,U+9844,U+9846-9847,U+984A-984B,U+984F,U+9851-9853,U+9856-9857,U+9859-985B,U+9862-9863,U+9865-9866,U+986A-986C,U+986F-9871,U+9873-9875,U+98AA-98AB,U+98AD-98AE,U+98B0-98B1,U+98B4,U+98B6-98B8,U+98BA-98BC,U+98BF,U+98C2-98C8,U+98CB-98CC,U+98CE,U+98DC,U+98DE,U+98E0-98E1,U+98E3,U+98E5-98E7,U+98E9-98EA}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.10.woff2)format("woff2");unicode-range:U+944A,U+944C,U+9452-9453,U+9455,U+9459-945C,U+945E-9463,U+9468,U+946A-946B,U+946D-9472,U+9475,U+9477,U+947C-947F,U+9481,U+9483-9485,U+9578-9579,U+957E-957F,U+9582,U+9584,U+9586-9588,U+958A,U+958C-958F,U+9592,U+9594,U+9596,U+9598-9599,U+959D-95A1,U+95A4,U+95A6-95A9,U+95AB-95AD,U+95B1,U+95B4,U+95B6,U+95B9-95BF,U+95C3,U+95C6,U+95C8-95CD,U+95D0-95D6,U+95D9-95DA,U+95DC-95E2,U+95E4-95E6,U+95E8,U+961D-961E,U+9621-9622,U+9624-9626,U+9628,U+962C,U+962E-962F,U+9631,U+9633-9634,U+9637-963A,U+963C-963D,U+9641-9642,U+964B-964C,U+964F,U+9652,U+9654,U+9656-9658,U+965C-965F,U+9661,U+9666,U+966A,U+966C,U+966E,U+9672,U+9674,U+9677,U+967B-967C,U+967E-967F,U+9681-9684,U+9689,U+968B,U+968D,U+9691,U+9695-9698,U+969A,U+969D,U+969F,U+96A4-96AA,U+96AE-96B4,U+96B6,U+96B8-96BB,U+96BD,U+96C1,U+96C9-96CB,U+96CD-96CE,U+96D2,U+96D5-96D6,U+96D8-96DA,U+96DC-96DF,U+96E9,U+96EF,U+96F1,U+96F9-96FA,U+9702-9706,U+9708-9709,U+970D-970F,U+9711,U+9713-9714,U+9716,U+9719-971B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.11.woff2)format("woff2");unicode-range:U+92BC-92BD,U+92BF-92C3,U+92C5-92C8,U+92CB-92D0,U+92D2-92D3,U+92D5,U+92D7-92D9,U+92DC-92DD,U+92DF-92E1,U+92E3-92E5,U+92E7-92EA,U+92EC,U+92EE,U+92F0,U+92F2,U+92F7-92FB,U+92FF-9300,U+9302,U+9304,U+9308,U+930D,U+930F-9311,U+9314-9315,U+9318-931A,U+931C-931F,U+9321-9325,U+9327-932B,U+932E,U+9333-9337,U+933A-933B,U+9344,U+9347-934A,U+934D,U+9350-9352,U+9354-9358,U+935A,U+935C,U+935E,U+9360,U+9364-9365,U+9367,U+9369-936D,U+936F-9371,U+9373-9374,U+9376,U+937A,U+937D-9382,U+9388,U+938A-938B,U+938D,U+938F,U+9392,U+9394-9395,U+9397-9398,U+939A-939B,U+939E,U+93A1,U+93A3-93A4,U+93A6,U+93A8-93A9,U+93AB-93AD,U+93B0,U+93B4-93B6,U+93B9-93BB,U+93C1,U+93C3-93CD,U+93D0-93D1,U+93D3,U+93D6-93D9,U+93DC-93DF,U+93E2,U+93E4-93E8,U+93F1,U+93F5,U+93F7-93FB,U+93FD,U+9401-9404,U+9407-9409,U+940D-9410,U+9413-9417,U+9419-941A,U+941F,U+9421,U+942B,U+942E-942F,U+9431-9434,U+9436,U+9438,U+943A-943B,U+943D,U+943F,U+9441,U+9443-9445,U+9448}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.12.woff2)format("woff2");unicode-range:U+9143,U+9146-914C,U+914F,U+9153,U+9156-915B,U+9161,U+9163-9165,U+9167,U+9169,U+916D,U+9172-9174,U+9179-917B,U+9181-9183,U+9185-9187,U+9189-918B,U+918E,U+9191,U+9193-9195,U+9197-9198,U+919E,U+91A1-91A2,U+91A6,U+91A8,U+91AA-91B6,U+91BA-91BD,U+91BF-91C6,U+91C9,U+91CB,U+91D0,U+91D3-91D4,U+91D6-91D7,U+91D9-91DB,U+91DE-91DF,U+91E1,U+91E4-91E6,U+91E9-91EA,U+91EC-91F1,U+91F5-91F7,U+91F9,U+91FB-91FD,U+91FF-9201,U+9204-9207,U+9209-920A,U+920C,U+920E,U+9210-9218,U+921C-921E,U+9223-9226,U+9228-9229,U+922C,U+922E-9230,U+9233,U+9235-923A,U+923C,U+923E-9240,U+9242-9243,U+9245-924B,U+924D-9251,U+9256-925A,U+925C-925E,U+9260-9261,U+9264-9269,U+926E-9270,U+9275-9279,U+927B-927F,U+9288-928A,U+928D-928E,U+9291-9293,U+9295-9297,U+9299,U+929B-929C,U+929F-92A0,U+92A4-92A5,U+92A7-92A8,U+92AB,U+92AF,U+92B2-92B3,U+92B6-92BB}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.13.woff2)format("woff2");unicode-range:U+8F52-8F55,U+8F57-8F58,U+8F5C-8F5E,U+8F61-8F66,U+8F9C-8F9D,U+8F9F-8FA2,U+8FA4-8FA8,U+8FAD-8FAF,U+8FB4-8FB8,U+8FBE,U+8FC0-8FC2,U+8FC6,U+8FC8,U+8FCA-8FCB,U+8FCD,U+8FD0,U+8FD2-8FD3,U+8FD5,U+8FDA,U+8FE0,U+8FE2-8FE5,U+8FE8-8FEA,U+8FED-8FEF,U+8FF1,U+8FF4-8FF6,U+8FF8-8FFB,U+8FFE,U+9002,U+9004-9005,U+9008,U+900B-900E,U+9011,U+9013,U+9015-9016,U+9018,U+901B,U+901E,U+9021,U+9027-902A,U+902C-902D,U+902F,U+9033-9037,U+9039,U+903C,U+903E-903F,U+9041,U+9043-9044,U+9049,U+904C,U+904F-9052,U+9056,U+9058,U+905B-905E,U+9062,U+9066-9068,U+906C,U+906F-9070,U+9072,U+9074,U+9076,U+9079,U+9080-9083,U+9085,U+9087-9088,U+908B-908C,U+908E-9090,U+9095,U+9097-9099,U+909B,U+90A0-90A2,U+90A5,U+90A8,U+90AF-90B6,U+90BD-90BE,U+90C3-90C5,U+90C7-90C9,U+90CC,U+90D2,U+90D5,U+90D7-90D9,U+90DB-90DF,U+90E2,U+90E4-90E5,U+90EB,U+90EF-90F0,U+90F2,U+90F4,U+90F6,U+90FE-9100,U+9102,U+9104-9106,U+9108,U+910D,U+9110,U+9112,U+9114-911A,U+911C,U+911E,U+9120,U+9122-9123,U+9125,U+9127,U+9129,U+912D-9132,U+9134,U+9136-9137,U+9139-913A,U+913C-913D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.14.woff2)format("woff2");unicode-range:U+8DC0,U+8DC2,U+8DC5-8DC8,U+8DCA-8DCC,U+8DCE-8DCF,U+8DD1,U+8DD4-8DD7,U+8DD9-8DDB,U+8DDF,U+8DE3-8DE5,U+8DE7,U+8DEA-8DEC,U+8DF0-8DF2,U+8DF4,U+8DFC-8DFD,U+8DFF,U+8E01,U+8E04-8E06,U+8E08-8E09,U+8E0B-8E0C,U+8E10-8E11,U+8E14,U+8E16,U+8E1D-8E23,U+8E26-8E27,U+8E30-8E31,U+8E33-8E39,U+8E3D,U+8E40-8E42,U+8E44,U+8E47-8E50,U+8E54-8E55,U+8E59,U+8E5B-8E64,U+8E69,U+8E6C-8E6D,U+8E6F-8E72,U+8E75-8E77,U+8E79-8E7C,U+8E81-8E85,U+8E89,U+8E8B,U+8E90-8E95,U+8E98-8E9B,U+8E9D-8E9E,U+8EA1-8EA2,U+8EA7,U+8EA9-8EAA,U+8EAC-8EB1,U+8EB3,U+8EB5-8EB6,U+8EBA-8EBB,U+8EBE,U+8EC0-8EC1,U+8EC3-8EC8,U+8ECB,U+8ECF,U+8ED1,U+8ED4,U+8EDB-8EDC,U+8EE3,U+8EE8,U+8EEB,U+8EED-8EEE,U+8EF0-8EF1,U+8EF7,U+8EF9-8EFC,U+8EFE,U+8F00,U+8F02,U+8F05,U+8F07-8F08,U+8F0A,U+8F0F-8F10,U+8F12-8F13,U+8F15-8F19,U+8F1B-8F1C,U+8F1E-8F21,U+8F23,U+8F25-8F28,U+8F2B-8F2F,U+8F33-8F37,U+8F39-8F3B,U+8F3E,U+8F40-8F43,U+8F45-8F47,U+8F49-8F4A,U+8F4C-8F4F,U+8F51}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.15.woff2)format("woff2");unicode-range:U+8B2D,U+8B30,U+8B37,U+8B3C,U+8B3E,U+8B41-8B46,U+8B48-8B49,U+8B4C-8B4F,U+8B51-8B54,U+8B56,U+8B59,U+8B5B,U+8B5E-8B5F,U+8B63,U+8B69,U+8B6B-8B6D,U+8B6F,U+8B71,U+8B74,U+8B76,U+8B78-8B79,U+8B7C-8B81,U+8B84-8B85,U+8B8A-8B8F,U+8B92-8B96,U+8B99-8B9A,U+8B9C-8BA0,U+8C38-8C3A,U+8C3D-8C3F,U+8C41,U+8C45,U+8C47-8C49,U+8C4B-8C4C,U+8C4E-8C51,U+8C53-8C55,U+8C57-8C59,U+8C5B,U+8C5D,U+8C62-8C64,U+8C66,U+8C68-8C69,U+8C6B-8C6D,U+8C73,U+8C75-8C76,U+8C78,U+8C7A-8C7C,U+8C7E,U+8C82,U+8C85-8C87,U+8C89-8C8B,U+8C8D-8C8E,U+8C90,U+8C92-8C94,U+8C98-8C99,U+8C9B-8C9C,U+8C9F,U+8CA4,U+8CAD-8CAE,U+8CB2-8CB3,U+8CB6,U+8CB9-8CBA,U+8CBD,U+8CC1-8CC2,U+8CC4-8CC6,U+8CC8-8CC9,U+8CCB,U+8CCD-8CCF,U+8CD2,U+8CD5-8CD6,U+8CD9-8CDA,U+8CDD,U+8CE1,U+8CE3-8CE4,U+8CE6,U+8CE8,U+8CEC,U+8CEF-8CF2,U+8CF4-8CF5,U+8CF7-8CF8,U+8CFA-8CFB,U+8CFD-8CFF,U+8D01,U+8D03-8D04,U+8D07,U+8D09-8D0B,U+8D0D-8D10,U+8D12-8D14,U+8D16-8D17,U+8D1B-8D1D,U+8D65,U+8D67,U+8D69,U+8D6B-8D6E,U+8D71,U+8D73,U+8D76,U+8D7F,U+8D81-8D82,U+8D84,U+8D88,U+8D8D,U+8D90-8D91,U+8D95,U+8D99,U+8D9E-8DA0,U+8DA6,U+8DA8,U+8DAB-8DAC,U+8DAF,U+8DB2,U+8DB5,U+8DB7,U+8DB9-8DBC,U+8DBE}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.16.woff2)format("woff2");unicode-range:U+8973-8975,U+8977,U+897A-897E,U+8980,U+8983,U+8988-898A,U+898D,U+8990,U+8993-8995,U+8998,U+899B-899C,U+899F-89A1,U+89A5-89A6,U+89A9,U+89AC,U+89AF-89B0,U+89B2,U+89B4-89B7,U+89BA,U+89BC-89BD,U+89BF-89C1,U+89D4-89D8,U+89DA,U+89DC-89DD,U+89E5,U+89E7,U+89E9,U+89EB,U+89ED,U+89F1,U+89F3-89F4,U+89F6,U+89F8-89F9,U+89FD,U+89FF,U+8A01,U+8A04-8A05,U+8A07,U+8A0C,U+8A0F-8A12,U+8A14-8A16,U+8A1B,U+8A1D-8A1E,U+8A20-8A22,U+8A24-8A26,U+8A2B-8A2C,U+8A2F,U+8A35-8A37,U+8A3B,U+8A3D-8A3E,U+8A40-8A41,U+8A43,U+8A45-8A49,U+8A4D-8A4E,U+8A51-8A54,U+8A56-8A58,U+8A5B-8A5D,U+8A61-8A62,U+8A65,U+8A67,U+8A6C-8A6D,U+8A75-8A77,U+8A79-8A7C,U+8A7E-8A80,U+8A82-8A86,U+8A8B,U+8A8F-8A92,U+8A96-8A97,U+8A99-8A9A,U+8A9F,U+8AA1,U+8AA3,U+8AA5-8AAA,U+8AAE-8AAF,U+8AB3,U+8AB6-8AB7,U+8ABB-8ABC,U+8ABE,U+8AC2-8AC4,U+8AC6,U+8AC8-8ACA,U+8ACC-8ACD,U+8AD0-8AD1,U+8AD3-8AD5,U+8AD7,U+8ADA-8AE2,U+8AE4,U+8AE7,U+8AEB-8AEC,U+8AEE,U+8AF0-8AF1,U+8AF3-8AF7,U+8AFA,U+8AFC,U+8AFF,U+8B01-8B02,U+8B04-8B07,U+8B0A-8B0D,U+8B0F-8B11,U+8B14,U+8B16,U+8B1A,U+8B1C,U+8B1E-8B20,U+8B26,U+8B28,U+8B2B-8B2C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.17.woff2)format("woff2");unicode-range:U+87E2-87E6,U+87EA-87ED,U+87EF,U+87F1,U+87F3,U+87F5-87F8,U+87FA-87FB,U+87FE-87FF,U+8801,U+8803,U+8805-8807,U+8809-880B,U+880D-8816,U+8818-881C,U+881E-881F,U+8821-8822,U+8827-8828,U+882D-882E,U+8830-8832,U+8835-8836,U+8839-883C,U+8841-8845,U+8848-884B,U+884D-884E,U+8851-8852,U+8855-8856,U+8858-885A,U+885C,U+885E-8860,U+8862,U+8864,U+8869,U+886B,U+886E-886F,U+8871-8872,U+8875,U+8877,U+8879,U+887B,U+887D-887E,U+8880-8882,U+8888,U+888D,U+8892,U+8897-889C,U+889E-88A0,U+88A2,U+88A4,U+88A8,U+88AA,U+88AE,U+88B0-88B1,U+88B5,U+88B7,U+88BA,U+88BC-88C0,U+88C3-88C4,U+88C6,U+88CA-88CE,U+88D1-88D4,U+88D8-88D9,U+88DB,U+88DD-88E1,U+88E7-88E8,U+88EF-88F2,U+88F4-88F5,U+88F7,U+88F9,U+88FC,U+8901-8902,U+8904,U+8906,U+890A,U+890C-890F,U+8913,U+8915-8916,U+8918-891A,U+891C-891E,U+8920,U+8925-8928,U+892A-892B,U+8930-8932,U+8935-893B,U+893E,U+8940-8946,U+8949,U+894C-894D,U+894F,U+8952,U+8956-8957,U+895A-895C,U+895E,U+8960-8964,U+8966,U+896A-896B,U+896D-8970}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.18.woff2)format("woff2");unicode-range:U+8655-8659,U+865B,U+865D-8664,U+8667,U+8669,U+866C,U+866F,U+8671,U+8675-8677,U+867A-867B,U+867D,U+8687-8689,U+868B-868D,U+8691,U+8693,U+8695-8696,U+8698,U+869A,U+869C-869D,U+86A1,U+86A3-86A4,U+86A6-86AB,U+86AD,U+86AF-86B1,U+86B3-86B9,U+86BF-86C1,U+86C3-86C6,U+86C9,U+86CB,U+86CE,U+86D1-86D2,U+86D4-86D5,U+86D7,U+86DA,U+86DC,U+86DE-86E0,U+86E3-86E7,U+86E9,U+86EC-86ED,U+86EF,U+86F8-86FE,U+8700,U+8703-870B,U+870D-8714,U+8719-871A,U+871E-871F,U+8721-8723,U+8725,U+8728-8729,U+872E-872F,U+8731-8732,U+8734,U+8737,U+8739-8740,U+8743,U+8745,U+8749,U+874B-874E,U+8751,U+8753,U+8755,U+8757-8759,U+875D,U+875F-8761,U+8763-8766,U+8768,U+876A,U+876E-876F,U+8771-8772,U+8774,U+8778,U+877B-877C,U+877F,U+8782-8789,U+878B-878C,U+878E,U+8790,U+8793,U+8795,U+8797-8799,U+879E-87A0,U+87A2-87A3,U+87A7,U+87AB-87AF,U+87B1,U+87B3,U+87B5,U+87BB,U+87BD-87C1,U+87C4,U+87C6-87CB,U+87CE,U+87D0,U+87D2,U+87D5-87D6,U+87D9-87DA,U+87DC,U+87DF-87E0}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.19.woff2)format("woff2");unicode-range:U+84B4,U+84B9-84BB,U+84BD-84C2,U+84C6-84CA,U+84CC-84D1,U+84D3,U+84D6,U+84D9-84DA,U+84DC,U+84E7,U+84EA,U+84EC,U+84EF-84F2,U+84F4,U+84F7,U+84FA-84FD,U+84FF-8500,U+8502-8503,U+8506-8507,U+850C,U+850E,U+8510,U+8514-8515,U+8517-8518,U+851A-851C,U+851E-851F,U+8521-8525,U+8527,U+852A-852C,U+852F,U+8532-8534,U+8536,U+853E-8541,U+8543,U+8546,U+8548,U+854A-854B,U+854F-8553,U+8555-855A,U+855C-8564,U+8569-856B,U+856D,U+856F,U+8577,U+8579-857B,U+857D-8581,U+8585-8586,U+8588-858C,U+858F-8591,U+8593,U+8597-8598,U+859B-859D,U+859F-85A0,U+85A2,U+85A4-85A5,U+85A7-85A8,U+85AD-85B0,U+85B4,U+85B6-85BA,U+85BC-85BF,U+85C1-85C2,U+85C7,U+85C9-85CB,U+85CE-85D0,U+85D5,U+85D8-85DA,U+85DC,U+85DF-85E1,U+85E5-85E6,U+85E8,U+85ED,U+85F3-85F4,U+85F6-85F7,U+85F9-85FA,U+85FC,U+85FE-8600,U+8602,U+8604-8606,U+860A-860B,U+860D-860E,U+8610-8613,U+8616-861B,U+861E,U+8621-8622,U+8624,U+8627,U+8629,U+862F-8630,U+8636,U+8638-863A,U+863C-863D,U+863F-8642,U+8646,U+864D,U+8652-8654}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.20.woff2)format("woff2");unicode-range:U+82E8,U+82EA,U+82ED,U+82EF,U+82F3-82F4,U+82F6-82F7,U+82F9,U+82FB,U+82FD-82FE,U+8300-8301,U+8303,U+8306-8308,U+830A-830C,U+8316-8318,U+831B,U+831D-831F,U+8321-8323,U+832B-8335,U+8337,U+833A,U+833C-833D,U+8340,U+8342-8347,U+834A,U+834D-8351,U+8353-8357,U+835A,U+8362-8363,U+8370,U+8373,U+8375,U+8378,U+837C-837D,U+837F-8380,U+8382,U+8384-8387,U+838A,U+838D-838E,U+8392-8396,U+8398-83A0,U+83A2,U+83A6-83AD,U+83B1,U+83B5,U+83BD-83C1,U+83C7,U+83C9,U+83CE-83D1,U+83D4,U+83D6,U+83D8,U+83DD,U+83DF-83E1,U+83E5,U+83E8,U+83EA-83EB,U+83F0,U+83F2,U+83F4,U+83F6-83F9,U+83FB-83FD,U+8401,U+8403-8404,U+8406-8407,U+840A-840B,U+840D,U+840F,U+8411,U+8413,U+8415,U+8417,U+8419,U+8420,U+8422,U+842A,U+842F,U+8431,U+8435,U+8438-8439,U+843C,U+8445-8448,U+844A,U+844D-844F,U+8451-8452,U+8456,U+8458-845A,U+845C,U+845F-8462,U+8464-8467,U+8469-846B,U+846D-8470,U+8473-8474,U+8476-847A,U+847C-847D,U+8481-8482,U+8484-8485,U+848B,U+8490,U+8492-8493,U+8495,U+8497,U+849C,U+849E-849F,U+84A1,U+84A6,U+84A8-84AA,U+84AD,U+84AF,U+84B1}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.21.woff2)format("woff2");unicode-range:U+814A,U+814C,U+8151-8153,U+8157,U+815F-8161,U+8165-8169,U+816D-816F,U+8171,U+8173-8174,U+8177,U+8180-8186,U+8188,U+818A-818B,U+818E,U+8190,U+8193,U+8195-8196,U+8198,U+819B,U+819E,U+81A0,U+81A2,U+81A4,U+81A9,U+81AE,U+81B0,U+81B2,U+81B4-81B5,U+81B8,U+81BA-81BB,U+81BD-81BE,U+81C0-81C3,U+81C5-81C6,U+81C8-81CB,U+81CD-81CF,U+81D1,U+81D5-81DB,U+81DD-81E1,U+81E4-81E5,U+81E7,U+81EB-81EC,U+81EF-81F2,U+81F5-81F6,U+81F8-81FB,U+81FD-8205,U+8209-820B,U+820D,U+820F,U+8212-8214,U+8216,U+8219-821D,U+8221-8222,U+8228-8229,U+822B,U+822E,U+8232-8235,U+8237-8238,U+823A,U+823C,U+8240,U+8243-8246,U+8249,U+824B,U+824E-824F,U+8251,U+8256-825A,U+825C-825D,U+825F-8260,U+8262-8264,U+8267-8268,U+826A-826B,U+826D-826E,U+8271,U+8274,U+8277,U+8279,U+827B,U+827D-8281,U+8283-8284,U+8287,U+8289-828A,U+828D-828E,U+8291-8294,U+8296,U+8298-829B,U+829F-82A1,U+82A3-82A4,U+82A7-82AC,U+82AE,U+82B0,U+82B2,U+82B4,U+82B7,U+82BA-82BC,U+82BE-82BF,U+82C5-82C6,U+82D0,U+82D2-82D3,U+82D5,U+82D9-82DA,U+82DC,U+82DE-82E4,U+82E7}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.22.woff2)format("woff2");unicode-range:U+7F77-7F79,U+7F7D-7F80,U+7F82-7F83,U+7F86-7F88,U+7F8B-7F8D,U+7F8F-7F91,U+7F94,U+7F96-7F97,U+7F9A,U+7F9C-7F9D,U+7FA1-7FA3,U+7FA6,U+7FAA,U+7FAD-7FAF,U+7FB2,U+7FB4,U+7FB6,U+7FB8-7FB9,U+7FBC,U+7FBF-7FC0,U+7FC3,U+7FC5-7FC6,U+7FC8,U+7FCA,U+7FCE-7FCF,U+7FD5,U+7FDB,U+7FDF,U+7FE1,U+7FE3,U+7FE5-7FE6,U+7FE8-7FE9,U+7FEB-7FEC,U+7FEE-7FF0,U+7FF2-7FF3,U+7FF9-7FFA,U+7FFD-7FFF,U+8002,U+8004,U+8006-8008,U+800A-800F,U+8011-8014,U+8016,U+8018-8019,U+801C-8021,U+8024,U+8026,U+8028,U+802C,U+802E,U+8030,U+8034-8035,U+8037,U+8039-8040,U+8043-8044,U+8046,U+804A,U+8052,U+8058,U+805A,U+805F-8060,U+8062,U+8064,U+8066,U+8068,U+806D,U+806F-8073,U+8075-8076,U+8079,U+807B,U+807D-8081,U+8084-8088,U+808B,U+808E,U+8093,U+8099-809A,U+809C,U+809E,U+80A4,U+80A6-80A7,U+80AB-80AD,U+80B1,U+80B8-80B9,U+80C4-80C5,U+80C8,U+80CA,U+80CD,U+80CF,U+80D2,U+80D4-80DB,U+80DD,U+80E0,U+80E4-80E6,U+80ED-80F3,U+80F5-80F7,U+80F9-80FC,U+80FE,U+8101,U+8103,U+8109,U+810B,U+810D,U+8116-8118,U+811B-811C,U+811E,U+8120,U+8123-8124,U+8127,U+8129,U+812B-812C,U+812F-8130,U+8135,U+8139-813A,U+813C-813E,U+8141,U+8145-8147}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.23.woff2)format("woff2");unicode-range:U+7D57,U+7D59-7D5D,U+7D63,U+7D65,U+7D67,U+7D6A,U+7D6E,U+7D70,U+7D72-7D73,U+7D78,U+7D7A-7D7B,U+7D7D,U+7D7F,U+7D81-7D83,U+7D85-7D86,U+7D88-7D89,U+7D8B-7D8D,U+7D8F,U+7D91,U+7D93,U+7D96-7D97,U+7D9B-7DA0,U+7DA2-7DA3,U+7DA6-7DA7,U+7DAA-7DAC,U+7DAE-7DB0,U+7DB3,U+7DB5-7DB9,U+7DBD,U+7DC0,U+7DC2-7DC7,U+7DCC-7DCE,U+7DD0,U+7DD5-7DD9,U+7DDC-7DDE,U+7DE1-7DE6,U+7DEA-7DED,U+7DF1-7DF2,U+7DF5-7DF6,U+7DF9-7DFA,U+7E00,U+7E05,U+7E08-7E0B,U+7E10-7E12,U+7E15,U+7E17,U+7E1C-7E1D,U+7E1F-7E23,U+7E27-7E28,U+7E2C-7E2D,U+7E2F,U+7E31-7E33,U+7E35-7E37,U+7E39-7E3B,U+7E3D,U+7E3F,U+7E43-7E48,U+7E4E,U+7E50,U+7E52,U+7E56,U+7E58-7E5A,U+7E5D-7E5F,U+7E61-7E62,U+7E65-7E67,U+7E69-7E6B,U+7E6D-7E6F,U+7E73,U+7E75,U+7E78-7E79,U+7E7B-7E7F,U+7E81-7E83,U+7E86-7E8A,U+7E8C-7E8E,U+7E90-7E96,U+7E98,U+7E9A-7E9F,U+7F38,U+7F3A-7F3F,U+7F43-7F45,U+7F47,U+7F4C-7F50,U+7F52-7F55,U+7F58,U+7F5B-7F5D,U+7F5F,U+7F61,U+7F63-7F69,U+7F6B,U+7F6D,U+7F71}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.24.woff2)format("woff2");unicode-range:U+7BC8,U+7BCA-7BCC,U+7BCF,U+7BD4,U+7BD6-7BD7,U+7BD9-7BDB,U+7BDD,U+7BE5-7BE6,U+7BE8-7BEA,U+7BF0,U+7BF2-7BFA,U+7BFC,U+7BFE,U+7C00-7C04,U+7C06-7C07,U+7C09,U+7C0B-7C0F,U+7C11-7C14,U+7C17,U+7C19,U+7C1B,U+7C1E-7C20,U+7C23,U+7C25-7C28,U+7C2A-7C2C,U+7C2F,U+7C31,U+7C33-7C34,U+7C36-7C3A,U+7C3D-7C3E,U+7C40,U+7C42-7C43,U+7C45-7C46,U+7C4A,U+7C4C,U+7C4F-7C5F,U+7C61,U+7C63-7C65,U+7C67,U+7C69,U+7C6C-7C70,U+7C72,U+7C75,U+7C79,U+7C7B-7C7E,U+7C81-7C83,U+7C86-7C87,U+7C8D,U+7C8F-7C90,U+7C94,U+7C9E,U+7CA0-7CA2,U+7CA4-7CA6,U+7CA8,U+7CAB,U+7CAD-7CAE,U+7CB0-7CB3,U+7CB6-7CB7,U+7CB9-7CBD,U+7CBF-7CC0,U+7CC2,U+7CC4-7CC5,U+7CC7-7CCA,U+7CCD-7CCF,U+7CD2-7CD5,U+7CD7-7CDA,U+7CDC-7CDD,U+7CDF-7CE0,U+7CE2,U+7CE6,U+7CE9,U+7CEB,U+7CEF,U+7CF2,U+7CF4-7CF6,U+7CF9-7CFA,U+7CFE,U+7D02-7D03,U+7D06-7D0A,U+7D0F,U+7D11-7D13,U+7D15-7D16,U+7D1C-7D1E,U+7D23,U+7D26,U+7D2A,U+7D2C-7D2E,U+7D31-7D32,U+7D35,U+7D3C-7D41,U+7D43,U+7D45,U+7D47-7D48,U+7D4B,U+7D4D-7D4F,U+7D51,U+7D53,U+7D55-7D56}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.25.woff2)format("woff2");unicode-range:U+7A17-7A19,U+7A1B,U+7A1E-7A21,U+7A27,U+7A2B,U+7A2D,U+7A2F-7A31,U+7A34-7A35,U+7A37-7A3B,U+7A3E,U+7A43-7A49,U+7A4C,U+7A4E,U+7A50,U+7A55-7A57,U+7A59,U+7A5C-7A5D,U+7A5F-7A63,U+7A65,U+7A67,U+7A69-7A6A,U+7A6D,U+7A70,U+7A75,U+7A78-7A79,U+7A7D-7A7E,U+7A80,U+7A82,U+7A84-7A86,U+7A88,U+7A8A-7A8B,U+7A90-7A91,U+7A94-7A98,U+7A9E,U+7AA0,U+7AA3,U+7AA9,U+7AAC,U+7AB0,U+7AB3,U+7AB5-7AB6,U+7AB9-7ABF,U+7AC3,U+7AC5-7ACA,U+7ACC-7ACF,U+7AD1-7AD3,U+7AD5,U+7ADA-7ADB,U+7ADD,U+7ADF,U+7AE1-7AE2,U+7AE6-7AED,U+7AF0-7AF1,U+7AF4,U+7AF8,U+7AFA-7AFB,U+7AFD-7AFE,U+7B02,U+7B04,U+7B06-7B08,U+7B0A-7B0B,U+7B0F,U+7B12,U+7B14,U+7B18-7B19,U+7B1E-7B1F,U+7B23,U+7B25,U+7B27-7B2B,U+7B2D-7B31,U+7B33-7B36,U+7B3B,U+7B3D,U+7B3F-7B41,U+7B45,U+7B47,U+7B4C-7B50,U+7B53,U+7B55,U+7B5D,U+7B60,U+7B64-7B66,U+7B69-7B6A,U+7B6C-7B75,U+7B77,U+7B79-7B7A,U+7B7F,U+7B84,U+7B86,U+7B89,U+7B8D-7B92,U+7B96,U+7B98-7BA0,U+7BA5,U+7BAC-7BAD,U+7BAF-7BB0,U+7BB2,U+7BB4-7BB6,U+7BBA-7BBD,U+7BC1-7BC2,U+7BC5-7BC6}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.26.woff2)format("woff2");unicode-range:U+7851-7852,U+785C,U+785E,U+7860-7861,U+7863-7864,U+7868,U+786A,U+786E-786F,U+7872,U+7874,U+787A,U+787C,U+787E,U+7886-7887,U+788A,U+788C-788F,U+7893-7895,U+7898,U+789A,U+789D-789F,U+78A1,U+78A3-78A4,U+78A8-78AA,U+78AC-78AD,U+78AF-78B3,U+78B5,U+78BB-78BF,U+78C5-78CC,U+78CE,U+78D1-78D6,U+78DA-78DB,U+78DF-78E1,U+78E4,U+78E6-78E7,U+78EA,U+78EC,U+78F2-78F4,U+78F6-78F7,U+78F9-78FB,U+78FD-7901,U+7906-7907,U+790C,U+7910-7912,U+7919-791C,U+791E-7920,U+7925-792E,U+7930-7931,U+7934-7935,U+793B,U+793D,U+793F,U+7941-7942,U+7944-7946,U+794A-794B,U+794F,U+7951,U+7954-7955,U+7957-7958,U+795A-795C,U+795F-7960,U+7962,U+7967,U+7969,U+796B,U+7972,U+7977,U+7979-797C,U+797E-7980,U+798A-798E,U+7991,U+7993-7996,U+7998,U+799B-799D,U+79A1,U+79A6-79AB,U+79AE-79B1,U+79B3-79B4,U+79B8-79BB,U+79BD-79BE,U+79C2,U+79C4,U+79C7-79CA,U+79CC-79CD,U+79CF,U+79D4-79D6,U+79DA,U+79DD-79E3,U+79E5,U+79E7,U+79EA-79ED,U+79F1,U+79F8,U+79FC,U+7A02-7A03,U+7A05,U+7A07-7A0A,U+7A0C-7A0D,U+7A11,U+7A15}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.27.woff2)format("woff2");unicode-range:U+768C-768E,U+7690,U+7693,U+7695-7696,U+7699-76A8,U+76AA,U+76AD,U+76AF-76B0,U+76B4,U+76B6-76BA,U+76BD,U+76C1-76C3,U+76C5,U+76C8-76C9,U+76CB-76CE,U+76D2,U+76D4,U+76D6,U+76D9,U+76DC,U+76DE,U+76E0-76E1,U+76E5-76E8,U+76EA-76EC,U+76F0-76F1,U+76F6,U+76F9,U+76FB-76FC,U+7700,U+7704,U+7706-7708,U+770A,U+770E,U+7712,U+7714-7715,U+7717,U+7719-771C,U+7722,U+7724-7726,U+7728,U+772D-772F,U+7734-7739,U+773D-773E,U+7742,U+7745-7747,U+774A,U+774D-774F,U+7752,U+7756-7758,U+775A-775C,U+775E-7760,U+7762,U+7764-7765,U+7767,U+776A-776C,U+7770,U+7772-7774,U+7779-777A,U+777C-7780,U+7784,U+778B-778E,U+7794-7796,U+779A,U+779E-77A0,U+77A2,U+77A4-77A5,U+77A7,U+77A9-77AA,U+77AE-77B1,U+77B5-77B7,U+77B9,U+77BB-77BF,U+77C3,U+77C7,U+77C9,U+77CD,U+77D1-77D2,U+77D5,U+77D7,U+77D9-77DA,U+77DC,U+77DE-77E0,U+77E3-77E4,U+77E6-77E7,U+77E9-77EA,U+77EC,U+77EE,U+77F0-77F1,U+77F4,U+77F8,U+77FB-77FC,U+7805-7806,U+7809,U+780C-780E,U+7811-7812,U+7819,U+781D,U+7820-7823,U+7826-7827,U+782C-782E,U+7830,U+7835,U+7837,U+783A,U+783F,U+7843-7845,U+7847-7848,U+784C,U+784E-784F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.28.woff2)format("woff2");unicode-range:U+7511-7513,U+7515-7517,U+751C,U+751E,U+7520-7522,U+7524,U+7526-7527,U+7529-752C,U+752F,U+7536,U+7538-7539,U+753C-7540,U+7543-7544,U+7546-754B,U+754D-7550,U+7552,U+7557,U+755A-755B,U+755D-755F,U+7561-7562,U+7564,U+7566-7567,U+7569,U+756B-756D,U+756F,U+7571-7572,U+7574-757E,U+7581-7582,U+7585-7587,U+7589-758C,U+758F-7590,U+7592-7595,U+7599-759A,U+759C-759D,U+75A2-75A5,U+75B0-75B1,U+75B3-75B5,U+75B7-75B8,U+75BA,U+75BD,U+75BF-75C4,U+75C6,U+75CA,U+75CC-75CF,U+75D3-75D4,U+75D7-75D8,U+75DC-75E1,U+75E3-75E4,U+75E7,U+75EC,U+75EE-75F3,U+75F9,U+75FC,U+75FE-7604,U+7607-760C,U+760F,U+7612-7613,U+7615-7616,U+7618-7619,U+761B-7629,U+762D,U+7630,U+7632-7635,U+7638-763C,U+7640-7641,U+7643-764B,U+764E,U+7655,U+7658-7659,U+765C,U+765F,U+7661-7662,U+7664-7665,U+7667-766A,U+766C-7672,U+7674,U+7676,U+7678,U+7680-7683,U+7685,U+7688,U+768B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.29.woff2)format("woff2");unicode-range:U+736C,U+736E-7371,U+7375,U+7377-737C,U+7380-7381,U+7383,U+7385-7386,U+738A,U+738E,U+7390,U+7393-7398,U+739C,U+739E-73A0,U+73A2,U+73A5-73A6,U+73A8,U+73AA-73AB,U+73AD,U+73B3,U+73B5,U+73B7,U+73B9-73BD,U+73BF,U+73C5-73C6,U+73C9-73CC,U+73CE-73CF,U+73D2-73D3,U+73D6,U+73D9,U+73DD-73DE,U+73E1,U+73E3-73E7,U+73E9-73EA,U+73EE,U+73F1,U+73F4-73F5,U+73F7-73FB,U+73FD,U+73FF-7401,U+7404-7405,U+7407,U+740A,U+7411,U+7413,U+741A-741B,U+7421,U+7424,U+7426,U+7428-7431,U+7433,U+7439-743A,U+743F-7441,U+7443-7444,U+7446-7447,U+744B,U+744D,U+7451-7453,U+7455,U+7457,U+7459-745A,U+745C-745D,U+745F,U+7462-7464,U+7466-746B,U+746D-7473,U+7476,U+747E,U+7480-7481,U+7485-7489,U+748B,U+748F-7492,U+7497-749A,U+749C,U+749E-74A3,U+74A5-74A6,U+74A8-74AB,U+74AE-74AF,U+74B1-74B2,U+74B5,U+74B9-74BB,U+74BD,U+74BF,U+74C8-74CA,U+74CC,U+74CF-74D0,U+74D3-74D4,U+74D6,U+74D8,U+74DA-74DB,U+74DE-74E0,U+74E3-74E4,U+74E7-74EB,U+74EE-74F2,U+74F4,U+74F7-74F8,U+74FA-74FC,U+74FF,U+7501,U+7503-7506,U+750C-750E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.30.woff2)format("woff2");unicode-range:U+7166,U+7168,U+716C,U+7179,U+7180,U+7184-7185,U+7187-7188,U+718C,U+718F,U+7192,U+7194-7196,U+7199-719B,U+71A0,U+71A2,U+71A8,U+71AC,U+71AE-71B0,U+71B2-71B3,U+71B9-71BA,U+71BE-71C1,U+71C4,U+71C9,U+71CB-71CC,U+71CE,U+71D0,U+71D2-71D4,U+71D6-71D7,U+71D9-71DA,U+71DC,U+71DF-71E0,U+71E6-71E7,U+71EC-71EE,U+71F4-71F5,U+71F8-71F9,U+71FC,U+71FE-7200,U+7207-7209,U+720D,U+7210,U+7213,U+7215,U+7217,U+721A,U+721D,U+721F,U+7224,U+7228,U+722B,U+722D,U+722F-7230,U+7232,U+7234,U+7238-7239,U+723B-723C,U+723E-7243,U+7245-7246,U+724B,U+724E-7250,U+7252-7253,U+7255-7258,U+725A,U+725C,U+725E,U+7260,U+7263,U+7268,U+726B,U+726E-726F,U+7271,U+7274,U+7277-7278,U+727B-727C,U+727E-7282,U+7284,U+7287,U+7289,U+728D-728E,U+7292-7293,U+7296,U+729B,U+72A2,U+72A7-72A8,U+72AD-72AE,U+72B0-72B2,U+72B4,U+72B9,U+72BE,U+72C0-72C1,U+72C3-72C4,U+72C6-72C7,U+72C9,U+72CC,U+72CE,U+72D2,U+72D5-72D6,U+72D8,U+72DF-72E2,U+72E5,U+72F3-72F4,U+72F7,U+72F9-72FB,U+72FD-72FE,U+7302,U+7304-7305,U+7307,U+730A-730B,U+730D,U+7312-7313,U+7316-7319,U+731C-731E,U+7322,U+7324,U+7327-7329,U+732C,U+732F,U+7331-7337,U+7339-733B,U+733D-733E,U+7343,U+734D-7350,U+7352,U+7356-7358,U+735D-7360,U+7366-736B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.31.woff2)format("woff2");unicode-range:U+6F58-6F5B,U+6F5D-6F5E,U+6F60-6F62,U+6F66,U+6F68,U+6F6C-6F6D,U+6F6F,U+6F74,U+6F78,U+6F7A,U+6F7C-6F7E,U+6F80,U+6F82-6F83,U+6F86-6F88,U+6F8B-6F8E,U+6F90-6F94,U+6F96-6F98,U+6F9A,U+6F9D,U+6F9F-6FA1,U+6FA3,U+6FA5-6FA8,U+6FAE-6FB1,U+6FB3,U+6FB5-6FB7,U+6FB9,U+6FBC,U+6FBE,U+6FC2,U+6FC5-6FCA,U+6FD4-6FD5,U+6FD8,U+6FDA-6FDB,U+6FDE-6FE0,U+6FE4,U+6FE8-6FE9,U+6FEB-6FEC,U+6FEE,U+6FF0,U+6FF3,U+6FF5-6FF6,U+6FF9-6FFA,U+6FFC-6FFE,U+7000-7001,U+7005-7007,U+7009-700B,U+700D,U+700F,U+7011,U+7015,U+7017-7018,U+701A-701B,U+701D-7020,U+7023,U+7026,U+7028,U+702F-7030,U+7032,U+7034,U+7037,U+7039-703A,U+703C,U+703E,U+7043-7044,U+7047-704C,U+704E,U+7051,U+7054-7055,U+705D-705E,U+7064-7065,U+7069,U+706C,U+706E,U+7075-7076,U+707E,U+7081,U+7085-7086,U+7094-7098,U+709B,U+709F,U+70A4,U+70AB-70AC,U+70AE-70B1,U+70B3-70B4,U+70B7,U+70BB,U+70CA-70CB,U+70D1,U+70D3-70D6,U+70D8-70D9,U+70DC-70DD,U+70DF,U+70E4,U+70EC,U+70F1,U+70FA,U+70FD,U+7103-7108,U+710B-710C,U+710F,U+7114,U+7119,U+711C,U+711E,U+7120,U+712B,U+712D-7131,U+7138,U+7141,U+7145-7147,U+7149-714B,U+7150-7153,U+7155-7157,U+715A,U+715C,U+715E,U+7160,U+7162,U+7164-7165}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.32.woff2)format("woff2");unicode-range:U+6D7C,U+6D80-6D82,U+6D85,U+6D87,U+6D89-6D8A,U+6D8C-6D8E,U+6D91-6D98,U+6D9C,U+6DAA-6DAC,U+6DAE,U+6DB4-6DB5,U+6DB7-6DB9,U+6DBD,U+6DBF,U+6DC2,U+6DC4-6DC8,U+6DCA,U+6DCC,U+6DCE-6DD0,U+6DD2,U+6DD5-6DD6,U+6DD8-6DDB,U+6DDD-6DE0,U+6DE2,U+6DE4-6DE6,U+6DE8-6DEA,U+6DEC,U+6DEE-6DF0,U+6DF2,U+6DF4,U+6DF6,U+6DF8-6DFA,U+6DFC,U+6E00,U+6E04,U+6E0A,U+6E17,U+6E19,U+6E1D-6E20,U+6E22-6E25,U+6E27,U+6E2B,U+6E2D-6E2E,U+6E32,U+6E34,U+6E36,U+6E38-6E3C,U+6E42-6E45,U+6E48-6E49,U+6E4B-6E4F,U+6E51-6E54,U+6E57,U+6E5B-6E5F,U+6E62-6E63,U+6E68,U+6E6B,U+6E6E,U+6E72-6E73,U+6E76,U+6E7B,U+6E7D,U+6E82,U+6E89,U+6E8C-6E8D,U+6E8F,U+6E93,U+6E98-6E99,U+6E9F-6EA0,U+6EA5,U+6EA7,U+6EAA-6EAB,U+6EAD-6EAF,U+6EB1-6EB4,U+6EB7,U+6EBB-6EBD,U+6EBF-6EC4,U+6EC7-6ECA,U+6ECC-6ECF,U+6ED3-6ED5,U+6ED9-6EDB,U+6EE6,U+6EEB-6EEF,U+6EF7-6EF9,U+6EFB,U+6EFD-6EFF,U+6F04,U+6F08-6F0A,U+6F0C-6F0D,U+6F10-6F11,U+6F13,U+6F15-6F16,U+6F18,U+6F1A-6F1B,U+6F25-6F26,U+6F29-6F2A,U+6F2D,U+6F2F-6F33,U+6F35-6F36,U+6F38,U+6F3B-6F3C,U+6F3E-6F3F,U+6F41,U+6F45,U+6F4F,U+6F51-6F53,U+6F57}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.33.woff2)format("woff2");unicode-range:U+6B85,U+6B89,U+6B8D,U+6B95,U+6B97-6B98,U+6B9B,U+6B9E-6BA0,U+6BA2-6BA4,U+6BA8-6BB3,U+6BB7-6BB9,U+6BBC-6BBE,U+6BC0,U+6BC3-6BC4,U+6BC6-6BC9,U+6BCB-6BCC,U+6BCF,U+6BD3,U+6BD6-6BD8,U+6BDA,U+6BDF,U+6BE1,U+6BE3,U+6BE6-6BE7,U+6BEB-6BEC,U+6BEE,U+6BF1,U+6BF3,U+6BF7,U+6BF9,U+6BFF,U+6C02,U+6C04-6C05,U+6C08-6C0A,U+6C0D-6C0E,U+6C10,U+6C12-6C14,U+6C19,U+6C1B,U+6C1F,U+6C24,U+6C26-6C28,U+6C2C,U+6C2E,U+6C33,U+6C35-6C36,U+6C3A-6C3B,U+6C3E-6C40,U+6C4A-6C4B,U+6C4D,U+6C4F,U+6C52,U+6C54-6C55,U+6C59,U+6C5B-6C5E,U+6C62,U+6C67-6C68,U+6C6A-6C6B,U+6C6D,U+6C6F,U+6C73-6C74,U+6C76,U+6C78-6C79,U+6C7B,U+6C7E,U+6C81-6C87,U+6C89,U+6C8C-6C8D,U+6C90,U+6C92-6C95,U+6C97-6C98,U+6C9A-6C9C,U+6C9F,U+6CAA-6CAE,U+6CB0-6CB2,U+6CB4,U+6CBA,U+6CBD-6CBE,U+6CC2,U+6CC5-6CC6,U+6CCD,U+6CCF-6CD4,U+6CD6-6CD7,U+6CD9-6CDD,U+6CE0,U+6CE7,U+6CE9-6CEF,U+6CF1-6CF2,U+6CF4,U+6CFB,U+6D00-6D01,U+6D04,U+6D07,U+6D0A,U+6D0C,U+6D0E-6D0F,U+6D11,U+6D13,U+6D19-6D1A,U+6D1F,U+6D24,U+6D26-6D28,U+6D2B,U+6D2E-6D2F,U+6D31,U+6D33-6D36,U+6D38-6D39,U+6D3C-6D3D,U+6D3F,U+6D57-6D5B,U+6D5E-6D61,U+6D64-6D65,U+6D67,U+6D6C,U+6D6F-6D70,U+6D79}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.34.woff2)format("woff2");unicode-range:U+69DD-69DE,U+69E2-69E3,U+69E5,U+69E7-69EB,U+69ED-69EF,U+69F1-69F6,U+69F9,U+69FE-6A01,U+6A03,U+6A05,U+6A0A,U+6A0C,U+6A0F,U+6A11-6A15,U+6A17,U+6A1A-6A1B,U+6A1D-6A20,U+6A22-6A24,U+6A28,U+6A2E,U+6A30,U+6A32-6A38,U+6A3B,U+6A3E-6A3F,U+6A44-6A4A,U+6A4E,U+6A50-6A52,U+6A54-6A56,U+6A5B,U+6A61-6A62,U+6A64,U+6A66-6A67,U+6A6A-6A6B,U+6A71-6A73,U+6A78,U+6A7A,U+6A7E-6A7F,U+6A81,U+6A83-6A84,U+6A86-6A87,U+6A89,U+6A8B,U+6A8D,U+6A90-6A91,U+6A94,U+6A97,U+6A9B,U+6A9D-6AA3,U+6AA5,U+6AAA-6AAC,U+6AAE-6AB1,U+6AB3-6AB4,U+6AB8,U+6ABB,U+6ABD-6ABF,U+6AC1-6AC3,U+6AC6,U+6AC8-6AC9,U+6ACC,U+6AD0-6AD1,U+6AD3-6AD6,U+6ADA-6ADF,U+6AE2,U+6AE4,U+6AE7-6AE8,U+6AEA,U+6AEC,U+6AF0-6AF3,U+6AF8,U+6AFA,U+6AFC-6AFD,U+6B02-6B03,U+6B06-6B07,U+6B09-6B0B,U+6B0F-6B12,U+6B16-6B17,U+6B1B,U+6B1D-6B1F,U+6B23-6B24,U+6B28,U+6B2B-6B2C,U+6B2F,U+6B35-6B39,U+6B3B,U+6B3D,U+6B3F,U+6B43,U+6B46-6B47,U+6B49-6B4A,U+6B4D-6B4E,U+6B50,U+6B52,U+6B54,U+6B56,U+6B58-6B59,U+6B5B,U+6B5D,U+6B5F-6B61,U+6B65,U+6B67,U+6B6B-6B6C,U+6B6E,U+6B70,U+6B72,U+6B75,U+6B77-6B7A,U+6B7D-6B84}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.35.woff2)format("woff2");unicode-range:U+6855,U+6857-6859,U+685B,U+685D,U+685F,U+6863,U+6867,U+686B,U+686E-6872,U+6874-6875,U+6877,U+6879-687C,U+687E-687F,U+6882-6884,U+6886,U+6888,U+688D-6890,U+6894,U+6896,U+6898-689C,U+689F-68A3,U+68A5-68A7,U+68A9-68AB,U+68AD-68AF,U+68B2-68B5,U+68B9-68BC,U+68C3,U+68C5-68C6,U+68C8-68CA,U+68CC-68CD,U+68CF-68D1,U+68D3-68D9,U+68DC-68DD,U+68E0-68E1,U+68E3-68E5,U+68E7-68E8,U+68EA-68ED,U+68EF-68F1,U+68F5-68F7,U+68F9,U+68FB-68FD,U+6900-6901,U+6903-6904,U+6906-690C,U+690F-6911,U+6913,U+6916-6917,U+6919-691B,U+6921-6923,U+6925-6926,U+6928,U+692A,U+6930-6931,U+6933-6936,U+6938-6939,U+693B,U+693D,U+6942,U+6945-6946,U+6949,U+694E,U+6954,U+6957,U+6959,U+695B-695E,U+6961-6966,U+6968-696C,U+696E-6974,U+6977-697B,U+697E-6981,U+6986,U+698D,U+6991-6992,U+6994-6996,U+6998,U+699C,U+69A0-69A1,U+69A5-69A8,U+69AB,U+69AD,U+69AF-69B2,U+69B4,U+69B7-69B8,U+69BA-69BC,U+69BE-69C1,U+69C3,U+69C5,U+69C7-69C8,U+69CA,U+69CE-69D1,U+69D3,U+69D6-69D7,U+69D9}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.36.woff2)format("woff2");unicode-range:U+667E-6680,U+6683-6684,U+6688,U+668B-668E,U+6690,U+6692,U+6698-669D,U+669F-66A0,U+66A2,U+66A4,U+66AD,U+66B1-66B3,U+66B5,U+66B8-66B9,U+66BB-66BC,U+66BE-66C4,U+66C6,U+66C8-66C9,U+66CC,U+66CE-66CF,U+66D4,U+66DA-66DB,U+66DD,U+66DF-66E0,U+66E6,U+66E8-66E9,U+66EB-66EC,U+66EE,U+66F5,U+66F7,U+66FA-66FC,U+6701,U+6705,U+6707,U+670C,U+670E-6710,U+6712-6716,U+6719,U+671C,U+671E,U+6720,U+6722,U+6725-6726,U+672E,U+6733,U+6735-6738,U+673E-673F,U+6741,U+6743,U+6745-6748,U+674C-674D,U+6753-6755,U+6759,U+675D-675E,U+6760,U+6762-6764,U+6766,U+676A,U+676C,U+676E,U+6770,U+6772-6774,U+6776-6777,U+677B-677C,U+6780-6781,U+6784-6785,U+6787,U+6789,U+678B-678C,U+678E-678F,U+6791-6793,U+6796,U+6798-6799,U+679B,U+67A1,U+67A4,U+67A6,U+67A9,U+67B0-67B5,U+67B7-67B9,U+67BB-67BE,U+67C0-67C3,U+67C5-67C6,U+67C8-67C9,U+67CE,U+67D2,U+67D7-67D9,U+67DB-67DE,U+67E1-67E2,U+67E4,U+67E6-67E7,U+67E9,U+67EC,U+67EE-67F0,U+67F2,U+67F6-67F7,U+67F9-67FA,U+67FC,U+67FE,U+6801-6802,U+6805,U+6810,U+6814,U+6818-6819,U+681D,U+681F,U+6822,U+6827-6829,U+682B-682D,U+682F-6834,U+683B,U+683E-6840,U+6844-6846,U+6849-684A,U+684C-684E,U+6852-6854}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.37.woff2)format("woff2");unicode-range:U+64D2,U+64D4-64D5,U+64D7-64D8,U+64DA,U+64E0-64E1,U+64E3-64E5,U+64E7,U+64E9-64EA,U+64ED,U+64EF-64F2,U+64F4-64F7,U+64FA-64FB,U+64FD-6501,U+6504-6505,U+6508-650A,U+650F,U+6513-6514,U+6516,U+6518-6519,U+651B-651F,U+6522,U+6524,U+6526,U+6529-652C,U+652E,U+6531-6532,U+6534-6538,U+653A,U+653C-653D,U+6543-6544,U+6547-6549,U+654D-654E,U+6550,U+6552,U+6554-6556,U+6558,U+655D-6560,U+6567,U+656B,U+6572,U+6578,U+657A,U+657D,U+6581-6585,U+6588,U+658A,U+658C,U+6592,U+6595,U+6598,U+659B,U+659D,U+659F-65A1,U+65A3-65A6,U+65AB,U+65AE,U+65B2-65B5,U+65B7-65B8,U+65BE-65BF,U+65C1-65C4,U+65C6,U+65C8-65C9,U+65CC,U+65CE,U+65D0,U+65D2,U+65D4,U+65D6,U+65D8-65D9,U+65DB,U+65DF-65E1,U+65E3,U+65F0-65F2,U+65F4-65F5,U+65F9,U+65FB-65FC,U+65FE-6600,U+6603-6604,U+6608-660A,U+660D,U+6611-6612,U+6615-6616,U+661C-661E,U+6621-6624,U+6626,U+6629-662C,U+662E,U+6630-6631,U+6633-6637,U+6639-663B,U+663F-6641,U+6644-6646,U+6648-664A,U+664C,U+664E-664F,U+6651,U+6657-6665,U+6667-6668,U+666A-666D,U+6670,U+6673,U+6675,U+6677-6679,U+667B-667C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.38.woff2)format("woff2");unicode-range:U+62CF,U+62D1,U+62D4-62D6,U+62DA,U+62DC,U+62EA,U+62EE-62EF,U+62F1-62F2,U+62F4-62F5,U+62FC-62FD,U+62FF,U+6302-6304,U+6308-630D,U+6310,U+6313,U+6316,U+6318,U+631B,U+6327,U+6329-632A,U+632D,U+6332,U+6335-6336,U+6339-633C,U+633E,U+6341-6344,U+6346,U+634A-634E,U+6350,U+6352-6354,U+6358-6359,U+635B,U+6365-6366,U+6369,U+636B-636D,U+6371-6372,U+6374-6378,U+637A,U+637C-637D,U+637F-6380,U+6382,U+6384,U+6387,U+6389-638A,U+638E-6390,U+6394-6396,U+6399-639A,U+639E,U+63A0,U+63A3-63A4,U+63A6,U+63A9,U+63AB-63AF,U+63B5,U+63BD-63BE,U+63C0-63C1,U+63C4-63C6,U+63C8,U+63CE,U+63D1-63D6,U+63DC,U+63E0,U+63E3,U+63E5,U+63E9-63ED,U+63F2-63F3,U+63F5-63F9,U+6406,U+6409-640A,U+640F-6410,U+6412-6414,U+6416-6418,U+641E,U+6420,U+6422,U+6424-6426,U+6428-642A,U+642F-6430,U+6434-6436,U+643D,U+643F,U+644B,U+644E-644F,U+6451-6454,U+645A-645D,U+645F-6461,U+6463,U+6467,U+646D,U+6473-6474,U+6476,U+6478-6479,U+647B,U+647D,U+6485,U+6487-6488,U+648F-6491,U+6493,U+6495,U+6498-649B,U+649D-649F,U+64A1,U+64A3,U+64A6,U+64A8-64A9,U+64AC,U+64B3,U+64BB-64BF,U+64C2,U+64C4-64C5,U+64C7,U+64C9-64CC,U+64CE,U+64D0-64D1}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.39.woff2)format("woff2");unicode-range:U+6117,U+6119,U+611C,U+611E,U+6120-6122,U+6127-6128,U+612A-612C,U+6130-6131,U+6134-6137,U+6139-613A,U+613C-613F,U+6141-6142,U+6144-6147,U+6149-614A,U+614D,U+6153,U+6158-615A,U+615D-6160,U+6164-6165,U+616B-616C,U+616F,U+6171-6175,U+6177-6178,U+617B-6181,U+6183-6184,U+6187,U+618A-618B,U+618D,U+6192-6194,U+6196-619A,U+619C-619D,U+619F-61A0,U+61A5,U+61A8,U+61AA-61AE,U+61B8-61BA,U+61BC,U+61BE,U+61C0-61C3,U+61C6,U+61C8,U+61CA-61CF,U+61D5,U+61DC-61DF,U+61E1-61E3,U+61E5-61E9,U+61EC-61ED,U+61EF,U+61F4-61F7,U+61FA,U+61FC-6201,U+6203-6204,U+6207-620A,U+620D-620E,U+6213-6215,U+621B-621E,U+6220-6223,U+6227,U+6229-622B,U+622E,U+6230-6233,U+6236,U+6239,U+623D-623E,U+6241-6244,U+6246,U+6248,U+624C,U+624E,U+6250-6252,U+6254,U+6256,U+6258,U+625A-625C,U+625E,U+6260-6261,U+6263-6264,U+6268,U+626D,U+626F,U+6273,U+627A-627E,U+6282-6283,U+6285,U+6289,U+628D-6290,U+6292-6294,U+6296,U+6299,U+629B,U+62A6,U+62A8,U+62AC,U+62B3,U+62B6-62B7,U+62BA-62BB,U+62BE-62BF,U+62C2,U+62C4,U+62C6-62C8,U+62CA,U+62CE}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.40.woff2)format("woff2");unicode-range:U+5F6C-5F6D,U+5F6F,U+5F72-5F75,U+5F78,U+5F7A,U+5F7D-5F7F,U+5F82-5F83,U+5F87-5F89,U+5F8D,U+5F8F,U+5F91,U+5F96,U+5F99,U+5F9C-5F9D,U+5FA0,U+5FA2,U+5FA4,U+5FA7-5FA8,U+5FAB-5FAD,U+5FAF-5FB1,U+5FB5,U+5FB7-5FB8,U+5FBC-5FBD,U+5FC4,U+5FC7-5FC9,U+5FCB,U+5FD0-5FD4,U+5FDD-5FDE,U+5FE1-5FE2,U+5FE4,U+5FE8-5FEA,U+5FEC-5FF3,U+5FF6,U+5FF8,U+5FFA-5FFD,U+5FFF,U+6007,U+600A,U+600D-6010,U+6013-6015,U+6017-601B,U+601F,U+6021-6022,U+6024,U+6026,U+6029,U+602B,U+602D,U+6031,U+6033,U+6035,U+603A,U+6040-6043,U+6046-604A,U+604C-604D,U+6051,U+6054-6057,U+6059-605A,U+605D,U+605F-6064,U+6067,U+606A-606C,U+6070-6071,U+6077,U+607E-607F,U+6081-6086,U+6088-608E,U+6091-6093,U+6095-6098,U+609A-609B,U+609D-609E,U+60A2,U+60A4-60A5,U+60A7-60A8,U+60B0-60B1,U+60B3-60B5,U+60B7-60B8,U+60BB,U+60BD-60BE,U+60C2,U+60C4,U+60C6-60CB,U+60CE-60CF,U+60D3-60D5,U+60D8-60D9,U+60DB,U+60DD-60DF,U+60E1-60E2,U+60E5,U+60EE,U+60F0-60F2,U+60F4-60F8,U+60FA-60FD,U+6100,U+6102-6103,U+6106-6108,U+610A,U+610C-610E,U+6110-6114,U+6116}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.41.woff2)format("woff2");unicode-range:U+5D9B,U+5D9D,U+5D9F-5DA0,U+5DA2,U+5DA4,U+5DA7,U+5DAB-5DAC,U+5DAE,U+5DB0,U+5DB2,U+5DB4,U+5DB7-5DB9,U+5DBC-5DBD,U+5DC3,U+5DC7,U+5DC9,U+5DCB-5DCE,U+5DD0-5DD3,U+5DD6-5DD9,U+5DDB,U+5DE0,U+5DE2,U+5DE4,U+5DE9,U+5DF2,U+5DF5,U+5DF8-5DF9,U+5DFD,U+5DFF-5E00,U+5E07,U+5E0B,U+5E0D,U+5E11-5E12,U+5E14-5E15,U+5E18-5E1B,U+5E1F-5E20,U+5E25,U+5E28,U+5E2E,U+5E32,U+5E35-5E37,U+5E3E,U+5E40,U+5E43-5E44,U+5E47,U+5E49,U+5E4B,U+5E4E,U+5E50-5E51,U+5E54,U+5E56-5E58,U+5E5B-5E5C,U+5E5E-5E5F,U+5E62,U+5E64,U+5E68,U+5E6A-5E6E,U+5E70,U+5E75-5E77,U+5E7A,U+5E7F-5E80,U+5E87,U+5E8B,U+5E8E,U+5E96,U+5E99-5E9A,U+5EA0,U+5EA2,U+5EA4-5EA5,U+5EA8,U+5EAA,U+5EAC,U+5EB1,U+5EB3,U+5EB8-5EB9,U+5EBD-5EBF,U+5EC1-5EC2,U+5EC6,U+5EC8,U+5ECB-5ECC,U+5ECE-5ED6,U+5ED9-5EE2,U+5EE5,U+5EE8-5EE9,U+5EEB-5EEC,U+5EF0-5EF1,U+5EF3-5EF4,U+5EF8-5EF9,U+5EFC-5F00,U+5F02-5F03,U+5F06-5F09,U+5F0B-5F0E,U+5F11,U+5F16-5F17,U+5F19,U+5F1B-5F1E,U+5F21-5F24,U+5F27-5F29,U+5F2B-5F30,U+5F34,U+5F36,U+5F38,U+5F3A-5F3D,U+5F3F-5F41,U+5F44-5F45,U+5F47-5F48,U+5F4A,U+5F4C-5F4E,U+5F50-5F51,U+5F54,U+5F56-5F58,U+5F5B-5F5D,U+5F60,U+5F63-5F65,U+5F67,U+5F6A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.42.woff2)format("woff2");unicode-range:U+5BBC,U+5BC0-5BC1,U+5BC3,U+5BC7,U+5BC9,U+5BCD-5BD0,U+5BD3-5BD4,U+5BD6-5BDA,U+5BDE,U+5BE0-5BE2,U+5BE4-5BE6,U+5BE8,U+5BEB-5BEC,U+5BEF-5BF1,U+5BF3-5BF6,U+5BFD,U+5C03,U+5C05,U+5C07-5C09,U+5C0C-5C0D,U+5C12-5C14,U+5C17,U+5C19,U+5C1E-5C20,U+5C22-5C24,U+5C26,U+5C28-5C2E,U+5C30,U+5C32,U+5C35-5C36,U+5C38-5C39,U+5C46,U+5C4D-5C50,U+5C53,U+5C59-5C5C,U+5C5F-5C63,U+5C67-5C69,U+5C6C-5C70,U+5C74-5C76,U+5C79-5C7D,U+5C87-5C88,U+5C8A,U+5C8C,U+5C8F,U+5C91-5C92,U+5C94,U+5C9D,U+5C9F-5CA0,U+5CA2-5CA3,U+5CA6-5CA8,U+5CAA-5CAB,U+5CAD,U+5CB1-5CB2,U+5CB4-5CB7,U+5CBA-5CBC,U+5CBE,U+5CC5,U+5CC7,U+5CC9,U+5CCB,U+5CD0,U+5CD2,U+5CD7,U+5CD9,U+5CDD,U+5CE6,U+5CE8-5CEA,U+5CED-5CEE,U+5CF1-5CF2,U+5CF4-5CF5,U+5CFA-5CFB,U+5CFD,U+5D01,U+5D06,U+5D0B,U+5D0D,U+5D10-5D12,U+5D14-5D15,U+5D17-5D1B,U+5D1D,U+5D1F-5D20,U+5D22-5D24,U+5D26-5D27,U+5D2B,U+5D31,U+5D34,U+5D39,U+5D3D,U+5D3F,U+5D42-5D43,U+5D46-5D48,U+5D4A-5D4B,U+5D4E,U+5D51-5D53,U+5D55,U+5D59,U+5D5C,U+5D5F-5D62,U+5D64,U+5D69-5D6A,U+5D6C-5D6D,U+5D6F-5D70,U+5D73,U+5D76,U+5D79-5D7A,U+5D7E-5D7F,U+5D81-5D84,U+5D87-5D88,U+5D8A,U+5D8C,U+5D90,U+5D92-5D95,U+5D97,U+5D99}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.43.woff2)format("woff2");unicode-range:U+598B-598E,U+5992,U+5995,U+5997,U+599B,U+599D,U+599F,U+59A3-59A4,U+59A7,U+59AD-59B0,U+59B2-59B3,U+59B7,U+59BA,U+59BC,U+59BE,U+59C1,U+59C3-59C4,U+59C6,U+59C8,U+59CA,U+59CD,U+59D2,U+59D9-59DA,U+59DD-59DF,U+59E3-59E5,U+59E7-59E8,U+59EC,U+59EE-59EF,U+59F1-59F2,U+59F4,U+59F6-59F8,U+5A00,U+5A03-5A04,U+5A09,U+5A0C-5A0E,U+5A11-5A13,U+5A17,U+5A1A-5A1C,U+5A1E-5A1F,U+5A23-5A25,U+5A27-5A28,U+5A2A,U+5A2D,U+5A30,U+5A35-5A36,U+5A40-5A41,U+5A44-5A45,U+5A47-5A49,U+5A4C,U+5A50,U+5A55,U+5A5E,U+5A62-5A63,U+5A65,U+5A67,U+5A6A,U+5A6C-5A6D,U+5A77,U+5A7A-5A7B,U+5A7E,U+5A84,U+5A8B,U+5A90,U+5A93,U+5A96,U+5A99,U+5A9C,U+5A9E-5AA0,U+5AA2,U+5AA7,U+5AAC,U+5AB1-5AB3,U+5AB5,U+5AB8,U+5ABA-5ABF,U+5AC2,U+5AC4,U+5AC6,U+5AC8,U+5ACB,U+5ACF-5AD0,U+5AD6-5AD7,U+5ADA,U+5ADC,U+5AE0-5AE1,U+5AE3,U+5AE5-5AE6,U+5AE9-5AEA,U+5AEE,U+5AF0,U+5AF5-5AF6,U+5AFA-5AFB,U+5AFD,U+5B00-5B01,U+5B08,U+5B0B,U+5B16-5B17,U+5B19,U+5B1B,U+5B1D,U+5B21,U+5B25,U+5B2A,U+5B2C-5B2D,U+5B30,U+5B32,U+5B34,U+5B36,U+5B38,U+5B3E,U+5B40-5B41,U+5B43,U+5B45,U+5B4B-5B4C,U+5B51-5B52,U+5B56,U+5B5A-5B5C,U+5B5E-5B5F,U+5B65,U+5B68-5B69,U+5B6E-5B71,U+5B73,U+5B75-5B76,U+5B7A,U+5B7C-5B84,U+5B86,U+5B8A-5B8B,U+5B8D-5B8E,U+5B90-5B91,U+5B93-5B94,U+5B96,U+5BA5-5BA6,U+5BA8-5BA9,U+5BAC-5BAD,U+5BAF,U+5BB1-5BB2,U+5BB7-5BB8,U+5BBA}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.44.woff2)format("woff2");unicode-range:U+57B3,U+57B8,U+57BD,U+57C0,U+57C3,U+57C6-57C8,U+57CC,U+57CF,U+57D2-57D7,U+57DC-57DE,U+57E0-57E1,U+57E3-57E4,U+57E6-57E7,U+57E9,U+57ED,U+57F0,U+57F4-57F6,U+57F8,U+57FB,U+57FD-57FF,U+5803-5804,U+5808-580D,U+5819,U+581B,U+581D-5821,U+5826-5827,U+582D,U+582F-5830,U+5832,U+5835,U+5839,U+583D,U+583F-5840,U+5849,U+584B-584D,U+584F-5852,U+5855,U+5858-5859,U+585F,U+5861-5862,U+5864,U+5867-5868,U+586D,U+5870,U+5872,U+5878-5879,U+587C,U+587F-5881,U+5885,U+5887-588D,U+588F-5890,U+5894,U+5896,U+5898,U+589D-589E,U+58A0-58A2,U+58A6,U+58A9-58AB,U+58AE,U+58B1-58B3,U+58B8-58BC,U+58BE,U+58C2-58C5,U+58C8,U+58CD-58CE,U+58D0-58DA,U+58DC-58E2,U+58E4-58E5,U+58E9,U+58EC,U+58EF,U+58F3-58F4,U+58F7,U+58F9,U+58FB-58FD,U+5902,U+5905-5906,U+590A-590D,U+5910,U+5912-5914,U+5918-5919,U+591B,U+591D,U+591F,U+5921,U+5923-5925,U+5928,U+592C-592D,U+592F-5930,U+5932-5933,U+5935-5936,U+5938-5939,U+593D-593F,U+5943,U+5946,U+594E,U+5950,U+5952-5953,U+5955,U+5957-595B,U+595D-5961,U+5963,U+5967,U+5969,U+596B-596D,U+596F,U+5972,U+5975-5976,U+5978-5979,U+597B-597C,U+5981}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.45.woff2)format("woff2");unicode-range:U+5616-5617,U+5619,U+561B,U+5620,U+5628,U+562C,U+562F-5639,U+563B-563D,U+563F-5641,U+5643-5644,U+5646-5647,U+5649,U+564B,U+564D-5650,U+5653-5654,U+565E,U+5660-5664,U+5666,U+5669-566D,U+566F,U+5671-5672,U+5675-5676,U+5678,U+567A,U+5680,U+5684-5688,U+568A-568C,U+568F,U+5694-5695,U+5699-569A,U+569D-56A0,U+56A5-56A9,U+56AB-56AE,U+56B1-56B4,U+56B6-56B7,U+56BC,U+56BE,U+56C0,U+56C2-56C3,U+56C5,U+56C8-56D1,U+56D3,U+56D7-56D9,U+56DC-56DD,U+56DF,U+56E1,U+56E4-56E8,U+56EB,U+56ED-56EE,U+56F1,U+56F6-56F7,U+56F9,U+56FF-5704,U+5707-570A,U+570C-570D,U+5711,U+5713,U+5715-5716,U+5718,U+571A-571D,U+5720-5726,U+5729-572A,U+572C,U+572E-572F,U+5733-5734,U+5737-5738,U+573B,U+573D-573F,U+5745-5746,U+574C-574F,U+5751-5752,U+5759,U+575F,U+5761-5762,U+5764-5765,U+5767-5769,U+576B,U+576D-5771,U+5773-5775,U+5777,U+5779-577C,U+577E-577F,U+5781,U+5783,U+5788-5789,U+578C,U+5793-5795,U+5797,U+5799-579A,U+579C-57A1,U+57A4,U+57A7-57AA,U+57AC,U+57AE,U+57B0}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.46.woff2)format("woff2");unicode-range:U+543F-5440,U+5443-5444,U+5447,U+544C-544F,U+5455,U+545E,U+5462,U+5464,U+5466-5467,U+5469,U+546B-546E,U+5470-5471,U+5474-5477,U+547B,U+547F-5481,U+5483-5486,U+5488-548B,U+548D-5492,U+5495-5496,U+549C,U+549F-54A2,U+54A4,U+54A6-54AF,U+54B1,U+54B7-54BC,U+54BE-54BF,U+54C2-54C4,U+54C6-54C8,U+54CA,U+54CD-54CE,U+54D8,U+54E0,U+54E2,U+54E5-54E6,U+54E8-54EA,U+54EC-54EF,U+54F1,U+54F3,U+54F6,U+54FC-5501,U+5505,U+5508-5509,U+550C-550F,U+5514-5516,U+5527,U+552A-552B,U+552E,U+5532-5533,U+5535-5536,U+5538-5539,U+553B-553D,U+5540-5541,U+5544-5545,U+5547,U+5549-554A,U+554C-554D,U+5550-5551,U+5556-5558,U+555A-555E,U+5560-5561,U+5563-5564,U+5566,U+557B-5583,U+5586-5588,U+558A,U+558E-558F,U+5591-5594,U+5597,U+5599,U+559E-559F,U+55A3-55A4,U+55A8-55A9,U+55AC-55AE,U+55B2,U+55BF,U+55C1,U+55C3-55C4,U+55C6-55C7,U+55C9,U+55CB-55CC,U+55CE,U+55D1-55D4,U+55D7-55D8,U+55DA-55DB,U+55DD-55DF,U+55E2,U+55E4,U+55E9,U+55EC,U+55EE,U+55F1,U+55F6-55F9,U+55FD-55FF,U+5605,U+5607-5608,U+560A,U+560D-5612}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.47.woff2)format("woff2");unicode-range:U+528D,U+5291-5298,U+529A,U+529C,U+52A4-52A7,U+52AB-52AD,U+52AF-52B0,U+52B5-52B8,U+52BA-52BE,U+52C0-52C1,U+52C4-52C6,U+52C8,U+52CA,U+52CC-52CD,U+52CF-52D2,U+52D4,U+52D6-52D7,U+52DB-52DC,U+52DE,U+52E0-52E1,U+52E3,U+52E5-52E6,U+52E8-52EA,U+52EC,U+52F0-52F1,U+52F3-52FB,U+5300-5301,U+5303,U+5306-5308,U+530A-530D,U+530F-5311,U+5313,U+5315,U+5318-531F,U+5321,U+5323-5325,U+5327-532D,U+532F-5333,U+5335,U+5338,U+533C-533E,U+5340,U+5342,U+5345-5346,U+5349,U+534B-534C,U+5359,U+535B,U+535E,U+5361,U+5363-5367,U+5369,U+536C-536E,U+5372,U+5377,U+5379-537B,U+537D-537F,U+5382-5383,U+5387-5389,U+538E,U+5393-5394,U+5396,U+5398-5399,U+539D,U+53A0-53A1,U+53A4-53A6,U+53A9-53AB,U+53AD-53B0,U+53B2,U+53B4-53B8,U+53BA,U+53BD,U+53C0-53C1,U+53C3-53C5,U+53CF,U+53D2-53D3,U+53D5,U+53DA-53DB,U+53DD-53E0,U+53E2,U+53E6-53E8,U+53ED-53EE,U+53F4-53F5,U+53FA,U+5401-5403,U+540B,U+540F,U+5412-5413,U+541A,U+541D-541E,U+5421,U+5424,U+5427-542A,U+542C-542F,U+5431,U+5433-5436,U+543C-543D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.48.woff2)format("woff2");unicode-range:U+50DD-50DF,U+50E1-50E6,U+50E8-50E9,U+50ED-50F6,U+50F9-50FB,U+50FE,U+5101-5103,U+5106-5109,U+510B-510E,U+5110,U+5112,U+5114-511E,U+5121,U+5123,U+5127-5128,U+512C-512D,U+512F,U+5131,U+5133-5135,U+5137-513C,U+513F-5142,U+5147,U+514A,U+514C,U+514F,U+5152-5155,U+5157-5158,U+515F-5160,U+5162,U+5164,U+5166-5167,U+5169-516A,U+516E,U+5173-5174,U+5179,U+517B,U+517E,U+5180,U+5182-5184,U+5189,U+518B-518C,U+518E-5191,U+5193,U+5195-5196,U+5198,U+519D,U+51A1-51A4,U+51A6,U+51A9-51AB,U+51AD,U+51B0-51B3,U+51B5,U+51B8,U+51BA,U+51BC-51BF,U+51C2-51C3,U+51C5,U+51C8-51CB,U+51CF,U+51D1-51D6,U+51D8,U+51DE-51E0,U+51E2,U+51E5,U+51E7,U+51E9,U+51EC-51EE,U+51F2-51F5,U+51F7,U+51FE,U+5201-5202,U+5204-5205,U+520B,U+520E,U+5212-5216,U+5218,U+5222,U+5226-5228,U+522A-522B,U+522E,U+5231-5233,U+5235,U+523C,U+5244-5245,U+5249,U+524B-524C,U+524F,U+5254-5255,U+5257-5258,U+525A,U+525C-5261,U+5266,U+5269,U+526C,U+526E,U+5271,U+5273-5274,U+5277-5279,U+527D,U+527F-5280,U+5282-5285,U+5288-528A,U+528C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.49.woff2)format("woff2");unicode-range:U+4F57-4F58,U+4F5A-4F5B,U+4F5D-4F5F,U+4F63-4F64,U+4F69-4F6A,U+4F6C,U+4F6E-4F71,U+4F76-4F7E,U+4F81-4F85,U+4F88-4F8A,U+4F8C,U+4F8E-4F90,U+4F92-4F94,U+4F96-4F9A,U+4F9E-4FA0,U+4FAB,U+4FAD,U+4FAF,U+4FB2,U+4FB7,U+4FB9,U+4FBB-4FBE,U+4FC0-4FC1,U+4FC4-4FC6,U+4FC8-4FC9,U+4FCB-4FD4,U+4FD8,U+4FDA-4FDC,U+4FDF-4FE0,U+4FE2,U+4FE4-4FE6,U+4FEF-4FF2,U+4FF6,U+4FFC-5002,U+5004-5007,U+500A,U+500C,U+500E-5011,U+5013-5014,U+5016-5018,U+501A-501E,U+5021-5023,U+5025-502A,U+502C-502E,U+5030,U+5032-5033,U+5035,U+5039,U+503B,U+5040-5043,U+5045-5048,U+504A,U+504C,U+504E,U+5050-5053,U+5055-5057,U+5059-505A,U+505F-5060,U+5062-5063,U+5066-5067,U+506A,U+506C-506D,U+5070-5072,U+5077-5078,U+5080-5081,U+5083-5086,U+5088,U+508A,U+508E-5090,U+5092-5096,U+509A-509C,U+509E-50A3,U+50AA,U+50AD,U+50AF-50B4,U+50B9-50BB,U+50BD,U+50C0,U+50C2-50C4,U+50C7,U+50C9-50CA,U+50CC,U+50CE,U+50D0-50D1,U+50D3-50D4,U+50D6,U+50D8-50D9,U+50DC}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.50.woff2)format("woff2");unicode-range:U+4093,U+4103,U+4105,U+4148,U+414F,U+4163,U+41B4,U+41BF,U+41E6,U+41EE,U+41F3,U+4207,U+420E,U+4264,U+4293,U+42C6,U+42D6,U+42DD,U+4302,U+432B,U+4343,U+43EE,U+43F0,U+4408,U+440C,U+4417,U+441C,U+4422,U+4453,U+445B,U+4476,U+447A,U+4491,U+44B3,U+44BE,U+44D4,U+4508,U+450D,U+4525,U+4543,U+457A,U+459D,U+45B8,U+45BE,U+45E5,U+45EA,U+460F-4610,U+4641,U+4665,U+46A1,U+46AE-46AF,U+470C,U+471F,U+4764,U+47E6,U+47FD,U+4816,U+481E,U+4844,U+484E,U+48B5,U+49B0,U+49E7,U+49FA,U+4A04,U+4A29,U+4ABC,U+4B38,U+4B3B,U+4B7E,U+4BC2,U+4BCA,U+4BD2,U+4BE8,U+4C17,U+4C20,U+4C38,U+4CC4,U+4CD1,U+4CE1,U+4D07,U+4D77,U+4E02,U+4E04-4E05,U+4E0C,U+4E0F-4E12,U+4E15,U+4E17,U+4E19,U+4E1E-4E1F,U+4E23-4E24,U+4E28-4E2C,U+4E2E-4E31,U+4E35-4E37,U+4E3F-4E42,U+4E44,U+4E47-4E48,U+4E4D-4E4E,U+4E51,U+4E55-4E56,U+4E58,U+4E5A-4E5C,U+4E62-4E63,U+4E68-4E69,U+4E74-4E75,U+4E79,U+4E7F,U+4E82,U+4E85,U+4E8A,U+4E8D-4E8E,U+4E96-4E99,U+4E9D-4EA0,U+4EA2,U+4EA5-4EA6,U+4EA8,U+4EAF-4EB0,U+4EB3,U+4EB6,U+4EB9,U+4EBB-4EBC,U+4EC2-4EC4,U+4EC6-4EC8,U+4ECD,U+4ED0,U+4ED7,U+4EDA-4EDB,U+4EDD-4EE2,U+4EE8,U+4EEB,U+4EED,U+4EEF,U+4EF1,U+4EF3,U+4EF5,U+4EF7,U+4EFC-4F00,U+4F02-4F03,U+4F08-4F09,U+4F0B-4F0D,U+4F12,U+4F15-4F17,U+4F19,U+4F1C,U+4F2B,U+4F2E,U+4F30-4F31,U+4F33,U+4F35-4F37,U+4F39,U+4F3B,U+4F3E,U+4F40,U+4F42-4F43,U+4F48-4F49,U+4F4B-4F4C,U+4F52,U+4F54,U+4F56}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.51.woff2)format("woff2");unicode-range:U+3395-339B,U+339E-33A0,U+33A2-33FF,U+3402,U+3405-3406,U+3427,U+342C,U+342E,U+3468,U+346A,U+3488,U+3492,U+34B5,U+34BC,U+34C1,U+34C7,U+34DB,U+351F,U+353E,U+355D-355E,U+3563,U+356E,U+35A6,U+35A8,U+35C5,U+35DA,U+35DE,U+35F4,U+3605,U+3614,U+364A,U+3691,U+3696,U+3699,U+36CF,U+3761-3762,U+376B-376C,U+3775,U+378D,U+37C1,U+37E2,U+37E8,U+37F4,U+37FD,U+3800,U+382F,U+3836,U+3840,U+385C,U+3861,U+38A1,U+38AD,U+38FA,U+3917,U+391A,U+396F,U+39A4,U+39B8,U+3A5C,U+3A6E,U+3A73,U+3A85,U+3AC4,U+3ACB,U+3AD6-3AD7,U+3AEA,U+3AF3,U+3B0E,U+3B1A,U+3B1C,U+3B22,U+3B35,U+3B6D,U+3B77,U+3B87-3B88,U+3B8D,U+3BA4,U+3BB6,U+3BC3,U+3BCD,U+3BF0,U+3BF3,U+3C0F,U+3C26,U+3CC3,U+3CD2,U+3D11,U+3D1E,U+3D31,U+3D4E,U+3D64,U+3D9A,U+3DC0,U+3DCC,U+3DD4,U+3E05,U+3E3F-3E40,U+3E60,U+3E66,U+3E68,U+3E83,U+3E8A,U+3E94,U+3EDA,U+3F57,U+3F72,U+3F75,U+3F77,U+3FAE,U+3FB1,U+3FC9,U+3FD7,U+3FDC,U+4039,U+4058}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.52.woff2)format("woff2");unicode-range:U+32B5-332B,U+332D-3394}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.53.woff2)format("woff2");unicode-range:U+31C8-31E3,U+31F0-321E,U+3220-3230,U+3232-32B4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.54.woff2)format("woff2");unicode-range:U+3028-303F,U+3094-3096,U+309F-30A0,U+30EE,U+30F7-30FA,U+30FF,U+3105-312F,U+3131-3163,U+3165-318E,U+3190-31BB,U+31C0-31C7}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.55.woff2)format("woff2");unicode-range:U+2F14-2FD5,U+2FF0-2FFB,U+3004,U+3013,U+3016-301B,U+301E,U+3020-3027}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.56.woff2)format("woff2");unicode-range:U+25E4-25E6,U+2601-2603,U+2609,U+260E-260F,U+2616-2617,U+261C-261F,U+262F,U+2641,U+2660,U+2662-2664,U+2666-2668,U+266D-266E,U+2672-267D,U+26BD-26BE,U+2702,U+271A,U+273D,U+2740,U+2756,U+2776-2793,U+27A1,U+2934-2935,U+29BF,U+29FA-29FB,U+2B05-2B07,U+2B1A,U+2B95,U+2E3A-2E3B,U+2E80-2E99,U+2E9B-2EF3,U+2F00-2F13}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.57.woff2)format("woff2");unicode-range:U+24D1-24FF,U+2503-2513,U+2515-2516,U+2518-251B,U+251D-2522,U+2524-259F,U+25A2-25AB,U+25B1,U+25B7,U+25C0-25C1,U+25C9-25CA,U+25CC,U+25D0-25D3,U+25E2-25E3}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.58.woff2)format("woff2");unicode-range:U+2105,U+2109-210A,U+210F,U+2116,U+2121,U+2126-2127,U+212B,U+212E,U+2135,U+213B,U+2194-2199,U+21B8-21B9,U+21C4-21C6,U+21CB-21CC,U+21D0,U+21E6-21E9,U+21F5,U+2202-2203,U+2205-2206,U+2208-220B,U+220F,U+2211,U+2213,U+2215,U+221A,U+221D,U+2220,U+2223,U+2225-2226,U+2228,U+222A-222E,U+2234-2237,U+223D,U+2243,U+2245,U+2248,U+224C,U+2260,U+2262,U+2264-2265,U+226E-226F,U+2272-2273,U+2276-2277,U+2283-2287,U+228A-228B,U+2295-2299,U+22A0,U+22A5,U+22BF,U+22DA-22DB,U+22EF,U+2305-2307,U+2318,U+2329-232A,U+23B0-23B1,U+23BE-23CC,U+23CE,U+23DA-23DB,U+2423,U+2469-24D0}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.59.woff2)format("woff2");unicode-range:U+A1-A4,U+A6-A7,U+AA,U+AC-AD,U+B5-B6,U+B8-BA,U+BC-C8,U+CA-CC,U+CE-D5,U+D9-DB,U+DD-DF,U+E6,U+EE,U+F0,U+F5,U+F7,U+F9,U+FB,U+FE-102,U+110-113,U+11A-11B,U+128-12B,U+143-144,U+147-148,U+14C,U+14E-14F,U+152-153,U+168-16D,U+192,U+1A0-1A1,U+1AF,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+2BB,U+2C7,U+2C9,U+2EA-2EB,U+304,U+307,U+30C,U+1E3E-1E3F,U+1EA0-1EBE,U+1EC0-1EC6,U+1EC8-1EF9,U+2011-2012,U+2016,U+2018-201A,U+201E,U+2021,U+2030,U+2033,U+2035,U+2042,U+2047,U+2051,U+2074,U+20A9,U+20AB-20AC,U+20DD-20DE,U+2100}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.60.woff2)format("woff2");unicode-range:U+2227,U+26A0,U+2713,U+301F,U+4FF8,U+5239,U+526A,U+54FA,U+5740,U+5937,U+5993,U+59FB,U+5A3C,U+5C41,U+6028,U+626E,U+646F,U+647A,U+64B0,U+64E2,U+65A7,U+66FE,U+6727,U+6955,U+6BEF,U+6F23,U+724C,U+767C,U+7A83,U+7AC4,U+7B67,U+8000,U+8471,U+8513,U+8599,U+86DB,U+8718,U+87F2,U+88F3,U+8AD2,U+8E2A,U+8FA3,U+95A5,U+9798,U+9910,U+9957,U+9BAB,U+9C3B,U+9DAF,U+FF95}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.61.woff2)format("woff2");unicode-range:U+A8,U+2032,U+2261,U+2282,U+3090,U+30F1,U+339C,U+535C,U+53D9,U+56A2,U+56C1,U+5806,U+589F,U+59D0,U+5A7F,U+60E0,U+639F,U+65AF,U+68FA,U+69AE,U+6D1B,U+6EF2,U+71FB,U+725D,U+7262,U+75BC,U+7768,U+7940,U+79BF,U+7BED,U+7D68,U+7DFB,U+814B,U+8207,U+83E9,U+8494,U+8526,U+8568,U+85EA,U+86D9,U+87BA,U+8861,U+887F,U+8FE6,U+9059,U+9061,U+916A,U+976D,U+97AD,U+9ECE}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.62.woff2)format("woff2");unicode-range:U+2D9,U+21D4,U+301D,U+515C,U+52FE,U+5420,U+5750,U+5766,U+5954,U+5B95,U+5F8A,U+5F98,U+620C,U+621F,U+641C,U+66D9,U+676D,U+6775,U+67F5,U+694A,U+6A02,U+6A3A,U+6A80,U+6C23,U+6C72,U+6DCB,U+6FAA,U+707C,U+71C8,U+7422,U+74E2,U+7791,U+7825,U+7A14,U+7A1C,U+7C95,U+7FC1,U+82A5,U+82DB,U+8304,U+853D,U+8CD3,U+8DE8,U+8F0C,U+8F3F,U+9091,U+91C7,U+929A,U+98AF,U+9913}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.63.woff2)format("woff2");unicode-range:U+2CA-2CB,U+2229,U+2468,U+2669,U+266F,U+273F,U+4EC0,U+4F60,U+4FB6,U+5347,U+540E,U+543B,U+5B0C,U+5D4C,U+5F14,U+5F9E,U+6155,U+62D0,U+6602,U+6666,U+66F3,U+67A2,U+67CA,U+69CC,U+6D29,U+6D9B,U+6E3E,U+6F81,U+7109,U+73C0,U+73C2,U+7425,U+7435-7436,U+7525,U+7554,U+785D,U+786B,U+7AE3,U+7B94,U+7D18,U+81BF,U+8511,U+8549,U+9075,U+9640,U+98E2,U+9E9F,U+FF96}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.64.woff2)format("woff2");unicode-range:U+2467,U+4ECE,U+4ED4,U+4F91,U+4FAE,U+534D,U+53C9,U+54B3,U+586B,U+5944,U+5B78,U+5DF7,U+5F77,U+6101,U+6167-6168,U+61A4,U+62D9,U+698A,U+699B,U+6A59,U+6CC4,U+6E07,U+7099,U+75D2,U+77AD,U+7953,U+7984,U+7A92,U+7BAA,U+7DBB,U+817F,U+82AD,U+85E9,U+868A,U+8CAA,U+8F44,U+9017,U+907C,U+908A,U+92F3,U+936E,U+9435,U+978D,U+9838,U+9A28,U+9B41,U+9BA8,U+9C57,U+9EB9}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.65.woff2)format("woff2");unicode-range:U+B1,U+309B,U+4E5E,U+51F1,U+5506,U+55C5,U+58CC,U+59D1,U+5C51,U+5EF7,U+6284,U+62D7,U+6689,U+673D,U+6A2B,U+6A8E,U+6A9C,U+6D63,U+6DD1,U+70B8,U+7235,U+72DB,U+72F8,U+7560,U+7C9B,U+7CE7,U+7E1E,U+80AF,U+82EB,U+8463,U+8499,U+85DD,U+86EE,U+8A60,U+8A6E,U+8C79,U+8E87,U+8E8A,U+8F5F,U+9010,U+918D,U+9190,U+965B,U+97FB,U+9AB8,U+9BAD,U+9D3B,U+9D5C,U+9DFA,U+9E93}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.66.woff2)format("woff2");unicode-range:U+2020,U+3003,U+3231,U+4E9B,U+4F3D,U+4F47,U+51B6,U+51DC,U+53E1,U+5BC5,U+602F,U+60BC,U+61C9,U+633D,U+637B,U+6492,U+65FA,U+660F,U+66F0,U+6703,U+681E,U+6876,U+6893,U+6912,U+698E,U+6C7D,U+714C,U+7169,U+71D5,U+725F,U+72D7,U+745B,U+74DC,U+75E2,U+7891,U+7897,U+7DCB,U+810A,U+8218,U+8339,U+840E,U+852D,U+8823,U+8A0A,U+9089,U+919C,U+971C,U+9AD9,U+FF4A,U+FF5A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.67.woff2)format("woff2");unicode-range:U+2466,U+2600,U+4EAB,U+4FE3,U+4FF5,U+51A5,U+51F0,U+536F,U+53D4,U+53F1,U+54A5,U+559D,U+55E3,U+58FA,U+5962,U+59EA,U+5C16,U+5CEF,U+5D16,U+5F10,U+5FD6,U+6190,U+6216,U+634F,U+63BB,U+66D6,U+6756,U+6BC5,U+6E26,U+727D,U+731F,U+76F2,U+7729,U+7A7F,U+7AFF,U+7C9F,U+818F,U+8236,U+82B9,U+8338,U+85AA,U+88B4,U+8B33,U+904D,U+93A7,U+96CC,U+96EB,U+9AED,U+9B8E,U+FA11}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.68.woff2)format("woff2");unicode-range:U+251C,U+2523,U+4E14,U+545F,U+54BD,U+553E,U+55DC,U+56DA,U+589C,U+5B55,U+5BB5,U+5CE1,U+5DF4,U+5EB6,U+5EC9,U+6191,U+62F7,U+6357,U+64A5,U+6591,U+65BC,U+6897,U+6E1A,U+7063,U+711A,U+721B,U+722C,U+75B9,U+75D5,U+75FA,U+7766,U+7AAE,U+7B48,U+7B8B,U+7D21,U+7E55,U+7F75,U+842C,U+8910,U+8A63,U+8B39,U+8B5A,U+8CDC,U+8D74,U+907D,U+91E7,U+9306,U+96BC,U+98F4,U+9AC4}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.69.woff2)format("woff2");unicode-range:U+2003,U+2312,U+266C,U+4F86,U+51EA,U+5243,U+5256,U+541F,U+5841,U+59DC,U+5DF3,U+601C,U+60E7,U+632B,U+638C,U+64AD,U+6881,U+697C,U+69CD,U+6C50,U+6D2A,U+6FC1,U+7027,U+7058,U+70F9,U+714E,U+7345,U+751A,U+760D,U+764C,U+77DB,U+7D79,U+7E8F,U+80CE,U+814E,U+81FC,U+8247,U+8278,U+85A9,U+8A03,U+90ED,U+9784,U+9801,U+984E,U+99B3,U+9BC9,U+9BDB,U+9BE8,U+9E78,U+FF6B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.70.woff2)format("woff2");unicode-range:U+266B,U+3006,U+5176,U+5197,U+51A8,U+51C6,U+52F2,U+5614,U+5875,U+5A2F,U+5B54,U+5CE0,U+5DBA,U+5DEB,U+5E63,U+5F59,U+5FCC,U+6068,U+6367,U+68B6,U+6A0B,U+6B64,U+6E15,U+6EBA,U+7272,U+72A0,U+7947,U+7985,U+79E6,U+79E9,U+7A3D,U+7A9F,U+7AAF,U+7B95,U+7F60,U+7F9E,U+7FE0,U+8098,U+80BA,U+8106,U+82D4,U+831C,U+87F9,U+8A1F,U+8ACF,U+90C1,U+920D,U+9756,U+FE43,U+FF94}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.71.woff2)format("woff2");unicode-range:U+AF,U+2465,U+2517,U+33A1,U+4F10,U+50C5,U+51B4,U+5384,U+5606,U+5BB0,U+5CAC,U+5EE3,U+618E,U+61F2,U+62C9,U+66AB,U+66F9,U+6816,U+6960,U+6B3E,U+6F20,U+7078,U+72D0,U+73ED,U+7AD9,U+7B1B,U+7BE4,U+7D62,U+7F51,U+80B4,U+80F4,U+8154,U+85FB,U+865C,U+8702,U+895F,U+8AED,U+8B90,U+8CED,U+8FBF,U+91D8,U+9418,U+9583,U+9591,U+9813,U+982C,U+9BD6,U+FF46,U+FF7F,U+FF88}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.72.woff2)format("woff2");unicode-range:U+4E91,U+508D,U+50E7,U+514E,U+51F6,U+5446,U+5504,U+584A,U+59A8,U+59D3,U+5A46,U+5AC9,U+6020,U+60A6,U+6148,U+621A,U+6234,U+64C1,U+6523,U+675C,U+67D1,U+6953,U+6CCC,U+6DF5,U+6E13,U+6F06,U+723A,U+7325,U+74E6,U+758E,U+75AB,U+75D9,U+7A40,U+8096,U+82FA,U+8587,U+8594,U+8A6B,U+8AB9,U+8B17,U+8B83,U+937C,U+963B,U+9673,U+96DB,U+9CE9,U+9F4B,U+FF67,U+FF82,U+FF93}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.73.woff2)format("woff2");unicode-range:U+221E,U+2514,U+51F9,U+5270,U+5449,U+5824,U+59A5,U+5A29,U+5D07,U+5E16,U+60E3,U+614C,U+6276,U+643E,U+64AB,U+6562,U+6681,U+670B,U+6734,U+67AF,U+6A3D,U+6B05,U+6DC0,U+6E4A,U+7259,U+732A,U+7409,U+78A7,U+7A6B,U+8015,U+809B,U+817A,U+830E,U+837B,U+85AB,U+8A23,U+8A93,U+8B00,U+8B19,U+8B21,U+8CBF,U+8FB0,U+901D,U+91B8,U+9320,U+932C,U+9688,U+96F6,U+9DF2,U+FF6A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.74.woff2)format("woff2");unicode-range:U+2002,U+2025,U+4F8D,U+51E1,U+51F8,U+5507,U+5598,U+58F1,U+5983,U+59AC,U+5C3C,U+5DE7,U+5E7D,U+5ECA,U+5F61,U+606D,U+60F9,U+636E,U+64EC,U+67DA,U+67FF,U+6813,U+68F2,U+693F,U+6B6A,U+6BBB,U+6EF4,U+7092,U+717D,U+7261,U+73C8,U+7432,U+7483,U+76FE,U+7709,U+78D0,U+81A3,U+81B3,U+82AF,U+8305,U+8309,U+8870,U+88FE,U+8CD1,U+8D66,U+906E,U+971E,U+9812,U+FF79,U+FF90}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.75.woff2)format("woff2");unicode-range:U+2464,U+2501,U+2640,U+2642,U+339D,U+4F0E,U+5091,U+50B5,U+5132,U+51CC,U+558B,U+55AA,U+585E,U+5BEE,U+5DFE,U+60B6,U+62B9,U+6349,U+6566,U+6590,U+6842,U+689D,U+6A58,U+6C70,U+6FF1,U+7815,U+7881,U+7AAA,U+7BC7,U+7DEF,U+7FA8,U+8017,U+8036,U+8061,U+821F,U+8429,U+8CE0,U+8E74,U+9019,U+90CA,U+9162,U+932F,U+93AE,U+9644,U+990C,U+9CF3,U+FF56,U+FF6E,U+FF7E,U+FF85}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.76.woff2)format("woff2");unicode-range:U+2266-2267,U+4F2F,U+5208,U+5451,U+546A,U+5589,U+576A,U+5815,U+5A9A,U+5B9B,U+5C3A,U+5EFB,U+5FAA,U+6109,U+6643,U+6652,U+695A,U+69FD,U+6B86,U+6BB4,U+6DAF,U+7089,U+70CF,U+7A00,U+7A4F,U+7B39,U+7D33,U+80E1,U+828B,U+82A6,U+86CD,U+8C8C,U+8CCA,U+8DF3,U+9077,U+9175,U+91DC,U+925B,U+9262,U+9271,U+92ED,U+9855,U+9905,U+9D28,U+FF3F,U+FF58,U+FF68,U+FF6D,U+FF9C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.77.woff2)format("woff2");unicode-range:U+2207,U+25EF,U+309C,U+4E4F,U+5146,U+51DD,U+5351,U+540A,U+5629,U+5EB5,U+5F04,U+5F13,U+60DC,U+6212,U+63B4,U+642C,U+6627,U+66A6,U+66C7,U+66FD,U+674E,U+6B96,U+6C4E,U+6DF3,U+6E67,U+6F84,U+72FC,U+733F,U+7C97,U+7DB1,U+7E4D,U+816B,U+82D1,U+84CB,U+854E,U+8607,U+86C7,U+871C,U+8776,U+8A89,U+8FC4,U+91A4,U+9285,U+9685,U+9903,U+9B31,U+9F13,U+FF42,U+FF74,U+FF91}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.78.woff2)format("woff2");unicode-range:U+4E32,U+51DB,U+53A8,U+53EA,U+5609,U+5674,U+5A92,U+5E7E,U+6115,U+611A,U+62CC,U+62ED,U+63C9,U+64B9,U+64E6,U+65CB,U+6606,U+6731,U+683D,U+6AFB,U+7460,U+771E,U+78EF,U+7B26,U+7B51,U+7CDE,U+7D10,U+7D2F,U+7D46,U+80DE,U+819C,U+84B2,U+85CD,U+865A,U+8ECC,U+9022,U+90B8,U+9192,U+9675,U+96B7,U+99FF,U+FF44,U+FF55,U+FF6C,U+FF73,U+FF75,U+FF86,U+FF8D,U+FF92,U+FFE3}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.79.woff2)format("woff2");unicode-range:U+25B3,U+30F5,U+4EAE,U+4F46,U+4F51,U+5203,U+52FF,U+55A7,U+564C,U+565B,U+57F9,U+5805,U+5B64,U+5E06,U+5F70,U+5F90,U+60E8,U+6182,U+62F3,U+62FE,U+63AA,U+64A4,U+65D7,U+673A,U+6851,U+68CB,U+68DF,U+6D1E,U+6E58,U+6E9D,U+77B3,U+7832,U+7C3F,U+7DB4,U+7F70,U+80AA,U+80C6,U+8105,U+819D,U+8276,U+8679,U+8986,U+8C9D,U+8FC5,U+916C,U+9665,U+9699,U+96C0,U+9A19,U+FF8B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.80.woff2)format("woff2");unicode-range:U+2463,U+25A1,U+4EF0,U+5076,U+5098,U+51FD,U+5302,U+5448,U+54C9,U+570B,U+583A,U+5893,U+58A8,U+58EE,U+5949,U+5BDB,U+5F26,U+5F81,U+6052,U+6170,U+61C7,U+631F,U+635C,U+664B,U+69FB,U+6F01,U+7070,U+722A,U+745E,U+755C,U+76C6,U+78C1,U+79E4,U+7BB8,U+7D0B,U+81A8,U+82D7,U+8B5C,U+8F14,U+8FB1,U+8FBB,U+9283,U+9298,U+9A30,U+FF03,U+FF50,U+FF59,U+FF7B,U+FF8E-FF8F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.81.woff2)format("woff2");unicode-range:U+2010,U+2502,U+25B6,U+4F3A,U+514B,U+5265,U+52C3,U+5339,U+53EC,U+54C0,U+55B0,U+5854,U+5B8F,U+5CB3,U+5E84,U+60DA,U+6247,U+6249,U+628A,U+62CD,U+65AC,U+6838,U+690E,U+6CF0,U+6F02,U+6F2C,U+6F70,U+708A,U+7434,U+75BE,U+77EF,U+7C60,U+7C98,U+7D1B,U+7E2B,U+80A5,U+81E3,U+820C,U+8210,U+8475,U+862D,U+8650,U+8997,U+906D,U+91C8,U+9700,U+9727,U+9DF9,U+FF3A,U+FF9A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.82.woff2)format("woff2");unicode-range:U+2103,U+5049,U+52B1,U+5320,U+5553,U+572D,U+58C7,U+5B5D,U+5BC2,U+5DE3,U+5E61,U+5F80,U+61A9,U+67D0,U+67F4,U+6C88,U+6CA1,U+6CE5,U+6D78,U+6E9C,U+6F54,U+731B,U+73B2,U+74A7,U+74F6,U+75E9,U+7B20,U+7C8B,U+7F72,U+809D,U+8108,U+82B3,U+82BD,U+84B8,U+84C4,U+88C2,U+8AE6,U+8EF8,U+902E,U+9065,U+9326,U+935B,U+938C,U+9676,U+9694,U+96F7,U+9ED9,U+FF48,U+FF4C,U+FF81}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.83.woff2)format("woff2");unicode-range:U+2500,U+3008-3009,U+4EAD,U+4F0F,U+4FCA,U+53EB,U+543E,U+57A2,U+5CF0,U+5E8F,U+5FE0,U+61B2,U+62D8,U+6442,U+64B2,U+6589,U+659C,U+67F1,U+68C4,U+6CB8,U+6D12,U+6DE1,U+6FE1,U+70C8,U+723D,U+73E0,U+7656,U+773A,U+7948,U+7B87,U+7C92,U+7D3A,U+7E1B,U+7E4A,U+819A,U+8358,U+83C5,U+84BC,U+864E,U+8912,U+8C9E,U+8D05,U+92FC,U+9396,U+98FD,U+99D2,U+FF64,U+FF7A,U+FF83}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.84.woff2)format("woff2");unicode-range:U+3014-3015,U+4E3C,U+5036,U+5075,U+533F,U+53E9,U+5531,U+5642,U+5984,U+59E6,U+5A01,U+5B6B,U+5C0B,U+5F25,U+6069,U+60A0,U+614E,U+62B5,U+62D2-62D3,U+6597,U+660C,U+674F,U+67CF,U+6841,U+6905,U+6CF3,U+6D32,U+6D69,U+6F64,U+716E,U+7761,U+7B52,U+7BE0,U+7DBF,U+7DE9,U+7F36,U+81D3,U+8302,U+8389,U+846C,U+84EE,U+8A69,U+9038,U+9D8F,U+FF47,U+FF4B,U+FF76,U+FF9B}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.85.woff2)format("woff2");unicode-range:U+25C7,U+3007,U+504F,U+507D,U+51A0,U+52A3,U+5410,U+5510,U+559A,U+5782,U+582A,U+5C0A,U+5C3F,U+5C48,U+5F6B,U+6176,U+622F,U+6279,U+62BD,U+62DD,U+65ED,U+67B6,U+6817,U+6850,U+6D6A,U+6DEB,U+6EA2,U+6EDD,U+6F5C,U+72E9,U+73A9,U+7573,U+76BF,U+7950,U+7956,U+7F8A,U+7FFC,U+80A2,U+80C3,U+83CA,U+8A02,U+8A13,U+8DF5,U+9375,U+983B,U+99B4,U+FF4E,U+FF71,U+FF89,U+FF97}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.86.woff2)format("woff2");unicode-range:U+24,U+2022,U+2212,U+221F,U+2665,U+4ECF,U+5100,U+51CD,U+52D8,U+5378,U+53F6,U+574A,U+5982,U+5996,U+5C1A,U+5E1D,U+5F84,U+609F,U+61A7,U+61F8,U+6398,U+63EE,U+6676,U+6691,U+6EB6,U+7126,U+71E5,U+7687,U+7965,U+7D17,U+80A1,U+8107,U+8266,U+85A6,U+8987,U+8CA2,U+8CAB,U+8E0A,U+9042,U+95C7,U+9810,U+9867,U+98FC,U+FF52-FF54,U+FF61,U+FF77,U+FF98-FF99}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.87.woff2)format("woff2");unicode-range:U+B0,U+226A,U+2462,U+4E39,U+4FC3,U+4FD7,U+50BE,U+50DA,U+5200,U+5211,U+54F2,U+5618,U+596A,U+5B22,U+5BB4,U+5D50,U+60A3,U+63FA,U+658E,U+65E8,U+6669,U+6795,U+679D,U+67A0,U+6B3A,U+6E09,U+757F,U+7CD6,U+7DBE,U+7FFB,U+83CC,U+83F1,U+840C,U+845B,U+8846,U+8972,U+8A34,U+8A50,U+8A87,U+8EDF,U+8FF0,U+90A6,U+9154,U+95A3,U+9663,U+9686,U+96C7,U+FF3C,U+FF7C,U+FF8A}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.88.woff2)format("woff2");unicode-range:U+25BD,U+4E59,U+4EC1,U+4FF3,U+515A,U+518A,U+525B,U+5375,U+552F,U+57A3,U+5B9C,U+5C3D,U+5E3D,U+5E7B,U+5F0A,U+6094,U+6458,U+654F,U+67F3,U+6B8A,U+6BD2,U+6C37,U+6CE1,U+6E56,U+6E7F,U+6ED1,U+6EDE,U+6F0F,U+70AD,U+7267,U+7363,U+786C,U+7A42,U+7DB2,U+7F85,U+8178,U+829D,U+8896,U+8C5A,U+8CB0,U+8CE2,U+8ED2,U+9047,U+9177,U+970A,U+9EA6,U+FF1B,U+FF31,U+FF39,U+FF80}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.89.woff2)format("woff2");unicode-range:U+A5,U+4E80,U+4F34,U+4F73,U+4F75,U+511F,U+5192,U+52AA,U+53C8,U+570F,U+57CB,U+596E,U+5D8B,U+5F66,U+5FD9,U+62DB,U+62F6,U+6328,U+633F,U+63A7,U+6469,U+6BBF,U+6C41,U+6C57,U+6D44,U+6DBC,U+706F,U+72C2,U+72ED,U+7551,U+75F4,U+7949,U+7E26,U+7FD4,U+8150,U+8AF8,U+8B0E,U+8B72,U+8CA7,U+934B,U+9A0E,U+9A12,U+9B42,U+FF41,U+FF43,U+FF45,U+FF49,U+FF4F,U+FF62-FF63}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.90.woff2)format("woff2");unicode-range:U+4E18,U+4FB5,U+5104,U+52C7,U+5353,U+5374,U+53E5,U+587E,U+594F,U+5A20,U+5DE1,U+5F18,U+5FCD,U+6291,U+62AB,U+6355,U+6392,U+63DA,U+63E1,U+656C,U+6687,U+68B0-68B1,U+68D2,U+68DA,U+6B27,U+6CBC,U+7159,U+7344,U+73CD,U+76DF,U+790E,U+7CF8,U+8102,U+88C1,U+8AA0,U+8E0F,U+9178,U+92AD,U+9670,U+96C5,U+9CF4,U+9DB4,U+FF3E,U+FF6F,U+FF72,U+FF78,U+FF7D,U+FF84,U+FF8C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.91.woff2)format("woff2");unicode-range:U+60,U+2200,U+226B,U+2461,U+517C,U+526F,U+5800,U+5B97,U+5BF8,U+5C01,U+5D29,U+5E4C,U+5E81,U+6065,U+61D0,U+667A,U+6696,U+6843,U+6C99,U+6D99,U+6EC5,U+6F22,U+6F6E,U+6FA4,U+6FEF,U+71C3,U+72D9,U+7384,U+78E8,U+7A1A,U+7A32,U+7A3C,U+7ADC,U+7CA7,U+7D2B,U+7DAD,U+7E4B,U+80A9,U+8170,U+81ED,U+820E,U+8A17,U+8AFE,U+90AA,U+914E,U+963F,U+99C4,U+9EBA,U+9F3B,U+FF38}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.92.woff2)format("woff2");unicode-range:U+2460,U+4E5F,U+4E7E,U+4ED9,U+501F,U+502B,U+5968,U+5974,U+5AC1,U+5B99,U+5BA3,U+5BE7,U+5BE9,U+5C64,U+5CB8,U+5EC3,U+5F1F,U+616E,U+6297,U+62E0,U+62EC,U+6368,U+642D,U+65E6,U+6717,U+676F,U+6B04,U+732E,U+7652,U+76CA,U+76D7,U+7802,U+7E70,U+7F6A,U+8133,U+81E8,U+866B,U+878D,U+88F8,U+8A5E,U+8CDB,U+8D08,U+907A,U+90E1,U+96F2,U+9F8D,U+FF35,U+FF37,U+FF40,U+FF9D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.93.woff2)format("woff2");unicode-range:U+21D2,U+25CE,U+300A-300B,U+4E89,U+4E9C,U+4EA1,U+5263,U+53CC,U+5426,U+5869,U+5947,U+598A,U+5999,U+5E55,U+5E72,U+5E79,U+5FAE,U+5FB9,U+602A,U+6163,U+624D,U+6749,U+6C5A,U+6CBF,U+6D45,U+6DFB,U+6E7E,U+708E,U+725B,U+7763,U+79C0,U+7BC4,U+7C89,U+7E01,U+7E2E,U+8010,U+8033,U+8C6A,U+8CC3,U+8F1D,U+8F9B,U+8FB2,U+907F,U+90F7,U+9707,U+9818,U+9B3C,U+FF0A,U+FF4D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.94.woff2)format("woff2");unicode-range:U+2015,U+2190,U+4E43,U+5019,U+5247,U+52E7,U+5438,U+54B2,U+55AB,U+57F7,U+5BD2,U+5E8A,U+5EF6,U+6016,U+60B2,U+6162,U+6319,U+6551,U+6607,U+66B4,U+675F,U+67D4,U+6B20,U+6B53,U+6CE3,U+719F,U+75B2,U+770B,U+7720,U+77AC,U+79D2,U+7AF9,U+7D05,U+7DCA,U+8056,U+80F8,U+81F3,U+8352,U+885D,U+8A70,U+8AA4,U+8CBC,U+900F,U+9084,U+91E3,U+9451,U+96C4,U+99C6,U+9AD4,U+FF70}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.95.woff2)format("woff2");unicode-range:U+2193,U+25B2,U+4E4B,U+516D,U+51C4,U+529F,U+52C9,U+5360,U+5442,U+5857,U+5915,U+59EB,U+5A9B,U+5C3B,U+6012,U+61B6,U+62B1,U+6311,U+6577,U+65E2,U+65EC,U+6613,U+6790,U+6CB9,U+7372,U+76AE,U+7D5E,U+7FCC,U+88AB,U+88D5,U+8CAF,U+8DDD,U+8ECD,U+8F38,U+8F9E,U+8FEB,U+9063,U+90F5,U+93E1,U+968A,U+968F,U+98FE,U+9EC4,U+FF1D,U+FF27,U+FF2A,U+FF36,U+FF3B,U+FF3D,U+FFE5}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.96.woff2)format("woff2");unicode-range:U+4E03,U+4F38,U+50B7,U+5264,U+5348,U+5371,U+585A,U+58CA,U+5951,U+59B9,U+59D4,U+5B98,U+5F8B,U+6388,U+64CD,U+65E7,U+6803,U+6B6F,U+6D66,U+6E0B,U+6ECB,U+6FC3,U+72AC,U+773C,U+77E2,U+7968,U+7A74,U+7DBA,U+7DD1,U+7E3E,U+808C,U+811A,U+8179,U+8239,U+8584,U+8A0E,U+8A72,U+8B66,U+8C46,U+8F29,U+90A3,U+9234,U+96F0,U+9769,U+9774,U+9AA8,U+FF26,U+FF28,U+FF9E-FF9F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.97.woff2)format("woff2");unicode-range:U+7E,U+B4,U+25C6,U+2661,U+4E92,U+4EEE,U+4FFA,U+5144,U+5237,U+5287,U+52B4,U+58C1,U+5BFF,U+5C04,U+5C06,U+5E95,U+5F31,U+5F93,U+63C3,U+640D,U+6557,U+6614,U+662F,U+67D3,U+690D,U+6BBA,U+6E6F,U+72AF,U+732B,U+7518,U+7AE0,U+7AE5,U+7AF6,U+822A,U+89E6,U+8A3A,U+8A98,U+8CB8,U+8DE1,U+8E8D,U+95D8,U+961C,U+96A3,U+96EA,U+9BAE,U+FF20,U+FF22,U+FF29,U+FF2B-FF2C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.98.woff2)format("woff2");unicode-range:U+25CB,U+4E71,U+4F59,U+50D5,U+520A,U+5217,U+5230,U+523A-523B,U+541B,U+5439,U+5747,U+59C9,U+5BDF,U+5C31,U+5DE8,U+5E7C,U+5F69,U+6050,U+60D1,U+63CF,U+663C,U+67C4,U+6885,U+6C38,U+6D6E,U+6DB2,U+6DF7,U+6E2C,U+6F5F,U+7532,U+76E3-76E4,U+7701,U+793C,U+79F0,U+7A93,U+7D00,U+7DE0,U+7E54,U+8328,U+8840,U+969C,U+96E8,U+9811,U+9AEA,U+9B5A,U+FF24,U+FF2E,U+FF57}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.99.woff2)format("woff2");unicode-range:U+2191,U+505C,U+52E4,U+5305,U+535A,U+56E0,U+59BB,U+5ACC,U+5B09,U+5B87,U+5C90,U+5DF1,U+5E2D,U+5E33,U+5F3E,U+6298,U+6383,U+653B,U+6697,U+6804,U+6A39,U+6CCA,U+6E90,U+6F2B,U+702C,U+7206,U+7236,U+7559,U+7565,U+7591,U+75C7,U+75DB,U+7B4B,U+7BB1,U+7D99,U+7FBD,U+8131,U+885B,U+8B1D,U+8FF7,U+9003,U+9045,U+96A0,U+9732,U+990A,U+99D0,U+9E97,U+9F62,U+FF25,U+FF2D}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.100.woff2)format("woff2");unicode-range:U+4E08,U+4F9D,U+5012,U+514D,U+51B7,U+5275,U+53CA,U+53F8,U+5584,U+57FC,U+5B9D,U+5BFA,U+5C3E,U+5F01,U+5FB4,U+5FD7,U+606F,U+62E1,U+6563,U+6674,U+6CB3,U+6D3E,U+6D74,U+6E1B,U+6E2F,U+718A,U+7247,U+79D8,U+7D14,U+7D66,U+7D71,U+7DF4,U+7E41,U+80CC,U+8155,U+83D3,U+8A95,U+8AB2,U+8AD6,U+8CA1,U+9000,U+9006,U+9678,U+97D3,U+9808,U+98EF,U+9A5A,U+9B45,U+FF23,U+FF30}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.101.woff2)format("woff2");unicode-range:U+25BC,U+3012,U+4EF2,U+4F0A,U+516B,U+5373,U+539A,U+53B3,U+559C,U+56F0,U+5727,U+5742,U+5965,U+59FF,U+5BC6,U+5DFB,U+5E45,U+5EAD,U+5FB3,U+6211,U+6253,U+639B,U+63A8,U+6545,U+6575,U+6628,U+672D,U+68A8,U+6BDB,U+6D25,U+707D,U+767E,U+7834,U+7B46,U+7BC9,U+8074,U+82E6,U+8349,U+8A2A,U+8D70,U+8DA3,U+8FCE,U+91CC,U+967D,U+97FF,U+9996,U+FF1C,U+FF2F,U+FF32,U+FF34}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.102.woff2)format("woff2");unicode-range:U+3D,U+5E,U+25CF,U+4E0E,U+4E5D,U+4E73,U+4E94,U+4F3C,U+5009,U+5145,U+51AC,U+5238,U+524A,U+53F3,U+547C,U+5802,U+5922,U+5A66,U+5C0E,U+5DE6,U+5FD8,U+5FEB,U+6797,U+685C,U+6B7B,U+6C5F-6C60,U+6CC9,U+6CE2,U+6D17,U+6E21,U+7167,U+7642,U+76DB,U+8001,U+821E,U+8857,U+89D2,U+8B1B,U+8B70,U+8CB4,U+8CDE,U+8F03,U+8F2A,U+968E,U+9B54,U+9E7F,U+9EBB,U+FF05,U+FF33}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.103.woff2)format("woff2");unicode-range:U+500D,U+5074,U+50CD,U+5175,U+52E2,U+5352,U+5354,U+53F2,U+5409,U+56FA,U+5A18,U+5B88,U+5BDD,U+5CA9,U+5F92,U+5FA9,U+60A9,U+623F,U+6483,U+653F,U+666F,U+66AE,U+66F2,U+6A21,U+6B66,U+6BCD,U+6D5C,U+796D,U+7A4D,U+7AEF,U+7B56,U+7B97,U+7C4D,U+7E04,U+7FA9,U+8377,U+83DC,U+83EF,U+8535,U+8863,U+88CF,U+88DC,U+8907,U+8ACB,U+90CE,U+91DD,U+FF0B,U+FF0D,U+FF19,U+FF65}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.104.woff2)format("woff2");unicode-range:U+4E01,U+4E21,U+4E38,U+52A9,U+547D,U+592E,U+5931,U+5B63,U+5C40,U+5DDE,U+5E78,U+5EFA,U+5FA1,U+604B,U+6075,U+62C5,U+632F,U+6A19,U+6C0F,U+6C11,U+6C96,U+6E05,U+70BA,U+71B1,U+7387,U+7403,U+75C5,U+77ED,U+795D,U+7B54,U+7CBE,U+7D19,U+7FA4,U+8089,U+81F4,U+8208,U+8336,U+8457,U+8A33,U+8C4A,U+8CA0,U+8CA8,U+8CC0,U+9014,U+964D,U+9803,U+983C,U+98DB,U+FF17,U+FF21}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.105.woff2)format("woff2");unicode-range:U+25,U+25A0,U+4E26,U+4F4E,U+5341,U+56F2,U+5BBF,U+5C45,U+5C55,U+5C5E,U+5DEE,U+5E9C,U+5F7C,U+6255,U+627F,U+62BC,U+65CF,U+661F,U+666E,U+66DC,U+67FB,U+6975,U+6A4B,U+6B32,U+6DF1,U+6E29,U+6FC0,U+738B,U+7686,U+7A76,U+7A81,U+7C73,U+7D75,U+7DD2,U+82E5,U+82F1,U+85AC,U+888B,U+899A,U+8A31,U+8A8C,U+8AB0,U+8B58,U+904A,U+9060,U+9280,U+95B2,U+984D,U+9CE5,U+FF18}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.106.woff2)format("woff2");unicode-range:U+30F6,U+50AC,U+5178,U+51E6,U+5224,U+52DD,U+5883,U+5897,U+590F,U+5A5A,U+5BB3,U+5C65,U+5E03,U+5E2B,U+5E30,U+5EB7,U+6271,U+63F4,U+64AE,U+6574,U+672B,U+679A,U+6A29-6A2A,U+6CA2,U+6CC1,U+6D0B,U+713C,U+74B0,U+7981,U+7A0B,U+7BC0,U+7D1A,U+7D61,U+7FD2,U+822C,U+8996,U+89AA,U+8CAC,U+8CBB,U+8D77,U+8DEF,U+9020,U+9152,U+9244,U+9662,U+967A,U+96E3,U+9759,U+FF16}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.107.woff2)format("woff2");unicode-range:U+23,U+3C,U+2192,U+4E45,U+4EFB,U+4F50,U+4F8B,U+4FC2,U+5024,U+5150,U+5272,U+5370,U+53BB,U+542B,U+56DB,U+56E3,U+57CE,U+5BC4,U+5BCC,U+5F71,U+60AA,U+6238,U+6280,U+629C,U+6539,U+66FF,U+670D,U+677E-677F,U+6839,U+69CB,U+6B4C,U+6BB5,U+6E96,U+6F14,U+72EC,U+7389,U+7814,U+79CB,U+79D1,U+79FB,U+7A0E,U+7D0D,U+85E4,U+8D64,U+9632,U+96E2,U+9805,U+99AC,U+FF1E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.108.woff2)format("woff2");unicode-range:U+2605-2606,U+301C,U+4E57,U+4FEE,U+5065,U+52DF,U+533B,U+5357,U+57DF,U+58EB,U+58F0,U+591C,U+592A-592B,U+5948,U+5B85,U+5D0E,U+5EA7,U+5FF5,U+6025,U+63A1,U+63A5,U+63DB,U+643A,U+65BD,U+671D,U+68EE,U+6982,U+6B73,U+6BD4,U+6D88,U+7570,U+7B11,U+7D76,U+8077,U+8217,U+8C37,U+8C61,U+8CC7,U+8D85,U+901F,U+962A,U+9802,U+9806,U+9854,U+98F2,U+9928,U+99C5,U+9ED2}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.109.woff2)format("woff2");unicode-range:U+266A,U+4F11,U+533A,U+5343,U+534A,U+53CD,U+5404,U+56F3,U+5B57-5B58,U+5BAE,U+5C4A,U+5E0C,U+5E2F,U+5EAB,U+5F35,U+5F79,U+614B,U+6226,U+629E,U+65C5,U+6625,U+6751,U+6821,U+6B69,U+6B8B,U+6BCE,U+6C42,U+706B,U+7C21,U+7CFB,U+805E,U+80B2,U+82B8,U+843D,U+8853,U+88C5,U+8A3C,U+8A66,U+8D8A,U+8FBA,U+9069,U+91CF,U+9752,U+975E,U+9999,U+FF0F-FF10,U+FF14-FF15}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.110.woff2)format("woff2");unicode-range:U+40,U+4E86,U+4E95,U+4F01,U+4F1D,U+4FBF,U+5099,U+5171,U+5177,U+53CB,U+53CE,U+53F0,U+5668,U+5712,U+5BA4,U+5CA1,U+5F85,U+60F3,U+653E,U+65AD,U+65E9,U+6620,U+6750,U+6761,U+6B62,U+6B74,U+6E08,U+6E80,U+7248,U+7531,U+7533,U+753A,U+77F3,U+798F,U+7F6E,U+8449,U+88FD,U+89B3,U+8A55,U+8AC7,U+8B77,U+8DB3,U+8EFD,U+8FD4,U+9031-9032,U+9580,U+9589,U+96D1,U+985E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.111.woff2)format("woff2");unicode-range:U+2B,U+D7,U+300E-300F,U+4E07,U+4E8C,U+512A,U+5149,U+518D,U+5236,U+52B9,U+52D9,U+5468,U+578B,U+57FA,U+5B8C,U+5BA2,U+5C02,U+5DE5,U+5F37,U+5F62,U+623B,U+63D0,U+652F,U+672A,U+6848,U+6D41,U+7136,U+7537,U+754C,U+76F4,U+79C1,U+7BA1,U+7D44,U+7D4C,U+7DCF,U+7DDA,U+7DE8,U+82B1,U+897F,U+8CA9,U+8CFC,U+904E,U+9664,U+982D,U+9858,U+98A8,U+9A13,U+FF13,U+FF5C}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.112.woff2)format("woff2");unicode-range:U+4E16,U+4E3B,U+4EA4,U+4EE4,U+4F4D,U+4F4F,U+4F55,U+4F9B,U+5317,U+5358,U+53C2,U+53E4,U+548C,U+571F,U+59CB,U+5CF6,U+5E38,U+63A2,U+63B2,U+6559,U+662D,U+679C,U+6C7A,U+72B6,U+7523,U+767D,U+770C,U+7A2E,U+7A3F,U+7A7A,U+7B2C,U+7B49,U+7D20,U+7D42,U+8003,U+8272,U+8A08,U+8AAC,U+8CB7,U+8EAB,U+8EE2,U+9054-9055,U+90FD,U+914D,U+91CD,U+969B,U+97F3,U+984C,U+FF06}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.113.woff2)format("woff2");unicode-range:U+26,U+5F,U+2026,U+203B,U+4E09,U+4EAC,U+4ED5,U+4FA1,U+5143,U+5199,U+5207,U+539F,U+53E3,U+53F7,U+5411,U+5473,U+5546,U+55B6,U+5929,U+597D,U+5BB9,U+5C11,U+5C4B,U+5DDD,U+5F97,U+5FC5,U+6295,U+6301,U+6307,U+671B,U+76F8,U+78BA,U+795E,U+7D30,U+7D39,U+7D9A,U+89E3,U+8A00,U+8A73,U+8A8D,U+8A9E,U+8AAD,U+8ABF,U+8CEA,U+8ECA,U+8FFD,U+904B,U+9650,U+FF11-FF12}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.114.woff2)format("woff2");unicode-range:U+3E,U+3005,U+4E0D,U+4E88,U+4ECB,U+4EE3,U+4EF6,U+4FDD,U+4FE1,U+500B,U+50CF,U+5186,U+5316,U+53D7,U+540C,U+544A,U+54E1,U+5728,U+58F2,U+5973,U+5B89,U+5C71,U+5E02,U+5E97,U+5F15,U+5FC3,U+5FDC,U+601D,U+611B,U+611F,U+671F,U+6728,U+6765,U+683C,U+6B21,U+6CE8,U+6D3B,U+6D77,U+7530,U+7740,U+7ACB,U+7D50,U+826F,U+8F09,U+8FBC,U+9001,U+9053,U+91CE,U+9762,U+98DF}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.115.woff2)format("woff2");unicode-range:U+7C,U+3080,U+4EE5,U+5148,U+516C,U+521D,U+5225,U+529B,U+52A0,U+53EF,U+56DE,U+56FD,U+5909,U+591A,U+5B66,U+5B9F,U+5BB6,U+5BFE,U+5E73,U+5E83,U+5EA6,U+5F53,U+6027,U+610F,U+6210,U+6240,U+660E,U+66F4,U+66F8,U+6709,U+6771,U+697D,U+69D8,U+6A5F,U+6C34,U+6CBB,U+73FE,U+756A,U+7684,U+771F,U+793A,U+7F8E,U+898F,U+8A2D,U+8A71,U+8FD1,U+9078,U+9577,U+96FB,U+FF5E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.116.woff2)format("woff2");unicode-range:U+A9,U+3010-3011,U+30E2,U+4E0B,U+4ECA,U+4ED6,U+4ED8,U+4F53,U+4F5C,U+4F7F,U+53D6,U+540D,U+54C1,U+5730,U+5916,U+5B50,U+5C0F,U+5F8C,U+624B,U+6570,U+6587,U+6599,U+691C,U+696D,U+6CD5,U+7269,U+7279,U+7406,U+767A-767B,U+77E5,U+7D04,U+7D22,U+8005,U+80FD,U+81EA,U+8868,U+8981,U+89A7,U+901A,U+9023,U+90E8,U+91D1,U+9332,U+958B,U+96C6,U+9AD8,U+FF1A,U+FF1F}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.117.woff2)format("woff2");unicode-range:U+4E,U+A0,U+3000,U+300C-300D,U+4E00,U+4E0A,U+4E2D,U+4E8B,U+4EBA,U+4F1A,U+5165,U+5168,U+5185,U+51FA,U+5206,U+5229,U+524D,U+52D5,U+5408,U+554F,U+5831,U+5834,U+5927,U+5B9A,U+5E74,U+5F0F,U+60C5,U+65B0,U+65B9,U+6642,U+6700,U+672C,U+682A,U+6B63,U+6C17,U+7121,U+751F,U+7528,U+753B,U+76EE,U+793E,U+884C,U+898B,U+8A18,U+9593,U+95A2,U+FF01,U+FF08-FF09}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.118.woff2)format("woff2");unicode-range:U+21-22,U+27-2A,U+2C-3B,U+3F,U+41-4D,U+4F-5D,U+61-7B,U+7D,U+AB,U+AE,U+B2-B3,U+B7,U+BB,U+C9,U+CD,U+D6,U+D8,U+DC,U+E0-E5,U+E7-ED,U+EF,U+F1-F4,U+F6,U+F8,U+FA,U+FC-FD,U+103,U+14D,U+1B0,U+300-301,U+1EBF,U+1EC7,U+2013-2014,U+201C-201D,U+2039-203A,U+203C,U+2048-2049,U+2113,U+2122,U+65E5,U+6708,U+70B9}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6YnQCWXzO7W5-p9wTrkzI9ywX1Ff4zgPYcAW70.119.woff2)format("woff2");unicode-range:U+20,U+2027,U+3001-3002,U+3041-307F,U+3081-308F,U+3091-3093,U+3099-309A,U+309D-309E,U+30A1-30E1,U+30E3-30ED,U+30EF-30F0,U+30F2-30F4,U+30FB-30FE,U+FF0C,U+FF0E}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6omwqRfTHxT624.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Kiwi Maru;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6okQqRfTHxT624.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/kiwimaru/v19/R70YjykGkuuDep-hRg6onwqRfTHxTw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.0.woff2)format("woff2");unicode-range:U+25EE8,U+25F23,U+25F5C,U+25FD4,U+25FE0,U+25FFB,U+2600C,U+26017,U+26060,U+260ED,U+26222,U+2626A,U+26270,U+26286,U+2634C,U+26402,U+2667E,U+266B0,U+2671D,U+268DD,U+268EA,U+26951,U+2696F,U+26999,U+269DD,U+26A1E,U+26A58,U+26A8C,U+26AB7,U+26AFF,U+26C29,U+26C73,U+26C9E,U+26CDD,U+26E40,U+26E65,U+26F94,U+26FF6-26FF8,U+270F4,U+2710D,U+27139,U+273DA-273DB,U+273FE,U+27410,U+27449,U+27614-27615,U+27631,U+27684,U+27693,U+2770E,U+27723,U+27752,U+278B2,U+27985,U+279B4,U+27A84,U+27BB3,U+27BBE,U+27BC7,U+27C3C,U+27CB8,U+27D73,U+27DA0,U+27E10,U+27EAF,U+27FB7,U+2808A,U+280BB,U+28277,U+28282,U+282F3,U+283CD,U+2840C,U+28455,U+284DC,U+2856B,U+285C8-285C9,U+286D7,U+286FA,U+28946,U+28949,U+2896B,U+28987-28988,U+289BA-289BB,U+28A1E,U+28A29,U+28A43,U+28A71,U+28A99,U+28ACD,U+28ADD,U+28AE4,U+28BC1,U+28BEF,U+28CDD,U+28D10,U+28D71,U+28DFB,U+28E0F,U+28E17,U+28E1F,U+28E36,U+28E89,U+28EEB,U+28EF6,U+28F32,U+28FF8,U+292A0,U+292B1,U+29490,U+295CF,U+2967F,U+296F0,U+29719,U+29750,U+29810,U+298C6,U+29A72,U+29D4B,U+29DDB,U+29E15,U+29E3D,U+29E49,U+29E8A,U+29EC4,U+29EDB,U+29EE9,U+29FCE,U+29FD7,U+2A01A,U+2A02F,U+2A082,U+2A0F9,U+2A190,U+2A2B2,U+2A38C,U+2A437,U+2A5F1,U+2A602,U+2A61A,U+2A6B2,U+2A9E6,U+2B746,U+2B751,U+2B753,U+2B75A,U+2B75C,U+2B765,U+2B776-2B777,U+2B77C,U+2B782,U+2B789,U+2B78B,U+2B78E,U+2B794,U+2B7AC,U+2B7AF,U+2B7BD,U+2B7C9,U+2B7CF,U+2B7D2,U+2B7D8,U+2B7F0,U+2B80D,U+2B817,U+2B81A,U+2D544,U+2E278,U+2E569,U+2E6EA,U+2F804,U+2F80F,U+2F815,U+2F818,U+2F81A,U+2F822,U+2F828,U+2F82C,U+2F833,U+2F83F,U+2F846,U+2F852,U+2F862,U+2F86D,U+2F873,U+2F877,U+2F884,U+2F899-2F89A,U+2F8A6,U+2F8AC,U+2F8B2,U+2F8B6,U+2F8D3,U+2F8DB-2F8DC,U+2F8E1,U+2F8E5,U+2F8EA,U+2F8ED,U+2F8FC,U+2F903,U+2F90B,U+2F90F,U+2F91A,U+2F920-2F921,U+2F945,U+2F947,U+2F96C,U+2F995,U+2F9D0,U+2F9DE-2F9DF,U+2F9F4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.1.woff2)format("woff2");unicode-range:U+1F235-1F23B,U+1F240-1F248,U+1F250-1F251,U+2000B,U+20089-2008A,U+200A2,U+200A4,U+200B0,U+200F5,U+20158,U+201A2,U+20213,U+2032B,U+20371,U+20381,U+203F9,U+2044A,U+20509,U+2053F,U+205B1,U+205D6,U+20611,U+20628,U+206EC,U+2074F,U+207C8,U+20807,U+2083A,U+208B9,U+2090E,U+2097C,U+20984,U+2099D,U+20A64,U+20AD3,U+20B1D,U+20B9F,U+20BB7,U+20D45,U+20D58,U+20DE1,U+20E64,U+20E6D,U+20E95,U+20F5F,U+21201,U+2123D,U+21255,U+21274,U+2127B,U+212D7,U+212E4,U+212FD,U+2131B,U+21336,U+21344,U+213C4,U+2146D-2146E,U+215D7,U+21647,U+216B4,U+21706,U+21742,U+218BD,U+219C3,U+21A1A,U+21C56,U+21D2D,U+21D45,U+21D62,U+21D78,U+21D92,U+21D9C,U+21DA1,U+21DB7,U+21DE0,U+21E33-21E34,U+21F1E,U+21F76,U+21FFA,U+2217B,U+22218,U+2231E,U+223AD,U+22609,U+226F3,U+2285B,U+228AB,U+2298F,U+22AB8,U+22B46,U+22B4F-22B50,U+22BA6,U+22C1D,U+22C24,U+22DE1,U+22E42,U+22FEB,U+231B6,U+231C3-231C4,U+231F5,U+23372,U+233CC,U+233D0,U+233D2-233D3,U+233D5,U+233DA,U+233DF,U+233E4,U+233FE,U+2344A-2344B,U+23451,U+23465,U+234E4,U+2355A,U+23594,U+235C4,U+23638-2363A,U+23647,U+2370C,U+2371C,U+2373F,U+23763-23764,U+237E7,U+237F1,U+237FF,U+23824,U+2383D,U+23A98,U+23C7F,U+23CBE,U+23CFE,U+23D00,U+23D0E,U+23D40,U+23DD3,U+23DF9-23DFA,U+23F7E,U+2404B,U+24096,U+24103,U+241C6,U+241FE,U+242EE,U+243BC,U+243D0,U+24629,U+246A5,U+247F1,U+24896,U+248E9,U+24A4D,U+24B56,U+24B6F,U+24C16,U+24D14,U+24E04,U+24E0E,U+24E37,U+24E6A,U+24E8B,U+24FF2,U+2504A,U+25055,U+25122,U+251A9,U+251CD,U+251E5,U+2521E,U+2524C,U+2542E,U+2548E,U+254D9,U+2550E,U+255A7,U+2567F,U+25771,U+257A9,U+257B4,U+25874,U+259C4,U+259CC,U+259D4,U+25AD7,U+25AE3-25AE4,U+25AF1,U+25BB2,U+25C4B,U+25C64,U+25DA1,U+25E2E,U+25E56,U+25E62,U+25E65,U+25EC2,U+25ED8}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.2.woff2)format("woff2");unicode-range:U+FFD7,U+FFDA-FFDC,U+FFE0-FFE2,U+FFE4,U+FFE6,U+FFE8-FFEE,U+1F100-1F10C,U+1F110-1F16C,U+1F170-1F1AC,U+1F200-1F202,U+1F210-1F234}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.3.woff2)format("woff2");unicode-range:U+FA10,U+FA12-FA6D,U+FB00-FB04,U+FE10-FE19,U+FE30-FE42,U+FE44-FE52,U+FE54-FE66,U+FE68-FE6B,U+FF02,U+FF04,U+FF07,U+FF51,U+FF5B,U+FF5D,U+FF5F-FF60,U+FF66,U+FF69,U+FF87,U+FFA1-FFBE,U+FFC2-FFC7,U+FFCA-FFCF,U+FFD2-FFD6}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.5.woff2)format("woff2");unicode-range:U+9E8B-9E8C,U+9E8E-9E8F,U+9E91-9E92,U+9E95-9E96,U+9E98,U+9E9B,U+9E9D-9E9E,U+9EA4-9EA5,U+9EA8-9EAA,U+9EAC-9EB0,U+9EB3-9EB5,U+9EB8,U+9EBC-9EBF,U+9EC3,U+9EC6,U+9EC8,U+9ECB-9ECD,U+9ECF-9ED1,U+9ED4-9ED5,U+9ED8,U+9EDB-9EE0,U+9EE4-9EE5,U+9EE7-9EE8,U+9EEC-9EF2,U+9EF4-9EF9,U+9EFB-9EFF,U+9F02-9F03,U+9F07-9F09,U+9F0E-9F12,U+9F14-9F17,U+9F19-9F1B,U+9F1F-9F22,U+9F26,U+9F2A-9F2C,U+9F2F,U+9F31-9F32,U+9F34,U+9F37,U+9F39-9F3A,U+9F3C-9F3F,U+9F41,U+9F43-9F47,U+9F4A,U+9F4E-9F50,U+9F52-9F58,U+9F5A,U+9F5D-9F61,U+9F63,U+9F66-9F6A,U+9F6C-9F73,U+9F75-9F77,U+9F7A,U+9F7D,U+9F7F,U+9F8F-9F92,U+9F94-9F97,U+9F99,U+9F9C-9FA3,U+9FA5,U+9FB4,U+9FBC-9FC2,U+9FC4,U+9FC6,U+9FCC,U+F900-F92C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.6.woff2)format("woff2");unicode-range:U+9C3E,U+9C41,U+9C43-9C4A,U+9C4E-9C50,U+9C52-9C54,U+9C56,U+9C58,U+9C5A-9C61,U+9C63,U+9C65,U+9C67-9C6B,U+9C6D-9C6E,U+9C70,U+9C72,U+9C75-9C78,U+9C7A-9C7C,U+9CE6-9CE7,U+9CEB-9CEC,U+9CF0,U+9CF2,U+9CF6-9CF7,U+9CF9,U+9D02-9D03,U+9D06-9D09,U+9D0B,U+9D0E,U+9D11-9D12,U+9D15,U+9D17-9D18,U+9D1B-9D1F,U+9D23,U+9D26,U+9D2A-9D2C,U+9D2F-9D30,U+9D32-9D34,U+9D3A,U+9D3C-9D3F,U+9D41-9D48,U+9D4A,U+9D50-9D54,U+9D59,U+9D5D-9D65,U+9D69-9D6C,U+9D6F-9D70,U+9D72-9D73,U+9D76-9D77,U+9D7A-9D7C,U+9D7E,U+9D83-9D84,U+9D86-9D87,U+9D89-9D8A,U+9D8D-9D8E,U+9D92-9D93,U+9D95-9D9A,U+9DA1,U+9DA4,U+9DA9-9DAC,U+9DAE,U+9DB1-9DB2,U+9DB5,U+9DB8-9DBD,U+9DBF-9DC4,U+9DC6-9DC7,U+9DC9-9DCA,U+9DCF,U+9DD3-9DD7,U+9DD9-9DDA,U+9DDE-9DE0,U+9DE3,U+9DE5-9DE7,U+9DE9,U+9DEB,U+9DED-9DF0,U+9DF3-9DF4,U+9DF8,U+9DFD-9DFE,U+9E02,U+9E07,U+9E0A,U+9E0D-9E0E,U+9E10-9E12,U+9E15-9E16,U+9E19-9E1F,U+9E75,U+9E79-9E7D,U+9E80-9E85,U+9E87-9E88}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.7.woff2)format("woff2");unicode-range:U+9AE5-9AE7,U+9AE9,U+9AEB-9AEC,U+9AEE-9AEF,U+9AF1-9AF5,U+9AF7,U+9AF9-9AFB,U+9AFD,U+9AFF-9B06,U+9B08-9B09,U+9B0B-9B0E,U+9B10,U+9B12,U+9B16,U+9B18-9B1D,U+9B1F-9B20,U+9B22-9B23,U+9B25-9B2F,U+9B32-9B35,U+9B37,U+9B39-9B3B,U+9B3D,U+9B43-9B44,U+9B48,U+9B4B-9B4F,U+9B51,U+9B55-9B58,U+9B5B,U+9B5E,U+9B61,U+9B63,U+9B65-9B66,U+9B68,U+9B6A-9B6F,U+9B72-9B79,U+9B7F-9B80,U+9B83-9B87,U+9B89-9B8B,U+9B8D,U+9B8F-9B94,U+9B96-9B97,U+9B9A,U+9B9D-9BA0,U+9BA6-9BA7,U+9BA9-9BAA,U+9BAC,U+9BB0-9BB2,U+9BB4,U+9BB7-9BB9,U+9BBB-9BBC,U+9BBE-9BC1,U+9BC6-9BC8,U+9BCA,U+9BCE-9BD2,U+9BD4,U+9BD7-9BD8,U+9BDD,U+9BDF,U+9BE1-9BE5,U+9BE7,U+9BEA-9BEB,U+9BEE-9BF3,U+9BF5,U+9BF7-9BFA,U+9BFD,U+9BFF-9C00,U+9C02,U+9C04,U+9C06,U+9C08-9C0D,U+9C0F-9C16,U+9C18-9C1E,U+9C21-9C2A,U+9C2D-9C32,U+9C35-9C37,U+9C39-9C3A,U+9C3D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.8.woff2)format("woff2");unicode-range:U+98EB,U+98ED-98EE,U+98F0-98F1,U+98F3,U+98F6,U+9902,U+9907-9909,U+9911-9912,U+9914-9918,U+991A-9922,U+9924,U+9926-9927,U+992B-992C,U+992E,U+9931-9935,U+9939-993E,U+9940-9942,U+9945-9949,U+994B-994E,U+9950-9952,U+9954-9955,U+9958-9959,U+995B-995C,U+995E-9960,U+9963,U+9997-9998,U+999B,U+999D-999F,U+99A3,U+99A5-99A6,U+99A8,U+99AD-99AE,U+99B0-99B2,U+99B5,U+99B9-99BA,U+99BC-99BD,U+99BF,U+99C1,U+99C3,U+99C8-99C9,U+99D1,U+99D3-99D5,U+99D8-99DF,U+99E1-99E2,U+99E7,U+99EA-99EE,U+99F0-99F2,U+99F4-99F5,U+99F8-99F9,U+99FB-99FE,U+9A01-9A05,U+9A08,U+9A0A-9A0C,U+9A0F-9A11,U+9A16,U+9A1A,U+9A1E,U+9A20,U+9A22-9A24,U+9A27,U+9A2B,U+9A2D-9A2E,U+9A31,U+9A33,U+9A35-9A38,U+9A3E,U+9A40-9A45,U+9A47,U+9A4A-9A4E,U+9A51-9A52,U+9A54-9A58,U+9A5B,U+9A5D,U+9A5F,U+9A62,U+9A64-9A65,U+9A69-9A6C,U+9AAA,U+9AAC-9AB0,U+9AB2,U+9AB4-9AB7,U+9AB9,U+9ABB-9AC1,U+9AC3,U+9AC6,U+9AC8,U+9ACE-9AD3,U+9AD5-9AD7,U+9ADB-9ADC,U+9ADE-9AE0,U+9AE2-9AE4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.9.woff2)format("woff2");unicode-range:U+971D,U+9721-9724,U+9728,U+972A,U+9730-9731,U+9733,U+9736,U+9738-9739,U+973B,U+973D-973E,U+9741-9744,U+9746-974A,U+974D-974F,U+9751,U+9755,U+9757-9758,U+975A-975C,U+9760-9761,U+9763-9764,U+9766-9768,U+976A-976B,U+976E,U+9771,U+9773,U+9776-977D,U+977F-9781,U+9785-9786,U+9789,U+978B,U+978F-9790,U+9795-9797,U+9799-979A,U+979C,U+979E-97A0,U+97A2-97A3,U+97A6,U+97A8,U+97AB-97AC,U+97AE,U+97B1-97B6,U+97B8-97BA,U+97BC,U+97BE-97BF,U+97C1,U+97C3-97CE,U+97D0-97D1,U+97D4,U+97D7-97D9,U+97DB-97DE,U+97E0-97E1,U+97E4,U+97E6,U+97ED-97EF,U+97F1-97F2,U+97F4-97F8,U+97FA,U+9804,U+9807,U+980A,U+980C-980F,U+9814,U+9816-9817,U+9819-981A,U+981C,U+981E,U+9820-9821,U+9823-9826,U+982B,U+982E-9830,U+9832-9835,U+9837,U+9839,U+983D-983E,U+9844,U+9846-9847,U+984A-984B,U+984F,U+9851-9853,U+9856-9857,U+9859-985B,U+9862-9863,U+9865-9866,U+986A-986C,U+986F-9871,U+9873-9875,U+98AA-98AB,U+98AD-98AE,U+98B0-98B1,U+98B4,U+98B6-98B8,U+98BA-98BC,U+98BF,U+98C2-98C8,U+98CB-98CC,U+98CE,U+98DC,U+98DE,U+98E0-98E1,U+98E3,U+98E5-98E7,U+98E9-98EA}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.10.woff2)format("woff2");unicode-range:U+944A,U+944C,U+9452-9453,U+9455,U+9459-945C,U+945E-9463,U+9468,U+946A-946B,U+946D-9472,U+9475,U+9477,U+947C-947F,U+9481,U+9483-9485,U+9578-9579,U+957E-957F,U+9582,U+9584,U+9586-9588,U+958A,U+958C-958F,U+9592,U+9594,U+9596,U+9598-9599,U+959D-95A1,U+95A4,U+95A6-95A9,U+95AB-95AD,U+95B1,U+95B4,U+95B6,U+95B9-95BF,U+95C3,U+95C6,U+95C8-95CD,U+95D0-95D6,U+95D9-95DA,U+95DC-95E2,U+95E4-95E6,U+95E8,U+961D-961E,U+9621-9622,U+9624-9626,U+9628,U+962C,U+962E-962F,U+9631,U+9633-9634,U+9637-963A,U+963C-963D,U+9641-9642,U+964B-964C,U+964F,U+9652,U+9654,U+9656-9658,U+965C-965F,U+9661,U+9666,U+966A,U+966C,U+966E,U+9672,U+9674,U+9677,U+967B-967C,U+967E-967F,U+9681-9684,U+9689,U+968B,U+968D,U+9691,U+9695-9698,U+969A,U+969D,U+969F,U+96A4-96AA,U+96AE-96B4,U+96B6,U+96B8-96BB,U+96BD,U+96C1,U+96C9-96CB,U+96CD-96CE,U+96D2,U+96D5-96D6,U+96D8-96DA,U+96DC-96DF,U+96E9,U+96EF,U+96F1,U+96F9-96FA,U+9702-9706,U+9708-9709,U+970D-970F,U+9711,U+9713-9714,U+9716,U+9719-971B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.11.woff2)format("woff2");unicode-range:U+92BC-92BD,U+92BF-92C3,U+92C5-92C8,U+92CB-92D0,U+92D2-92D3,U+92D5,U+92D7-92D9,U+92DC-92DD,U+92DF-92E1,U+92E3-92E5,U+92E7-92EA,U+92EC,U+92EE,U+92F0,U+92F2,U+92F7-92FB,U+92FF-9300,U+9302,U+9304,U+9308,U+930D,U+930F-9311,U+9314-9315,U+9318-931A,U+931C-931F,U+9321-9325,U+9327-932B,U+932E,U+9333-9337,U+933A-933B,U+9344,U+9347-934A,U+934D,U+9350-9352,U+9354-9358,U+935A,U+935C,U+935E,U+9360,U+9364-9365,U+9367,U+9369-936D,U+936F-9371,U+9373-9374,U+9376,U+937A,U+937D-9382,U+9388,U+938A-938B,U+938D,U+938F,U+9392,U+9394-9395,U+9397-9398,U+939A-939B,U+939E,U+93A1,U+93A3-93A4,U+93A6,U+93A8-93A9,U+93AB-93AD,U+93B0,U+93B4-93B6,U+93B9-93BB,U+93C1,U+93C3-93CD,U+93D0-93D1,U+93D3,U+93D6-93D9,U+93DC-93DF,U+93E2,U+93E4-93E8,U+93F1,U+93F5,U+93F7-93FB,U+93FD,U+9401-9404,U+9407-9409,U+940D-9410,U+9413-9417,U+9419-941A,U+941F,U+9421,U+942B,U+942E-942F,U+9431-9434,U+9436,U+9438,U+943A-943B,U+943D,U+943F,U+9441,U+9443-9445,U+9448}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.12.woff2)format("woff2");unicode-range:U+9143,U+9146-914C,U+914F,U+9153,U+9156-915B,U+9161,U+9163-9165,U+9167,U+9169,U+916D,U+9172-9174,U+9179-917B,U+9181-9183,U+9185-9187,U+9189-918B,U+918E,U+9191,U+9193-9195,U+9197-9198,U+919E,U+91A1-91A2,U+91A6,U+91A8,U+91AA-91B6,U+91BA-91BD,U+91BF-91C6,U+91C9,U+91CB,U+91D0,U+91D3-91D4,U+91D6-91D7,U+91D9-91DB,U+91DE-91DF,U+91E1,U+91E4-91E6,U+91E9-91EA,U+91EC-91F1,U+91F5-91F7,U+91F9,U+91FB-91FD,U+91FF-9201,U+9204-9207,U+9209-920A,U+920C,U+920E,U+9210-9218,U+921C-921E,U+9223-9226,U+9228-9229,U+922C,U+922E-9230,U+9233,U+9235-923A,U+923C,U+923E-9240,U+9242-9243,U+9245-924B,U+924D-9251,U+9256-925A,U+925C-925E,U+9260-9261,U+9264-9269,U+926E-9270,U+9275-9279,U+927B-927F,U+9288-928A,U+928D-928E,U+9291-9293,U+9295-9297,U+9299,U+929B-929C,U+929F-92A0,U+92A4-92A5,U+92A7-92A8,U+92AB,U+92AF,U+92B2-92B3,U+92B6-92BB}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.13.woff2)format("woff2");unicode-range:U+8F52-8F55,U+8F57-8F58,U+8F5C-8F5E,U+8F61-8F66,U+8F9C-8F9D,U+8F9F-8FA2,U+8FA4-8FA8,U+8FAD-8FAF,U+8FB4-8FB8,U+8FBE,U+8FC0-8FC2,U+8FC6,U+8FC8,U+8FCA-8FCB,U+8FCD,U+8FD0,U+8FD2-8FD3,U+8FD5,U+8FDA,U+8FE0,U+8FE2-8FE5,U+8FE8-8FEA,U+8FED-8FEF,U+8FF1,U+8FF4-8FF6,U+8FF8-8FFB,U+8FFE,U+9002,U+9004-9005,U+9008,U+900B-900E,U+9011,U+9013,U+9015-9016,U+9018,U+901B,U+901E,U+9021,U+9027-902A,U+902C-902D,U+902F,U+9033-9037,U+9039,U+903C,U+903E-903F,U+9041,U+9043-9044,U+9049,U+904C,U+904F-9052,U+9056,U+9058,U+905B-905E,U+9062,U+9066-9068,U+906C,U+906F-9070,U+9072,U+9074,U+9076,U+9079,U+9080-9083,U+9085,U+9087-9088,U+908B-908C,U+908E-9090,U+9095,U+9097-9099,U+909B,U+90A0-90A2,U+90A5,U+90A8,U+90AF-90B6,U+90BD-90BE,U+90C3-90C5,U+90C7-90C9,U+90CC,U+90D2,U+90D5,U+90D7-90D9,U+90DB-90DF,U+90E2,U+90E4-90E5,U+90EB,U+90EF-90F0,U+90F2,U+90F4,U+90F6,U+90FE-9100,U+9102,U+9104-9106,U+9108,U+910D,U+9110,U+9112,U+9114-911A,U+911C,U+911E,U+9120,U+9122-9123,U+9125,U+9127,U+9129,U+912D-9132,U+9134,U+9136-9137,U+9139-913A,U+913C-913D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.14.woff2)format("woff2");unicode-range:U+8DC0,U+8DC2,U+8DC5-8DC8,U+8DCA-8DCC,U+8DCE-8DCF,U+8DD1,U+8DD4-8DD7,U+8DD9-8DDB,U+8DDF,U+8DE3-8DE5,U+8DE7,U+8DEA-8DEC,U+8DF0-8DF2,U+8DF4,U+8DFC-8DFD,U+8DFF,U+8E01,U+8E04-8E06,U+8E08-8E09,U+8E0B-8E0C,U+8E10-8E11,U+8E14,U+8E16,U+8E1D-8E23,U+8E26-8E27,U+8E30-8E31,U+8E33-8E39,U+8E3D,U+8E40-8E42,U+8E44,U+8E47-8E50,U+8E54-8E55,U+8E59,U+8E5B-8E64,U+8E69,U+8E6C-8E6D,U+8E6F-8E72,U+8E75-8E77,U+8E79-8E7C,U+8E81-8E85,U+8E89,U+8E8B,U+8E90-8E95,U+8E98-8E9B,U+8E9D-8E9E,U+8EA1-8EA2,U+8EA7,U+8EA9-8EAA,U+8EAC-8EB1,U+8EB3,U+8EB5-8EB6,U+8EBA-8EBB,U+8EBE,U+8EC0-8EC1,U+8EC3-8EC8,U+8ECB,U+8ECF,U+8ED1,U+8ED4,U+8EDB-8EDC,U+8EE3,U+8EE8,U+8EEB,U+8EED-8EEE,U+8EF0-8EF1,U+8EF7,U+8EF9-8EFC,U+8EFE,U+8F00,U+8F02,U+8F05,U+8F07-8F08,U+8F0A,U+8F0F-8F10,U+8F12-8F13,U+8F15-8F19,U+8F1B-8F1C,U+8F1E-8F21,U+8F23,U+8F25-8F28,U+8F2B-8F2F,U+8F33-8F37,U+8F39-8F3B,U+8F3E,U+8F40-8F43,U+8F45-8F47,U+8F49-8F4A,U+8F4C-8F4F,U+8F51}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.15.woff2)format("woff2");unicode-range:U+8B2D,U+8B30,U+8B37,U+8B3C,U+8B3E,U+8B41-8B46,U+8B48-8B49,U+8B4C-8B4F,U+8B51-8B54,U+8B56,U+8B59,U+8B5B,U+8B5E-8B5F,U+8B63,U+8B69,U+8B6B-8B6D,U+8B6F,U+8B71,U+8B74,U+8B76,U+8B78-8B79,U+8B7C-8B81,U+8B84-8B85,U+8B8A-8B8F,U+8B92-8B96,U+8B99-8B9A,U+8B9C-8BA0,U+8C38-8C3A,U+8C3D-8C3F,U+8C41,U+8C45,U+8C47-8C49,U+8C4B-8C4C,U+8C4E-8C51,U+8C53-8C55,U+8C57-8C59,U+8C5B,U+8C5D,U+8C62-8C64,U+8C66,U+8C68-8C69,U+8C6B-8C6D,U+8C73,U+8C75-8C76,U+8C78,U+8C7A-8C7C,U+8C7E,U+8C82,U+8C85-8C87,U+8C89-8C8B,U+8C8D-8C8E,U+8C90,U+8C92-8C94,U+8C98-8C99,U+8C9B-8C9C,U+8C9F,U+8CA4,U+8CAD-8CAE,U+8CB2-8CB3,U+8CB6,U+8CB9-8CBA,U+8CBD,U+8CC1-8CC2,U+8CC4-8CC6,U+8CC8-8CC9,U+8CCB,U+8CCD-8CCF,U+8CD2,U+8CD5-8CD6,U+8CD9-8CDA,U+8CDD,U+8CE1,U+8CE3-8CE4,U+8CE6,U+8CE8,U+8CEC,U+8CEF-8CF2,U+8CF4-8CF5,U+8CF7-8CF8,U+8CFA-8CFB,U+8CFD-8CFF,U+8D01,U+8D03-8D04,U+8D07,U+8D09-8D0B,U+8D0D-8D10,U+8D12-8D14,U+8D16-8D17,U+8D1B-8D1D,U+8D65,U+8D67,U+8D69,U+8D6B-8D6E,U+8D71,U+8D73,U+8D76,U+8D7F,U+8D81-8D82,U+8D84,U+8D88,U+8D8D,U+8D90-8D91,U+8D95,U+8D99,U+8D9E-8DA0,U+8DA6,U+8DA8,U+8DAB-8DAC,U+8DAF,U+8DB2,U+8DB5,U+8DB7,U+8DB9-8DBC,U+8DBE}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.16.woff2)format("woff2");unicode-range:U+8973-8975,U+8977,U+897A-897E,U+8980,U+8983,U+8988-898A,U+898D,U+8990,U+8993-8995,U+8998,U+899B-899C,U+899F-89A1,U+89A5-89A6,U+89A9,U+89AC,U+89AF-89B0,U+89B2,U+89B4-89B7,U+89BA,U+89BC-89BD,U+89BF-89C1,U+89D4-89D8,U+89DA,U+89DC-89DD,U+89E5,U+89E7,U+89E9,U+89EB,U+89ED,U+89F1,U+89F3-89F4,U+89F6,U+89F8-89F9,U+89FD,U+89FF,U+8A01,U+8A04-8A05,U+8A07,U+8A0C,U+8A0F-8A12,U+8A14-8A16,U+8A1B,U+8A1D-8A1E,U+8A20-8A22,U+8A24-8A26,U+8A2B-8A2C,U+8A2F,U+8A35-8A37,U+8A3B,U+8A3D-8A3E,U+8A40-8A41,U+8A43,U+8A45-8A49,U+8A4D-8A4E,U+8A51-8A54,U+8A56-8A58,U+8A5B-8A5D,U+8A61-8A62,U+8A65,U+8A67,U+8A6C-8A6D,U+8A75-8A77,U+8A79-8A7C,U+8A7E-8A80,U+8A82-8A86,U+8A8B,U+8A8F-8A92,U+8A96-8A97,U+8A99-8A9A,U+8A9F,U+8AA1,U+8AA3,U+8AA5-8AAA,U+8AAE-8AAF,U+8AB3,U+8AB6-8AB7,U+8ABB-8ABC,U+8ABE,U+8AC2-8AC4,U+8AC6,U+8AC8-8ACA,U+8ACC-8ACD,U+8AD0-8AD1,U+8AD3-8AD5,U+8AD7,U+8ADA-8AE2,U+8AE4,U+8AE7,U+8AEB-8AEC,U+8AEE,U+8AF0-8AF1,U+8AF3-8AF7,U+8AFA,U+8AFC,U+8AFF,U+8B01-8B02,U+8B04-8B07,U+8B0A-8B0D,U+8B0F-8B11,U+8B14,U+8B16,U+8B1A,U+8B1C,U+8B1E-8B20,U+8B26,U+8B28,U+8B2B-8B2C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.17.woff2)format("woff2");unicode-range:U+87E2-87E6,U+87EA-87ED,U+87EF,U+87F1,U+87F3,U+87F5-87F8,U+87FA-87FB,U+87FE-87FF,U+8801,U+8803,U+8805-8807,U+8809-880B,U+880D-8816,U+8818-881C,U+881E-881F,U+8821-8822,U+8827-8828,U+882D-882E,U+8830-8832,U+8835-8836,U+8839-883C,U+8841-8845,U+8848-884B,U+884D-884E,U+8851-8852,U+8855-8856,U+8858-885A,U+885C,U+885E-8860,U+8862,U+8864,U+8869,U+886B,U+886E-886F,U+8871-8872,U+8875,U+8877,U+8879,U+887B,U+887D-887E,U+8880-8882,U+8888,U+888D,U+8892,U+8897-889C,U+889E-88A0,U+88A2,U+88A4,U+88A8,U+88AA,U+88AE,U+88B0-88B1,U+88B5,U+88B7,U+88BA,U+88BC-88C0,U+88C3-88C4,U+88C6,U+88CA-88CE,U+88D1-88D4,U+88D8-88D9,U+88DB,U+88DD-88E1,U+88E7-88E8,U+88EF-88F2,U+88F4-88F5,U+88F7,U+88F9,U+88FC,U+8901-8902,U+8904,U+8906,U+890A,U+890C-890F,U+8913,U+8915-8916,U+8918-891A,U+891C-891E,U+8920,U+8925-8928,U+892A-892B,U+8930-8932,U+8935-893B,U+893E,U+8940-8946,U+8949,U+894C-894D,U+894F,U+8952,U+8956-8957,U+895A-895C,U+895E,U+8960-8964,U+8966,U+896A-896B,U+896D-8970}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.18.woff2)format("woff2");unicode-range:U+8655-8659,U+865B,U+865D-8664,U+8667,U+8669,U+866C,U+866F,U+8671,U+8675-8677,U+867A-867B,U+867D,U+8687-8689,U+868B-868D,U+8691,U+8693,U+8695-8696,U+8698,U+869A,U+869C-869D,U+86A1,U+86A3-86A4,U+86A6-86AB,U+86AD,U+86AF-86B1,U+86B3-86B9,U+86BF-86C1,U+86C3-86C6,U+86C9,U+86CB,U+86CE,U+86D1-86D2,U+86D4-86D5,U+86D7,U+86DA,U+86DC,U+86DE-86E0,U+86E3-86E7,U+86E9,U+86EC-86ED,U+86EF,U+86F8-86FE,U+8700,U+8703-870B,U+870D-8714,U+8719-871A,U+871E-871F,U+8721-8723,U+8725,U+8728-8729,U+872E-872F,U+8731-8732,U+8734,U+8737,U+8739-8740,U+8743,U+8745,U+8749,U+874B-874E,U+8751,U+8753,U+8755,U+8757-8759,U+875D,U+875F-8761,U+8763-8766,U+8768,U+876A,U+876E-876F,U+8771-8772,U+8774,U+8778,U+877B-877C,U+877F,U+8782-8789,U+878B-878C,U+878E,U+8790,U+8793,U+8795,U+8797-8799,U+879E-87A0,U+87A2-87A3,U+87A7,U+87AB-87AF,U+87B1,U+87B3,U+87B5,U+87BB,U+87BD-87C1,U+87C4,U+87C6-87CB,U+87CE,U+87D0,U+87D2,U+87D5-87D6,U+87D9-87DA,U+87DC,U+87DF-87E0}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.19.woff2)format("woff2");unicode-range:U+84B4,U+84B9-84BB,U+84BD-84C2,U+84C6-84CA,U+84CC-84D1,U+84D3,U+84D6,U+84D9-84DA,U+84DC,U+84E7,U+84EA,U+84EC,U+84EF-84F2,U+84F4,U+84F7,U+84FA-84FD,U+84FF-8500,U+8502-8503,U+8506-8507,U+850C,U+850E,U+8510,U+8514-8515,U+8517-8518,U+851A-851C,U+851E-851F,U+8521-8525,U+8527,U+852A-852C,U+852F,U+8532-8534,U+8536,U+853E-8541,U+8543,U+8546,U+8548,U+854A-854B,U+854F-8553,U+8555-855A,U+855C-8564,U+8569-856B,U+856D,U+856F,U+8577,U+8579-857B,U+857D-8581,U+8585-8586,U+8588-858C,U+858F-8591,U+8593,U+8597-8598,U+859B-859D,U+859F-85A0,U+85A2,U+85A4-85A5,U+85A7-85A8,U+85AD-85B0,U+85B4,U+85B6-85BA,U+85BC-85BF,U+85C1-85C2,U+85C7,U+85C9-85CB,U+85CE-85D0,U+85D5,U+85D8-85DA,U+85DC,U+85DF-85E1,U+85E5-85E6,U+85E8,U+85ED,U+85F3-85F4,U+85F6-85F7,U+85F9-85FA,U+85FC,U+85FE-8600,U+8602,U+8604-8606,U+860A-860B,U+860D-860E,U+8610-8613,U+8616-861B,U+861E,U+8621-8622,U+8624,U+8627,U+8629,U+862F-8630,U+8636,U+8638-863A,U+863C-863D,U+863F-8642,U+8646,U+864D,U+8652-8654}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.20.woff2)format("woff2");unicode-range:U+82E8,U+82EA,U+82ED,U+82EF,U+82F3-82F4,U+82F6-82F7,U+82F9,U+82FB,U+82FD-82FE,U+8300-8301,U+8303,U+8306-8308,U+830A-830C,U+8316-8318,U+831B,U+831D-831F,U+8321-8323,U+832B-8335,U+8337,U+833A,U+833C-833D,U+8340,U+8342-8347,U+834A,U+834D-8351,U+8353-8357,U+835A,U+8362-8363,U+8370,U+8373,U+8375,U+8378,U+837C-837D,U+837F-8380,U+8382,U+8384-8387,U+838A,U+838D-838E,U+8392-8396,U+8398-83A0,U+83A2,U+83A6-83AD,U+83B1,U+83B5,U+83BD-83C1,U+83C7,U+83C9,U+83CE-83D1,U+83D4,U+83D6,U+83D8,U+83DD,U+83DF-83E1,U+83E5,U+83E8,U+83EA-83EB,U+83F0,U+83F2,U+83F4,U+83F6-83F9,U+83FB-83FD,U+8401,U+8403-8404,U+8406-8407,U+840A-840B,U+840D,U+840F,U+8411,U+8413,U+8415,U+8417,U+8419,U+8420,U+8422,U+842A,U+842F,U+8431,U+8435,U+8438-8439,U+843C,U+8445-8448,U+844A,U+844D-844F,U+8451-8452,U+8456,U+8458-845A,U+845C,U+845F-8462,U+8464-8467,U+8469-846B,U+846D-8470,U+8473-8474,U+8476-847A,U+847C-847D,U+8481-8482,U+8484-8485,U+848B,U+8490,U+8492-8493,U+8495,U+8497,U+849C,U+849E-849F,U+84A1,U+84A6,U+84A8-84AA,U+84AD,U+84AF,U+84B1}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.21.woff2)format("woff2");unicode-range:U+814A,U+814C,U+8151-8153,U+8157,U+815F-8161,U+8165-8169,U+816D-816F,U+8171,U+8173-8174,U+8177,U+8180-8186,U+8188,U+818A-818B,U+818E,U+8190,U+8193,U+8195-8196,U+8198,U+819B,U+819E,U+81A0,U+81A2,U+81A4,U+81A9,U+81AE,U+81B0,U+81B2,U+81B4-81B5,U+81B8,U+81BA-81BB,U+81BD-81BE,U+81C0-81C3,U+81C5-81C6,U+81C8-81CB,U+81CD-81CF,U+81D1,U+81D5-81DB,U+81DD-81E1,U+81E4-81E5,U+81E7,U+81EB-81EC,U+81EF-81F2,U+81F5-81F6,U+81F8-81FB,U+81FD-8205,U+8209-820B,U+820D,U+820F,U+8212-8214,U+8216,U+8219-821D,U+8221-8222,U+8228-8229,U+822B,U+822E,U+8232-8235,U+8237-8238,U+823A,U+823C,U+8240,U+8243-8246,U+8249,U+824B,U+824E-824F,U+8251,U+8256-825A,U+825C-825D,U+825F-8260,U+8262-8264,U+8267-8268,U+826A-826B,U+826D-826E,U+8271,U+8274,U+8277,U+8279,U+827B,U+827D-8281,U+8283-8284,U+8287,U+8289-828A,U+828D-828E,U+8291-8294,U+8296,U+8298-829B,U+829F-82A1,U+82A3-82A4,U+82A7-82AC,U+82AE,U+82B0,U+82B2,U+82B4,U+82B7,U+82BA-82BC,U+82BE-82BF,U+82C5-82C6,U+82D0,U+82D2-82D3,U+82D5,U+82D9-82DA,U+82DC,U+82DE-82E4,U+82E7}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.22.woff2)format("woff2");unicode-range:U+7F77-7F79,U+7F7D-7F80,U+7F82-7F83,U+7F86-7F88,U+7F8B-7F8D,U+7F8F-7F91,U+7F94,U+7F96-7F97,U+7F9A,U+7F9C-7F9D,U+7FA1-7FA3,U+7FA6,U+7FAA,U+7FAD-7FAF,U+7FB2,U+7FB4,U+7FB6,U+7FB8-7FB9,U+7FBC,U+7FBF-7FC0,U+7FC3,U+7FC5-7FC6,U+7FC8,U+7FCA,U+7FCE-7FCF,U+7FD5,U+7FDB,U+7FDF,U+7FE1,U+7FE3,U+7FE5-7FE6,U+7FE8-7FE9,U+7FEB-7FEC,U+7FEE-7FF0,U+7FF2-7FF3,U+7FF9-7FFA,U+7FFD-7FFF,U+8002,U+8004,U+8006-8008,U+800A-800F,U+8011-8014,U+8016,U+8018-8019,U+801C-8021,U+8024,U+8026,U+8028,U+802C,U+802E,U+8030,U+8034-8035,U+8037,U+8039-8040,U+8043-8044,U+8046,U+804A,U+8052,U+8058,U+805A,U+805F-8060,U+8062,U+8064,U+8066,U+8068,U+806D,U+806F-8073,U+8075-8076,U+8079,U+807B,U+807D-8081,U+8084-8088,U+808B,U+808E,U+8093,U+8099-809A,U+809C,U+809E,U+80A4,U+80A6-80A7,U+80AB-80AD,U+80B1,U+80B8-80B9,U+80C4-80C5,U+80C8,U+80CA,U+80CD,U+80CF,U+80D2,U+80D4-80DB,U+80DD,U+80E0,U+80E4-80E6,U+80ED-80F3,U+80F5-80F7,U+80F9-80FC,U+80FE,U+8101,U+8103,U+8109,U+810B,U+810D,U+8116-8118,U+811B-811C,U+811E,U+8120,U+8123-8124,U+8127,U+8129,U+812B-812C,U+812F-8130,U+8135,U+8139-813A,U+813C-813E,U+8141,U+8145-8147}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.23.woff2)format("woff2");unicode-range:U+7D57,U+7D59-7D5D,U+7D63,U+7D65,U+7D67,U+7D6A,U+7D6E,U+7D70,U+7D72-7D73,U+7D78,U+7D7A-7D7B,U+7D7D,U+7D7F,U+7D81-7D83,U+7D85-7D86,U+7D88-7D89,U+7D8B-7D8D,U+7D8F,U+7D91,U+7D93,U+7D96-7D97,U+7D9B-7DA0,U+7DA2-7DA3,U+7DA6-7DA7,U+7DAA-7DAC,U+7DAE-7DB0,U+7DB3,U+7DB5-7DB9,U+7DBD,U+7DC0,U+7DC2-7DC7,U+7DCC-7DCE,U+7DD0,U+7DD5-7DD9,U+7DDC-7DDE,U+7DE1-7DE6,U+7DEA-7DED,U+7DF1-7DF2,U+7DF5-7DF6,U+7DF9-7DFA,U+7E00,U+7E05,U+7E08-7E0B,U+7E10-7E12,U+7E15,U+7E17,U+7E1C-7E1D,U+7E1F-7E23,U+7E27-7E28,U+7E2C-7E2D,U+7E2F,U+7E31-7E33,U+7E35-7E37,U+7E39-7E3B,U+7E3D,U+7E3F,U+7E43-7E48,U+7E4E,U+7E50,U+7E52,U+7E56,U+7E58-7E5A,U+7E5D-7E5F,U+7E61-7E62,U+7E65-7E67,U+7E69-7E6B,U+7E6D-7E6F,U+7E73,U+7E75,U+7E78-7E79,U+7E7B-7E7F,U+7E81-7E83,U+7E86-7E8A,U+7E8C-7E8E,U+7E90-7E96,U+7E98,U+7E9A-7E9F,U+7F38,U+7F3A-7F3F,U+7F43-7F45,U+7F47,U+7F4C-7F50,U+7F52-7F55,U+7F58,U+7F5B-7F5D,U+7F5F,U+7F61,U+7F63-7F69,U+7F6B,U+7F6D,U+7F71}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.24.woff2)format("woff2");unicode-range:U+7BC8,U+7BCA-7BCC,U+7BCF,U+7BD4,U+7BD6-7BD7,U+7BD9-7BDB,U+7BDD,U+7BE5-7BE6,U+7BE8-7BEA,U+7BF0,U+7BF2-7BFA,U+7BFC,U+7BFE,U+7C00-7C04,U+7C06-7C07,U+7C09,U+7C0B-7C0F,U+7C11-7C14,U+7C17,U+7C19,U+7C1B,U+7C1E-7C20,U+7C23,U+7C25-7C28,U+7C2A-7C2C,U+7C2F,U+7C31,U+7C33-7C34,U+7C36-7C3A,U+7C3D-7C3E,U+7C40,U+7C42-7C43,U+7C45-7C46,U+7C4A,U+7C4C,U+7C4F-7C5F,U+7C61,U+7C63-7C65,U+7C67,U+7C69,U+7C6C-7C70,U+7C72,U+7C75,U+7C79,U+7C7B-7C7E,U+7C81-7C83,U+7C86-7C87,U+7C8D,U+7C8F-7C90,U+7C94,U+7C9E,U+7CA0-7CA2,U+7CA4-7CA6,U+7CA8,U+7CAB,U+7CAD-7CAE,U+7CB0-7CB3,U+7CB6-7CB7,U+7CB9-7CBD,U+7CBF-7CC0,U+7CC2,U+7CC4-7CC5,U+7CC7-7CCA,U+7CCD-7CCF,U+7CD2-7CD5,U+7CD7-7CDA,U+7CDC-7CDD,U+7CDF-7CE0,U+7CE2,U+7CE6,U+7CE9,U+7CEB,U+7CEF,U+7CF2,U+7CF4-7CF6,U+7CF9-7CFA,U+7CFE,U+7D02-7D03,U+7D06-7D0A,U+7D0F,U+7D11-7D13,U+7D15-7D16,U+7D1C-7D1E,U+7D23,U+7D26,U+7D2A,U+7D2C-7D2E,U+7D31-7D32,U+7D35,U+7D3C-7D41,U+7D43,U+7D45,U+7D47-7D48,U+7D4B,U+7D4D-7D4F,U+7D51,U+7D53,U+7D55-7D56}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.25.woff2)format("woff2");unicode-range:U+7A17-7A19,U+7A1B,U+7A1E-7A21,U+7A27,U+7A2B,U+7A2D,U+7A2F-7A31,U+7A34-7A35,U+7A37-7A3B,U+7A3E,U+7A43-7A49,U+7A4C,U+7A4E,U+7A50,U+7A55-7A57,U+7A59,U+7A5C-7A5D,U+7A5F-7A63,U+7A65,U+7A67,U+7A69-7A6A,U+7A6D,U+7A70,U+7A75,U+7A78-7A79,U+7A7D-7A7E,U+7A80,U+7A82,U+7A84-7A86,U+7A88,U+7A8A-7A8B,U+7A90-7A91,U+7A94-7A98,U+7A9E,U+7AA0,U+7AA3,U+7AA9,U+7AAC,U+7AB0,U+7AB3,U+7AB5-7AB6,U+7AB9-7ABF,U+7AC3,U+7AC5-7ACA,U+7ACC-7ACF,U+7AD1-7AD3,U+7AD5,U+7ADA-7ADB,U+7ADD,U+7ADF,U+7AE1-7AE2,U+7AE6-7AED,U+7AF0-7AF1,U+7AF4,U+7AF8,U+7AFA-7AFB,U+7AFD-7AFE,U+7B02,U+7B04,U+7B06-7B08,U+7B0A-7B0B,U+7B0F,U+7B12,U+7B14,U+7B18-7B19,U+7B1E-7B1F,U+7B23,U+7B25,U+7B27-7B2B,U+7B2D-7B31,U+7B33-7B36,U+7B3B,U+7B3D,U+7B3F-7B41,U+7B45,U+7B47,U+7B4C-7B50,U+7B53,U+7B55,U+7B5D,U+7B60,U+7B64-7B66,U+7B69-7B6A,U+7B6C-7B75,U+7B77,U+7B79-7B7A,U+7B7F,U+7B84,U+7B86,U+7B89,U+7B8D-7B92,U+7B96,U+7B98-7BA0,U+7BA5,U+7BAC-7BAD,U+7BAF-7BB0,U+7BB2,U+7BB4-7BB6,U+7BBA-7BBD,U+7BC1-7BC2,U+7BC5-7BC6}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.26.woff2)format("woff2");unicode-range:U+7851-7852,U+785C,U+785E,U+7860-7861,U+7863-7864,U+7868,U+786A,U+786E-786F,U+7872,U+7874,U+787A,U+787C,U+787E,U+7886-7887,U+788A,U+788C-788F,U+7893-7895,U+7898,U+789A,U+789D-789F,U+78A1,U+78A3-78A4,U+78A8-78AA,U+78AC-78AD,U+78AF-78B3,U+78B5,U+78BB-78BF,U+78C5-78CC,U+78CE,U+78D1-78D6,U+78DA-78DB,U+78DF-78E1,U+78E4,U+78E6-78E7,U+78EA,U+78EC,U+78F2-78F4,U+78F6-78F7,U+78F9-78FB,U+78FD-7901,U+7906-7907,U+790C,U+7910-7912,U+7919-791C,U+791E-7920,U+7925-792E,U+7930-7931,U+7934-7935,U+793B,U+793D,U+793F,U+7941-7942,U+7944-7946,U+794A-794B,U+794F,U+7951,U+7954-7955,U+7957-7958,U+795A-795C,U+795F-7960,U+7962,U+7967,U+7969,U+796B,U+7972,U+7977,U+7979-797C,U+797E-7980,U+798A-798E,U+7991,U+7993-7996,U+7998,U+799B-799D,U+79A1,U+79A6-79AB,U+79AE-79B1,U+79B3-79B4,U+79B8-79BB,U+79BD-79BE,U+79C2,U+79C4,U+79C7-79CA,U+79CC-79CD,U+79CF,U+79D4-79D6,U+79DA,U+79DD-79E3,U+79E5,U+79E7,U+79EA-79ED,U+79F1,U+79F8,U+79FC,U+7A02-7A03,U+7A05,U+7A07-7A0A,U+7A0C-7A0D,U+7A11,U+7A15}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.27.woff2)format("woff2");unicode-range:U+768C-768E,U+7690,U+7693,U+7695-7696,U+7699-76A8,U+76AA,U+76AD,U+76AF-76B0,U+76B4,U+76B6-76BA,U+76BD,U+76C1-76C3,U+76C5,U+76C8-76C9,U+76CB-76CE,U+76D2,U+76D4,U+76D6,U+76D9,U+76DC,U+76DE,U+76E0-76E1,U+76E5-76E8,U+76EA-76EC,U+76F0-76F1,U+76F6,U+76F9,U+76FB-76FC,U+7700,U+7704,U+7706-7708,U+770A,U+770E,U+7712,U+7714-7715,U+7717,U+7719-771C,U+7722,U+7724-7726,U+7728,U+772D-772F,U+7734-7739,U+773D-773E,U+7742,U+7745-7747,U+774A,U+774D-774F,U+7752,U+7756-7758,U+775A-775C,U+775E-7760,U+7762,U+7764-7765,U+7767,U+776A-776C,U+7770,U+7772-7774,U+7779-777A,U+777C-7780,U+7784,U+778B-778E,U+7794-7796,U+779A,U+779E-77A0,U+77A2,U+77A4-77A5,U+77A7,U+77A9-77AA,U+77AE-77B1,U+77B5-77B7,U+77B9,U+77BB-77BF,U+77C3,U+77C7,U+77C9,U+77CD,U+77D1-77D2,U+77D5,U+77D7,U+77D9-77DA,U+77DC,U+77DE-77E0,U+77E3-77E4,U+77E6-77E7,U+77E9-77EA,U+77EC,U+77EE,U+77F0-77F1,U+77F4,U+77F8,U+77FB-77FC,U+7805-7806,U+7809,U+780C-780E,U+7811-7812,U+7819,U+781D,U+7820-7823,U+7826-7827,U+782C-782E,U+7830,U+7835,U+7837,U+783A,U+783F,U+7843-7845,U+7847-7848,U+784C,U+784E-784F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.28.woff2)format("woff2");unicode-range:U+7511-7513,U+7515-7517,U+751C,U+751E,U+7520-7522,U+7524,U+7526-7527,U+7529-752C,U+752F,U+7536,U+7538-7539,U+753C-7540,U+7543-7544,U+7546-754B,U+754D-7550,U+7552,U+7557,U+755A-755B,U+755D-755F,U+7561-7562,U+7564,U+7566-7567,U+7569,U+756B-756D,U+756F,U+7571-7572,U+7574-757E,U+7581-7582,U+7585-7587,U+7589-758C,U+758F-7590,U+7592-7595,U+7599-759A,U+759C-759D,U+75A2-75A5,U+75B0-75B1,U+75B3-75B5,U+75B7-75B8,U+75BA,U+75BD,U+75BF-75C4,U+75C6,U+75CA,U+75CC-75CF,U+75D3-75D4,U+75D7-75D8,U+75DC-75E1,U+75E3-75E4,U+75E7,U+75EC,U+75EE-75F3,U+75F9,U+75FC,U+75FE-7604,U+7607-760C,U+760F,U+7612-7613,U+7615-7616,U+7618-7619,U+761B-7629,U+762D,U+7630,U+7632-7635,U+7638-763C,U+7640-7641,U+7643-764B,U+764E,U+7655,U+7658-7659,U+765C,U+765F,U+7661-7662,U+7664-7665,U+7667-766A,U+766C-7672,U+7674,U+7676,U+7678,U+7680-7683,U+7685,U+7688,U+768B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.29.woff2)format("woff2");unicode-range:U+736C,U+736E-7371,U+7375,U+7377-737C,U+7380-7381,U+7383,U+7385-7386,U+738A,U+738E,U+7390,U+7393-7398,U+739C,U+739E-73A0,U+73A2,U+73A5-73A6,U+73A8,U+73AA-73AB,U+73AD,U+73B3,U+73B5,U+73B7,U+73B9-73BD,U+73BF,U+73C5-73C6,U+73C9-73CC,U+73CE-73CF,U+73D2-73D3,U+73D6,U+73D9,U+73DD-73DE,U+73E1,U+73E3-73E7,U+73E9-73EA,U+73EE,U+73F1,U+73F4-73F5,U+73F7-73FB,U+73FD,U+73FF-7401,U+7404-7405,U+7407,U+740A,U+7411,U+7413,U+741A-741B,U+7421,U+7424,U+7426,U+7428-7431,U+7433,U+7439-743A,U+743F-7441,U+7443-7444,U+7446-7447,U+744B,U+744D,U+7451-7453,U+7455,U+7457,U+7459-745A,U+745C-745D,U+745F,U+7462-7464,U+7466-746B,U+746D-7473,U+7476,U+747E,U+7480-7481,U+7485-7489,U+748B,U+748F-7492,U+7497-749A,U+749C,U+749E-74A3,U+74A5-74A6,U+74A8-74AB,U+74AE-74AF,U+74B1-74B2,U+74B5,U+74B9-74BB,U+74BD,U+74BF,U+74C8-74CA,U+74CC,U+74CF-74D0,U+74D3-74D4,U+74D6,U+74D8,U+74DA-74DB,U+74DE-74E0,U+74E3-74E4,U+74E7-74EB,U+74EE-74F2,U+74F4,U+74F7-74F8,U+74FA-74FC,U+74FF,U+7501,U+7503-7506,U+750C-750E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.30.woff2)format("woff2");unicode-range:U+7166,U+7168,U+716C,U+7179,U+7180,U+7184-7185,U+7187-7188,U+718C,U+718F,U+7192,U+7194-7196,U+7199-719B,U+71A0,U+71A2,U+71A8,U+71AC,U+71AE-71B0,U+71B2-71B3,U+71B9-71BA,U+71BE-71C1,U+71C4,U+71C9,U+71CB-71CC,U+71CE,U+71D0,U+71D2-71D4,U+71D6-71D7,U+71D9-71DA,U+71DC,U+71DF-71E0,U+71E6-71E7,U+71EC-71EE,U+71F4-71F5,U+71F8-71F9,U+71FC,U+71FE-7200,U+7207-7209,U+720D,U+7210,U+7213,U+7215,U+7217,U+721A,U+721D,U+721F,U+7224,U+7228,U+722B,U+722D,U+722F-7230,U+7232,U+7234,U+7238-7239,U+723B-723C,U+723E-7243,U+7245-7246,U+724B,U+724E-7250,U+7252-7253,U+7255-7258,U+725A,U+725C,U+725E,U+7260,U+7263,U+7268,U+726B,U+726E-726F,U+7271,U+7274,U+7277-7278,U+727B-727C,U+727E-7282,U+7284,U+7287,U+7289,U+728D-728E,U+7292-7293,U+7296,U+729B,U+72A2,U+72A7-72A8,U+72AD-72AE,U+72B0-72B2,U+72B4,U+72B9,U+72BE,U+72C0-72C1,U+72C3-72C4,U+72C6-72C7,U+72C9,U+72CC,U+72CE,U+72D2,U+72D5-72D6,U+72D8,U+72DF-72E2,U+72E5,U+72F3-72F4,U+72F7,U+72F9-72FB,U+72FD-72FE,U+7302,U+7304-7305,U+7307,U+730A-730B,U+730D,U+7312-7313,U+7316-7319,U+731C-731E,U+7322,U+7324,U+7327-7329,U+732C,U+732F,U+7331-7337,U+7339-733B,U+733D-733E,U+7343,U+734D-7350,U+7352,U+7356-7358,U+735D-7360,U+7366-736B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.31.woff2)format("woff2");unicode-range:U+6F58-6F5B,U+6F5D-6F5E,U+6F60-6F62,U+6F66,U+6F68,U+6F6C-6F6D,U+6F6F,U+6F74,U+6F78,U+6F7A,U+6F7C-6F7E,U+6F80,U+6F82-6F83,U+6F86-6F88,U+6F8B-6F8E,U+6F90-6F94,U+6F96-6F98,U+6F9A,U+6F9D,U+6F9F-6FA1,U+6FA3,U+6FA5-6FA8,U+6FAE-6FB1,U+6FB3,U+6FB5-6FB7,U+6FB9,U+6FBC,U+6FBE,U+6FC2,U+6FC5-6FCA,U+6FD4-6FD5,U+6FD8,U+6FDA-6FDB,U+6FDE-6FE0,U+6FE4,U+6FE8-6FE9,U+6FEB-6FEC,U+6FEE,U+6FF0,U+6FF3,U+6FF5-6FF6,U+6FF9-6FFA,U+6FFC-6FFE,U+7000-7001,U+7005-7007,U+7009-700B,U+700D,U+700F,U+7011,U+7015,U+7017-7018,U+701A-701B,U+701D-7020,U+7023,U+7026,U+7028,U+702F-7030,U+7032,U+7034,U+7037,U+7039-703A,U+703C,U+703E,U+7043-7044,U+7047-704C,U+704E,U+7051,U+7054-7055,U+705D-705E,U+7064-7065,U+7069,U+706C,U+706E,U+7075-7076,U+707E,U+7081,U+7085-7086,U+7094-7098,U+709B,U+709F,U+70A4,U+70AB-70AC,U+70AE-70B1,U+70B3-70B4,U+70B7,U+70BB,U+70CA-70CB,U+70D1,U+70D3-70D6,U+70D8-70D9,U+70DC-70DD,U+70DF,U+70E4,U+70EC,U+70F1,U+70FA,U+70FD,U+7103-7108,U+710B-710C,U+710F,U+7114,U+7119,U+711C,U+711E,U+7120,U+712B,U+712D-7131,U+7138,U+7141,U+7145-7147,U+7149-714B,U+7150-7153,U+7155-7157,U+715A,U+715C,U+715E,U+7160,U+7162,U+7164-7165}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.32.woff2)format("woff2");unicode-range:U+6D7C,U+6D80-6D82,U+6D85,U+6D87,U+6D89-6D8A,U+6D8C-6D8E,U+6D91-6D98,U+6D9C,U+6DAA-6DAC,U+6DAE,U+6DB4-6DB5,U+6DB7-6DB9,U+6DBD,U+6DBF,U+6DC2,U+6DC4-6DC8,U+6DCA,U+6DCC,U+6DCE-6DD0,U+6DD2,U+6DD5-6DD6,U+6DD8-6DDB,U+6DDD-6DE0,U+6DE2,U+6DE4-6DE6,U+6DE8-6DEA,U+6DEC,U+6DEE-6DF0,U+6DF2,U+6DF4,U+6DF6,U+6DF8-6DFA,U+6DFC,U+6E00,U+6E04,U+6E0A,U+6E17,U+6E19,U+6E1D-6E20,U+6E22-6E25,U+6E27,U+6E2B,U+6E2D-6E2E,U+6E32,U+6E34,U+6E36,U+6E38-6E3C,U+6E42-6E45,U+6E48-6E49,U+6E4B-6E4F,U+6E51-6E54,U+6E57,U+6E5B-6E5F,U+6E62-6E63,U+6E68,U+6E6B,U+6E6E,U+6E72-6E73,U+6E76,U+6E7B,U+6E7D,U+6E82,U+6E89,U+6E8C-6E8D,U+6E8F,U+6E93,U+6E98-6E99,U+6E9F-6EA0,U+6EA5,U+6EA7,U+6EAA-6EAB,U+6EAD-6EAF,U+6EB1-6EB4,U+6EB7,U+6EBB-6EBD,U+6EBF-6EC4,U+6EC7-6ECA,U+6ECC-6ECF,U+6ED3-6ED5,U+6ED9-6EDB,U+6EE6,U+6EEB-6EEF,U+6EF7-6EF9,U+6EFB,U+6EFD-6EFF,U+6F04,U+6F08-6F0A,U+6F0C-6F0D,U+6F10-6F11,U+6F13,U+6F15-6F16,U+6F18,U+6F1A-6F1B,U+6F25-6F26,U+6F29-6F2A,U+6F2D,U+6F2F-6F33,U+6F35-6F36,U+6F38,U+6F3B-6F3C,U+6F3E-6F3F,U+6F41,U+6F45,U+6F4F,U+6F51-6F53,U+6F57}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.33.woff2)format("woff2");unicode-range:U+6B85,U+6B89,U+6B8D,U+6B95,U+6B97-6B98,U+6B9B,U+6B9E-6BA0,U+6BA2-6BA4,U+6BA8-6BB3,U+6BB7-6BB9,U+6BBC-6BBE,U+6BC0,U+6BC3-6BC4,U+6BC6-6BC9,U+6BCB-6BCC,U+6BCF,U+6BD3,U+6BD6-6BD8,U+6BDA,U+6BDF,U+6BE1,U+6BE3,U+6BE6-6BE7,U+6BEB-6BEC,U+6BEE,U+6BF1,U+6BF3,U+6BF7,U+6BF9,U+6BFF,U+6C02,U+6C04-6C05,U+6C08-6C0A,U+6C0D-6C0E,U+6C10,U+6C12-6C14,U+6C19,U+6C1B,U+6C1F,U+6C24,U+6C26-6C28,U+6C2C,U+6C2E,U+6C33,U+6C35-6C36,U+6C3A-6C3B,U+6C3E-6C40,U+6C4A-6C4B,U+6C4D,U+6C4F,U+6C52,U+6C54-6C55,U+6C59,U+6C5B-6C5E,U+6C62,U+6C67-6C68,U+6C6A-6C6B,U+6C6D,U+6C6F,U+6C73-6C74,U+6C76,U+6C78-6C79,U+6C7B,U+6C7E,U+6C81-6C87,U+6C89,U+6C8C-6C8D,U+6C90,U+6C92-6C95,U+6C97-6C98,U+6C9A-6C9C,U+6C9F,U+6CAA-6CAE,U+6CB0-6CB2,U+6CB4,U+6CBA,U+6CBD-6CBE,U+6CC2,U+6CC5-6CC6,U+6CCD,U+6CCF-6CD4,U+6CD6-6CD7,U+6CD9-6CDD,U+6CE0,U+6CE7,U+6CE9-6CEF,U+6CF1-6CF2,U+6CF4,U+6CFB,U+6D00-6D01,U+6D04,U+6D07,U+6D0A,U+6D0C,U+6D0E-6D0F,U+6D11,U+6D13,U+6D19-6D1A,U+6D1F,U+6D24,U+6D26-6D28,U+6D2B,U+6D2E-6D2F,U+6D31,U+6D33-6D36,U+6D38-6D39,U+6D3C-6D3D,U+6D3F,U+6D57-6D5B,U+6D5E-6D61,U+6D64-6D65,U+6D67,U+6D6C,U+6D6F-6D70,U+6D79}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.34.woff2)format("woff2");unicode-range:U+69DD-69DE,U+69E2-69E3,U+69E5,U+69E7-69EB,U+69ED-69EF,U+69F1-69F6,U+69F9,U+69FE-6A01,U+6A03,U+6A05,U+6A0A,U+6A0C,U+6A0F,U+6A11-6A15,U+6A17,U+6A1A-6A1B,U+6A1D-6A20,U+6A22-6A24,U+6A28,U+6A2E,U+6A30,U+6A32-6A38,U+6A3B,U+6A3E-6A3F,U+6A44-6A4A,U+6A4E,U+6A50-6A52,U+6A54-6A56,U+6A5B,U+6A61-6A62,U+6A64,U+6A66-6A67,U+6A6A-6A6B,U+6A71-6A73,U+6A78,U+6A7A,U+6A7E-6A7F,U+6A81,U+6A83-6A84,U+6A86-6A87,U+6A89,U+6A8B,U+6A8D,U+6A90-6A91,U+6A94,U+6A97,U+6A9B,U+6A9D-6AA3,U+6AA5,U+6AAA-6AAC,U+6AAE-6AB1,U+6AB3-6AB4,U+6AB8,U+6ABB,U+6ABD-6ABF,U+6AC1-6AC3,U+6AC6,U+6AC8-6AC9,U+6ACC,U+6AD0-6AD1,U+6AD3-6AD6,U+6ADA-6ADF,U+6AE2,U+6AE4,U+6AE7-6AE8,U+6AEA,U+6AEC,U+6AF0-6AF3,U+6AF8,U+6AFA,U+6AFC-6AFD,U+6B02-6B03,U+6B06-6B07,U+6B09-6B0B,U+6B0F-6B12,U+6B16-6B17,U+6B1B,U+6B1D-6B1F,U+6B23-6B24,U+6B28,U+6B2B-6B2C,U+6B2F,U+6B35-6B39,U+6B3B,U+6B3D,U+6B3F,U+6B43,U+6B46-6B47,U+6B49-6B4A,U+6B4D-6B4E,U+6B50,U+6B52,U+6B54,U+6B56,U+6B58-6B59,U+6B5B,U+6B5D,U+6B5F-6B61,U+6B65,U+6B67,U+6B6B-6B6C,U+6B6E,U+6B70,U+6B72,U+6B75,U+6B77-6B7A,U+6B7D-6B84}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.35.woff2)format("woff2");unicode-range:U+6855,U+6857-6859,U+685B,U+685D,U+685F,U+6863,U+6867,U+686B,U+686E-6872,U+6874-6875,U+6877,U+6879-687C,U+687E-687F,U+6882-6884,U+6886,U+6888,U+688D-6890,U+6894,U+6896,U+6898-689C,U+689F-68A3,U+68A5-68A7,U+68A9-68AB,U+68AD-68AF,U+68B2-68B5,U+68B9-68BC,U+68C3,U+68C5-68C6,U+68C8-68CA,U+68CC-68CD,U+68CF-68D1,U+68D3-68D9,U+68DC-68DD,U+68E0-68E1,U+68E3-68E5,U+68E7-68E8,U+68EA-68ED,U+68EF-68F1,U+68F5-68F7,U+68F9,U+68FB-68FD,U+6900-6901,U+6903-6904,U+6906-690C,U+690F-6911,U+6913,U+6916-6917,U+6919-691B,U+6921-6923,U+6925-6926,U+6928,U+692A,U+6930-6931,U+6933-6936,U+6938-6939,U+693B,U+693D,U+6942,U+6945-6946,U+6949,U+694E,U+6954,U+6957,U+6959,U+695B-695E,U+6961-6966,U+6968-696C,U+696E-6974,U+6977-697B,U+697E-6981,U+6986,U+698D,U+6991-6992,U+6994-6996,U+6998,U+699C,U+69A0-69A1,U+69A5-69A8,U+69AB,U+69AD,U+69AF-69B2,U+69B4,U+69B7-69B8,U+69BA-69BC,U+69BE-69C1,U+69C3,U+69C5,U+69C7-69C8,U+69CA,U+69CE-69D1,U+69D3,U+69D6-69D7,U+69D9}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.36.woff2)format("woff2");unicode-range:U+667E-6680,U+6683-6684,U+6688,U+668B-668E,U+6690,U+6692,U+6698-669D,U+669F-66A0,U+66A2,U+66A4,U+66AD,U+66B1-66B3,U+66B5,U+66B8-66B9,U+66BB-66BC,U+66BE-66C4,U+66C6,U+66C8-66C9,U+66CC,U+66CE-66CF,U+66D4,U+66DA-66DB,U+66DD,U+66DF-66E0,U+66E6,U+66E8-66E9,U+66EB-66EC,U+66EE,U+66F5,U+66F7,U+66FA-66FC,U+6701,U+6705,U+6707,U+670C,U+670E-6710,U+6712-6716,U+6719,U+671C,U+671E,U+6720,U+6722,U+6725-6726,U+672E,U+6733,U+6735-6738,U+673E-673F,U+6741,U+6743,U+6745-6748,U+674C-674D,U+6753-6755,U+6759,U+675D-675E,U+6760,U+6762-6764,U+6766,U+676A,U+676C,U+676E,U+6770,U+6772-6774,U+6776-6777,U+677B-677C,U+6780-6781,U+6784-6785,U+6787,U+6789,U+678B-678C,U+678E-678F,U+6791-6793,U+6796,U+6798-6799,U+679B,U+67A1,U+67A4,U+67A6,U+67A9,U+67B0-67B5,U+67B7-67B9,U+67BB-67BE,U+67C0-67C3,U+67C5-67C6,U+67C8-67C9,U+67CE,U+67D2,U+67D7-67D9,U+67DB-67DE,U+67E1-67E2,U+67E4,U+67E6-67E7,U+67E9,U+67EC,U+67EE-67F0,U+67F2,U+67F6-67F7,U+67F9-67FA,U+67FC,U+67FE,U+6801-6802,U+6805,U+6810,U+6814,U+6818-6819,U+681D,U+681F,U+6822,U+6827-6829,U+682B-682D,U+682F-6834,U+683B,U+683E-6840,U+6844-6846,U+6849-684A,U+684C-684E,U+6852-6854}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.37.woff2)format("woff2");unicode-range:U+64D2,U+64D4-64D5,U+64D7-64D8,U+64DA,U+64E0-64E1,U+64E3-64E5,U+64E7,U+64E9-64EA,U+64ED,U+64EF-64F2,U+64F4-64F7,U+64FA-64FB,U+64FD-6501,U+6504-6505,U+6508-650A,U+650F,U+6513-6514,U+6516,U+6518-6519,U+651B-651F,U+6522,U+6524,U+6526,U+6529-652C,U+652E,U+6531-6532,U+6534-6538,U+653A,U+653C-653D,U+6543-6544,U+6547-6549,U+654D-654E,U+6550,U+6552,U+6554-6556,U+6558,U+655D-6560,U+6567,U+656B,U+6572,U+6578,U+657A,U+657D,U+6581-6585,U+6588,U+658A,U+658C,U+6592,U+6595,U+6598,U+659B,U+659D,U+659F-65A1,U+65A3-65A6,U+65AB,U+65AE,U+65B2-65B5,U+65B7-65B8,U+65BE-65BF,U+65C1-65C4,U+65C6,U+65C8-65C9,U+65CC,U+65CE,U+65D0,U+65D2,U+65D4,U+65D6,U+65D8-65D9,U+65DB,U+65DF-65E1,U+65E3,U+65F0-65F2,U+65F4-65F5,U+65F9,U+65FB-65FC,U+65FE-6600,U+6603-6604,U+6608-660A,U+660D,U+6611-6612,U+6615-6616,U+661C-661E,U+6621-6624,U+6626,U+6629-662C,U+662E,U+6630-6631,U+6633-6637,U+6639-663B,U+663F-6641,U+6644-6646,U+6648-664A,U+664C,U+664E-664F,U+6651,U+6657-6665,U+6667-6668,U+666A-666D,U+6670,U+6673,U+6675,U+6677-6679,U+667B-667C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.38.woff2)format("woff2");unicode-range:U+62CF,U+62D1,U+62D4-62D6,U+62DA,U+62DC,U+62EA,U+62EE-62EF,U+62F1-62F2,U+62F4-62F5,U+62FC-62FD,U+62FF,U+6302-6304,U+6308-630D,U+6310,U+6313,U+6316,U+6318,U+631B,U+6327,U+6329-632A,U+632D,U+6332,U+6335-6336,U+6339-633C,U+633E,U+6341-6344,U+6346,U+634A-634E,U+6350,U+6352-6354,U+6358-6359,U+635B,U+6365-6366,U+6369,U+636B-636D,U+6371-6372,U+6374-6378,U+637A,U+637C-637D,U+637F-6380,U+6382,U+6384,U+6387,U+6389-638A,U+638E-6390,U+6394-6396,U+6399-639A,U+639E,U+63A0,U+63A3-63A4,U+63A6,U+63A9,U+63AB-63AF,U+63B5,U+63BD-63BE,U+63C0-63C1,U+63C4-63C6,U+63C8,U+63CE,U+63D1-63D6,U+63DC,U+63E0,U+63E3,U+63E5,U+63E9-63ED,U+63F2-63F3,U+63F5-63F9,U+6406,U+6409-640A,U+640F-6410,U+6412-6414,U+6416-6418,U+641E,U+6420,U+6422,U+6424-6426,U+6428-642A,U+642F-6430,U+6434-6436,U+643D,U+643F,U+644B,U+644E-644F,U+6451-6454,U+645A-645D,U+645F-6461,U+6463,U+6467,U+646D,U+6473-6474,U+6476,U+6478-6479,U+647B,U+647D,U+6485,U+6487-6488,U+648F-6491,U+6493,U+6495,U+6498-649B,U+649D-649F,U+64A1,U+64A3,U+64A6,U+64A8-64A9,U+64AC,U+64B3,U+64BB-64BF,U+64C2,U+64C4-64C5,U+64C7,U+64C9-64CC,U+64CE,U+64D0-64D1}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.39.woff2)format("woff2");unicode-range:U+6117,U+6119,U+611C,U+611E,U+6120-6122,U+6127-6128,U+612A-612C,U+6130-6131,U+6134-6137,U+6139-613A,U+613C-613F,U+6141-6142,U+6144-6147,U+6149-614A,U+614D,U+6153,U+6158-615A,U+615D-6160,U+6164-6165,U+616B-616C,U+616F,U+6171-6175,U+6177-6178,U+617B-6181,U+6183-6184,U+6187,U+618A-618B,U+618D,U+6192-6194,U+6196-619A,U+619C-619D,U+619F-61A0,U+61A5,U+61A8,U+61AA-61AE,U+61B8-61BA,U+61BC,U+61BE,U+61C0-61C3,U+61C6,U+61C8,U+61CA-61CF,U+61D5,U+61DC-61DF,U+61E1-61E3,U+61E5-61E9,U+61EC-61ED,U+61EF,U+61F4-61F7,U+61FA,U+61FC-6201,U+6203-6204,U+6207-620A,U+620D-620E,U+6213-6215,U+621B-621E,U+6220-6223,U+6227,U+6229-622B,U+622E,U+6230-6233,U+6236,U+6239,U+623D-623E,U+6241-6244,U+6246,U+6248,U+624C,U+624E,U+6250-6252,U+6254,U+6256,U+6258,U+625A-625C,U+625E,U+6260-6261,U+6263-6264,U+6268,U+626D,U+626F,U+6273,U+627A-627E,U+6282-6283,U+6285,U+6289,U+628D-6290,U+6292-6294,U+6296,U+6299,U+629B,U+62A6,U+62A8,U+62AC,U+62B3,U+62B6-62B7,U+62BA-62BB,U+62BE-62BF,U+62C2,U+62C4,U+62C6-62C8,U+62CA,U+62CE}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.40.woff2)format("woff2");unicode-range:U+5F6C-5F6D,U+5F6F,U+5F72-5F75,U+5F78,U+5F7A,U+5F7D-5F7F,U+5F82-5F83,U+5F87-5F89,U+5F8D,U+5F8F,U+5F91,U+5F96,U+5F99,U+5F9C-5F9D,U+5FA0,U+5FA2,U+5FA4,U+5FA7-5FA8,U+5FAB-5FAD,U+5FAF-5FB1,U+5FB5,U+5FB7-5FB8,U+5FBC-5FBD,U+5FC4,U+5FC7-5FC9,U+5FCB,U+5FD0-5FD4,U+5FDD-5FDE,U+5FE1-5FE2,U+5FE4,U+5FE8-5FEA,U+5FEC-5FF3,U+5FF6,U+5FF8,U+5FFA-5FFD,U+5FFF,U+6007,U+600A,U+600D-6010,U+6013-6015,U+6017-601B,U+601F,U+6021-6022,U+6024,U+6026,U+6029,U+602B,U+602D,U+6031,U+6033,U+6035,U+603A,U+6040-6043,U+6046-604A,U+604C-604D,U+6051,U+6054-6057,U+6059-605A,U+605D,U+605F-6064,U+6067,U+606A-606C,U+6070-6071,U+6077,U+607E-607F,U+6081-6086,U+6088-608E,U+6091-6093,U+6095-6098,U+609A-609B,U+609D-609E,U+60A2,U+60A4-60A5,U+60A7-60A8,U+60B0-60B1,U+60B3-60B5,U+60B7-60B8,U+60BB,U+60BD-60BE,U+60C2,U+60C4,U+60C6-60CB,U+60CE-60CF,U+60D3-60D5,U+60D8-60D9,U+60DB,U+60DD-60DF,U+60E1-60E2,U+60E5,U+60EE,U+60F0-60F2,U+60F4-60F8,U+60FA-60FD,U+6100,U+6102-6103,U+6106-6108,U+610A,U+610C-610E,U+6110-6114,U+6116}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.41.woff2)format("woff2");unicode-range:U+5D9B,U+5D9D,U+5D9F-5DA0,U+5DA2,U+5DA4,U+5DA7,U+5DAB-5DAC,U+5DAE,U+5DB0,U+5DB2,U+5DB4,U+5DB7-5DB9,U+5DBC-5DBD,U+5DC3,U+5DC7,U+5DC9,U+5DCB-5DCE,U+5DD0-5DD3,U+5DD6-5DD9,U+5DDB,U+5DE0,U+5DE2,U+5DE4,U+5DE9,U+5DF2,U+5DF5,U+5DF8-5DF9,U+5DFD,U+5DFF-5E00,U+5E07,U+5E0B,U+5E0D,U+5E11-5E12,U+5E14-5E15,U+5E18-5E1B,U+5E1F-5E20,U+5E25,U+5E28,U+5E2E,U+5E32,U+5E35-5E37,U+5E3E,U+5E40,U+5E43-5E44,U+5E47,U+5E49,U+5E4B,U+5E4E,U+5E50-5E51,U+5E54,U+5E56-5E58,U+5E5B-5E5C,U+5E5E-5E5F,U+5E62,U+5E64,U+5E68,U+5E6A-5E6E,U+5E70,U+5E75-5E77,U+5E7A,U+5E7F-5E80,U+5E87,U+5E8B,U+5E8E,U+5E96,U+5E99-5E9A,U+5EA0,U+5EA2,U+5EA4-5EA5,U+5EA8,U+5EAA,U+5EAC,U+5EB1,U+5EB3,U+5EB8-5EB9,U+5EBD-5EBF,U+5EC1-5EC2,U+5EC6,U+5EC8,U+5ECB-5ECC,U+5ECE-5ED6,U+5ED9-5EE2,U+5EE5,U+5EE8-5EE9,U+5EEB-5EEC,U+5EF0-5EF1,U+5EF3-5EF4,U+5EF8-5EF9,U+5EFC-5F00,U+5F02-5F03,U+5F06-5F09,U+5F0B-5F0E,U+5F11,U+5F16-5F17,U+5F19,U+5F1B-5F1E,U+5F21-5F24,U+5F27-5F29,U+5F2B-5F30,U+5F34,U+5F36,U+5F38,U+5F3A-5F3D,U+5F3F-5F41,U+5F44-5F45,U+5F47-5F48,U+5F4A,U+5F4C-5F4E,U+5F50-5F51,U+5F54,U+5F56-5F58,U+5F5B-5F5D,U+5F60,U+5F63-5F65,U+5F67,U+5F6A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.42.woff2)format("woff2");unicode-range:U+5BBC,U+5BC0-5BC1,U+5BC3,U+5BC7,U+5BC9,U+5BCD-5BD0,U+5BD3-5BD4,U+5BD6-5BDA,U+5BDE,U+5BE0-5BE2,U+5BE4-5BE6,U+5BE8,U+5BEB-5BEC,U+5BEF-5BF1,U+5BF3-5BF6,U+5BFD,U+5C03,U+5C05,U+5C07-5C09,U+5C0C-5C0D,U+5C12-5C14,U+5C17,U+5C19,U+5C1E-5C20,U+5C22-5C24,U+5C26,U+5C28-5C2E,U+5C30,U+5C32,U+5C35-5C36,U+5C38-5C39,U+5C46,U+5C4D-5C50,U+5C53,U+5C59-5C5C,U+5C5F-5C63,U+5C67-5C69,U+5C6C-5C70,U+5C74-5C76,U+5C79-5C7D,U+5C87-5C88,U+5C8A,U+5C8C,U+5C8F,U+5C91-5C92,U+5C94,U+5C9D,U+5C9F-5CA0,U+5CA2-5CA3,U+5CA6-5CA8,U+5CAA-5CAB,U+5CAD,U+5CB1-5CB2,U+5CB4-5CB7,U+5CBA-5CBC,U+5CBE,U+5CC5,U+5CC7,U+5CC9,U+5CCB,U+5CD0,U+5CD2,U+5CD7,U+5CD9,U+5CDD,U+5CE6,U+5CE8-5CEA,U+5CED-5CEE,U+5CF1-5CF2,U+5CF4-5CF5,U+5CFA-5CFB,U+5CFD,U+5D01,U+5D06,U+5D0B,U+5D0D,U+5D10-5D12,U+5D14-5D15,U+5D17-5D1B,U+5D1D,U+5D1F-5D20,U+5D22-5D24,U+5D26-5D27,U+5D2B,U+5D31,U+5D34,U+5D39,U+5D3D,U+5D3F,U+5D42-5D43,U+5D46-5D48,U+5D4A-5D4B,U+5D4E,U+5D51-5D53,U+5D55,U+5D59,U+5D5C,U+5D5F-5D62,U+5D64,U+5D69-5D6A,U+5D6C-5D6D,U+5D6F-5D70,U+5D73,U+5D76,U+5D79-5D7A,U+5D7E-5D7F,U+5D81-5D84,U+5D87-5D88,U+5D8A,U+5D8C,U+5D90,U+5D92-5D95,U+5D97,U+5D99}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.43.woff2)format("woff2");unicode-range:U+598B-598E,U+5992,U+5995,U+5997,U+599B,U+599D,U+599F,U+59A3-59A4,U+59A7,U+59AD-59B0,U+59B2-59B3,U+59B7,U+59BA,U+59BC,U+59BE,U+59C1,U+59C3-59C4,U+59C6,U+59C8,U+59CA,U+59CD,U+59D2,U+59D9-59DA,U+59DD-59DF,U+59E3-59E5,U+59E7-59E8,U+59EC,U+59EE-59EF,U+59F1-59F2,U+59F4,U+59F6-59F8,U+5A00,U+5A03-5A04,U+5A09,U+5A0C-5A0E,U+5A11-5A13,U+5A17,U+5A1A-5A1C,U+5A1E-5A1F,U+5A23-5A25,U+5A27-5A28,U+5A2A,U+5A2D,U+5A30,U+5A35-5A36,U+5A40-5A41,U+5A44-5A45,U+5A47-5A49,U+5A4C,U+5A50,U+5A55,U+5A5E,U+5A62-5A63,U+5A65,U+5A67,U+5A6A,U+5A6C-5A6D,U+5A77,U+5A7A-5A7B,U+5A7E,U+5A84,U+5A8B,U+5A90,U+5A93,U+5A96,U+5A99,U+5A9C,U+5A9E-5AA0,U+5AA2,U+5AA7,U+5AAC,U+5AB1-5AB3,U+5AB5,U+5AB8,U+5ABA-5ABF,U+5AC2,U+5AC4,U+5AC6,U+5AC8,U+5ACB,U+5ACF-5AD0,U+5AD6-5AD7,U+5ADA,U+5ADC,U+5AE0-5AE1,U+5AE3,U+5AE5-5AE6,U+5AE9-5AEA,U+5AEE,U+5AF0,U+5AF5-5AF6,U+5AFA-5AFB,U+5AFD,U+5B00-5B01,U+5B08,U+5B0B,U+5B16-5B17,U+5B19,U+5B1B,U+5B1D,U+5B21,U+5B25,U+5B2A,U+5B2C-5B2D,U+5B30,U+5B32,U+5B34,U+5B36,U+5B38,U+5B3E,U+5B40-5B41,U+5B43,U+5B45,U+5B4B-5B4C,U+5B51-5B52,U+5B56,U+5B5A-5B5C,U+5B5E-5B5F,U+5B65,U+5B68-5B69,U+5B6E-5B71,U+5B73,U+5B75-5B76,U+5B7A,U+5B7C-5B84,U+5B86,U+5B8A-5B8B,U+5B8D-5B8E,U+5B90-5B91,U+5B93-5B94,U+5B96,U+5BA5-5BA6,U+5BA8-5BA9,U+5BAC-5BAD,U+5BAF,U+5BB1-5BB2,U+5BB7-5BB8,U+5BBA}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.44.woff2)format("woff2");unicode-range:U+57B3,U+57B8,U+57BD,U+57C0,U+57C3,U+57C6-57C8,U+57CC,U+57CF,U+57D2-57D7,U+57DC-57DE,U+57E0-57E1,U+57E3-57E4,U+57E6-57E7,U+57E9,U+57ED,U+57F0,U+57F4-57F6,U+57F8,U+57FB,U+57FD-57FF,U+5803-5804,U+5808-580D,U+5819,U+581B,U+581D-5821,U+5826-5827,U+582D,U+582F-5830,U+5832,U+5835,U+5839,U+583D,U+583F-5840,U+5849,U+584B-584D,U+584F-5852,U+5855,U+5858-5859,U+585F,U+5861-5862,U+5864,U+5867-5868,U+586D,U+5870,U+5872,U+5878-5879,U+587C,U+587F-5881,U+5885,U+5887-588D,U+588F-5890,U+5894,U+5896,U+5898,U+589D-589E,U+58A0-58A2,U+58A6,U+58A9-58AB,U+58AE,U+58B1-58B3,U+58B8-58BC,U+58BE,U+58C2-58C5,U+58C8,U+58CD-58CE,U+58D0-58DA,U+58DC-58E2,U+58E4-58E5,U+58E9,U+58EC,U+58EF,U+58F3-58F4,U+58F7,U+58F9,U+58FB-58FD,U+5902,U+5905-5906,U+590A-590D,U+5910,U+5912-5914,U+5918-5919,U+591B,U+591D,U+591F,U+5921,U+5923-5925,U+5928,U+592C-592D,U+592F-5930,U+5932-5933,U+5935-5936,U+5938-5939,U+593D-593F,U+5943,U+5946,U+594E,U+5950,U+5952-5953,U+5955,U+5957-595B,U+595D-5961,U+5963,U+5967,U+5969,U+596B-596D,U+596F,U+5972,U+5975-5976,U+5978-5979,U+597B-597C,U+5981}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.45.woff2)format("woff2");unicode-range:U+5616-5617,U+5619,U+561B,U+5620,U+5628,U+562C,U+562F-5639,U+563B-563D,U+563F-5641,U+5643-5644,U+5646-5647,U+5649,U+564B,U+564D-5650,U+5653-5654,U+565E,U+5660-5664,U+5666,U+5669-566D,U+566F,U+5671-5672,U+5675-5676,U+5678,U+567A,U+5680,U+5684-5688,U+568A-568C,U+568F,U+5694-5695,U+5699-569A,U+569D-56A0,U+56A5-56A9,U+56AB-56AE,U+56B1-56B4,U+56B6-56B7,U+56BC,U+56BE,U+56C0,U+56C2-56C3,U+56C5,U+56C8-56D1,U+56D3,U+56D7-56D9,U+56DC-56DD,U+56DF,U+56E1,U+56E4-56E8,U+56EB,U+56ED-56EE,U+56F1,U+56F6-56F7,U+56F9,U+56FF-5704,U+5707-570A,U+570C-570D,U+5711,U+5713,U+5715-5716,U+5718,U+571A-571D,U+5720-5726,U+5729-572A,U+572C,U+572E-572F,U+5733-5734,U+5737-5738,U+573B,U+573D-573F,U+5745-5746,U+574C-574F,U+5751-5752,U+5759,U+575F,U+5761-5762,U+5764-5765,U+5767-5769,U+576B,U+576D-5771,U+5773-5775,U+5777,U+5779-577C,U+577E-577F,U+5781,U+5783,U+5788-5789,U+578C,U+5793-5795,U+5797,U+5799-579A,U+579C-57A1,U+57A4,U+57A7-57AA,U+57AC,U+57AE,U+57B0}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.46.woff2)format("woff2");unicode-range:U+543F-5440,U+5443-5444,U+5447,U+544C-544F,U+5455,U+545E,U+5462,U+5464,U+5466-5467,U+5469,U+546B-546E,U+5470-5471,U+5474-5477,U+547B,U+547F-5481,U+5483-5486,U+5488-548B,U+548D-5492,U+5495-5496,U+549C,U+549F-54A2,U+54A4,U+54A6-54AF,U+54B1,U+54B7-54BC,U+54BE-54BF,U+54C2-54C4,U+54C6-54C8,U+54CA,U+54CD-54CE,U+54D8,U+54E0,U+54E2,U+54E5-54E6,U+54E8-54EA,U+54EC-54EF,U+54F1,U+54F3,U+54F6,U+54FC-5501,U+5505,U+5508-5509,U+550C-550F,U+5514-5516,U+5527,U+552A-552B,U+552E,U+5532-5533,U+5535-5536,U+5538-5539,U+553B-553D,U+5540-5541,U+5544-5545,U+5547,U+5549-554A,U+554C-554D,U+5550-5551,U+5556-5558,U+555A-555E,U+5560-5561,U+5563-5564,U+5566,U+557B-5583,U+5586-5588,U+558A,U+558E-558F,U+5591-5594,U+5597,U+5599,U+559E-559F,U+55A3-55A4,U+55A8-55A9,U+55AC-55AE,U+55B2,U+55BF,U+55C1,U+55C3-55C4,U+55C6-55C7,U+55C9,U+55CB-55CC,U+55CE,U+55D1-55D4,U+55D7-55D8,U+55DA-55DB,U+55DD-55DF,U+55E2,U+55E4,U+55E9,U+55EC,U+55EE,U+55F1,U+55F6-55F9,U+55FD-55FF,U+5605,U+5607-5608,U+560A,U+560D-5612}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.47.woff2)format("woff2");unicode-range:U+528D,U+5291-5298,U+529A,U+529C,U+52A4-52A7,U+52AB-52AD,U+52AF-52B0,U+52B5-52B8,U+52BA-52BE,U+52C0-52C1,U+52C4-52C6,U+52C8,U+52CA,U+52CC-52CD,U+52CF-52D2,U+52D4,U+52D6-52D7,U+52DB-52DC,U+52DE,U+52E0-52E1,U+52E3,U+52E5-52E6,U+52E8-52EA,U+52EC,U+52F0-52F1,U+52F3-52FB,U+5300-5301,U+5303,U+5306-5308,U+530A-530D,U+530F-5311,U+5313,U+5315,U+5318-531F,U+5321,U+5323-5325,U+5327-532D,U+532F-5333,U+5335,U+5338,U+533C-533E,U+5340,U+5342,U+5345-5346,U+5349,U+534B-534C,U+5359,U+535B,U+535E,U+5361,U+5363-5367,U+5369,U+536C-536E,U+5372,U+5377,U+5379-537B,U+537D-537F,U+5382-5383,U+5387-5389,U+538E,U+5393-5394,U+5396,U+5398-5399,U+539D,U+53A0-53A1,U+53A4-53A6,U+53A9-53AB,U+53AD-53B0,U+53B2,U+53B4-53B8,U+53BA,U+53BD,U+53C0-53C1,U+53C3-53C5,U+53CF,U+53D2-53D3,U+53D5,U+53DA-53DB,U+53DD-53E0,U+53E2,U+53E6-53E8,U+53ED-53EE,U+53F4-53F5,U+53FA,U+5401-5403,U+540B,U+540F,U+5412-5413,U+541A,U+541D-541E,U+5421,U+5424,U+5427-542A,U+542C-542F,U+5431,U+5433-5436,U+543C-543D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.48.woff2)format("woff2");unicode-range:U+50DD-50DF,U+50E1-50E6,U+50E8-50E9,U+50ED-50F6,U+50F9-50FB,U+50FE,U+5101-5103,U+5106-5109,U+510B-510E,U+5110,U+5112,U+5114-511E,U+5121,U+5123,U+5127-5128,U+512C-512D,U+512F,U+5131,U+5133-5135,U+5137-513C,U+513F-5142,U+5147,U+514A,U+514C,U+514F,U+5152-5155,U+5157-5158,U+515F-5160,U+5162,U+5164,U+5166-5167,U+5169-516A,U+516E,U+5173-5174,U+5179,U+517B,U+517E,U+5180,U+5182-5184,U+5189,U+518B-518C,U+518E-5191,U+5193,U+5195-5196,U+5198,U+519D,U+51A1-51A4,U+51A6,U+51A9-51AB,U+51AD,U+51B0-51B3,U+51B5,U+51B8,U+51BA,U+51BC-51BF,U+51C2-51C3,U+51C5,U+51C8-51CB,U+51CF,U+51D1-51D6,U+51D8,U+51DE-51E0,U+51E2,U+51E5,U+51E7,U+51E9,U+51EC-51EE,U+51F2-51F5,U+51F7,U+51FE,U+5201-5202,U+5204-5205,U+520B,U+520E,U+5212-5216,U+5218,U+5222,U+5226-5228,U+522A-522B,U+522E,U+5231-5233,U+5235,U+523C,U+5244-5245,U+5249,U+524B-524C,U+524F,U+5254-5255,U+5257-5258,U+525A,U+525C-5261,U+5266,U+5269,U+526C,U+526E,U+5271,U+5273-5274,U+5277-5279,U+527D,U+527F-5280,U+5282-5285,U+5288-528A,U+528C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.49.woff2)format("woff2");unicode-range:U+4F57-4F58,U+4F5A-4F5B,U+4F5D-4F5F,U+4F63-4F64,U+4F69-4F6A,U+4F6C,U+4F6E-4F71,U+4F76-4F7E,U+4F81-4F85,U+4F88-4F8A,U+4F8C,U+4F8E-4F90,U+4F92-4F94,U+4F96-4F9A,U+4F9E-4FA0,U+4FAB,U+4FAD,U+4FAF,U+4FB2,U+4FB7,U+4FB9,U+4FBB-4FBE,U+4FC0-4FC1,U+4FC4-4FC6,U+4FC8-4FC9,U+4FCB-4FD4,U+4FD8,U+4FDA-4FDC,U+4FDF-4FE0,U+4FE2,U+4FE4-4FE6,U+4FEF-4FF2,U+4FF6,U+4FFC-5002,U+5004-5007,U+500A,U+500C,U+500E-5011,U+5013-5014,U+5016-5018,U+501A-501E,U+5021-5023,U+5025-502A,U+502C-502E,U+5030,U+5032-5033,U+5035,U+5039,U+503B,U+5040-5043,U+5045-5048,U+504A,U+504C,U+504E,U+5050-5053,U+5055-5057,U+5059-505A,U+505F-5060,U+5062-5063,U+5066-5067,U+506A,U+506C-506D,U+5070-5072,U+5077-5078,U+5080-5081,U+5083-5086,U+5088,U+508A,U+508E-5090,U+5092-5096,U+509A-509C,U+509E-50A3,U+50AA,U+50AD,U+50AF-50B4,U+50B9-50BB,U+50BD,U+50C0,U+50C2-50C4,U+50C7,U+50C9-50CA,U+50CC,U+50CE,U+50D0-50D1,U+50D3-50D4,U+50D6,U+50D8-50D9,U+50DC}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.50.woff2)format("woff2");unicode-range:U+4093,U+4103,U+4105,U+4148,U+414F,U+4163,U+41B4,U+41BF,U+41E6,U+41EE,U+41F3,U+4207,U+420E,U+4264,U+4293,U+42C6,U+42D6,U+42DD,U+4302,U+432B,U+4343,U+43EE,U+43F0,U+4408,U+440C,U+4417,U+441C,U+4422,U+4453,U+445B,U+4476,U+447A,U+4491,U+44B3,U+44BE,U+44D4,U+4508,U+450D,U+4525,U+4543,U+457A,U+459D,U+45B8,U+45BE,U+45E5,U+45EA,U+460F-4610,U+4641,U+4665,U+46A1,U+46AE-46AF,U+470C,U+471F,U+4764,U+47E6,U+47FD,U+4816,U+481E,U+4844,U+484E,U+48B5,U+49B0,U+49E7,U+49FA,U+4A04,U+4A29,U+4ABC,U+4B38,U+4B3B,U+4B7E,U+4BC2,U+4BCA,U+4BD2,U+4BE8,U+4C17,U+4C20,U+4C38,U+4CC4,U+4CD1,U+4CE1,U+4D07,U+4D77,U+4E02,U+4E04-4E05,U+4E0C,U+4E0F-4E12,U+4E15,U+4E17,U+4E19,U+4E1E-4E1F,U+4E23-4E24,U+4E28-4E2C,U+4E2E-4E31,U+4E35-4E37,U+4E3F-4E42,U+4E44,U+4E47-4E48,U+4E4D-4E4E,U+4E51,U+4E55-4E56,U+4E58,U+4E5A-4E5C,U+4E62-4E63,U+4E68-4E69,U+4E74-4E75,U+4E79,U+4E7F,U+4E82,U+4E85,U+4E8A,U+4E8D-4E8E,U+4E96-4E99,U+4E9D-4EA0,U+4EA2,U+4EA5-4EA6,U+4EA8,U+4EAF-4EB0,U+4EB3,U+4EB6,U+4EB9,U+4EBB-4EBC,U+4EC2-4EC4,U+4EC6-4EC8,U+4ECD,U+4ED0,U+4ED7,U+4EDA-4EDB,U+4EDD-4EE2,U+4EE8,U+4EEB,U+4EED,U+4EEF,U+4EF1,U+4EF3,U+4EF5,U+4EF7,U+4EFC-4F00,U+4F02-4F03,U+4F08-4F09,U+4F0B-4F0D,U+4F12,U+4F15-4F17,U+4F19,U+4F1C,U+4F2B,U+4F2E,U+4F30-4F31,U+4F33,U+4F35-4F37,U+4F39,U+4F3B,U+4F3E,U+4F40,U+4F42-4F43,U+4F48-4F49,U+4F4B-4F4C,U+4F52,U+4F54,U+4F56}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.52.woff2)format("woff2");unicode-range:U+32B5-332B,U+332D-3394}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.53.woff2)format("woff2");unicode-range:U+31C8-31E3,U+31F0-321E,U+3220-3230,U+3232-32B4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.54.woff2)format("woff2");unicode-range:U+3028-303F,U+3094-3096,U+309F-30A0,U+30EE,U+30F7-30FA,U+30FF,U+3105-312F,U+3131-3163,U+3165-318E,U+3190-31BB,U+31C0-31C7}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.55.woff2)format("woff2");unicode-range:U+2F14-2FD5,U+2FF0-2FFB,U+3004,U+3013,U+3016-301B,U+301E,U+3020-3027}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.56.woff2)format("woff2");unicode-range:U+25E4-25E6,U+2601-2603,U+2609,U+260E-260F,U+2616-2617,U+261C-261F,U+262F,U+2641,U+2660,U+2662-2664,U+2666-2668,U+266D-266E,U+2672-267D,U+26BD-26BE,U+2702,U+271A,U+273D,U+2740,U+2756,U+2776-2793,U+27A1,U+2934-2935,U+29BF,U+29FA-29FB,U+2B05-2B07,U+2B1A,U+2B95,U+2E3A-2E3B,U+2E80-2E99,U+2E9B-2EF3,U+2F00-2F13}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.57.woff2)format("woff2");unicode-range:U+24D1-24FF,U+2503-2513,U+2515-2516,U+2518-251B,U+251D-2522,U+2524-259F,U+25A2-25AB,U+25B1,U+25B7,U+25C0-25C1,U+25C9-25CA,U+25CC,U+25D0-25D3,U+25E2-25E3}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.58.woff2)format("woff2");unicode-range:U+2105,U+2109-210A,U+210F,U+2116,U+2121,U+2126-2127,U+212B,U+212E,U+2135,U+213B,U+2194-2199,U+21B8-21B9,U+21C4-21C6,U+21CB-21CC,U+21D0,U+21E6-21E9,U+21F5,U+2202-2203,U+2205-2206,U+2208-220B,U+220F,U+2211,U+2213,U+2215,U+221A,U+221D,U+2220,U+2223,U+2225-2226,U+2228,U+222A-222E,U+2234-2237,U+223D,U+2243,U+2245,U+2248,U+224C,U+2260,U+2262,U+2264-2265,U+226E-226F,U+2272-2273,U+2276-2277,U+2283-2287,U+228A-228B,U+2295-2299,U+22A0,U+22A5,U+22BF,U+22DA-22DB,U+22EF,U+2305-2307,U+2318,U+2329-232A,U+23B0-23B1,U+23BE-23CC,U+23CE,U+23DA-23DB,U+2423,U+2469-24D0}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.59.woff2)format("woff2");unicode-range:U+A1-A4,U+A6-A7,U+AA,U+AC-AD,U+B5-B6,U+B8-BA,U+BC-C8,U+CA-CC,U+CE-D5,U+D9-DB,U+DD-DF,U+E6,U+EE,U+F0,U+F5,U+F7,U+F9,U+FB,U+FE-102,U+110-113,U+11A-11B,U+128-12B,U+143-144,U+147-148,U+14C,U+14E-14F,U+152-153,U+168-16D,U+192,U+1A0-1A1,U+1AF,U+1CD-1DC,U+1F8-1F9,U+251,U+261,U+2BB,U+2C7,U+2C9,U+2EA-2EB,U+304,U+307,U+30C,U+1E3E-1E3F,U+1EA0-1EBE,U+1EC0-1EC6,U+1EC8-1EF9,U+2011-2012,U+2016,U+2018-201A,U+201E,U+2021,U+2030,U+2033,U+2035,U+2042,U+2047,U+2051,U+2074,U+20A9,U+20AB-20AC,U+20DD-20DE,U+2100}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.60.woff2)format("woff2");unicode-range:U+2227,U+26A0,U+2713,U+301F,U+4FF8,U+5239,U+526A,U+54FA,U+5740,U+5937,U+5993,U+59FB,U+5A3C,U+5C41,U+6028,U+626E,U+646F,U+647A,U+64B0,U+64E2,U+65A7,U+66FE,U+6727,U+6955,U+6BEF,U+6F23,U+724C,U+767C,U+7A83,U+7AC4,U+7B67,U+8000,U+8471,U+8513,U+8599,U+86DB,U+8718,U+87F2,U+88F3,U+8AD2,U+8E2A,U+8FA3,U+95A5,U+9798,U+9910,U+9957,U+9BAB,U+9C3B,U+9DAF,U+FF95}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.61.woff2)format("woff2");unicode-range:U+A8,U+2032,U+2261,U+2282,U+3090,U+30F1,U+339C,U+535C,U+53D9,U+56A2,U+56C1,U+5806,U+589F,U+59D0,U+5A7F,U+60E0,U+639F,U+65AF,U+68FA,U+69AE,U+6D1B,U+6EF2,U+71FB,U+725D,U+7262,U+75BC,U+7768,U+7940,U+79BF,U+7BED,U+7D68,U+7DFB,U+814B,U+8207,U+83E9,U+8494,U+8526,U+8568,U+85EA,U+86D9,U+87BA,U+8861,U+887F,U+8FE6,U+9059,U+9061,U+916A,U+976D,U+97AD,U+9ECE}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.62.woff2)format("woff2");unicode-range:U+2D9,U+21D4,U+301D,U+515C,U+52FE,U+5420,U+5750,U+5766,U+5954,U+5B95,U+5F8A,U+5F98,U+620C,U+621F,U+641C,U+66D9,U+676D,U+6775,U+67F5,U+694A,U+6A02,U+6A3A,U+6A80,U+6C23,U+6C72,U+6DCB,U+6FAA,U+707C,U+71C8,U+7422,U+74E2,U+7791,U+7825,U+7A14,U+7A1C,U+7C95,U+7FC1,U+82A5,U+82DB,U+8304,U+853D,U+8CD3,U+8DE8,U+8F0C,U+8F3F,U+9091,U+91C7,U+929A,U+98AF,U+9913}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.63.woff2)format("woff2");unicode-range:U+2CA-2CB,U+2229,U+2468,U+2669,U+266F,U+273F,U+4EC0,U+4F60,U+4FB6,U+5347,U+540E,U+543B,U+5B0C,U+5D4C,U+5F14,U+5F9E,U+6155,U+62D0,U+6602,U+6666,U+66F3,U+67A2,U+67CA,U+69CC,U+6D29,U+6D9B,U+6E3E,U+6F81,U+7109,U+73C0,U+73C2,U+7425,U+7435-7436,U+7525,U+7554,U+785D,U+786B,U+7AE3,U+7B94,U+7D18,U+81BF,U+8511,U+8549,U+9075,U+9640,U+98E2,U+9E9F,U+FF96}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.64.woff2)format("woff2");unicode-range:U+2467,U+4ECE,U+4ED4,U+4F91,U+4FAE,U+534D,U+53C9,U+54B3,U+586B,U+5944,U+5B78,U+5DF7,U+5F77,U+6101,U+6167-6168,U+61A4,U+62D9,U+698A,U+699B,U+6A59,U+6CC4,U+6E07,U+7099,U+75D2,U+77AD,U+7953,U+7984,U+7A92,U+7BAA,U+7DBB,U+817F,U+82AD,U+85E9,U+868A,U+8CAA,U+8F44,U+9017,U+907C,U+908A,U+92F3,U+936E,U+9435,U+978D,U+9838,U+9A28,U+9B41,U+9BA8,U+9C57,U+9EB9}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.65.woff2)format("woff2");unicode-range:U+B1,U+309B,U+4E5E,U+51F1,U+5506,U+55C5,U+58CC,U+59D1,U+5C51,U+5EF7,U+6284,U+62D7,U+6689,U+673D,U+6A2B,U+6A8E,U+6A9C,U+6D63,U+6DD1,U+70B8,U+7235,U+72DB,U+72F8,U+7560,U+7C9B,U+7CE7,U+7E1E,U+80AF,U+82EB,U+8463,U+8499,U+85DD,U+86EE,U+8A60,U+8A6E,U+8C79,U+8E87,U+8E8A,U+8F5F,U+9010,U+918D,U+9190,U+965B,U+97FB,U+9AB8,U+9BAD,U+9D3B,U+9D5C,U+9DFA,U+9E93}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.66.woff2)format("woff2");unicode-range:U+2020,U+3003,U+3231,U+4E9B,U+4F3D,U+4F47,U+51B6,U+51DC,U+53E1,U+5BC5,U+602F,U+60BC,U+61C9,U+633D,U+637B,U+6492,U+65FA,U+660F,U+66F0,U+6703,U+681E,U+6876,U+6893,U+6912,U+698E,U+6C7D,U+714C,U+7169,U+71D5,U+725F,U+72D7,U+745B,U+74DC,U+75E2,U+7891,U+7897,U+7DCB,U+810A,U+8218,U+8339,U+840E,U+852D,U+8823,U+8A0A,U+9089,U+919C,U+971C,U+9AD9,U+FF4A,U+FF5A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.67.woff2)format("woff2");unicode-range:U+2466,U+2600,U+4EAB,U+4FE3,U+4FF5,U+51A5,U+51F0,U+536F,U+53D4,U+53F1,U+54A5,U+559D,U+55E3,U+58FA,U+5962,U+59EA,U+5C16,U+5CEF,U+5D16,U+5F10,U+5FD6,U+6190,U+6216,U+634F,U+63BB,U+66D6,U+6756,U+6BC5,U+6E26,U+727D,U+731F,U+76F2,U+7729,U+7A7F,U+7AFF,U+7C9F,U+818F,U+8236,U+82B9,U+8338,U+85AA,U+88B4,U+8B33,U+904D,U+93A7,U+96CC,U+96EB,U+9AED,U+9B8E,U+FA11}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.68.woff2)format("woff2");unicode-range:U+251C,U+2523,U+4E14,U+545F,U+54BD,U+553E,U+55DC,U+56DA,U+589C,U+5B55,U+5BB5,U+5CE1,U+5DF4,U+5EB6,U+5EC9,U+6191,U+62F7,U+6357,U+64A5,U+6591,U+65BC,U+6897,U+6E1A,U+7063,U+711A,U+721B,U+722C,U+75B9,U+75D5,U+75FA,U+7766,U+7AAE,U+7B48,U+7B8B,U+7D21,U+7E55,U+7F75,U+842C,U+8910,U+8A63,U+8B39,U+8B5A,U+8CDC,U+8D74,U+907D,U+91E7,U+9306,U+96BC,U+98F4,U+9AC4}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.69.woff2)format("woff2");unicode-range:U+2003,U+2312,U+266C,U+4F86,U+51EA,U+5243,U+5256,U+541F,U+5841,U+59DC,U+5DF3,U+601C,U+60E7,U+632B,U+638C,U+64AD,U+6881,U+697C,U+69CD,U+6C50,U+6D2A,U+6FC1,U+7027,U+7058,U+70F9,U+714E,U+7345,U+751A,U+760D,U+764C,U+77DB,U+7D79,U+7E8F,U+80CE,U+814E,U+81FC,U+8247,U+8278,U+85A9,U+8A03,U+90ED,U+9784,U+9801,U+984E,U+99B3,U+9BC9,U+9BDB,U+9BE8,U+9E78,U+FF6B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.70.woff2)format("woff2");unicode-range:U+266B,U+3006,U+5176,U+5197,U+51A8,U+51C6,U+52F2,U+5614,U+5875,U+5A2F,U+5B54,U+5CE0,U+5DBA,U+5DEB,U+5E63,U+5F59,U+5FCC,U+6068,U+6367,U+68B6,U+6A0B,U+6B64,U+6E15,U+6EBA,U+7272,U+72A0,U+7947,U+7985,U+79E6,U+79E9,U+7A3D,U+7A9F,U+7AAF,U+7B95,U+7F60,U+7F9E,U+7FE0,U+8098,U+80BA,U+8106,U+82D4,U+831C,U+87F9,U+8A1F,U+8ACF,U+90C1,U+920D,U+9756,U+FE43,U+FF94}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.71.woff2)format("woff2");unicode-range:U+AF,U+2465,U+2517,U+33A1,U+4F10,U+50C5,U+51B4,U+5384,U+5606,U+5BB0,U+5CAC,U+5EE3,U+618E,U+61F2,U+62C9,U+66AB,U+66F9,U+6816,U+6960,U+6B3E,U+6F20,U+7078,U+72D0,U+73ED,U+7AD9,U+7B1B,U+7BE4,U+7D62,U+7F51,U+80B4,U+80F4,U+8154,U+85FB,U+865C,U+8702,U+895F,U+8AED,U+8B90,U+8CED,U+8FBF,U+91D8,U+9418,U+9583,U+9591,U+9813,U+982C,U+9BD6,U+FF46,U+FF7F,U+FF88}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.72.woff2)format("woff2");unicode-range:U+4E91,U+508D,U+50E7,U+514E,U+51F6,U+5446,U+5504,U+584A,U+59A8,U+59D3,U+5A46,U+5AC9,U+6020,U+60A6,U+6148,U+621A,U+6234,U+64C1,U+6523,U+675C,U+67D1,U+6953,U+6CCC,U+6DF5,U+6E13,U+6F06,U+723A,U+7325,U+74E6,U+758E,U+75AB,U+75D9,U+7A40,U+8096,U+82FA,U+8587,U+8594,U+8A6B,U+8AB9,U+8B17,U+8B83,U+937C,U+963B,U+9673,U+96DB,U+9CE9,U+9F4B,U+FF67,U+FF82,U+FF93}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.73.woff2)format("woff2");unicode-range:U+221E,U+2514,U+51F9,U+5270,U+5449,U+5824,U+59A5,U+5A29,U+5D07,U+5E16,U+60E3,U+614C,U+6276,U+643E,U+64AB,U+6562,U+6681,U+670B,U+6734,U+67AF,U+6A3D,U+6B05,U+6DC0,U+6E4A,U+7259,U+732A,U+7409,U+78A7,U+7A6B,U+8015,U+809B,U+817A,U+830E,U+837B,U+85AB,U+8A23,U+8A93,U+8B00,U+8B19,U+8B21,U+8CBF,U+8FB0,U+901D,U+91B8,U+9320,U+932C,U+9688,U+96F6,U+9DF2,U+FF6A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.74.woff2)format("woff2");unicode-range:U+2002,U+2025,U+4F8D,U+51E1,U+51F8,U+5507,U+5598,U+58F1,U+5983,U+59AC,U+5C3C,U+5DE7,U+5E7D,U+5ECA,U+5F61,U+606D,U+60F9,U+636E,U+64EC,U+67DA,U+67FF,U+6813,U+68F2,U+693F,U+6B6A,U+6BBB,U+6EF4,U+7092,U+717D,U+7261,U+73C8,U+7432,U+7483,U+76FE,U+7709,U+78D0,U+81A3,U+81B3,U+82AF,U+8305,U+8309,U+8870,U+88FE,U+8CD1,U+8D66,U+906E,U+971E,U+9812,U+FF79,U+FF90}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.75.woff2)format("woff2");unicode-range:U+2464,U+2501,U+2640,U+2642,U+339D,U+4F0E,U+5091,U+50B5,U+5132,U+51CC,U+558B,U+55AA,U+585E,U+5BEE,U+5DFE,U+60B6,U+62B9,U+6349,U+6566,U+6590,U+6842,U+689D,U+6A58,U+6C70,U+6FF1,U+7815,U+7881,U+7AAA,U+7BC7,U+7DEF,U+7FA8,U+8017,U+8036,U+8061,U+821F,U+8429,U+8CE0,U+8E74,U+9019,U+90CA,U+9162,U+932F,U+93AE,U+9644,U+990C,U+9CF3,U+FF56,U+FF6E,U+FF7E,U+FF85}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.76.woff2)format("woff2");unicode-range:U+2266-2267,U+4F2F,U+5208,U+5451,U+546A,U+5589,U+576A,U+5815,U+5A9A,U+5B9B,U+5C3A,U+5EFB,U+5FAA,U+6109,U+6643,U+6652,U+695A,U+69FD,U+6B86,U+6BB4,U+6DAF,U+7089,U+70CF,U+7A00,U+7A4F,U+7B39,U+7D33,U+80E1,U+828B,U+82A6,U+86CD,U+8C8C,U+8CCA,U+8DF3,U+9077,U+9175,U+91DC,U+925B,U+9262,U+9271,U+92ED,U+9855,U+9905,U+9D28,U+FF3F,U+FF58,U+FF68,U+FF6D,U+FF9C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.77.woff2)format("woff2");unicode-range:U+2207,U+25EF,U+309C,U+4E4F,U+5146,U+51DD,U+5351,U+540A,U+5629,U+5EB5,U+5F04,U+5F13,U+60DC,U+6212,U+63B4,U+642C,U+6627,U+66A6,U+66C7,U+66FD,U+674E,U+6B96,U+6C4E,U+6DF3,U+6E67,U+6F84,U+72FC,U+733F,U+7C97,U+7DB1,U+7E4D,U+816B,U+82D1,U+84CB,U+854E,U+8607,U+86C7,U+871C,U+8776,U+8A89,U+8FC4,U+91A4,U+9285,U+9685,U+9903,U+9B31,U+9F13,U+FF42,U+FF74,U+FF91}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.78.woff2)format("woff2");unicode-range:U+4E32,U+51DB,U+53A8,U+53EA,U+5609,U+5674,U+5A92,U+5E7E,U+6115,U+611A,U+62CC,U+62ED,U+63C9,U+64B9,U+64E6,U+65CB,U+6606,U+6731,U+683D,U+6AFB,U+7460,U+771E,U+78EF,U+7B26,U+7B51,U+7CDE,U+7D10,U+7D2F,U+7D46,U+80DE,U+819C,U+84B2,U+85CD,U+865A,U+8ECC,U+9022,U+90B8,U+9192,U+9675,U+96B7,U+99FF,U+FF44,U+FF55,U+FF6C,U+FF73,U+FF75,U+FF86,U+FF8D,U+FF92,U+FFE3}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.79.woff2)format("woff2");unicode-range:U+25B3,U+30F5,U+4EAE,U+4F46,U+4F51,U+5203,U+52FF,U+55A7,U+564C,U+565B,U+57F9,U+5805,U+5B64,U+5E06,U+5F70,U+5F90,U+60E8,U+6182,U+62F3,U+62FE,U+63AA,U+64A4,U+65D7,U+673A,U+6851,U+68CB,U+68DF,U+6D1E,U+6E58,U+6E9D,U+77B3,U+7832,U+7C3F,U+7DB4,U+7F70,U+80AA,U+80C6,U+8105,U+819D,U+8276,U+8679,U+8986,U+8C9D,U+8FC5,U+916C,U+9665,U+9699,U+96C0,U+9A19,U+FF8B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.80.woff2)format("woff2");unicode-range:U+2463,U+25A1,U+4EF0,U+5076,U+5098,U+51FD,U+5302,U+5448,U+54C9,U+570B,U+583A,U+5893,U+58A8,U+58EE,U+5949,U+5BDB,U+5F26,U+5F81,U+6052,U+6170,U+61C7,U+631F,U+635C,U+664B,U+69FB,U+6F01,U+7070,U+722A,U+745E,U+755C,U+76C6,U+78C1,U+79E4,U+7BB8,U+7D0B,U+81A8,U+82D7,U+8B5C,U+8F14,U+8FB1,U+8FBB,U+9283,U+9298,U+9A30,U+FF03,U+FF50,U+FF59,U+FF7B,U+FF8E-FF8F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.81.woff2)format("woff2");unicode-range:U+2010,U+2502,U+25B6,U+4F3A,U+514B,U+5265,U+52C3,U+5339,U+53EC,U+54C0,U+55B0,U+5854,U+5B8F,U+5CB3,U+5E84,U+60DA,U+6247,U+6249,U+628A,U+62CD,U+65AC,U+6838,U+690E,U+6CF0,U+6F02,U+6F2C,U+6F70,U+708A,U+7434,U+75BE,U+77EF,U+7C60,U+7C98,U+7D1B,U+7E2B,U+80A5,U+81E3,U+820C,U+8210,U+8475,U+862D,U+8650,U+8997,U+906D,U+91C8,U+9700,U+9727,U+9DF9,U+FF3A,U+FF9A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.82.woff2)format("woff2");unicode-range:U+2103,U+5049,U+52B1,U+5320,U+5553,U+572D,U+58C7,U+5B5D,U+5BC2,U+5DE3,U+5E61,U+5F80,U+61A9,U+67D0,U+67F4,U+6C88,U+6CA1,U+6CE5,U+6D78,U+6E9C,U+6F54,U+731B,U+73B2,U+74A7,U+74F6,U+75E9,U+7B20,U+7C8B,U+7F72,U+809D,U+8108,U+82B3,U+82BD,U+84B8,U+84C4,U+88C2,U+8AE6,U+8EF8,U+902E,U+9065,U+9326,U+935B,U+938C,U+9676,U+9694,U+96F7,U+9ED9,U+FF48,U+FF4C,U+FF81}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.83.woff2)format("woff2");unicode-range:U+2500,U+3008-3009,U+4EAD,U+4F0F,U+4FCA,U+53EB,U+543E,U+57A2,U+5CF0,U+5E8F,U+5FE0,U+61B2,U+62D8,U+6442,U+64B2,U+6589,U+659C,U+67F1,U+68C4,U+6CB8,U+6D12,U+6DE1,U+6FE1,U+70C8,U+723D,U+73E0,U+7656,U+773A,U+7948,U+7B87,U+7C92,U+7D3A,U+7E1B,U+7E4A,U+819A,U+8358,U+83C5,U+84BC,U+864E,U+8912,U+8C9E,U+8D05,U+92FC,U+9396,U+98FD,U+99D2,U+FF64,U+FF7A,U+FF83}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.84.woff2)format("woff2");unicode-range:U+3014-3015,U+4E3C,U+5036,U+5075,U+533F,U+53E9,U+5531,U+5642,U+5984,U+59E6,U+5A01,U+5B6B,U+5C0B,U+5F25,U+6069,U+60A0,U+614E,U+62B5,U+62D2-62D3,U+6597,U+660C,U+674F,U+67CF,U+6841,U+6905,U+6CF3,U+6D32,U+6D69,U+6F64,U+716E,U+7761,U+7B52,U+7BE0,U+7DBF,U+7DE9,U+7F36,U+81D3,U+8302,U+8389,U+846C,U+84EE,U+8A69,U+9038,U+9D8F,U+FF47,U+FF4B,U+FF76,U+FF9B}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.85.woff2)format("woff2");unicode-range:U+25C7,U+3007,U+504F,U+507D,U+51A0,U+52A3,U+5410,U+5510,U+559A,U+5782,U+582A,U+5C0A,U+5C3F,U+5C48,U+5F6B,U+6176,U+622F,U+6279,U+62BD,U+62DD,U+65ED,U+67B6,U+6817,U+6850,U+6D6A,U+6DEB,U+6EA2,U+6EDD,U+6F5C,U+72E9,U+73A9,U+7573,U+76BF,U+7950,U+7956,U+7F8A,U+7FFC,U+80A2,U+80C3,U+83CA,U+8A02,U+8A13,U+8DF5,U+9375,U+983B,U+99B4,U+FF4E,U+FF71,U+FF89,U+FF97}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.86.woff2)format("woff2");unicode-range:U+24,U+2022,U+2212,U+221F,U+2665,U+4ECF,U+5100,U+51CD,U+52D8,U+5378,U+53F6,U+574A,U+5982,U+5996,U+5C1A,U+5E1D,U+5F84,U+609F,U+61A7,U+61F8,U+6398,U+63EE,U+6676,U+6691,U+6EB6,U+7126,U+71E5,U+7687,U+7965,U+7D17,U+80A1,U+8107,U+8266,U+85A6,U+8987,U+8CA2,U+8CAB,U+8E0A,U+9042,U+95C7,U+9810,U+9867,U+98FC,U+FF52-FF54,U+FF61,U+FF77,U+FF98-FF99}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.87.woff2)format("woff2");unicode-range:U+B0,U+226A,U+2462,U+4E39,U+4FC3,U+4FD7,U+50BE,U+50DA,U+5200,U+5211,U+54F2,U+5618,U+596A,U+5B22,U+5BB4,U+5D50,U+60A3,U+63FA,U+658E,U+65E8,U+6669,U+6795,U+679D,U+67A0,U+6B3A,U+6E09,U+757F,U+7CD6,U+7DBE,U+7FFB,U+83CC,U+83F1,U+840C,U+845B,U+8846,U+8972,U+8A34,U+8A50,U+8A87,U+8EDF,U+8FF0,U+90A6,U+9154,U+95A3,U+9663,U+9686,U+96C7,U+FF3C,U+FF7C,U+FF8A}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.88.woff2)format("woff2");unicode-range:U+25BD,U+4E59,U+4EC1,U+4FF3,U+515A,U+518A,U+525B,U+5375,U+552F,U+57A3,U+5B9C,U+5C3D,U+5E3D,U+5E7B,U+5F0A,U+6094,U+6458,U+654F,U+67F3,U+6B8A,U+6BD2,U+6C37,U+6CE1,U+6E56,U+6E7F,U+6ED1,U+6EDE,U+6F0F,U+70AD,U+7267,U+7363,U+786C,U+7A42,U+7DB2,U+7F85,U+8178,U+829D,U+8896,U+8C5A,U+8CB0,U+8CE2,U+8ED2,U+9047,U+9177,U+970A,U+9EA6,U+FF1B,U+FF31,U+FF39,U+FF80}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.89.woff2)format("woff2");unicode-range:U+A5,U+4E80,U+4F34,U+4F73,U+4F75,U+511F,U+5192,U+52AA,U+53C8,U+570F,U+57CB,U+596E,U+5D8B,U+5F66,U+5FD9,U+62DB,U+62F6,U+6328,U+633F,U+63A7,U+6469,U+6BBF,U+6C41,U+6C57,U+6D44,U+6DBC,U+706F,U+72C2,U+72ED,U+7551,U+75F4,U+7949,U+7E26,U+7FD4,U+8150,U+8AF8,U+8B0E,U+8B72,U+8CA7,U+934B,U+9A0E,U+9A12,U+9B42,U+FF41,U+FF43,U+FF45,U+FF49,U+FF4F,U+FF62-FF63}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.90.woff2)format("woff2");unicode-range:U+4E18,U+4FB5,U+5104,U+52C7,U+5353,U+5374,U+53E5,U+587E,U+594F,U+5A20,U+5DE1,U+5F18,U+5FCD,U+6291,U+62AB,U+6355,U+6392,U+63DA,U+63E1,U+656C,U+6687,U+68B0-68B1,U+68D2,U+68DA,U+6B27,U+6CBC,U+7159,U+7344,U+73CD,U+76DF,U+790E,U+7CF8,U+8102,U+88C1,U+8AA0,U+8E0F,U+9178,U+92AD,U+9670,U+96C5,U+9CF4,U+9DB4,U+FF3E,U+FF6F,U+FF72,U+FF78,U+FF7D,U+FF84,U+FF8C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.91.woff2)format("woff2");unicode-range:U+60,U+2200,U+226B,U+2461,U+517C,U+526F,U+5800,U+5B97,U+5BF8,U+5C01,U+5D29,U+5E4C,U+5E81,U+6065,U+61D0,U+667A,U+6696,U+6843,U+6C99,U+6D99,U+6EC5,U+6F22,U+6F6E,U+6FA4,U+6FEF,U+71C3,U+72D9,U+7384,U+78E8,U+7A1A,U+7A32,U+7A3C,U+7ADC,U+7CA7,U+7D2B,U+7DAD,U+7E4B,U+80A9,U+8170,U+81ED,U+820E,U+8A17,U+8AFE,U+90AA,U+914E,U+963F,U+99C4,U+9EBA,U+9F3B,U+FF38}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.92.woff2)format("woff2");unicode-range:U+2460,U+4E5F,U+4E7E,U+4ED9,U+501F,U+502B,U+5968,U+5974,U+5AC1,U+5B99,U+5BA3,U+5BE7,U+5BE9,U+5C64,U+5CB8,U+5EC3,U+5F1F,U+616E,U+6297,U+62E0,U+62EC,U+6368,U+642D,U+65E6,U+6717,U+676F,U+6B04,U+732E,U+7652,U+76CA,U+76D7,U+7802,U+7E70,U+7F6A,U+8133,U+81E8,U+866B,U+878D,U+88F8,U+8A5E,U+8CDB,U+8D08,U+907A,U+90E1,U+96F2,U+9F8D,U+FF35,U+FF37,U+FF40,U+FF9D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.93.woff2)format("woff2");unicode-range:U+21D2,U+25CE,U+300A-300B,U+4E89,U+4E9C,U+4EA1,U+5263,U+53CC,U+5426,U+5869,U+5947,U+598A,U+5999,U+5E55,U+5E72,U+5E79,U+5FAE,U+5FB9,U+602A,U+6163,U+624D,U+6749,U+6C5A,U+6CBF,U+6D45,U+6DFB,U+6E7E,U+708E,U+725B,U+7763,U+79C0,U+7BC4,U+7C89,U+7E01,U+7E2E,U+8010,U+8033,U+8C6A,U+8CC3,U+8F1D,U+8F9B,U+8FB2,U+907F,U+90F7,U+9707,U+9818,U+9B3C,U+FF0A,U+FF4D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.94.woff2)format("woff2");unicode-range:U+2015,U+2190,U+4E43,U+5019,U+5247,U+52E7,U+5438,U+54B2,U+55AB,U+57F7,U+5BD2,U+5E8A,U+5EF6,U+6016,U+60B2,U+6162,U+6319,U+6551,U+6607,U+66B4,U+675F,U+67D4,U+6B20,U+6B53,U+6CE3,U+719F,U+75B2,U+770B,U+7720,U+77AC,U+79D2,U+7AF9,U+7D05,U+7DCA,U+8056,U+80F8,U+81F3,U+8352,U+885D,U+8A70,U+8AA4,U+8CBC,U+900F,U+9084,U+91E3,U+9451,U+96C4,U+99C6,U+9AD4,U+FF70}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.95.woff2)format("woff2");unicode-range:U+2193,U+25B2,U+4E4B,U+516D,U+51C4,U+529F,U+52C9,U+5360,U+5442,U+5857,U+5915,U+59EB,U+5A9B,U+5C3B,U+6012,U+61B6,U+62B1,U+6311,U+6577,U+65E2,U+65EC,U+6613,U+6790,U+6CB9,U+7372,U+76AE,U+7D5E,U+7FCC,U+88AB,U+88D5,U+8CAF,U+8DDD,U+8ECD,U+8F38,U+8F9E,U+8FEB,U+9063,U+90F5,U+93E1,U+968A,U+968F,U+98FE,U+9EC4,U+FF1D,U+FF27,U+FF2A,U+FF36,U+FF3B,U+FF3D,U+FFE5}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.96.woff2)format("woff2");unicode-range:U+4E03,U+4F38,U+50B7,U+5264,U+5348,U+5371,U+585A,U+58CA,U+5951,U+59B9,U+59D4,U+5B98,U+5F8B,U+6388,U+64CD,U+65E7,U+6803,U+6B6F,U+6D66,U+6E0B,U+6ECB,U+6FC3,U+72AC,U+773C,U+77E2,U+7968,U+7A74,U+7DBA,U+7DD1,U+7E3E,U+808C,U+811A,U+8179,U+8239,U+8584,U+8A0E,U+8A72,U+8B66,U+8C46,U+8F29,U+90A3,U+9234,U+96F0,U+9769,U+9774,U+9AA8,U+FF26,U+FF28,U+FF9E-FF9F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.97.woff2)format("woff2");unicode-range:U+7E,U+B4,U+25C6,U+2661,U+4E92,U+4EEE,U+4FFA,U+5144,U+5237,U+5287,U+52B4,U+58C1,U+5BFF,U+5C04,U+5C06,U+5E95,U+5F31,U+5F93,U+63C3,U+640D,U+6557,U+6614,U+662F,U+67D3,U+690D,U+6BBA,U+6E6F,U+72AF,U+732B,U+7518,U+7AE0,U+7AE5,U+7AF6,U+822A,U+89E6,U+8A3A,U+8A98,U+8CB8,U+8DE1,U+8E8D,U+95D8,U+961C,U+96A3,U+96EA,U+9BAE,U+FF20,U+FF22,U+FF29,U+FF2B-FF2C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.98.woff2)format("woff2");unicode-range:U+25CB,U+4E71,U+4F59,U+50D5,U+520A,U+5217,U+5230,U+523A-523B,U+541B,U+5439,U+5747,U+59C9,U+5BDF,U+5C31,U+5DE8,U+5E7C,U+5F69,U+6050,U+60D1,U+63CF,U+663C,U+67C4,U+6885,U+6C38,U+6D6E,U+6DB2,U+6DF7,U+6E2C,U+6F5F,U+7532,U+76E3-76E4,U+7701,U+793C,U+79F0,U+7A93,U+7D00,U+7DE0,U+7E54,U+8328,U+8840,U+969C,U+96E8,U+9811,U+9AEA,U+9B5A,U+FF24,U+FF2E,U+FF57}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.99.woff2)format("woff2");unicode-range:U+2191,U+505C,U+52E4,U+5305,U+535A,U+56E0,U+59BB,U+5ACC,U+5B09,U+5B87,U+5C90,U+5DF1,U+5E2D,U+5E33,U+5F3E,U+6298,U+6383,U+653B,U+6697,U+6804,U+6A39,U+6CCA,U+6E90,U+6F2B,U+702C,U+7206,U+7236,U+7559,U+7565,U+7591,U+75C7,U+75DB,U+7B4B,U+7BB1,U+7D99,U+7FBD,U+8131,U+885B,U+8B1D,U+8FF7,U+9003,U+9045,U+96A0,U+9732,U+990A,U+99D0,U+9E97,U+9F62,U+FF25,U+FF2D}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.100.woff2)format("woff2");unicode-range:U+4E08,U+4F9D,U+5012,U+514D,U+51B7,U+5275,U+53CA,U+53F8,U+5584,U+57FC,U+5B9D,U+5BFA,U+5C3E,U+5F01,U+5FB4,U+5FD7,U+606F,U+62E1,U+6563,U+6674,U+6CB3,U+6D3E,U+6D74,U+6E1B,U+6E2F,U+718A,U+7247,U+79D8,U+7D14,U+7D66,U+7D71,U+7DF4,U+7E41,U+80CC,U+8155,U+83D3,U+8A95,U+8AB2,U+8AD6,U+8CA1,U+9000,U+9006,U+9678,U+97D3,U+9808,U+98EF,U+9A5A,U+9B45,U+FF23,U+FF30}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.101.woff2)format("woff2");unicode-range:U+25BC,U+3012,U+4EF2,U+4F0A,U+516B,U+5373,U+539A,U+53B3,U+559C,U+56F0,U+5727,U+5742,U+5965,U+59FF,U+5BC6,U+5DFB,U+5E45,U+5EAD,U+5FB3,U+6211,U+6253,U+639B,U+63A8,U+6545,U+6575,U+6628,U+672D,U+68A8,U+6BDB,U+6D25,U+707D,U+767E,U+7834,U+7B46,U+7BC9,U+8074,U+82E6,U+8349,U+8A2A,U+8D70,U+8DA3,U+8FCE,U+91CC,U+967D,U+97FF,U+9996,U+FF1C,U+FF2F,U+FF32,U+FF34}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.102.woff2)format("woff2");unicode-range:U+3D,U+5E,U+25CF,U+4E0E,U+4E5D,U+4E73,U+4E94,U+4F3C,U+5009,U+5145,U+51AC,U+5238,U+524A,U+53F3,U+547C,U+5802,U+5922,U+5A66,U+5C0E,U+5DE6,U+5FD8,U+5FEB,U+6797,U+685C,U+6B7B,U+6C5F-6C60,U+6CC9,U+6CE2,U+6D17,U+6E21,U+7167,U+7642,U+76DB,U+8001,U+821E,U+8857,U+89D2,U+8B1B,U+8B70,U+8CB4,U+8CDE,U+8F03,U+8F2A,U+968E,U+9B54,U+9E7F,U+9EBB,U+FF05,U+FF33}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.103.woff2)format("woff2");unicode-range:U+500D,U+5074,U+50CD,U+5175,U+52E2,U+5352,U+5354,U+53F2,U+5409,U+56FA,U+5A18,U+5B88,U+5BDD,U+5CA9,U+5F92,U+5FA9,U+60A9,U+623F,U+6483,U+653F,U+666F,U+66AE,U+66F2,U+6A21,U+6B66,U+6BCD,U+6D5C,U+796D,U+7A4D,U+7AEF,U+7B56,U+7B97,U+7C4D,U+7E04,U+7FA9,U+8377,U+83DC,U+83EF,U+8535,U+8863,U+88CF,U+88DC,U+8907,U+8ACB,U+90CE,U+91DD,U+FF0B,U+FF0D,U+FF19,U+FF65}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.104.woff2)format("woff2");unicode-range:U+4E01,U+4E21,U+4E38,U+52A9,U+547D,U+592E,U+5931,U+5B63,U+5C40,U+5DDE,U+5E78,U+5EFA,U+5FA1,U+604B,U+6075,U+62C5,U+632F,U+6A19,U+6C0F,U+6C11,U+6C96,U+6E05,U+70BA,U+71B1,U+7387,U+7403,U+75C5,U+77ED,U+795D,U+7B54,U+7CBE,U+7D19,U+7FA4,U+8089,U+81F4,U+8208,U+8336,U+8457,U+8A33,U+8C4A,U+8CA0,U+8CA8,U+8CC0,U+9014,U+964D,U+9803,U+983C,U+98DB,U+FF17,U+FF21}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.105.woff2)format("woff2");unicode-range:U+25,U+25A0,U+4E26,U+4F4E,U+5341,U+56F2,U+5BBF,U+5C45,U+5C55,U+5C5E,U+5DEE,U+5E9C,U+5F7C,U+6255,U+627F,U+62BC,U+65CF,U+661F,U+666E,U+66DC,U+67FB,U+6975,U+6A4B,U+6B32,U+6DF1,U+6E29,U+6FC0,U+738B,U+7686,U+7A76,U+7A81,U+7C73,U+7D75,U+7DD2,U+82E5,U+82F1,U+85AC,U+888B,U+899A,U+8A31,U+8A8C,U+8AB0,U+8B58,U+904A,U+9060,U+9280,U+95B2,U+984D,U+9CE5,U+FF18}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.106.woff2)format("woff2");unicode-range:U+30F6,U+50AC,U+5178,U+51E6,U+5224,U+52DD,U+5883,U+5897,U+590F,U+5A5A,U+5BB3,U+5C65,U+5E03,U+5E2B,U+5E30,U+5EB7,U+6271,U+63F4,U+64AE,U+6574,U+672B,U+679A,U+6A29-6A2A,U+6CA2,U+6CC1,U+6D0B,U+713C,U+74B0,U+7981,U+7A0B,U+7BC0,U+7D1A,U+7D61,U+7FD2,U+822C,U+8996,U+89AA,U+8CAC,U+8CBB,U+8D77,U+8DEF,U+9020,U+9152,U+9244,U+9662,U+967A,U+96E3,U+9759,U+FF16}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.107.woff2)format("woff2");unicode-range:U+23,U+3C,U+2192,U+4E45,U+4EFB,U+4F50,U+4F8B,U+4FC2,U+5024,U+5150,U+5272,U+5370,U+53BB,U+542B,U+56DB,U+56E3,U+57CE,U+5BC4,U+5BCC,U+5F71,U+60AA,U+6238,U+6280,U+629C,U+6539,U+66FF,U+670D,U+677E-677F,U+6839,U+69CB,U+6B4C,U+6BB5,U+6E96,U+6F14,U+72EC,U+7389,U+7814,U+79CB,U+79D1,U+79FB,U+7A0E,U+7D0D,U+85E4,U+8D64,U+9632,U+96E2,U+9805,U+99AC,U+FF1E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.108.woff2)format("woff2");unicode-range:U+2605-2606,U+301C,U+4E57,U+4FEE,U+5065,U+52DF,U+533B,U+5357,U+57DF,U+58EB,U+58F0,U+591C,U+592A-592B,U+5948,U+5B85,U+5D0E,U+5EA7,U+5FF5,U+6025,U+63A1,U+63A5,U+63DB,U+643A,U+65BD,U+671D,U+68EE,U+6982,U+6B73,U+6BD4,U+6D88,U+7570,U+7B11,U+7D76,U+8077,U+8217,U+8C37,U+8C61,U+8CC7,U+8D85,U+901F,U+962A,U+9802,U+9806,U+9854,U+98F2,U+9928,U+99C5,U+9ED2}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.109.woff2)format("woff2");unicode-range:U+266A,U+4F11,U+533A,U+5343,U+534A,U+53CD,U+5404,U+56F3,U+5B57-5B58,U+5BAE,U+5C4A,U+5E0C,U+5E2F,U+5EAB,U+5F35,U+5F79,U+614B,U+6226,U+629E,U+65C5,U+6625,U+6751,U+6821,U+6B69,U+6B8B,U+6BCE,U+6C42,U+706B,U+7C21,U+7CFB,U+805E,U+80B2,U+82B8,U+843D,U+8853,U+88C5,U+8A3C,U+8A66,U+8D8A,U+8FBA,U+9069,U+91CF,U+9752,U+975E,U+9999,U+FF0F-FF10,U+FF14-FF15}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.110.woff2)format("woff2");unicode-range:U+40,U+4E86,U+4E95,U+4F01,U+4F1D,U+4FBF,U+5099,U+5171,U+5177,U+53CB,U+53CE,U+53F0,U+5668,U+5712,U+5BA4,U+5CA1,U+5F85,U+60F3,U+653E,U+65AD,U+65E9,U+6620,U+6750,U+6761,U+6B62,U+6B74,U+6E08,U+6E80,U+7248,U+7531,U+7533,U+753A,U+77F3,U+798F,U+7F6E,U+8449,U+88FD,U+89B3,U+8A55,U+8AC7,U+8B77,U+8DB3,U+8EFD,U+8FD4,U+9031-9032,U+9580,U+9589,U+96D1,U+985E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.111.woff2)format("woff2");unicode-range:U+2B,U+D7,U+300E-300F,U+4E07,U+4E8C,U+512A,U+5149,U+518D,U+5236,U+52B9,U+52D9,U+5468,U+578B,U+57FA,U+5B8C,U+5BA2,U+5C02,U+5DE5,U+5F37,U+5F62,U+623B,U+63D0,U+652F,U+672A,U+6848,U+6D41,U+7136,U+7537,U+754C,U+76F4,U+79C1,U+7BA1,U+7D44,U+7D4C,U+7DCF,U+7DDA,U+7DE8,U+82B1,U+897F,U+8CA9,U+8CFC,U+904E,U+9664,U+982D,U+9858,U+98A8,U+9A13,U+FF13,U+FF5C}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.112.woff2)format("woff2");unicode-range:U+4E16,U+4E3B,U+4EA4,U+4EE4,U+4F4D,U+4F4F,U+4F55,U+4F9B,U+5317,U+5358,U+53C2,U+53E4,U+548C,U+571F,U+59CB,U+5CF6,U+5E38,U+63A2,U+63B2,U+6559,U+662D,U+679C,U+6C7A,U+72B6,U+7523,U+767D,U+770C,U+7A2E,U+7A3F,U+7A7A,U+7B2C,U+7B49,U+7D20,U+7D42,U+8003,U+8272,U+8A08,U+8AAC,U+8CB7,U+8EAB,U+8EE2,U+9054-9055,U+90FD,U+914D,U+91CD,U+969B,U+97F3,U+984C,U+FF06}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.113.woff2)format("woff2");unicode-range:U+26,U+5F,U+2026,U+203B,U+4E09,U+4EAC,U+4ED5,U+4FA1,U+5143,U+5199,U+5207,U+539F,U+53E3,U+53F7,U+5411,U+5473,U+5546,U+55B6,U+5929,U+597D,U+5BB9,U+5C11,U+5C4B,U+5DDD,U+5F97,U+5FC5,U+6295,U+6301,U+6307,U+671B,U+76F8,U+78BA,U+795E,U+7D30,U+7D39,U+7D9A,U+89E3,U+8A00,U+8A73,U+8A8D,U+8A9E,U+8AAD,U+8ABF,U+8CEA,U+8ECA,U+8FFD,U+904B,U+9650,U+FF11-FF12}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.114.woff2)format("woff2");unicode-range:U+3E,U+3005,U+4E0D,U+4E88,U+4ECB,U+4EE3,U+4EF6,U+4FDD,U+4FE1,U+500B,U+50CF,U+5186,U+5316,U+53D7,U+540C,U+544A,U+54E1,U+5728,U+58F2,U+5973,U+5B89,U+5C71,U+5E02,U+5E97,U+5F15,U+5FC3,U+5FDC,U+601D,U+611B,U+611F,U+671F,U+6728,U+6765,U+683C,U+6B21,U+6CE8,U+6D3B,U+6D77,U+7530,U+7740,U+7ACB,U+7D50,U+826F,U+8F09,U+8FBC,U+9001,U+9053,U+91CE,U+9762,U+98DF}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.115.woff2)format("woff2");unicode-range:U+7C,U+3080,U+4EE5,U+5148,U+516C,U+521D,U+5225,U+529B,U+52A0,U+53EF,U+56DE,U+56FD,U+5909,U+591A,U+5B66,U+5B9F,U+5BB6,U+5BFE,U+5E73,U+5E83,U+5EA6,U+5F53,U+6027,U+610F,U+6210,U+6240,U+660E,U+66F4,U+66F8,U+6709,U+6771,U+697D,U+69D8,U+6A5F,U+6C34,U+6CBB,U+73FE,U+756A,U+7684,U+771F,U+793A,U+7F8E,U+898F,U+8A2D,U+8A71,U+8FD1,U+9078,U+9577,U+96FB,U+FF5E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.116.woff2)format("woff2");unicode-range:U+A9,U+3010-3011,U+30E2,U+4E0B,U+4ECA,U+4ED6,U+4ED8,U+4F53,U+4F5C,U+4F7F,U+53D6,U+540D,U+54C1,U+5730,U+5916,U+5B50,U+5C0F,U+5F8C,U+624B,U+6570,U+6587,U+6599,U+691C,U+696D,U+6CD5,U+7269,U+7279,U+7406,U+767A-767B,U+77E5,U+7D04,U+7D22,U+8005,U+80FD,U+81EA,U+8868,U+8981,U+89A7,U+901A,U+9023,U+90E8,U+91D1,U+9332,U+958B,U+96C6,U+9AD8,U+FF1A,U+FF1F}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.117.woff2)format("woff2");unicode-range:U+4E,U+A0,U+3000,U+300C-300D,U+4E00,U+4E0A,U+4E2D,U+4E8B,U+4EBA,U+4F1A,U+5165,U+5168,U+5185,U+51FA,U+5206,U+5229,U+524D,U+52D5,U+5408,U+554F,U+5831,U+5834,U+5927,U+5B9A,U+5E74,U+5F0F,U+60C5,U+65B0,U+65B9,U+6642,U+6700,U+672C,U+682A,U+6B63,U+6C17,U+7121,U+751F,U+7528,U+753B,U+76EE,U+793E,U+884C,U+898B,U+8A18,U+9593,U+95A2,U+FF01,U+FF08-FF09}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.118.woff2)format("woff2");unicode-range:U+21-22,U+27-2A,U+2C-3B,U+3F,U+41-4D,U+4F-5D,U+61-7B,U+7D,U+AB,U+AE,U+B2-B3,U+B7,U+BB,U+C9,U+CD,U+D6,U+D8,U+DC,U+E0-E5,U+E7-ED,U+EF,U+F1-F4,U+F6,U+F8,U+FA,U+FC-FD,U+103,U+14D,U+1B0,U+300-301,U+1EBF,U+1EC7,U+2013-2014,U+201C-201D,U+2039-203A,U+203C,U+2048-2049,U+2113,U+2122,U+65E5,U+6708,U+70B9}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuPWDzrkC76y6xQwhKyPOzVM3THyvqCUY2X5AHDM.119.woff2)format("woff2");unicode-range:U+20,U+2027,U+3001-3002,U+3041-307F,U+3081-308F,U+3091-3093,U+3099-309A,U+309D-309E,U+30A1-30E1,U+30E3-30ED,U+30EF-30F0,U+30F2-30F4,U+30FB-30FE,U+FF0C,U+FF0E}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWMxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWFxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWNxL4g7eau9x0.woff2)format("woff2");unicode-range:U+1F??}@font-face{font-family:"M PLUS Rounded 1c";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWCxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWDxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWOxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWPxL4g7eau9x0.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/mplusrounded1c/v19/VdGEAYIAV6gnpUpoWwNkYvrugw9RuMWBxL4g7eau.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/quicksand/v36/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58m-wjwxUD2GF9Zc.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:Quicksand;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/quicksand/v36/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58i-wjwxUD2GF9Zc.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:Quicksand;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/quicksand/v36/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58a-wjwxUD2GFw.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/sniglet/v17/cIf9MaFLtkE3UjaJ9CChYUsEkIpdQQ.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-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/sniglet/v17/cIf9MaFLtkE3UjaJ9C6hYUsEkIo.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:Urbanist;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/urbanist/v17/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDyx4vH5mqacG1Koy1cIU.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:Urbanist;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/urbanist/v17/L0xjDF02iFML4hGCyOCpRdycFsGxSrqDyx4vEZmqacG1Koy1.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}*,:before,:after{--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: }::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\: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%3Cg%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/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='M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-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-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\: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\: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%3Cg%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/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\: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\: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\: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\: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\:bug-bold-duotone,[i-solar\:bug-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='M19 11.938V15a7 7 0 0 1-6.25 6.96V15a.75.75 0 0 0-1.5 0v6.96A7 7 0 0 1 5 15v-3.062A3.94 3.94 0 0 1 8.938 8h6.124A3.94 3.94 0 0 1 19 11.938' clip-rule='evenodd' opacity='.5'/%3E%3Cpath fill='currentColor' d='M19 14.75v-1.5h3a.75.75 0 0 1 0 1.5zm-1.504 4.586c.31-.393.58-.82.801-1.276l2.538 1.27a.75.75 0 1 1-.67 1.34zM5.703 18.06q.333.684.801 1.276l-2.669 1.335a.75.75 0 0 1-.67-1.342zM5 13.25H2a.75.75 0 0 0 0 1.5h3zm12.354-4.515l2.81-1.406a.75.75 0 1 1 .671 1.341L18.42 9.88a4 4 0 0 0-1.065-1.144M6.647 8.735c-.427.306-.79.695-1.067 1.144L3.165 8.67a.75.75 0 0 1 .67-1.341zM16.5 8.27V7.5a4.5 4.5 0 1 0-9 0v.77A3.9 3.9 0 0 1 8.938 8h6.124c.508 0 .993.096 1.438.27'/%3E%3Cpath fill='currentColor' d='M6.376 1.584a.75.75 0 0 0 .208 1.04l2.36 1.573a4.5 4.5 0 0 1 1.387-.877L7.416 1.376a.75.75 0 0 0-1.04.208m8.68 2.613a4.5 4.5 0 0 0-1.387-.877l2.915-1.944a.75.75 0 1 1 .832 1.248z' opacity='.5'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M12 14.25a.75.75 0 0 1 .75.75v7h-1.5v-7a.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\: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-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\:close-circle-bold-duotone,[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\:dialog-2-bold-duotone,[i-solar\:dialog-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' fill-rule='evenodd' d='m10.404 22.48l.275-.465c.44-.745.66-1.117 1.012-1.325c.351-.207.81-.222 1.725-.252c.859-.027 1.436-.102 1.93-.306a4.24 4.24 0 0 0 2.295-2.296c.323-.779.323-1.767.323-3.743v-.848c0-2.777 0-4.165-.625-5.185c-.35-.57-.83-1.05-1.4-1.4c-1.02-.625-2.408-.625-5.185-.625H8.21c-2.777 0-4.165 0-5.185.625c-.57.35-1.05.83-1.4 1.4C1 9.08 1 10.468 1 13.245v.848c0 1.976 0 2.964.323 3.744a4.24 4.24 0 0 0 2.295 2.295c.494.204 1.07.28 1.93.306c.916.03 1.374.045 1.725.252c.35.208.571.58 1.012 1.325l.275.465c.41.692 1.434.692 1.844 0m2.789-7.963a1.06 1.06 0 1 0 0-2.12a1.06 1.06 0 0 0 0 2.12m-2.65-1.06a1.06 1.06 0 1 1-2.121 0a1.06 1.06 0 0 1 2.12 0m-4.772 1.06a1.06 1.06 0 1 0 0-2.12a1.06 1.06 0 0 0 0 2.12' clip-rule='evenodd'/%3E%3Cpath fill='currentColor' d='M15.486 1c1.267 0 2.274 0 3.082.077c.829.079 1.53.244 2.153.626a4.8 4.8 0 0 1 1.575 1.575c.383.624.548 1.325.627 2.153c.076.808.076 1.816.076 3.082v.866c0 .901 0 1.619-.04 2.2c-.04.595-.125 1.106-.323 1.584a4.77 4.77 0 0 1-2.67 2.617q-.21.082-.368.135h-1.65c.016-.499.016-1.093.016-1.822v-.848c0-2.777 0-4.165-.625-5.185c-.35-.57-.83-1.05-1.4-1.4c-1.02-.625-2.408-.625-5.185-.625H8.21c-.986 0-1.796 0-2.478.028v-1.65q.05-.17.13-.396q.133-.389.346-.739a4.8 4.8 0 0 1 1.576-1.575c.624-.382 1.324-.547 2.153-.626C10.745 1 11.752 1 13.019 1z' 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\: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\: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\: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\: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\: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\: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\: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='solarMagniferLineDuotone0'%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(%23solarMagniferLineDuotone0)'/%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-2-bold-duotone,[i-solar\:microphone-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' 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' d='M9.75 7.75A.75.75 0 0 0 9 7H6.298a5.751 5.751 0 0 1 11.404 0H13.5a.75.75 0 0 0 0 1.5h4.25V10H13.5a.75.75 0 0 0 0 1.5h4.201a5.751 5.751 0 0 1-11.403 0H9A.75.75 0 0 0 9 10H6.25V8.5H9a.75.75 0 0 0 .75-.75' opacity='.5'/%3E%3Cpath fill='currentColor' d='M12.75 10.75c0 .414.336.75.75.75h4.201l.049-1.5H13.5a.75.75 0 0 0-.75.75m0-3c0 .414.336.75.75.75h4.25L17.701 7H13.5a.75.75 0 0 0-.75.75m-3 0A.75.75 0 0 0 9 7H6.298L6.25 8.5H9a.75.75 0 0 0 .75-.75m0 3A.75.75 0 0 0 9 10H6.25l.048 1.5H9a.75.75 0 0 0 .75-.75'/%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\: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\: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\: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\: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\: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\: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\: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-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-solar\:volume-loud-bold-duotone,[i-solar\:volume-loud-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.003 11.716c.037-1.843.056-2.764.668-3.552a3 3 0 0 1 .413-.431c.752-.636 1.746-.636 3.733-.636c.71 0 1.065 0 1.403-.092q.105-.03.209-.067c.33-.121.627-.33 1.22-.746c2.338-1.645 3.508-2.467 4.489-2.11c.188.069.37.168.533.29c.848.635.913 2.115 1.042 5.073c.048 1.096.08 2.034.08 2.555s-.032 1.46-.08 2.555c-.13 2.958-.194 4.438-1.042 5.073a2.1 2.1 0 0 1-.533.29c-.982.357-2.15-.465-4.49-2.11c-.592-.416-.889-.625-1.22-.746a3 3 0 0 0-.208-.067c-.338-.092-.693-.092-1.403-.092c-1.987 0-2.98 0-3.733-.636a3 3 0 0 1-.413-.43c-.612-.79-.63-1.71-.668-3.552a14 14 0 0 1 0-.57'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M19.49 5.552a.66.66 0 0 1 .97.094l-.53.471l.53-.47h.002v.002l.004.004l.007.009l.078.112a5 5 0 0 1 .187.305c.149.265.339.652.526 1.171C21.64 8.291 22 9.851 22 12s-.36 3.71-.736 4.75c-.187.52-.377.907-.526 1.172a5 5 0 0 1-.265.417l-.007.009l-.003.003l-.001.002s-.001.001-.531-.47l.53.471a.66.66 0 0 1-.972.094a.77.77 0 0 1-.091-1.03l.003-.005l.028-.04a3 3 0 0 0 .126-.208c.11-.195.264-.506.422-.943c.314-.871.643-2.252.643-4.222c0-1.969-.329-3.35-.643-4.222a6 6 0 0 0-.422-.942a3 3 0 0 0-.126-.207l-.028-.041l-.003-.004' clip-rule='evenodd' opacity='.4'/%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M17.757 8.416c.333-.197.753-.07.938.286l-.603.357l.603-.357l.001.002l.002.003l.003.007l.01.018l.024.053q.028.063.07.17c.053.145.12.35.185.62c.13.54.252 1.337.252 2.425c0 1.089-.122 1.886-.252 2.426c-.065.27-.132.475-.186.619a3 3 0 0 1-.094.223l-.009.018l-.003.007l-.002.003v.002s-.001.001-.604-.356l.603.357c-.185.355-.605.483-.938.286c-.33-.196-.45-.638-.272-.991l.004-.01l.035-.085c.032-.086.08-.23.13-.438c.1-.416.208-1.09.208-2.06c0-.971-.108-1.645-.208-2.061a4 4 0 0 0-.165-.523l-.004-.01c-.179-.354-.058-.796.272-.991' clip-rule='evenodd' 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-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='svgSpinners3DotsFade0' fill='freeze' attributeName='opacity' begin='0;svgSpinners3DotsFade1.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='svgSpinners3DotsFade0.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='svgSpinners3DotsFade1' fill='freeze' attributeName='opacity' begin='svgSpinners3DotsFade0.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 :where(h1,h2,h3,h4,h5,h6):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-headings);font-weight:600;line-height:1.25}.prose :where(a):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links);font-weight:500;text-decoration:underline}.prose :where(a code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-links)}.prose :where(p,ul,ol,pre):not(:where(.not-prose,.not-prose *)){margin:1em 0;line-height:1.75}.prose :where(blockquote):not(:where(.not-prose,.not-prose *)){border-left:.25em solid var(--un-prose-borders);margin:1em 0;padding-left:1em;font-style:italic}.prose :where(h1):not(:where(.not-prose,.not-prose *)){margin:1rem 0;font-size:2.25em}.prose :where(h2):not(:where(.not-prose,.not-prose *)){margin:1.75em 0 .5em;font-size:1.75em}.prose :where(h3):not(:where(.not-prose,.not-prose *)){margin:1.5em 0 .5em;font-size:1.375em}.prose :where(h4):not(:where(.not-prose,.not-prose *)){margin:1em 0;font-size:1.125em}.prose :where(img,video):not(:where(.not-prose,.not-prose *)){max-width:100%}.prose :where(figure,picture):not(:where(.not-prose,.not-prose *)){margin:1em 0}.prose :where(figcaption):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-captions);font-size:.875em}.prose :where(code):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);font-family:DM Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875em;font-weight:600}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):before{content:"`"}.prose :where(:not(pre)>code):not(:where(.not-prose,.not-prose *)):after{content:"`"}.prose :where(pre):not(:where(.not-prose,.not-prose *)){border-radius:.375rem;padding:1.25rem 1.5rem;overflow-x:auto}.prose :where(pre,code):not(:where(.not-prose,.not-prose *)){white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0}.prose :where(pre code):not(:where(.not-prose,.not-prose *)){font-weight:inherit}.prose :where(ol,ul):not(:where(.not-prose,.not-prose *)){padding-left:1.25em}.prose :where(ol):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ol[type=A]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where(.not-prose,.not-prose *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where(.not-prose,.not-prose *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where(.not-prose,.not-prose *)){list-style-type:decimal}.prose :where(ul):not(:where(.not-prose,.not-prose *)){list-style-type:disc}.prose :where(ol>li):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(ul>li):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(summary):not(:where(.not-prose,.not-prose *))::marker{color:var(--un-prose-lists)}.prose :where(hr):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-hr);margin:2em 0}.prose :where(table):not(:where(.not-prose,.not-prose *)){border-collapse:collapse;margin:1em 0;display:block;overflow-x:auto}.prose :where(tr):not(:where(.not-prose,.not-prose *)):nth-child(2n){background:var(--un-prose-bg-soft)}.prose :where(td,th):not(:where(.not-prose,.not-prose *)){border:1px solid var(--un-prose-borders);padding:.625em 1em}.prose :where(abbr):not(:where(.not-prose,.not-prose *)){cursor:help}.prose :where(kbd):not(:where(.not-prose,.not-prose *)){color:var(--un-prose-code);border:1px solid;border-radius:.25rem;padding:.25rem .5rem;font-size:.875em}.prose :where(details):not(:where(.not-prose,.not-prose *)){background:var(--un-prose-bg-soft);margin:1em 0;padding:1.25rem 1.5rem}.prose :where(summary):not(:where(.not-prose,.not-prose *)){cursor:pointer;font-weight:600}.prose{color:var(--un-prose-body);max-width:65ch}.container,[container=""]{width:100%}.scrollbar-none{scrollbar-width: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}.pointer-events-none,[pointer-events-none=""],.disabled\:pointer-events-none:disabled{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~=absolute]:before,.after\:absolute:after,[after~=absolute]:after{position:absolute}.inset-0,[inset-0=""],[before~=inset-0]:before,[after~=inset-0]:after{top:0;bottom:0;left:0;right:0}.inset-x-0,[inset-x-0=""]{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0,[bottom-0=""]{bottom:0}.bottom-11,[bottom-11=""]{bottom:2.75rem}.bottom-2{bottom:.5rem}.left-0,[left-0=""]{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.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: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}[bottom~="[calc(100%+8px)]"]{bottom:calc(100% + 8px)}[bottom~="3"]{bottom:.75rem}[right~="3"]{right:.75rem}[top~="[65dvh]"]{top:65dvh}[top~="[calc(100dvh-12rem)]"]{top:calc(100dvh - 12rem)}[top~="[calc(100dvh-15rem)]"]{top:calc(100dvh - 15rem)}.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-index:100}.z-2,[z-2=""]{z-index:2}.z-3,[z-3=""]{z-index:3}.z-30,[z-30=""]{z-index:30}.z-4,[z-4=""]{z-index:4}.z-99,[z-99=""]{z-index:99}[before~=z-0]:before{z-index:0}[after~=z--2]:after{z-index:-2}.grid,[grid=""],[grid~=\~]{display:grid}.col-span-full{grid-column:1/-1}.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}.cols-\[150px_1fr\],[grid~="cols-[150px_1fr]"]{grid-template-columns:150px 1fr}.cols-\[20px_1fr_60px\],[grid~="cols-[20px_1fr_60px]"]{grid-template-columns:20px 1fr 60px}.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-2,.grid-cols-2,[grid-cols-2=""],[grid~=cols-2]{grid-template-columns:repeat(2,minmax(0,1fr))}.m-0,[m0=""]{margin:0}.m-1,[m-1=""]{margin:.25rem}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.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}.mx2,[mx2=""]{margin-left:.5rem;margin-right:.5rem}.my{margin-top:1rem;margin-bottom:1rem}.my-0,[my-0=""]{margin-top:0;margin-bottom:0}.my-5,[my-5=""]{margin-top:1.25rem;margin-bottom:1.25rem}.my-auto,[my-auto=""]{margin-top:auto;margin-bottom:auto}.-mb-px{margin-bottom:-1px}.mb-0{margin-bottom:0}.mb-1,[mb-1=""]{margin-bottom:.25rem}.mb-2,.mb2,[mb-2=""],[mb2=""]{margin-bottom:.5rem}.mb-3,[mb-3=""]{margin-bottom:.75rem}.mb-4,[mb-4=""]{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml{margin-left:1rem}.ml-0\.5,[ml-0\.5=""]{margin-left:.125rem}.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\.5{margin-top:.125rem}.mt-1,[mt-1=""]{margin-top:.25rem}.mt-2,[mt-2=""]{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}.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,[size-3=""]{width:.75rem;height:.75rem}.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}.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-16{height:4rem}.h-18,[h-18=""]{height:4.5rem}.h-1lh{height:1lh}.h-2,.h2,[h-2=""]{height:.5rem}.h-24,[h-24=""]{height:6rem}.h-3\.5{height:.875rem}.h-30,[h-30=""]{height:7.5rem}.h-4,[h-4=""]{height:1rem}.h-48,[h-48=""]{height:12rem}.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-fit,[h-fit=""]{height:-moz-fit-content;height:fit-content}.h-full,[h-full=""]{height:100%}.h1{height:.25rem}.h3{height:.75rem}.max-h-\[10lh\],[max-h~="[10lh]"]{max-height:10lh}.max-h-\[25dvh\]{max-height:25dvh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[calc\(100dvh-7lh\)\]{max-height:calc(100dvh - 7lh)}.max-h-60,[max-h-60=""]{max-height:15rem}.max-h-none,[max-h-none=""]{max-height:none}.max-w-2xl{max-width:42rem}.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-16,[min-h-16=""]{min-height:4rem}.min-h-40px,[min-h-40px=""]{min-height:40px}.min-h-70dvh,[min-h-70dvh=""]{min-height:70dvh}.min-w-\[150px\]{min-width:150px}.min-w-\[160px\],[min-w~="[160px]"]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-0,[min-w-0=""]{min-width:0}.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}.w-\[92vw\]{width:92vw}.w-0\!{width:0!important}.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-100vw,[w-100vw=""]{width:100vw}.w-11{width:2.75rem}.w-18,[w-18=""]{width:4.5rem}.w-1lh{width:1lh}.w-2,[w-2=""]{width:.5rem}.w-25\%{width:25%}.w-3\.5{width:.875rem}.w-30,[w-30=""]{width:7.5rem}.w-4{width:1rem}.w-4\/5{width:80%}.w-5{width:1.25rem}.w-8,[w-8=""]{width:2rem}.w-90\%{width:90%}.w-95\%{width:95%}.w-fit,[w-fit=""]{width:-moz-fit-content;width:fit-content}.w-full,[w-full=""],[w~="100%"],[w~=full]{width:100%}[h~="[14px]"]{height:14px}[h~="300"]{height:75rem}[h~="50dvh"]{height:50dvh}[h~="80dvh"]{height:80dvh}[h~="85dvh"]{height:85dvh}[h~=auto]{height:auto}[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~="100dvh"]{max-height:100dvh}[max-h~="40%"]{max-height:40%}[max-w~="[calc(100dvw-1rem)]"]{max-width:calc(100dvw - 1rem)}[max-w~="500px"]{max-width:500px}[min-h~="[100px]"]{min-height:100px}[min-h~="[2lh]"]{min-height:2lh}[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%}[min-w~="3em"]{min-width:3em}[min-w~="50vw"]{min-width:50vw}[min-w~="6"]{min-width:1.5rem}[w~="[1px]"]{width:1px}[w~="100dvw"]{width:100dvw}[w~="12.5"]{width:3.125rem}[w~="20"]{width:5rem}[w~="70%"]{width:70%}[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%}.max-w-screen-xl,[max-w-screen-xl=""]{max-width:1280px}.flex,[flex=""],[flex~=\~]{display:flex}.inline-flex,[inline-flex~=\~]{display:inline-flex}.flex-1,[flex-1=""],[flex~="1"]{flex:1}.flex-shrink-0,.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\%\],[transform~="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-\[50\%\],[transform~="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--2,[transform~=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-\[-100\%\],[transform~="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-\[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-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~="[-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))}.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))}.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))}.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-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-150{--un-scale-x:1.5;--un-scale-y:1.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))}.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 pulse{0%,to{opacity:1}50%{opacity:.5}}@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}.disabled\:cursor-default:disabled{cursor:default}.cursor-pointer,[cursor-pointer=""],[cursor~=pointer]{cursor:pointer}.cursor-not-allowed,.disabled\:cursor-not-allowed:disabled,[cursor~=disabled\:not-allowed]:disabled,[disabled\:cursor-not-allowed=""]:disabled{cursor:not-allowed}.cursor-ew-resize,[cursor-ew-resize=""]{cursor:ew-resize}.select-none,[select-none=""]{-webkit-user-select:none;user-select:none}.resize-none,[resize-none=""]{resize:none}.appearance-none,[appearance-none=""]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.place-self-end{place-self:end}.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}.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}.gap-0\.5,[gap-0\.5=""]{gap:.125rem}.gap-1,[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=""],[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-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]){--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))}[divide~=y]>:not([hidden])~:not([hidden]){--un-divide-y-reverse:0;border-top-width:calc(1px*calc(1 - var(--un-divide-y-reverse)));border-bottom-width:calc(1px*var(--un-divide-y-reverse))}[divide~=gray\/25]>:not([hidden])~:not([hidden]){border-color:#9ca3af40}[border~=dashed],[divide~=dashed]>:not([hidden])~:not([hidden]){border-style:dashed}.of-clip,[of-clip=""]{overflow:clip}.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-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}.b,.border,[b=""],[border=""],[border~=\~],[border~="1"]{border-width:1px}.border-2,[border-2=""],[border~="2"],[border~="2px"]{border-width:2px}[border~="4"]{border-width:4px}.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))}.border-amber-200{--un-border-opacity:1;border-color:rgb(253 230 138/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-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-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,[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]{--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-red-200{--un-border-opacity:1;border-color:rgb(254 202 202/var(--un-border-opacity))}.border-white,[border~=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-neutral-600,.dark [border~=dark\:neutral-600],.dark [dark\:border-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-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-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,.dark [border~=dark\: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-red-800{--un-border-opacity:1;border-color:rgb(153 27 27/var(--un-border-opacity))}.dark [border~="dark:cyan-500/50"]{border-color:#06b6d480}.dark [border~="dark:neutral-700/30"]{border-color:#4040404d}.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:primary-950/10"]{border-color:oklch(29% var(--chromatic-chroma-950)calc(var(--chromatic-hue) + 0)/.1)}.dark [border~="dark:violet-500/50"]{border-color:#8b5cf680}[border~=cyan-200\/50]{border-color:#a5f3fc80}[border~=gray\/25]{border-color:#9ca3af40}[border~=neutral-200\/50]{border-color:#e5e5e580}[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~=primary-50]{--un-border-opacity:1;border-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/var(--un-border-opacity))30%,oklch(100% 0 360/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 [border~="dark:focus:neutral-600"]:focus{--un-border-opacity:1;border-color:rgb(82 82 82/var(--un-border-opacity))}.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)}[border~=focus\:neutral-200]:focus{--un-border-opacity:1;border-color:rgb(229 229 229/var(--un-border-opacity))}[border~=focus\:neutral-400]:focus{--un-border-opacity:1;border-color:rgb(163 163 163/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))}.rounded,[rounded=""]{border-radius:.25rem}.rounded-2xl,[rounded-2xl=""]{border-radius:1rem}.rounded-full,[rounded-full=""]{border-radius:9999px}.rounded-lg,[border~=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}.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-xl,[rounded-t-xl=""]{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-none,[border-none=""]{border-style:none}[border~=solid]{border-style:solid}.bg-amber-50{--un-bg-opacity:1;background-color:rgb(255 251 235/var(--un-bg-opacity))}.bg-amber-50\/80{background-color:#fffbebcc}.bg-black\/50,[bg~=black\/50]{background-color:#00000080}.bg-blue-50{--un-bg-opacity:1;background-color:rgb(239 246 255/var(--un-bg-opacity))}.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-neutral-100,[bg-neutral-100=""],[bg~=neutral-100]{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.bg-neutral-200,.dark .dark\: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-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,.dark [bg~=dark\:neutral-400],[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-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 [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-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:color(display-p3 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%,color(display-p3 1 1 1/.1))}}@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:color(display-p3 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%,color(display-p3 1 1 1))}}@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{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,#fff3)}@supports (color:color(display-p3 0 0 0)){.bg-primary-100\/20{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 0)/.2)80%,color(display-p3 1 1 1/.2))}}@supports (color:lab(0% 0 0)){.bg-primary-100\/20{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:color(display-p3 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%,color(display-p3 1 1 1/.3))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.4))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.05))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.5))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.6))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.7))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.8))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.9))}}@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=""]{--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:color(display-p3 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%,color(display-p3 1 1 1/.1))}}@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:color(display-p3 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%,color(display-p3 1 1 1))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.2))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.3))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.4))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.05))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.5))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.6))}}@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:color(display-p3 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%,color(display-p3 1 1 1/.7))}}@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{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,#fffc)}@supports (color:color(display-p3 0 0 0)){.bg-primary-50\/80{background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-50)calc(var(--chromatic-hue) + 0)/.8)30%,color(display-p3 1 1 1/.8))}}@supports (color:lab(0% 0 0)){.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:color(display-p3 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%,color(display-p3 1 1 1/.9))}}@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\/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{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{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,.dark .dark\: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-400{--un-bg-opacity:1;background-color:rgb(248 113 113/var(--un-bg-opacity))}.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-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-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-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-amber-900\/30{background-color:#78350f4d}.dark .dark\:bg-black\/30,.dark [bg~="dark:black/30"]{background-color:#0000004d}.dark .dark\:bg-black\/40{background-color:#0006}.dark .dark\:bg-blue-900\/30{background-color:#1e3a8a4d}.dark .dark\:bg-green-900\/30{background-color:#14532d4d}.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{background-color:#40404080}.dark .dark\:bg-neutral-800\/50,.dark [bg~="dark:neutral-800/50"]{background-color:#26262680}.dark .dark\:bg-neutral-900,.dark [bg~=dark\:neutral-900],.dark [dark\:bg-neutral-900=""]{--un-bg-opacity:1;background-color:rgb(23 23 23/var(--un-bg-opacity))}.dark .dark\:bg-neutral-900\/20{background-color:#17171733}.dark .dark\:bg-primary-800\/25{background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 0)/.25)}.dark .dark\:bg-red-700{--un-bg-opacity:1;background-color:rgb(185 28 28/var(--un-bg-opacity))}.dark .dark\:bg-red-900\/20{background-color:#7f1d1d33}.dark .dark\:bg-red-900\/30{background-color:#7f1d1d4d}.dark [bg~="dark:[#4e34b9]"]{--un-bg-opacity:1;background-color:rgb(78 52 185/var(--un-bg-opacity))}.dark [bg~="dark:[#676085]"]{--un-bg-opacity:1;background-color:rgb(103 96 133/var(--un-bg-opacity))}.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/20"],.group:hover [bg~="group-hover:black/20"]{background-color:#0003}.dark [bg~=dark\:blue-900]{--un-bg-opacity:1;background-color:rgb(30 58 138/var(--un-bg-opacity))}.dark [bg~=dark\:complementary-800]{--un-bg-opacity:1;background-color:oklch(42% var(--chromatic-chroma-800)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))}.dark [bg~=dark\:cyan-900]{--un-bg-opacity:1;background-color:rgb(22 78 99/var(--un-bg-opacity))}.dark [bg~=dark\:green-600]{--un-bg-opacity:1;background-color:rgb(22 163 74/var(--un-bg-opacity))}.dark [bg~=dark\:neutral-500]{--un-bg-opacity:1;background-color:rgb(115 115 115/var(--un-bg-opacity))}.dark [bg~="dark:neutral-900/50"]{background-color:#17171780}.dark [bg~="dark:neutral-900/70"]{background-color:#171717b3}.dark [bg~=dark\:neutral-950]{--un-bg-opacity:1;background-color:rgb(10 10 10/var(--un-bg-opacity))}.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))}[bg~="[#cabeff]"]{--un-bg-opacity:1;background-color:rgb(202 190 255/var(--un-bg-opacity))}[bg~="[#e6e1fc]"]{--un-bg-opacity:1;background-color:rgb(230 225 252/var(--un-bg-opacity))}[bg~=\$bg-color]{background-color:var(--bg-color)}[bg~=black\/0]{background-color:#0000}[bg~=blue-100]{--un-bg-opacity:1;background-color:rgb(219 234 254/var(--un-bg-opacity))}[bg~=complementary-100]{--un-bg-opacity:1;background-color:color-mix(in srgb,oklch(95% var(--chromatic-chroma-100)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))80%,oklch(100% 0 360/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-100\/70]{background-color:#f5f5f5b3}[bg~=neutral-200\/20]{background-color:#e5e5e533}[bg~=neutral-200\/50]{background-color:#e5e5e580}[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-500]{--un-bg-opacity:1;background-color:rgb(139 92 246/var(--un-bg-opacity))}[bg~=white\/70]{background-color:#ffffffb3}.dark [dark\:bg-neutral-700~=default\:]:default,.dark [dark\:bg-neutral-700~=checked\:]:checked{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .\[\&_div_span\]\:dark\:hover\:bg-cyan-300:hover div span{--un-bg-opacity:1;background-color:rgb(103 232 249/var(--un-bg-opacity))}.dark .\[\&_div_span\]\:dark\:hover\:bg-cyan-900:hover div span{--un-bg-opacity:1;background-color:rgb(22 78 99/var(--un-bg-opacity))}.dark .dark\:hover\:bg-black\/40:hover{background-color:#0006}.dark .dark\:hover\:bg-neutral-500:hover{--un-bg-opacity:1;background-color:rgb(115 115 115/var(--un-bg-opacity))}.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-800:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark .dark\:hover\:bg-primary-500:hover{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.dark .dark\:hover\:bg-red-500:hover{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.dark [bg~="dark:hover:complementary-700"]:hover{--un-bg-opacity:1;background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))}.dark [bg~="dark:hover:neutral-800"]:hover{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}.dark [dark\:hover\:bg-cyan-300=""]:hover{--un-bg-opacity:1;background-color:rgb(103 232 249/var(--un-bg-opacity))}.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}.hover\:bg-neutral-100:hover{--un-bg-opacity:1;background-color:rgb(245 245 245/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-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-primary-500:hover{--un-bg-opacity:1;background-color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/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-red-500:hover{--un-bg-opacity:1;background-color:rgb(239 68 68/var(--un-bg-opacity))}.hover\:bg-white\/80:hover{background-color:#fffc}[bg~=hover\:complementary-200]:hover{--un-bg-opacity:1;background-color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 180)/var(--un-bg-opacity))}[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-50]:hover{--un-bg-opacity:1;background-color:rgb(250 250 250/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-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-300:active{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.active\:bg-primary-600:active{--un-bg-opacity:1;background-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.active\:bg-red-600:active{--un-bg-opacity:1;background-color:rgb(220 38 38/var(--un-bg-opacity))}.dark .dark\:active\:bg-neutral-700:active{--un-bg-opacity:1;background-color:rgb(64 64 64/var(--un-bg-opacity))}.dark .dark\:active\:bg-primary-700:active{--un-bg-opacity:1;background-color:oklch(49% var(--chromatic-chroma-700)calc(var(--chromatic-hue) + 0)/var(--un-bg-opacity))}.dark .dark\:active\:bg-red-700:active{--un-bg-opacity:1;background-color:rgb(185 28 28/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\:gray-50]:active{--un-bg-opacity:1;background-color:rgb(249 250 251/var(--un-bg-opacity))}[bg~=active\:neutral-300]:active{--un-bg-opacity:1;background-color:rgb(212 212 212/var(--un-bg-opacity))}.dark [bg~="dark:disabled:neutral-800"]:disabled{--un-bg-opacity:1;background-color:rgb(38 38 38/var(--un-bg-opacity))}[bg~=disabled\:neutral-100]:disabled{--un-bg-opacity:1;background-color:rgb(245 245 245/var(--un-bg-opacity))}.after\:bg-white:after{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.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-1,[p-1=""]{padding:.25rem}.p-1\.5,[p-1\.5=""]{padding:.375rem}.p-2,.p2,[p-2=""],[p~="2"],[p2=""]{padding:.5rem}.p-2\.5,[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-0{padding-left:0;padding-right:0}.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-6{padding-left:1.5rem;padding-right:1.5rem}.py,.py-4,[py~="4"]{padding-top:1rem;padding-bottom:1rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1,.py1,[py-1=""],[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}.pb-0{padding-bottom:0}.pb-2,[pb-2=""]{padding-bottom:.5rem}.pb-4,[pb-4=""]{padding-bottom:1rem}.pb-6,[pb-6=""]{padding-bottom:1.5rem}.pl,.pl-4,[pl-4=""]{padding-left:1rem}.pl-10{padding-left:2.5rem}.pl-3,[pl-3=""]{padding-left:.75rem}.pl-5,[pl-5=""]{padding-left:1.25rem}.pr-\[20px\]{padding-right:20px}.pr-1,[pr-1=""]{padding-right:.25rem}.pr-4,[pr-4=""]{padding-right:1rem}.pt,.pt-4,[pt-4=""]{padding-top:1rem}.pt-0{padding-top:0}.pt-10,[pt-10=""]{padding-top:2.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-align:right}.text-wrap,[text-wrap=""]{text-wrap:wrap}.text-nowrap,[text-nowrap=""]{text-wrap:nowrap}.text-2xl,[text-2xl=""],[text~="2xl"]{font-size:1.5rem;line-height:2rem}.text-3xl,[text-3xl=""]{font-size:1.875rem;line-height:2.25rem}.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~="4xl"]{font-size:2.25rem;line-height:2.5rem}[text~="60"]{font-size:15rem}[default-text~="2"]:default{font-size:.5rem}.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-blue-300{--un-text-opacity:1;color:rgb(147 197 253/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{--un-text-opacity:1;color:rgb(74 222 128/var(--un-text-opacity))}.dark .dark\:text-neutral-100,[text~=neutral-100]{--un-text-opacity:1;color:rgb(245 245 245/var(--un-text-opacity))}.dark .dark\:text-neutral-200,.dark [dark\:text-neutral-200=""],.dark [text~=dark\:neutral-200]{--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-400,.dark [dark\:text-neutral-400=""],.dark [text~=dark\:neutral-400],.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,.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-neutral-600\/20,.dark [text~="dark:neutral-600/20"]{color:#52525233}.dark .dark\:text-primary-100,.dark [text~=dark\: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-300,.dark [text~=dark\:primary-300],.text-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)}.dark .dark\:text-primary-400,.dark [text~=dark\: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-500,.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))}.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-300{--un-text-opacity:1;color:rgb(252 165 165/var(--un-text-opacity))}.dark .dark\:text-red-400{--un-text-opacity:1;color:rgb(248 113 113/var(--un-text-opacity))}.dark .dark\:text-white,.dark [dark\:text-white=""],.dark [text~=dark\:white],.text-white,[text-white=""],[text~=white]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}.dark .dark\:text-white\/50{color:#ffffff80}.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-600/50"]{color:#52525280}.dark [text~=dark\:neutral-900],.text-neutral-900{--un-text-opacity:1;color:rgb(23 23 23/var(--un-text-opacity))}.dark [text~=dark\:orange-500]{--un-text-opacity:1;color:rgb(249 115 22/var(--un-text-opacity))}.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}.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-black,[text-black=""]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.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-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-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=""],[text~=neutral-700]{--un-text-opacity:1;color:rgb(64 64 64/var(--un-text-opacity))}.text-neutral-800{--un-text-opacity:1;color:rgb(38 38 38/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-red-500{--un-text-opacity:1;color:rgb(239 68 68/var(--un-text-opacity))}.text-red-600{--un-text-opacity:1;color:rgb(220 38 38/var(--un-text-opacity))}.text-red-700{--un-text-opacity:1;color:rgb(185 28 28/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~=complementary-400]{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 180)/var(--un-text-opacity))}[text~=cyan-400]{--un-text-opacity:1;color:rgb(34 211 238/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~=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~="dark:text-primary-300/80"]:hover{color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.8)}.dark [text~="dark:hover:primary-200"]:hover{--un-text-opacity:1;color:oklch(90% var(--chromatic-chroma-200)calc(var(--chromatic-hue) + 0)/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-primary-600\/80]:hover{color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.8)}[text~=hover\:primary-500]:hover{--un-text-opacity:1;color:oklch(62% var(--chromatic-chroma-500)calc(var(--chromatic-hue) + 0)/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 [text~="placeholder:dark:hover:primary-400"]:hover::placeholder{--un-text-opacity:1;color:oklch(74% var(--chromatic-chroma-400)calc(var(--chromatic-hue) + 0)/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:primary-300"]::placeholder{--un-text-opacity:1;color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/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)}[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\: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-10,.lh-10{line-height:2.5rem}[leading~="[0.75]"]{line-height:.75}[leading~="[1]"]{line-height:1}.font-cuteen,[font-cuteen=""]{font-family:Sniglet}.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,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-italic,.italic,[font-italic=""]{font-style:italic}.underline,[underline=""]{text-decoration-line:underline}.tab,[aria-checked~=tab][aria-checked=true],[tab=""],[checked~=tab]:checked{-moz-tab-size:4;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)}.\[\&\: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,[opacity-0=""]{opacity:0}.op50,.opacity-50,[op50=""]{opacity:.5}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95,[opacity-95=""]{opacity:.95}[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=""]{--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-green-500=""]{--un-shadow-opacity:1;--un-shadow-color:rgb(34 197 94/var(--un-shadow-opacity))}[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)}.outline{outline-style:solid}.outline-none,[outline-none=""],[outline~=focus-within\:none]:focus-within{outline-offset:2px;outline:2px solid #0000}.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)}.focus\:ring-offset-2:focus{--un-ring-offset-width:2px}.dark .dark\:focus\:ring-neutral-600\/50:focus{--un-ring-color:#52525280 }.dark .dark\:focus\:ring-primary-600\/50:focus{--un-ring-color:oklch(54% var(--chromatic-chroma-600)calc(var(--chromatic-hue) + 0)/.5)}.dark .dark\:focus\:ring-red-600\/50:focus{--un-ring-color:#dc262680 }.focus\:ring-black\/10:focus{--un-ring-color:#0000001a }.focus\:ring-neutral-300\/50:focus{--un-ring-color:#d4d4d480 }.focus\:ring-primary-300\/50:focus{--un-ring-color:oklch(85% var(--chromatic-chroma-300)calc(var(--chromatic-hue) + 0)/.5)}.focus\:ring-red-300\/50:focus{--un-ring-color:#fca5a580 }.dark .dark\:focus\:ring-offset-neutral-900:focus{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(23 23 23/var(--un-ring-offset-opacity))}.focus\:ring-offset-white:focus{--un-ring-offset-opacity:1;--un-ring-offset-color:rgb(255 255 255/var(--un-ring-offset-opacity))}.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-opacity,[transition-opacity=""]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.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~=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~="10"]{transition-delay:10ms}[delay~="11"]{transition-delay:11ms}[delay~="19"]{transition-delay:19ms}[delay~="2"]{transition-delay:2ms}[delay~="20"]{transition-delay:20ms}[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}.after\:content-\[\'\'\]:after,.content-empty,[before~=content-empty]:before,[after~=content-empty]:after{content:""}.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]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/default-0mJyAaQN.js","assets/HeaderLink-B1-yiGgJ.js","assets/HeaderLink-Iv0v2SA7.css","assets/settings-Bod_1WHj.js","assets/pages-B_XiJ3Wi.js","assets/route-block-DWE87cA-.js","assets/AnimatedWave-FWv7Aoa4.js","assets/Basic-eHldbasx.js","assets/AnimatedWave-dg9fCal0.css","assets/Scenes-BRyVCX-j.js","assets/import-url-browser-gqaMLBiE.js","assets/duckdb-mvp-DdkY0Vq-.js","assets/background-remove-612OSbeu.js","assets/transformers.web-BWxQFDpM.js","assets/InputFile-DO1WMP2V.js","assets/gesture-circle-DCCP1PVe.js","assets/image-CAayhVhY.js","assets/image-BhuwcwI9.css","assets/polaroid-ClXFWlFr.js","assets/vibrant-pmbYNvM6.js","assets/browser-CSlAJ-iu.js","assets/settings-B6QGUj0K.js","assets/IconAnimation-yDQP_Ncr.js","assets/airi-card-CIQghUKu.js","assets/CardCreate-Rv0-Zj2Y.js","assets/CardCreationDialog-e-ER1OFp.js","assets/dist-CM_LBh2l.js","assets/CardCreationDialog-CG2KLbdk.css","assets/CardDetailDialog-Dx3dwrQO.js","assets/DeleteCardDialog-CMHp54f3.js","assets/CardListItem-D2mGsTNO.js","assets/CardCreate-_WmCZI0F.js","assets/CardCreationDialog-BeDyQku3.js","assets/CardDetailDialog-DS3Wn753.js","assets/CardListItem-HblUJ8mm.js","assets/DeleteCardDialog-BU_LHgTA.js","assets/appearance-nnrTPNaJ.js","assets/color-scheme-CRBG9uYh.js","assets/ColorPalette-D44Srp6v.js","assets/color-scheme-DQ9rzeUD.css","assets/developer-B3mC2s_x.js","assets/general-MWxAYrT-.js","assets/memory-BUvt7DgX.js","assets/models-CFsgoKO6.js","assets/icon-animation-C9bqWV38.js","assets/models-D8ntFVBl.css","assets/modules-9avIG6iD.js","assets/consciousness-DKxM8jWu.js","assets/hearing-CRj71d-D.js","assets/memory-long-term-DGbK0bay.js","assets/memory-short-term-MnudAItY.js","assets/speech-CgPaoQOI.js","assets/Textarea-BvqhLeCk.js","assets/providers-DEM9Tm1c.js","assets/alibaba-cloud-model-studio-CigdA2eh.js","assets/anthropic-C1-YVtDu.js","assets/cloudflare-workers-ai-9dIfUy-z.js","assets/deepseek-C9ey36GY.js","assets/elevenlabs-Svidxf1r.js","assets/featherless-ai-DF2K1yKk.js","assets/fireworks-ai-CKsopCss.js","assets/google-generative-ai-5ZQ3g8vz.js","assets/microsoft-speech-DWy-RkN7.js","assets/mistral-ai-DoJfmKbx.js","assets/moonshot-ai-Cau_K86f.js","assets/novita-ai-D9JggVed.js","assets/ollama-D8ZG0VwN.js","assets/openai-BwGLKk9I.js","assets/openai-audio-speech-DU29tEDJ.js","assets/openai-audio-transcription-EptmXPAp.js","assets/openrouter-ai-BK1ttAnA.js","assets/player2-CVCTsITQ.js","assets/player2-speech-omvRzl7n.js","assets/together-ai-BsZHvE5t.js","assets/volcengine-4CqtHmsk.js","assets/xai-DIVtUzH3.js","assets/scene-Cu9Mso0l.js","assets/stage-B_hSnz5Y.js","assets/filter-message-CFDl3g_d.js","assets/delays-CHbcnvO4.js","assets/emotions-5q0BUTGM.js","assets/messages-FIemZxGj.js"])))=>i.map(i=>d[i]); var babelHelpers=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({}),__create=Object.create,__defProp$1=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp$1=Object.prototype.hasOwnProperty,__esmMin=(fn$5,res)=>()=>(fn$5&&(res=fn$5(fn$5=0)),res),__commonJSMin=(cb$1,mod)=>()=>(mod||cb$1((mod={exports:{}}).exports,mod),mod.exports),__export=(target$1,all$3)=>{for(var name$2 in all$3)__defProp$1(target$1,name$2,{get:all$3[name$2],enumerable:!0})},__copyProps=(to$1,from,except,desc)=>{if(from&&typeof from==`object`||typeof from==`function`)for(var keys$3=__getOwnPropNames(from),i$1=0,n$2=keys$3.length,key$1;i$1from[k$4]).bind(null,key$1),enumerable:!(desc=__getOwnPropDesc(from,key$1))||desc.enumerable});return to$1},__toESM=(mod,isNodeMode,target$1)=>(target$1=mod==null?{}:__create(__getProtoOf(mod)),__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp$1(target$1,`default`,{value:mod,enumerable:!0}):target$1,mod)),__toCommonJS=mod=>__copyProps(__defProp$1({},`__esModule`,{value:!0}),mod),__toDynamicImportESM=isNodeMode=>mod=>__toESM(mod.default,isNodeMode),__require=(x$3=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(x$3,{get:(a$2,b$3)=>(typeof require<`u`?require:a$2)[b$3]}):x$3)(function(x$3){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+x$3+"\" in an environment that doesn't expose the `require` function.")});(function(){let relList=document.createElement(`link`).relList;if(relList&&relList.supports&&relList.supports(`modulepreload`))return;for(let link$1 of document.querySelectorAll(`link[rel="modulepreload"]`))processPreload(link$1);new MutationObserver(mutations$1=>{for(let mutation of mutations$1){if(mutation.type!==`childList`)continue;for(let node$1 of mutation.addedNodes)node$1.tagName===`LINK`&&node$1.rel===`modulepreload`&&processPreload(node$1)}}).observe(document,{childList:!0,subtree:!0});function getFetchOpts(link$1){let fetchOpts={};return link$1.integrity&&(fetchOpts.integrity=link$1.integrity),link$1.referrerPolicy&&(fetchOpts.referrerPolicy=link$1.referrerPolicy),link$1.crossOrigin===`use-credentials`?fetchOpts.credentials=`include`:link$1.crossOrigin===`anonymous`?fetchOpts.credentials=`omit`:fetchOpts.credentials=`same-origin`,fetchOpts}function processPreload(link$1){if(link$1.ep)return;link$1.ep=!0;let fetchOpts=getFetchOpts(link$1);fetch(link$1.href,fetchOpts)}})(); /** * @vue/shared v3.5.17 @@ -6,16 +6,16 @@ var babelHelpers=function(exports){function t(e){"@babel/helpers - typeof";retur * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ -function makeMap(str){let map=Object.create(null);for(let key$1 of str.split(`,`))map[key$1]=1;return val=>val in map}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=key$1=>key$1.charCodeAt(0)===111&&key$1.charCodeAt(1)===110&&(key$1.charCodeAt(2)>122||key$1.charCodeAt(2)<97),isModelListener=key$1=>key$1.startsWith(`onUpdate:`),extend$1=Object.assign,remove$1=(arr,el)=>{let i$1=arr.indexOf(el);i$1>-1&&arr.splice(i$1,1)},hasOwnProperty$3=Object.prototype.hasOwnProperty,hasOwn$4=(val,key$1)=>hasOwnProperty$3.call(val,key$1),isArray$5=Array.isArray,isMap=val=>toTypeString$1(val)===`[object Map]`,isSet=val=>toTypeString$1(val)===`[object Set]`,isDate$1=val=>toTypeString$1(val)===`[object Date]`,isRegExp$1=val=>toTypeString$1(val)===`[object RegExp]`,isFunction$1=val=>typeof val==`function`,isString$2=val=>typeof val==`string`,isSymbol=val=>typeof val==`symbol`,isObject$5=val=>typeof val==`object`&&!!val,isPromise$1=val=>(isObject$5(val)||isFunction$1(val))&&isFunction$1(val.then)&&isFunction$1(val.catch),objectToString$1=Object.prototype.toString,toTypeString$1=value$1=>objectToString$1.call(value$1),toRawType=value$1=>toTypeString$1(value$1).slice(8,-1),isPlainObject$6=val=>toTypeString$1(val)===`[object Object]`,isIntegerKey=key$1=>isString$2(key$1)&&key$1!==`NaN`&&key$1[0]!==`-`&&``+parseInt(key$1,10)===key$1,isReservedProp=makeMap(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),cacheStringFunction$2=fn$5=>{let cache$1=Object.create(null);return str=>{let hit=cache$1[str];return hit||(cache$1[str]=fn$5(str))}},camelizeRE$2=/-(\w)/g,camelize=cacheStringFunction$2(str=>str.replace(camelizeRE$2,(_$1,c$4)=>c$4?c$4.toUpperCase():``)),hyphenateRE$2=/\B([A-Z])/g,hyphenate$2=cacheStringFunction$2(str=>str.replace(hyphenateRE$2,`-$1`).toLowerCase()),capitalize$1=cacheStringFunction$2(str=>str.charAt(0).toUpperCase()+str.slice(1)),toHandlerKey=cacheStringFunction$2(str=>{let s$1=str?`on${capitalize$1(str)}`:``;return s$1}),hasChanged=(value$1,oldValue)=>!Object.is(value$1,oldValue),invokeArrayFns=(fns,...arg)=>{for(let i$1=0;i$1{Object.defineProperty(obj,key$1,{configurable:!0,enumerable:!1,writable,value:value$1})},looseToNumber=val=>{let n$2=parseFloat(val);return isNaN(n$2)?val:n$2},toNumber=val=>{let n$2=isString$2(val)?Number(val):NaN;return isNaN(n$2)?val:n$2};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},GLOBALS_ALLOWED=`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`,isGloballyAllowed=makeMap(GLOBALS_ALLOWED);function normalizeStyle(value$1){if(isArray$5(value$1)){let res={};for(let i$1=0;i$1{if(item){let tmp$1=item.split(propertyDelimiterRE);tmp$1.length>1&&(ret[tmp$1[0].trim()]=tmp$1[1].trim())}}),ret}function normalizeClass(value$1){let res=``;if(isString$2(value$1))res=value$1;else if(isArray$5(value$1))for(let i$1=0;i$1looseEqual(item,val))}const isRef$1=val=>!!(val&&val.__v_isRef===!0),toDisplayString=val=>isString$2(val)?val:val==null?``:isArray$5(val)||isObject$5(val)&&(val.toString===objectToString$1||!isFunction$1(val.toString))?isRef$1(val)?toDisplayString(val.value):JSON.stringify(val,replacer,2):String(val),replacer=(_key,val)=>isRef$1(val)?replacer(_key,val.value):isMap(val)?{[`Map(${val.size})`]:[...val.entries()].reduce((entries,[key$1,val2],i$1)=>(entries[stringifySymbol(key$1,i$1)+` =>`]=val2,entries),{})}:isSet(val)?{[`Set(${val.size})`]:[...val.values()].map(v$1=>stringifySymbol(v$1))}:isSymbol(val)?stringifySymbol(val):isObject$5(val)&&!isArray$5(val)&&!isPlainObject$6(val)?String(val):val,stringifySymbol=(v$1,i$1=``)=>{var _a$2;return isSymbol(v$1)?`Symbol(${(_a$2=v$1.description)??i$1})`:v$1};function warn$2(msg,...args){console.warn(`[Vue warn] ${msg}`,...args)}let activeEffectScope;var EffectScope=class{constructor(detached=!1){this.detached=detached,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!detached&&activeEffectScope&&(this.index=(activeEffectScope.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let i$1,l$1;if(this.scopes)for(i$1=0,l$1=this.scopes.length;i$10&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(fromParent){if(this._active){this._active=!1;let i$1,l$1;for(i$1=0,l$1=this.effects.length;i$10)return;if(batchedComputed){let e$3=batchedComputed;for(batchedComputed=void 0;e$3;){let next=e$3.next;e$3.next=void 0,e$3.flags&=-9,e$3=next}}let error;for(;batchedSub;){let e$3=batchedSub;for(batchedSub=void 0;e$3;){let next=e$3.next;if(e$3.next=void 0,e$3.flags&=-9,e$3.flags&1)try{e$3.trigger()}catch(err){error||=err}e$3=next}}if(error)throw error}function prepareDeps(sub){for(let link$1=sub.deps;link$1;link$1=link$1.nextDep)link$1.version=-1,link$1.prevActiveLink=link$1.dep.activeLink,link$1.dep.activeLink=link$1}function cleanupDeps(sub){let head$1,tail=sub.depsTail,link$1=tail;for(;link$1;){let prev=link$1.prevDep;link$1.version===-1?(link$1===tail&&(tail=prev),removeSub(link$1),removeDep(link$1)):head$1=link$1,link$1.dep.activeLink=link$1.prevActiveLink,link$1.prevActiveLink=void 0,link$1=prev}sub.deps=head$1,sub.depsTail=tail}function isDirty$1(sub){for(let link$1=sub.deps;link$1;link$1=link$1.nextDep)if(link$1.dep.version!==link$1.version||link$1.dep.computed&&(refreshComputed(link$1.dep.computed)||link$1.dep.version!==link$1.version))return!0;return!!sub._dirty}function refreshComputed(computed$2){if(computed$2.flags&4&&!(computed$2.flags&16)||(computed$2.flags&=-17,computed$2.globalVersion===globalVersion)||(computed$2.globalVersion=globalVersion,!computed$2.isSSR&&computed$2.flags&128&&(!computed$2.deps&&!computed$2._dirty||!isDirty$1(computed$2))))return;computed$2.flags|=2;let dep=computed$2.dep,prevSub=activeSub,prevShouldTrack=shouldTrack;activeSub=computed$2,shouldTrack=!0;try{prepareDeps(computed$2);let value$1=computed$2.fn(computed$2._value);(dep.version===0||hasChanged(value$1,computed$2._value))&&(computed$2.flags|=128,computed$2._value=value$1,dep.version++)}catch(err){throw dep.version++,err}finally{activeSub=prevSub,shouldTrack=prevShouldTrack,cleanupDeps(computed$2),computed$2.flags&=-3}}function removeSub(link$1,soft=!1){let{dep,prevSub,nextSub}=link$1;if(prevSub&&(prevSub.nextSub=nextSub,link$1.prevSub=void 0),nextSub&&(nextSub.prevSub=prevSub,link$1.nextSub=void 0),dep.subs===link$1&&(dep.subs=prevSub,!prevSub&&dep.computed)){dep.computed.flags&=-5;for(let l$1=dep.computed.deps;l$1;l$1=l$1.nextDep)removeSub(l$1,!0)}!soft&&!--dep.sc&&dep.map&&dep.map.delete(dep.key)}function removeDep(link$1){let{prevDep,nextDep}=link$1;prevDep&&(prevDep.nextDep=nextDep,link$1.prevDep=void 0),nextDep&&(nextDep.prevDep=prevDep,link$1.nextDep=void 0)}function effect(fn$5,options$1){fn$5.effect instanceof ReactiveEffect&&(fn$5=fn$5.effect.fn);let e$3=new ReactiveEffect(fn$5);options$1&&extend$1(e$3,options$1);try{e$3.run()}catch(err){throw e$3.stop(),err}let runner=e$3.run.bind(e$3);return runner.effect=e$3,runner}function stop(runner){runner.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){let last=trackStack.pop();shouldTrack=last===void 0?!0:last}function cleanupEffect(e$3){let{cleanup}=e$3;if(e$3.cleanup=void 0,cleanup){let prevSub=activeSub;activeSub=void 0;try{cleanup()}finally{activeSub=prevSub}}}let globalVersion=0;var Link=class{constructor(sub,dep){this.sub=sub,this.dep=dep,this.version=dep.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Dep=class{constructor(computed$2){this.computed=computed$2,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(debugInfo){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let link$1=this.activeLink;if(link$1===void 0||link$1.sub!==activeSub)link$1=this.activeLink=new Link(activeSub,this),activeSub.deps?(link$1.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=link$1,activeSub.depsTail=link$1):activeSub.deps=activeSub.depsTail=link$1,addSub(link$1);else if(link$1.version===-1&&(link$1.version=this.version,link$1.nextDep)){let next=link$1.nextDep;next.prevDep=link$1.prevDep,link$1.prevDep&&(link$1.prevDep.nextDep=next),link$1.prevDep=activeSub.depsTail,link$1.nextDep=void 0,activeSub.depsTail.nextDep=link$1,activeSub.depsTail=link$1,activeSub.deps===link$1&&(activeSub.deps=next)}return link$1}trigger(debugInfo){this.version++,globalVersion++,this.notify(debugInfo)}notify(debugInfo){startBatch();try{for(let link$1=this.subs;link$1;link$1=link$1.prevSub)link$1.sub.notify()&&link$1.sub.dep.notify()}finally{endBatch()}}};function addSub(link$1){if(link$1.dep.sc++,link$1.sub.flags&4){let computed$2=link$1.dep.computed;if(computed$2&&!link$1.dep.subs){computed$2.flags|=20;for(let l$1=computed$2.deps;l$1;l$1=l$1.nextDep)addSub(l$1)}let currentTail=link$1.dep.subs;currentTail!==link$1&&(link$1.prevSub=currentTail,currentTail&&(currentTail.nextSub=link$1)),link$1.dep.subs=link$1}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(``),MAP_KEY_ITERATE_KEY=Symbol(``),ARRAY_ITERATE_KEY=Symbol(``);function track(target$1,type,key$1){if(shouldTrack&&activeSub){let depsMap=targetMap.get(target$1);depsMap||targetMap.set(target$1,depsMap=new Map);let dep=depsMap.get(key$1);dep||(depsMap.set(key$1,dep=new Dep),dep.map=depsMap,dep.key=key$1),dep.track()}}function trigger(target$1,type,key$1,newValue,oldValue,oldTarget){let depsMap=targetMap.get(target$1);if(!depsMap){globalVersion++;return}let run=dep=>{dep&&dep.trigger()};if(startBatch(),type===`clear`)depsMap.forEach(run);else{let targetIsArray=isArray$5(target$1),isArrayIndex=targetIsArray&&isIntegerKey(key$1);if(targetIsArray&&key$1===`length`){let newLength=Number(newValue);depsMap.forEach((dep,key2)=>{(key2===`length`||key2===ARRAY_ITERATE_KEY||!isSymbol(key2)&&key2>=newLength)&&run(dep)})}else switch((key$1!==void 0||depsMap.has(void 0))&&run(depsMap.get(key$1)),isArrayIndex&&run(depsMap.get(ARRAY_ITERATE_KEY)),type){case`add`:targetIsArray?isArrayIndex&&run(depsMap.get(`length`)):(run(depsMap.get(ITERATE_KEY)),isMap(target$1)&&run(depsMap.get(MAP_KEY_ITERATE_KEY)));break;case`delete`:targetIsArray||(run(depsMap.get(ITERATE_KEY)),isMap(target$1)&&run(depsMap.get(MAP_KEY_ITERATE_KEY)));break;case`set`:isMap(target$1)&&run(depsMap.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(object,key$1){let depMap=targetMap.get(object);return depMap&&depMap.get(key$1)}function reactiveReadArray(array){let raw$3=toRaw(array);return raw$3===array?raw$3:(track(raw$3,`iterate`,ARRAY_ITERATE_KEY),isShallow(array)?raw$3:raw$3.map(toReactive))}function shallowReadArray(arr){return track(arr=toRaw(arr),`iterate`,ARRAY_ITERATE_KEY),arr}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...args){return reactiveReadArray(this).concat(...args.map(x$3=>isArray$5(x$3)?reactiveReadArray(x$3):x$3))},entries(){return iterator(this,`entries`,value$1=>(value$1[1]=toReactive(value$1[1]),value$1))},every(fn$5,thisArg){return apply$1(this,`every`,fn$5,thisArg,void 0,arguments)},filter(fn$5,thisArg){return apply$1(this,`filter`,fn$5,thisArg,v$1=>v$1.map(toReactive),arguments)},find(fn$5,thisArg){return apply$1(this,`find`,fn$5,thisArg,toReactive,arguments)},findIndex(fn$5,thisArg){return apply$1(this,`findIndex`,fn$5,thisArg,void 0,arguments)},findLast(fn$5,thisArg){return apply$1(this,`findLast`,fn$5,thisArg,toReactive,arguments)},findLastIndex(fn$5,thisArg){return apply$1(this,`findLastIndex`,fn$5,thisArg,void 0,arguments)},forEach(fn$5,thisArg){return apply$1(this,`forEach`,fn$5,thisArg,void 0,arguments)},includes(...args){return searchProxy(this,`includes`,args)},indexOf(...args){return searchProxy(this,`indexOf`,args)},join(separator){return reactiveReadArray(this).join(separator)},lastIndexOf(...args){return searchProxy(this,`lastIndexOf`,args)},map(fn$5,thisArg){return apply$1(this,`map`,fn$5,thisArg,void 0,arguments)},pop(){return noTracking(this,`pop`)},push(...args){return noTracking(this,`push`,args)},reduce(fn$5,...args){return reduce(this,`reduce`,fn$5,args)},reduceRight(fn$5,...args){return reduce(this,`reduceRight`,fn$5,args)},shift(){return noTracking(this,`shift`)},some(fn$5,thisArg){return apply$1(this,`some`,fn$5,thisArg,void 0,arguments)},splice(...args){return noTracking(this,`splice`,args)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(comparer){return reactiveReadArray(this).toSorted(comparer)},toSpliced(...args){return reactiveReadArray(this).toSpliced(...args)},unshift(...args){return noTracking(this,`unshift`,args)},values(){return iterator(this,`values`,toReactive)}};function iterator(self$1,method,wrapValue){let arr=shallowReadArray(self$1),iter=arr[method]();return arr!==self$1&&!isShallow(self$1)&&(iter._next=iter.next,iter.next=()=>{let result=iter._next();return result.value&&=wrapValue(result.value),result}),iter}const arrayProto=Array.prototype;function apply$1(self$1,method,fn$5,thisArg,wrappedRetFn,args){let arr=shallowReadArray(self$1),needsWrap=arr!==self$1&&!isShallow(self$1),methodFn=arr[method];if(methodFn!==arrayProto[method]){let result2=methodFn.apply(self$1,args);return needsWrap?toReactive(result2):result2}let wrappedFn=fn$5;arr!==self$1&&(needsWrap?wrappedFn=function(item,index$1){return fn$5.call(this,toReactive(item),index$1,self$1)}:fn$5.length>2&&(wrappedFn=function(item,index$1){return fn$5.call(this,item,index$1,self$1)}));let result=methodFn.call(arr,wrappedFn,thisArg);return needsWrap&&wrappedRetFn?wrappedRetFn(result):result}function reduce(self$1,method,fn$5,args){let arr=shallowReadArray(self$1),wrappedFn=fn$5;return arr!==self$1&&(isShallow(self$1)?fn$5.length>3&&(wrappedFn=function(acc,item,index$1){return fn$5.call(this,acc,item,index$1,self$1)}):wrappedFn=function(acc,item,index$1){return fn$5.call(this,acc,toReactive(item),index$1,self$1)}),arr[method](wrappedFn,...args)}function searchProxy(self$1,method,args){let arr=toRaw(self$1);track(arr,`iterate`,ARRAY_ITERATE_KEY);let res=arr[method](...args);return(res===-1||res===!1)&&isProxy(args[0])?(args[0]=toRaw(args[0]),arr[method](...args)):res}function noTracking(self$1,method,args=[]){pauseTracking(),startBatch();let res=toRaw(self$1)[method].apply(self$1,args);return endBatch(),resetTracking(),res}const isNonTrackableKeys=makeMap(`__proto__,__v_isRef,__isVue`),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(key$1=>key$1!==`arguments`&&key$1!==`caller`).map(key$1=>Symbol[key$1]).filter(isSymbol));function hasOwnProperty$2(key$1){isSymbol(key$1)||(key$1=String(key$1));let obj=toRaw(this);return track(obj,`has`,key$1),obj.hasOwnProperty(key$1)}var BaseReactiveHandler=class{constructor(_isReadonly=!1,_isShallow=!1){this._isReadonly=_isReadonly,this._isShallow=_isShallow}get(target$1,key$1,receiver){if(key$1===`__v_skip`)return target$1.__v_skip;let isReadonly2=this._isReadonly,isShallow2=this._isShallow;if(key$1===`__v_isReactive`)return!isReadonly2;if(key$1===`__v_isReadonly`)return isReadonly2;if(key$1===`__v_isShallow`)return isShallow2;if(key$1===`__v_raw`)return receiver===(isReadonly2?isShallow2?shallowReadonlyMap:readonlyMap:isShallow2?shallowReactiveMap:reactiveMap).get(target$1)||Object.getPrototypeOf(target$1)===Object.getPrototypeOf(receiver)?target$1:void 0;let targetIsArray=isArray$5(target$1);if(!isReadonly2){let fn$5;if(targetIsArray&&(fn$5=arrayInstrumentations[key$1]))return fn$5;if(key$1===`hasOwnProperty`)return hasOwnProperty$2}let res=Reflect.get(target$1,key$1,isRef(target$1)?target$1:receiver);return(isSymbol(key$1)?builtInSymbols.has(key$1):isNonTrackableKeys(key$1))||(isReadonly2||track(target$1,`get`,key$1),isShallow2)?res:isRef(res)?targetIsArray&&isIntegerKey(key$1)?res:res.value:isObject$5(res)?isReadonly2?readonly(res):reactive(res):res}},MutableReactiveHandler=class extends BaseReactiveHandler{constructor(isShallow2=!1){super(!1,isShallow2)}set(target$1,key$1,value$1,receiver){let oldValue=target$1[key$1];if(!this._isShallow){let isOldValueReadonly=isReadonly(oldValue);if(!isShallow(value$1)&&!isReadonly(value$1)&&(oldValue=toRaw(oldValue),value$1=toRaw(value$1)),!isArray$5(target$1)&&isRef(oldValue)&&!isRef(value$1))return isOldValueReadonly?!1:(oldValue.value=value$1,!0)}let hadKey=isArray$5(target$1)&&isIntegerKey(key$1)?Number(key$1)value$1,getProto=v$1=>Reflect.getPrototypeOf(v$1);function createIterableMethod(method,isReadonly2,isShallow2){return function(...args){let target$1=this.__v_raw,rawTarget=toRaw(target$1),targetIsMap=isMap(rawTarget),isPair=method===`entries`||method===Symbol.iterator&&targetIsMap,isKeyOnly=method===`keys`&&targetIsMap,innerIterator=target$1[method](...args),wrap$2=isShallow2?toShallow:isReadonly2?toReadonly:toReactive;return!isReadonly2&&track(rawTarget,`iterate`,isKeyOnly?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){let{value:value$1,done}=innerIterator.next();return done?{value:value$1,done}:{value:isPair?[wrap$2(value$1[0]),wrap$2(value$1[1])]:wrap$2(value$1),done}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(type){return function(...args){return type===`delete`?!1:type===`clear`?void 0:this}}function createInstrumentations(readonly$1,shallow){let instrumentations={get(key$1){let target$1=this.__v_raw,rawTarget=toRaw(target$1),rawKey=toRaw(key$1);readonly$1||(hasChanged(key$1,rawKey)&&track(rawTarget,`get`,key$1),track(rawTarget,`get`,rawKey));let{has}=getProto(rawTarget),wrap$2=shallow?toShallow:readonly$1?toReadonly:toReactive;if(has.call(rawTarget,key$1))return wrap$2(target$1.get(key$1));if(has.call(rawTarget,rawKey))return wrap$2(target$1.get(rawKey));target$1!==rawTarget&&target$1.get(key$1)},get size(){let target$1=this.__v_raw;return!readonly$1&&track(toRaw(target$1),`iterate`,ITERATE_KEY),Reflect.get(target$1,`size`,target$1)},has(key$1){let target$1=this.__v_raw,rawTarget=toRaw(target$1),rawKey=toRaw(key$1);return readonly$1||(hasChanged(key$1,rawKey)&&track(rawTarget,`has`,key$1),track(rawTarget,`has`,rawKey)),key$1===rawKey?target$1.has(key$1):target$1.has(key$1)||target$1.has(rawKey)},forEach(callback,thisArg){let observed=this,target$1=observed.__v_raw,rawTarget=toRaw(target$1),wrap$2=shallow?toShallow:readonly$1?toReadonly:toReactive;return!readonly$1&&track(rawTarget,`iterate`,ITERATE_KEY),target$1.forEach((value$1,key$1)=>callback.call(thisArg,wrap$2(value$1),wrap$2(key$1),observed))}};extend$1(instrumentations,readonly$1?{add:createReadonlyMethod(`add`),set:createReadonlyMethod(`set`),delete:createReadonlyMethod(`delete`),clear:createReadonlyMethod(`clear`)}:{add(value$1){!shallow&&!isShallow(value$1)&&!isReadonly(value$1)&&(value$1=toRaw(value$1));let target$1=toRaw(this),proto=getProto(target$1),hadKey=proto.has.call(target$1,value$1);return hadKey||(target$1.add(value$1),trigger(target$1,`add`,value$1,value$1)),this},set(key$1,value$1){!shallow&&!isShallow(value$1)&&!isReadonly(value$1)&&(value$1=toRaw(value$1));let target$1=toRaw(this),{has,get}=getProto(target$1),hadKey=has.call(target$1,key$1);hadKey||(key$1=toRaw(key$1),hadKey=has.call(target$1,key$1));let oldValue=get.call(target$1,key$1);return target$1.set(key$1,value$1),hadKey?hasChanged(value$1,oldValue)&&trigger(target$1,`set`,key$1,value$1,oldValue):trigger(target$1,`add`,key$1,value$1),this},delete(key$1){let target$1=toRaw(this),{has,get}=getProto(target$1),hadKey=has.call(target$1,key$1);hadKey||(key$1=toRaw(key$1),hadKey=has.call(target$1,key$1));let oldValue=get?get.call(target$1,key$1):void 0,result=target$1.delete(key$1);return hadKey&&trigger(target$1,`delete`,key$1,void 0,oldValue),result},clear(){let target$1=toRaw(this),hadItems=target$1.size!==0,oldTarget,result=target$1.clear();return hadItems&&trigger(target$1,`clear`,void 0,void 0,oldTarget),result}});let iteratorMethods=[`keys`,`values`,`entries`,Symbol.iterator];return iteratorMethods.forEach(method=>{instrumentations[method]=createIterableMethod(method,readonly$1,shallow)}),instrumentations}function createInstrumentationGetter(isReadonly2,shallow){let instrumentations=createInstrumentations(isReadonly2,shallow);return(target$1,key$1,receiver)=>key$1===`__v_isReactive`?!isReadonly2:key$1===`__v_isReadonly`?isReadonly2:key$1===`__v_raw`?target$1:Reflect.get(hasOwn$4(instrumentations,key$1)&&key$1 in target$1?instrumentations:target$1,key$1,receiver)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(rawType){switch(rawType){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function getTargetType(value$1){return value$1.__v_skip||!Object.isExtensible(value$1)?0:targetTypeMap(toRawType(value$1))}function reactive(target$1){return isReadonly(target$1)?target$1:createReactiveObject(target$1,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(target$1){return createReactiveObject(target$1,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(target$1){return createReactiveObject(target$1,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(target$1){return createReactiveObject(target$1,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(target$1,isReadonly2,baseHandlers,collectionHandlers,proxyMap){if(!isObject$5(target$1)||target$1.__v_raw&&!(isReadonly2&&target$1.__v_isReactive))return target$1;let targetType=getTargetType(target$1);if(targetType===0)return target$1;let existingProxy=proxyMap.get(target$1);if(existingProxy)return existingProxy;let proxy=new Proxy(target$1,targetType===2?collectionHandlers:baseHandlers);return proxyMap.set(target$1,proxy),proxy}function isReactive(value$1){return isReadonly(value$1)?isReactive(value$1.__v_raw):!!(value$1&&value$1.__v_isReactive)}function isReadonly(value$1){return!!(value$1&&value$1.__v_isReadonly)}function isShallow(value$1){return!!(value$1&&value$1.__v_isShallow)}function isProxy(value$1){return value$1?!!value$1.__v_raw:!1}function toRaw(observed){let raw$3=observed&&observed.__v_raw;return raw$3?toRaw(raw$3):observed}function markRaw(value$1){return!hasOwn$4(value$1,`__v_skip`)&&Object.isExtensible(value$1)&&def(value$1,`__v_skip`,!0),value$1}const toReactive=value$1=>isObject$5(value$1)?reactive(value$1):value$1,toReadonly=value$1=>isObject$5(value$1)?readonly(value$1):value$1;function isRef(r$2){return r$2?r$2.__v_isRef===!0:!1}function ref(value$1){return createRef$2(value$1,!1)}function shallowRef(value$1){return createRef$2(value$1,!0)}function createRef$2(rawValue,shallow){return isRef(rawValue)?rawValue:new RefImpl(rawValue,shallow)}var RefImpl=class{constructor(value$1,isShallow2){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=isShallow2?value$1:toRaw(value$1),this._value=isShallow2?value$1:toReactive(value$1),this.__v_isShallow=isShallow2}get value(){return this.dep.track(),this._value}set value(newValue){let oldValue=this._rawValue,useDirectValue=this.__v_isShallow||isShallow(newValue)||isReadonly(newValue);newValue=useDirectValue?newValue:toRaw(newValue),hasChanged(newValue,oldValue)&&(this._rawValue=newValue,this._value=useDirectValue?newValue:toReactive(newValue),this.dep.trigger())}};function triggerRef(ref2){ref2.dep&&ref2.dep.trigger()}function unref(ref2){return isRef(ref2)?ref2.value:ref2}function toValue$1(source){return isFunction$1(source)?source():unref(source)}const shallowUnwrapHandlers={get:(target$1,key$1,receiver)=>key$1===`__v_raw`?target$1:unref(Reflect.get(target$1,key$1,receiver)),set:(target$1,key$1,value$1,receiver)=>{let oldValue=target$1[key$1];return isRef(oldValue)&&!isRef(value$1)?(oldValue.value=value$1,!0):Reflect.set(target$1,key$1,value$1,receiver)}};function proxyRefs(objectWithRefs){return isReactive(objectWithRefs)?objectWithRefs:new Proxy(objectWithRefs,shallowUnwrapHandlers)}var CustomRefImpl=class{constructor(factory){this.__v_isRef=!0,this._value=void 0;let dep=this.dep=new Dep,{get,set}=factory(dep.track.bind(dep),dep.trigger.bind(dep));this._get=get,this._set=set}get value(){return this._value=this._get()}set value(newVal){this._set(newVal)}};function customRef(factory){return new CustomRefImpl(factory)}function toRefs(object){let ret=isArray$5(object)?Array(object.length):{};for(let key$1 in object)ret[key$1]=propertyToRef(object,key$1);return ret}var ObjectRefImpl=class{constructor(_object,_key,_defaultValue){this._object=_object,this._key=_key,this._defaultValue=_defaultValue,this.__v_isRef=!0,this._value=void 0}get value(){let val=this._object[this._key];return this._value=val===void 0?this._defaultValue:val}set value(newVal){this._object[this._key]=newVal}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}},GetterRefImpl=class{constructor(_getter){this._getter=_getter,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function toRef(source,key$1,defaultValue){return isRef(source)?source:isFunction$1(source)?new GetterRefImpl(source):isObject$5(source)&&arguments.length>1?propertyToRef(source,key$1,defaultValue):ref(source)}function propertyToRef(source,key$1,defaultValue){let val=source[key$1];return isRef(val)?val:new ObjectRefImpl(source,key$1,defaultValue)}var ComputedRefImpl=class{constructor(fn$5,setter,isSSR){this.fn=fn$5,this.setter=setter,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!setter,this.isSSR=isSSR}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){let link$1=this.dep.track();return refreshComputed(this),link$1&&(link$1.version=this.dep.version),this._value}set value(newValue){this.setter&&this.setter(newValue)}};function computed$1(getterOrOptions,debugOptions,isSSR=!1){let getter,setter;isFunction$1(getterOrOptions)?getter=getterOrOptions:(getter=getterOrOptions.get,setter=getterOrOptions.set);let cRef=new ComputedRefImpl(getter,setter,isSSR);return cRef}const TrackOpTypes={GET:`get`,HAS:`has`,ITERATE:`iterate`},TriggerOpTypes={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function getCurrentWatcher(){return activeWatcher}function onWatcherCleanup(cleanupFn,failSilently=!1,owner=activeWatcher){if(owner){let cleanups=cleanupMap.get(owner);cleanups||cleanupMap.set(owner,cleanups=[]),cleanups.push(cleanupFn)}}function watch$1(source,cb$1,options$1=EMPTY_OBJ){let{immediate,deep,once,scheduler,augmentJob,call}=options$1,warnInvalidSource=s$1=>{(options$1.onWarn||warn$2)(`Invalid watch source: `,s$1,`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`)},reactiveGetter=source2=>deep?source2:isShallow(source2)||deep===!1||deep===0?traverse(source2,1):traverse(source2),effect$1,getter,cleanup,boundCleanup,forceTrigger=!1,isMultiSource=!1;if(isRef(source)?(getter=()=>source.value,forceTrigger=isShallow(source)):isReactive(source)?(getter=()=>reactiveGetter(source),forceTrigger=!0):isArray$5(source)?(isMultiSource=!0,forceTrigger=source.some(s$1=>isReactive(s$1)||isShallow(s$1)),getter=()=>source.map(s$1=>{if(isRef(s$1))return s$1.value;if(isReactive(s$1))return reactiveGetter(s$1);if(isFunction$1(s$1))return call?call(s$1,2):s$1()})):getter=isFunction$1(source)?cb$1?call?()=>call(source,2):source:()=>{if(cleanup){pauseTracking();try{cleanup()}finally{resetTracking()}}let currentEffect=activeWatcher;activeWatcher=effect$1;try{return call?call(source,3,[boundCleanup]):source(boundCleanup)}finally{activeWatcher=currentEffect}}:NOOP,cb$1&&deep){let baseGetter=getter,depth=deep===!0?1/0:deep;getter=()=>traverse(baseGetter(),depth)}let scope=getCurrentScope(),watchHandle=()=>{effect$1.stop(),scope&&scope.active&&remove$1(scope.effects,effect$1)};if(once&&cb$1){let _cb=cb$1;cb$1=(...args)=>{_cb(...args),watchHandle()}}let oldValue=isMultiSource?Array(source.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE,job=immediateFirstRun=>{if(!(!(effect$1.flags&1)||!effect$1.dirty&&!immediateFirstRun))if(cb$1){let newValue=effect$1.run();if(deep||forceTrigger||(isMultiSource?newValue.some((v$1,i$1)=>hasChanged(v$1,oldValue[i$1])):hasChanged(newValue,oldValue))){cleanup&&cleanup();let currentWatcher=activeWatcher;activeWatcher=effect$1;try{let args=[newValue,oldValue===INITIAL_WATCHER_VALUE?void 0:isMultiSource&&oldValue[0]===INITIAL_WATCHER_VALUE?[]:oldValue,boundCleanup];oldValue=newValue,call?call(cb$1,3,args):cb$1(...args)}finally{activeWatcher=currentWatcher}}}else effect$1.run()};return augmentJob&&augmentJob(job),effect$1=new ReactiveEffect(getter),effect$1.scheduler=scheduler?()=>scheduler(job,!1):job,boundCleanup=fn$5=>onWatcherCleanup(fn$5,!1,effect$1),cleanup=effect$1.onStop=()=>{let cleanups=cleanupMap.get(effect$1);if(cleanups){if(call)call(cleanups,4);else for(let cleanup2 of cleanups)cleanup2();cleanupMap.delete(effect$1)}},cb$1?immediate?job(!0):oldValue=effect$1.run():scheduler?scheduler(job.bind(null,!0),!0):effect$1.run(),watchHandle.pause=effect$1.pause.bind(effect$1),watchHandle.resume=effect$1.resume.bind(effect$1),watchHandle.stop=watchHandle,watchHandle}function traverse(value$1,depth=1/0,seen$1){if(depth<=0||!isObject$5(value$1)||value$1.__v_skip||(seen$1||=new Set,seen$1.has(value$1)))return value$1;if(seen$1.add(value$1),depth--,isRef(value$1))traverse(value$1.value,depth,seen$1);else if(isArray$5(value$1))for(let i$1=0;i$1{traverse(v$1,depth,seen$1)});else if(isPlainObject$6(value$1)){for(let key$1 in value$1)traverse(value$1[key$1],depth,seen$1);for(let key$1 of Object.getOwnPropertySymbols(value$1))Object.prototype.propertyIsEnumerable.call(value$1,key$1)&&traverse(value$1[key$1],depth,seen$1)}return value$1}const stack=[];function pushWarningContext(vnode){stack.push(vnode)}function popWarningContext(){stack.pop()}function assertNumber(val,type){}const ErrorCodes={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`},ErrorTypeStrings$1={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 callWithErrorHandling(fn$5,instance,type,args){try{return args?fn$5(...args):fn$5()}catch(err){handleError(err,instance,type)}}function callWithAsyncErrorHandling(fn$5,instance,type,args){if(isFunction$1(fn$5)){let res=callWithErrorHandling(fn$5,instance,type,args);return res&&isPromise$1(res)&&res.catch(err=>{handleError(err,instance,type)}),res}if(isArray$5(fn$5)){let values=[];for(let i$1=0;i$1>>1,middleJob=queue[middle],middleJobId=getId(middleJob);middleJobId=getId(lastJob)?queue.push(job):queue.splice(findInsertionIndex$1(jobId),0,job),job.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||=resolvedPromise.then(flushJobs)}function queuePostFlushCb(cb$1){isArray$5(cb$1)?pendingPostFlushCbs.push(...cb$1):activePostFlushCbs&&cb$1.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,cb$1):cb$1.flags&1||(pendingPostFlushCbs.push(cb$1),cb$1.flags|=1),queueFlush()}function flushPreFlushCbs(instance,seen$1,i$1=flushIndex+1){for(;i$1getId(a$2)-getId(b$3));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...deduped);return}for(activePostFlushCbs=deduped,postFlushIndex=0;postFlushIndexjob.id==null?job.flags&2?-1:1/0:job.id;function flushJobs(seen$1){let check$1=NOOP;try{for(flushIndex=0;flushIndexdevtools$1.emit(event,...args)),buffer=[];else if(typeof window<`u`&&window.HTMLElement&&!(_b=(_a$2=window.navigator)?.userAgent)?.includes(`jsdom`)){let replay=target$1.__VUE_DEVTOOLS_HOOK_REPLAY__=target$1.__VUE_DEVTOOLS_HOOK_REPLAY__||[];replay.push(newHook=>{setDevtoolsHook$1(newHook,target$1)}),setTimeout(()=>{devtools$1||(target$1.__VUE_DEVTOOLS_HOOK_REPLAY__=null,devtoolsNotInstalled=!0,buffer=[])},3e3)}else devtoolsNotInstalled=!0,buffer=[]}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(instance){let prev=currentRenderingInstance;return currentRenderingInstance=instance,currentScopeId=instance&&instance.type.__scopeId||null,prev}function pushScopeId(id){currentScopeId=id}function popScopeId(){currentScopeId=null}const withScopeId=_id$4=>withCtx;function withCtx(fn$5,ctx=currentRenderingInstance,isNonScopedSlot){if(!ctx||fn$5._n)return fn$5;let renderFnWithContext=(...args)=>{renderFnWithContext._d&&setBlockTracking(-1);let prevInstance=setCurrentRenderingInstance(ctx),res;try{res=fn$5(...args)}finally{setCurrentRenderingInstance(prevInstance),renderFnWithContext._d&&setBlockTracking(1)}return res};return renderFnWithContext._n=!0,renderFnWithContext._c=!0,renderFnWithContext._d=!0,renderFnWithContext}function withDirectives(vnode,directives){if(currentRenderingInstance===null)return vnode;let instance=getComponentPublicInstance(currentRenderingInstance),bindings=vnode.dirs||=[];for(let i$1=0;i$1type.__isTeleport,isTeleportDisabled=props=>props&&(props.disabled||props.disabled===``),isTeleportDeferred=props=>props&&(props.defer||props.defer===``),isTargetSVG=target$1=>typeof SVGElement<`u`&&target$1 instanceof SVGElement,isTargetMathML=target$1=>typeof MathMLElement==`function`&&target$1 instanceof MathMLElement,resolveTarget=(props,select)=>{let targetSelector=props&&props.to;if(isString$2(targetSelector))if(select){let target$1=select(targetSelector);return target$1}else return null;else return targetSelector},TeleportImpl={name:`Teleport`,__isTeleport:!0,process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals){let{mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,o:{insert,querySelector,createText,createComment}}=internals,disabled=isTeleportDisabled(n2.props),{shapeFlag,children,dynamicChildren}=n2;if(n1==null){let placeholder=n2.el=createText(``),mainAnchor=n2.anchor=createText(``);insert(placeholder,container,anchor),insert(mainAnchor,container,anchor);let mount=(container2,anchor2)=>{shapeFlag&16&&(parentComponent&&parentComponent.isCE&&(parentComponent.ce._teleportTarget=container2),mountChildren(children,container2,anchor2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized))},mountToTarget=()=>{let target$1=n2.target=resolveTarget(n2.props,querySelector),targetAnchor=prepareAnchor(target$1,n2,createText,insert);target$1&&(namespace!==`svg`&&isTargetSVG(target$1)?namespace=`svg`:namespace!==`mathml`&&isTargetMathML(target$1)&&(namespace=`mathml`),disabled||(mount(target$1,targetAnchor),updateCssVars(n2,!1)))};disabled&&(mount(container,mainAnchor),updateCssVars(n2,!0)),isTeleportDeferred(n2.props)?(n2.el.__isMounted=!1,queuePostRenderEffect(()=>{mountToTarget(),delete n2.el.__isMounted},parentSuspense)):mountToTarget()}else{if(isTeleportDeferred(n2.props)&&n1.el.__isMounted===!1){queuePostRenderEffect(()=>{TeleportImpl.process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals)},parentSuspense);return}n2.el=n1.el,n2.targetStart=n1.targetStart;let mainAnchor=n2.anchor=n1.anchor,target$1=n2.target=n1.target,targetAnchor=n2.targetAnchor=n1.targetAnchor,wasDisabled=isTeleportDisabled(n1.props),currentContainer=wasDisabled?container:target$1,currentAnchor=wasDisabled?mainAnchor:targetAnchor;if(namespace===`svg`||isTargetSVG(target$1)?namespace=`svg`:(namespace===`mathml`||isTargetMathML(target$1))&&(namespace=`mathml`),dynamicChildren?(patchBlockChildren(n1.dynamicChildren,dynamicChildren,currentContainer,parentComponent,parentSuspense,namespace,slotScopeIds),traverseStaticChildren(n1,n2,!0)):optimized||patchChildren(n1,n2,currentContainer,currentAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,!1),disabled)wasDisabled?n2.props&&n1.props&&n2.props.to!==n1.props.to&&(n2.props.to=n1.props.to):moveTeleport(n2,container,mainAnchor,internals,1);else if((n2.props&&n2.props.to)!==(n1.props&&n1.props.to)){let nextTarget=n2.target=resolveTarget(n2.props,querySelector);nextTarget&&moveTeleport(n2,nextTarget,null,internals,0)}else wasDisabled&&moveTeleport(n2,target$1,targetAnchor,internals,1);updateCssVars(n2,disabled)}},remove(vnode,parentComponent,parentSuspense,{um:unmount,o:{remove:hostRemove}},doRemove){let{shapeFlag,children,anchor,targetStart,targetAnchor,target:target$1,props}=vnode;if(target$1&&(hostRemove(targetStart),hostRemove(targetAnchor)),doRemove&&hostRemove(anchor),shapeFlag&16){let shouldRemove=doRemove||!isTeleportDisabled(props);for(let i$1=0;i$1{state.isMounted=!0}),onBeforeUnmount(()=>{state.isUnmounting=!0}),state}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=instance=>{let subTree=instance.subTree;return subTree.component?recursiveGetSubtree(subTree.component):subTree},BaseTransitionImpl={name:`BaseTransition`,props:BaseTransitionPropsValidators,setup(props,{slots}){let instance=getCurrentInstance(),state=useTransitionState();return()=>{let children=slots.default&&getTransitionRawChildren(slots.default(),!0);if(!children||!children.length)return;let child=findNonCommentChild(children),rawProps=toRaw(props),{mode}=rawProps;if(state.isLeaving)return emptyPlaceholder(child);let innerChild=getInnerChild$1(child);if(!innerChild)return emptyPlaceholder(child);let enterHooks=resolveTransitionHooks(innerChild,rawProps,state,instance,hooks=>enterHooks=hooks);innerChild.type!==Comment&&setTransitionHooks(innerChild,enterHooks);let oldInnerChild=instance.subTree&&getInnerChild$1(instance.subTree);if(oldInnerChild&&oldInnerChild.type!==Comment&&!isSameVNodeType(innerChild,oldInnerChild)&&recursiveGetSubtree(instance).type!==Comment){let leavingHooks=resolveTransitionHooks(oldInnerChild,rawProps,state,instance);if(setTransitionHooks(oldInnerChild,leavingHooks),mode===`out-in`&&innerChild.type!==Comment)return state.isLeaving=!0,leavingHooks.afterLeave=()=>{state.isLeaving=!1,instance.job.flags&8||instance.update(),delete leavingHooks.afterLeave,oldInnerChild=void 0},emptyPlaceholder(child);mode===`in-out`&&innerChild.type!==Comment?leavingHooks.delayLeave=(el,earlyRemove,delayedLeave)=>{let leavingVNodesCache=getLeavingNodesForType(state,oldInnerChild);leavingVNodesCache[String(oldInnerChild.key)]=oldInnerChild,el[leaveCbKey]=()=>{earlyRemove(),el[leaveCbKey]=void 0,delete enterHooks.delayedLeave,oldInnerChild=void 0},enterHooks.delayedLeave=()=>{delayedLeave(),delete enterHooks.delayedLeave,oldInnerChild=void 0}}:oldInnerChild=void 0}else oldInnerChild&&=void 0;return child}}};function findNonCommentChild(children){let child=children[0];if(children.length>1){let hasFound=!1;for(let c$4 of children)if(c$4.type!==Comment){child=c$4,hasFound=!0;break}}return child}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(state,vnode){let{leavingVNodes}=state,leavingVNodesCache=leavingVNodes.get(vnode.type);return leavingVNodesCache||(leavingVNodesCache=Object.create(null),leavingVNodes.set(vnode.type,leavingVNodesCache)),leavingVNodesCache}function resolveTransitionHooks(vnode,props,state,instance,postClone){let{appear,mode,persisted=!1,onBeforeEnter,onEnter,onAfterEnter,onEnterCancelled,onBeforeLeave,onLeave,onAfterLeave,onLeaveCancelled,onBeforeAppear,onAppear,onAfterAppear,onAppearCancelled}=props,key$1=String(vnode.key),leavingVNodesCache=getLeavingNodesForType(state,vnode),callHook$2=(hook,args)=>{hook&&callWithAsyncErrorHandling(hook,instance,9,args)},callAsyncHook=(hook,args)=>{let done=args[1];callHook$2(hook,args),isArray$5(hook)?hook.every(hook2=>hook2.length<=1)&&done():hook.length<=1&&done()},hooks={mode,persisted,beforeEnter(el){let hook=onBeforeEnter;if(!state.isMounted)if(appear)hook=onBeforeAppear||onBeforeEnter;else return;el[leaveCbKey]&&el[leaveCbKey](!0);let leavingVNode=leavingVNodesCache[key$1];leavingVNode&&isSameVNodeType(vnode,leavingVNode)&&leavingVNode.el[leaveCbKey]&&leavingVNode.el[leaveCbKey](),callHook$2(hook,[el])},enter(el){let hook=onEnter,afterHook=onAfterEnter,cancelHook=onEnterCancelled;if(!state.isMounted)if(appear)hook=onAppear||onEnter,afterHook=onAfterAppear||onAfterEnter,cancelHook=onAppearCancelled||onEnterCancelled;else return;let called=!1,done=el[enterCbKey$1]=cancelled=>{called||(called=!0,callHook$2(cancelled?cancelHook:afterHook,[el]),hooks.delayedLeave&&hooks.delayedLeave(),el[enterCbKey$1]=void 0)};hook?callAsyncHook(hook,[el,done]):done()},leave(el,remove$2){let key2=String(vnode.key);if(el[enterCbKey$1]&&el[enterCbKey$1](!0),state.isUnmounting)return remove$2();callHook$2(onBeforeLeave,[el]);let called=!1,done=el[leaveCbKey]=cancelled=>{called||(called=!0,remove$2(),callHook$2(cancelled?onLeaveCancelled:onAfterLeave,[el]),el[leaveCbKey]=void 0,leavingVNodesCache[key2]===vnode&&delete leavingVNodesCache[key2])};leavingVNodesCache[key2]=vnode,onLeave?callAsyncHook(onLeave,[el,done]):done()},clone(vnode2){let hooks2=resolveTransitionHooks(vnode2,props,state,instance,postClone);return postClone&&postClone(hooks2),hooks2}};return hooks}function emptyPlaceholder(vnode){if(isKeepAlive(vnode))return vnode=cloneVNode(vnode),vnode.children=null,vnode}function getInnerChild$1(vnode){if(!isKeepAlive(vnode))return isTeleport(vnode.type)&&vnode.children?findNonCommentChild(vnode.children):vnode;if(vnode.component)return vnode.component.subTree;let{shapeFlag,children}=vnode;if(children){if(shapeFlag&16)return children[0];if(shapeFlag&32&&isFunction$1(children.default))return children.default()}}function setTransitionHooks(vnode,hooks){vnode.shapeFlag&6&&vnode.component?(vnode.transition=hooks,setTransitionHooks(vnode.component.subTree,hooks)):vnode.shapeFlag&128?(vnode.ssContent.transition=hooks.clone(vnode.ssContent),vnode.ssFallback.transition=hooks.clone(vnode.ssFallback)):vnode.transition=hooks}function getTransitionRawChildren(children,keepComment=!1,parentKey){let ret=[],keyedFragmentCount=0;for(let i$1=0;i$11)for(let i$1=0;i$1val in map}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=key$1=>key$1.charCodeAt(0)===111&&key$1.charCodeAt(1)===110&&(key$1.charCodeAt(2)>122||key$1.charCodeAt(2)<97),isModelListener=key$1=>key$1.startsWith(`onUpdate:`),extend$1=Object.assign,remove$1=(arr,el)=>{let i$1=arr.indexOf(el);i$1>-1&&arr.splice(i$1,1)},hasOwnProperty$3=Object.prototype.hasOwnProperty,hasOwn$4=(val,key$1)=>hasOwnProperty$3.call(val,key$1),isArray$5=Array.isArray,isMap=val=>toTypeString$1(val)===`[object Map]`,isSet=val=>toTypeString$1(val)===`[object Set]`,isDate$1=val=>toTypeString$1(val)===`[object Date]`,isRegExp$1=val=>toTypeString$1(val)===`[object RegExp]`,isFunction$1=val=>typeof val==`function`,isString$2=val=>typeof val==`string`,isSymbol=val=>typeof val==`symbol`,isObject$5=val=>typeof val==`object`&&!!val,isPromise$1=val=>(isObject$5(val)||isFunction$1(val))&&isFunction$1(val.then)&&isFunction$1(val.catch),objectToString$1=Object.prototype.toString,toTypeString$1=value$1=>objectToString$1.call(value$1),toRawType=value$1=>toTypeString$1(value$1).slice(8,-1),isPlainObject$6=val=>toTypeString$1(val)===`[object Object]`,isIntegerKey=key$1=>isString$2(key$1)&&key$1!==`NaN`&&key$1[0]!==`-`&&``+parseInt(key$1,10)===key$1,isReservedProp=makeMap(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),cacheStringFunction$2=fn$5=>{let cache$1=Object.create(null);return str=>{let hit=cache$1[str];return hit||(cache$1[str]=fn$5(str))}},camelizeRE$2=/-(\w)/g,camelize=cacheStringFunction$2(str=>str.replace(camelizeRE$2,(_$2,c$4)=>c$4?c$4.toUpperCase():``)),hyphenateRE$2=/\B([A-Z])/g,hyphenate$2=cacheStringFunction$2(str=>str.replace(hyphenateRE$2,`-$1`).toLowerCase()),capitalize$1=cacheStringFunction$2(str=>str.charAt(0).toUpperCase()+str.slice(1)),toHandlerKey=cacheStringFunction$2(str=>{let s$1=str?`on${capitalize$1(str)}`:``;return s$1}),hasChanged=(value$1,oldValue)=>!Object.is(value$1,oldValue),invokeArrayFns=(fns,...arg)=>{for(let i$1=0;i$1{Object.defineProperty(obj,key$1,{configurable:!0,enumerable:!1,writable,value:value$1})},looseToNumber=val=>{let n$2=parseFloat(val);return isNaN(n$2)?val:n$2},toNumber=val=>{let n$2=isString$2(val)?Number(val):NaN;return isNaN(n$2)?val:n$2};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},GLOBALS_ALLOWED=`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`,isGloballyAllowed=makeMap(GLOBALS_ALLOWED);function normalizeStyle(value$1){if(isArray$5(value$1)){let res={};for(let i$1=0;i$1{if(item){let tmp$1=item.split(propertyDelimiterRE);tmp$1.length>1&&(ret[tmp$1[0].trim()]=tmp$1[1].trim())}}),ret}function normalizeClass(value$1){let res=``;if(isString$2(value$1))res=value$1;else if(isArray$5(value$1))for(let i$1=0;i$1looseEqual(item,val))}const isRef$1=val=>!!(val&&val.__v_isRef===!0),toDisplayString=val=>isString$2(val)?val:val==null?``:isArray$5(val)||isObject$5(val)&&(val.toString===objectToString$1||!isFunction$1(val.toString))?isRef$1(val)?toDisplayString(val.value):JSON.stringify(val,replacer,2):String(val),replacer=(_key,val)=>isRef$1(val)?replacer(_key,val.value):isMap(val)?{[`Map(${val.size})`]:[...val.entries()].reduce((entries,[key$1,val2],i$1)=>(entries[stringifySymbol(key$1,i$1)+` =>`]=val2,entries),{})}:isSet(val)?{[`Set(${val.size})`]:[...val.values()].map(v$1=>stringifySymbol(v$1))}:isSymbol(val)?stringifySymbol(val):isObject$5(val)&&!isArray$5(val)&&!isPlainObject$6(val)?String(val):val,stringifySymbol=(v$1,i$1=``)=>{var _a$2;return isSymbol(v$1)?`Symbol(${(_a$2=v$1.description)??i$1})`:v$1};function warn$2(msg,...args){console.warn(`[Vue warn] ${msg}`,...args)}let activeEffectScope;var EffectScope=class{constructor(detached=!1){this.detached=detached,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!detached&&activeEffectScope&&(this.index=(activeEffectScope.scopes||=[]).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let i$1,l$1;if(this.scopes)for(i$1=0,l$1=this.scopes.length;i$10&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(fromParent){if(this._active){this._active=!1;let i$1,l$1;for(i$1=0,l$1=this.effects.length;i$10)return;if(batchedComputed){let e$3=batchedComputed;for(batchedComputed=void 0;e$3;){let next=e$3.next;e$3.next=void 0,e$3.flags&=-9,e$3=next}}let error;for(;batchedSub;){let e$3=batchedSub;for(batchedSub=void 0;e$3;){let next=e$3.next;if(e$3.next=void 0,e$3.flags&=-9,e$3.flags&1)try{e$3.trigger()}catch(err){error||=err}e$3=next}}if(error)throw error}function prepareDeps(sub){for(let link$1=sub.deps;link$1;link$1=link$1.nextDep)link$1.version=-1,link$1.prevActiveLink=link$1.dep.activeLink,link$1.dep.activeLink=link$1}function cleanupDeps(sub){let head$1,tail=sub.depsTail,link$1=tail;for(;link$1;){let prev=link$1.prevDep;link$1.version===-1?(link$1===tail&&(tail=prev),removeSub(link$1),removeDep(link$1)):head$1=link$1,link$1.dep.activeLink=link$1.prevActiveLink,link$1.prevActiveLink=void 0,link$1=prev}sub.deps=head$1,sub.depsTail=tail}function isDirty$1(sub){for(let link$1=sub.deps;link$1;link$1=link$1.nextDep)if(link$1.dep.version!==link$1.version||link$1.dep.computed&&(refreshComputed(link$1.dep.computed)||link$1.dep.version!==link$1.version))return!0;return!!sub._dirty}function refreshComputed(computed$2){if(computed$2.flags&4&&!(computed$2.flags&16)||(computed$2.flags&=-17,computed$2.globalVersion===globalVersion)||(computed$2.globalVersion=globalVersion,!computed$2.isSSR&&computed$2.flags&128&&(!computed$2.deps&&!computed$2._dirty||!isDirty$1(computed$2))))return;computed$2.flags|=2;let dep=computed$2.dep,prevSub=activeSub,prevShouldTrack=shouldTrack;activeSub=computed$2,shouldTrack=!0;try{prepareDeps(computed$2);let value$1=computed$2.fn(computed$2._value);(dep.version===0||hasChanged(value$1,computed$2._value))&&(computed$2.flags|=128,computed$2._value=value$1,dep.version++)}catch(err){throw dep.version++,err}finally{activeSub=prevSub,shouldTrack=prevShouldTrack,cleanupDeps(computed$2),computed$2.flags&=-3}}function removeSub(link$1,soft=!1){let{dep,prevSub,nextSub}=link$1;if(prevSub&&(prevSub.nextSub=nextSub,link$1.prevSub=void 0),nextSub&&(nextSub.prevSub=prevSub,link$1.nextSub=void 0),dep.subs===link$1&&(dep.subs=prevSub,!prevSub&&dep.computed)){dep.computed.flags&=-5;for(let l$1=dep.computed.deps;l$1;l$1=l$1.nextDep)removeSub(l$1,!0)}!soft&&!--dep.sc&&dep.map&&dep.map.delete(dep.key)}function removeDep(link$1){let{prevDep,nextDep}=link$1;prevDep&&(prevDep.nextDep=nextDep,link$1.prevDep=void 0),nextDep&&(nextDep.prevDep=prevDep,link$1.nextDep=void 0)}function effect(fn$5,options$1){fn$5.effect instanceof ReactiveEffect&&(fn$5=fn$5.effect.fn);let e$3=new ReactiveEffect(fn$5);options$1&&extend$1(e$3,options$1);try{e$3.run()}catch(err){throw e$3.stop(),err}let runner=e$3.run.bind(e$3);return runner.effect=e$3,runner}function stop(runner){runner.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){let last=trackStack.pop();shouldTrack=last===void 0?!0:last}function cleanupEffect(e$3){let{cleanup}=e$3;if(e$3.cleanup=void 0,cleanup){let prevSub=activeSub;activeSub=void 0;try{cleanup()}finally{activeSub=prevSub}}}let globalVersion=0;var Link=class{constructor(sub,dep){this.sub=sub,this.dep=dep,this.version=dep.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Dep=class{constructor(computed$2){this.computed=computed$2,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(debugInfo){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let link$1=this.activeLink;if(link$1===void 0||link$1.sub!==activeSub)link$1=this.activeLink=new Link(activeSub,this),activeSub.deps?(link$1.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=link$1,activeSub.depsTail=link$1):activeSub.deps=activeSub.depsTail=link$1,addSub(link$1);else if(link$1.version===-1&&(link$1.version=this.version,link$1.nextDep)){let next=link$1.nextDep;next.prevDep=link$1.prevDep,link$1.prevDep&&(link$1.prevDep.nextDep=next),link$1.prevDep=activeSub.depsTail,link$1.nextDep=void 0,activeSub.depsTail.nextDep=link$1,activeSub.depsTail=link$1,activeSub.deps===link$1&&(activeSub.deps=next)}return link$1}trigger(debugInfo){this.version++,globalVersion++,this.notify(debugInfo)}notify(debugInfo){startBatch();try{for(let link$1=this.subs;link$1;link$1=link$1.prevSub)link$1.sub.notify()&&link$1.sub.dep.notify()}finally{endBatch()}}};function addSub(link$1){if(link$1.dep.sc++,link$1.sub.flags&4){let computed$2=link$1.dep.computed;if(computed$2&&!link$1.dep.subs){computed$2.flags|=20;for(let l$1=computed$2.deps;l$1;l$1=l$1.nextDep)addSub(l$1)}let currentTail=link$1.dep.subs;currentTail!==link$1&&(link$1.prevSub=currentTail,currentTail&&(currentTail.nextSub=link$1)),link$1.dep.subs=link$1}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(``),MAP_KEY_ITERATE_KEY=Symbol(``),ARRAY_ITERATE_KEY=Symbol(``);function track(target$1,type,key$1){if(shouldTrack&&activeSub){let depsMap=targetMap.get(target$1);depsMap||targetMap.set(target$1,depsMap=new Map);let dep=depsMap.get(key$1);dep||(depsMap.set(key$1,dep=new Dep),dep.map=depsMap,dep.key=key$1),dep.track()}}function trigger(target$1,type,key$1,newValue,oldValue,oldTarget){let depsMap=targetMap.get(target$1);if(!depsMap){globalVersion++;return}let run=dep=>{dep&&dep.trigger()};if(startBatch(),type===`clear`)depsMap.forEach(run);else{let targetIsArray=isArray$5(target$1),isArrayIndex=targetIsArray&&isIntegerKey(key$1);if(targetIsArray&&key$1===`length`){let newLength=Number(newValue);depsMap.forEach((dep,key2)=>{(key2===`length`||key2===ARRAY_ITERATE_KEY||!isSymbol(key2)&&key2>=newLength)&&run(dep)})}else switch((key$1!==void 0||depsMap.has(void 0))&&run(depsMap.get(key$1)),isArrayIndex&&run(depsMap.get(ARRAY_ITERATE_KEY)),type){case`add`:targetIsArray?isArrayIndex&&run(depsMap.get(`length`)):(run(depsMap.get(ITERATE_KEY)),isMap(target$1)&&run(depsMap.get(MAP_KEY_ITERATE_KEY)));break;case`delete`:targetIsArray||(run(depsMap.get(ITERATE_KEY)),isMap(target$1)&&run(depsMap.get(MAP_KEY_ITERATE_KEY)));break;case`set`:isMap(target$1)&&run(depsMap.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(object,key$1){let depMap=targetMap.get(object);return depMap&&depMap.get(key$1)}function reactiveReadArray(array){let raw$3=toRaw(array);return raw$3===array?raw$3:(track(raw$3,`iterate`,ARRAY_ITERATE_KEY),isShallow(array)?raw$3:raw$3.map(toReactive))}function shallowReadArray(arr){return track(arr=toRaw(arr),`iterate`,ARRAY_ITERATE_KEY),arr}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,toReactive)},concat(...args){return reactiveReadArray(this).concat(...args.map(x$3=>isArray$5(x$3)?reactiveReadArray(x$3):x$3))},entries(){return iterator(this,`entries`,value$1=>(value$1[1]=toReactive(value$1[1]),value$1))},every(fn$5,thisArg){return apply$1(this,`every`,fn$5,thisArg,void 0,arguments)},filter(fn$5,thisArg){return apply$1(this,`filter`,fn$5,thisArg,v$1=>v$1.map(toReactive),arguments)},find(fn$5,thisArg){return apply$1(this,`find`,fn$5,thisArg,toReactive,arguments)},findIndex(fn$5,thisArg){return apply$1(this,`findIndex`,fn$5,thisArg,void 0,arguments)},findLast(fn$5,thisArg){return apply$1(this,`findLast`,fn$5,thisArg,toReactive,arguments)},findLastIndex(fn$5,thisArg){return apply$1(this,`findLastIndex`,fn$5,thisArg,void 0,arguments)},forEach(fn$5,thisArg){return apply$1(this,`forEach`,fn$5,thisArg,void 0,arguments)},includes(...args){return searchProxy(this,`includes`,args)},indexOf(...args){return searchProxy(this,`indexOf`,args)},join(separator){return reactiveReadArray(this).join(separator)},lastIndexOf(...args){return searchProxy(this,`lastIndexOf`,args)},map(fn$5,thisArg){return apply$1(this,`map`,fn$5,thisArg,void 0,arguments)},pop(){return noTracking(this,`pop`)},push(...args){return noTracking(this,`push`,args)},reduce(fn$5,...args){return reduce(this,`reduce`,fn$5,args)},reduceRight(fn$5,...args){return reduce(this,`reduceRight`,fn$5,args)},shift(){return noTracking(this,`shift`)},some(fn$5,thisArg){return apply$1(this,`some`,fn$5,thisArg,void 0,arguments)},splice(...args){return noTracking(this,`splice`,args)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(comparer){return reactiveReadArray(this).toSorted(comparer)},toSpliced(...args){return reactiveReadArray(this).toSpliced(...args)},unshift(...args){return noTracking(this,`unshift`,args)},values(){return iterator(this,`values`,toReactive)}};function iterator(self$1,method,wrapValue){let arr=shallowReadArray(self$1),iter=arr[method]();return arr!==self$1&&!isShallow(self$1)&&(iter._next=iter.next,iter.next=()=>{let result=iter._next();return result.value&&=wrapValue(result.value),result}),iter}const arrayProto=Array.prototype;function apply$1(self$1,method,fn$5,thisArg,wrappedRetFn,args){let arr=shallowReadArray(self$1),needsWrap=arr!==self$1&&!isShallow(self$1),methodFn=arr[method];if(methodFn!==arrayProto[method]){let result2=methodFn.apply(self$1,args);return needsWrap?toReactive(result2):result2}let wrappedFn=fn$5;arr!==self$1&&(needsWrap?wrappedFn=function(item,index$1){return fn$5.call(this,toReactive(item),index$1,self$1)}:fn$5.length>2&&(wrappedFn=function(item,index$1){return fn$5.call(this,item,index$1,self$1)}));let result=methodFn.call(arr,wrappedFn,thisArg);return needsWrap&&wrappedRetFn?wrappedRetFn(result):result}function reduce(self$1,method,fn$5,args){let arr=shallowReadArray(self$1),wrappedFn=fn$5;return arr!==self$1&&(isShallow(self$1)?fn$5.length>3&&(wrappedFn=function(acc,item,index$1){return fn$5.call(this,acc,item,index$1,self$1)}):wrappedFn=function(acc,item,index$1){return fn$5.call(this,acc,toReactive(item),index$1,self$1)}),arr[method](wrappedFn,...args)}function searchProxy(self$1,method,args){let arr=toRaw(self$1);track(arr,`iterate`,ARRAY_ITERATE_KEY);let res=arr[method](...args);return(res===-1||res===!1)&&isProxy(args[0])?(args[0]=toRaw(args[0]),arr[method](...args)):res}function noTracking(self$1,method,args=[]){pauseTracking(),startBatch();let res=toRaw(self$1)[method].apply(self$1,args);return endBatch(),resetTracking(),res}const isNonTrackableKeys=makeMap(`__proto__,__v_isRef,__isVue`),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(key$1=>key$1!==`arguments`&&key$1!==`caller`).map(key$1=>Symbol[key$1]).filter(isSymbol));function hasOwnProperty$2(key$1){isSymbol(key$1)||(key$1=String(key$1));let obj=toRaw(this);return track(obj,`has`,key$1),obj.hasOwnProperty(key$1)}var BaseReactiveHandler=class{constructor(_isReadonly=!1,_isShallow=!1){this._isReadonly=_isReadonly,this._isShallow=_isShallow}get(target$1,key$1,receiver){if(key$1===`__v_skip`)return target$1.__v_skip;let isReadonly2=this._isReadonly,isShallow2=this._isShallow;if(key$1===`__v_isReactive`)return!isReadonly2;if(key$1===`__v_isReadonly`)return isReadonly2;if(key$1===`__v_isShallow`)return isShallow2;if(key$1===`__v_raw`)return receiver===(isReadonly2?isShallow2?shallowReadonlyMap:readonlyMap:isShallow2?shallowReactiveMap:reactiveMap).get(target$1)||Object.getPrototypeOf(target$1)===Object.getPrototypeOf(receiver)?target$1:void 0;let targetIsArray=isArray$5(target$1);if(!isReadonly2){let fn$5;if(targetIsArray&&(fn$5=arrayInstrumentations[key$1]))return fn$5;if(key$1===`hasOwnProperty`)return hasOwnProperty$2}let res=Reflect.get(target$1,key$1,isRef(target$1)?target$1:receiver);return(isSymbol(key$1)?builtInSymbols.has(key$1):isNonTrackableKeys(key$1))||(isReadonly2||track(target$1,`get`,key$1),isShallow2)?res:isRef(res)?targetIsArray&&isIntegerKey(key$1)?res:res.value:isObject$5(res)?isReadonly2?readonly(res):reactive(res):res}},MutableReactiveHandler=class extends BaseReactiveHandler{constructor(isShallow2=!1){super(!1,isShallow2)}set(target$1,key$1,value$1,receiver){let oldValue=target$1[key$1];if(!this._isShallow){let isOldValueReadonly=isReadonly(oldValue);if(!isShallow(value$1)&&!isReadonly(value$1)&&(oldValue=toRaw(oldValue),value$1=toRaw(value$1)),!isArray$5(target$1)&&isRef(oldValue)&&!isRef(value$1))return isOldValueReadonly?!1:(oldValue.value=value$1,!0)}let hadKey=isArray$5(target$1)&&isIntegerKey(key$1)?Number(key$1)value$1,getProto=v$1=>Reflect.getPrototypeOf(v$1);function createIterableMethod(method,isReadonly2,isShallow2){return function(...args){let target$1=this.__v_raw,rawTarget=toRaw(target$1),targetIsMap=isMap(rawTarget),isPair=method===`entries`||method===Symbol.iterator&&targetIsMap,isKeyOnly=method===`keys`&&targetIsMap,innerIterator=target$1[method](...args),wrap$2=isShallow2?toShallow:isReadonly2?toReadonly:toReactive;return!isReadonly2&&track(rawTarget,`iterate`,isKeyOnly?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){let{value:value$1,done}=innerIterator.next();return done?{value:value$1,done}:{value:isPair?[wrap$2(value$1[0]),wrap$2(value$1[1])]:wrap$2(value$1),done}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(type){return function(...args){return type===`delete`?!1:type===`clear`?void 0:this}}function createInstrumentations(readonly$1,shallow){let instrumentations={get(key$1){let target$1=this.__v_raw,rawTarget=toRaw(target$1),rawKey=toRaw(key$1);readonly$1||(hasChanged(key$1,rawKey)&&track(rawTarget,`get`,key$1),track(rawTarget,`get`,rawKey));let{has}=getProto(rawTarget),wrap$2=shallow?toShallow:readonly$1?toReadonly:toReactive;if(has.call(rawTarget,key$1))return wrap$2(target$1.get(key$1));if(has.call(rawTarget,rawKey))return wrap$2(target$1.get(rawKey));target$1!==rawTarget&&target$1.get(key$1)},get size(){let target$1=this.__v_raw;return!readonly$1&&track(toRaw(target$1),`iterate`,ITERATE_KEY),Reflect.get(target$1,`size`,target$1)},has(key$1){let target$1=this.__v_raw,rawTarget=toRaw(target$1),rawKey=toRaw(key$1);return readonly$1||(hasChanged(key$1,rawKey)&&track(rawTarget,`has`,key$1),track(rawTarget,`has`,rawKey)),key$1===rawKey?target$1.has(key$1):target$1.has(key$1)||target$1.has(rawKey)},forEach(callback,thisArg){let observed=this,target$1=observed.__v_raw,rawTarget=toRaw(target$1),wrap$2=shallow?toShallow:readonly$1?toReadonly:toReactive;return!readonly$1&&track(rawTarget,`iterate`,ITERATE_KEY),target$1.forEach((value$1,key$1)=>callback.call(thisArg,wrap$2(value$1),wrap$2(key$1),observed))}};extend$1(instrumentations,readonly$1?{add:createReadonlyMethod(`add`),set:createReadonlyMethod(`set`),delete:createReadonlyMethod(`delete`),clear:createReadonlyMethod(`clear`)}:{add(value$1){!shallow&&!isShallow(value$1)&&!isReadonly(value$1)&&(value$1=toRaw(value$1));let target$1=toRaw(this),proto=getProto(target$1),hadKey=proto.has.call(target$1,value$1);return hadKey||(target$1.add(value$1),trigger(target$1,`add`,value$1,value$1)),this},set(key$1,value$1){!shallow&&!isShallow(value$1)&&!isReadonly(value$1)&&(value$1=toRaw(value$1));let target$1=toRaw(this),{has,get}=getProto(target$1),hadKey=has.call(target$1,key$1);hadKey||(key$1=toRaw(key$1),hadKey=has.call(target$1,key$1));let oldValue=get.call(target$1,key$1);return target$1.set(key$1,value$1),hadKey?hasChanged(value$1,oldValue)&&trigger(target$1,`set`,key$1,value$1,oldValue):trigger(target$1,`add`,key$1,value$1),this},delete(key$1){let target$1=toRaw(this),{has,get}=getProto(target$1),hadKey=has.call(target$1,key$1);hadKey||(key$1=toRaw(key$1),hadKey=has.call(target$1,key$1));let oldValue=get?get.call(target$1,key$1):void 0,result=target$1.delete(key$1);return hadKey&&trigger(target$1,`delete`,key$1,void 0,oldValue),result},clear(){let target$1=toRaw(this),hadItems=target$1.size!==0,oldTarget,result=target$1.clear();return hadItems&&trigger(target$1,`clear`,void 0,void 0,oldTarget),result}});let iteratorMethods=[`keys`,`values`,`entries`,Symbol.iterator];return iteratorMethods.forEach(method=>{instrumentations[method]=createIterableMethod(method,readonly$1,shallow)}),instrumentations}function createInstrumentationGetter(isReadonly2,shallow){let instrumentations=createInstrumentations(isReadonly2,shallow);return(target$1,key$1,receiver)=>key$1===`__v_isReactive`?!isReadonly2:key$1===`__v_isReadonly`?isReadonly2:key$1===`__v_raw`?target$1:Reflect.get(hasOwn$4(instrumentations,key$1)&&key$1 in target$1?instrumentations:target$1,key$1,receiver)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(rawType){switch(rawType){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function getTargetType(value$1){return value$1.__v_skip||!Object.isExtensible(value$1)?0:targetTypeMap(toRawType(value$1))}function reactive(target$1){return isReadonly(target$1)?target$1:createReactiveObject(target$1,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(target$1){return createReactiveObject(target$1,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(target$1){return createReactiveObject(target$1,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(target$1){return createReactiveObject(target$1,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(target$1,isReadonly2,baseHandlers,collectionHandlers,proxyMap){if(!isObject$5(target$1)||target$1.__v_raw&&!(isReadonly2&&target$1.__v_isReactive))return target$1;let targetType=getTargetType(target$1);if(targetType===0)return target$1;let existingProxy=proxyMap.get(target$1);if(existingProxy)return existingProxy;let proxy=new Proxy(target$1,targetType===2?collectionHandlers:baseHandlers);return proxyMap.set(target$1,proxy),proxy}function isReactive(value$1){return isReadonly(value$1)?isReactive(value$1.__v_raw):!!(value$1&&value$1.__v_isReactive)}function isReadonly(value$1){return!!(value$1&&value$1.__v_isReadonly)}function isShallow(value$1){return!!(value$1&&value$1.__v_isShallow)}function isProxy(value$1){return value$1?!!value$1.__v_raw:!1}function toRaw(observed){let raw$3=observed&&observed.__v_raw;return raw$3?toRaw(raw$3):observed}function markRaw(value$1){return!hasOwn$4(value$1,`__v_skip`)&&Object.isExtensible(value$1)&&def(value$1,`__v_skip`,!0),value$1}const toReactive=value$1=>isObject$5(value$1)?reactive(value$1):value$1,toReadonly=value$1=>isObject$5(value$1)?readonly(value$1):value$1;function isRef(r$2){return r$2?r$2.__v_isRef===!0:!1}function ref(value$1){return createRef$2(value$1,!1)}function shallowRef(value$1){return createRef$2(value$1,!0)}function createRef$2(rawValue,shallow){return isRef(rawValue)?rawValue:new RefImpl(rawValue,shallow)}var RefImpl=class{constructor(value$1,isShallow2){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=isShallow2?value$1:toRaw(value$1),this._value=isShallow2?value$1:toReactive(value$1),this.__v_isShallow=isShallow2}get value(){return this.dep.track(),this._value}set value(newValue){let oldValue=this._rawValue,useDirectValue=this.__v_isShallow||isShallow(newValue)||isReadonly(newValue);newValue=useDirectValue?newValue:toRaw(newValue),hasChanged(newValue,oldValue)&&(this._rawValue=newValue,this._value=useDirectValue?newValue:toReactive(newValue),this.dep.trigger())}};function triggerRef(ref2){ref2.dep&&ref2.dep.trigger()}function unref(ref2){return isRef(ref2)?ref2.value:ref2}function toValue$1(source){return isFunction$1(source)?source():unref(source)}const shallowUnwrapHandlers={get:(target$1,key$1,receiver)=>key$1===`__v_raw`?target$1:unref(Reflect.get(target$1,key$1,receiver)),set:(target$1,key$1,value$1,receiver)=>{let oldValue=target$1[key$1];return isRef(oldValue)&&!isRef(value$1)?(oldValue.value=value$1,!0):Reflect.set(target$1,key$1,value$1,receiver)}};function proxyRefs(objectWithRefs){return isReactive(objectWithRefs)?objectWithRefs:new Proxy(objectWithRefs,shallowUnwrapHandlers)}var CustomRefImpl=class{constructor(factory){this.__v_isRef=!0,this._value=void 0;let dep=this.dep=new Dep,{get,set}=factory(dep.track.bind(dep),dep.trigger.bind(dep));this._get=get,this._set=set}get value(){return this._value=this._get()}set value(newVal){this._set(newVal)}};function customRef(factory){return new CustomRefImpl(factory)}function toRefs(object){let ret=isArray$5(object)?Array(object.length):{};for(let key$1 in object)ret[key$1]=propertyToRef(object,key$1);return ret}var ObjectRefImpl=class{constructor(_object,_key,_defaultValue){this._object=_object,this._key=_key,this._defaultValue=_defaultValue,this.__v_isRef=!0,this._value=void 0}get value(){let val=this._object[this._key];return this._value=val===void 0?this._defaultValue:val}set value(newVal){this._object[this._key]=newVal}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}},GetterRefImpl=class{constructor(_getter){this._getter=_getter,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function toRef(source,key$1,defaultValue){return isRef(source)?source:isFunction$1(source)?new GetterRefImpl(source):isObject$5(source)&&arguments.length>1?propertyToRef(source,key$1,defaultValue):ref(source)}function propertyToRef(source,key$1,defaultValue){let val=source[key$1];return isRef(val)?val:new ObjectRefImpl(source,key$1,defaultValue)}var ComputedRefImpl=class{constructor(fn$5,setter,isSSR){this.fn=fn$5,this.setter=setter,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!setter,this.isSSR=isSSR}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){let link$1=this.dep.track();return refreshComputed(this),link$1&&(link$1.version=this.dep.version),this._value}set value(newValue){this.setter&&this.setter(newValue)}};function computed$1(getterOrOptions,debugOptions,isSSR=!1){let getter,setter;isFunction$1(getterOrOptions)?getter=getterOrOptions:(getter=getterOrOptions.get,setter=getterOrOptions.set);let cRef=new ComputedRefImpl(getter,setter,isSSR);return cRef}const TrackOpTypes={GET:`get`,HAS:`has`,ITERATE:`iterate`},TriggerOpTypes={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function getCurrentWatcher(){return activeWatcher}function onWatcherCleanup(cleanupFn,failSilently=!1,owner=activeWatcher){if(owner){let cleanups=cleanupMap.get(owner);cleanups||cleanupMap.set(owner,cleanups=[]),cleanups.push(cleanupFn)}}function watch$1(source,cb$1,options$1=EMPTY_OBJ){let{immediate,deep,once,scheduler,augmentJob,call}=options$1,warnInvalidSource=s$1=>{(options$1.onWarn||warn$2)(`Invalid watch source: `,s$1,`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`)},reactiveGetter=source2=>deep?source2:isShallow(source2)||deep===!1||deep===0?traverse(source2,1):traverse(source2),effect$1,getter,cleanup,boundCleanup,forceTrigger=!1,isMultiSource=!1;if(isRef(source)?(getter=()=>source.value,forceTrigger=isShallow(source)):isReactive(source)?(getter=()=>reactiveGetter(source),forceTrigger=!0):isArray$5(source)?(isMultiSource=!0,forceTrigger=source.some(s$1=>isReactive(s$1)||isShallow(s$1)),getter=()=>source.map(s$1=>{if(isRef(s$1))return s$1.value;if(isReactive(s$1))return reactiveGetter(s$1);if(isFunction$1(s$1))return call?call(s$1,2):s$1()})):getter=isFunction$1(source)?cb$1?call?()=>call(source,2):source:()=>{if(cleanup){pauseTracking();try{cleanup()}finally{resetTracking()}}let currentEffect=activeWatcher;activeWatcher=effect$1;try{return call?call(source,3,[boundCleanup]):source(boundCleanup)}finally{activeWatcher=currentEffect}}:NOOP,cb$1&&deep){let baseGetter=getter,depth=deep===!0?1/0:deep;getter=()=>traverse(baseGetter(),depth)}let scope=getCurrentScope(),watchHandle=()=>{effect$1.stop(),scope&&scope.active&&remove$1(scope.effects,effect$1)};if(once&&cb$1){let _cb=cb$1;cb$1=(...args)=>{_cb(...args),watchHandle()}}let oldValue=isMultiSource?Array(source.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE,job=immediateFirstRun=>{if(!(!(effect$1.flags&1)||!effect$1.dirty&&!immediateFirstRun))if(cb$1){let newValue=effect$1.run();if(deep||forceTrigger||(isMultiSource?newValue.some((v$1,i$1)=>hasChanged(v$1,oldValue[i$1])):hasChanged(newValue,oldValue))){cleanup&&cleanup();let currentWatcher=activeWatcher;activeWatcher=effect$1;try{let args=[newValue,oldValue===INITIAL_WATCHER_VALUE?void 0:isMultiSource&&oldValue[0]===INITIAL_WATCHER_VALUE?[]:oldValue,boundCleanup];oldValue=newValue,call?call(cb$1,3,args):cb$1(...args)}finally{activeWatcher=currentWatcher}}}else effect$1.run()};return augmentJob&&augmentJob(job),effect$1=new ReactiveEffect(getter),effect$1.scheduler=scheduler?()=>scheduler(job,!1):job,boundCleanup=fn$5=>onWatcherCleanup(fn$5,!1,effect$1),cleanup=effect$1.onStop=()=>{let cleanups=cleanupMap.get(effect$1);if(cleanups){if(call)call(cleanups,4);else for(let cleanup2 of cleanups)cleanup2();cleanupMap.delete(effect$1)}},cb$1?immediate?job(!0):oldValue=effect$1.run():scheduler?scheduler(job.bind(null,!0),!0):effect$1.run(),watchHandle.pause=effect$1.pause.bind(effect$1),watchHandle.resume=effect$1.resume.bind(effect$1),watchHandle.stop=watchHandle,watchHandle}function traverse(value$1,depth=1/0,seen$1){if(depth<=0||!isObject$5(value$1)||value$1.__v_skip||(seen$1||=new Set,seen$1.has(value$1)))return value$1;if(seen$1.add(value$1),depth--,isRef(value$1))traverse(value$1.value,depth,seen$1);else if(isArray$5(value$1))for(let i$1=0;i$1{traverse(v$1,depth,seen$1)});else if(isPlainObject$6(value$1)){for(let key$1 in value$1)traverse(value$1[key$1],depth,seen$1);for(let key$1 of Object.getOwnPropertySymbols(value$1))Object.prototype.propertyIsEnumerable.call(value$1,key$1)&&traverse(value$1[key$1],depth,seen$1)}return value$1}const stack=[];function pushWarningContext(vnode){stack.push(vnode)}function popWarningContext(){stack.pop()}function assertNumber(val,type){}const ErrorCodes={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`},ErrorTypeStrings$1={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 callWithErrorHandling(fn$5,instance,type,args){try{return args?fn$5(...args):fn$5()}catch(err){handleError(err,instance,type)}}function callWithAsyncErrorHandling(fn$5,instance,type,args){if(isFunction$1(fn$5)){let res=callWithErrorHandling(fn$5,instance,type,args);return res&&isPromise$1(res)&&res.catch(err=>{handleError(err,instance,type)}),res}if(isArray$5(fn$5)){let values=[];for(let i$1=0;i$1>>1,middleJob=queue[middle],middleJobId=getId(middleJob);middleJobId=getId(lastJob)?queue.push(job):queue.splice(findInsertionIndex$1(jobId),0,job),job.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||=resolvedPromise.then(flushJobs)}function queuePostFlushCb(cb$1){isArray$5(cb$1)?pendingPostFlushCbs.push(...cb$1):activePostFlushCbs&&cb$1.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,cb$1):cb$1.flags&1||(pendingPostFlushCbs.push(cb$1),cb$1.flags|=1),queueFlush()}function flushPreFlushCbs(instance,seen$1,i$1=flushIndex+1){for(;i$1getId(a$2)-getId(b$3));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...deduped);return}for(activePostFlushCbs=deduped,postFlushIndex=0;postFlushIndexjob.id==null?job.flags&2?-1:1/0:job.id;function flushJobs(seen$1){let check$1=NOOP;try{for(flushIndex=0;flushIndexdevtools$1.emit(event,...args)),buffer=[];else if(typeof window<`u`&&window.HTMLElement&&!(_b=(_a$2=window.navigator)?.userAgent)?.includes(`jsdom`)){let replay=target$1.__VUE_DEVTOOLS_HOOK_REPLAY__=target$1.__VUE_DEVTOOLS_HOOK_REPLAY__||[];replay.push(newHook=>{setDevtoolsHook$1(newHook,target$1)}),setTimeout(()=>{devtools$1||(target$1.__VUE_DEVTOOLS_HOOK_REPLAY__=null,devtoolsNotInstalled=!0,buffer=[])},3e3)}else devtoolsNotInstalled=!0,buffer=[]}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(instance){let prev=currentRenderingInstance;return currentRenderingInstance=instance,currentScopeId=instance&&instance.type.__scopeId||null,prev}function pushScopeId(id){currentScopeId=id}function popScopeId(){currentScopeId=null}const withScopeId=_id$4=>withCtx;function withCtx(fn$5,ctx=currentRenderingInstance,isNonScopedSlot){if(!ctx||fn$5._n)return fn$5;let renderFnWithContext=(...args)=>{renderFnWithContext._d&&setBlockTracking(-1);let prevInstance=setCurrentRenderingInstance(ctx),res;try{res=fn$5(...args)}finally{setCurrentRenderingInstance(prevInstance),renderFnWithContext._d&&setBlockTracking(1)}return res};return renderFnWithContext._n=!0,renderFnWithContext._c=!0,renderFnWithContext._d=!0,renderFnWithContext}function withDirectives(vnode,directives){if(currentRenderingInstance===null)return vnode;let instance=getComponentPublicInstance(currentRenderingInstance),bindings=vnode.dirs||=[];for(let i$1=0;i$1type.__isTeleport,isTeleportDisabled=props=>props&&(props.disabled||props.disabled===``),isTeleportDeferred=props=>props&&(props.defer||props.defer===``),isTargetSVG=target$1=>typeof SVGElement<`u`&&target$1 instanceof SVGElement,isTargetMathML=target$1=>typeof MathMLElement==`function`&&target$1 instanceof MathMLElement,resolveTarget=(props,select)=>{let targetSelector=props&&props.to;if(isString$2(targetSelector))if(select){let target$1=select(targetSelector);return target$1}else return null;else return targetSelector},TeleportImpl={name:`Teleport`,__isTeleport:!0,process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals){let{mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,o:{insert,querySelector,createText,createComment}}=internals,disabled=isTeleportDisabled(n2.props),{shapeFlag,children,dynamicChildren}=n2;if(n1==null){let placeholder=n2.el=createText(``),mainAnchor=n2.anchor=createText(``);insert(placeholder,container,anchor),insert(mainAnchor,container,anchor);let mount=(container2,anchor2)=>{shapeFlag&16&&(parentComponent&&parentComponent.isCE&&(parentComponent.ce._teleportTarget=container2),mountChildren(children,container2,anchor2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized))},mountToTarget=()=>{let target$1=n2.target=resolveTarget(n2.props,querySelector),targetAnchor=prepareAnchor(target$1,n2,createText,insert);target$1&&(namespace!==`svg`&&isTargetSVG(target$1)?namespace=`svg`:namespace!==`mathml`&&isTargetMathML(target$1)&&(namespace=`mathml`),disabled||(mount(target$1,targetAnchor),updateCssVars(n2,!1)))};disabled&&(mount(container,mainAnchor),updateCssVars(n2,!0)),isTeleportDeferred(n2.props)?(n2.el.__isMounted=!1,queuePostRenderEffect(()=>{mountToTarget(),delete n2.el.__isMounted},parentSuspense)):mountToTarget()}else{if(isTeleportDeferred(n2.props)&&n1.el.__isMounted===!1){queuePostRenderEffect(()=>{TeleportImpl.process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals)},parentSuspense);return}n2.el=n1.el,n2.targetStart=n1.targetStart;let mainAnchor=n2.anchor=n1.anchor,target$1=n2.target=n1.target,targetAnchor=n2.targetAnchor=n1.targetAnchor,wasDisabled=isTeleportDisabled(n1.props),currentContainer=wasDisabled?container:target$1,currentAnchor=wasDisabled?mainAnchor:targetAnchor;if(namespace===`svg`||isTargetSVG(target$1)?namespace=`svg`:(namespace===`mathml`||isTargetMathML(target$1))&&(namespace=`mathml`),dynamicChildren?(patchBlockChildren(n1.dynamicChildren,dynamicChildren,currentContainer,parentComponent,parentSuspense,namespace,slotScopeIds),traverseStaticChildren(n1,n2,!0)):optimized||patchChildren(n1,n2,currentContainer,currentAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,!1),disabled)wasDisabled?n2.props&&n1.props&&n2.props.to!==n1.props.to&&(n2.props.to=n1.props.to):moveTeleport(n2,container,mainAnchor,internals,1);else if((n2.props&&n2.props.to)!==(n1.props&&n1.props.to)){let nextTarget=n2.target=resolveTarget(n2.props,querySelector);nextTarget&&moveTeleport(n2,nextTarget,null,internals,0)}else wasDisabled&&moveTeleport(n2,target$1,targetAnchor,internals,1);updateCssVars(n2,disabled)}},remove(vnode,parentComponent,parentSuspense,{um:unmount,o:{remove:hostRemove}},doRemove){let{shapeFlag,children,anchor,targetStart,targetAnchor,target:target$1,props}=vnode;if(target$1&&(hostRemove(targetStart),hostRemove(targetAnchor)),doRemove&&hostRemove(anchor),shapeFlag&16){let shouldRemove=doRemove||!isTeleportDisabled(props);for(let i$1=0;i$1{state.isMounted=!0}),onBeforeUnmount(()=>{state.isUnmounting=!0}),state}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=instance=>{let subTree=instance.subTree;return subTree.component?recursiveGetSubtree(subTree.component):subTree},BaseTransitionImpl={name:`BaseTransition`,props:BaseTransitionPropsValidators,setup(props,{slots}){let instance=getCurrentInstance(),state=useTransitionState();return()=>{let children=slots.default&&getTransitionRawChildren(slots.default(),!0);if(!children||!children.length)return;let child=findNonCommentChild(children),rawProps=toRaw(props),{mode}=rawProps;if(state.isLeaving)return emptyPlaceholder(child);let innerChild=getInnerChild$1(child);if(!innerChild)return emptyPlaceholder(child);let enterHooks=resolveTransitionHooks(innerChild,rawProps,state,instance,hooks=>enterHooks=hooks);innerChild.type!==Comment&&setTransitionHooks(innerChild,enterHooks);let oldInnerChild=instance.subTree&&getInnerChild$1(instance.subTree);if(oldInnerChild&&oldInnerChild.type!==Comment&&!isSameVNodeType(innerChild,oldInnerChild)&&recursiveGetSubtree(instance).type!==Comment){let leavingHooks=resolveTransitionHooks(oldInnerChild,rawProps,state,instance);if(setTransitionHooks(oldInnerChild,leavingHooks),mode===`out-in`&&innerChild.type!==Comment)return state.isLeaving=!0,leavingHooks.afterLeave=()=>{state.isLeaving=!1,instance.job.flags&8||instance.update(),delete leavingHooks.afterLeave,oldInnerChild=void 0},emptyPlaceholder(child);mode===`in-out`&&innerChild.type!==Comment?leavingHooks.delayLeave=(el,earlyRemove,delayedLeave)=>{let leavingVNodesCache=getLeavingNodesForType(state,oldInnerChild);leavingVNodesCache[String(oldInnerChild.key)]=oldInnerChild,el[leaveCbKey]=()=>{earlyRemove(),el[leaveCbKey]=void 0,delete enterHooks.delayedLeave,oldInnerChild=void 0},enterHooks.delayedLeave=()=>{delayedLeave(),delete enterHooks.delayedLeave,oldInnerChild=void 0}}:oldInnerChild=void 0}else oldInnerChild&&=void 0;return child}}};function findNonCommentChild(children){let child=children[0];if(children.length>1){let hasFound=!1;for(let c$4 of children)if(c$4.type!==Comment){child=c$4,hasFound=!0;break}}return child}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(state,vnode){let{leavingVNodes}=state,leavingVNodesCache=leavingVNodes.get(vnode.type);return leavingVNodesCache||(leavingVNodesCache=Object.create(null),leavingVNodes.set(vnode.type,leavingVNodesCache)),leavingVNodesCache}function resolveTransitionHooks(vnode,props,state,instance,postClone){let{appear,mode,persisted=!1,onBeforeEnter,onEnter,onAfterEnter,onEnterCancelled,onBeforeLeave,onLeave,onAfterLeave,onLeaveCancelled,onBeforeAppear,onAppear,onAfterAppear,onAppearCancelled}=props,key$1=String(vnode.key),leavingVNodesCache=getLeavingNodesForType(state,vnode),callHook$2=(hook,args)=>{hook&&callWithAsyncErrorHandling(hook,instance,9,args)},callAsyncHook=(hook,args)=>{let done=args[1];callHook$2(hook,args),isArray$5(hook)?hook.every(hook2=>hook2.length<=1)&&done():hook.length<=1&&done()},hooks={mode,persisted,beforeEnter(el){let hook=onBeforeEnter;if(!state.isMounted)if(appear)hook=onBeforeAppear||onBeforeEnter;else return;el[leaveCbKey]&&el[leaveCbKey](!0);let leavingVNode=leavingVNodesCache[key$1];leavingVNode&&isSameVNodeType(vnode,leavingVNode)&&leavingVNode.el[leaveCbKey]&&leavingVNode.el[leaveCbKey](),callHook$2(hook,[el])},enter(el){let hook=onEnter,afterHook=onAfterEnter,cancelHook=onEnterCancelled;if(!state.isMounted)if(appear)hook=onAppear||onEnter,afterHook=onAfterAppear||onAfterEnter,cancelHook=onAppearCancelled||onEnterCancelled;else return;let called=!1,done=el[enterCbKey$1]=cancelled=>{called||(called=!0,callHook$2(cancelled?cancelHook:afterHook,[el]),hooks.delayedLeave&&hooks.delayedLeave(),el[enterCbKey$1]=void 0)};hook?callAsyncHook(hook,[el,done]):done()},leave(el,remove$2){let key2=String(vnode.key);if(el[enterCbKey$1]&&el[enterCbKey$1](!0),state.isUnmounting)return remove$2();callHook$2(onBeforeLeave,[el]);let called=!1,done=el[leaveCbKey]=cancelled=>{called||(called=!0,remove$2(),callHook$2(cancelled?onLeaveCancelled:onAfterLeave,[el]),el[leaveCbKey]=void 0,leavingVNodesCache[key2]===vnode&&delete leavingVNodesCache[key2])};leavingVNodesCache[key2]=vnode,onLeave?callAsyncHook(onLeave,[el,done]):done()},clone(vnode2){let hooks2=resolveTransitionHooks(vnode2,props,state,instance,postClone);return postClone&&postClone(hooks2),hooks2}};return hooks}function emptyPlaceholder(vnode){if(isKeepAlive(vnode))return vnode=cloneVNode(vnode),vnode.children=null,vnode}function getInnerChild$1(vnode){if(!isKeepAlive(vnode))return isTeleport(vnode.type)&&vnode.children?findNonCommentChild(vnode.children):vnode;if(vnode.component)return vnode.component.subTree;let{shapeFlag,children}=vnode;if(children){if(shapeFlag&16)return children[0];if(shapeFlag&32&&isFunction$1(children.default))return children.default()}}function setTransitionHooks(vnode,hooks){vnode.shapeFlag&6&&vnode.component?(vnode.transition=hooks,setTransitionHooks(vnode.component.subTree,hooks)):vnode.shapeFlag&128?(vnode.ssContent.transition=hooks.clone(vnode.ssContent),vnode.ssFallback.transition=hooks.clone(vnode.ssFallback)):vnode.transition=hooks}function getTransitionRawChildren(children,keepComment=!1,parentKey){let ret=[],keyedFragmentCount=0;for(let i$1=0;i$11)for(let i$1=0;i$1extend$1({name:options$1.name},extraOptions,{setup:options$1}))():options$1}function useId$1(){let i$1=getCurrentInstance();return i$1?(i$1.appContext.config.idPrefix||`v`)+`-`+i$1.ids[0]+ i$1.ids[1]++:``}function markAsyncBoundary(instance){instance.ids=[instance.ids[0]+ instance.ids[2]+++`-`,0,0]}function useTemplateRef(key$1){let i$1=getCurrentInstance(),r$2=shallowRef(null);if(i$1){let refs=i$1.refs===EMPTY_OBJ?i$1.refs={}:i$1.refs,desc;Object.defineProperty(refs,key$1,{enumerable:!0,get:()=>r$2.value,set:val=>r$2.value=val})}let ret=r$2;return ret}function setRef(rawRef,oldRawRef,parentSuspense,vnode,isUnmount=!1){if(isArray$5(rawRef)){rawRef.forEach((r$2,i$1)=>setRef(r$2,oldRawRef&&(isArray$5(oldRawRef)?oldRawRef[i$1]:oldRawRef),parentSuspense,vnode,isUnmount));return}if(isAsyncWrapper(vnode)&&!isUnmount){vnode.shapeFlag&512&&vnode.type.__asyncResolved&&vnode.component.subTree.component&&setRef(rawRef,oldRawRef,parentSuspense,vnode.component.subTree);return}let refValue=vnode.shapeFlag&4?getComponentPublicInstance(vnode.component):vnode.el,value$1=isUnmount?null:refValue,{i:owner,r:ref$1}=rawRef,oldRef=oldRawRef&&oldRawRef.r,refs=owner.refs===EMPTY_OBJ?owner.refs={}:owner.refs,setupState=owner.setupState,rawSetupState=toRaw(setupState),canSetSetupRef=setupState===EMPTY_OBJ?()=>!1:key$1=>hasOwn$4(rawSetupState,key$1);if(oldRef!=null&&oldRef!==ref$1&&(isString$2(oldRef)?(refs[oldRef]=null,canSetSetupRef(oldRef)&&(setupState[oldRef]=null)):isRef(oldRef)&&(oldRef.value=null)),isFunction$1(ref$1))callWithErrorHandling(ref$1,owner,12,[value$1,refs]);else{let _isString=isString$2(ref$1),_isRef=isRef(ref$1);if(_isString||_isRef){let doSet=()=>{if(rawRef.f){let existing=_isString?canSetSetupRef(ref$1)?setupState[ref$1]:refs[ref$1]:ref$1.value;isUnmount?isArray$5(existing)&&remove$1(existing,refValue):isArray$5(existing)?existing.includes(refValue)||existing.push(refValue):_isString?(refs[ref$1]=[refValue],canSetSetupRef(ref$1)&&(setupState[ref$1]=refs[ref$1])):(ref$1.value=[refValue],rawRef.k&&(refs[rawRef.k]=ref$1.value))}else _isString?(refs[ref$1]=value$1,canSetSetupRef(ref$1)&&(setupState[ref$1]=value$1)):_isRef&&(ref$1.value=value$1,rawRef.k&&(refs[rawRef.k]=value$1))};value$1?(doSet.id=-1,queuePostRenderEffect(doSet,parentSuspense)):doSet()}}}let hasLoggedMismatchError=!1;const logMismatchError=()=>{hasLoggedMismatchError||(console.error(`Hydration completed but contains mismatches.`),hasLoggedMismatchError=!0)},isSVGContainer=container=>container.namespaceURI.includes(`svg`)&&container.tagName!==`foreignObject`,isMathMLContainer=container=>container.namespaceURI.includes(`MathML`),getContainerType=container=>{if(container.nodeType===1){if(isSVGContainer(container))return`svg`;if(isMathMLContainer(container))return`mathml`}},isComment=node$1=>node$1.nodeType===8;function createHydrationFunctions(rendererInternals){let{mt:mountComponent,p:patch$1,o:{patchProp:patchProp$1,createText,nextSibling,parentNode,remove:remove$2,insert,createComment}}=rendererInternals,hydrate$1=(vnode,container)=>{if(!container.hasChildNodes()){patch$1(null,vnode,container),flushPostFlushCbs(),container._vnode=vnode;return}hydrateNode(container.firstChild,vnode,null,null,null),flushPostFlushCbs(),container._vnode=vnode},hydrateNode=(node$1,vnode,parentComponent,parentSuspense,slotScopeIds,optimized=!1)=>{optimized||=!!vnode.dynamicChildren;let isFragmentStart=isComment(node$1)&&node$1.data===`[`,onMismatch=()=>handleMismatch(node$1,vnode,parentComponent,parentSuspense,slotScopeIds,isFragmentStart),{type,ref:ref$1,shapeFlag,patchFlag}=vnode,domType=node$1.nodeType;vnode.el=node$1,patchFlag===-2&&(optimized=!1,vnode.dynamicChildren=null);let nextNode=null;switch(type){case Text:domType===3?(node$1.data!==vnode.children&&(logMismatchError(),node$1.data=vnode.children),nextNode=nextSibling(node$1)):vnode.children===``?(insert(vnode.el=createText(``),parentNode(node$1),node$1),nextNode=node$1):nextNode=onMismatch();break;case Comment:isTemplateNode(node$1)?(nextNode=nextSibling(node$1),replaceNode(vnode.el=node$1.content.firstChild,node$1,parentComponent)):nextNode=domType!==8||isFragmentStart?onMismatch():nextSibling(node$1);break;case Static:if(isFragmentStart&&(node$1=nextSibling(node$1),domType=node$1.nodeType),domType===1||domType===3){nextNode=node$1;let needToAdoptContent=!vnode.children.length;for(let i$1=0;i$1{optimized||=!!vnode.dynamicChildren;let{type,props,patchFlag,shapeFlag,dirs,transition}=vnode,forcePatch=type===`input`||type===`option`;if(forcePatch||patchFlag!==-1){dirs&&invokeDirectiveHook(vnode,null,parentComponent,`created`);let needCallTransitionHooks=!1;if(isTemplateNode(el)){needCallTransitionHooks=needTransition(null,transition)&&parentComponent&&parentComponent.vnode.props&&parentComponent.vnode.props.appear;let content$2=el.content.firstChild;if(needCallTransitionHooks){let cls=content$2.getAttribute(`class`);cls&&(content$2.$cls=cls),transition.beforeEnter(content$2)}replaceNode(content$2,el,parentComponent),vnode.el=el=content$2}if(shapeFlag&16&&!(props&&(props.innerHTML||props.textContent))){let next=hydrateChildren(el.firstChild,vnode,el,parentComponent,parentSuspense,slotScopeIds,optimized),hasWarned=!1;for(;next;){isMismatchAllowed(el,1)||logMismatchError();let cur=next;next=next.nextSibling,remove$2(cur)}}else if(shapeFlag&8){let clientText=vnode.children;clientText[0]===` `&&(el.tagName===`PRE`||el.tagName===`TEXTAREA`)&&(clientText=clientText.slice(1)),el.textContent!==clientText&&(isMismatchAllowed(el,0)||logMismatchError(),el.textContent=vnode.children)}if(props){if(forcePatch||!optimized||patchFlag&48){let isCustomElement=el.tagName.includes(`-`);for(let key$1 in props)(forcePatch&&(key$1.endsWith(`value`)||key$1===`indeterminate`)||isOn(key$1)&&!isReservedProp(key$1)||key$1[0]===`.`||isCustomElement)&&patchProp$1(el,key$1,null,props[key$1],void 0,parentComponent)}else if(props.onClick)patchProp$1(el,`onClick`,null,props.onClick,void 0,parentComponent);else if(patchFlag&4&&isReactive(props.style))for(let key$1 in props.style)props.style[key$1]}let vnodeHooks;(vnodeHooks=props&&props.onVnodeBeforeMount)&&invokeVNodeHook(vnodeHooks,parentComponent,vnode),dirs&&invokeDirectiveHook(vnode,null,parentComponent,`beforeMount`),((vnodeHooks=props&&props.onVnodeMounted)||dirs||needCallTransitionHooks)&&queueEffectWithSuspense(()=>{vnodeHooks&&invokeVNodeHook(vnodeHooks,parentComponent,vnode),needCallTransitionHooks&&transition.enter(el),dirs&&invokeDirectiveHook(vnode,null,parentComponent,`mounted`)},parentSuspense)}return el.nextSibling},hydrateChildren=(node$1,parentVNode,container,parentComponent,parentSuspense,slotScopeIds,optimized)=>{optimized||=!!parentVNode.dynamicChildren;let children=parentVNode.children,l$1=children.length,hasWarned=!1;for(let i$1=0;i$1{let{slotScopeIds:fragmentSlotScopeIds}=vnode;fragmentSlotScopeIds&&(slotScopeIds=slotScopeIds?slotScopeIds.concat(fragmentSlotScopeIds):fragmentSlotScopeIds);let container=parentNode(node$1),next=hydrateChildren(nextSibling(node$1),vnode,container,parentComponent,parentSuspense,slotScopeIds,optimized);return next&&isComment(next)&&next.data===`]`?nextSibling(vnode.anchor=next):(logMismatchError(),insert(vnode.anchor=createComment(`]`),container,next),next)},handleMismatch=(node$1,vnode,parentComponent,parentSuspense,slotScopeIds,isFragment)=>{if(isMismatchAllowed(node$1.parentElement,1)||logMismatchError(),vnode.el=null,isFragment){let end=locateClosingAnchor(node$1);for(;;){let next2=nextSibling(node$1);if(next2&&next2!==end)remove$2(next2);else break}}let next=nextSibling(node$1),container=parentNode(node$1);return remove$2(node$1),patch$1(null,vnode,container,next,parentComponent,parentSuspense,getContainerType(container),slotScopeIds),parentComponent&&(parentComponent.vnode.el=vnode.el,updateHOCHostEl(parentComponent,vnode.el)),next},locateClosingAnchor=(node$1,open$1=`[`,close=`]`)=>{let match=0;for(;node$1;)if(node$1=nextSibling(node$1),node$1&&isComment(node$1)&&(node$1.data===open$1&&match++,node$1.data===close)){if(match===0)return nextSibling(node$1);match--}return node$1},replaceNode=(newNode,oldNode,parentComponent)=>{let parentNode2=oldNode.parentNode;parentNode2&&parentNode2.replaceChild(newNode,oldNode);let parent=parentComponent;for(;parent;)parent.vnode.el===oldNode&&(parent.vnode.el=parent.subTree.el=newNode),parent=parent.parent},isTemplateNode=node$1=>node$1.nodeType===1&&node$1.tagName===`TEMPLATE`;return[hydrate$1,hydrateNode]}const allowMismatchAttr=`data-allow-mismatch`,MismatchTypeString={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function isMismatchAllowed(el,allowedType){if(allowedType===0||allowedType===1)for(;el&&!el.hasAttribute(allowMismatchAttr);)el=el.parentElement;let allowedAttr=el&&el.getAttribute(allowMismatchAttr);if(allowedAttr==null)return!1;if(allowedAttr===``)return!0;{let list$2=allowedAttr.split(`,`);return allowedType===0&&list$2.includes(`children`)?!0:list$2.includes(MismatchTypeString[allowedType])}}const requestIdleCallback$1=getGlobalThis$1().requestIdleCallback||(cb$1=>setTimeout(cb$1,1)),cancelIdleCallback=getGlobalThis$1().cancelIdleCallback||(id=>clearTimeout(id)),hydrateOnIdle=(timeout=1e4)=>hydrate$1=>{let id=requestIdleCallback$1(hydrate$1,{timeout});return()=>cancelIdleCallback(id)};function elementIsVisibleInViewport(el){let{top,left,bottom,right}=el.getBoundingClientRect(),{innerHeight,innerWidth}=window;return(top>0&&top0&&bottom0&&left0&&right(hydrate$1,forEach$1)=>{let ob=new IntersectionObserver(entries=>{for(let e$3 of entries){if(!e$3.isIntersecting)continue;ob.disconnect(),hydrate$1();break}},opts);return forEach$1(el=>{if(el instanceof Element){if(elementIsVisibleInViewport(el))return hydrate$1(),ob.disconnect(),!1;ob.observe(el)}}),()=>ob.disconnect()},hydrateOnMediaQuery=query=>hydrate$1=>{if(query){let mql=matchMedia(query);if(mql.matches)hydrate$1();else return mql.addEventListener(`change`,hydrate$1,{once:!0}),()=>mql.removeEventListener(`change`,hydrate$1)}},hydrateOnInteraction=(interactions=[])=>(hydrate$1,forEach$1)=>{isString$2(interactions)&&(interactions=[interactions]);let hasHydrated=!1,doHydrate=e$3=>{hasHydrated||(hasHydrated=!0,teardown(),hydrate$1(),e$3.target.dispatchEvent(new e$3.constructor(e$3.type,e$3)))},teardown=()=>{forEach$1(el=>{for(let i$1 of interactions)el.removeEventListener(i$1,doHydrate)})};return forEach$1(el=>{for(let i$1 of interactions)el.addEventListener(i$1,doHydrate,{once:!0})}),teardown};function forEachElement(node$1,cb$1){if(isComment(node$1)&&node$1.data===`[`){let depth=1,next=node$1.nextSibling;for(;next;){if(next.nodeType===1){let result=cb$1(next);if(result===!1)break}else if(isComment(next))if(next.data===`]`){if(--depth===0)break}else next.data===`[`&&depth++;next=next.nextSibling}}else cb$1(node$1)}const isAsyncWrapper=i$1=>!!i$1.type.__asyncLoader; /*! #__NO_SIDE_EFFECTS__ */ -function defineAsyncComponent(source){isFunction$1(source)&&(source={loader:source});let{loader:loader$1,loadingComponent,errorComponent,delay=200,hydrate:hydrateStrategy,timeout,suspensible=!0,onError:userOnError}=source,pendingRequest=null,resolvedComp,retries=0,retry=()=>(retries++,pendingRequest=null,load()),load=()=>{let thisRequest;return pendingRequest||(thisRequest=pendingRequest=loader$1().catch(err=>{if(err=err instanceof Error?err:Error(String(err)),userOnError)return new Promise((resolve$1,reject)=>{let userRetry=()=>resolve$1(retry()),userFail=()=>reject(err);userOnError(err,userRetry,userFail,retries+1)});throw err}).then(comp=>thisRequest!==pendingRequest&&pendingRequest?pendingRequest:(comp&&(comp.__esModule||comp[Symbol.toStringTag]===`Module`)&&(comp=comp.default),resolvedComp=comp,comp)))};return defineComponent({name:`AsyncComponentWrapper`,__asyncLoader:load,__asyncHydrate(el,instance,hydrate$1){let patched=!1,doHydrate=hydrateStrategy?()=>{let performHydrate=()=>{hydrate$1()},teardown=hydrateStrategy(performHydrate,cb$1=>forEachElement(el,cb$1));teardown&&(instance.bum||=[]).push(teardown),(instance.u||=[]).push(()=>patched=!0)}:hydrate$1;resolvedComp?doHydrate():load().then(()=>!instance.isUnmounted&&doHydrate())},get __asyncResolved(){return resolvedComp},setup(){let instance=currentInstance;if(markAsyncBoundary(instance),resolvedComp)return()=>createInnerComp(resolvedComp,instance);let onError=err=>{pendingRequest=null,handleError(err,instance,13,!errorComponent)};if(suspensible&&instance.suspense||isInSSRComponentSetup)return load().then(comp=>()=>createInnerComp(comp,instance)).catch(err=>(onError(err),()=>errorComponent?createVNode(errorComponent,{error:err}):null));let loaded=ref(!1),error=ref(),delayed=ref(!!delay);return delay&&setTimeout(()=>{delayed.value=!1},delay),timeout!=null&&setTimeout(()=>{if(!loaded.value&&!error.value){let err=Error(`Async component timed out after ${timeout}ms.`);onError(err),error.value=err}},timeout),load().then(()=>{loaded.value=!0,instance.parent&&isKeepAlive(instance.parent.vnode)&&instance.parent.update()}).catch(err=>{onError(err),error.value=err}),()=>{if(loaded.value&&resolvedComp)return createInnerComp(resolvedComp,instance);if(error.value&&errorComponent)return createVNode(errorComponent,{error:error.value});if(loadingComponent&&!delayed.value)return createVNode(loadingComponent)}}})}function createInnerComp(comp,parent){let{ref:ref2,props,children,ce:ce$2}=parent.vnode,vnode=createVNode(comp,props,children);return vnode.ref=ref2,vnode.ce=ce$2,delete parent.vnode.ce,vnode}const isKeepAlive=vnode=>vnode.type.__isKeepAlive,KeepAliveImpl={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(props,{slots}){let instance=getCurrentInstance(),sharedContext=instance.ctx;if(!sharedContext.renderer)return()=>{let children=slots.default&&slots.default();return children&&children.length===1?children[0]:children};let cache$1=new Map,keys$3=new Set,current=null,parentSuspense=instance.suspense,{renderer:{p:patch$1,m:move,um:_unmount,o:{createElement}}}=sharedContext,storageContainer=createElement(`div`);sharedContext.activate=(vnode,container,anchor,namespace,optimized)=>{let instance2=vnode.component;move(vnode,container,anchor,0,parentSuspense),patch$1(instance2.vnode,vnode,container,anchor,instance2,parentSuspense,namespace,vnode.slotScopeIds,optimized),queuePostRenderEffect(()=>{instance2.isDeactivated=!1,instance2.a&&invokeArrayFns(instance2.a);let vnodeHook=vnode.props&&vnode.props.onVnodeMounted;vnodeHook&&invokeVNodeHook(vnodeHook,instance2.parent,vnode)},parentSuspense)},sharedContext.deactivate=vnode=>{let instance2=vnode.component;invalidateMount(instance2.m),invalidateMount(instance2.a),move(vnode,storageContainer,null,1,parentSuspense),queuePostRenderEffect(()=>{instance2.da&&invokeArrayFns(instance2.da);let vnodeHook=vnode.props&&vnode.props.onVnodeUnmounted;vnodeHook&&invokeVNodeHook(vnodeHook,instance2.parent,vnode),instance2.isDeactivated=!0},parentSuspense)};function unmount(vnode){resetShapeFlag(vnode),_unmount(vnode,instance,parentSuspense,!0)}function pruneCache(filter$1){cache$1.forEach((vnode,key$1)=>{let name$2=getComponentName(vnode.type);name$2&&!filter$1(name$2)&&pruneCacheEntry(key$1)})}function pruneCacheEntry(key$1){let cached=cache$1.get(key$1);cached&&(!current||!isSameVNodeType(cached,current))?unmount(cached):current&&resetShapeFlag(current),cache$1.delete(key$1),keys$3.delete(key$1)}watch(()=>[props.include,props.exclude],([include,exclude])=>{include&&pruneCache(name$2=>matches(include,name$2)),exclude&&pruneCache(name$2=>!matches(exclude,name$2))},{flush:`post`,deep:!0});let pendingCacheKey=null,cacheSubtree=()=>{pendingCacheKey!=null&&(isSuspense(instance.subTree.type)?queuePostRenderEffect(()=>{cache$1.set(pendingCacheKey,getInnerChild(instance.subTree))},instance.subTree.suspense):cache$1.set(pendingCacheKey,getInnerChild(instance.subTree)))};return onMounted(cacheSubtree),onUpdated(cacheSubtree),onBeforeUnmount(()=>{cache$1.forEach(cached=>{let{subTree,suspense}=instance,vnode=getInnerChild(subTree);if(cached.type===vnode.type&&cached.key===vnode.key){resetShapeFlag(vnode);let da=vnode.component.da;da&&queuePostRenderEffect(da,suspense);return}unmount(cached)})}),()=>{if(pendingCacheKey=null,!slots.default)return current=null;let children=slots.default(),rawVNode=children[0];if(children.length>1)return current=null,children;if(!isVNode$1(rawVNode)||!(rawVNode.shapeFlag&4)&&!(rawVNode.shapeFlag&128))return current=null,rawVNode;let vnode=getInnerChild(rawVNode);if(vnode.type===Comment)return current=null,vnode;let comp=vnode.type,name$2=getComponentName(isAsyncWrapper(vnode)?vnode.type.__asyncResolved||{}:comp),{include,exclude,max:max$1}=props;if(include&&(!name$2||!matches(include,name$2))||exclude&&name$2&&matches(exclude,name$2))return vnode.shapeFlag&=-257,current=vnode,rawVNode;let key$1=vnode.key==null?comp:vnode.key,cachedVNode=cache$1.get(key$1);return vnode.el&&(vnode=cloneVNode(vnode),rawVNode.shapeFlag&128&&(rawVNode.ssContent=vnode)),pendingCacheKey=key$1,cachedVNode?(vnode.el=cachedVNode.el,vnode.component=cachedVNode.component,vnode.transition&&setTransitionHooks(vnode,vnode.transition),vnode.shapeFlag|=512,keys$3.delete(key$1),keys$3.add(key$1)):(keys$3.add(key$1),max$1&&keys$3.size>parseInt(max$1,10)&&pruneCacheEntry(keys$3.values().next().value)),vnode.shapeFlag|=256,current=vnode,isSuspense(rawVNode.type)?rawVNode:vnode}}},KeepAlive=KeepAliveImpl;function matches(pattern,name$2){return isArray$5(pattern)?pattern.some(p$5=>matches(p$5,name$2)):isString$2(pattern)?pattern.split(`,`).includes(name$2):isRegExp$1(pattern)?(pattern.lastIndex=0,pattern.test(name$2)):!1}function onActivated(hook,target$1){registerKeepAliveHook(hook,`a`,target$1)}function onDeactivated(hook,target$1){registerKeepAliveHook(hook,`da`,target$1)}function registerKeepAliveHook(hook,type,target$1=currentInstance){let wrappedHook=hook.__wdc||=()=>{let current=target$1;for(;current;){if(current.isDeactivated)return;current=current.parent}return hook()};if(injectHook(type,wrappedHook,target$1),target$1){let current=target$1.parent;for(;current&¤t.parent;)isKeepAlive(current.parent.vnode)&&injectToKeepAliveRoot(wrappedHook,type,target$1,current),current=current.parent}}function injectToKeepAliveRoot(hook,type,target$1,keepAliveRoot){let injected=injectHook(type,hook,keepAliveRoot,!0);onUnmounted(()=>{remove$1(keepAliveRoot[type],injected)},target$1)}function resetShapeFlag(vnode){vnode.shapeFlag&=-257,vnode.shapeFlag&=-513}function getInnerChild(vnode){return vnode.shapeFlag&128?vnode.ssContent:vnode}function injectHook(type,hook,target$1=currentInstance,prepend=!1){if(target$1){let hooks=target$1[type]||(target$1[type]=[]),wrappedHook=hook.__weh||=(...args)=>{pauseTracking();let reset=setCurrentInstance(target$1),res=callWithAsyncErrorHandling(hook,target$1,type,args);return reset(),resetTracking(),res};return prepend?hooks.unshift(wrappedHook):hooks.push(wrappedHook),wrappedHook}}const createHook=lifecycle=>(hook,target$1=currentInstance)=>{(!isInSSRComponentSetup||lifecycle===`sp`)&&injectHook(lifecycle,(...args)=>hook(...args),target$1)},onBeforeMount=createHook(`bm`),onMounted=createHook(`m`),onBeforeUpdate=createHook(`bu`),onUpdated=createHook(`u`),onBeforeUnmount=createHook(`bum`),onUnmounted=createHook(`um`),onServerPrefetch=createHook(`sp`),onRenderTriggered=createHook(`rtg`),onRenderTracked=createHook(`rtc`);function onErrorCaptured(hook,target$1=currentInstance){injectHook(`ec`,hook,target$1)}const COMPONENTS=`components`,DIRECTIVES=`directives`;function resolveComponent(name$2,maybeSelfReference){return resolveAsset(COMPONENTS,name$2,!0,maybeSelfReference)||name$2}const NULL_DYNAMIC_COMPONENT=Symbol.for(`v-ndc`);function resolveDynamicComponent(component){return isString$2(component)?resolveAsset(COMPONENTS,component,!1)||component:component||NULL_DYNAMIC_COMPONENT}function resolveDirective(name$2){return resolveAsset(DIRECTIVES,name$2)}function resolveAsset(type,name$2,warnMissing=!0,maybeSelfReference=!1){let instance=currentRenderingInstance||currentInstance;if(instance){let Component=instance.type;if(type===COMPONENTS){let selfName=getComponentName(Component,!1);if(selfName&&(selfName===name$2||selfName===camelize(name$2)||selfName===capitalize$1(camelize(name$2))))return Component}let res=resolve(instance[type]||Component[type],name$2)||resolve(instance.appContext[type],name$2);return!res&&maybeSelfReference?Component:res}}function resolve(registry,name$2){return registry&&(registry[name$2]||registry[camelize(name$2)]||registry[capitalize$1(camelize(name$2))])}function renderList(source,renderItem,cache$1,index$1){let ret,cached=cache$1&&cache$1[index$1],sourceIsArray=isArray$5(source);if(sourceIsArray||isString$2(source)){let sourceIsReactiveArray=sourceIsArray&&isReactive(source),needsWrap=!1,isReadonlySource=!1;sourceIsReactiveArray&&(needsWrap=!isShallow(source),isReadonlySource=isReadonly(source),source=shallowReadArray(source)),ret=Array(source.length);for(let i$1=0,l$1=source.length;i$1renderItem(item,i$1,void 0,cached&&cached[i$1]));else{let keys$3=Object.keys(source);ret=Array(keys$3.length);for(let i$1=0,l$1=keys$3.length;i$1{let res=slot.fn(...args);return res&&(res.key=slot.key),res}:slot.fn)}return slots}function renderSlot(slots,name$2,props={},fallback,noSlotted){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce)return name$2!==`default`&&(props.name=name$2),openBlock(),createBlock(Fragment,null,[createVNode(`slot`,props,fallback&&fallback())],64);let slot=slots[name$2];slot&&slot._c&&(slot._d=!1),openBlock();let validSlotContent=slot&&ensureValidVNode(slot(props)),slotKey=props.key||validSlotContent&&validSlotContent.key,rendered=createBlock(Fragment,{key:(slotKey&&!isSymbol(slotKey)?slotKey:`_${name$2}`)+(!validSlotContent&&fallback?`_fb`:``)},validSlotContent||(fallback?fallback():[]),validSlotContent&&slots._===1?64:-2);return!noSlotted&&rendered.scopeId&&(rendered.slotScopeIds=[rendered.scopeId+`-s`]),slot&&slot._c&&(slot._d=!0),rendered}function ensureValidVNode(vnodes){return vnodes.some(child=>isVNode$1(child)?!(child.type===Comment||child.type===Fragment&&!ensureValidVNode(child.children)):!0)?vnodes:null}function toHandlers(obj,preserveCaseIfNecessary){let ret={};for(let key$1 in obj)ret[preserveCaseIfNecessary&&/[A-Z]/.test(key$1)?`on:${key$1}`:toHandlerKey(key$1)]=obj[key$1];return ret}const getPublicInstance=i$1=>i$1?isStatefulComponent(i$1)?getComponentPublicInstance(i$1):getPublicInstance(i$1.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:i$1=>i$1,$el:i$1=>i$1.vnode.el,$data:i$1=>i$1.data,$props:i$1=>i$1.props,$attrs:i$1=>i$1.attrs,$slots:i$1=>i$1.slots,$refs:i$1=>i$1.refs,$parent:i$1=>getPublicInstance(i$1.parent),$root:i$1=>getPublicInstance(i$1.root),$host:i$1=>i$1.ce,$emit:i$1=>i$1.emit,$options:i$1=>resolveMergedOptions(i$1),$forceUpdate:i$1=>i$1.f||=()=>{queueJob(i$1.update)},$nextTick:i$1=>i$1.n||=nextTick.bind(i$1.proxy),$watch:i$1=>instanceWatch.bind(i$1)}),hasSetupBinding=(state,key$1)=>state!==EMPTY_OBJ&&!state.__isScriptSetup&&hasOwn$4(state,key$1),PublicInstanceProxyHandlers={get({_:instance},key$1){if(key$1===`__v_skip`)return!0;let{ctx,setupState,data:data$10,props,accessCache,type,appContext}=instance,normalizedProps;if(key$1[0]!==`$`){let n$2=accessCache[key$1];if(n$2!==void 0)switch(n$2){case 1:return setupState[key$1];case 2:return data$10[key$1];case 4:return ctx[key$1];case 3:return props[key$1]}else if(hasSetupBinding(setupState,key$1))return accessCache[key$1]=1,setupState[key$1];else if(data$10!==EMPTY_OBJ&&hasOwn$4(data$10,key$1))return accessCache[key$1]=2,data$10[key$1];else if((normalizedProps=instance.propsOptions[0])&&hasOwn$4(normalizedProps,key$1))return accessCache[key$1]=3,props[key$1];else if(ctx!==EMPTY_OBJ&&hasOwn$4(ctx,key$1))return accessCache[key$1]=4,ctx[key$1];else shouldCacheAccess&&(accessCache[key$1]=0)}let publicGetter=publicPropertiesMap[key$1],cssModule,globalProperties;if(publicGetter)return key$1===`$attrs`&&track(instance.attrs,`get`,``),publicGetter(instance);if((cssModule=type.__cssModules)&&(cssModule=cssModule[key$1]))return cssModule;if(ctx!==EMPTY_OBJ&&hasOwn$4(ctx,key$1))return accessCache[key$1]=4,ctx[key$1];if(globalProperties=appContext.config.globalProperties,hasOwn$4(globalProperties,key$1))return globalProperties[key$1]},set({_:instance},key$1,value$1){let{data:data$10,setupState,ctx}=instance;return hasSetupBinding(setupState,key$1)?(setupState[key$1]=value$1,!0):data$10!==EMPTY_OBJ&&hasOwn$4(data$10,key$1)?(data$10[key$1]=value$1,!0):hasOwn$4(instance.props,key$1)||key$1[0]===`$`&&key$1.slice(1)in instance?!1:(ctx[key$1]=value$1,!0)},has({_:{data:data$10,setupState,accessCache,ctx,appContext,propsOptions}},key$1){let normalizedProps;return!!accessCache[key$1]||data$10!==EMPTY_OBJ&&hasOwn$4(data$10,key$1)||hasSetupBinding(setupState,key$1)||(normalizedProps=propsOptions[0])&&hasOwn$4(normalizedProps,key$1)||hasOwn$4(ctx,key$1)||hasOwn$4(publicPropertiesMap,key$1)||hasOwn$4(appContext.config.globalProperties,key$1)},defineProperty(target$1,key$1,descriptor){return descriptor.get==null?hasOwn$4(descriptor,`value`)&&this.set(target$1,key$1,descriptor.value,null):target$1._.accessCache[key$1]=0,Reflect.defineProperty(target$1,key$1,descriptor)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$1({},PublicInstanceProxyHandlers,{get(target$1,key$1){if(key$1!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(target$1,key$1,target$1)},has(_$1,key$1){let has=key$1[0]!==`_`&&!isGloballyAllowed(key$1);return has}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(exposed){}function defineOptions(options$1){}function defineSlots(){return null}function defineModel(){}function withDefaults(props,defaults){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){let i$1=getCurrentInstance();return i$1.setupContext||=createSetupContext(i$1)}function normalizePropsOrEmits(props){return isArray$5(props)?props.reduce((normalized,p$5)=>(normalized[p$5]=null,normalized),{}):props}function mergeDefaults(raw$3,defaults){let props=normalizePropsOrEmits(raw$3);for(let key$1 in defaults){if(key$1.startsWith(`__skip`))continue;let opt=props[key$1];opt?isArray$5(opt)||isFunction$1(opt)?opt=props[key$1]={type:opt,default:defaults[key$1]}:opt.default=defaults[key$1]:opt===null&&(opt=props[key$1]={default:defaults[key$1]}),opt&&defaults[`__skip_${key$1}`]&&(opt.skipFactory=!0)}return props}function mergeModels(a$2,b$3){return!a$2||!b$3?a$2||b$3:isArray$5(a$2)&&isArray$5(b$3)?a$2.concat(b$3):extend$1({},normalizePropsOrEmits(a$2),normalizePropsOrEmits(b$3))}function createPropsRestProxy(props,excludedKeys){let ret={};for(let key$1 in props)excludedKeys.includes(key$1)||Object.defineProperty(ret,key$1,{enumerable:!0,get:()=>props[key$1]});return ret}function withAsyncContext(getAwaitable){let ctx=getCurrentInstance(),awaitable=getAwaitable();return unsetCurrentInstance(),isPromise$1(awaitable)&&(awaitable=awaitable.catch(e$3=>{throw setCurrentInstance(ctx),e$3})),[awaitable,()=>setCurrentInstance(ctx)]}let shouldCacheAccess=!0;function applyOptions(instance){let options$1=resolveMergedOptions(instance),publicThis=instance.proxy,ctx=instance.ctx;shouldCacheAccess=!1,options$1.beforeCreate&&callHook$1(options$1.beforeCreate,instance,`bc`);let{data:dataOptions,computed:computedOptions,methods,watch:watchOptions,provide:provideOptions,inject:injectOptions,created,beforeMount,mounted,beforeUpdate,updated,activated,deactivated,beforeDestroy,beforeUnmount,destroyed,unmounted,render:render$1,renderTracked,renderTriggered,errorCaptured,serverPrefetch,expose,inheritAttrs,components,directives,filters}=options$1,checkDuplicateProperties=null;if(injectOptions&&resolveInjections(injectOptions,ctx,checkDuplicateProperties),methods)for(let key$1 in methods){let methodHandler=methods[key$1];isFunction$1(methodHandler)&&(ctx[key$1]=methodHandler.bind(publicThis))}if(dataOptions){let data$10=dataOptions.call(publicThis,publicThis);isObject$5(data$10)&&(instance.data=reactive(data$10))}if(shouldCacheAccess=!0,computedOptions)for(let key$1 in computedOptions){let opt=computedOptions[key$1],get=isFunction$1(opt)?opt.bind(publicThis,publicThis):isFunction$1(opt.get)?opt.get.bind(publicThis,publicThis):NOOP,set=!isFunction$1(opt)&&isFunction$1(opt.set)?opt.set.bind(publicThis):NOOP,c$4=computed({get,set});Object.defineProperty(ctx,key$1,{enumerable:!0,configurable:!0,get:()=>c$4.value,set:v$1=>c$4.value=v$1})}if(watchOptions)for(let key$1 in watchOptions)createWatcher(watchOptions[key$1],ctx,publicThis,key$1);if(provideOptions){let provides=isFunction$1(provideOptions)?provideOptions.call(publicThis):provideOptions;Reflect.ownKeys(provides).forEach(key$1=>{provide(key$1,provides[key$1])})}created&&callHook$1(created,instance,`c`);function registerLifecycleHook(register,hook){isArray$5(hook)?hook.forEach(_hook=>register(_hook.bind(publicThis))):hook&®ister(hook.bind(publicThis))}if(registerLifecycleHook(onBeforeMount,beforeMount),registerLifecycleHook(onMounted,mounted),registerLifecycleHook(onBeforeUpdate,beforeUpdate),registerLifecycleHook(onUpdated,updated),registerLifecycleHook(onActivated,activated),registerLifecycleHook(onDeactivated,deactivated),registerLifecycleHook(onErrorCaptured,errorCaptured),registerLifecycleHook(onRenderTracked,renderTracked),registerLifecycleHook(onRenderTriggered,renderTriggered),registerLifecycleHook(onBeforeUnmount,beforeUnmount),registerLifecycleHook(onUnmounted,unmounted),registerLifecycleHook(onServerPrefetch,serverPrefetch),isArray$5(expose))if(expose.length){let exposed=instance.exposed||={};expose.forEach(key$1=>{Object.defineProperty(exposed,key$1,{get:()=>publicThis[key$1],set:val=>publicThis[key$1]=val})})}else instance.exposed||={};render$1&&instance.render===NOOP&&(instance.render=render$1),inheritAttrs!=null&&(instance.inheritAttrs=inheritAttrs),components&&(instance.components=components),directives&&(instance.directives=directives),serverPrefetch&&markAsyncBoundary(instance)}function resolveInjections(injectOptions,ctx,checkDuplicateProperties=NOOP){for(let key$1 in isArray$5(injectOptions)&&(injectOptions=normalizeInject(injectOptions)),injectOptions){let opt=injectOptions[key$1],injected;injected=isObject$5(opt)?`default`in opt?inject(opt.from||key$1,opt.default,!0):inject(opt.from||key$1):inject(opt),isRef(injected)?Object.defineProperty(ctx,key$1,{enumerable:!0,configurable:!0,get:()=>injected.value,set:v$1=>injected.value=v$1}):ctx[key$1]=injected}}function callHook$1(hook,instance,type){callWithAsyncErrorHandling(isArray$5(hook)?hook.map(h$3=>h$3.bind(instance.proxy)):hook.bind(instance.proxy),instance,type)}function createWatcher(raw$3,ctx,publicThis,key$1){let getter=key$1.includes(`.`)?createPathGetter(publicThis,key$1):()=>publicThis[key$1];if(isString$2(raw$3)){let handler=ctx[raw$3];isFunction$1(handler)&&watch(getter,handler)}else if(isFunction$1(raw$3))watch(getter,raw$3.bind(publicThis));else if(isObject$5(raw$3))if(isArray$5(raw$3))raw$3.forEach(r$2=>createWatcher(r$2,ctx,publicThis,key$1));else{let handler=isFunction$1(raw$3.handler)?raw$3.handler.bind(publicThis):ctx[raw$3.handler];isFunction$1(handler)&&watch(getter,handler,raw$3)}}function resolveMergedOptions(instance){let base=instance.type,{mixins,extends:extendsOptions}=base,{mixins:globalMixins,optionsCache:cache$1,config:{optionMergeStrategies}}=instance.appContext,cached=cache$1.get(base),resolved;return cached?resolved=cached:!globalMixins.length&&!mixins&&!extendsOptions?resolved=base:(resolved={},globalMixins.length&&globalMixins.forEach(m$2=>mergeOptions$1(resolved,m$2,optionMergeStrategies,!0)),mergeOptions$1(resolved,base,optionMergeStrategies)),isObject$5(base)&&cache$1.set(base,resolved),resolved}function mergeOptions$1(to$1,from,strats,asMixin=!1){let{mixins,extends:extendsOptions}=from;for(let key$1 in extendsOptions&&mergeOptions$1(to$1,extendsOptions,strats,!0),mixins&&mixins.forEach(m$2=>mergeOptions$1(to$1,m$2,strats,!0)),from)if(!(asMixin&&key$1===`expose`)){let strat=internalOptionMergeStrats[key$1]||strats&&strats[key$1];to$1[key$1]=strat?strat(to$1[key$1],from[key$1]):from[key$1]}return to$1}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(to$1,from){return from?to$1?function(){return extend$1(isFunction$1(to$1)?to$1.call(this,this):to$1,isFunction$1(from)?from.call(this,this):from)}:from:to$1}function mergeInject(to$1,from){return mergeObjectOptions(normalizeInject(to$1),normalizeInject(from))}function normalizeInject(raw$3){if(isArray$5(raw$3)){let res={};for(let i$1=0;i$11)return treatDefaultAsFactory&&isFunction$1(defaultValue)?defaultValue.call(instance&&instance.proxy):defaultValue}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=obj=>Object.getPrototypeOf(obj)===internalObjectProto;function initProps(instance,rawProps,isStateful,isSSR=!1){let props={},attrs=createInternalObject();for(let key$1 in instance.propsDefaults=Object.create(null),setFullProps(instance,rawProps,props,attrs),instance.propsOptions[0])key$1 in props||(props[key$1]=void 0);isStateful?instance.props=isSSR?props:shallowReactive(props):instance.type.props?instance.props=props:instance.props=attrs,instance.attrs=attrs}function updateProps(instance,rawProps,rawPrevProps,optimized){let{props,attrs,vnode:{patchFlag}}=instance,rawCurrentProps=toRaw(props),[options$1]=instance.propsOptions,hasAttrsChanged=!1;if((optimized||patchFlag>0)&&!(patchFlag&16)){if(patchFlag&8){let propsToUpdate=instance.vnode.dynamicProps;for(let i$1=0;i$1{hasExtends=!0;let[props,keys$3]=normalizePropsOptions(raw2,appContext,!0);extend$1(normalized,props),keys$3&&needCastKeys.push(...keys$3)};!asMixin&&appContext.mixins.length&&appContext.mixins.forEach(extendProps),comp.extends&&extendProps(comp.extends),comp.mixins&&comp.mixins.forEach(extendProps)}if(!raw$3&&!hasExtends)return isObject$5(comp)&&cache$1.set(comp,EMPTY_ARR),EMPTY_ARR;if(isArray$5(raw$3))for(let i$1=0;i$1key$1[0]===`_`||key$1===`$stable`,normalizeSlotValue=value$1=>isArray$5(value$1)?value$1.map(normalizeVNode):[normalizeVNode(value$1)],normalizeSlot$1=(key$1,rawSlot,ctx)=>{if(rawSlot._n)return rawSlot;let normalized=withCtx((...args)=>normalizeSlotValue(rawSlot(...args)),ctx);return normalized._c=!1,normalized},normalizeObjectSlots=(rawSlots,slots,instance)=>{let ctx=rawSlots._ctx;for(let key$1 in rawSlots){if(isInternalKey(key$1))continue;let value$1=rawSlots[key$1];if(isFunction$1(value$1))slots[key$1]=normalizeSlot$1(key$1,value$1,ctx);else if(value$1!=null){let normalized=normalizeSlotValue(value$1);slots[key$1]=()=>normalized}}},normalizeVNodeSlots=(instance,children)=>{let normalized=normalizeSlotValue(children);instance.slots.default=()=>normalized},assignSlots=(slots,children,optimized)=>{for(let key$1 in children)(optimized||!isInternalKey(key$1))&&(slots[key$1]=children[key$1])},initSlots=(instance,children,optimized)=>{let slots=instance.slots=createInternalObject();if(instance.vnode.shapeFlag&32){let cacheIndexes=children.__;cacheIndexes&&def(slots,`__`,cacheIndexes,!0);let type=children._;type?(assignSlots(slots,children,optimized),optimized&&def(slots,`_`,type,!0)):normalizeObjectSlots(children,slots)}else children&&normalizeVNodeSlots(instance,children)},updateSlots=(instance,children,optimized)=>{let{vnode,slots}=instance,needDeletionCheck=!0,deletionComparisonTarget=EMPTY_OBJ;if(vnode.shapeFlag&32){let type=children._;type?optimized&&type===1?needDeletionCheck=!1:assignSlots(slots,children,optimized):(needDeletionCheck=!children.$stable,normalizeObjectSlots(children,slots)),deletionComparisonTarget=children}else children&&(normalizeVNodeSlots(instance,children),deletionComparisonTarget={default:1});if(needDeletionCheck)for(let key$1 in slots)!isInternalKey(key$1)&&deletionComparisonTarget[key$1]==null&&delete slots[key$1]};function initFeatureFlags$2(){let needWarn=[]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(options$1){return baseCreateRenderer(options$1)}function createHydrationRenderer(options$1){return baseCreateRenderer(options$1,createHydrationFunctions)}function baseCreateRenderer(options$1,createHydrationFns){initFeatureFlags$2();let target$1=getGlobalThis$1();target$1.__VUE__=!0;let{insert:hostInsert,remove:hostRemove,patchProp:hostPatchProp,createElement:hostCreateElement,createText:hostCreateText,createComment:hostCreateComment,setText:hostSetText,setElementText:hostSetElementText,parentNode:hostParentNode,nextSibling:hostNextSibling,setScopeId:hostSetScopeId=NOOP,insertStaticContent:hostInsertStaticContent}=options$1,patch$1=(n1,n2,container,anchor=null,parentComponent=null,parentSuspense=null,namespace=void 0,slotScopeIds=null,optimized=!!n2.dynamicChildren)=>{if(n1===n2)return;n1&&!isSameVNodeType(n1,n2)&&(anchor=getNextHostNode(n1),unmount(n1,parentComponent,parentSuspense,!0),n1=null),n2.patchFlag===-2&&(optimized=!1,n2.dynamicChildren=null);let{type,ref:ref$1,shapeFlag}=n2;switch(type){case Text:processText(n1,n2,container,anchor);break;case Comment:processCommentNode(n1,n2,container,anchor);break;case Static:n1??mountStaticNode(n2,container,anchor,namespace);break;case Fragment:processFragment(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);break;default:shapeFlag&1?processElement(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):shapeFlag&6?processComponent(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):(shapeFlag&64||shapeFlag&128)&&type.process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals)}ref$1!=null&&parentComponent?setRef(ref$1,n1&&n1.ref,parentSuspense,n2||n1,!n2):ref$1==null&&n1&&n1.ref!=null&&setRef(n1.ref,null,parentSuspense,n1,!0)},processText=(n1,n2,container,anchor)=>{if(n1==null)hostInsert(n2.el=hostCreateText(n2.children),container,anchor);else{let el=n2.el=n1.el;n2.children!==n1.children&&hostSetText(el,n2.children)}},processCommentNode=(n1,n2,container,anchor)=>{n1==null?hostInsert(n2.el=hostCreateComment(n2.children||``),container,anchor):n2.el=n1.el},mountStaticNode=(n2,container,anchor,namespace)=>{[n2.el,n2.anchor]=hostInsertStaticContent(n2.children,container,anchor,namespace,n2.el,n2.anchor)},patchStaticNode=(n1,n2,container,namespace)=>{if(n2.children!==n1.children){let anchor=hostNextSibling(n1.anchor);removeStaticNode(n1),[n2.el,n2.anchor]=hostInsertStaticContent(n2.children,container,anchor,namespace)}else n2.el=n1.el,n2.anchor=n1.anchor},moveStaticNode=({el,anchor},container,nextSibling)=>{let next;for(;el&&el!==anchor;)next=hostNextSibling(el),hostInsert(el,container,nextSibling),el=next;hostInsert(anchor,container,nextSibling)},removeStaticNode=({el,anchor})=>{let next;for(;el&&el!==anchor;)next=hostNextSibling(el),hostRemove(el),el=next;hostRemove(anchor)},processElement=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{n2.type===`svg`?namespace=`svg`:n2.type===`math`&&(namespace=`mathml`),n1==null?mountElement(n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):patchElement(n1,n2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)},mountElement=(vnode,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let el,vnodeHook,{props,shapeFlag,transition,dirs}=vnode;if(el=vnode.el=hostCreateElement(vnode.type,namespace,props&&props.is,props),shapeFlag&8?hostSetElementText(el,vnode.children):shapeFlag&16&&mountChildren(vnode.children,el,null,parentComponent,parentSuspense,resolveChildrenNamespace(vnode,namespace),slotScopeIds,optimized),dirs&&invokeDirectiveHook(vnode,null,parentComponent,`created`),setScopeId(el,vnode,vnode.scopeId,slotScopeIds,parentComponent),props){for(let key$1 in props)key$1!==`value`&&!isReservedProp(key$1)&&hostPatchProp(el,key$1,null,props[key$1],namespace,parentComponent);`value`in props&&hostPatchProp(el,`value`,null,props.value,namespace),(vnodeHook=props.onVnodeBeforeMount)&&invokeVNodeHook(vnodeHook,parentComponent,vnode)}dirs&&invokeDirectiveHook(vnode,null,parentComponent,`beforeMount`);let needCallTransitionHooks=needTransition(parentSuspense,transition);needCallTransitionHooks&&transition.beforeEnter(el),hostInsert(el,container,anchor),((vnodeHook=props&&props.onVnodeMounted)||needCallTransitionHooks||dirs)&&queuePostRenderEffect(()=>{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode),needCallTransitionHooks&&transition.enter(el),dirs&&invokeDirectiveHook(vnode,null,parentComponent,`mounted`)},parentSuspense)},setScopeId=(el,vnode,scopeId,slotScopeIds,parentComponent)=>{if(scopeId&&hostSetScopeId(el,scopeId),slotScopeIds)for(let i$1=0;i$1{for(let i$1=start;i$1{let el=n2.el=n1.el,{patchFlag,dynamicChildren,dirs}=n2;patchFlag|=n1.patchFlag&16;let oldProps=n1.props||EMPTY_OBJ,newProps=n2.props||EMPTY_OBJ,vnodeHook;if(parentComponent&&toggleRecurse(parentComponent,!1),(vnodeHook=newProps.onVnodeBeforeUpdate)&&invokeVNodeHook(vnodeHook,parentComponent,n2,n1),dirs&&invokeDirectiveHook(n2,n1,parentComponent,`beforeUpdate`),parentComponent&&toggleRecurse(parentComponent,!0),(oldProps.innerHTML&&newProps.innerHTML==null||oldProps.textContent&&newProps.textContent==null)&&hostSetElementText(el,``),dynamicChildren?patchBlockChildren(n1.dynamicChildren,dynamicChildren,el,parentComponent,parentSuspense,resolveChildrenNamespace(n2,namespace),slotScopeIds):optimized||patchChildren(n1,n2,el,null,parentComponent,parentSuspense,resolveChildrenNamespace(n2,namespace),slotScopeIds,!1),patchFlag>0){if(patchFlag&16)patchProps(el,oldProps,newProps,parentComponent,namespace);else if(patchFlag&2&&oldProps.class!==newProps.class&&hostPatchProp(el,`class`,null,newProps.class,namespace),patchFlag&4&&hostPatchProp(el,`style`,oldProps.style,newProps.style,namespace),patchFlag&8){let propsToUpdate=n2.dynamicProps;for(let i$1=0;i$1{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,n2,n1),dirs&&invokeDirectiveHook(n2,n1,parentComponent,`updated`)},parentSuspense)},patchBlockChildren=(oldChildren,newChildren,fallbackContainer,parentComponent,parentSuspense,namespace,slotScopeIds)=>{for(let i$1=0;i$1{if(oldProps!==newProps){if(oldProps!==EMPTY_OBJ)for(let key$1 in oldProps)!isReservedProp(key$1)&&!(key$1 in newProps)&&hostPatchProp(el,key$1,oldProps[key$1],null,namespace,parentComponent);for(let key$1 in newProps){if(isReservedProp(key$1))continue;let next=newProps[key$1],prev=oldProps[key$1];next!==prev&&key$1!==`value`&&hostPatchProp(el,key$1,prev,next,namespace,parentComponent)}`value`in newProps&&hostPatchProp(el,`value`,oldProps.value,newProps.value,namespace)}},processFragment=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let fragmentStartAnchor=n2.el=n1?n1.el:hostCreateText(``),fragmentEndAnchor=n2.anchor=n1?n1.anchor:hostCreateText(``),{patchFlag,dynamicChildren,slotScopeIds:fragmentSlotScopeIds}=n2;fragmentSlotScopeIds&&(slotScopeIds=slotScopeIds?slotScopeIds.concat(fragmentSlotScopeIds):fragmentSlotScopeIds),n1==null?(hostInsert(fragmentStartAnchor,container,anchor),hostInsert(fragmentEndAnchor,container,anchor),mountChildren(n2.children||[],container,fragmentEndAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)):patchFlag>0&&patchFlag&64&&dynamicChildren&&n1.dynamicChildren?(patchBlockChildren(n1.dynamicChildren,dynamicChildren,container,parentComponent,parentSuspense,namespace,slotScopeIds),(n2.key!=null||parentComponent&&n2===parentComponent.subTree)&&traverseStaticChildren(n1,n2,!0)):patchChildren(n1,n2,container,fragmentEndAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)},processComponent=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{n2.slotScopeIds=slotScopeIds,n1==null?n2.shapeFlag&512?parentComponent.ctx.activate(n2,container,anchor,namespace,optimized):mountComponent(n2,container,anchor,parentComponent,parentSuspense,namespace,optimized):updateComponent(n1,n2,optimized)},mountComponent=(initialVNode,container,anchor,parentComponent,parentSuspense,namespace,optimized)=>{let instance=initialVNode.component=createComponentInstance(initialVNode,parentComponent,parentSuspense);if(isKeepAlive(initialVNode)&&(instance.ctx.renderer=internals),setupComponent(instance,!1,optimized),instance.asyncDep){if(parentSuspense&&parentSuspense.registerDep(instance,setupRenderEffect,optimized),!initialVNode.el){let placeholder=instance.subTree=createVNode(Comment);processCommentNode(null,placeholder,container,anchor)}}else setupRenderEffect(instance,initialVNode,container,anchor,parentSuspense,namespace,optimized)},updateComponent=(n1,n2,optimized)=>{let instance=n2.component=n1.component;if(shouldUpdateComponent(n1,n2,optimized))if(instance.asyncDep&&!instance.asyncResolved){updateComponentPreRender(instance,n2,optimized);return}else instance.next=n2,instance.update();else n2.el=n1.el,instance.vnode=n2},setupRenderEffect=(instance,initialVNode,container,anchor,parentSuspense,namespace,optimized)=>{let componentUpdateFn=()=>{if(instance.isMounted){let{next,bu,u:u$1,parent,vnode}=instance;{let nonHydratedAsyncRoot=locateNonHydratedAsyncRoot(instance);if(nonHydratedAsyncRoot){next&&(next.el=vnode.el,updateComponentPreRender(instance,next,optimized)),nonHydratedAsyncRoot.asyncDep.then(()=>{instance.isUnmounted||componentUpdateFn()});return}}let originNext=next,vnodeHook;toggleRecurse(instance,!1),next?(next.el=vnode.el,updateComponentPreRender(instance,next,optimized)):next=vnode,bu&&invokeArrayFns(bu),(vnodeHook=next.props&&next.props.onVnodeBeforeUpdate)&&invokeVNodeHook(vnodeHook,parent,next,vnode),toggleRecurse(instance,!0);let nextTree=renderComponentRoot(instance),prevTree=instance.subTree;instance.subTree=nextTree,patch$1(prevTree,nextTree,hostParentNode(prevTree.el),getNextHostNode(prevTree),instance,parentSuspense,namespace),next.el=nextTree.el,originNext===null&&updateHOCHostEl(instance,nextTree.el),u$1&&queuePostRenderEffect(u$1,parentSuspense),(vnodeHook=next.props&&next.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(vnodeHook,parent,next,vnode),parentSuspense)}else{let vnodeHook,{el,props}=initialVNode,{bm,m:m$2,parent,root:root$3,type}=instance,isAsyncWrapperVNode=isAsyncWrapper(initialVNode);if(toggleRecurse(instance,!1),bm&&invokeArrayFns(bm),!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeBeforeMount)&&invokeVNodeHook(vnodeHook,parent,initialVNode),toggleRecurse(instance,!0),el&&hydrateNode){let hydrateSubTree=()=>{instance.subTree=renderComponentRoot(instance),hydrateNode(el,instance.subTree,instance,parentSuspense,null)};isAsyncWrapperVNode&&type.__asyncHydrate?type.__asyncHydrate(el,instance,hydrateSubTree):hydrateSubTree()}else{root$3.ce&&root$3.ce._def.shadowRoot!==!1&&root$3.ce._injectChildStyle(type);let subTree=instance.subTree=renderComponentRoot(instance);patch$1(null,subTree,container,anchor,instance,parentSuspense,namespace),initialVNode.el=subTree.el}if(m$2&&queuePostRenderEffect(m$2,parentSuspense),!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeMounted)){let scopedInitialVNode=initialVNode;queuePostRenderEffect(()=>invokeVNodeHook(vnodeHook,parent,scopedInitialVNode),parentSuspense)}(initialVNode.shapeFlag&256||parent&&isAsyncWrapper(parent.vnode)&&parent.vnode.shapeFlag&256)&&instance.a&&queuePostRenderEffect(instance.a,parentSuspense),instance.isMounted=!0,initialVNode=container=anchor=null}};instance.scope.on();let effect$1=instance.effect=new ReactiveEffect(componentUpdateFn);instance.scope.off();let update=instance.update=effect$1.run.bind(effect$1),job=instance.job=effect$1.runIfDirty.bind(effect$1);job.i=instance,job.id=instance.uid,effect$1.scheduler=()=>queueJob(job),toggleRecurse(instance,!0),update()},updateComponentPreRender=(instance,nextVNode,optimized)=>{nextVNode.component=instance;let prevProps=instance.vnode.props;instance.vnode=nextVNode,instance.next=null,updateProps(instance,nextVNode.props,prevProps,optimized),updateSlots(instance,nextVNode.children,optimized),pauseTracking(),flushPreFlushCbs(instance),resetTracking()},patchChildren=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized=!1)=>{let c1=n1&&n1.children,prevShapeFlag=n1?n1.shapeFlag:0,c2=n2.children,{patchFlag,shapeFlag}=n2;if(patchFlag>0){if(patchFlag&128){patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);return}else if(patchFlag&256){patchUnkeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);return}}shapeFlag&8?(prevShapeFlag&16&&unmountChildren(c1,parentComponent,parentSuspense),c2!==c1&&hostSetElementText(container,c2)):prevShapeFlag&16?shapeFlag&16?patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):unmountChildren(c1,parentComponent,parentSuspense,!0):(prevShapeFlag&8&&hostSetElementText(container,``),shapeFlag&16&&mountChildren(c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized))},patchUnkeyedChildren=(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{c1||=EMPTY_ARR,c2||=EMPTY_ARR;let oldLength=c1.length,newLength=c2.length,commonLength=Math.min(oldLength,newLength),i$1;for(i$1=0;i$1newLength?unmountChildren(c1,parentComponent,parentSuspense,!0,!1,commonLength):mountChildren(c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,commonLength)},patchKeyedChildren=(c1,c2,container,parentAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let i$1=0,l2=c2.length,e1=c1.length-1,e2=l2-1;for(;i$1<=e1&&i$1<=e2;){let n1=c1[i$1],n2=c2[i$1]=optimized?cloneIfMounted(c2[i$1]):normalizeVNode(c2[i$1]);if(isSameVNodeType(n1,n2))patch$1(n1,n2,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else break;i$1++}for(;i$1<=e1&&i$1<=e2;){let n1=c1[e1],n2=c2[e2]=optimized?cloneIfMounted(c2[e2]):normalizeVNode(c2[e2]);if(isSameVNodeType(n1,n2))patch$1(n1,n2,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else break;e1--,e2--}if(i$1>e1){if(i$1<=e2){let nextPos=e2+1,anchor=nextPose2)for(;i$1<=e1;)unmount(c1[i$1],parentComponent,parentSuspense,!0),i$1++;else{let s1=i$1,s2=i$1,keyToNewIndexMap=new Map;for(i$1=s2;i$1<=e2;i$1++){let nextChild=c2[i$1]=optimized?cloneIfMounted(c2[i$1]):normalizeVNode(c2[i$1]);nextChild.key!=null&&keyToNewIndexMap.set(nextChild.key,i$1)}let j$1,patched=0,toBePatched=e2-s2+1,moved=!1,maxNewIndexSoFar=0,newIndexToOldIndexMap=Array(toBePatched);for(i$1=0;i$1=toBePatched){unmount(prevChild,parentComponent,parentSuspense,!0);continue}let newIndex;if(prevChild.key!=null)newIndex=keyToNewIndexMap.get(prevChild.key);else for(j$1=s2;j$1<=e2;j$1++)if(newIndexToOldIndexMap[j$1-s2]===0&&isSameVNodeType(prevChild,c2[j$1])){newIndex=j$1;break}newIndex===void 0?unmount(prevChild,parentComponent,parentSuspense,!0):(newIndexToOldIndexMap[newIndex-s2]=i$1+1,newIndex>=maxNewIndexSoFar?maxNewIndexSoFar=newIndex:moved=!0,patch$1(prevChild,c2[newIndex],container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized),patched++)}let increasingNewIndexSequence=moved?getSequence(newIndexToOldIndexMap):EMPTY_ARR;for(j$1=increasingNewIndexSequence.length-1,i$1=toBePatched-1;i$1>=0;i$1--){let nextIndex=s2+i$1,nextChild=c2[nextIndex],anchor=nextIndex+1{let{el,type,transition,children,shapeFlag}=vnode;if(shapeFlag&6){move(vnode.component.subTree,container,anchor,moveType);return}if(shapeFlag&128){vnode.suspense.move(container,anchor,moveType);return}if(shapeFlag&64){type.move(vnode,container,anchor,internals);return}if(type===Fragment){hostInsert(el,container,anchor);for(let i$1=0;i$1transition.enter(el),parentSuspense);else{let{leave,delayLeave,afterLeave}=transition,remove2=()=>{vnode.ctx.isUnmounted?hostRemove(el):hostInsert(el,container,anchor)},performLeave=()=>{leave(el,()=>{remove2(),afterLeave&&afterLeave()})};delayLeave?delayLeave(el,remove2,performLeave):performLeave()}else hostInsert(el,container,anchor)},unmount=(vnode,parentComponent,parentSuspense,doRemove=!1,optimized=!1)=>{let{type,props,ref:ref$1,children,dynamicChildren,shapeFlag,patchFlag,dirs,cacheIndex}=vnode;if(patchFlag===-2&&(optimized=!1),ref$1!=null&&(pauseTracking(),setRef(ref$1,null,parentSuspense,vnode,!0),resetTracking()),cacheIndex!=null&&(parentComponent.renderCache[cacheIndex]=void 0),shapeFlag&256){parentComponent.ctx.deactivate(vnode);return}let shouldInvokeDirs=shapeFlag&1&&dirs,shouldInvokeVnodeHook=!isAsyncWrapper(vnode),vnodeHook;if(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeBeforeUnmount)&&invokeVNodeHook(vnodeHook,parentComponent,vnode),shapeFlag&6)unmountComponent(vnode.component,parentSuspense,doRemove);else{if(shapeFlag&128){vnode.suspense.unmount(parentSuspense,doRemove);return}shouldInvokeDirs&&invokeDirectiveHook(vnode,null,parentComponent,`beforeUnmount`),shapeFlag&64?vnode.type.remove(vnode,parentComponent,parentSuspense,internals,doRemove):dynamicChildren&&!dynamicChildren.hasOnce&&(type!==Fragment||patchFlag>0&&patchFlag&64)?unmountChildren(dynamicChildren,parentComponent,parentSuspense,!1,!0):(type===Fragment&&patchFlag&384||!optimized&&shapeFlag&16)&&unmountChildren(children,parentComponent,parentSuspense),doRemove&&remove$2(vnode)}(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeUnmounted)||shouldInvokeDirs)&&queuePostRenderEffect(()=>{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode),shouldInvokeDirs&&invokeDirectiveHook(vnode,null,parentComponent,`unmounted`)},parentSuspense)},remove$2=vnode=>{let{type,el,anchor,transition}=vnode;if(type===Fragment){removeFragment(el,anchor);return}if(type===Static){removeStaticNode(vnode);return}let performRemove=()=>{hostRemove(el),transition&&!transition.persisted&&transition.afterLeave&&transition.afterLeave()};if(vnode.shapeFlag&1&&transition&&!transition.persisted){let{leave,delayLeave}=transition,performLeave=()=>leave(el,performRemove);delayLeave?delayLeave(vnode.el,performRemove,performLeave):performLeave()}else performRemove()},removeFragment=(cur,end)=>{let next;for(;cur!==end;)next=hostNextSibling(cur),hostRemove(cur),cur=next;hostRemove(end)},unmountComponent=(instance,parentSuspense,doRemove)=>{let{bum,scope,job,subTree,um,m:m$2,a:a$2,parent,slots:{__:slotCacheKeys}}=instance;invalidateMount(m$2),invalidateMount(a$2),bum&&invokeArrayFns(bum),parent&&isArray$5(slotCacheKeys)&&slotCacheKeys.forEach(v$1=>{parent.renderCache[v$1]=void 0}),scope.stop(),job&&(job.flags|=8,unmount(subTree,instance,parentSuspense,doRemove)),um&&queuePostRenderEffect(um,parentSuspense),queuePostRenderEffect(()=>{instance.isUnmounted=!0},parentSuspense),parentSuspense&&parentSuspense.pendingBranch&&!parentSuspense.isUnmounted&&instance.asyncDep&&!instance.asyncResolved&&instance.suspenseId===parentSuspense.pendingId&&(parentSuspense.deps--,parentSuspense.deps===0&&parentSuspense.resolve())},unmountChildren=(children,parentComponent,parentSuspense,doRemove=!1,optimized=!1,start=0)=>{for(let i$1=start;i$1{if(vnode.shapeFlag&6)return getNextHostNode(vnode.component.subTree);if(vnode.shapeFlag&128)return vnode.suspense.next();let el=hostNextSibling(vnode.anchor||vnode.el),teleportEnd=el&&el[TeleportEndKey];return teleportEnd?hostNextSibling(teleportEnd):el},isFlushing=!1,render$1=(vnode,container,namespace)=>{vnode==null?container._vnode&&unmount(container._vnode,null,null,!0):patch$1(container._vnode||null,vnode,container,null,null,null,namespace),container._vnode=vnode,isFlushing||(isFlushing=!0,flushPreFlushCbs(),flushPostFlushCbs(),isFlushing=!1)},internals={p:patch$1,um:unmount,m:move,r:remove$2,mt:mountComponent,mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,n:getNextHostNode,o:options$1},hydrate$1,hydrateNode;return createHydrationFns&&([hydrate$1,hydrateNode]=createHydrationFns(internals)),{render:render$1,hydrate:hydrate$1,createApp:createAppAPI(render$1,hydrate$1)}}function resolveChildrenNamespace({type,props},currentNamespace){return currentNamespace===`svg`&&type===`foreignObject`||currentNamespace===`mathml`&&type===`annotation-xml`&&props&&props.encoding&&props.encoding.includes(`html`)?void 0:currentNamespace}function toggleRecurse({effect:effect$1,job},allowed){allowed?(effect$1.flags|=32,job.flags|=4):(effect$1.flags&=-33,job.flags&=-5)}function needTransition(parentSuspense,transition){return(!parentSuspense||parentSuspense&&!parentSuspense.pendingBranch)&&transition&&!transition.persisted}function traverseStaticChildren(n1,n2,shallow=!1){let ch1=n1.children,ch2=n2.children;if(isArray$5(ch1)&&isArray$5(ch2))for(let i$1=0;i$1>1,arr[result[c$4]]0&&(p$5[i$1]=result[u$1-1]),result[u$1]=i$1)}}for(u$1=result.length,v$1=result[u$1-1];u$1-- >0;)result[u$1]=v$1,v$1=p$5[v$1];return result}function locateNonHydratedAsyncRoot(instance){let subComponent=instance.subTree.component;if(subComponent)return subComponent.asyncDep&&!subComponent.asyncResolved?subComponent:locateNonHydratedAsyncRoot(subComponent)}function invalidateMount(hooks){if(hooks)for(let i$1=0;i$1{{let ctx=inject(ssrContextKey);return ctx}};function watchEffect(effect$1,options$1){return doWatch(effect$1,null,options$1)}function watchPostEffect(effect$1,options$1){return doWatch(effect$1,null,{flush:`post`})}function watchSyncEffect(effect$1,options$1){return doWatch(effect$1,null,{flush:`sync`})}function watch(source,cb$1,options$1){return doWatch(source,cb$1,options$1)}function doWatch(source,cb$1,options$1=EMPTY_OBJ){let{immediate,deep,flush,once}=options$1,baseWatchOptions=extend$1({},options$1),runsImmediately=cb$1&&immediate||!cb$1&&flush!==`post`,ssrCleanup;if(isInSSRComponentSetup){if(flush===`sync`){let ctx=useSSRContext();ssrCleanup=ctx.__watcherHandles||=[]}else if(!runsImmediately){let watchStopHandle=()=>{};return watchStopHandle.stop=NOOP,watchStopHandle.resume=NOOP,watchStopHandle.pause=NOOP,watchStopHandle}}let instance=currentInstance;baseWatchOptions.call=(fn$5,type,args)=>callWithAsyncErrorHandling(fn$5,instance,type,args);let isPre=!1;flush===`post`?baseWatchOptions.scheduler=job=>{queuePostRenderEffect(job,instance&&instance.suspense)}:flush!==`sync`&&(isPre=!0,baseWatchOptions.scheduler=(job,isFirstRun)=>{isFirstRun?job():queueJob(job)}),baseWatchOptions.augmentJob=job=>{cb$1&&(job.flags|=4),isPre&&(job.flags|=2,instance&&(job.id=instance.uid,job.i=instance))};let watchHandle=watch$1(source,cb$1,baseWatchOptions);return isInSSRComponentSetup&&(ssrCleanup?ssrCleanup.push(watchHandle):runsImmediately&&watchHandle()),watchHandle}function instanceWatch(source,value$1,options$1){let publicThis=this.proxy,getter=isString$2(source)?source.includes(`.`)?createPathGetter(publicThis,source):()=>publicThis[source]:source.bind(publicThis,publicThis),cb$1;isFunction$1(value$1)?cb$1=value$1:(cb$1=value$1.handler,options$1=value$1);let reset=setCurrentInstance(this),res=doWatch(getter,cb$1.bind(publicThis),options$1);return reset(),res}function createPathGetter(ctx,path){let segments=path.split(`.`);return()=>{let cur=ctx;for(let i$1=0;i$1{let localValue,prevSetValue=EMPTY_OBJ,prevEmittedValue;return watchSyncEffect(()=>{let propValue=props[camelizedName];hasChanged(localValue,propValue)&&(localValue=propValue,trigger$1())}),{get(){return track$1(),options$1.get?options$1.get(localValue):localValue},set(value$1){let emittedValue=options$1.set?options$1.set(value$1):value$1;if(!hasChanged(emittedValue,localValue)&&!(prevSetValue!==EMPTY_OBJ&&hasChanged(value$1,prevSetValue)))return;let rawProps=i$1.vnode.props;rawProps&&(name$2 in rawProps||camelizedName in rawProps||hyphenatedName in rawProps)&&(`onUpdate:${name$2}`in rawProps||`onUpdate:${camelizedName}`in rawProps||`onUpdate:${hyphenatedName}`in rawProps)||(localValue=value$1,trigger$1()),i$1.emit(`update:${name$2}`,emittedValue),hasChanged(value$1,emittedValue)&&hasChanged(value$1,prevSetValue)&&!hasChanged(emittedValue,prevEmittedValue)&&trigger$1(),prevSetValue=value$1,prevEmittedValue=emittedValue}}});return res[Symbol.iterator]=()=>{let i2=0;return{next(){return i2<2?{value:i2++?modifiers||EMPTY_OBJ:res,done:!1}:{done:!0}}}},res}const getModelModifiers=(props,modelName)=>modelName===`modelValue`||modelName===`model-value`?props.modelModifiers:props[`${modelName}Modifiers`]||props[`${camelize(modelName)}Modifiers`]||props[`${hyphenate$2(modelName)}Modifiers`];function emit(instance,event,...rawArgs){if(instance.isUnmounted)return;let props=instance.vnode.props||EMPTY_OBJ,args=rawArgs,isModelListener$1=event.startsWith(`update:`),modifiers=isModelListener$1&&getModelModifiers(props,event.slice(7));modifiers&&(modifiers.trim&&(args=rawArgs.map(a$2=>isString$2(a$2)?a$2.trim():a$2)),modifiers.number&&(args=rawArgs.map(looseToNumber)));let handlerName,handler=props[handlerName=toHandlerKey(event)]||props[handlerName=toHandlerKey(camelize(event))];!handler&&isModelListener$1&&(handler=props[handlerName=toHandlerKey(hyphenate$2(event))]),handler&&callWithAsyncErrorHandling(handler,instance,6,args);let onceHandler=props[handlerName+`Once`];if(onceHandler){if(!instance.emitted)instance.emitted={};else if(instance.emitted[handlerName])return;instance.emitted[handlerName]=!0,callWithAsyncErrorHandling(onceHandler,instance,6,args)}}function normalizeEmitsOptions(comp,appContext,asMixin=!1){let cache$1=appContext.emitsCache,cached=cache$1.get(comp);if(cached!==void 0)return cached;let raw$3=comp.emits,normalized={},hasExtends=!1;if(!isFunction$1(comp)){let extendEmits=raw2=>{let normalizedFromExtend=normalizeEmitsOptions(raw2,appContext,!0);normalizedFromExtend&&(hasExtends=!0,extend$1(normalized,normalizedFromExtend))};!asMixin&&appContext.mixins.length&&appContext.mixins.forEach(extendEmits),comp.extends&&extendEmits(comp.extends),comp.mixins&&comp.mixins.forEach(extendEmits)}return!raw$3&&!hasExtends?(isObject$5(comp)&&cache$1.set(comp,null),null):(isArray$5(raw$3)?raw$3.forEach(key$1=>normalized[key$1]=null):extend$1(normalized,raw$3),isObject$5(comp)&&cache$1.set(comp,normalized),normalized)}function isEmitListener(options$1,key$1){return!options$1||!isOn(key$1)?!1:(key$1=key$1.slice(2).replace(/Once$/,``),hasOwn$4(options$1,key$1[0].toLowerCase()+key$1.slice(1))||hasOwn$4(options$1,hyphenate$2(key$1))||hasOwn$4(options$1,key$1))}function renderComponentRoot(instance){let{type:Component,vnode,proxy,withProxy,propsOptions:[propsOptions],slots,attrs,emit:emit$1,render:render$1,renderCache,props,data:data$10,setupState,ctx,inheritAttrs}=instance,prev=setCurrentRenderingInstance(instance),result,fallthroughAttrs;try{if(vnode.shapeFlag&4){let proxyToUse=withProxy||proxy,thisProxy=proxyToUse;result=normalizeVNode(render$1.call(thisProxy,proxyToUse,renderCache,props,setupState,data$10,ctx)),fallthroughAttrs=attrs}else{let render2=Component;result=normalizeVNode(render2.length>1?render2(props,{attrs,slots,emit:emit$1}):render2(props,null)),fallthroughAttrs=Component.props?attrs:getFunctionalFallthrough(attrs)}}catch(err){blockStack.length=0,handleError(err,instance,1),result=createVNode(Comment)}let root$3=result,setRoot;if(fallthroughAttrs&&inheritAttrs!==!1){let keys$3=Object.keys(fallthroughAttrs),{shapeFlag}=root$3;keys$3.length&&shapeFlag&7&&(propsOptions&&keys$3.some(isModelListener)&&(fallthroughAttrs=filterModelListeners(fallthroughAttrs,propsOptions)),root$3=cloneVNode(root$3,fallthroughAttrs,!1,!0))}return vnode.dirs&&(root$3=cloneVNode(root$3,null,!1,!0),root$3.dirs=root$3.dirs?root$3.dirs.concat(vnode.dirs):vnode.dirs),vnode.transition&&setTransitionHooks(root$3,vnode.transition),result=root$3,setCurrentRenderingInstance(prev),result}function filterSingleRoot(children,recurse=!0){let singleRoot;for(let i$1=0;i$1{let res;for(let key$1 in attrs)(key$1===`class`||key$1===`style`||isOn(key$1))&&((res||={})[key$1]=attrs[key$1]);return res},filterModelListeners=(attrs,props)=>{let res={};for(let key$1 in attrs)(!isModelListener(key$1)||!(key$1.slice(9)in props))&&(res[key$1]=attrs[key$1]);return res};function shouldUpdateComponent(prevVNode,nextVNode,optimized){let{props:prevProps,children:prevChildren,component}=prevVNode,{props:nextProps,children:nextChildren,patchFlag}=nextVNode,emits=component.emitsOptions;if(nextVNode.dirs||nextVNode.transition)return!0;if(optimized&&patchFlag>=0){if(patchFlag&1024)return!0;if(patchFlag&16)return prevProps?hasPropsChanged(prevProps,nextProps,emits):!!nextProps;if(patchFlag&8){let dynamicProps=nextVNode.dynamicProps;for(let i$1=0;i$1type.__isSuspense;let suspenseId=0;const SuspenseImpl={name:`Suspense`,__isSuspense:!0,process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals){if(n1==null)mountSuspense(n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals);else{if(parentSuspense&&parentSuspense.deps>0&&!n1.suspense.isInFallback){n2.suspense=n1.suspense,n2.suspense.vnode=n2,n2.el=n1.el;return}patchSuspense(n1,n2,container,anchor,parentComponent,namespace,slotScopeIds,optimized,rendererInternals)}},hydrate:hydrateSuspense,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(vnode,name$2){let eventListener=vnode.props&&vnode.props[name$2];isFunction$1(eventListener)&&eventListener()}function mountSuspense(vnode,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals){let{p:patch$1,o:{createElement}}=rendererInternals,hiddenContainer=createElement(`div`),suspense=vnode.suspense=createSuspenseBoundary(vnode,parentSuspense,parentComponent,container,hiddenContainer,anchor,namespace,slotScopeIds,optimized,rendererInternals);patch$1(null,suspense.pendingBranch=vnode.ssContent,hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds),suspense.deps>0?(triggerEvent(vnode,`onPending`),triggerEvent(vnode,`onFallback`),patch$1(null,vnode.ssFallback,container,anchor,parentComponent,null,namespace,slotScopeIds),setActiveBranch(suspense,vnode.ssFallback)):suspense.resolve(!1,!0)}function patchSuspense(n1,n2,container,anchor,parentComponent,namespace,slotScopeIds,optimized,{p:patch$1,um:unmount,o:{createElement}}){let suspense=n2.suspense=n1.suspense;suspense.vnode=n2,n2.el=n1.el;let newBranch=n2.ssContent,newFallback=n2.ssFallback,{activeBranch,pendingBranch,isInFallback,isHydrating}=suspense;if(pendingBranch)suspense.pendingBranch=newBranch,isSameVNodeType(newBranch,pendingBranch)?(patch$1(pendingBranch,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0?suspense.resolve():isInFallback&&(isHydrating||(patch$1(activeBranch,newFallback,container,anchor,parentComponent,null,namespace,slotScopeIds,optimized),setActiveBranch(suspense,newFallback)))):(suspense.pendingId=suspenseId++,isHydrating?(suspense.isHydrating=!1,suspense.activeBranch=pendingBranch):unmount(pendingBranch,parentComponent,suspense),suspense.deps=0,suspense.effects.length=0,suspense.hiddenContainer=createElement(`div`),isInFallback?(patch$1(null,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0?suspense.resolve():(patch$1(activeBranch,newFallback,container,anchor,parentComponent,null,namespace,slotScopeIds,optimized),setActiveBranch(suspense,newFallback))):activeBranch&&isSameVNodeType(newBranch,activeBranch)?(patch$1(activeBranch,newBranch,container,anchor,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.resolve(!0)):(patch$1(null,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0&&suspense.resolve()));else if(activeBranch&&isSameVNodeType(newBranch,activeBranch))patch$1(activeBranch,newBranch,container,anchor,parentComponent,suspense,namespace,slotScopeIds,optimized),setActiveBranch(suspense,newBranch);else if(triggerEvent(n2,`onPending`),suspense.pendingBranch=newBranch,newBranch.shapeFlag&512?suspense.pendingId=newBranch.component.suspenseId:suspense.pendingId=suspenseId++,patch$1(null,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0)suspense.resolve();else{let{timeout,pendingId}=suspense;timeout>0?setTimeout(()=>{suspense.pendingId===pendingId&&suspense.fallback(newFallback)},timeout):timeout===0&&suspense.fallback(newFallback)}}function createSuspenseBoundary(vnode,parentSuspense,parentComponent,container,hiddenContainer,anchor,namespace,slotScopeIds,optimized,rendererInternals,isHydrating=!1){let{p:patch$1,m:move,um:unmount,n:next,o:{parentNode,remove:remove$2}}=rendererInternals,parentSuspenseId,isSuspensible=isVNodeSuspensible(vnode);isSuspensible&&parentSuspense&&parentSuspense.pendingBranch&&(parentSuspenseId=parentSuspense.pendingId,parentSuspense.deps++);let timeout=vnode.props?toNumber(vnode.props.timeout):void 0,initialAnchor=anchor,suspense={vnode,parent:parentSuspense,parentComponent,namespace,container,hiddenContainer,deps:0,pendingId:suspenseId++,timeout:typeof timeout==`number`?timeout:-1,activeBranch:null,pendingBranch:null,isInFallback:!isHydrating,isHydrating,isUnmounted:!1,effects:[],resolve(resume=!1,sync$1=!1){let{vnode:vnode2,activeBranch,pendingBranch,pendingId,effects,parentComponent:parentComponent2,container:container2}=suspense,delayEnter=!1;suspense.isHydrating?suspense.isHydrating=!1:resume||(delayEnter=activeBranch&&pendingBranch.transition&&pendingBranch.transition.mode===`out-in`,delayEnter&&(activeBranch.transition.afterLeave=()=>{pendingId===suspense.pendingId&&(move(pendingBranch,container2,anchor===initialAnchor?next(activeBranch):anchor,0),queuePostFlushCb(effects))}),activeBranch&&(parentNode(activeBranch.el)===container2&&(anchor=next(activeBranch)),unmount(activeBranch,parentComponent2,suspense,!0)),delayEnter||move(pendingBranch,container2,anchor,0)),setActiveBranch(suspense,pendingBranch),suspense.pendingBranch=null,suspense.isInFallback=!1;let parent=suspense.parent,hasUnresolvedAncestor=!1;for(;parent;){if(parent.pendingBranch){parent.effects.push(...effects),hasUnresolvedAncestor=!0;break}parent=parent.parent}!hasUnresolvedAncestor&&!delayEnter&&queuePostFlushCb(effects),suspense.effects=[],isSuspensible&&parentSuspense&&parentSuspense.pendingBranch&&parentSuspenseId===parentSuspense.pendingId&&(parentSuspense.deps--,parentSuspense.deps===0&&!sync$1&&parentSuspense.resolve()),triggerEvent(vnode2,`onResolve`)},fallback(fallbackVNode){if(!suspense.pendingBranch)return;let{vnode:vnode2,activeBranch,parentComponent:parentComponent2,container:container2,namespace:namespace2}=suspense;triggerEvent(vnode2,`onFallback`);let anchor2=next(activeBranch),mountFallback=()=>{suspense.isInFallback&&(patch$1(null,fallbackVNode,container2,anchor2,parentComponent2,null,namespace2,slotScopeIds,optimized),setActiveBranch(suspense,fallbackVNode))},delayEnter=fallbackVNode.transition&&fallbackVNode.transition.mode===`out-in`;delayEnter&&(activeBranch.transition.afterLeave=mountFallback),suspense.isInFallback=!0,unmount(activeBranch,parentComponent2,null,!0),delayEnter||mountFallback()},move(container2,anchor2,type){suspense.activeBranch&&move(suspense.activeBranch,container2,anchor2,type),suspense.container=container2},next(){return suspense.activeBranch&&next(suspense.activeBranch)},registerDep(instance,setupRenderEffect,optimized2){let isInPendingSuspense=!!suspense.pendingBranch;isInPendingSuspense&&suspense.deps++;let hydratedEl=instance.vnode.el;instance.asyncDep.catch(err=>{handleError(err,instance,0)}).then(asyncSetupResult=>{if(instance.isUnmounted||suspense.isUnmounted||suspense.pendingId!==instance.suspenseId)return;instance.asyncResolved=!0;let{vnode:vnode2}=instance;handleSetupResult(instance,asyncSetupResult,!1),hydratedEl&&(vnode2.el=hydratedEl);let placeholder=!hydratedEl&&instance.subTree.el;setupRenderEffect(instance,vnode2,parentNode(hydratedEl||instance.subTree.el),hydratedEl?null:next(instance.subTree),suspense,namespace,optimized2),placeholder&&remove$2(placeholder),updateHOCHostEl(instance,vnode2.el),isInPendingSuspense&&--suspense.deps===0&&suspense.resolve()})},unmount(parentSuspense2,doRemove){suspense.isUnmounted=!0,suspense.activeBranch&&unmount(suspense.activeBranch,parentComponent,parentSuspense2,doRemove),suspense.pendingBranch&&unmount(suspense.pendingBranch,parentComponent,parentSuspense2,doRemove)}};return suspense}function hydrateSuspense(node$1,vnode,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals,hydrateNode){let suspense=vnode.suspense=createSuspenseBoundary(vnode,parentSuspense,parentComponent,node$1.parentNode,document.createElement(`div`),null,namespace,slotScopeIds,optimized,rendererInternals,!0),result=hydrateNode(node$1,suspense.pendingBranch=vnode.ssContent,parentComponent,suspense,slotScopeIds,optimized);return suspense.deps===0&&suspense.resolve(!1,!0),result}function normalizeSuspenseChildren(vnode){let{shapeFlag,children}=vnode,isSlotChildren=shapeFlag&32;vnode.ssContent=normalizeSuspenseSlot(isSlotChildren?children.default:children),vnode.ssFallback=isSlotChildren?normalizeSuspenseSlot(children.fallback):createVNode(Comment)}function normalizeSuspenseSlot(s$1){let block;if(isFunction$1(s$1)){let trackBlock=isBlockTreeEnabled&&s$1._c;trackBlock&&(s$1._d=!1,openBlock()),s$1=s$1(),trackBlock&&(s$1._d=!0,block=currentBlock,closeBlock())}if(isArray$5(s$1)){let singleChild=filterSingleRoot(s$1);s$1=singleChild}return s$1=normalizeVNode(s$1),block&&!s$1.dynamicChildren&&(s$1.dynamicChildren=block.filter(c$4=>c$4!==s$1)),s$1}function queueEffectWithSuspense(fn$5,suspense){suspense&&suspense.pendingBranch?isArray$5(fn$5)?suspense.effects.push(...fn$5):suspense.effects.push(fn$5):queuePostFlushCb(fn$5)}function setActiveBranch(suspense,branch){suspense.activeBranch=branch;let{vnode,parentComponent}=suspense,el=branch.el;for(;!el&&branch.component;)branch=branch.component.subTree,el=branch.el;vnode.el=el,parentComponent&&parentComponent.subTree===vnode&&(parentComponent.vnode.el=el,updateHOCHostEl(parentComponent,el))}function isVNodeSuspensible(vnode){let suspensible=vnode.props&&vnode.props.suspensible;return suspensible!=null&&suspensible!==!1}const Fragment=Symbol.for(`v-fgt`),Text=Symbol.for(`v-txt`),Comment=Symbol.for(`v-cmt`),Static=Symbol.for(`v-stc`),blockStack=[];let currentBlock=null;function openBlock(disableTracking=!1){blockStack.push(currentBlock=disableTracking?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(value$1,inVOnce=!1){isBlockTreeEnabled+=value$1,value$1<0&¤tBlock&&inVOnce&&(currentBlock.hasOnce=!0)}function setupBlock(vnode){return vnode.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(vnode),vnode}function createElementBlock(type,props,children,patchFlag,dynamicProps,shapeFlag){return setupBlock(createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,!0))}function createBlock(type,props,children,patchFlag,dynamicProps){return setupBlock(createVNode(type,props,children,patchFlag,dynamicProps,!0))}function isVNode$1(value$1){return value$1?value$1.__v_isVNode===!0:!1}function isSameVNodeType(n1,n2){return n1.type===n2.type&&n1.key===n2.key}let vnodeArgsTransformer;function transformVNodeArgs(transformer){vnodeArgsTransformer=transformer}const normalizeKey=({key:key$1})=>key$1??null,normalizeRef=({ref:ref$1,ref_key,ref_for})=>(typeof ref$1==`number`&&(ref$1=``+ref$1),ref$1==null?null:isString$2(ref$1)||isRef(ref$1)||isFunction$1(ref$1)?{i:currentRenderingInstance,r:ref$1,k:ref_key,f:!!ref_for}:ref$1);function createBaseVNode(type,props=null,children=null,patchFlag=0,dynamicProps=null,shapeFlag=type===Fragment?0:1,isBlockNode=!1,needFullChildrenNormalization=!1){let vnode={__v_isVNode:!0,__v_skip:!0,type,props,key:props&&normalizeKey(props),ref:props&&normalizeRef(props),scopeId:currentScopeId,slotScopeIds:null,children,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,patchFlag,dynamicProps,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return needFullChildrenNormalization?(normalizeChildren(vnode,children),shapeFlag&128&&type.normalize(vnode)):children&&(vnode.shapeFlag|=isString$2(children)?8:16),isBlockTreeEnabled>0&&!isBlockNode&¤tBlock&&(vnode.patchFlag>0||shapeFlag&6)&&vnode.patchFlag!==32&¤tBlock.push(vnode),vnode}const createVNode=_createVNode;function _createVNode(type,props=null,children=null,patchFlag=0,dynamicProps=null,isBlockNode=!1){if((!type||type===NULL_DYNAMIC_COMPONENT)&&(type=Comment),isVNode$1(type)){let cloned=cloneVNode(type,props,!0);return children&&normalizeChildren(cloned,children),isBlockTreeEnabled>0&&!isBlockNode&¤tBlock&&(cloned.shapeFlag&6?currentBlock[currentBlock.indexOf(type)]=cloned:currentBlock.push(cloned)),cloned.patchFlag=-2,cloned}if(isClassComponent(type)&&(type=type.__vccOpts),props){props=guardReactiveProps(props);let{class:klass,style}=props;klass&&!isString$2(klass)&&(props.class=normalizeClass(klass)),isObject$5(style)&&(isProxy(style)&&!isArray$5(style)&&(style=extend$1({},style)),props.style=normalizeStyle(style))}let shapeFlag=isString$2(type)?1:isSuspense(type)?128:isTeleport(type)?64:isObject$5(type)?4:isFunction$1(type)?2:0;return createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,isBlockNode,!0)}function guardReactiveProps(props){return props?isProxy(props)||isInternalObject(props)?extend$1({},props):props:null}function cloneVNode(vnode,extraProps,mergeRef=!1,cloneTransition=!1){let{props,ref:ref$1,patchFlag,children,transition}=vnode,mergedProps=extraProps?mergeProps(props||{},extraProps):props,cloned={__v_isVNode:!0,__v_skip:!0,type:vnode.type,props:mergedProps,key:mergedProps&&normalizeKey(mergedProps),ref:extraProps&&extraProps.ref?mergeRef&&ref$1?isArray$5(ref$1)?ref$1.concat(normalizeRef(extraProps)):[ref$1,normalizeRef(extraProps)]:normalizeRef(extraProps):ref$1,scopeId:vnode.scopeId,slotScopeIds:vnode.slotScopeIds,children,target:vnode.target,targetStart:vnode.targetStart,targetAnchor:vnode.targetAnchor,staticCount:vnode.staticCount,shapeFlag:vnode.shapeFlag,patchFlag:extraProps&&vnode.type!==Fragment?patchFlag===-1?16:patchFlag|16:patchFlag,dynamicProps:vnode.dynamicProps,dynamicChildren:vnode.dynamicChildren,appContext:vnode.appContext,dirs:vnode.dirs,transition,component:vnode.component,suspense:vnode.suspense,ssContent:vnode.ssContent&&cloneVNode(vnode.ssContent),ssFallback:vnode.ssFallback&&cloneVNode(vnode.ssFallback),el:vnode.el,anchor:vnode.anchor,ctx:vnode.ctx,ce:vnode.ce};return transition&&cloneTransition&&setTransitionHooks(cloned,transition.clone(cloned)),cloned}function createTextVNode(text$5=` `,flag=0){return createVNode(Text,null,text$5,flag)}function createStaticVNode(content$2,numberOfNodes){let vnode=createVNode(Static,null,content$2);return vnode.staticCount=numberOfNodes,vnode}function createCommentVNode(text$5=``,asBlock=!1){return asBlock?(openBlock(),createBlock(Comment,null,text$5)):createVNode(Comment,null,text$5)}function normalizeVNode(child){return child==null||typeof child==`boolean`?createVNode(Comment):isArray$5(child)?createVNode(Fragment,null,child.slice()):isVNode$1(child)?cloneIfMounted(child):createVNode(Text,null,String(child))}function cloneIfMounted(child){return child.el===null&&child.patchFlag!==-1||child.memo?child:cloneVNode(child)}function normalizeChildren(vnode,children){let type=0,{shapeFlag}=vnode;if(children==null)children=null;else if(isArray$5(children))type=16;else if(typeof children==`object`)if(shapeFlag&65){let slot=children.default;slot&&(slot._c&&(slot._d=!1),normalizeChildren(vnode,slot()),slot._c&&(slot._d=!0));return}else{type=32;let slotFlag=children._;!slotFlag&&!isInternalObject(children)?children._ctx=currentRenderingInstance:slotFlag===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?children._=1:(children._=2,vnode.patchFlag|=1024))}else isFunction$1(children)?(children={default:children,_ctx:currentRenderingInstance},type=32):(children=String(children),shapeFlag&64?(type=16,children=[createTextVNode(children)]):type=8);vnode.children=children,vnode.shapeFlag|=type}function mergeProps(...args){let ret={};for(let i$1=0;i$1currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{let g$2=getGlobalThis$1(),registerGlobalSetter=(key$1,setter)=>{let setters;return(setters=g$2[key$1])||(setters=g$2[key$1]=[]),setters.push(setter),v$1=>{setters.length>1?setters.forEach(set=>set(v$1)):setters[0](v$1)}};internalSetCurrentInstance=registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`,v$1=>currentInstance=v$1),setInSSRSetupState=registerGlobalSetter(`__VUE_SSR_SETTERS__`,v$1=>isInSSRComponentSetup=v$1)}const setCurrentInstance=instance=>{let prev=currentInstance;return internalSetCurrentInstance(instance),instance.scope.on(),()=>{instance.scope.off(),internalSetCurrentInstance(prev)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(instance){return instance.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(instance,isSSR=!1,optimized=!1){isSSR&&setInSSRSetupState(isSSR);let{props,children}=instance.vnode,isStateful=isStatefulComponent(instance);initProps(instance,props,isStateful,isSSR),initSlots(instance,children,optimized||isSSR);let setupResult=isStateful?setupStatefulComponent(instance,isSSR):void 0;return isSSR&&setInSSRSetupState(!1),setupResult}function setupStatefulComponent(instance,isSSR){var _a$2;let Component=instance.type;instance.accessCache=Object.create(null),instance.proxy=new Proxy(instance.ctx,PublicInstanceProxyHandlers);let{setup}=Component;if(setup){pauseTracking();let setupContext=instance.setupContext=setup.length>1?createSetupContext(instance):null,reset=setCurrentInstance(instance),setupResult=callWithErrorHandling(setup,instance,0,[instance.props,setupContext]),isAsyncSetup=isPromise$1(setupResult);if(resetTracking(),reset(),(isAsyncSetup||instance.sp)&&!isAsyncWrapper(instance)&&markAsyncBoundary(instance),isAsyncSetup){if(setupResult.then(unsetCurrentInstance,unsetCurrentInstance),isSSR)return setupResult.then(resolvedResult=>{handleSetupResult(instance,resolvedResult,isSSR)}).catch(e$3=>{handleError(e$3,instance,0)});instance.asyncDep=setupResult}else handleSetupResult(instance,setupResult,isSSR)}else finishComponentSetup(instance,isSSR)}function handleSetupResult(instance,setupResult,isSSR){isFunction$1(setupResult)?instance.type.__ssrInlineRender?instance.ssrRender=setupResult:instance.render=setupResult:isObject$5(setupResult)&&(instance.setupState=proxyRefs(setupResult)),finishComponentSetup(instance,isSSR)}let compile$2,installWithProxy;function registerRuntimeCompiler(_compile){compile$2=_compile,installWithProxy=i$1=>{i$1.render._rc&&(i$1.withProxy=new Proxy(i$1.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$2;function finishComponentSetup(instance,isSSR,skipOptions){let Component=instance.type;if(!instance.render){if(!isSSR&&compile$2&&!Component.render){let template=Component.template||resolveMergedOptions(instance).template;if(template){let{isCustomElement,compilerOptions}=instance.appContext.config,{delimiters,compilerOptions:componentCompilerOptions}=Component,finalCompilerOptions=extend$1(extend$1({isCustomElement,delimiters},compilerOptions),componentCompilerOptions);Component.render=compile$2(template,finalCompilerOptions)}}instance.render=Component.render||NOOP,installWithProxy&&installWithProxy(instance)}{let reset=setCurrentInstance(instance);pauseTracking();try{applyOptions(instance)}finally{resetTracking(),reset()}}}const attrsProxyHandlers={get(target$1,key$1){return track(target$1,`get`,``),target$1[key$1]}};function createSetupContext(instance){let expose=exposed=>{instance.exposed=exposed||{}};return{attrs:new Proxy(instance.attrs,attrsProxyHandlers),slots:instance.slots,emit:instance.emit,expose}}function getComponentPublicInstance(instance){return instance.exposed?instance.exposeProxy||=new Proxy(proxyRefs(markRaw(instance.exposed)),{get(target$1,key$1){if(key$1 in target$1)return target$1[key$1];if(key$1 in publicPropertiesMap)return publicPropertiesMap[key$1](instance)},has(target$1,key$1){return key$1 in target$1||key$1 in publicPropertiesMap}}):instance.proxy}function getComponentName(Component,includeInferred=!0){return isFunction$1(Component)?Component.displayName||Component.name:Component.name||includeInferred&&Component.__name}function isClassComponent(value$1){return isFunction$1(value$1)&&`__vccOpts`in value$1}const computed=(getterOrOptions,debugOptions)=>{let c$4=computed$1(getterOrOptions,debugOptions,isInSSRComponentSetup);return c$4};function h(type,propsOrChildren,children){let l$1=arguments.length;return l$1===2?isObject$5(propsOrChildren)&&!isArray$5(propsOrChildren)?isVNode$1(propsOrChildren)?createVNode(type,null,[propsOrChildren]):createVNode(type,propsOrChildren):createVNode(type,null,propsOrChildren):(l$1>3?children=Array.prototype.slice.call(arguments,2):l$1===3&&isVNode$1(children)&&(children=[children]),createVNode(type,propsOrChildren,children))}function initCustomFormatter(){return;function formatInstance(instance){let blocks=[];instance.type.props&&instance.props&&blocks.push(createInstanceBlock(`props`,toRaw(instance.props))),instance.setupState!==EMPTY_OBJ&&blocks.push(createInstanceBlock(`setup`,instance.setupState)),instance.data!==EMPTY_OBJ&&blocks.push(createInstanceBlock(`data`,toRaw(instance.data)));let computed$2=extractKeys(instance,`computed`);computed$2&&blocks.push(createInstanceBlock(`computed`,computed$2));let injected=extractKeys(instance,`inject`);return injected&&blocks.push(createInstanceBlock(`injected`,injected)),blocks.push([`div`,{},[`span`,{style:keywordStyle.style+`;opacity:0.66`},`$ (internal): `],[`object`,{object:instance}]]),blocks}function createInstanceBlock(type,target$1){return target$1=extend$1({},target$1),Object.keys(target$1).length?[`div`,{style:`line-height:1.25em;margin-bottom:0.6em`},[`div`,{style:`color:#476582`},type],[`div`,{style:`padding-left:1.25em`},...Object.keys(target$1).map(key$1=>[`div`,{},[`span`,keywordStyle,key$1+`: `],formatValue(target$1[key$1],!1)])]]:[`span`,{}]}function formatValue(v$1,asRaw=!0){return typeof v$1==`number`?[`span`,numberStyle,v$1]:typeof v$1==`string`?[`span`,stringStyle,JSON.stringify(v$1)]:typeof v$1==`boolean`?[`span`,keywordStyle,v$1]:isObject$5(v$1)?[`object`,{object:asRaw?toRaw(v$1):v$1}]:[`span`,stringStyle,String(v$1)]}function extractKeys(instance,type){let Comp=instance.type;if(isFunction$1(Comp))return;let extracted={};for(let key$1 in instance.ctx)isKeyOfType(Comp,key$1,type)&&(extracted[key$1]=instance.ctx[key$1]);return extracted}function isKeyOfType(Comp,key$1,type){let opts=Comp[type];if(isArray$5(opts)&&opts.includes(key$1)||isObject$5(opts)&&key$1 in opts||Comp.extends&&isKeyOfType(Comp.extends,key$1,type)||Comp.mixins&&Comp.mixins.some(m$2=>isKeyOfType(m$2,key$1,type)))return!0}function genRefFlag(v$1){return isShallow(v$1)?`ShallowRef`:v$1.effect?`ComputedRef`:`Ref`}}function withMemo(memo,render$1,cache$1,index$1){let cached=cache$1[index$1];if(cached&&isMemoSame(cached,memo))return cached;let ret=render$1();return ret.memo=memo.slice(),ret.cacheIndex=index$1,cache$1[index$1]=ret}function isMemoSame(cached,memo){let prev=cached.memo;if(prev.length!=memo.length)return!1;for(let i$1=0;i$10&¤tBlock&¤tBlock.push(cached),!0}const version=`3.5.17`,warn$1=NOOP,ErrorTypeStrings=ErrorTypeStrings$1,devtools$2=devtools$1,setDevtoolsHook=setDevtoolsHook$1,_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode,getComponentPublicInstance,ensureValidVNode,pushWarningContext,popWarningContext},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,DeprecationTypes=null;let policy;const tt$2=typeof window<`u`&&window.trustedTypes;if(tt$2)try{policy=tt$2.createPolicy(`vue`,{createHTML:val=>val})}catch{}const unsafeToTrustedHTML=policy?val=>policy.createHTML(val):val=>val,svgNS=`http://www.w3.org/2000/svg`,mathmlNS=`http://www.w3.org/1998/Math/MathML`,doc=typeof document<`u`?document:null,templateContainer=doc&&doc.createElement(`template`),nodeOps={insert:(child,parent,anchor)=>{parent.insertBefore(child,anchor||null)},remove:child=>{let parent=child.parentNode;parent&&parent.removeChild(child)},createElement:(tag,namespace,is,props)=>{let el=namespace===`svg`?doc.createElementNS(svgNS,tag):namespace===`mathml`?doc.createElementNS(mathmlNS,tag):is?doc.createElement(tag,{is}):doc.createElement(tag);return tag===`select`&&props&&props.multiple!=null&&el.setAttribute(`multiple`,props.multiple),el},createText:text$5=>doc.createTextNode(text$5),createComment:text$5=>doc.createComment(text$5),setText:(node$1,text$5)=>{node$1.nodeValue=text$5},setElementText:(el,text$5)=>{el.textContent=text$5},parentNode:node$1=>node$1.parentNode,nextSibling:node$1=>node$1.nextSibling,querySelector:selector=>doc.querySelector(selector),setScopeId(el,id){el.setAttribute(id,``)},insertStaticContent(content$2,parent,anchor,namespace,start,end){let before=anchor?anchor.previousSibling:parent.lastChild;if(start&&(start===end||start.nextSibling))for(;parent.insertBefore(start.cloneNode(!0),anchor),!(start===end||!(start=start.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(namespace===`svg`?`${content$2}`:namespace===`mathml`?`${content$2}`:content$2);let template=templateContainer.content;if(namespace===`svg`||namespace===`mathml`){let wrapper=template.firstChild;for(;wrapper.firstChild;)template.appendChild(wrapper.firstChild);template.removeChild(wrapper)}parent.insertBefore(template,anchor)}return[before?before.nextSibling:parent.firstChild,anchor?anchor.previousSibling:parent.lastChild]}},TRANSITION=`transition`,ANIMATION=`animation`,vtcKey=Symbol(`_vtc`),DOMTransitionPropsValidators={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},TransitionPropsValidators=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=t=>(t.displayName=`Transition`,t.props=TransitionPropsValidators,t),Transition=decorate$1((props,{slots})=>h(BaseTransition,resolveTransitionProps(props),slots)),callHook=(hook,args=[])=>{isArray$5(hook)?hook.forEach(h2=>h2(...args)):hook&&hook(...args)},hasExplicitCallback=hook=>hook?isArray$5(hook)?hook.some(h2=>h2.length>1):hook.length>1:!1;function resolveTransitionProps(rawProps){let baseProps={};for(let key$1 in rawProps)key$1 in DOMTransitionPropsValidators||(baseProps[key$1]=rawProps[key$1]);if(rawProps.css===!1)return baseProps;let{name:name$2=`v`,type,duration,enterFromClass=`${name$2}-enter-from`,enterActiveClass=`${name$2}-enter-active`,enterToClass=`${name$2}-enter-to`,appearFromClass=enterFromClass,appearActiveClass=enterActiveClass,appearToClass=enterToClass,leaveFromClass=`${name$2}-leave-from`,leaveActiveClass=`${name$2}-leave-active`,leaveToClass=`${name$2}-leave-to`}=rawProps,durations=normalizeDuration(duration),enterDuration=durations&&durations[0],leaveDuration=durations&&durations[1],{onBeforeEnter,onEnter,onEnterCancelled,onLeave,onLeaveCancelled,onBeforeAppear=onBeforeEnter,onAppear=onEnter,onAppearCancelled=onEnterCancelled}=baseProps,finishEnter=(el,isAppear,done,isCancelled)=>{el._enterCancelled=isCancelled,removeTransitionClass(el,isAppear?appearToClass:enterToClass),removeTransitionClass(el,isAppear?appearActiveClass:enterActiveClass),done&&done()},finishLeave=(el,done)=>{el._isLeaving=!1,removeTransitionClass(el,leaveFromClass),removeTransitionClass(el,leaveToClass),removeTransitionClass(el,leaveActiveClass),done&&done()},makeEnterHook=isAppear=>(el,done)=>{let hook=isAppear?onAppear:onEnter,resolve$1=()=>finishEnter(el,isAppear,done);callHook(hook,[el,resolve$1]),nextFrame(()=>{removeTransitionClass(el,isAppear?appearFromClass:enterFromClass),addTransitionClass(el,isAppear?appearToClass:enterToClass),hasExplicitCallback(hook)||whenTransitionEnds(el,type,enterDuration,resolve$1)})};return extend$1(baseProps,{onBeforeEnter(el){callHook(onBeforeEnter,[el]),addTransitionClass(el,enterFromClass),addTransitionClass(el,enterActiveClass)},onBeforeAppear(el){callHook(onBeforeAppear,[el]),addTransitionClass(el,appearFromClass),addTransitionClass(el,appearActiveClass)},onEnter:makeEnterHook(!1),onAppear:makeEnterHook(!0),onLeave(el,done){el._isLeaving=!0;let resolve$1=()=>finishLeave(el,done);addTransitionClass(el,leaveFromClass),el._enterCancelled?(addTransitionClass(el,leaveActiveClass),forceReflow()):(forceReflow(),addTransitionClass(el,leaveActiveClass)),nextFrame(()=>{el._isLeaving&&(removeTransitionClass(el,leaveFromClass),addTransitionClass(el,leaveToClass),hasExplicitCallback(onLeave)||whenTransitionEnds(el,type,leaveDuration,resolve$1))}),callHook(onLeave,[el,resolve$1])},onEnterCancelled(el){finishEnter(el,!1,void 0,!0),callHook(onEnterCancelled,[el])},onAppearCancelled(el){finishEnter(el,!0,void 0,!0),callHook(onAppearCancelled,[el])},onLeaveCancelled(el){finishLeave(el),callHook(onLeaveCancelled,[el])}})}function normalizeDuration(duration){if(duration==null)return null;if(isObject$5(duration))return[NumberOf(duration.enter),NumberOf(duration.leave)];{let n$2=NumberOf(duration);return[n$2,n$2]}}function NumberOf(val){let res=toNumber(val);return res}function addTransitionClass(el,cls){cls.split(/\s+/).forEach(c$4=>c$4&&el.classList.add(c$4)),(el[vtcKey]||(el[vtcKey]=new Set)).add(cls)}function removeTransitionClass(el,cls){cls.split(/\s+/).forEach(c$4=>c$4&&el.classList.remove(c$4));let _vtc=el[vtcKey];_vtc&&(_vtc.delete(cls),_vtc.size||(el[vtcKey]=void 0))}function nextFrame(cb$1){requestAnimationFrame(()=>{requestAnimationFrame(cb$1)})}let endId=0;function whenTransitionEnds(el,expectedType,explicitTimeout,resolve$1){let id=el._endId=++endId,resolveIfNotStale=()=>{id===el._endId&&resolve$1()};if(explicitTimeout!=null)return setTimeout(resolveIfNotStale,explicitTimeout);let{type,timeout,propCount}=getTransitionInfo(el,expectedType);if(!type)return resolve$1();let endEvent=type+`end`,ended=0,end=()=>{el.removeEventListener(endEvent,onEnd),resolveIfNotStale()},onEnd=e$3=>{e$3.target===el&&++ended>=propCount&&end()};setTimeout(()=>{ended(styles[key$1]||``).split(`, `),transitionDelays=getStyleProperties(`${TRANSITION}Delay`),transitionDurations=getStyleProperties(`${TRANSITION}Duration`),transitionTimeout=getTimeout(transitionDelays,transitionDurations),animationDelays=getStyleProperties(`${ANIMATION}Delay`),animationDurations=getStyleProperties(`${ANIMATION}Duration`),animationTimeout=getTimeout(animationDelays,animationDurations),type=null,timeout=0,propCount=0;expectedType===TRANSITION?transitionTimeout>0&&(type=TRANSITION,timeout=transitionTimeout,propCount=transitionDurations.length):expectedType===ANIMATION?animationTimeout>0&&(type=ANIMATION,timeout=animationTimeout,propCount=animationDurations.length):(timeout=Math.max(transitionTimeout,animationTimeout),type=timeout>0?transitionTimeout>animationTimeout?TRANSITION:ANIMATION:null,propCount=type?type===TRANSITION?transitionDurations.length:animationDurations.length:0);let hasTransform=type===TRANSITION&&/\b(transform|all)(,|$)/.test(getStyleProperties(`${TRANSITION}Property`).toString());return{type,timeout,propCount,hasTransform}}function getTimeout(delays,durations){for(;delays.lengthtoMs(d$2)+toMs(delays[i$1])))}function toMs(s$1){return s$1===`auto`?0:Number(s$1.slice(0,-1).replace(`,`,`.`))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(el,value$1,isSVG){let transitionClasses=el[vtcKey];transitionClasses&&(value$1=(value$1?[value$1,...transitionClasses]:[...transitionClasses]).join(` `)),value$1==null?el.removeAttribute(`class`):isSVG?el.setAttribute(`class`,value$1):el.className=value$1}const vShowOriginalDisplay=Symbol(`_vod`),vShowHidden=Symbol(`_vsh`),vShow={beforeMount(el,{value:value$1},{transition}){el[vShowOriginalDisplay]=el.style.display===`none`?``:el.style.display,transition&&value$1?transition.beforeEnter(el):setDisplay(el,value$1)},mounted(el,{value:value$1},{transition}){transition&&value$1&&transition.enter(el)},updated(el,{value:value$1,oldValue},{transition}){!value$1!=!oldValue&&(transition?value$1?(transition.beforeEnter(el),setDisplay(el,!0),transition.enter(el)):transition.leave(el,()=>{setDisplay(el,!1)}):setDisplay(el,value$1))},beforeUnmount(el,{value:value$1}){setDisplay(el,value$1)}};function setDisplay(el,value$1){el.style.display=value$1?el[vShowOriginalDisplay]:`none`,el[vShowHidden]=!value$1}function initVShowForSSR(){vShow.getSSRProps=({value:value$1})=>{if(!value$1)return{style:{display:`none`}}}}const CSS_VAR_TEXT=Symbol(``);function useCssVars(getter){let instance=getCurrentInstance();if(!instance)return;let updateTeleports=instance.ut=(vars=getter(instance.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)).forEach(node$1=>setVarsOnNode(node$1,vars))},setVars=()=>{let vars=getter(instance.proxy);instance.ce?setVarsOnNode(instance.ce,vars):setVarsOnVNode(instance.subTree,vars),updateTeleports(vars)};onBeforeUpdate(()=>{queuePostFlushCb(setVars)}),onMounted(()=>{watch(setVars,NOOP,{flush:`post`});let ob=new MutationObserver(setVars);ob.observe(instance.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ob.disconnect())})}function setVarsOnVNode(vnode,vars){if(vnode.shapeFlag&128){let suspense=vnode.suspense;vnode=suspense.activeBranch,suspense.pendingBranch&&!suspense.isHydrating&&suspense.effects.push(()=>{setVarsOnVNode(suspense.activeBranch,vars)})}for(;vnode.component;)vnode=vnode.component.subTree;if(vnode.shapeFlag&1&&vnode.el)setVarsOnNode(vnode.el,vars);else if(vnode.type===Fragment)vnode.children.forEach(c$4=>setVarsOnVNode(c$4,vars));else if(vnode.type===Static){let{el,anchor}=vnode;for(;el&&(setVarsOnNode(el,vars),el!==anchor);)el=el.nextSibling}}function setVarsOnNode(el,vars){if(el.nodeType===1){let style=el.style,cssText=``;for(let key$1 in vars)style.setProperty(`--${key$1}`,vars[key$1]),cssText+=`--${key$1}: ${vars[key$1]};`;style[CSS_VAR_TEXT]=cssText}}const displayRE=/(^|;)\s*display\s*:/;function patchStyle(el,prev,next){let style=el.style,isCssString=isString$2(next),hasControlledDisplay=!1;if(next&&!isCssString){if(prev)if(isString$2(prev))for(let prevStyle of prev.split(`;`)){let key$1=prevStyle.slice(0,prevStyle.indexOf(`:`)).trim();next[key$1]??setStyle(style,key$1,``)}else for(let key$1 in prev)next[key$1]??setStyle(style,key$1,``);for(let key$1 in next)key$1===`display`&&(hasControlledDisplay=!0),setStyle(style,key$1,next[key$1])}else if(isCssString){if(prev!==next){let cssVarText=style[CSS_VAR_TEXT];cssVarText&&(next+=`;`+cssVarText),style.cssText=next,hasControlledDisplay=displayRE.test(next)}}else prev&&el.removeAttribute(`style`);vShowOriginalDisplay in el&&(el[vShowOriginalDisplay]=hasControlledDisplay?style.display:``,el[vShowHidden]&&(style.display=`none`))}const importantRE=/\s*!important$/;function setStyle(style,name$2,val){if(isArray$5(val))val.forEach(v$1=>setStyle(style,name$2,v$1));else if(val??=``,name$2.startsWith(`--`))style.setProperty(name$2,val);else{let prefixed=autoPrefix(style,name$2);importantRE.test(val)?style.setProperty(hyphenate$2(prefixed),val.replace(importantRE,``),`important`):style[prefixed]=val}}const prefixes=[`Webkit`,`Moz`,`ms`],prefixCache={};function autoPrefix(style,rawName){let cached=prefixCache[rawName];if(cached)return cached;let name$2=camelize(rawName);if(name$2!==`filter`&&name$2 in style)return prefixCache[rawName]=name$2;name$2=capitalize$1(name$2);for(let i$1=0;i$1cachedNow||(p$4.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(initialValue,instance){let invoker=e$3=>{if(!e$3._vts)e$3._vts=Date.now();else if(e$3._vts<=invoker.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(e$3,invoker.value),instance,5,[e$3])};return invoker.value=initialValue,invoker.attached=getNow(),invoker}function patchStopImmediatePropagation(e$3,value$1){if(isArray$5(value$1)){let originalStop=e$3.stopImmediatePropagation;return e$3.stopImmediatePropagation=()=>{originalStop.call(e$3),e$3._stopped=!0},value$1.map(fn$5=>e2=>!e2._stopped&&fn$5&&fn$5(e2))}else return value$1}const isNativeOn=key$1=>key$1.charCodeAt(0)===111&&key$1.charCodeAt(1)===110&&key$1.charCodeAt(2)>96&&key$1.charCodeAt(2)<123,patchProp=(el,key$1,prevValue,nextValue,namespace,parentComponent)=>{let isSVG=namespace===`svg`;key$1===`class`?patchClass(el,nextValue,isSVG):key$1===`style`?patchStyle(el,prevValue,nextValue):isOn(key$1)?isModelListener(key$1)||patchEvent(el,key$1,prevValue,nextValue,parentComponent):(key$1[0]===`.`?(key$1=key$1.slice(1),!0):key$1[0]===`^`?(key$1=key$1.slice(1),!1):shouldSetAsProp(el,key$1,nextValue,isSVG))?(patchDOMProp(el,key$1,nextValue),!el.tagName.includes(`-`)&&(key$1===`value`||key$1===`checked`||key$1===`selected`)&&patchAttr(el,key$1,nextValue,isSVG,parentComponent,key$1!==`value`)):el._isVueCE&&(/[A-Z]/.test(key$1)||!isString$2(nextValue))?patchDOMProp(el,camelize(key$1),nextValue,parentComponent,key$1):(key$1===`true-value`?el._trueValue=nextValue:key$1===`false-value`&&(el._falseValue=nextValue),patchAttr(el,key$1,nextValue,isSVG))};function shouldSetAsProp(el,key$1,value$1,isSVG){if(isSVG)return!!(key$1===`innerHTML`||key$1===`textContent`||key$1 in el&&isNativeOn(key$1)&&isFunction$1(value$1));if(key$1===`spellcheck`||key$1===`draggable`||key$1===`translate`||key$1===`autocorrect`||key$1===`form`||key$1===`list`&&el.tagName===`INPUT`||key$1===`type`&&el.tagName===`TEXTAREA`)return!1;if(key$1===`width`||key$1===`height`){let tag=el.tagName;if(tag===`IMG`||tag===`VIDEO`||tag===`CANVAS`||tag===`SOURCE`)return!1}return isNativeOn(key$1)&&isString$2(value$1)?!1:key$1 in el}const REMOVAL={}; +function defineAsyncComponent(source){isFunction$1(source)&&(source={loader:source});let{loader:loader$1,loadingComponent,errorComponent,delay=200,hydrate:hydrateStrategy,timeout,suspensible=!0,onError:userOnError}=source,pendingRequest=null,resolvedComp,retries=0,retry=()=>(retries++,pendingRequest=null,load()),load=()=>{let thisRequest;return pendingRequest||(thisRequest=pendingRequest=loader$1().catch(err=>{if(err=err instanceof Error?err:Error(String(err)),userOnError)return new Promise((resolve$1,reject)=>{let userRetry=()=>resolve$1(retry()),userFail=()=>reject(err);userOnError(err,userRetry,userFail,retries+1)});throw err}).then(comp=>thisRequest!==pendingRequest&&pendingRequest?pendingRequest:(comp&&(comp.__esModule||comp[Symbol.toStringTag]===`Module`)&&(comp=comp.default),resolvedComp=comp,comp)))};return defineComponent({name:`AsyncComponentWrapper`,__asyncLoader:load,__asyncHydrate(el,instance,hydrate$1){let patched=!1,doHydrate=hydrateStrategy?()=>{let performHydrate=()=>{hydrate$1()},teardown=hydrateStrategy(performHydrate,cb$1=>forEachElement(el,cb$1));teardown&&(instance.bum||=[]).push(teardown),(instance.u||=[]).push(()=>patched=!0)}:hydrate$1;resolvedComp?doHydrate():load().then(()=>!instance.isUnmounted&&doHydrate())},get __asyncResolved(){return resolvedComp},setup(){let instance=currentInstance;if(markAsyncBoundary(instance),resolvedComp)return()=>createInnerComp(resolvedComp,instance);let onError=err=>{pendingRequest=null,handleError(err,instance,13,!errorComponent)};if(suspensible&&instance.suspense||isInSSRComponentSetup)return load().then(comp=>()=>createInnerComp(comp,instance)).catch(err=>(onError(err),()=>errorComponent?createVNode(errorComponent,{error:err}):null));let loaded=ref(!1),error=ref(),delayed=ref(!!delay);return delay&&setTimeout(()=>{delayed.value=!1},delay),timeout!=null&&setTimeout(()=>{if(!loaded.value&&!error.value){let err=Error(`Async component timed out after ${timeout}ms.`);onError(err),error.value=err}},timeout),load().then(()=>{loaded.value=!0,instance.parent&&isKeepAlive(instance.parent.vnode)&&instance.parent.update()}).catch(err=>{onError(err),error.value=err}),()=>{if(loaded.value&&resolvedComp)return createInnerComp(resolvedComp,instance);if(error.value&&errorComponent)return createVNode(errorComponent,{error:error.value});if(loadingComponent&&!delayed.value)return createVNode(loadingComponent)}}})}function createInnerComp(comp,parent){let{ref:ref2,props,children,ce:ce$2}=parent.vnode,vnode=createVNode(comp,props,children);return vnode.ref=ref2,vnode.ce=ce$2,delete parent.vnode.ce,vnode}const isKeepAlive=vnode=>vnode.type.__isKeepAlive,KeepAliveImpl={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(props,{slots}){let instance=getCurrentInstance(),sharedContext=instance.ctx;if(!sharedContext.renderer)return()=>{let children=slots.default&&slots.default();return children&&children.length===1?children[0]:children};let cache$1=new Map,keys$3=new Set,current=null,parentSuspense=instance.suspense,{renderer:{p:patch$1,m:move,um:_unmount,o:{createElement}}}=sharedContext,storageContainer=createElement(`div`);sharedContext.activate=(vnode,container,anchor,namespace,optimized)=>{let instance2=vnode.component;move(vnode,container,anchor,0,parentSuspense),patch$1(instance2.vnode,vnode,container,anchor,instance2,parentSuspense,namespace,vnode.slotScopeIds,optimized),queuePostRenderEffect(()=>{instance2.isDeactivated=!1,instance2.a&&invokeArrayFns(instance2.a);let vnodeHook=vnode.props&&vnode.props.onVnodeMounted;vnodeHook&&invokeVNodeHook(vnodeHook,instance2.parent,vnode)},parentSuspense)},sharedContext.deactivate=vnode=>{let instance2=vnode.component;invalidateMount(instance2.m),invalidateMount(instance2.a),move(vnode,storageContainer,null,1,parentSuspense),queuePostRenderEffect(()=>{instance2.da&&invokeArrayFns(instance2.da);let vnodeHook=vnode.props&&vnode.props.onVnodeUnmounted;vnodeHook&&invokeVNodeHook(vnodeHook,instance2.parent,vnode),instance2.isDeactivated=!0},parentSuspense)};function unmount(vnode){resetShapeFlag(vnode),_unmount(vnode,instance,parentSuspense,!0)}function pruneCache(filter$1){cache$1.forEach((vnode,key$1)=>{let name$2=getComponentName(vnode.type);name$2&&!filter$1(name$2)&&pruneCacheEntry(key$1)})}function pruneCacheEntry(key$1){let cached=cache$1.get(key$1);cached&&(!current||!isSameVNodeType(cached,current))?unmount(cached):current&&resetShapeFlag(current),cache$1.delete(key$1),keys$3.delete(key$1)}watch(()=>[props.include,props.exclude],([include,exclude])=>{include&&pruneCache(name$2=>matches(include,name$2)),exclude&&pruneCache(name$2=>!matches(exclude,name$2))},{flush:`post`,deep:!0});let pendingCacheKey=null,cacheSubtree=()=>{pendingCacheKey!=null&&(isSuspense(instance.subTree.type)?queuePostRenderEffect(()=>{cache$1.set(pendingCacheKey,getInnerChild(instance.subTree))},instance.subTree.suspense):cache$1.set(pendingCacheKey,getInnerChild(instance.subTree)))};return onMounted(cacheSubtree),onUpdated(cacheSubtree),onBeforeUnmount(()=>{cache$1.forEach(cached=>{let{subTree,suspense}=instance,vnode=getInnerChild(subTree);if(cached.type===vnode.type&&cached.key===vnode.key){resetShapeFlag(vnode);let da=vnode.component.da;da&&queuePostRenderEffect(da,suspense);return}unmount(cached)})}),()=>{if(pendingCacheKey=null,!slots.default)return current=null;let children=slots.default(),rawVNode=children[0];if(children.length>1)return current=null,children;if(!isVNode$1(rawVNode)||!(rawVNode.shapeFlag&4)&&!(rawVNode.shapeFlag&128))return current=null,rawVNode;let vnode=getInnerChild(rawVNode);if(vnode.type===Comment)return current=null,vnode;let comp=vnode.type,name$2=getComponentName(isAsyncWrapper(vnode)?vnode.type.__asyncResolved||{}:comp),{include,exclude,max:max$1}=props;if(include&&(!name$2||!matches(include,name$2))||exclude&&name$2&&matches(exclude,name$2))return vnode.shapeFlag&=-257,current=vnode,rawVNode;let key$1=vnode.key==null?comp:vnode.key,cachedVNode=cache$1.get(key$1);return vnode.el&&(vnode=cloneVNode(vnode),rawVNode.shapeFlag&128&&(rawVNode.ssContent=vnode)),pendingCacheKey=key$1,cachedVNode?(vnode.el=cachedVNode.el,vnode.component=cachedVNode.component,vnode.transition&&setTransitionHooks(vnode,vnode.transition),vnode.shapeFlag|=512,keys$3.delete(key$1),keys$3.add(key$1)):(keys$3.add(key$1),max$1&&keys$3.size>parseInt(max$1,10)&&pruneCacheEntry(keys$3.values().next().value)),vnode.shapeFlag|=256,current=vnode,isSuspense(rawVNode.type)?rawVNode:vnode}}},KeepAlive=KeepAliveImpl;function matches(pattern,name$2){return isArray$5(pattern)?pattern.some(p$5=>matches(p$5,name$2)):isString$2(pattern)?pattern.split(`,`).includes(name$2):isRegExp$1(pattern)?(pattern.lastIndex=0,pattern.test(name$2)):!1}function onActivated(hook,target$1){registerKeepAliveHook(hook,`a`,target$1)}function onDeactivated(hook,target$1){registerKeepAliveHook(hook,`da`,target$1)}function registerKeepAliveHook(hook,type,target$1=currentInstance){let wrappedHook=hook.__wdc||=()=>{let current=target$1;for(;current;){if(current.isDeactivated)return;current=current.parent}return hook()};if(injectHook(type,wrappedHook,target$1),target$1){let current=target$1.parent;for(;current&¤t.parent;)isKeepAlive(current.parent.vnode)&&injectToKeepAliveRoot(wrappedHook,type,target$1,current),current=current.parent}}function injectToKeepAliveRoot(hook,type,target$1,keepAliveRoot){let injected=injectHook(type,hook,keepAliveRoot,!0);onUnmounted(()=>{remove$1(keepAliveRoot[type],injected)},target$1)}function resetShapeFlag(vnode){vnode.shapeFlag&=-257,vnode.shapeFlag&=-513}function getInnerChild(vnode){return vnode.shapeFlag&128?vnode.ssContent:vnode}function injectHook(type,hook,target$1=currentInstance,prepend=!1){if(target$1){let hooks=target$1[type]||(target$1[type]=[]),wrappedHook=hook.__weh||=(...args)=>{pauseTracking();let reset=setCurrentInstance(target$1),res=callWithAsyncErrorHandling(hook,target$1,type,args);return reset(),resetTracking(),res};return prepend?hooks.unshift(wrappedHook):hooks.push(wrappedHook),wrappedHook}}const createHook=lifecycle=>(hook,target$1=currentInstance)=>{(!isInSSRComponentSetup||lifecycle===`sp`)&&injectHook(lifecycle,(...args)=>hook(...args),target$1)},onBeforeMount=createHook(`bm`),onMounted=createHook(`m`),onBeforeUpdate=createHook(`bu`),onUpdated=createHook(`u`),onBeforeUnmount=createHook(`bum`),onUnmounted=createHook(`um`),onServerPrefetch=createHook(`sp`),onRenderTriggered=createHook(`rtg`),onRenderTracked=createHook(`rtc`);function onErrorCaptured(hook,target$1=currentInstance){injectHook(`ec`,hook,target$1)}const COMPONENTS=`components`,DIRECTIVES=`directives`;function resolveComponent(name$2,maybeSelfReference){return resolveAsset(COMPONENTS,name$2,!0,maybeSelfReference)||name$2}const NULL_DYNAMIC_COMPONENT=Symbol.for(`v-ndc`);function resolveDynamicComponent(component){return isString$2(component)?resolveAsset(COMPONENTS,component,!1)||component:component||NULL_DYNAMIC_COMPONENT}function resolveDirective(name$2){return resolveAsset(DIRECTIVES,name$2)}function resolveAsset(type,name$2,warnMissing=!0,maybeSelfReference=!1){let instance=currentRenderingInstance||currentInstance;if(instance){let Component=instance.type;if(type===COMPONENTS){let selfName=getComponentName(Component,!1);if(selfName&&(selfName===name$2||selfName===camelize(name$2)||selfName===capitalize$1(camelize(name$2))))return Component}let res=resolve(instance[type]||Component[type],name$2)||resolve(instance.appContext[type],name$2);return!res&&maybeSelfReference?Component:res}}function resolve(registry,name$2){return registry&&(registry[name$2]||registry[camelize(name$2)]||registry[capitalize$1(camelize(name$2))])}function renderList(source,renderItem,cache$1,index$1){let ret,cached=cache$1&&cache$1[index$1],sourceIsArray=isArray$5(source);if(sourceIsArray||isString$2(source)){let sourceIsReactiveArray=sourceIsArray&&isReactive(source),needsWrap=!1,isReadonlySource=!1;sourceIsReactiveArray&&(needsWrap=!isShallow(source),isReadonlySource=isReadonly(source),source=shallowReadArray(source)),ret=Array(source.length);for(let i$1=0,l$1=source.length;i$1renderItem(item,i$1,void 0,cached&&cached[i$1]));else{let keys$3=Object.keys(source);ret=Array(keys$3.length);for(let i$1=0,l$1=keys$3.length;i$1{let res=slot.fn(...args);return res&&(res.key=slot.key),res}:slot.fn)}return slots}function renderSlot(slots,name$2,props={},fallback,noSlotted){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.ce)return name$2!==`default`&&(props.name=name$2),openBlock(),createBlock(Fragment,null,[createVNode(`slot`,props,fallback&&fallback())],64);let slot=slots[name$2];slot&&slot._c&&(slot._d=!1),openBlock();let validSlotContent=slot&&ensureValidVNode(slot(props)),slotKey=props.key||validSlotContent&&validSlotContent.key,rendered=createBlock(Fragment,{key:(slotKey&&!isSymbol(slotKey)?slotKey:`_${name$2}`)+(!validSlotContent&&fallback?`_fb`:``)},validSlotContent||(fallback?fallback():[]),validSlotContent&&slots._===1?64:-2);return!noSlotted&&rendered.scopeId&&(rendered.slotScopeIds=[rendered.scopeId+`-s`]),slot&&slot._c&&(slot._d=!0),rendered}function ensureValidVNode(vnodes){return vnodes.some(child=>isVNode$1(child)?!(child.type===Comment||child.type===Fragment&&!ensureValidVNode(child.children)):!0)?vnodes:null}function toHandlers(obj,preserveCaseIfNecessary){let ret={};for(let key$1 in obj)ret[preserveCaseIfNecessary&&/[A-Z]/.test(key$1)?`on:${key$1}`:toHandlerKey(key$1)]=obj[key$1];return ret}const getPublicInstance=i$1=>i$1?isStatefulComponent(i$1)?getComponentPublicInstance(i$1):getPublicInstance(i$1.parent):null,publicPropertiesMap=extend$1(Object.create(null),{$:i$1=>i$1,$el:i$1=>i$1.vnode.el,$data:i$1=>i$1.data,$props:i$1=>i$1.props,$attrs:i$1=>i$1.attrs,$slots:i$1=>i$1.slots,$refs:i$1=>i$1.refs,$parent:i$1=>getPublicInstance(i$1.parent),$root:i$1=>getPublicInstance(i$1.root),$host:i$1=>i$1.ce,$emit:i$1=>i$1.emit,$options:i$1=>resolveMergedOptions(i$1),$forceUpdate:i$1=>i$1.f||=()=>{queueJob(i$1.update)},$nextTick:i$1=>i$1.n||=nextTick.bind(i$1.proxy),$watch:i$1=>instanceWatch.bind(i$1)}),hasSetupBinding=(state,key$1)=>state!==EMPTY_OBJ&&!state.__isScriptSetup&&hasOwn$4(state,key$1),PublicInstanceProxyHandlers={get({_:instance},key$1){if(key$1===`__v_skip`)return!0;let{ctx,setupState,data:data$10,props,accessCache,type,appContext}=instance,normalizedProps;if(key$1[0]!==`$`){let n$2=accessCache[key$1];if(n$2!==void 0)switch(n$2){case 1:return setupState[key$1];case 2:return data$10[key$1];case 4:return ctx[key$1];case 3:return props[key$1]}else if(hasSetupBinding(setupState,key$1))return accessCache[key$1]=1,setupState[key$1];else if(data$10!==EMPTY_OBJ&&hasOwn$4(data$10,key$1))return accessCache[key$1]=2,data$10[key$1];else if((normalizedProps=instance.propsOptions[0])&&hasOwn$4(normalizedProps,key$1))return accessCache[key$1]=3,props[key$1];else if(ctx!==EMPTY_OBJ&&hasOwn$4(ctx,key$1))return accessCache[key$1]=4,ctx[key$1];else shouldCacheAccess&&(accessCache[key$1]=0)}let publicGetter=publicPropertiesMap[key$1],cssModule,globalProperties;if(publicGetter)return key$1===`$attrs`&&track(instance.attrs,`get`,``),publicGetter(instance);if((cssModule=type.__cssModules)&&(cssModule=cssModule[key$1]))return cssModule;if(ctx!==EMPTY_OBJ&&hasOwn$4(ctx,key$1))return accessCache[key$1]=4,ctx[key$1];if(globalProperties=appContext.config.globalProperties,hasOwn$4(globalProperties,key$1))return globalProperties[key$1]},set({_:instance},key$1,value$1){let{data:data$10,setupState,ctx}=instance;return hasSetupBinding(setupState,key$1)?(setupState[key$1]=value$1,!0):data$10!==EMPTY_OBJ&&hasOwn$4(data$10,key$1)?(data$10[key$1]=value$1,!0):hasOwn$4(instance.props,key$1)||key$1[0]===`$`&&key$1.slice(1)in instance?!1:(ctx[key$1]=value$1,!0)},has({_:{data:data$10,setupState,accessCache,ctx,appContext,propsOptions}},key$1){let normalizedProps;return!!accessCache[key$1]||data$10!==EMPTY_OBJ&&hasOwn$4(data$10,key$1)||hasSetupBinding(setupState,key$1)||(normalizedProps=propsOptions[0])&&hasOwn$4(normalizedProps,key$1)||hasOwn$4(ctx,key$1)||hasOwn$4(publicPropertiesMap,key$1)||hasOwn$4(appContext.config.globalProperties,key$1)},defineProperty(target$1,key$1,descriptor){return descriptor.get==null?hasOwn$4(descriptor,`value`)&&this.set(target$1,key$1,descriptor.value,null):target$1._.accessCache[key$1]=0,Reflect.defineProperty(target$1,key$1,descriptor)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$1({},PublicInstanceProxyHandlers,{get(target$1,key$1){if(key$1!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(target$1,key$1,target$1)},has(_$2,key$1){let has=key$1[0]!==`_`&&!isGloballyAllowed(key$1);return has}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(exposed){}function defineOptions(options$1){}function defineSlots(){return null}function defineModel(){}function withDefaults(props,defaults){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){let i$1=getCurrentInstance();return i$1.setupContext||=createSetupContext(i$1)}function normalizePropsOrEmits(props){return isArray$5(props)?props.reduce((normalized,p$5)=>(normalized[p$5]=null,normalized),{}):props}function mergeDefaults(raw$3,defaults){let props=normalizePropsOrEmits(raw$3);for(let key$1 in defaults){if(key$1.startsWith(`__skip`))continue;let opt=props[key$1];opt?isArray$5(opt)||isFunction$1(opt)?opt=props[key$1]={type:opt,default:defaults[key$1]}:opt.default=defaults[key$1]:opt===null&&(opt=props[key$1]={default:defaults[key$1]}),opt&&defaults[`__skip_${key$1}`]&&(opt.skipFactory=!0)}return props}function mergeModels(a$2,b$3){return!a$2||!b$3?a$2||b$3:isArray$5(a$2)&&isArray$5(b$3)?a$2.concat(b$3):extend$1({},normalizePropsOrEmits(a$2),normalizePropsOrEmits(b$3))}function createPropsRestProxy(props,excludedKeys){let ret={};for(let key$1 in props)excludedKeys.includes(key$1)||Object.defineProperty(ret,key$1,{enumerable:!0,get:()=>props[key$1]});return ret}function withAsyncContext(getAwaitable){let ctx=getCurrentInstance(),awaitable=getAwaitable();return unsetCurrentInstance(),isPromise$1(awaitable)&&(awaitable=awaitable.catch(e$3=>{throw setCurrentInstance(ctx),e$3})),[awaitable,()=>setCurrentInstance(ctx)]}let shouldCacheAccess=!0;function applyOptions(instance){let options$1=resolveMergedOptions(instance),publicThis=instance.proxy,ctx=instance.ctx;shouldCacheAccess=!1,options$1.beforeCreate&&callHook$1(options$1.beforeCreate,instance,`bc`);let{data:dataOptions,computed:computedOptions,methods,watch:watchOptions,provide:provideOptions,inject:injectOptions,created,beforeMount,mounted,beforeUpdate,updated,activated,deactivated,beforeDestroy,beforeUnmount,destroyed,unmounted,render:render$1,renderTracked,renderTriggered,errorCaptured,serverPrefetch,expose,inheritAttrs,components,directives,filters}=options$1,checkDuplicateProperties=null;if(injectOptions&&resolveInjections(injectOptions,ctx,checkDuplicateProperties),methods)for(let key$1 in methods){let methodHandler=methods[key$1];isFunction$1(methodHandler)&&(ctx[key$1]=methodHandler.bind(publicThis))}if(dataOptions){let data$10=dataOptions.call(publicThis,publicThis);isObject$5(data$10)&&(instance.data=reactive(data$10))}if(shouldCacheAccess=!0,computedOptions)for(let key$1 in computedOptions){let opt=computedOptions[key$1],get=isFunction$1(opt)?opt.bind(publicThis,publicThis):isFunction$1(opt.get)?opt.get.bind(publicThis,publicThis):NOOP,set=!isFunction$1(opt)&&isFunction$1(opt.set)?opt.set.bind(publicThis):NOOP,c$4=computed({get,set});Object.defineProperty(ctx,key$1,{enumerable:!0,configurable:!0,get:()=>c$4.value,set:v$1=>c$4.value=v$1})}if(watchOptions)for(let key$1 in watchOptions)createWatcher(watchOptions[key$1],ctx,publicThis,key$1);if(provideOptions){let provides=isFunction$1(provideOptions)?provideOptions.call(publicThis):provideOptions;Reflect.ownKeys(provides).forEach(key$1=>{provide(key$1,provides[key$1])})}created&&callHook$1(created,instance,`c`);function registerLifecycleHook(register,hook){isArray$5(hook)?hook.forEach(_hook=>register(_hook.bind(publicThis))):hook&®ister(hook.bind(publicThis))}if(registerLifecycleHook(onBeforeMount,beforeMount),registerLifecycleHook(onMounted,mounted),registerLifecycleHook(onBeforeUpdate,beforeUpdate),registerLifecycleHook(onUpdated,updated),registerLifecycleHook(onActivated,activated),registerLifecycleHook(onDeactivated,deactivated),registerLifecycleHook(onErrorCaptured,errorCaptured),registerLifecycleHook(onRenderTracked,renderTracked),registerLifecycleHook(onRenderTriggered,renderTriggered),registerLifecycleHook(onBeforeUnmount,beforeUnmount),registerLifecycleHook(onUnmounted,unmounted),registerLifecycleHook(onServerPrefetch,serverPrefetch),isArray$5(expose))if(expose.length){let exposed=instance.exposed||={};expose.forEach(key$1=>{Object.defineProperty(exposed,key$1,{get:()=>publicThis[key$1],set:val=>publicThis[key$1]=val})})}else instance.exposed||={};render$1&&instance.render===NOOP&&(instance.render=render$1),inheritAttrs!=null&&(instance.inheritAttrs=inheritAttrs),components&&(instance.components=components),directives&&(instance.directives=directives),serverPrefetch&&markAsyncBoundary(instance)}function resolveInjections(injectOptions,ctx,checkDuplicateProperties=NOOP){for(let key$1 in isArray$5(injectOptions)&&(injectOptions=normalizeInject(injectOptions)),injectOptions){let opt=injectOptions[key$1],injected;injected=isObject$5(opt)?`default`in opt?inject(opt.from||key$1,opt.default,!0):inject(opt.from||key$1):inject(opt),isRef(injected)?Object.defineProperty(ctx,key$1,{enumerable:!0,configurable:!0,get:()=>injected.value,set:v$1=>injected.value=v$1}):ctx[key$1]=injected}}function callHook$1(hook,instance,type){callWithAsyncErrorHandling(isArray$5(hook)?hook.map(h$3=>h$3.bind(instance.proxy)):hook.bind(instance.proxy),instance,type)}function createWatcher(raw$3,ctx,publicThis,key$1){let getter=key$1.includes(`.`)?createPathGetter(publicThis,key$1):()=>publicThis[key$1];if(isString$2(raw$3)){let handler=ctx[raw$3];isFunction$1(handler)&&watch(getter,handler)}else if(isFunction$1(raw$3))watch(getter,raw$3.bind(publicThis));else if(isObject$5(raw$3))if(isArray$5(raw$3))raw$3.forEach(r$2=>createWatcher(r$2,ctx,publicThis,key$1));else{let handler=isFunction$1(raw$3.handler)?raw$3.handler.bind(publicThis):ctx[raw$3.handler];isFunction$1(handler)&&watch(getter,handler,raw$3)}}function resolveMergedOptions(instance){let base=instance.type,{mixins,extends:extendsOptions}=base,{mixins:globalMixins,optionsCache:cache$1,config:{optionMergeStrategies}}=instance.appContext,cached=cache$1.get(base),resolved;return cached?resolved=cached:!globalMixins.length&&!mixins&&!extendsOptions?resolved=base:(resolved={},globalMixins.length&&globalMixins.forEach(m$2=>mergeOptions$1(resolved,m$2,optionMergeStrategies,!0)),mergeOptions$1(resolved,base,optionMergeStrategies)),isObject$5(base)&&cache$1.set(base,resolved),resolved}function mergeOptions$1(to$1,from,strats,asMixin=!1){let{mixins,extends:extendsOptions}=from;for(let key$1 in extendsOptions&&mergeOptions$1(to$1,extendsOptions,strats,!0),mixins&&mixins.forEach(m$2=>mergeOptions$1(to$1,m$2,strats,!0)),from)if(!(asMixin&&key$1===`expose`)){let strat=internalOptionMergeStrats[key$1]||strats&&strats[key$1];to$1[key$1]=strat?strat(to$1[key$1],from[key$1]):from[key$1]}return to$1}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(to$1,from){return from?to$1?function(){return extend$1(isFunction$1(to$1)?to$1.call(this,this):to$1,isFunction$1(from)?from.call(this,this):from)}:from:to$1}function mergeInject(to$1,from){return mergeObjectOptions(normalizeInject(to$1),normalizeInject(from))}function normalizeInject(raw$3){if(isArray$5(raw$3)){let res={};for(let i$1=0;i$11)return treatDefaultAsFactory&&isFunction$1(defaultValue)?defaultValue.call(instance&&instance.proxy):defaultValue}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=obj=>Object.getPrototypeOf(obj)===internalObjectProto;function initProps(instance,rawProps,isStateful,isSSR=!1){let props={},attrs=createInternalObject();for(let key$1 in instance.propsDefaults=Object.create(null),setFullProps(instance,rawProps,props,attrs),instance.propsOptions[0])key$1 in props||(props[key$1]=void 0);isStateful?instance.props=isSSR?props:shallowReactive(props):instance.type.props?instance.props=props:instance.props=attrs,instance.attrs=attrs}function updateProps(instance,rawProps,rawPrevProps,optimized){let{props,attrs,vnode:{patchFlag}}=instance,rawCurrentProps=toRaw(props),[options$1]=instance.propsOptions,hasAttrsChanged=!1;if((optimized||patchFlag>0)&&!(patchFlag&16)){if(patchFlag&8){let propsToUpdate=instance.vnode.dynamicProps;for(let i$1=0;i$1{hasExtends=!0;let[props,keys$3]=normalizePropsOptions(raw2,appContext,!0);extend$1(normalized,props),keys$3&&needCastKeys.push(...keys$3)};!asMixin&&appContext.mixins.length&&appContext.mixins.forEach(extendProps),comp.extends&&extendProps(comp.extends),comp.mixins&&comp.mixins.forEach(extendProps)}if(!raw$3&&!hasExtends)return isObject$5(comp)&&cache$1.set(comp,EMPTY_ARR),EMPTY_ARR;if(isArray$5(raw$3))for(let i$1=0;i$1key$1[0]===`_`||key$1===`$stable`,normalizeSlotValue=value$1=>isArray$5(value$1)?value$1.map(normalizeVNode):[normalizeVNode(value$1)],normalizeSlot$1=(key$1,rawSlot,ctx)=>{if(rawSlot._n)return rawSlot;let normalized=withCtx((...args)=>normalizeSlotValue(rawSlot(...args)),ctx);return normalized._c=!1,normalized},normalizeObjectSlots=(rawSlots,slots,instance)=>{let ctx=rawSlots._ctx;for(let key$1 in rawSlots){if(isInternalKey(key$1))continue;let value$1=rawSlots[key$1];if(isFunction$1(value$1))slots[key$1]=normalizeSlot$1(key$1,value$1,ctx);else if(value$1!=null){let normalized=normalizeSlotValue(value$1);slots[key$1]=()=>normalized}}},normalizeVNodeSlots=(instance,children)=>{let normalized=normalizeSlotValue(children);instance.slots.default=()=>normalized},assignSlots=(slots,children,optimized)=>{for(let key$1 in children)(optimized||!isInternalKey(key$1))&&(slots[key$1]=children[key$1])},initSlots=(instance,children,optimized)=>{let slots=instance.slots=createInternalObject();if(instance.vnode.shapeFlag&32){let cacheIndexes=children.__;cacheIndexes&&def(slots,`__`,cacheIndexes,!0);let type=children._;type?(assignSlots(slots,children,optimized),optimized&&def(slots,`_`,type,!0)):normalizeObjectSlots(children,slots)}else children&&normalizeVNodeSlots(instance,children)},updateSlots=(instance,children,optimized)=>{let{vnode,slots}=instance,needDeletionCheck=!0,deletionComparisonTarget=EMPTY_OBJ;if(vnode.shapeFlag&32){let type=children._;type?optimized&&type===1?needDeletionCheck=!1:assignSlots(slots,children,optimized):(needDeletionCheck=!children.$stable,normalizeObjectSlots(children,slots)),deletionComparisonTarget=children}else children&&(normalizeVNodeSlots(instance,children),deletionComparisonTarget={default:1});if(needDeletionCheck)for(let key$1 in slots)!isInternalKey(key$1)&&deletionComparisonTarget[key$1]==null&&delete slots[key$1]};function initFeatureFlags$2(){let needWarn=[]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(options$1){return baseCreateRenderer(options$1)}function createHydrationRenderer(options$1){return baseCreateRenderer(options$1,createHydrationFunctions)}function baseCreateRenderer(options$1,createHydrationFns){initFeatureFlags$2();let target$1=getGlobalThis$1();target$1.__VUE__=!0;let{insert:hostInsert,remove:hostRemove,patchProp:hostPatchProp,createElement:hostCreateElement,createText:hostCreateText,createComment:hostCreateComment,setText:hostSetText,setElementText:hostSetElementText,parentNode:hostParentNode,nextSibling:hostNextSibling,setScopeId:hostSetScopeId=NOOP,insertStaticContent:hostInsertStaticContent}=options$1,patch$1=(n1,n2,container,anchor=null,parentComponent=null,parentSuspense=null,namespace=void 0,slotScopeIds=null,optimized=!!n2.dynamicChildren)=>{if(n1===n2)return;n1&&!isSameVNodeType(n1,n2)&&(anchor=getNextHostNode(n1),unmount(n1,parentComponent,parentSuspense,!0),n1=null),n2.patchFlag===-2&&(optimized=!1,n2.dynamicChildren=null);let{type,ref:ref$1,shapeFlag}=n2;switch(type){case Text:processText(n1,n2,container,anchor);break;case Comment:processCommentNode(n1,n2,container,anchor);break;case Static:n1??mountStaticNode(n2,container,anchor,namespace);break;case Fragment:processFragment(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);break;default:shapeFlag&1?processElement(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):shapeFlag&6?processComponent(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):(shapeFlag&64||shapeFlag&128)&&type.process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,internals)}ref$1!=null&&parentComponent?setRef(ref$1,n1&&n1.ref,parentSuspense,n2||n1,!n2):ref$1==null&&n1&&n1.ref!=null&&setRef(n1.ref,null,parentSuspense,n1,!0)},processText=(n1,n2,container,anchor)=>{if(n1==null)hostInsert(n2.el=hostCreateText(n2.children),container,anchor);else{let el=n2.el=n1.el;n2.children!==n1.children&&hostSetText(el,n2.children)}},processCommentNode=(n1,n2,container,anchor)=>{n1==null?hostInsert(n2.el=hostCreateComment(n2.children||``),container,anchor):n2.el=n1.el},mountStaticNode=(n2,container,anchor,namespace)=>{[n2.el,n2.anchor]=hostInsertStaticContent(n2.children,container,anchor,namespace,n2.el,n2.anchor)},patchStaticNode=(n1,n2,container,namespace)=>{if(n2.children!==n1.children){let anchor=hostNextSibling(n1.anchor);removeStaticNode(n1),[n2.el,n2.anchor]=hostInsertStaticContent(n2.children,container,anchor,namespace)}else n2.el=n1.el,n2.anchor=n1.anchor},moveStaticNode=({el,anchor},container,nextSibling)=>{let next;for(;el&&el!==anchor;)next=hostNextSibling(el),hostInsert(el,container,nextSibling),el=next;hostInsert(anchor,container,nextSibling)},removeStaticNode=({el,anchor})=>{let next;for(;el&&el!==anchor;)next=hostNextSibling(el),hostRemove(el),el=next;hostRemove(anchor)},processElement=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{n2.type===`svg`?namespace=`svg`:n2.type===`math`&&(namespace=`mathml`),n1==null?mountElement(n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):patchElement(n1,n2,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)},mountElement=(vnode,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let el,vnodeHook,{props,shapeFlag,transition,dirs}=vnode;if(el=vnode.el=hostCreateElement(vnode.type,namespace,props&&props.is,props),shapeFlag&8?hostSetElementText(el,vnode.children):shapeFlag&16&&mountChildren(vnode.children,el,null,parentComponent,parentSuspense,resolveChildrenNamespace(vnode,namespace),slotScopeIds,optimized),dirs&&invokeDirectiveHook(vnode,null,parentComponent,`created`),setScopeId(el,vnode,vnode.scopeId,slotScopeIds,parentComponent),props){for(let key$1 in props)key$1!==`value`&&!isReservedProp(key$1)&&hostPatchProp(el,key$1,null,props[key$1],namespace,parentComponent);`value`in props&&hostPatchProp(el,`value`,null,props.value,namespace),(vnodeHook=props.onVnodeBeforeMount)&&invokeVNodeHook(vnodeHook,parentComponent,vnode)}dirs&&invokeDirectiveHook(vnode,null,parentComponent,`beforeMount`);let needCallTransitionHooks=needTransition(parentSuspense,transition);needCallTransitionHooks&&transition.beforeEnter(el),hostInsert(el,container,anchor),((vnodeHook=props&&props.onVnodeMounted)||needCallTransitionHooks||dirs)&&queuePostRenderEffect(()=>{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode),needCallTransitionHooks&&transition.enter(el),dirs&&invokeDirectiveHook(vnode,null,parentComponent,`mounted`)},parentSuspense)},setScopeId=(el,vnode,scopeId,slotScopeIds,parentComponent)=>{if(scopeId&&hostSetScopeId(el,scopeId),slotScopeIds)for(let i$1=0;i$1{for(let i$1=start;i$1{let el=n2.el=n1.el,{patchFlag,dynamicChildren,dirs}=n2;patchFlag|=n1.patchFlag&16;let oldProps=n1.props||EMPTY_OBJ,newProps=n2.props||EMPTY_OBJ,vnodeHook;if(parentComponent&&toggleRecurse(parentComponent,!1),(vnodeHook=newProps.onVnodeBeforeUpdate)&&invokeVNodeHook(vnodeHook,parentComponent,n2,n1),dirs&&invokeDirectiveHook(n2,n1,parentComponent,`beforeUpdate`),parentComponent&&toggleRecurse(parentComponent,!0),(oldProps.innerHTML&&newProps.innerHTML==null||oldProps.textContent&&newProps.textContent==null)&&hostSetElementText(el,``),dynamicChildren?patchBlockChildren(n1.dynamicChildren,dynamicChildren,el,parentComponent,parentSuspense,resolveChildrenNamespace(n2,namespace),slotScopeIds):optimized||patchChildren(n1,n2,el,null,parentComponent,parentSuspense,resolveChildrenNamespace(n2,namespace),slotScopeIds,!1),patchFlag>0){if(patchFlag&16)patchProps(el,oldProps,newProps,parentComponent,namespace);else if(patchFlag&2&&oldProps.class!==newProps.class&&hostPatchProp(el,`class`,null,newProps.class,namespace),patchFlag&4&&hostPatchProp(el,`style`,oldProps.style,newProps.style,namespace),patchFlag&8){let propsToUpdate=n2.dynamicProps;for(let i$1=0;i$1{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,n2,n1),dirs&&invokeDirectiveHook(n2,n1,parentComponent,`updated`)},parentSuspense)},patchBlockChildren=(oldChildren,newChildren,fallbackContainer,parentComponent,parentSuspense,namespace,slotScopeIds)=>{for(let i$1=0;i$1{if(oldProps!==newProps){if(oldProps!==EMPTY_OBJ)for(let key$1 in oldProps)!isReservedProp(key$1)&&!(key$1 in newProps)&&hostPatchProp(el,key$1,oldProps[key$1],null,namespace,parentComponent);for(let key$1 in newProps){if(isReservedProp(key$1))continue;let next=newProps[key$1],prev=oldProps[key$1];next!==prev&&key$1!==`value`&&hostPatchProp(el,key$1,prev,next,namespace,parentComponent)}`value`in newProps&&hostPatchProp(el,`value`,oldProps.value,newProps.value,namespace)}},processFragment=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let fragmentStartAnchor=n2.el=n1?n1.el:hostCreateText(``),fragmentEndAnchor=n2.anchor=n1?n1.anchor:hostCreateText(``),{patchFlag,dynamicChildren,slotScopeIds:fragmentSlotScopeIds}=n2;fragmentSlotScopeIds&&(slotScopeIds=slotScopeIds?slotScopeIds.concat(fragmentSlotScopeIds):fragmentSlotScopeIds),n1==null?(hostInsert(fragmentStartAnchor,container,anchor),hostInsert(fragmentEndAnchor,container,anchor),mountChildren(n2.children||[],container,fragmentEndAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)):patchFlag>0&&patchFlag&64&&dynamicChildren&&n1.dynamicChildren?(patchBlockChildren(n1.dynamicChildren,dynamicChildren,container,parentComponent,parentSuspense,namespace,slotScopeIds),(n2.key!=null||parentComponent&&n2===parentComponent.subTree)&&traverseStaticChildren(n1,n2,!0)):patchChildren(n1,n2,container,fragmentEndAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)},processComponent=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{n2.slotScopeIds=slotScopeIds,n1==null?n2.shapeFlag&512?parentComponent.ctx.activate(n2,container,anchor,namespace,optimized):mountComponent(n2,container,anchor,parentComponent,parentSuspense,namespace,optimized):updateComponent(n1,n2,optimized)},mountComponent=(initialVNode,container,anchor,parentComponent,parentSuspense,namespace,optimized)=>{let instance=initialVNode.component=createComponentInstance(initialVNode,parentComponent,parentSuspense);if(isKeepAlive(initialVNode)&&(instance.ctx.renderer=internals),setupComponent(instance,!1,optimized),instance.asyncDep){if(parentSuspense&&parentSuspense.registerDep(instance,setupRenderEffect,optimized),!initialVNode.el){let placeholder=instance.subTree=createVNode(Comment);processCommentNode(null,placeholder,container,anchor)}}else setupRenderEffect(instance,initialVNode,container,anchor,parentSuspense,namespace,optimized)},updateComponent=(n1,n2,optimized)=>{let instance=n2.component=n1.component;if(shouldUpdateComponent(n1,n2,optimized))if(instance.asyncDep&&!instance.asyncResolved){updateComponentPreRender(instance,n2,optimized);return}else instance.next=n2,instance.update();else n2.el=n1.el,instance.vnode=n2},setupRenderEffect=(instance,initialVNode,container,anchor,parentSuspense,namespace,optimized)=>{let componentUpdateFn=()=>{if(instance.isMounted){let{next,bu,u:u$1,parent,vnode}=instance;{let nonHydratedAsyncRoot=locateNonHydratedAsyncRoot(instance);if(nonHydratedAsyncRoot){next&&(next.el=vnode.el,updateComponentPreRender(instance,next,optimized)),nonHydratedAsyncRoot.asyncDep.then(()=>{instance.isUnmounted||componentUpdateFn()});return}}let originNext=next,vnodeHook;toggleRecurse(instance,!1),next?(next.el=vnode.el,updateComponentPreRender(instance,next,optimized)):next=vnode,bu&&invokeArrayFns(bu),(vnodeHook=next.props&&next.props.onVnodeBeforeUpdate)&&invokeVNodeHook(vnodeHook,parent,next,vnode),toggleRecurse(instance,!0);let nextTree=renderComponentRoot(instance),prevTree=instance.subTree;instance.subTree=nextTree,patch$1(prevTree,nextTree,hostParentNode(prevTree.el),getNextHostNode(prevTree),instance,parentSuspense,namespace),next.el=nextTree.el,originNext===null&&updateHOCHostEl(instance,nextTree.el),u$1&&queuePostRenderEffect(u$1,parentSuspense),(vnodeHook=next.props&&next.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(vnodeHook,parent,next,vnode),parentSuspense)}else{let vnodeHook,{el,props}=initialVNode,{bm,m:m$2,parent,root:root$3,type}=instance,isAsyncWrapperVNode=isAsyncWrapper(initialVNode);if(toggleRecurse(instance,!1),bm&&invokeArrayFns(bm),!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeBeforeMount)&&invokeVNodeHook(vnodeHook,parent,initialVNode),toggleRecurse(instance,!0),el&&hydrateNode){let hydrateSubTree=()=>{instance.subTree=renderComponentRoot(instance),hydrateNode(el,instance.subTree,instance,parentSuspense,null)};isAsyncWrapperVNode&&type.__asyncHydrate?type.__asyncHydrate(el,instance,hydrateSubTree):hydrateSubTree()}else{root$3.ce&&root$3.ce._def.shadowRoot!==!1&&root$3.ce._injectChildStyle(type);let subTree=instance.subTree=renderComponentRoot(instance);patch$1(null,subTree,container,anchor,instance,parentSuspense,namespace),initialVNode.el=subTree.el}if(m$2&&queuePostRenderEffect(m$2,parentSuspense),!isAsyncWrapperVNode&&(vnodeHook=props&&props.onVnodeMounted)){let scopedInitialVNode=initialVNode;queuePostRenderEffect(()=>invokeVNodeHook(vnodeHook,parent,scopedInitialVNode),parentSuspense)}(initialVNode.shapeFlag&256||parent&&isAsyncWrapper(parent.vnode)&&parent.vnode.shapeFlag&256)&&instance.a&&queuePostRenderEffect(instance.a,parentSuspense),instance.isMounted=!0,initialVNode=container=anchor=null}};instance.scope.on();let effect$1=instance.effect=new ReactiveEffect(componentUpdateFn);instance.scope.off();let update=instance.update=effect$1.run.bind(effect$1),job=instance.job=effect$1.runIfDirty.bind(effect$1);job.i=instance,job.id=instance.uid,effect$1.scheduler=()=>queueJob(job),toggleRecurse(instance,!0),update()},updateComponentPreRender=(instance,nextVNode,optimized)=>{nextVNode.component=instance;let prevProps=instance.vnode.props;instance.vnode=nextVNode,instance.next=null,updateProps(instance,nextVNode.props,prevProps,optimized),updateSlots(instance,nextVNode.children,optimized),pauseTracking(),flushPreFlushCbs(instance),resetTracking()},patchChildren=(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized=!1)=>{let c1=n1&&n1.children,prevShapeFlag=n1?n1.shapeFlag:0,c2=n2.children,{patchFlag,shapeFlag}=n2;if(patchFlag>0){if(patchFlag&128){patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);return}else if(patchFlag&256){patchUnkeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);return}}shapeFlag&8?(prevShapeFlag&16&&unmountChildren(c1,parentComponent,parentSuspense),c2!==c1&&hostSetElementText(container,c2)):prevShapeFlag&16?shapeFlag&16?patchKeyedChildren(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized):unmountChildren(c1,parentComponent,parentSuspense,!0):(prevShapeFlag&8&&hostSetElementText(container,``),shapeFlag&16&&mountChildren(c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized))},patchUnkeyedChildren=(c1,c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{c1||=EMPTY_ARR,c2||=EMPTY_ARR;let oldLength=c1.length,newLength=c2.length,commonLength=Math.min(oldLength,newLength),i$1;for(i$1=0;i$1newLength?unmountChildren(c1,parentComponent,parentSuspense,!0,!1,commonLength):mountChildren(c2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,commonLength)},patchKeyedChildren=(c1,c2,container,parentAnchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized)=>{let i$1=0,l2=c2.length,e1=c1.length-1,e2=l2-1;for(;i$1<=e1&&i$1<=e2;){let n1=c1[i$1],n2=c2[i$1]=optimized?cloneIfMounted(c2[i$1]):normalizeVNode(c2[i$1]);if(isSameVNodeType(n1,n2))patch$1(n1,n2,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else break;i$1++}for(;i$1<=e1&&i$1<=e2;){let n1=c1[e1],n2=c2[e2]=optimized?cloneIfMounted(c2[e2]):normalizeVNode(c2[e2]);if(isSameVNodeType(n1,n2))patch$1(n1,n2,container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized);else break;e1--,e2--}if(i$1>e1){if(i$1<=e2){let nextPos=e2+1,anchor=nextPose2)for(;i$1<=e1;)unmount(c1[i$1],parentComponent,parentSuspense,!0),i$1++;else{let s1=i$1,s2=i$1,keyToNewIndexMap=new Map;for(i$1=s2;i$1<=e2;i$1++){let nextChild=c2[i$1]=optimized?cloneIfMounted(c2[i$1]):normalizeVNode(c2[i$1]);nextChild.key!=null&&keyToNewIndexMap.set(nextChild.key,i$1)}let j$1,patched=0,toBePatched=e2-s2+1,moved=!1,maxNewIndexSoFar=0,newIndexToOldIndexMap=Array(toBePatched);for(i$1=0;i$1=toBePatched){unmount(prevChild,parentComponent,parentSuspense,!0);continue}let newIndex;if(prevChild.key!=null)newIndex=keyToNewIndexMap.get(prevChild.key);else for(j$1=s2;j$1<=e2;j$1++)if(newIndexToOldIndexMap[j$1-s2]===0&&isSameVNodeType(prevChild,c2[j$1])){newIndex=j$1;break}newIndex===void 0?unmount(prevChild,parentComponent,parentSuspense,!0):(newIndexToOldIndexMap[newIndex-s2]=i$1+1,newIndex>=maxNewIndexSoFar?maxNewIndexSoFar=newIndex:moved=!0,patch$1(prevChild,c2[newIndex],container,null,parentComponent,parentSuspense,namespace,slotScopeIds,optimized),patched++)}let increasingNewIndexSequence=moved?getSequence(newIndexToOldIndexMap):EMPTY_ARR;for(j$1=increasingNewIndexSequence.length-1,i$1=toBePatched-1;i$1>=0;i$1--){let nextIndex=s2+i$1,nextChild=c2[nextIndex],anchor=nextIndex+1{let{el,type,transition,children,shapeFlag}=vnode;if(shapeFlag&6){move(vnode.component.subTree,container,anchor,moveType);return}if(shapeFlag&128){vnode.suspense.move(container,anchor,moveType);return}if(shapeFlag&64){type.move(vnode,container,anchor,internals);return}if(type===Fragment){hostInsert(el,container,anchor);for(let i$1=0;i$1transition.enter(el),parentSuspense);else{let{leave,delayLeave,afterLeave}=transition,remove2=()=>{vnode.ctx.isUnmounted?hostRemove(el):hostInsert(el,container,anchor)},performLeave=()=>{leave(el,()=>{remove2(),afterLeave&&afterLeave()})};delayLeave?delayLeave(el,remove2,performLeave):performLeave()}else hostInsert(el,container,anchor)},unmount=(vnode,parentComponent,parentSuspense,doRemove=!1,optimized=!1)=>{let{type,props,ref:ref$1,children,dynamicChildren,shapeFlag,patchFlag,dirs,cacheIndex}=vnode;if(patchFlag===-2&&(optimized=!1),ref$1!=null&&(pauseTracking(),setRef(ref$1,null,parentSuspense,vnode,!0),resetTracking()),cacheIndex!=null&&(parentComponent.renderCache[cacheIndex]=void 0),shapeFlag&256){parentComponent.ctx.deactivate(vnode);return}let shouldInvokeDirs=shapeFlag&1&&dirs,shouldInvokeVnodeHook=!isAsyncWrapper(vnode),vnodeHook;if(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeBeforeUnmount)&&invokeVNodeHook(vnodeHook,parentComponent,vnode),shapeFlag&6)unmountComponent(vnode.component,parentSuspense,doRemove);else{if(shapeFlag&128){vnode.suspense.unmount(parentSuspense,doRemove);return}shouldInvokeDirs&&invokeDirectiveHook(vnode,null,parentComponent,`beforeUnmount`),shapeFlag&64?vnode.type.remove(vnode,parentComponent,parentSuspense,internals,doRemove):dynamicChildren&&!dynamicChildren.hasOnce&&(type!==Fragment||patchFlag>0&&patchFlag&64)?unmountChildren(dynamicChildren,parentComponent,parentSuspense,!1,!0):(type===Fragment&&patchFlag&384||!optimized&&shapeFlag&16)&&unmountChildren(children,parentComponent,parentSuspense),doRemove&&remove$2(vnode)}(shouldInvokeVnodeHook&&(vnodeHook=props&&props.onVnodeUnmounted)||shouldInvokeDirs)&&queuePostRenderEffect(()=>{vnodeHook&&invokeVNodeHook(vnodeHook,parentComponent,vnode),shouldInvokeDirs&&invokeDirectiveHook(vnode,null,parentComponent,`unmounted`)},parentSuspense)},remove$2=vnode=>{let{type,el,anchor,transition}=vnode;if(type===Fragment){removeFragment(el,anchor);return}if(type===Static){removeStaticNode(vnode);return}let performRemove=()=>{hostRemove(el),transition&&!transition.persisted&&transition.afterLeave&&transition.afterLeave()};if(vnode.shapeFlag&1&&transition&&!transition.persisted){let{leave,delayLeave}=transition,performLeave=()=>leave(el,performRemove);delayLeave?delayLeave(vnode.el,performRemove,performLeave):performLeave()}else performRemove()},removeFragment=(cur,end)=>{let next;for(;cur!==end;)next=hostNextSibling(cur),hostRemove(cur),cur=next;hostRemove(end)},unmountComponent=(instance,parentSuspense,doRemove)=>{let{bum,scope,job,subTree,um,m:m$2,a:a$2,parent,slots:{__:slotCacheKeys}}=instance;invalidateMount(m$2),invalidateMount(a$2),bum&&invokeArrayFns(bum),parent&&isArray$5(slotCacheKeys)&&slotCacheKeys.forEach(v$1=>{parent.renderCache[v$1]=void 0}),scope.stop(),job&&(job.flags|=8,unmount(subTree,instance,parentSuspense,doRemove)),um&&queuePostRenderEffect(um,parentSuspense),queuePostRenderEffect(()=>{instance.isUnmounted=!0},parentSuspense),parentSuspense&&parentSuspense.pendingBranch&&!parentSuspense.isUnmounted&&instance.asyncDep&&!instance.asyncResolved&&instance.suspenseId===parentSuspense.pendingId&&(parentSuspense.deps--,parentSuspense.deps===0&&parentSuspense.resolve())},unmountChildren=(children,parentComponent,parentSuspense,doRemove=!1,optimized=!1,start=0)=>{for(let i$1=start;i$1{if(vnode.shapeFlag&6)return getNextHostNode(vnode.component.subTree);if(vnode.shapeFlag&128)return vnode.suspense.next();let el=hostNextSibling(vnode.anchor||vnode.el),teleportEnd=el&&el[TeleportEndKey];return teleportEnd?hostNextSibling(teleportEnd):el},isFlushing=!1,render$1=(vnode,container,namespace)=>{vnode==null?container._vnode&&unmount(container._vnode,null,null,!0):patch$1(container._vnode||null,vnode,container,null,null,null,namespace),container._vnode=vnode,isFlushing||(isFlushing=!0,flushPreFlushCbs(),flushPostFlushCbs(),isFlushing=!1)},internals={p:patch$1,um:unmount,m:move,r:remove$2,mt:mountComponent,mc:mountChildren,pc:patchChildren,pbc:patchBlockChildren,n:getNextHostNode,o:options$1},hydrate$1,hydrateNode;return createHydrationFns&&([hydrate$1,hydrateNode]=createHydrationFns(internals)),{render:render$1,hydrate:hydrate$1,createApp:createAppAPI(render$1,hydrate$1)}}function resolveChildrenNamespace({type,props},currentNamespace){return currentNamespace===`svg`&&type===`foreignObject`||currentNamespace===`mathml`&&type===`annotation-xml`&&props&&props.encoding&&props.encoding.includes(`html`)?void 0:currentNamespace}function toggleRecurse({effect:effect$1,job},allowed){allowed?(effect$1.flags|=32,job.flags|=4):(effect$1.flags&=-33,job.flags&=-5)}function needTransition(parentSuspense,transition){return(!parentSuspense||parentSuspense&&!parentSuspense.pendingBranch)&&transition&&!transition.persisted}function traverseStaticChildren(n1,n2,shallow=!1){let ch1=n1.children,ch2=n2.children;if(isArray$5(ch1)&&isArray$5(ch2))for(let i$1=0;i$1>1,arr[result[c$4]]0&&(p$5[i$1]=result[u$1-1]),result[u$1]=i$1)}}for(u$1=result.length,v$1=result[u$1-1];u$1-- >0;)result[u$1]=v$1,v$1=p$5[v$1];return result}function locateNonHydratedAsyncRoot(instance){let subComponent=instance.subTree.component;if(subComponent)return subComponent.asyncDep&&!subComponent.asyncResolved?subComponent:locateNonHydratedAsyncRoot(subComponent)}function invalidateMount(hooks){if(hooks)for(let i$1=0;i$1{{let ctx=inject(ssrContextKey);return ctx}};function watchEffect(effect$1,options$1){return doWatch(effect$1,null,options$1)}function watchPostEffect(effect$1,options$1){return doWatch(effect$1,null,{flush:`post`})}function watchSyncEffect(effect$1,options$1){return doWatch(effect$1,null,{flush:`sync`})}function watch(source,cb$1,options$1){return doWatch(source,cb$1,options$1)}function doWatch(source,cb$1,options$1=EMPTY_OBJ){let{immediate,deep,flush,once}=options$1,baseWatchOptions=extend$1({},options$1),runsImmediately=cb$1&&immediate||!cb$1&&flush!==`post`,ssrCleanup;if(isInSSRComponentSetup){if(flush===`sync`){let ctx=useSSRContext();ssrCleanup=ctx.__watcherHandles||=[]}else if(!runsImmediately){let watchStopHandle=()=>{};return watchStopHandle.stop=NOOP,watchStopHandle.resume=NOOP,watchStopHandle.pause=NOOP,watchStopHandle}}let instance=currentInstance;baseWatchOptions.call=(fn$5,type,args)=>callWithAsyncErrorHandling(fn$5,instance,type,args);let isPre=!1;flush===`post`?baseWatchOptions.scheduler=job=>{queuePostRenderEffect(job,instance&&instance.suspense)}:flush!==`sync`&&(isPre=!0,baseWatchOptions.scheduler=(job,isFirstRun)=>{isFirstRun?job():queueJob(job)}),baseWatchOptions.augmentJob=job=>{cb$1&&(job.flags|=4),isPre&&(job.flags|=2,instance&&(job.id=instance.uid,job.i=instance))};let watchHandle=watch$1(source,cb$1,baseWatchOptions);return isInSSRComponentSetup&&(ssrCleanup?ssrCleanup.push(watchHandle):runsImmediately&&watchHandle()),watchHandle}function instanceWatch(source,value$1,options$1){let publicThis=this.proxy,getter=isString$2(source)?source.includes(`.`)?createPathGetter(publicThis,source):()=>publicThis[source]:source.bind(publicThis,publicThis),cb$1;isFunction$1(value$1)?cb$1=value$1:(cb$1=value$1.handler,options$1=value$1);let reset=setCurrentInstance(this),res=doWatch(getter,cb$1.bind(publicThis),options$1);return reset(),res}function createPathGetter(ctx,path){let segments=path.split(`.`);return()=>{let cur=ctx;for(let i$1=0;i$1{let localValue,prevSetValue=EMPTY_OBJ,prevEmittedValue;return watchSyncEffect(()=>{let propValue=props[camelizedName];hasChanged(localValue,propValue)&&(localValue=propValue,trigger$1())}),{get(){return track$1(),options$1.get?options$1.get(localValue):localValue},set(value$1){let emittedValue=options$1.set?options$1.set(value$1):value$1;if(!hasChanged(emittedValue,localValue)&&!(prevSetValue!==EMPTY_OBJ&&hasChanged(value$1,prevSetValue)))return;let rawProps=i$1.vnode.props;rawProps&&(name$2 in rawProps||camelizedName in rawProps||hyphenatedName in rawProps)&&(`onUpdate:${name$2}`in rawProps||`onUpdate:${camelizedName}`in rawProps||`onUpdate:${hyphenatedName}`in rawProps)||(localValue=value$1,trigger$1()),i$1.emit(`update:${name$2}`,emittedValue),hasChanged(value$1,emittedValue)&&hasChanged(value$1,prevSetValue)&&!hasChanged(emittedValue,prevEmittedValue)&&trigger$1(),prevSetValue=value$1,prevEmittedValue=emittedValue}}});return res[Symbol.iterator]=()=>{let i2=0;return{next(){return i2<2?{value:i2++?modifiers||EMPTY_OBJ:res,done:!1}:{done:!0}}}},res}const getModelModifiers=(props,modelName)=>modelName===`modelValue`||modelName===`model-value`?props.modelModifiers:props[`${modelName}Modifiers`]||props[`${camelize(modelName)}Modifiers`]||props[`${hyphenate$2(modelName)}Modifiers`];function emit(instance,event,...rawArgs){if(instance.isUnmounted)return;let props=instance.vnode.props||EMPTY_OBJ,args=rawArgs,isModelListener$1=event.startsWith(`update:`),modifiers=isModelListener$1&&getModelModifiers(props,event.slice(7));modifiers&&(modifiers.trim&&(args=rawArgs.map(a$2=>isString$2(a$2)?a$2.trim():a$2)),modifiers.number&&(args=rawArgs.map(looseToNumber)));let handlerName,handler=props[handlerName=toHandlerKey(event)]||props[handlerName=toHandlerKey(camelize(event))];!handler&&isModelListener$1&&(handler=props[handlerName=toHandlerKey(hyphenate$2(event))]),handler&&callWithAsyncErrorHandling(handler,instance,6,args);let onceHandler=props[handlerName+`Once`];if(onceHandler){if(!instance.emitted)instance.emitted={};else if(instance.emitted[handlerName])return;instance.emitted[handlerName]=!0,callWithAsyncErrorHandling(onceHandler,instance,6,args)}}function normalizeEmitsOptions(comp,appContext,asMixin=!1){let cache$1=appContext.emitsCache,cached=cache$1.get(comp);if(cached!==void 0)return cached;let raw$3=comp.emits,normalized={},hasExtends=!1;if(!isFunction$1(comp)){let extendEmits=raw2=>{let normalizedFromExtend=normalizeEmitsOptions(raw2,appContext,!0);normalizedFromExtend&&(hasExtends=!0,extend$1(normalized,normalizedFromExtend))};!asMixin&&appContext.mixins.length&&appContext.mixins.forEach(extendEmits),comp.extends&&extendEmits(comp.extends),comp.mixins&&comp.mixins.forEach(extendEmits)}return!raw$3&&!hasExtends?(isObject$5(comp)&&cache$1.set(comp,null),null):(isArray$5(raw$3)?raw$3.forEach(key$1=>normalized[key$1]=null):extend$1(normalized,raw$3),isObject$5(comp)&&cache$1.set(comp,normalized),normalized)}function isEmitListener(options$1,key$1){return!options$1||!isOn(key$1)?!1:(key$1=key$1.slice(2).replace(/Once$/,``),hasOwn$4(options$1,key$1[0].toLowerCase()+key$1.slice(1))||hasOwn$4(options$1,hyphenate$2(key$1))||hasOwn$4(options$1,key$1))}function renderComponentRoot(instance){let{type:Component,vnode,proxy,withProxy,propsOptions:[propsOptions],slots,attrs,emit:emit$1,render:render$1,renderCache,props,data:data$10,setupState,ctx,inheritAttrs}=instance,prev=setCurrentRenderingInstance(instance),result,fallthroughAttrs;try{if(vnode.shapeFlag&4){let proxyToUse=withProxy||proxy,thisProxy=proxyToUse;result=normalizeVNode(render$1.call(thisProxy,proxyToUse,renderCache,props,setupState,data$10,ctx)),fallthroughAttrs=attrs}else{let render2=Component;result=normalizeVNode(render2.length>1?render2(props,{attrs,slots,emit:emit$1}):render2(props,null)),fallthroughAttrs=Component.props?attrs:getFunctionalFallthrough(attrs)}}catch(err){blockStack.length=0,handleError(err,instance,1),result=createVNode(Comment)}let root$3=result,setRoot;if(fallthroughAttrs&&inheritAttrs!==!1){let keys$3=Object.keys(fallthroughAttrs),{shapeFlag}=root$3;keys$3.length&&shapeFlag&7&&(propsOptions&&keys$3.some(isModelListener)&&(fallthroughAttrs=filterModelListeners(fallthroughAttrs,propsOptions)),root$3=cloneVNode(root$3,fallthroughAttrs,!1,!0))}return vnode.dirs&&(root$3=cloneVNode(root$3,null,!1,!0),root$3.dirs=root$3.dirs?root$3.dirs.concat(vnode.dirs):vnode.dirs),vnode.transition&&setTransitionHooks(root$3,vnode.transition),result=root$3,setCurrentRenderingInstance(prev),result}function filterSingleRoot(children,recurse=!0){let singleRoot;for(let i$1=0;i$1{let res;for(let key$1 in attrs)(key$1===`class`||key$1===`style`||isOn(key$1))&&((res||={})[key$1]=attrs[key$1]);return res},filterModelListeners=(attrs,props)=>{let res={};for(let key$1 in attrs)(!isModelListener(key$1)||!(key$1.slice(9)in props))&&(res[key$1]=attrs[key$1]);return res};function shouldUpdateComponent(prevVNode,nextVNode,optimized){let{props:prevProps,children:prevChildren,component}=prevVNode,{props:nextProps,children:nextChildren,patchFlag}=nextVNode,emits=component.emitsOptions;if(nextVNode.dirs||nextVNode.transition)return!0;if(optimized&&patchFlag>=0){if(patchFlag&1024)return!0;if(patchFlag&16)return prevProps?hasPropsChanged(prevProps,nextProps,emits):!!nextProps;if(patchFlag&8){let dynamicProps=nextVNode.dynamicProps;for(let i$1=0;i$1type.__isSuspense;let suspenseId=0;const SuspenseImpl={name:`Suspense`,__isSuspense:!0,process(n1,n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals){if(n1==null)mountSuspense(n2,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals);else{if(parentSuspense&&parentSuspense.deps>0&&!n1.suspense.isInFallback){n2.suspense=n1.suspense,n2.suspense.vnode=n2,n2.el=n1.el;return}patchSuspense(n1,n2,container,anchor,parentComponent,namespace,slotScopeIds,optimized,rendererInternals)}},hydrate:hydrateSuspense,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(vnode,name$2){let eventListener=vnode.props&&vnode.props[name$2];isFunction$1(eventListener)&&eventListener()}function mountSuspense(vnode,container,anchor,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals){let{p:patch$1,o:{createElement}}=rendererInternals,hiddenContainer=createElement(`div`),suspense=vnode.suspense=createSuspenseBoundary(vnode,parentSuspense,parentComponent,container,hiddenContainer,anchor,namespace,slotScopeIds,optimized,rendererInternals);patch$1(null,suspense.pendingBranch=vnode.ssContent,hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds),suspense.deps>0?(triggerEvent(vnode,`onPending`),triggerEvent(vnode,`onFallback`),patch$1(null,vnode.ssFallback,container,anchor,parentComponent,null,namespace,slotScopeIds),setActiveBranch(suspense,vnode.ssFallback)):suspense.resolve(!1,!0)}function patchSuspense(n1,n2,container,anchor,parentComponent,namespace,slotScopeIds,optimized,{p:patch$1,um:unmount,o:{createElement}}){let suspense=n2.suspense=n1.suspense;suspense.vnode=n2,n2.el=n1.el;let newBranch=n2.ssContent,newFallback=n2.ssFallback,{activeBranch,pendingBranch,isInFallback,isHydrating}=suspense;if(pendingBranch)suspense.pendingBranch=newBranch,isSameVNodeType(newBranch,pendingBranch)?(patch$1(pendingBranch,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0?suspense.resolve():isInFallback&&(isHydrating||(patch$1(activeBranch,newFallback,container,anchor,parentComponent,null,namespace,slotScopeIds,optimized),setActiveBranch(suspense,newFallback)))):(suspense.pendingId=suspenseId++,isHydrating?(suspense.isHydrating=!1,suspense.activeBranch=pendingBranch):unmount(pendingBranch,parentComponent,suspense),suspense.deps=0,suspense.effects.length=0,suspense.hiddenContainer=createElement(`div`),isInFallback?(patch$1(null,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0?suspense.resolve():(patch$1(activeBranch,newFallback,container,anchor,parentComponent,null,namespace,slotScopeIds,optimized),setActiveBranch(suspense,newFallback))):activeBranch&&isSameVNodeType(newBranch,activeBranch)?(patch$1(activeBranch,newBranch,container,anchor,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.resolve(!0)):(patch$1(null,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0&&suspense.resolve()));else if(activeBranch&&isSameVNodeType(newBranch,activeBranch))patch$1(activeBranch,newBranch,container,anchor,parentComponent,suspense,namespace,slotScopeIds,optimized),setActiveBranch(suspense,newBranch);else if(triggerEvent(n2,`onPending`),suspense.pendingBranch=newBranch,newBranch.shapeFlag&512?suspense.pendingId=newBranch.component.suspenseId:suspense.pendingId=suspenseId++,patch$1(null,newBranch,suspense.hiddenContainer,null,parentComponent,suspense,namespace,slotScopeIds,optimized),suspense.deps<=0)suspense.resolve();else{let{timeout,pendingId}=suspense;timeout>0?setTimeout(()=>{suspense.pendingId===pendingId&&suspense.fallback(newFallback)},timeout):timeout===0&&suspense.fallback(newFallback)}}function createSuspenseBoundary(vnode,parentSuspense,parentComponent,container,hiddenContainer,anchor,namespace,slotScopeIds,optimized,rendererInternals,isHydrating=!1){let{p:patch$1,m:move,um:unmount,n:next,o:{parentNode,remove:remove$2}}=rendererInternals,parentSuspenseId,isSuspensible=isVNodeSuspensible(vnode);isSuspensible&&parentSuspense&&parentSuspense.pendingBranch&&(parentSuspenseId=parentSuspense.pendingId,parentSuspense.deps++);let timeout=vnode.props?toNumber(vnode.props.timeout):void 0,initialAnchor=anchor,suspense={vnode,parent:parentSuspense,parentComponent,namespace,container,hiddenContainer,deps:0,pendingId:suspenseId++,timeout:typeof timeout==`number`?timeout:-1,activeBranch:null,pendingBranch:null,isInFallback:!isHydrating,isHydrating,isUnmounted:!1,effects:[],resolve(resume=!1,sync$1=!1){let{vnode:vnode2,activeBranch,pendingBranch,pendingId,effects,parentComponent:parentComponent2,container:container2}=suspense,delayEnter=!1;suspense.isHydrating?suspense.isHydrating=!1:resume||(delayEnter=activeBranch&&pendingBranch.transition&&pendingBranch.transition.mode===`out-in`,delayEnter&&(activeBranch.transition.afterLeave=()=>{pendingId===suspense.pendingId&&(move(pendingBranch,container2,anchor===initialAnchor?next(activeBranch):anchor,0),queuePostFlushCb(effects))}),activeBranch&&(parentNode(activeBranch.el)===container2&&(anchor=next(activeBranch)),unmount(activeBranch,parentComponent2,suspense,!0)),delayEnter||move(pendingBranch,container2,anchor,0)),setActiveBranch(suspense,pendingBranch),suspense.pendingBranch=null,suspense.isInFallback=!1;let parent=suspense.parent,hasUnresolvedAncestor=!1;for(;parent;){if(parent.pendingBranch){parent.effects.push(...effects),hasUnresolvedAncestor=!0;break}parent=parent.parent}!hasUnresolvedAncestor&&!delayEnter&&queuePostFlushCb(effects),suspense.effects=[],isSuspensible&&parentSuspense&&parentSuspense.pendingBranch&&parentSuspenseId===parentSuspense.pendingId&&(parentSuspense.deps--,parentSuspense.deps===0&&!sync$1&&parentSuspense.resolve()),triggerEvent(vnode2,`onResolve`)},fallback(fallbackVNode){if(!suspense.pendingBranch)return;let{vnode:vnode2,activeBranch,parentComponent:parentComponent2,container:container2,namespace:namespace2}=suspense;triggerEvent(vnode2,`onFallback`);let anchor2=next(activeBranch),mountFallback=()=>{suspense.isInFallback&&(patch$1(null,fallbackVNode,container2,anchor2,parentComponent2,null,namespace2,slotScopeIds,optimized),setActiveBranch(suspense,fallbackVNode))},delayEnter=fallbackVNode.transition&&fallbackVNode.transition.mode===`out-in`;delayEnter&&(activeBranch.transition.afterLeave=mountFallback),suspense.isInFallback=!0,unmount(activeBranch,parentComponent2,null,!0),delayEnter||mountFallback()},move(container2,anchor2,type){suspense.activeBranch&&move(suspense.activeBranch,container2,anchor2,type),suspense.container=container2},next(){return suspense.activeBranch&&next(suspense.activeBranch)},registerDep(instance,setupRenderEffect,optimized2){let isInPendingSuspense=!!suspense.pendingBranch;isInPendingSuspense&&suspense.deps++;let hydratedEl=instance.vnode.el;instance.asyncDep.catch(err=>{handleError(err,instance,0)}).then(asyncSetupResult=>{if(instance.isUnmounted||suspense.isUnmounted||suspense.pendingId!==instance.suspenseId)return;instance.asyncResolved=!0;let{vnode:vnode2}=instance;handleSetupResult(instance,asyncSetupResult,!1),hydratedEl&&(vnode2.el=hydratedEl);let placeholder=!hydratedEl&&instance.subTree.el;setupRenderEffect(instance,vnode2,parentNode(hydratedEl||instance.subTree.el),hydratedEl?null:next(instance.subTree),suspense,namespace,optimized2),placeholder&&remove$2(placeholder),updateHOCHostEl(instance,vnode2.el),isInPendingSuspense&&--suspense.deps===0&&suspense.resolve()})},unmount(parentSuspense2,doRemove){suspense.isUnmounted=!0,suspense.activeBranch&&unmount(suspense.activeBranch,parentComponent,parentSuspense2,doRemove),suspense.pendingBranch&&unmount(suspense.pendingBranch,parentComponent,parentSuspense2,doRemove)}};return suspense}function hydrateSuspense(node$1,vnode,parentComponent,parentSuspense,namespace,slotScopeIds,optimized,rendererInternals,hydrateNode){let suspense=vnode.suspense=createSuspenseBoundary(vnode,parentSuspense,parentComponent,node$1.parentNode,document.createElement(`div`),null,namespace,slotScopeIds,optimized,rendererInternals,!0),result=hydrateNode(node$1,suspense.pendingBranch=vnode.ssContent,parentComponent,suspense,slotScopeIds,optimized);return suspense.deps===0&&suspense.resolve(!1,!0),result}function normalizeSuspenseChildren(vnode){let{shapeFlag,children}=vnode,isSlotChildren=shapeFlag&32;vnode.ssContent=normalizeSuspenseSlot(isSlotChildren?children.default:children),vnode.ssFallback=isSlotChildren?normalizeSuspenseSlot(children.fallback):createVNode(Comment)}function normalizeSuspenseSlot(s$1){let block;if(isFunction$1(s$1)){let trackBlock=isBlockTreeEnabled&&s$1._c;trackBlock&&(s$1._d=!1,openBlock()),s$1=s$1(),trackBlock&&(s$1._d=!0,block=currentBlock,closeBlock())}if(isArray$5(s$1)){let singleChild=filterSingleRoot(s$1);s$1=singleChild}return s$1=normalizeVNode(s$1),block&&!s$1.dynamicChildren&&(s$1.dynamicChildren=block.filter(c$4=>c$4!==s$1)),s$1}function queueEffectWithSuspense(fn$5,suspense){suspense&&suspense.pendingBranch?isArray$5(fn$5)?suspense.effects.push(...fn$5):suspense.effects.push(fn$5):queuePostFlushCb(fn$5)}function setActiveBranch(suspense,branch){suspense.activeBranch=branch;let{vnode,parentComponent}=suspense,el=branch.el;for(;!el&&branch.component;)branch=branch.component.subTree,el=branch.el;vnode.el=el,parentComponent&&parentComponent.subTree===vnode&&(parentComponent.vnode.el=el,updateHOCHostEl(parentComponent,el))}function isVNodeSuspensible(vnode){let suspensible=vnode.props&&vnode.props.suspensible;return suspensible!=null&&suspensible!==!1}const Fragment=Symbol.for(`v-fgt`),Text=Symbol.for(`v-txt`),Comment=Symbol.for(`v-cmt`),Static=Symbol.for(`v-stc`),blockStack=[];let currentBlock=null;function openBlock(disableTracking=!1){blockStack.push(currentBlock=disableTracking?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(value$1,inVOnce=!1){isBlockTreeEnabled+=value$1,value$1<0&¤tBlock&&inVOnce&&(currentBlock.hasOnce=!0)}function setupBlock(vnode){return vnode.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(vnode),vnode}function createElementBlock(type,props,children,patchFlag,dynamicProps,shapeFlag){return setupBlock(createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,!0))}function createBlock(type,props,children,patchFlag,dynamicProps){return setupBlock(createVNode(type,props,children,patchFlag,dynamicProps,!0))}function isVNode$1(value$1){return value$1?value$1.__v_isVNode===!0:!1}function isSameVNodeType(n1,n2){return n1.type===n2.type&&n1.key===n2.key}let vnodeArgsTransformer;function transformVNodeArgs(transformer){vnodeArgsTransformer=transformer}const normalizeKey=({key:key$1})=>key$1??null,normalizeRef=({ref:ref$1,ref_key,ref_for})=>(typeof ref$1==`number`&&(ref$1=``+ref$1),ref$1==null?null:isString$2(ref$1)||isRef(ref$1)||isFunction$1(ref$1)?{i:currentRenderingInstance,r:ref$1,k:ref_key,f:!!ref_for}:ref$1);function createBaseVNode(type,props=null,children=null,patchFlag=0,dynamicProps=null,shapeFlag=type===Fragment?0:1,isBlockNode=!1,needFullChildrenNormalization=!1){let vnode={__v_isVNode:!0,__v_skip:!0,type,props,key:props&&normalizeKey(props),ref:props&&normalizeRef(props),scopeId:currentScopeId,slotScopeIds:null,children,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,patchFlag,dynamicProps,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return needFullChildrenNormalization?(normalizeChildren(vnode,children),shapeFlag&128&&type.normalize(vnode)):children&&(vnode.shapeFlag|=isString$2(children)?8:16),isBlockTreeEnabled>0&&!isBlockNode&¤tBlock&&(vnode.patchFlag>0||shapeFlag&6)&&vnode.patchFlag!==32&¤tBlock.push(vnode),vnode}const createVNode=_createVNode;function _createVNode(type,props=null,children=null,patchFlag=0,dynamicProps=null,isBlockNode=!1){if((!type||type===NULL_DYNAMIC_COMPONENT)&&(type=Comment),isVNode$1(type)){let cloned=cloneVNode(type,props,!0);return children&&normalizeChildren(cloned,children),isBlockTreeEnabled>0&&!isBlockNode&¤tBlock&&(cloned.shapeFlag&6?currentBlock[currentBlock.indexOf(type)]=cloned:currentBlock.push(cloned)),cloned.patchFlag=-2,cloned}if(isClassComponent(type)&&(type=type.__vccOpts),props){props=guardReactiveProps(props);let{class:klass,style}=props;klass&&!isString$2(klass)&&(props.class=normalizeClass(klass)),isObject$5(style)&&(isProxy(style)&&!isArray$5(style)&&(style=extend$1({},style)),props.style=normalizeStyle(style))}let shapeFlag=isString$2(type)?1:isSuspense(type)?128:isTeleport(type)?64:isObject$5(type)?4:isFunction$1(type)?2:0;return createBaseVNode(type,props,children,patchFlag,dynamicProps,shapeFlag,isBlockNode,!0)}function guardReactiveProps(props){return props?isProxy(props)||isInternalObject(props)?extend$1({},props):props:null}function cloneVNode(vnode,extraProps,mergeRef=!1,cloneTransition=!1){let{props,ref:ref$1,patchFlag,children,transition}=vnode,mergedProps=extraProps?mergeProps(props||{},extraProps):props,cloned={__v_isVNode:!0,__v_skip:!0,type:vnode.type,props:mergedProps,key:mergedProps&&normalizeKey(mergedProps),ref:extraProps&&extraProps.ref?mergeRef&&ref$1?isArray$5(ref$1)?ref$1.concat(normalizeRef(extraProps)):[ref$1,normalizeRef(extraProps)]:normalizeRef(extraProps):ref$1,scopeId:vnode.scopeId,slotScopeIds:vnode.slotScopeIds,children,target:vnode.target,targetStart:vnode.targetStart,targetAnchor:vnode.targetAnchor,staticCount:vnode.staticCount,shapeFlag:vnode.shapeFlag,patchFlag:extraProps&&vnode.type!==Fragment?patchFlag===-1?16:patchFlag|16:patchFlag,dynamicProps:vnode.dynamicProps,dynamicChildren:vnode.dynamicChildren,appContext:vnode.appContext,dirs:vnode.dirs,transition,component:vnode.component,suspense:vnode.suspense,ssContent:vnode.ssContent&&cloneVNode(vnode.ssContent),ssFallback:vnode.ssFallback&&cloneVNode(vnode.ssFallback),el:vnode.el,anchor:vnode.anchor,ctx:vnode.ctx,ce:vnode.ce};return transition&&cloneTransition&&setTransitionHooks(cloned,transition.clone(cloned)),cloned}function createTextVNode(text$5=` `,flag=0){return createVNode(Text,null,text$5,flag)}function createStaticVNode(content$2,numberOfNodes){let vnode=createVNode(Static,null,content$2);return vnode.staticCount=numberOfNodes,vnode}function createCommentVNode(text$5=``,asBlock=!1){return asBlock?(openBlock(),createBlock(Comment,null,text$5)):createVNode(Comment,null,text$5)}function normalizeVNode(child){return child==null||typeof child==`boolean`?createVNode(Comment):isArray$5(child)?createVNode(Fragment,null,child.slice()):isVNode$1(child)?cloneIfMounted(child):createVNode(Text,null,String(child))}function cloneIfMounted(child){return child.el===null&&child.patchFlag!==-1||child.memo?child:cloneVNode(child)}function normalizeChildren(vnode,children){let type=0,{shapeFlag}=vnode;if(children==null)children=null;else if(isArray$5(children))type=16;else if(typeof children==`object`)if(shapeFlag&65){let slot=children.default;slot&&(slot._c&&(slot._d=!1),normalizeChildren(vnode,slot()),slot._c&&(slot._d=!0));return}else{type=32;let slotFlag=children._;!slotFlag&&!isInternalObject(children)?children._ctx=currentRenderingInstance:slotFlag===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?children._=1:(children._=2,vnode.patchFlag|=1024))}else isFunction$1(children)?(children={default:children,_ctx:currentRenderingInstance},type=32):(children=String(children),shapeFlag&64?(type=16,children=[createTextVNode(children)]):type=8);vnode.children=children,vnode.shapeFlag|=type}function mergeProps(...args){let ret={};for(let i$1=0;i$1currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{let g$2=getGlobalThis$1(),registerGlobalSetter=(key$1,setter)=>{let setters;return(setters=g$2[key$1])||(setters=g$2[key$1]=[]),setters.push(setter),v$1=>{setters.length>1?setters.forEach(set=>set(v$1)):setters[0](v$1)}};internalSetCurrentInstance=registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`,v$1=>currentInstance=v$1),setInSSRSetupState=registerGlobalSetter(`__VUE_SSR_SETTERS__`,v$1=>isInSSRComponentSetup=v$1)}const setCurrentInstance=instance=>{let prev=currentInstance;return internalSetCurrentInstance(instance),instance.scope.on(),()=>{instance.scope.off(),internalSetCurrentInstance(prev)}},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(instance){return instance.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(instance,isSSR=!1,optimized=!1){isSSR&&setInSSRSetupState(isSSR);let{props,children}=instance.vnode,isStateful=isStatefulComponent(instance);initProps(instance,props,isStateful,isSSR),initSlots(instance,children,optimized||isSSR);let setupResult=isStateful?setupStatefulComponent(instance,isSSR):void 0;return isSSR&&setInSSRSetupState(!1),setupResult}function setupStatefulComponent(instance,isSSR){var _a$2;let Component=instance.type;instance.accessCache=Object.create(null),instance.proxy=new Proxy(instance.ctx,PublicInstanceProxyHandlers);let{setup}=Component;if(setup){pauseTracking();let setupContext=instance.setupContext=setup.length>1?createSetupContext(instance):null,reset=setCurrentInstance(instance),setupResult=callWithErrorHandling(setup,instance,0,[instance.props,setupContext]),isAsyncSetup=isPromise$1(setupResult);if(resetTracking(),reset(),(isAsyncSetup||instance.sp)&&!isAsyncWrapper(instance)&&markAsyncBoundary(instance),isAsyncSetup){if(setupResult.then(unsetCurrentInstance,unsetCurrentInstance),isSSR)return setupResult.then(resolvedResult=>{handleSetupResult(instance,resolvedResult,isSSR)}).catch(e$3=>{handleError(e$3,instance,0)});instance.asyncDep=setupResult}else handleSetupResult(instance,setupResult,isSSR)}else finishComponentSetup(instance,isSSR)}function handleSetupResult(instance,setupResult,isSSR){isFunction$1(setupResult)?instance.type.__ssrInlineRender?instance.ssrRender=setupResult:instance.render=setupResult:isObject$5(setupResult)&&(instance.setupState=proxyRefs(setupResult)),finishComponentSetup(instance,isSSR)}let compile$2,installWithProxy;function registerRuntimeCompiler(_compile){compile$2=_compile,installWithProxy=i$1=>{i$1.render._rc&&(i$1.withProxy=new Proxy(i$1.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$2;function finishComponentSetup(instance,isSSR,skipOptions){let Component=instance.type;if(!instance.render){if(!isSSR&&compile$2&&!Component.render){let template=Component.template||resolveMergedOptions(instance).template;if(template){let{isCustomElement,compilerOptions}=instance.appContext.config,{delimiters,compilerOptions:componentCompilerOptions}=Component,finalCompilerOptions=extend$1(extend$1({isCustomElement,delimiters},compilerOptions),componentCompilerOptions);Component.render=compile$2(template,finalCompilerOptions)}}instance.render=Component.render||NOOP,installWithProxy&&installWithProxy(instance)}{let reset=setCurrentInstance(instance);pauseTracking();try{applyOptions(instance)}finally{resetTracking(),reset()}}}const attrsProxyHandlers={get(target$1,key$1){return track(target$1,`get`,``),target$1[key$1]}};function createSetupContext(instance){let expose=exposed=>{instance.exposed=exposed||{}};return{attrs:new Proxy(instance.attrs,attrsProxyHandlers),slots:instance.slots,emit:instance.emit,expose}}function getComponentPublicInstance(instance){return instance.exposed?instance.exposeProxy||=new Proxy(proxyRefs(markRaw(instance.exposed)),{get(target$1,key$1){if(key$1 in target$1)return target$1[key$1];if(key$1 in publicPropertiesMap)return publicPropertiesMap[key$1](instance)},has(target$1,key$1){return key$1 in target$1||key$1 in publicPropertiesMap}}):instance.proxy}function getComponentName(Component,includeInferred=!0){return isFunction$1(Component)?Component.displayName||Component.name:Component.name||includeInferred&&Component.__name}function isClassComponent(value$1){return isFunction$1(value$1)&&`__vccOpts`in value$1}const computed=(getterOrOptions,debugOptions)=>{let c$4=computed$1(getterOrOptions,debugOptions,isInSSRComponentSetup);return c$4};function h(type,propsOrChildren,children){let l$1=arguments.length;return l$1===2?isObject$5(propsOrChildren)&&!isArray$5(propsOrChildren)?isVNode$1(propsOrChildren)?createVNode(type,null,[propsOrChildren]):createVNode(type,propsOrChildren):createVNode(type,null,propsOrChildren):(l$1>3?children=Array.prototype.slice.call(arguments,2):l$1===3&&isVNode$1(children)&&(children=[children]),createVNode(type,propsOrChildren,children))}function initCustomFormatter(){return;function formatInstance(instance){let blocks=[];instance.type.props&&instance.props&&blocks.push(createInstanceBlock(`props`,toRaw(instance.props))),instance.setupState!==EMPTY_OBJ&&blocks.push(createInstanceBlock(`setup`,instance.setupState)),instance.data!==EMPTY_OBJ&&blocks.push(createInstanceBlock(`data`,toRaw(instance.data)));let computed$2=extractKeys(instance,`computed`);computed$2&&blocks.push(createInstanceBlock(`computed`,computed$2));let injected=extractKeys(instance,`inject`);return injected&&blocks.push(createInstanceBlock(`injected`,injected)),blocks.push([`div`,{},[`span`,{style:keywordStyle.style+`;opacity:0.66`},`$ (internal): `],[`object`,{object:instance}]]),blocks}function createInstanceBlock(type,target$1){return target$1=extend$1({},target$1),Object.keys(target$1).length?[`div`,{style:`line-height:1.25em;margin-bottom:0.6em`},[`div`,{style:`color:#476582`},type],[`div`,{style:`padding-left:1.25em`},...Object.keys(target$1).map(key$1=>[`div`,{},[`span`,keywordStyle,key$1+`: `],formatValue(target$1[key$1],!1)])]]:[`span`,{}]}function formatValue(v$1,asRaw=!0){return typeof v$1==`number`?[`span`,numberStyle,v$1]:typeof v$1==`string`?[`span`,stringStyle,JSON.stringify(v$1)]:typeof v$1==`boolean`?[`span`,keywordStyle,v$1]:isObject$5(v$1)?[`object`,{object:asRaw?toRaw(v$1):v$1}]:[`span`,stringStyle,String(v$1)]}function extractKeys(instance,type){let Comp=instance.type;if(isFunction$1(Comp))return;let extracted={};for(let key$1 in instance.ctx)isKeyOfType(Comp,key$1,type)&&(extracted[key$1]=instance.ctx[key$1]);return extracted}function isKeyOfType(Comp,key$1,type){let opts=Comp[type];if(isArray$5(opts)&&opts.includes(key$1)||isObject$5(opts)&&key$1 in opts||Comp.extends&&isKeyOfType(Comp.extends,key$1,type)||Comp.mixins&&Comp.mixins.some(m$2=>isKeyOfType(m$2,key$1,type)))return!0}function genRefFlag(v$1){return isShallow(v$1)?`ShallowRef`:v$1.effect?`ComputedRef`:`Ref`}}function withMemo(memo,render$1,cache$1,index$1){let cached=cache$1[index$1];if(cached&&isMemoSame(cached,memo))return cached;let ret=render$1();return ret.memo=memo.slice(),ret.cacheIndex=index$1,cache$1[index$1]=ret}function isMemoSame(cached,memo){let prev=cached.memo;if(prev.length!=memo.length)return!1;for(let i$1=0;i$10&¤tBlock&¤tBlock.push(cached),!0}const version=`3.5.17`,warn$1=NOOP,ErrorTypeStrings=ErrorTypeStrings$1,devtools$2=devtools$1,setDevtoolsHook=setDevtoolsHook$1,_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode,getComponentPublicInstance,ensureValidVNode,pushWarningContext,popWarningContext},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,DeprecationTypes=null;let policy;const tt$2=typeof window<`u`&&window.trustedTypes;if(tt$2)try{policy=tt$2.createPolicy(`vue`,{createHTML:val=>val})}catch{}const unsafeToTrustedHTML=policy?val=>policy.createHTML(val):val=>val,svgNS=`http://www.w3.org/2000/svg`,mathmlNS=`http://www.w3.org/1998/Math/MathML`,doc=typeof document<`u`?document:null,templateContainer=doc&&doc.createElement(`template`),nodeOps={insert:(child,parent,anchor)=>{parent.insertBefore(child,anchor||null)},remove:child=>{let parent=child.parentNode;parent&&parent.removeChild(child)},createElement:(tag,namespace,is,props)=>{let el=namespace===`svg`?doc.createElementNS(svgNS,tag):namespace===`mathml`?doc.createElementNS(mathmlNS,tag):is?doc.createElement(tag,{is}):doc.createElement(tag);return tag===`select`&&props&&props.multiple!=null&&el.setAttribute(`multiple`,props.multiple),el},createText:text$5=>doc.createTextNode(text$5),createComment:text$5=>doc.createComment(text$5),setText:(node$1,text$5)=>{node$1.nodeValue=text$5},setElementText:(el,text$5)=>{el.textContent=text$5},parentNode:node$1=>node$1.parentNode,nextSibling:node$1=>node$1.nextSibling,querySelector:selector=>doc.querySelector(selector),setScopeId(el,id){el.setAttribute(id,``)},insertStaticContent(content$2,parent,anchor,namespace,start,end){let before=anchor?anchor.previousSibling:parent.lastChild;if(start&&(start===end||start.nextSibling))for(;parent.insertBefore(start.cloneNode(!0),anchor),!(start===end||!(start=start.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(namespace===`svg`?`${content$2}`:namespace===`mathml`?`${content$2}`:content$2);let template=templateContainer.content;if(namespace===`svg`||namespace===`mathml`){let wrapper=template.firstChild;for(;wrapper.firstChild;)template.appendChild(wrapper.firstChild);template.removeChild(wrapper)}parent.insertBefore(template,anchor)}return[before?before.nextSibling:parent.firstChild,anchor?anchor.previousSibling:parent.lastChild]}},TRANSITION=`transition`,ANIMATION=`animation`,vtcKey=Symbol(`_vtc`),DOMTransitionPropsValidators={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},TransitionPropsValidators=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=t=>(t.displayName=`Transition`,t.props=TransitionPropsValidators,t),Transition=decorate$1((props,{slots})=>h(BaseTransition,resolveTransitionProps(props),slots)),callHook=(hook,args=[])=>{isArray$5(hook)?hook.forEach(h2=>h2(...args)):hook&&hook(...args)},hasExplicitCallback=hook=>hook?isArray$5(hook)?hook.some(h2=>h2.length>1):hook.length>1:!1;function resolveTransitionProps(rawProps){let baseProps={};for(let key$1 in rawProps)key$1 in DOMTransitionPropsValidators||(baseProps[key$1]=rawProps[key$1]);if(rawProps.css===!1)return baseProps;let{name:name$2=`v`,type,duration,enterFromClass=`${name$2}-enter-from`,enterActiveClass=`${name$2}-enter-active`,enterToClass=`${name$2}-enter-to`,appearFromClass=enterFromClass,appearActiveClass=enterActiveClass,appearToClass=enterToClass,leaveFromClass=`${name$2}-leave-from`,leaveActiveClass=`${name$2}-leave-active`,leaveToClass=`${name$2}-leave-to`}=rawProps,durations=normalizeDuration(duration),enterDuration=durations&&durations[0],leaveDuration=durations&&durations[1],{onBeforeEnter,onEnter,onEnterCancelled,onLeave,onLeaveCancelled,onBeforeAppear=onBeforeEnter,onAppear=onEnter,onAppearCancelled=onEnterCancelled}=baseProps,finishEnter=(el,isAppear,done,isCancelled)=>{el._enterCancelled=isCancelled,removeTransitionClass(el,isAppear?appearToClass:enterToClass),removeTransitionClass(el,isAppear?appearActiveClass:enterActiveClass),done&&done()},finishLeave=(el,done)=>{el._isLeaving=!1,removeTransitionClass(el,leaveFromClass),removeTransitionClass(el,leaveToClass),removeTransitionClass(el,leaveActiveClass),done&&done()},makeEnterHook=isAppear=>(el,done)=>{let hook=isAppear?onAppear:onEnter,resolve$1=()=>finishEnter(el,isAppear,done);callHook(hook,[el,resolve$1]),nextFrame(()=>{removeTransitionClass(el,isAppear?appearFromClass:enterFromClass),addTransitionClass(el,isAppear?appearToClass:enterToClass),hasExplicitCallback(hook)||whenTransitionEnds(el,type,enterDuration,resolve$1)})};return extend$1(baseProps,{onBeforeEnter(el){callHook(onBeforeEnter,[el]),addTransitionClass(el,enterFromClass),addTransitionClass(el,enterActiveClass)},onBeforeAppear(el){callHook(onBeforeAppear,[el]),addTransitionClass(el,appearFromClass),addTransitionClass(el,appearActiveClass)},onEnter:makeEnterHook(!1),onAppear:makeEnterHook(!0),onLeave(el,done){el._isLeaving=!0;let resolve$1=()=>finishLeave(el,done);addTransitionClass(el,leaveFromClass),el._enterCancelled?(addTransitionClass(el,leaveActiveClass),forceReflow()):(forceReflow(),addTransitionClass(el,leaveActiveClass)),nextFrame(()=>{el._isLeaving&&(removeTransitionClass(el,leaveFromClass),addTransitionClass(el,leaveToClass),hasExplicitCallback(onLeave)||whenTransitionEnds(el,type,leaveDuration,resolve$1))}),callHook(onLeave,[el,resolve$1])},onEnterCancelled(el){finishEnter(el,!1,void 0,!0),callHook(onEnterCancelled,[el])},onAppearCancelled(el){finishEnter(el,!0,void 0,!0),callHook(onAppearCancelled,[el])},onLeaveCancelled(el){finishLeave(el),callHook(onLeaveCancelled,[el])}})}function normalizeDuration(duration){if(duration==null)return null;if(isObject$5(duration))return[NumberOf(duration.enter),NumberOf(duration.leave)];{let n$2=NumberOf(duration);return[n$2,n$2]}}function NumberOf(val){let res=toNumber(val);return res}function addTransitionClass(el,cls){cls.split(/\s+/).forEach(c$4=>c$4&&el.classList.add(c$4)),(el[vtcKey]||(el[vtcKey]=new Set)).add(cls)}function removeTransitionClass(el,cls){cls.split(/\s+/).forEach(c$4=>c$4&&el.classList.remove(c$4));let _vtc=el[vtcKey];_vtc&&(_vtc.delete(cls),_vtc.size||(el[vtcKey]=void 0))}function nextFrame(cb$1){requestAnimationFrame(()=>{requestAnimationFrame(cb$1)})}let endId=0;function whenTransitionEnds(el,expectedType,explicitTimeout,resolve$1){let id=el._endId=++endId,resolveIfNotStale=()=>{id===el._endId&&resolve$1()};if(explicitTimeout!=null)return setTimeout(resolveIfNotStale,explicitTimeout);let{type,timeout,propCount}=getTransitionInfo(el,expectedType);if(!type)return resolve$1();let endEvent=type+`end`,ended=0,end=()=>{el.removeEventListener(endEvent,onEnd),resolveIfNotStale()},onEnd=e$3=>{e$3.target===el&&++ended>=propCount&&end()};setTimeout(()=>{ended(styles[key$1]||``).split(`, `),transitionDelays=getStyleProperties(`${TRANSITION}Delay`),transitionDurations=getStyleProperties(`${TRANSITION}Duration`),transitionTimeout=getTimeout(transitionDelays,transitionDurations),animationDelays=getStyleProperties(`${ANIMATION}Delay`),animationDurations=getStyleProperties(`${ANIMATION}Duration`),animationTimeout=getTimeout(animationDelays,animationDurations),type=null,timeout=0,propCount=0;expectedType===TRANSITION?transitionTimeout>0&&(type=TRANSITION,timeout=transitionTimeout,propCount=transitionDurations.length):expectedType===ANIMATION?animationTimeout>0&&(type=ANIMATION,timeout=animationTimeout,propCount=animationDurations.length):(timeout=Math.max(transitionTimeout,animationTimeout),type=timeout>0?transitionTimeout>animationTimeout?TRANSITION:ANIMATION:null,propCount=type?type===TRANSITION?transitionDurations.length:animationDurations.length:0);let hasTransform=type===TRANSITION&&/\b(transform|all)(,|$)/.test(getStyleProperties(`${TRANSITION}Property`).toString());return{type,timeout,propCount,hasTransform}}function getTimeout(delays,durations){for(;delays.lengthtoMs(d$2)+toMs(delays[i$1])))}function toMs(s$1){return s$1===`auto`?0:Number(s$1.slice(0,-1).replace(`,`,`.`))*1e3}function forceReflow(){return document.body.offsetHeight}function patchClass(el,value$1,isSVG){let transitionClasses=el[vtcKey];transitionClasses&&(value$1=(value$1?[value$1,...transitionClasses]:[...transitionClasses]).join(` `)),value$1==null?el.removeAttribute(`class`):isSVG?el.setAttribute(`class`,value$1):el.className=value$1}const vShowOriginalDisplay=Symbol(`_vod`),vShowHidden=Symbol(`_vsh`),vShow={beforeMount(el,{value:value$1},{transition}){el[vShowOriginalDisplay]=el.style.display===`none`?``:el.style.display,transition&&value$1?transition.beforeEnter(el):setDisplay(el,value$1)},mounted(el,{value:value$1},{transition}){transition&&value$1&&transition.enter(el)},updated(el,{value:value$1,oldValue},{transition}){!value$1!=!oldValue&&(transition?value$1?(transition.beforeEnter(el),setDisplay(el,!0),transition.enter(el)):transition.leave(el,()=>{setDisplay(el,!1)}):setDisplay(el,value$1))},beforeUnmount(el,{value:value$1}){setDisplay(el,value$1)}};function setDisplay(el,value$1){el.style.display=value$1?el[vShowOriginalDisplay]:`none`,el[vShowHidden]=!value$1}function initVShowForSSR(){vShow.getSSRProps=({value:value$1})=>{if(!value$1)return{style:{display:`none`}}}}const CSS_VAR_TEXT=Symbol(``);function useCssVars(getter){let instance=getCurrentInstance();if(!instance)return;let updateTeleports=instance.ut=(vars=getter(instance.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${instance.uid}"]`)).forEach(node$1=>setVarsOnNode(node$1,vars))},setVars=()=>{let vars=getter(instance.proxy);instance.ce?setVarsOnNode(instance.ce,vars):setVarsOnVNode(instance.subTree,vars),updateTeleports(vars)};onBeforeUpdate(()=>{queuePostFlushCb(setVars)}),onMounted(()=>{watch(setVars,NOOP,{flush:`post`});let ob=new MutationObserver(setVars);ob.observe(instance.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>ob.disconnect())})}function setVarsOnVNode(vnode,vars){if(vnode.shapeFlag&128){let suspense=vnode.suspense;vnode=suspense.activeBranch,suspense.pendingBranch&&!suspense.isHydrating&&suspense.effects.push(()=>{setVarsOnVNode(suspense.activeBranch,vars)})}for(;vnode.component;)vnode=vnode.component.subTree;if(vnode.shapeFlag&1&&vnode.el)setVarsOnNode(vnode.el,vars);else if(vnode.type===Fragment)vnode.children.forEach(c$4=>setVarsOnVNode(c$4,vars));else if(vnode.type===Static){let{el,anchor}=vnode;for(;el&&(setVarsOnNode(el,vars),el!==anchor);)el=el.nextSibling}}function setVarsOnNode(el,vars){if(el.nodeType===1){let style=el.style,cssText=``;for(let key$1 in vars)style.setProperty(`--${key$1}`,vars[key$1]),cssText+=`--${key$1}: ${vars[key$1]};`;style[CSS_VAR_TEXT]=cssText}}const displayRE=/(^|;)\s*display\s*:/;function patchStyle(el,prev,next){let style=el.style,isCssString=isString$2(next),hasControlledDisplay=!1;if(next&&!isCssString){if(prev)if(isString$2(prev))for(let prevStyle of prev.split(`;`)){let key$1=prevStyle.slice(0,prevStyle.indexOf(`:`)).trim();next[key$1]??setStyle(style,key$1,``)}else for(let key$1 in prev)next[key$1]??setStyle(style,key$1,``);for(let key$1 in next)key$1===`display`&&(hasControlledDisplay=!0),setStyle(style,key$1,next[key$1])}else if(isCssString){if(prev!==next){let cssVarText=style[CSS_VAR_TEXT];cssVarText&&(next+=`;`+cssVarText),style.cssText=next,hasControlledDisplay=displayRE.test(next)}}else prev&&el.removeAttribute(`style`);vShowOriginalDisplay in el&&(el[vShowOriginalDisplay]=hasControlledDisplay?style.display:``,el[vShowHidden]&&(style.display=`none`))}const importantRE=/\s*!important$/;function setStyle(style,name$2,val){if(isArray$5(val))val.forEach(v$1=>setStyle(style,name$2,v$1));else if(val??=``,name$2.startsWith(`--`))style.setProperty(name$2,val);else{let prefixed=autoPrefix(style,name$2);importantRE.test(val)?style.setProperty(hyphenate$2(prefixed),val.replace(importantRE,``),`important`):style[prefixed]=val}}const prefixes=[`Webkit`,`Moz`,`ms`],prefixCache={};function autoPrefix(style,rawName){let cached=prefixCache[rawName];if(cached)return cached;let name$2=camelize(rawName);if(name$2!==`filter`&&name$2 in style)return prefixCache[rawName]=name$2;name$2=capitalize$1(name$2);for(let i$1=0;i$1cachedNow||(p$4.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(initialValue,instance){let invoker=e$3=>{if(!e$3._vts)e$3._vts=Date.now();else if(e$3._vts<=invoker.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(e$3,invoker.value),instance,5,[e$3])};return invoker.value=initialValue,invoker.attached=getNow(),invoker}function patchStopImmediatePropagation(e$3,value$1){if(isArray$5(value$1)){let originalStop=e$3.stopImmediatePropagation;return e$3.stopImmediatePropagation=()=>{originalStop.call(e$3),e$3._stopped=!0},value$1.map(fn$5=>e2=>!e2._stopped&&fn$5&&fn$5(e2))}else return value$1}const isNativeOn=key$1=>key$1.charCodeAt(0)===111&&key$1.charCodeAt(1)===110&&key$1.charCodeAt(2)>96&&key$1.charCodeAt(2)<123,patchProp=(el,key$1,prevValue,nextValue,namespace,parentComponent)=>{let isSVG=namespace===`svg`;key$1===`class`?patchClass(el,nextValue,isSVG):key$1===`style`?patchStyle(el,prevValue,nextValue):isOn(key$1)?isModelListener(key$1)||patchEvent(el,key$1,prevValue,nextValue,parentComponent):(key$1[0]===`.`?(key$1=key$1.slice(1),!0):key$1[0]===`^`?(key$1=key$1.slice(1),!1):shouldSetAsProp(el,key$1,nextValue,isSVG))?(patchDOMProp(el,key$1,nextValue),!el.tagName.includes(`-`)&&(key$1===`value`||key$1===`checked`||key$1===`selected`)&&patchAttr(el,key$1,nextValue,isSVG,parentComponent,key$1!==`value`)):el._isVueCE&&(/[A-Z]/.test(key$1)||!isString$2(nextValue))?patchDOMProp(el,camelize(key$1),nextValue,parentComponent,key$1):(key$1===`true-value`?el._trueValue=nextValue:key$1===`false-value`&&(el._falseValue=nextValue),patchAttr(el,key$1,nextValue,isSVG))};function shouldSetAsProp(el,key$1,value$1,isSVG){if(isSVG)return!!(key$1===`innerHTML`||key$1===`textContent`||key$1 in el&&isNativeOn(key$1)&&isFunction$1(value$1));if(key$1===`spellcheck`||key$1===`draggable`||key$1===`translate`||key$1===`autocorrect`||key$1===`form`||key$1===`list`&&el.tagName===`INPUT`||key$1===`type`&&el.tagName===`TEXTAREA`)return!1;if(key$1===`width`||key$1===`height`){let tag=el.tagName;if(tag===`IMG`||tag===`VIDEO`||tag===`CANVAS`||tag===`SOURCE`)return!1}return isNativeOn(key$1)&&isString$2(value$1)?!1:key$1 in el}const REMOVAL={}; /*! #__NO_SIDE_EFFECTS__ */ function defineCustomElement(options$1,extraOptions,_createApp){let Comp=defineComponent(options$1,extraOptions);isPlainObject$6(Comp)&&extend$1(Comp,extraOptions);class VueCustomElement extends VueElement{constructor(initialProps){super(Comp,initialProps,_createApp)}}return VueCustomElement.def=Comp,VueCustomElement} /*! #__NO_SIDE_EFFECTS__ */ -const defineSSRCustomElement=(options$1,extraOptions)=>defineCustomElement(options$1,extraOptions,createSSRApp),BaseClass=typeof HTMLElement<`u`?HTMLElement:class{};var VueElement=class VueElement extends BaseClass{constructor(_def,_props={},_createApp=createApp){super(),this._def=_def,this._props=_props,this._createApp=_createApp,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&&_createApp!==createApp?this._root=this.shadowRoot:_def.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 parent=this;for(;parent&&=parent.parentNode||parent.host;)if(parent instanceof VueElement){this._parent=parent;break}this._instance||(this._resolved?this._mount(this._def):parent&&parent._pendingResolve?this._pendingResolve=parent._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(parent=this._parent){parent&&(this._instance.parent=parent._instance,this._inheritParentContext(parent))}_inheritParentContext(parent=this._parent){parent&&this._app&&Object.setPrototypeOf(this._app._context.provides,parent._instance.provides)}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=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 i$1=0;i$1{for(let m$2 of mutations$1)this._setAttr(m$2.attributeName)}),this._ob.observe(this,{attributes:!0});let resolve$1=(def$1,isAsync$1=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props,styles}=def$1,numberProps;if(props&&!isArray$5(props))for(let key$1 in props){let opt=props[key$1];(opt===Number||opt&&opt.type===Number)&&(key$1 in this._props&&(this._props[key$1]=toNumber(this._props[key$1])),(numberProps||=Object.create(null))[camelize(key$1)]=!0)}this._numberProps=numberProps,this._resolveProps(def$1),this.shadowRoot&&this._applyStyles(styles),this._mount(def$1)},asyncDef=this._def.__asyncLoader;asyncDef?this._pendingResolve=asyncDef().then(def$1=>{def$1.configureApp=this._def.configureApp,resolve$1(this._def=def$1,!0)}):resolve$1(this._def)}_mount(def$1){this._app=this._createApp(def$1),this._inheritParentContext(),def$1.configureApp&&def$1.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let exposed=this._instance&&this._instance.exposed;if(exposed)for(let key$1 in exposed)hasOwn$4(this,key$1)||Object.defineProperty(this,key$1,{get:()=>unref(exposed[key$1])})}_resolveProps(def$1){let{props}=def$1,declaredPropKeys=isArray$5(props)?props:Object.keys(props||{});for(let key$1 of Object.keys(this))key$1[0]!==`_`&&declaredPropKeys.includes(key$1)&&this._setProp(key$1,this[key$1]);for(let key$1 of declaredPropKeys.map(camelize))Object.defineProperty(this,key$1,{get(){return this._getProp(key$1)},set(val){this._setProp(key$1,val,!0,!0)}})}_setAttr(key$1){if(key$1.startsWith(`data-v-`))return;let has=this.hasAttribute(key$1),value$1=has?this.getAttribute(key$1):REMOVAL,camelKey=camelize(key$1);has&&this._numberProps&&this._numberProps[camelKey]&&(value$1=toNumber(value$1)),this._setProp(camelKey,value$1,!1,!0)}_getProp(key$1){return this._props[key$1]}_setProp(key$1,val,shouldReflect=!0,shouldUpdate=!1){if(val!==this._props[key$1]&&(val===REMOVAL?delete this._props[key$1]:(this._props[key$1]=val,key$1===`key`&&this._app&&(this._app._ceVNode.key=val)),shouldUpdate&&this._instance&&this._update(),shouldReflect)){let ob=this._ob;ob&&ob.disconnect(),val===!0?this.setAttribute(hyphenate$2(key$1),``):typeof val==`string`||typeof val==`number`?this.setAttribute(hyphenate$2(key$1),val+``):val||this.removeAttribute(hyphenate$2(key$1)),ob&&ob.observe(this,{attributes:!0})}}_update(){let vnode=this._createVNode();this._app&&(vnode.appContext=this._app._context),render(vnode,this._root)}_createVNode(){let baseProps={};this.shadowRoot||(baseProps.onVnodeMounted=baseProps.onVnodeUpdated=this._renderSlots.bind(this));let vnode=createVNode(this._def,extend$1(baseProps,this._props));return this._instance||(vnode.ce=instance=>{this._instance=instance,instance.ce=this,instance.isCE=!0;let dispatch=(event,args)=>{this.dispatchEvent(new CustomEvent(event,isPlainObject$6(args[0])?extend$1({detail:args},args[0]):{detail:args}))};instance.emit=(event,...args)=>{dispatch(event,args),hyphenate$2(event)!==event&&dispatch(hyphenate$2(event),args)},this._setParent()}),vnode}_applyStyles(styles,owner){if(!styles)return;if(owner){if(owner===this._def||this._styleChildren.has(owner))return;this._styleChildren.add(owner)}let nonce=this._nonce;for(let i$1=styles.length-1;i$1>=0;i$1--){let s$1=document.createElement(`style`);nonce&&s$1.setAttribute(`nonce`,nonce),s$1.textContent=styles[i$1],this.shadowRoot.prepend(s$1)}}_parseSlots(){let slots=this._slots={},n$2;for(;n$2=this.firstChild;){let slotName=n$2.nodeType===1&&n$2.getAttribute(`slot`)||`default`;(slots[slotName]||(slots[slotName]=[])).push(n$2),this.removeChild(n$2)}}_renderSlots(){let outlets=(this._teleportTarget||this).querySelectorAll(`slot`),scopeId=this._instance.type.__scopeId;for(let i$1=0;i$1(delete t.props.mode,t),TransitionGroupImpl=decorate({name:`TransitionGroup`,props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(props,{slots}){let instance=getCurrentInstance(),state=useTransitionState(),prevChildren,children;return onUpdated(()=>{if(!prevChildren.length)return;let moveClass=props.moveClass||`${props.name||`v`}-move`;if(!hasCSSTransform(prevChildren[0].el,instance.vnode.el,moveClass)){prevChildren=[];return}prevChildren.forEach(callPendingCbs),prevChildren.forEach(recordPosition);let movedChildren=prevChildren.filter(applyTranslation);forceReflow(),movedChildren.forEach(c$4=>{let el=c$4.el,style=el.style;addTransitionClass(el,moveClass),style.transform=style.webkitTransform=style.transitionDuration=``;let cb$1=el[moveCbKey]=e$3=>{e$3&&e$3.target!==el||(!e$3||/transform$/.test(e$3.propertyName))&&(el.removeEventListener(`transitionend`,cb$1),el[moveCbKey]=null,removeTransitionClass(el,moveClass))};el.addEventListener(`transitionend`,cb$1)}),prevChildren=[]}),()=>{let rawProps=toRaw(props),cssTransitionProps=resolveTransitionProps(rawProps),tag=rawProps.tag||Fragment;if(prevChildren=[],children)for(let i$1=0;i$1{cls.split(/\s+/).forEach(c$4=>c$4&&clone$2.classList.remove(c$4))}),moveClass.split(/\s+/).forEach(c$4=>c$4&&clone$2.classList.add(c$4)),clone$2.style.display=`none`;let container=root$3.nodeType===1?root$3:root$3.parentNode;container.appendChild(clone$2);let{hasTransform}=getTransitionInfo(clone$2);return container.removeChild(clone$2),hasTransform}const getModelAssigner=vnode=>{let fn$5=vnode.props[`onUpdate:modelValue`]||!1;return isArray$5(fn$5)?value$1=>invokeArrayFns(fn$5,value$1):fn$5};function onCompositionStart(e$3){e$3.target.composing=!0}function onCompositionEnd(e$3){let target$1=e$3.target;target$1.composing&&(target$1.composing=!1,target$1.dispatchEvent(new Event(`input`)))}const assignKey=Symbol(`_assign`),vModelText={created(el,{modifiers:{lazy,trim,number:number$3}},vnode){el[assignKey]=getModelAssigner(vnode);let castToNumber=number$3||vnode.props&&vnode.props.type===`number`;addEventListener(el,lazy?`change`:`input`,e$3=>{if(e$3.target.composing)return;let domValue=el.value;trim&&(domValue=domValue.trim()),castToNumber&&(domValue=looseToNumber(domValue)),el[assignKey](domValue)}),trim&&addEventListener(el,`change`,()=>{el.value=el.value.trim()}),lazy||(addEventListener(el,`compositionstart`,onCompositionStart),addEventListener(el,`compositionend`,onCompositionEnd),addEventListener(el,`change`,onCompositionEnd))},mounted(el,{value:value$1}){el.value=value$1??``},beforeUpdate(el,{value:value$1,oldValue,modifiers:{lazy,trim,number:number$3}},vnode){if(el[assignKey]=getModelAssigner(vnode),el.composing)return;let elValue=(number$3||el.type===`number`)&&!/^0\d/.test(el.value)?looseToNumber(el.value):el.value,newValue=value$1??``;elValue!==newValue&&(document.activeElement===el&&el.type!==`range`&&(lazy&&value$1===oldValue||trim&&el.value.trim()===newValue)||(el.value=newValue))}},vModelCheckbox={deep:!0,created(el,_$1,vnode){el[assignKey]=getModelAssigner(vnode),addEventListener(el,`change`,()=>{let modelValue=el._modelValue,elementValue=getValue$1(el),checked=el.checked,assign$3=el[assignKey];if(isArray$5(modelValue)){let index$1=looseIndexOf(modelValue,elementValue),found=index$1!==-1;if(checked&&!found)assign$3(modelValue.concat(elementValue));else if(!checked&&found){let filtered=[...modelValue];filtered.splice(index$1,1),assign$3(filtered)}}else if(isSet(modelValue)){let cloned=new Set(modelValue);checked?cloned.add(elementValue):cloned.delete(elementValue),assign$3(cloned)}else assign$3(getCheckboxValue(el,checked))})},mounted:setChecked,beforeUpdate(el,binding,vnode){el[assignKey]=getModelAssigner(vnode),setChecked(el,binding,vnode)}};function setChecked(el,{value:value$1,oldValue},vnode){el._modelValue=value$1;let checked;if(isArray$5(value$1))checked=looseIndexOf(value$1,vnode.props.value)>-1;else if(isSet(value$1))checked=value$1.has(vnode.props.value);else{if(value$1===oldValue)return;checked=looseEqual(value$1,getCheckboxValue(el,!0))}el.checked!==checked&&(el.checked=checked)}const vModelRadio={created(el,{value:value$1},vnode){el.checked=looseEqual(value$1,vnode.props.value),el[assignKey]=getModelAssigner(vnode),addEventListener(el,`change`,()=>{el[assignKey](getValue$1(el))})},beforeUpdate(el,{value:value$1,oldValue},vnode){el[assignKey]=getModelAssigner(vnode),value$1!==oldValue&&(el.checked=looseEqual(value$1,vnode.props.value))}},vModelSelect={deep:!0,created(el,{value:value$1,modifiers:{number:number$3}},vnode){let isSetModel=isSet(value$1);addEventListener(el,`change`,()=>{let selectedVal=Array.prototype.filter.call(el.options,o$1=>o$1.selected).map(o$1=>number$3?looseToNumber(getValue$1(o$1)):getValue$1(o$1));el[assignKey](el.multiple?isSetModel?new Set(selectedVal):selectedVal:selectedVal[0]),el._assigning=!0,nextTick(()=>{el._assigning=!1})}),el[assignKey]=getModelAssigner(vnode)},mounted(el,{value:value$1}){setSelected(el,value$1)},beforeUpdate(el,_binding,vnode){el[assignKey]=getModelAssigner(vnode)},updated(el,{value:value$1}){el._assigning||setSelected(el,value$1)}};function setSelected(el,value$1){let isMultiple=el.multiple,isArrayValue=isArray$5(value$1);if(!(isMultiple&&!isArrayValue&&!isSet(value$1))){for(let i$1=0,l$1=el.options.length;i$1String(v$1)===String(optionValue)):option$1.selected=looseIndexOf(value$1,optionValue)>-1}else option$1.selected=value$1.has(optionValue);else if(looseEqual(getValue$1(option$1),value$1)){el.selectedIndex!==i$1&&(el.selectedIndex=i$1);return}}!isMultiple&&el.selectedIndex!==-1&&(el.selectedIndex=-1)}}function getValue$1(el){return`_value`in el?el._value:el.value}function getCheckboxValue(el,checked){let key$1=checked?`_trueValue`:`_falseValue`;return key$1 in el?el[key$1]:checked}const vModelDynamic={created(el,binding,vnode){callModelHook(el,binding,vnode,null,`created`)},mounted(el,binding,vnode){callModelHook(el,binding,vnode,null,`mounted`)},beforeUpdate(el,binding,vnode,prevVNode){callModelHook(el,binding,vnode,prevVNode,`beforeUpdate`)},updated(el,binding,vnode,prevVNode){callModelHook(el,binding,vnode,prevVNode,`updated`)}};function resolveDynamicModel(tagName,type){switch(tagName){case`SELECT`:return vModelSelect;case`TEXTAREA`:return vModelText;default:switch(type){case`checkbox`:return vModelCheckbox;case`radio`:return vModelRadio;default:return vModelText}}}function callModelHook(el,binding,vnode,prevVNode,hook){let modelToUse=resolveDynamicModel(el.tagName,vnode.props&&vnode.props.type),fn$5=modelToUse[hook];fn$5&&fn$5(el,binding,vnode,prevVNode)}function initVModelForSSR(){vModelText.getSSRProps=({value:value$1})=>({value:value$1}),vModelRadio.getSSRProps=({value:value$1},vnode)=>{if(vnode.props&&looseEqual(vnode.props.value,value$1))return{checked:!0}},vModelCheckbox.getSSRProps=({value:value$1},vnode)=>{if(isArray$5(value$1)){if(vnode.props&&looseIndexOf(value$1,vnode.props.value)>-1)return{checked:!0}}else if(isSet(value$1)){if(vnode.props&&value$1.has(vnode.props.value))return{checked:!0}}else if(value$1)return{checked:!0}},vModelDynamic.getSSRProps=(binding,vnode)=>{if(typeof vnode.type!=`string`)return;let modelToUse=resolveDynamicModel(vnode.type.toUpperCase(),vnode.props&&vnode.props.type);if(modelToUse.getSSRProps)return modelToUse.getSSRProps(binding,vnode)}}const systemModifiers=[`ctrl`,`shift`,`alt`,`meta`],modifierGuards={stop:e$3=>e$3.stopPropagation(),prevent:e$3=>e$3.preventDefault(),self:e$3=>e$3.target!==e$3.currentTarget,ctrl:e$3=>!e$3.ctrlKey,shift:e$3=>!e$3.shiftKey,alt:e$3=>!e$3.altKey,meta:e$3=>!e$3.metaKey,left:e$3=>`button`in e$3&&e$3.button!==0,middle:e$3=>`button`in e$3&&e$3.button!==1,right:e$3=>`button`in e$3&&e$3.button!==2,exact:(e$3,modifiers)=>systemModifiers.some(m$2=>e$3[`${m$2}Key`]&&!modifiers.includes(m$2))},withModifiers=(fn$5,modifiers)=>{let cache$1=fn$5._withMods||={},cacheKey=modifiers.join(`.`);return cache$1[cacheKey]||(cache$1[cacheKey]=(event,...args)=>{for(let i$1=0;i$1{let cache$1=fn$5._withKeys||={},cacheKey=modifiers.join(`.`);return cache$1[cacheKey]||(cache$1[cacheKey]=event=>{if(!(`key`in event))return;let eventKey=hyphenate$2(event.key);if(modifiers.some(k$4=>k$4===eventKey||keyNames[k$4]===eventKey))return fn$5(event)})},rendererOptions=extend$1({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||=createRenderer(rendererOptions)}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(...args)=>{ensureRenderer().render(...args)},hydrate=(...args)=>{ensureHydrationRenderer().hydrate(...args)},createApp=(...args)=>{let app=ensureRenderer().createApp(...args),{mount}=app;return app.mount=containerOrSelector=>{let container=normalizeContainer(containerOrSelector);if(!container)return;let component=app._component;!isFunction$1(component)&&!component.render&&!component.template&&(component.template=container.innerHTML),container.nodeType===1&&(container.textContent=``);let proxy=mount(container,!1,resolveRootNamespace(container));return container instanceof Element&&(container.removeAttribute(`v-cloak`),container.setAttribute(`data-v-app`,``)),proxy},app},createSSRApp=(...args)=>{let app=ensureHydrationRenderer().createApp(...args),{mount}=app;return app.mount=containerOrSelector=>{let container=normalizeContainer(containerOrSelector);if(container)return mount(container,!0,resolveRootNamespace(container))},app};function resolveRootNamespace(container){if(container instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&container instanceof MathMLElement)return`mathml`}function normalizeContainer(container){if(isString$2(container)){let res=document.querySelector(container);return res}return container}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())};var vue_runtime_esm_bundler_exports={};__export(vue_runtime_esm_bundler_exports,{BaseTransition:()=>BaseTransition,BaseTransitionPropsValidators:()=>BaseTransitionPropsValidators,Comment:()=>Comment,DeprecationTypes:()=>DeprecationTypes,EffectScope:()=>EffectScope,ErrorCodes:()=>ErrorCodes,ErrorTypeStrings:()=>ErrorTypeStrings,Fragment:()=>Fragment,KeepAlive:()=>KeepAlive,ReactiveEffect:()=>ReactiveEffect,Static:()=>Static,Suspense:()=>Suspense,Teleport:()=>Teleport,Text:()=>Text,TrackOpTypes:()=>TrackOpTypes,Transition:()=>Transition,TransitionGroup:()=>TransitionGroup,TriggerOpTypes:()=>TriggerOpTypes,VueElement:()=>VueElement,assertNumber:()=>assertNumber,callWithAsyncErrorHandling:()=>callWithAsyncErrorHandling,callWithErrorHandling:()=>callWithErrorHandling,camelize:()=>camelize,capitalize:()=>capitalize$1,cloneVNode:()=>cloneVNode,compatUtils:()=>compatUtils,compile:()=>compile$1,computed:()=>computed,createApp:()=>createApp,createBlock:()=>createBlock,createCommentVNode:()=>createCommentVNode,createElementBlock:()=>createElementBlock,createElementVNode:()=>createBaseVNode,createHydrationRenderer:()=>createHydrationRenderer,createPropsRestProxy:()=>createPropsRestProxy,createRenderer:()=>createRenderer,createSSRApp:()=>createSSRApp,createSlots:()=>createSlots,createStaticVNode:()=>createStaticVNode,createTextVNode:()=>createTextVNode,createVNode:()=>createVNode,customRef:()=>customRef,defineAsyncComponent:()=>defineAsyncComponent,defineComponent:()=>defineComponent,defineCustomElement:()=>defineCustomElement,defineEmits:()=>defineEmits,defineExpose:()=>defineExpose,defineModel:()=>defineModel,defineOptions:()=>defineOptions,defineProps:()=>defineProps,defineSSRCustomElement:()=>defineSSRCustomElement,defineSlots:()=>defineSlots,devtools:()=>devtools$2,effect:()=>effect,effectScope:()=>effectScope,getCurrentInstance:()=>getCurrentInstance,getCurrentScope:()=>getCurrentScope,getCurrentWatcher:()=>getCurrentWatcher,getTransitionRawChildren:()=>getTransitionRawChildren,guardReactiveProps:()=>guardReactiveProps,h:()=>h,handleError:()=>handleError,hasInjectionContext:()=>hasInjectionContext,hydrate:()=>hydrate,hydrateOnIdle:()=>hydrateOnIdle,hydrateOnInteraction:()=>hydrateOnInteraction,hydrateOnMediaQuery:()=>hydrateOnMediaQuery,hydrateOnVisible:()=>hydrateOnVisible,initCustomFormatter:()=>initCustomFormatter,initDirectivesForSSR:()=>initDirectivesForSSR,inject:()=>inject,isMemoSame:()=>isMemoSame,isProxy:()=>isProxy,isReactive:()=>isReactive,isReadonly:()=>isReadonly,isRef:()=>isRef,isRuntimeOnly:()=>isRuntimeOnly,isShallow:()=>isShallow,isVNode:()=>isVNode$1,markRaw:()=>markRaw,mergeDefaults:()=>mergeDefaults,mergeModels:()=>mergeModels,mergeProps:()=>mergeProps,nextTick:()=>nextTick,normalizeClass:()=>normalizeClass,normalizeProps:()=>normalizeProps,normalizeStyle:()=>normalizeStyle,onActivated:()=>onActivated,onBeforeMount:()=>onBeforeMount,onBeforeUnmount:()=>onBeforeUnmount,onBeforeUpdate:()=>onBeforeUpdate,onDeactivated:()=>onDeactivated,onErrorCaptured:()=>onErrorCaptured,onMounted:()=>onMounted,onRenderTracked:()=>onRenderTracked,onRenderTriggered:()=>onRenderTriggered,onScopeDispose:()=>onScopeDispose,onServerPrefetch:()=>onServerPrefetch,onUnmounted:()=>onUnmounted,onUpdated:()=>onUpdated,onWatcherCleanup:()=>onWatcherCleanup,openBlock:()=>openBlock,popScopeId:()=>popScopeId,provide:()=>provide,proxyRefs:()=>proxyRefs,pushScopeId:()=>pushScopeId,queuePostFlushCb:()=>queuePostFlushCb,reactive:()=>reactive,readonly:()=>readonly,ref:()=>ref,registerRuntimeCompiler:()=>registerRuntimeCompiler,render:()=>render,renderList:()=>renderList,renderSlot:()=>renderSlot,resolveComponent:()=>resolveComponent,resolveDirective:()=>resolveDirective,resolveDynamicComponent:()=>resolveDynamicComponent,resolveFilter:()=>resolveFilter,resolveTransitionHooks:()=>resolveTransitionHooks,setBlockTracking:()=>setBlockTracking,setDevtoolsHook:()=>setDevtoolsHook,setTransitionHooks:()=>setTransitionHooks,shallowReactive:()=>shallowReactive,shallowReadonly:()=>shallowReadonly,shallowRef:()=>shallowRef,ssrContextKey:()=>ssrContextKey,ssrUtils:()=>ssrUtils,stop:()=>stop,toDisplayString:()=>toDisplayString,toHandlerKey:()=>toHandlerKey,toHandlers:()=>toHandlers,toRaw:()=>toRaw,toRef:()=>toRef,toRefs:()=>toRefs,toValue:()=>toValue$1,transformVNodeArgs:()=>transformVNodeArgs,triggerRef:()=>triggerRef,unref:()=>unref,useAttrs:()=>useAttrs,useCssModule:()=>useCssModule,useCssVars:()=>useCssVars,useHost:()=>useHost,useId:()=>useId$1,useModel:()=>useModel,useSSRContext:()=>useSSRContext,useShadowRoot:()=>useShadowRoot,useSlots:()=>useSlots,useTemplateRef:()=>useTemplateRef,useTransitionState:()=>useTransitionState,vModelCheckbox:()=>vModelCheckbox,vModelDynamic:()=>vModelDynamic,vModelRadio:()=>vModelRadio,vModelSelect:()=>vModelSelect,vModelText:()=>vModelText,vShow:()=>vShow,version:()=>version,warn:()=>warn$1,watch:()=>watch,watchEffect:()=>watchEffect,watchPostEffect:()=>watchPostEffect,watchSyncEffect:()=>watchSyncEffect,withAsyncContext:()=>withAsyncContext,withCtx:()=>withCtx,withDefaults:()=>withDefaults,withDirectives:()=>withDirectives,withKeys:()=>withKeys,withMemo:()=>withMemo,withModifiers:()=>withModifiers,withScopeId:()=>withScopeId});const compile$1=()=>{},REVISION=`178`,MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},CullFaceNone=0,CullFaceBack=1,CullFaceFront=2,CullFaceFrontBack=3,BasicShadowMap=0,PCFShadowMap=1,PCFSoftShadowMap=2,VSMShadowMap=3,FrontSide=0,BackSide=1,DoubleSide=2,NoBlending=0,NormalBlending=1,AdditiveBlending=2,SubtractiveBlending=3,MultiplyBlending=4,CustomBlending=5,AddEquation=100,SubtractEquation=101,ReverseSubtractEquation=102,MinEquation=103,MaxEquation=104,ZeroFactor=200,OneFactor=201,SrcColorFactor=202,OneMinusSrcColorFactor=203,SrcAlphaFactor=204,OneMinusSrcAlphaFactor=205,DstAlphaFactor=206,OneMinusDstAlphaFactor=207,DstColorFactor=208,OneMinusDstColorFactor=209,SrcAlphaSaturateFactor=210,ConstantColorFactor=211,OneMinusConstantColorFactor=212,ConstantAlphaFactor=213,OneMinusConstantAlphaFactor=214,NeverDepth=0,AlwaysDepth=1,LessDepth=2,LessEqualDepth=3,EqualDepth=4,GreaterEqualDepth=5,GreaterDepth=6,NotEqualDepth=7,MultiplyOperation=0,MixOperation=1,AddOperation=2,NoToneMapping=0,LinearToneMapping=1,ReinhardToneMapping=2,CineonToneMapping=3,ACESFilmicToneMapping=4,CustomToneMapping=5,AgXToneMapping=6,NeutralToneMapping=7,AttachedBindMode=`attached`,DetachedBindMode=`detached`,UVMapping=300,CubeReflectionMapping=301,CubeRefractionMapping=302,EquirectangularReflectionMapping=303,EquirectangularRefractionMapping=304,CubeUVReflectionMapping=306,RepeatWrapping=1e3,ClampToEdgeWrapping=1001,MirroredRepeatWrapping=1002,NearestFilter=1003,NearestMipmapNearestFilter=1004,NearestMipMapNearestFilter=1004,NearestMipmapLinearFilter=1005,NearestMipMapLinearFilter=1005,LinearFilter=1006,LinearMipmapNearestFilter=1007,LinearMipMapNearestFilter=1007,LinearMipmapLinearFilter=1008,LinearMipMapLinearFilter=1008,UnsignedByteType=1009,ByteType=1010,ShortType=1011,UnsignedShortType=1012,IntType=1013,UnsignedIntType=1014,FloatType=1015,HalfFloatType=1016,UnsignedShort4444Type=1017,UnsignedShort5551Type=1018,UnsignedInt248Type=1020,UnsignedInt5999Type=35902,AlphaFormat=1021,RGBFormat=1022,RGBAFormat=1023,DepthFormat=1026,DepthStencilFormat=1027,RedFormat=1028,RedIntegerFormat=1029,RGFormat=1030,RGIntegerFormat=1031,RGBIntegerFormat=1032,RGBAIntegerFormat=1033,RGB_S3TC_DXT1_Format=33776,RGBA_S3TC_DXT1_Format=33777,RGBA_S3TC_DXT3_Format=33778,RGBA_S3TC_DXT5_Format=33779,RGB_PVRTC_4BPPV1_Format=35840,RGB_PVRTC_2BPPV1_Format=35841,RGBA_PVRTC_4BPPV1_Format=35842,RGBA_PVRTC_2BPPV1_Format=35843,RGB_ETC1_Format=36196,RGB_ETC2_Format=37492,RGBA_ETC2_EAC_Format=37496,RGBA_ASTC_4x4_Format=37808,RGBA_ASTC_5x4_Format=37809,RGBA_ASTC_5x5_Format=37810,RGBA_ASTC_6x5_Format=37811,RGBA_ASTC_6x6_Format=37812,RGBA_ASTC_8x5_Format=37813,RGBA_ASTC_8x6_Format=37814,RGBA_ASTC_8x8_Format=37815,RGBA_ASTC_10x5_Format=37816,RGBA_ASTC_10x6_Format=37817,RGBA_ASTC_10x8_Format=37818,RGBA_ASTC_10x10_Format=37819,RGBA_ASTC_12x10_Format=37820,RGBA_ASTC_12x12_Format=37821,RGBA_BPTC_Format=36492,RGB_BPTC_SIGNED_Format=36494,RGB_BPTC_UNSIGNED_Format=36495,RED_RGTC1_Format=36283,SIGNED_RED_RGTC1_Format=36284,RED_GREEN_RGTC2_Format=36285,SIGNED_RED_GREEN_RGTC2_Format=36286,LoopOnce=2200,LoopRepeat=2201,LoopPingPong=2202,InterpolateDiscrete=2300,InterpolateLinear=2301,InterpolateSmooth=2302,ZeroCurvatureEnding=2400,ZeroSlopeEnding=2401,WrapAroundEnding=2402,NormalAnimationBlendMode=2500,AdditiveAnimationBlendMode=2501,TrianglesDrawMode=0,TriangleStripDrawMode=1,TriangleFanDrawMode=2,BasicDepthPacking=3200,RGBADepthPacking=3201,RGBDepthPacking=3202,RGDepthPacking=3203,TangentSpaceNormalMap=0,ObjectSpaceNormalMap=1,NoColorSpace=``,SRGBColorSpace=`srgb`,LinearSRGBColorSpace=`srgb-linear`,LinearTransfer=`linear`,SRGBTransfer=`srgb`,ZeroStencilOp=0,KeepStencilOp=7680,ReplaceStencilOp=7681,IncrementStencilOp=7682,DecrementStencilOp=7683,IncrementWrapStencilOp=34055,DecrementWrapStencilOp=34056,InvertStencilOp=5386,NeverStencilFunc=512,LessStencilFunc=513,EqualStencilFunc=514,LessEqualStencilFunc=515,GreaterStencilFunc=516,NotEqualStencilFunc=517,GreaterEqualStencilFunc=518,AlwaysStencilFunc=519,NeverCompare=512,LessCompare=513,EqualCompare=514,LessEqualCompare=515,GreaterCompare=516,NotEqualCompare=517,GreaterEqualCompare=518,AlwaysCompare=519,StaticDrawUsage=35044,DynamicDrawUsage=35048,StreamDrawUsage=35040,StaticReadUsage=35045,DynamicReadUsage=35049,StreamReadUsage=35041,StaticCopyUsage=35046,DynamicCopyUsage=35050,StreamCopyUsage=35042,GLSL1=`100`,GLSL3=`300 es`,WebGLCoordinateSystem=2e3,WebGPUCoordinateSystem=2001,TimestampQuery={COMPUTE:`compute`,RENDER:`render`},InterpolationSamplingType={PERSPECTIVE:`perspective`,LINEAR:`linear`,FLAT:`flat`},InterpolationSamplingMode={NORMAL:`normal`,CENTROID:`centroid`,SAMPLE:`sample`,FIRST:`first`,EITHER:`either`};var EventDispatcher=class{addEventListener(type,listener){this._listeners===void 0&&(this._listeners={});let listeners=this._listeners;listeners[type]===void 0&&(listeners[type]=[]),listeners[type].indexOf(listener)===-1&&listeners[type].push(listener)}hasEventListener(type,listener){let listeners=this._listeners;return listeners===void 0?!1:listeners[type]!==void 0&&listeners[type].indexOf(listener)!==-1}removeEventListener(type,listener){let listeners=this._listeners;if(listeners===void 0)return;let listenerArray=listeners[type];if(listenerArray!==void 0){let index$1=listenerArray.indexOf(listener);index$1!==-1&&listenerArray.splice(index$1,1)}}dispatchEvent(event){let listeners=this._listeners;if(listeners===void 0)return;let listenerArray=listeners[event.type];if(listenerArray!==void 0){event.target=this;let array=listenerArray.slice(0);for(let i$1=0,l$1=array.length;i$1>8&255]+_lut[d0$2>>16&255]+_lut[d0$2>>24&255]+`-`+_lut[d1&255]+_lut[d1>>8&255]+`-`+_lut[d1>>16&15|64]+_lut[d1>>24&255]+`-`+_lut[d2&63|128]+_lut[d2>>8&255]+`-`+_lut[d2>>16&255]+_lut[d2>>24&255]+_lut[d3&255]+_lut[d3>>8&255]+_lut[d3>>16&255]+_lut[d3>>24&255];return uuid.toLowerCase()}function clamp$6(value$1,min$1,max$1){return Math.max(min$1,Math.min(max$1,value$1))}function euclideanModulo(n$2,m$2){return(n$2%m$2+m$2)%m$2}function mapLinear(x$3,a1,a2,b1,b2){return b1+(x$3-a1)*(b2-b1)/(a2-a1)}function inverseLerp(x$3,y$2,value$1){return x$3===y$2?0:(value$1-x$3)/(y$2-x$3)}function lerp$2(x$3,y$2,t){return(1-t)*x$3+t*y$2}function damp(x$3,y$2,lambda,dt$3){return lerp$2(x$3,y$2,1-Math.exp(-lambda*dt$3))}function pingpong(x$3,length=1){return length-Math.abs(euclideanModulo(x$3,length*2)-length)}function smoothstep(x$3,min$1,max$1){return x$3<=min$1?0:x$3>=max$1?1:(x$3=(x$3-min$1)/(max$1-min$1),x$3*x$3*(3-2*x$3))}function smootherstep(x$3,min$1,max$1){return x$3<=min$1?0:x$3>=max$1?1:(x$3=(x$3-min$1)/(max$1-min$1),x$3*x$3*x$3*(x$3*(x$3*6-15)+10))}function randInt(low,high){return low+Math.floor(Math.random()*(high-low+1))}function randFloat$1(low,high){return low+Math.random()*(high-low)}function randFloatSpread(range){return range*(.5-Math.random())}function seededRandom(s$1){s$1!==void 0&&(_seed=s$1);let t=_seed+=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 degToRad$1(degrees$1){return degrees$1*DEG2RAD$1}function radToDeg$1(radians){return radians*RAD2DEG$2}function isPowerOfTwo(value$1){return(value$1&value$1-1)==0&&value$1!==0}function ceilPowerOfTwo(value$1){return 2**Math.ceil(Math.log(value$1)/Math.LN2)}function floorPowerOfTwo(value$1){return 2**Math.floor(Math.log(value$1)/Math.LN2)}function setQuaternionFromProperEuler(q$1,a$2,b$3,c$4,order$3){let cos=Math.cos,sin=Math.sin,c2=cos(b$3/2),s2=sin(b$3/2),c13=cos((a$2+c$4)/2),s13=sin((a$2+c$4)/2),c1_3=cos((a$2-c$4)/2),s1_3=sin((a$2-c$4)/2),c3_1=cos((c$4-a$2)/2),s3_1=sin((c$4-a$2)/2);switch(order$3){case`XYX`:q$1.set(c2*s13,s2*c1_3,s2*s1_3,c2*c13);break;case`YZY`:q$1.set(s2*s1_3,c2*s13,s2*c1_3,c2*c13);break;case`ZXZ`:q$1.set(s2*c1_3,s2*s1_3,c2*s13,c2*c13);break;case`XZX`:q$1.set(c2*s13,s2*s3_1,s2*c3_1,c2*c13);break;case`YXY`:q$1.set(s2*c3_1,c2*s13,s2*s3_1,c2*c13);break;case`ZYZ`:q$1.set(s2*s3_1,s2*c3_1,c2*s13,c2*c13);break;default:console.warn(`THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+order$3)}}function denormalize(value$1,array){switch(array.constructor){case Float32Array:return value$1;case Uint32Array:return value$1/4294967295;case Uint16Array:return value$1/65535;case Uint8Array:return value$1/255;case Int32Array:return Math.max(value$1/2147483647,-1);case Int16Array:return Math.max(value$1/32767,-1);case Int8Array:return Math.max(value$1/127,-1);default:throw Error(`Invalid component type.`)}}function normalize$2(value$1,array){switch(array.constructor){case Float32Array:return value$1;case Uint32Array:return Math.round(value$1*4294967295);case Uint16Array:return Math.round(value$1*65535);case Uint8Array:return Math.round(value$1*255);case Int32Array:return Math.round(value$1*2147483647);case Int16Array:return Math.round(value$1*32767);case Int8Array:return Math.round(value$1*127);default:throw Error(`Invalid component type.`)}}const MathUtils={DEG2RAD:DEG2RAD$1,RAD2DEG:RAD2DEG$2,generateUUID,clamp:clamp$6,euclideanModulo,mapLinear,inverseLerp,lerp:lerp$2,damp,pingpong,smoothstep,smootherstep,randInt,randFloat:randFloat$1,randFloatSpread,seededRandom,degToRad:degToRad$1,radToDeg:radToDeg$1,isPowerOfTwo,ceilPowerOfTwo,floorPowerOfTwo,setQuaternionFromProperEuler,normalize:normalize$2,denormalize};var Vector2=class Vector2{constructor(x$3=0,y$2=0){Vector2.prototype.isVector2=!0,this.x=x$3,this.y=y$2}get width(){return this.x}set width(value$1){this.x=value$1}get height(){return this.y}set height(value$1){this.y=value$1}set(x$3,y$2){return this.x=x$3,this.y=y$2,this}setScalar(scalar){return this.x=scalar,this.y=scalar,this}setX(x$3){return this.x=x$3,this}setY(y$2){return this.y=y$2,this}setComponent(index$1,value$1){switch(index$1){case 0:this.x=value$1;break;case 1:this.y=value$1;break;default:throw Error(`index is out of range: `+index$1)}return this}getComponent(index$1){switch(index$1){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+index$1)}}clone(){return new this.constructor(this.x,this.y)}copy(v$1){return this.x=v$1.x,this.y=v$1.y,this}add(v$1){return this.x+=v$1.x,this.y+=v$1.y,this}addScalar(s$1){return this.x+=s$1,this.y+=s$1,this}addVectors(a$2,b$3){return this.x=a$2.x+b$3.x,this.y=a$2.y+b$3.y,this}addScaledVector(v$1,s$1){return this.x+=v$1.x*s$1,this.y+=v$1.y*s$1,this}sub(v$1){return this.x-=v$1.x,this.y-=v$1.y,this}subScalar(s$1){return this.x-=s$1,this.y-=s$1,this}subVectors(a$2,b$3){return this.x=a$2.x-b$3.x,this.y=a$2.y-b$3.y,this}multiply(v$1){return this.x*=v$1.x,this.y*=v$1.y,this}multiplyScalar(scalar){return this.x*=scalar,this.y*=scalar,this}divide(v$1){return this.x/=v$1.x,this.y/=v$1.y,this}divideScalar(scalar){return this.multiplyScalar(1/scalar)}applyMatrix3(m$2){let x$3=this.x,y$2=this.y,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[3]*y$2+e$3[6],this.y=e$3[1]*x$3+e$3[4]*y$2+e$3[7],this}min(v$1){return this.x=Math.min(this.x,v$1.x),this.y=Math.min(this.y,v$1.y),this}max(v$1){return this.x=Math.max(this.x,v$1.x),this.y=Math.max(this.y,v$1.y),this}clamp(min$1,max$1){return this.x=clamp$6(this.x,min$1.x,max$1.x),this.y=clamp$6(this.y,min$1.y,max$1.y),this}clampScalar(minVal,maxVal){return this.x=clamp$6(this.x,minVal,maxVal),this.y=clamp$6(this.y,minVal,maxVal),this}clampLength(min$1,max$1){let length=this.length();return this.divideScalar(length||1).multiplyScalar(clamp$6(length,min$1,max$1))}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(v$1){return this.x*v$1.x+this.y*v$1.y}cross(v$1){return this.x*v$1.y-this.y*v$1.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 angle=Math.atan2(-this.y,-this.x)+Math.PI;return angle}angleTo(v$1){let denominator=Math.sqrt(this.lengthSq()*v$1.lengthSq());if(denominator===0)return Math.PI/2;let theta=this.dot(v$1)/denominator;return Math.acos(clamp$6(theta,-1,1))}distanceTo(v$1){return Math.sqrt(this.distanceToSquared(v$1))}distanceToSquared(v$1){let dx=this.x-v$1.x,dy=this.y-v$1.y;return dx*dx+dy*dy}manhattanDistanceTo(v$1){return Math.abs(this.x-v$1.x)+Math.abs(this.y-v$1.y)}setLength(length){return this.normalize().multiplyScalar(length)}lerp(v$1,alpha$1){return this.x+=(v$1.x-this.x)*alpha$1,this.y+=(v$1.y-this.y)*alpha$1,this}lerpVectors(v1,v2,alpha$1){return this.x=v1.x+(v2.x-v1.x)*alpha$1,this.y=v1.y+(v2.y-v1.y)*alpha$1,this}equals(v$1){return v$1.x===this.x&&v$1.y===this.y}fromArray(array,offset$1=0){return this.x=array[offset$1],this.y=array[offset$1+1],this}toArray(array=[],offset$1=0){return array[offset$1]=this.x,array[offset$1+1]=this.y,array}fromBufferAttribute(attribute,index$1){return this.x=attribute.getX(index$1),this.y=attribute.getY(index$1),this}rotateAround(center,angle){let c$4=Math.cos(angle),s$1=Math.sin(angle),x$3=this.x-center.x,y$2=this.y-center.y;return this.x=x$3*c$4-y$2*s$1+center.x,this.y=x$3*s$1+y$2*c$4+center.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},Quaternion=class{constructor(x$3=0,y$2=0,z$2=0,w$1=1){this.isQuaternion=!0,this._x=x$3,this._y=y$2,this._z=z$2,this._w=w$1}static slerpFlat(dst,dstOffset,src0,srcOffset0,src1,srcOffset1,t){let x0=src0[srcOffset0+0],y0=src0[srcOffset0+1],z0=src0[srcOffset0+2],w0=src0[srcOffset0+3],x1=src1[srcOffset1+0],y1=src1[srcOffset1+1],z1=src1[srcOffset1+2],w1=src1[srcOffset1+3];if(t===0){dst[dstOffset+0]=x0,dst[dstOffset+1]=y0,dst[dstOffset+2]=z0,dst[dstOffset+3]=w0;return}if(t===1){dst[dstOffset+0]=x1,dst[dstOffset+1]=y1,dst[dstOffset+2]=z1,dst[dstOffset+3]=w1;return}if(w0!==w1||x0!==x1||y0!==y1||z0!==z1){let s$1=1-t,cos=x0*x1+y0*y1+z0*z1+w0*w1,dir=cos>=0?1:-1,sqrSin=1-cos*cos;if(sqrSin>2**-52){let sin=Math.sqrt(sqrSin),len=Math.atan2(sin,cos*dir);s$1=Math.sin(s$1*len)/sin,t=Math.sin(t*len)/sin}let tDir=t*dir;if(x0=x0*s$1+x1*tDir,y0=y0*s$1+y1*tDir,z0=z0*s$1+z1*tDir,w0=w0*s$1+w1*tDir,s$1===1-t){let f$3=1/Math.sqrt(x0*x0+y0*y0+z0*z0+w0*w0);x0*=f$3,y0*=f$3,z0*=f$3,w0*=f$3}}dst[dstOffset]=x0,dst[dstOffset+1]=y0,dst[dstOffset+2]=z0,dst[dstOffset+3]=w0}static multiplyQuaternionsFlat(dst,dstOffset,src0,srcOffset0,src1,srcOffset1){let x0=src0[srcOffset0],y0=src0[srcOffset0+1],z0=src0[srcOffset0+2],w0=src0[srcOffset0+3],x1=src1[srcOffset1],y1=src1[srcOffset1+1],z1=src1[srcOffset1+2],w1=src1[srcOffset1+3];return dst[dstOffset]=x0*w1+w0*x1+y0*z1-z0*y1,dst[dstOffset+1]=y0*w1+w0*y1+z0*x1-x0*z1,dst[dstOffset+2]=z0*w1+w0*z1+x0*y1-y0*x1,dst[dstOffset+3]=w0*w1-x0*x1-y0*y1-z0*z1,dst}get x(){return this._x}set x(value$1){this._x=value$1,this._onChangeCallback()}get y(){return this._y}set y(value$1){this._y=value$1,this._onChangeCallback()}get z(){return this._z}set z(value$1){this._z=value$1,this._onChangeCallback()}get w(){return this._w}set w(value$1){this._w=value$1,this._onChangeCallback()}set(x$3,y$2,z$2,w$1){return this._x=x$3,this._y=y$2,this._z=z$2,this._w=w$1,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(quaternion){return this._x=quaternion.x,this._y=quaternion.y,this._z=quaternion.z,this._w=quaternion.w,this._onChangeCallback(),this}setFromEuler(euler,update=!0){let x$3=euler._x,y$2=euler._y,z$2=euler._z,order$3=euler._order,cos=Math.cos,sin=Math.sin,c1=cos(x$3/2),c2=cos(y$2/2),c3=cos(z$2/2),s1=sin(x$3/2),s2=sin(y$2/2),s3=sin(z$2/2);switch(order$3){case`XYZ`:this._x=s1*c2*c3+c1*s2*s3,this._y=c1*s2*c3-s1*c2*s3,this._z=c1*c2*s3+s1*s2*c3,this._w=c1*c2*c3-s1*s2*s3;break;case`YXZ`:this._x=s1*c2*c3+c1*s2*s3,this._y=c1*s2*c3-s1*c2*s3,this._z=c1*c2*s3-s1*s2*c3,this._w=c1*c2*c3+s1*s2*s3;break;case`ZXY`:this._x=s1*c2*c3-c1*s2*s3,this._y=c1*s2*c3+s1*c2*s3,this._z=c1*c2*s3+s1*s2*c3,this._w=c1*c2*c3-s1*s2*s3;break;case`ZYX`:this._x=s1*c2*c3-c1*s2*s3,this._y=c1*s2*c3+s1*c2*s3,this._z=c1*c2*s3-s1*s2*c3,this._w=c1*c2*c3+s1*s2*s3;break;case`YZX`:this._x=s1*c2*c3+c1*s2*s3,this._y=c1*s2*c3+s1*c2*s3,this._z=c1*c2*s3-s1*s2*c3,this._w=c1*c2*c3-s1*s2*s3;break;case`XZY`:this._x=s1*c2*c3-c1*s2*s3,this._y=c1*s2*c3-s1*c2*s3,this._z=c1*c2*s3+s1*s2*c3,this._w=c1*c2*c3+s1*s2*s3;break;default:console.warn(`THREE.Quaternion: .setFromEuler() encountered an unknown order: `+order$3)}return update===!0&&this._onChangeCallback(),this}setFromAxisAngle(axis,angle){let halfAngle=angle/2,s$1=Math.sin(halfAngle);return this._x=axis.x*s$1,this._y=axis.y*s$1,this._z=axis.z*s$1,this._w=Math.cos(halfAngle),this._onChangeCallback(),this}setFromRotationMatrix(m$2){let te$2=m$2.elements,m11=te$2[0],m12=te$2[4],m13=te$2[8],m21=te$2[1],m22=te$2[5],m23=te$2[9],m31=te$2[2],m32=te$2[6],m33=te$2[10],trace=m11+m22+m33;if(trace>0){let s$1=.5/Math.sqrt(trace+1);this._w=.25/s$1,this._x=(m32-m23)*s$1,this._y=(m13-m31)*s$1,this._z=(m21-m12)*s$1}else if(m11>m22&&m11>m33){let s$1=2*Math.sqrt(1+m11-m22-m33);this._w=(m32-m23)/s$1,this._x=.25*s$1,this._y=(m12+m21)/s$1,this._z=(m13+m31)/s$1}else if(m22>m33){let s$1=2*Math.sqrt(1+m22-m11-m33);this._w=(m13-m31)/s$1,this._x=(m12+m21)/s$1,this._y=.25*s$1,this._z=(m23+m32)/s$1}else{let s$1=2*Math.sqrt(1+m33-m11-m22);this._w=(m21-m12)/s$1,this._x=(m13+m31)/s$1,this._y=(m23+m32)/s$1,this._z=.25*s$1}return this._onChangeCallback(),this}setFromUnitVectors(vFrom,vTo){let r$2=vFrom.dot(vTo)+1;return r$2<1e-8?(r$2=0,Math.abs(vFrom.x)>Math.abs(vFrom.z)?(this._x=-vFrom.y,this._y=vFrom.x,this._z=0,this._w=r$2):(this._x=0,this._y=-vFrom.z,this._z=vFrom.y,this._w=r$2)):(this._x=vFrom.y*vTo.z-vFrom.z*vTo.y,this._y=vFrom.z*vTo.x-vFrom.x*vTo.z,this._z=vFrom.x*vTo.y-vFrom.y*vTo.x,this._w=r$2),this.normalize()}angleTo(q$1){return 2*Math.acos(Math.abs(clamp$6(this.dot(q$1),-1,1)))}rotateTowards(q$1,step){let angle=this.angleTo(q$1);if(angle===0)return this;let t=Math.min(1,step/angle);return this.slerp(q$1,t),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(v$1){return this._x*v$1._x+this._y*v$1._y+this._z*v$1._z+this._w*v$1._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 l$1=this.length();return l$1===0?(this._x=0,this._y=0,this._z=0,this._w=1):(l$1=1/l$1,this._x*=l$1,this._y*=l$1,this._z*=l$1,this._w*=l$1),this._onChangeCallback(),this}multiply(q$1){return this.multiplyQuaternions(this,q$1)}premultiply(q$1){return this.multiplyQuaternions(q$1,this)}multiplyQuaternions(a$2,b$3){let qax=a$2._x,qay=a$2._y,qaz=a$2._z,qaw=a$2._w,qbx=b$3._x,qby=b$3._y,qbz=b$3._z,qbw=b$3._w;return this._x=qax*qbw+qaw*qbx+qay*qbz-qaz*qby,this._y=qay*qbw+qaw*qby+qaz*qbx-qax*qbz,this._z=qaz*qbw+qaw*qbz+qax*qby-qay*qbx,this._w=qaw*qbw-qax*qbx-qay*qby-qaz*qbz,this._onChangeCallback(),this}slerp(qb,t){if(t===0)return this;if(t===1)return this.copy(qb);let x$3=this._x,y$2=this._y,z$2=this._z,w$1=this._w,cosHalfTheta=w$1*qb._w+x$3*qb._x+y$2*qb._y+z$2*qb._z;if(cosHalfTheta<0?(this._w=-qb._w,this._x=-qb._x,this._y=-qb._y,this._z=-qb._z,cosHalfTheta=-cosHalfTheta):this.copy(qb),cosHalfTheta>=1)return this._w=w$1,this._x=x$3,this._y=y$2,this._z=z$2,this;let sqrSinHalfTheta=1-cosHalfTheta*cosHalfTheta;if(sqrSinHalfTheta<=2**-52){let s$1=1-t;return this._w=s$1*w$1+t*this._w,this._x=s$1*x$3+t*this._x,this._y=s$1*y$2+t*this._y,this._z=s$1*z$2+t*this._z,this.normalize(),this}let sinHalfTheta=Math.sqrt(sqrSinHalfTheta),halfTheta=Math.atan2(sinHalfTheta,cosHalfTheta),ratioA=Math.sin((1-t)*halfTheta)/sinHalfTheta,ratioB=Math.sin(t*halfTheta)/sinHalfTheta;return this._w=w$1*ratioA+this._w*ratioB,this._x=x$3*ratioA+this._x*ratioB,this._y=y$2*ratioA+this._y*ratioB,this._z=z$2*ratioA+this._z*ratioB,this._onChangeCallback(),this}slerpQuaternions(qa,qb,t){return this.copy(qa).slerp(qb,t)}random(){let theta1=2*Math.PI*Math.random(),theta2=2*Math.PI*Math.random(),x0=Math.random(),r1=Math.sqrt(1-x0),r2=Math.sqrt(x0);return this.set(r1*Math.sin(theta1),r1*Math.cos(theta1),r2*Math.sin(theta2),r2*Math.cos(theta2))}equals(quaternion){return quaternion._x===this._x&&quaternion._y===this._y&&quaternion._z===this._z&&quaternion._w===this._w}fromArray(array,offset$1=0){return this._x=array[offset$1],this._y=array[offset$1+1],this._z=array[offset$1+2],this._w=array[offset$1+3],this._onChangeCallback(),this}toArray(array=[],offset$1=0){return array[offset$1]=this._x,array[offset$1+1]=this._y,array[offset$1+2]=this._z,array[offset$1+3]=this._w,array}fromBufferAttribute(attribute,index$1){return this._x=attribute.getX(index$1),this._y=attribute.getY(index$1),this._z=attribute.getZ(index$1),this._w=attribute.getW(index$1),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(callback){return this._onChangeCallback=callback,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},Vector3=class Vector3{constructor(x$3=0,y$2=0,z$2=0){Vector3.prototype.isVector3=!0,this.x=x$3,this.y=y$2,this.z=z$2}set(x$3,y$2,z$2){return z$2===void 0&&(z$2=this.z),this.x=x$3,this.y=y$2,this.z=z$2,this}setScalar(scalar){return this.x=scalar,this.y=scalar,this.z=scalar,this}setX(x$3){return this.x=x$3,this}setY(y$2){return this.y=y$2,this}setZ(z$2){return this.z=z$2,this}setComponent(index$1,value$1){switch(index$1){case 0:this.x=value$1;break;case 1:this.y=value$1;break;case 2:this.z=value$1;break;default:throw Error(`index is out of range: `+index$1)}return this}getComponent(index$1){switch(index$1){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+index$1)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(v$1){return this.x=v$1.x,this.y=v$1.y,this.z=v$1.z,this}add(v$1){return this.x+=v$1.x,this.y+=v$1.y,this.z+=v$1.z,this}addScalar(s$1){return this.x+=s$1,this.y+=s$1,this.z+=s$1,this}addVectors(a$2,b$3){return this.x=a$2.x+b$3.x,this.y=a$2.y+b$3.y,this.z=a$2.z+b$3.z,this}addScaledVector(v$1,s$1){return this.x+=v$1.x*s$1,this.y+=v$1.y*s$1,this.z+=v$1.z*s$1,this}sub(v$1){return this.x-=v$1.x,this.y-=v$1.y,this.z-=v$1.z,this}subScalar(s$1){return this.x-=s$1,this.y-=s$1,this.z-=s$1,this}subVectors(a$2,b$3){return this.x=a$2.x-b$3.x,this.y=a$2.y-b$3.y,this.z=a$2.z-b$3.z,this}multiply(v$1){return this.x*=v$1.x,this.y*=v$1.y,this.z*=v$1.z,this}multiplyScalar(scalar){return this.x*=scalar,this.y*=scalar,this.z*=scalar,this}multiplyVectors(a$2,b$3){return this.x=a$2.x*b$3.x,this.y=a$2.y*b$3.y,this.z=a$2.z*b$3.z,this}applyEuler(euler){return this.applyQuaternion(_quaternion$4.setFromEuler(euler))}applyAxisAngle(axis,angle){return this.applyQuaternion(_quaternion$4.setFromAxisAngle(axis,angle))}applyMatrix3(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[3]*y$2+e$3[6]*z$2,this.y=e$3[1]*x$3+e$3[4]*y$2+e$3[7]*z$2,this.z=e$3[2]*x$3+e$3[5]*y$2+e$3[8]*z$2,this}applyNormalMatrix(m$2){return this.applyMatrix3(m$2).normalize()}applyMatrix4(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,e$3=m$2.elements,w$1=1/(e$3[3]*x$3+e$3[7]*y$2+e$3[11]*z$2+e$3[15]);return this.x=(e$3[0]*x$3+e$3[4]*y$2+e$3[8]*z$2+e$3[12])*w$1,this.y=(e$3[1]*x$3+e$3[5]*y$2+e$3[9]*z$2+e$3[13])*w$1,this.z=(e$3[2]*x$3+e$3[6]*y$2+e$3[10]*z$2+e$3[14])*w$1,this}applyQuaternion(q$1){let vx=this.x,vy=this.y,vz=this.z,qx=q$1.x,qy=q$1.y,qz=q$1.z,qw=q$1.w,tx=2*(qy*vz-qz*vy),ty=2*(qz*vx-qx*vz),tz=2*(qx*vy-qy*vx);return this.x=vx+qw*tx+qy*tz-qz*ty,this.y=vy+qw*ty+qz*tx-qx*tz,this.z=vz+qw*tz+qx*ty-qy*tx,this}project(camera){return this.applyMatrix4(camera.matrixWorldInverse).applyMatrix4(camera.projectionMatrix)}unproject(camera){return this.applyMatrix4(camera.projectionMatrixInverse).applyMatrix4(camera.matrixWorld)}transformDirection(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[4]*y$2+e$3[8]*z$2,this.y=e$3[1]*x$3+e$3[5]*y$2+e$3[9]*z$2,this.z=e$3[2]*x$3+e$3[6]*y$2+e$3[10]*z$2,this.normalize()}divide(v$1){return this.x/=v$1.x,this.y/=v$1.y,this.z/=v$1.z,this}divideScalar(scalar){return this.multiplyScalar(1/scalar)}min(v$1){return this.x=Math.min(this.x,v$1.x),this.y=Math.min(this.y,v$1.y),this.z=Math.min(this.z,v$1.z),this}max(v$1){return this.x=Math.max(this.x,v$1.x),this.y=Math.max(this.y,v$1.y),this.z=Math.max(this.z,v$1.z),this}clamp(min$1,max$1){return this.x=clamp$6(this.x,min$1.x,max$1.x),this.y=clamp$6(this.y,min$1.y,max$1.y),this.z=clamp$6(this.z,min$1.z,max$1.z),this}clampScalar(minVal,maxVal){return this.x=clamp$6(this.x,minVal,maxVal),this.y=clamp$6(this.y,minVal,maxVal),this.z=clamp$6(this.z,minVal,maxVal),this}clampLength(min$1,max$1){let length=this.length();return this.divideScalar(length||1).multiplyScalar(clamp$6(length,min$1,max$1))}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(v$1){return this.x*v$1.x+this.y*v$1.y+this.z*v$1.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(length){return this.normalize().multiplyScalar(length)}lerp(v$1,alpha$1){return this.x+=(v$1.x-this.x)*alpha$1,this.y+=(v$1.y-this.y)*alpha$1,this.z+=(v$1.z-this.z)*alpha$1,this}lerpVectors(v1,v2,alpha$1){return this.x=v1.x+(v2.x-v1.x)*alpha$1,this.y=v1.y+(v2.y-v1.y)*alpha$1,this.z=v1.z+(v2.z-v1.z)*alpha$1,this}cross(v$1){return this.crossVectors(this,v$1)}crossVectors(a$2,b$3){let ax=a$2.x,ay=a$2.y,az=a$2.z,bx=b$3.x,by=b$3.y,bz=b$3.z;return this.x=ay*bz-az*by,this.y=az*bx-ax*bz,this.z=ax*by-ay*bx,this}projectOnVector(v$1){let denominator=v$1.lengthSq();if(denominator===0)return this.set(0,0,0);let scalar=v$1.dot(this)/denominator;return this.copy(v$1).multiplyScalar(scalar)}projectOnPlane(planeNormal){return _vector$c.copy(this).projectOnVector(planeNormal),this.sub(_vector$c)}reflect(normal){return this.sub(_vector$c.copy(normal).multiplyScalar(2*this.dot(normal)))}angleTo(v$1){let denominator=Math.sqrt(this.lengthSq()*v$1.lengthSq());if(denominator===0)return Math.PI/2;let theta=this.dot(v$1)/denominator;return Math.acos(clamp$6(theta,-1,1))}distanceTo(v$1){return Math.sqrt(this.distanceToSquared(v$1))}distanceToSquared(v$1){let dx=this.x-v$1.x,dy=this.y-v$1.y,dz=this.z-v$1.z;return dx*dx+dy*dy+dz*dz}manhattanDistanceTo(v$1){return Math.abs(this.x-v$1.x)+Math.abs(this.y-v$1.y)+Math.abs(this.z-v$1.z)}setFromSpherical(s$1){return this.setFromSphericalCoords(s$1.radius,s$1.phi,s$1.theta)}setFromSphericalCoords(radius,phi,theta){let sinPhiRadius=Math.sin(phi)*radius;return this.x=sinPhiRadius*Math.sin(theta),this.y=Math.cos(phi)*radius,this.z=sinPhiRadius*Math.cos(theta),this}setFromCylindrical(c$4){return this.setFromCylindricalCoords(c$4.radius,c$4.theta,c$4.y)}setFromCylindricalCoords(radius,theta,y$2){return this.x=radius*Math.sin(theta),this.y=y$2,this.z=radius*Math.cos(theta),this}setFromMatrixPosition(m$2){let e$3=m$2.elements;return this.x=e$3[12],this.y=e$3[13],this.z=e$3[14],this}setFromMatrixScale(m$2){let sx=this.setFromMatrixColumn(m$2,0).length(),sy=this.setFromMatrixColumn(m$2,1).length(),sz=this.setFromMatrixColumn(m$2,2).length();return this.x=sx,this.y=sy,this.z=sz,this}setFromMatrixColumn(m$2,index$1){return this.fromArray(m$2.elements,index$1*4)}setFromMatrix3Column(m$2,index$1){return this.fromArray(m$2.elements,index$1*3)}setFromEuler(e$3){return this.x=e$3._x,this.y=e$3._y,this.z=e$3._z,this}setFromColor(c$4){return this.x=c$4.r,this.y=c$4.g,this.z=c$4.b,this}equals(v$1){return v$1.x===this.x&&v$1.y===this.y&&v$1.z===this.z}fromArray(array,offset$1=0){return this.x=array[offset$1],this.y=array[offset$1+1],this.z=array[offset$1+2],this}toArray(array=[],offset$1=0){return array[offset$1]=this.x,array[offset$1+1]=this.y,array[offset$1+2]=this.z,array}fromBufferAttribute(attribute,index$1){return this.x=attribute.getX(index$1),this.y=attribute.getY(index$1),this.z=attribute.getZ(index$1),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let theta=Math.random()*Math.PI*2,u$1=Math.random()*2-1,c$4=Math.sqrt(1-u$1*u$1);return this.x=c$4*Math.cos(theta),this.y=u$1,this.z=c$4*Math.sin(theta),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};const _vector$c=new Vector3,_quaternion$4=new Quaternion;var Matrix3=class Matrix3{constructor(n11,n12,n13,n21,n22,n23,n31,n32,n33){Matrix3.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],n11!==void 0&&this.set(n11,n12,n13,n21,n22,n23,n31,n32,n33)}set(n11,n12,n13,n21,n22,n23,n31,n32,n33){let te$2=this.elements;return te$2[0]=n11,te$2[1]=n21,te$2[2]=n31,te$2[3]=n12,te$2[4]=n22,te$2[5]=n32,te$2[6]=n13,te$2[7]=n23,te$2[8]=n33,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(m$2){let te$2=this.elements,me$1=m$2.elements;return te$2[0]=me$1[0],te$2[1]=me$1[1],te$2[2]=me$1[2],te$2[3]=me$1[3],te$2[4]=me$1[4],te$2[5]=me$1[5],te$2[6]=me$1[6],te$2[7]=me$1[7],te$2[8]=me$1[8],this}extractBasis(xAxis,yAxis,zAxis){return xAxis.setFromMatrix3Column(this,0),yAxis.setFromMatrix3Column(this,1),zAxis.setFromMatrix3Column(this,2),this}setFromMatrix4(m$2){let me$1=m$2.elements;return this.set(me$1[0],me$1[4],me$1[8],me$1[1],me$1[5],me$1[9],me$1[2],me$1[6],me$1[10]),this}multiply(m$2){return this.multiplyMatrices(this,m$2)}premultiply(m$2){return this.multiplyMatrices(m$2,this)}multiplyMatrices(a$2,b$3){let ae$1=a$2.elements,be$2=b$3.elements,te$2=this.elements,a11=ae$1[0],a12=ae$1[3],a13=ae$1[6],a21=ae$1[1],a22=ae$1[4],a23=ae$1[7],a31=ae$1[2],a32=ae$1[5],a33=ae$1[8],b11=be$2[0],b12=be$2[3],b13=be$2[6],b21=be$2[1],b22=be$2[4],b23=be$2[7],b31=be$2[2],b32=be$2[5],b33=be$2[8];return te$2[0]=a11*b11+a12*b21+a13*b31,te$2[3]=a11*b12+a12*b22+a13*b32,te$2[6]=a11*b13+a12*b23+a13*b33,te$2[1]=a21*b11+a22*b21+a23*b31,te$2[4]=a21*b12+a22*b22+a23*b32,te$2[7]=a21*b13+a22*b23+a23*b33,te$2[2]=a31*b11+a32*b21+a33*b31,te$2[5]=a31*b12+a32*b22+a33*b32,te$2[8]=a31*b13+a32*b23+a33*b33,this}multiplyScalar(s$1){let te$2=this.elements;return te$2[0]*=s$1,te$2[3]*=s$1,te$2[6]*=s$1,te$2[1]*=s$1,te$2[4]*=s$1,te$2[7]*=s$1,te$2[2]*=s$1,te$2[5]*=s$1,te$2[8]*=s$1,this}determinant(){let te$2=this.elements,a$2=te$2[0],b$3=te$2[1],c$4=te$2[2],d$2=te$2[3],e$3=te$2[4],f$3=te$2[5],g$2=te$2[6],h$3=te$2[7],i$1=te$2[8];return a$2*e$3*i$1-a$2*f$3*h$3-b$3*d$2*i$1+b$3*f$3*g$2+c$4*d$2*h$3-c$4*e$3*g$2}invert(){let te$2=this.elements,n11=te$2[0],n21=te$2[1],n31=te$2[2],n12=te$2[3],n22=te$2[4],n32=te$2[5],n13=te$2[6],n23=te$2[7],n33=te$2[8],t11=n33*n22-n32*n23,t12=n32*n13-n33*n12,t13=n23*n12-n22*n13,det=n11*t11+n21*t12+n31*t13;if(det===0)return this.set(0,0,0,0,0,0,0,0,0);let detInv=1/det;return te$2[0]=t11*detInv,te$2[1]=(n31*n23-n33*n21)*detInv,te$2[2]=(n32*n21-n31*n22)*detInv,te$2[3]=t12*detInv,te$2[4]=(n33*n11-n31*n13)*detInv,te$2[5]=(n31*n12-n32*n11)*detInv,te$2[6]=t13*detInv,te$2[7]=(n21*n13-n23*n11)*detInv,te$2[8]=(n22*n11-n21*n12)*detInv,this}transpose(){let tmp$1,m$2=this.elements;return tmp$1=m$2[1],m$2[1]=m$2[3],m$2[3]=tmp$1,tmp$1=m$2[2],m$2[2]=m$2[6],m$2[6]=tmp$1,tmp$1=m$2[5],m$2[5]=m$2[7],m$2[7]=tmp$1,this}getNormalMatrix(matrix4){return this.setFromMatrix4(matrix4).invert().transpose()}transposeIntoArray(r$2){let m$2=this.elements;return r$2[0]=m$2[0],r$2[1]=m$2[3],r$2[2]=m$2[6],r$2[3]=m$2[1],r$2[4]=m$2[4],r$2[5]=m$2[7],r$2[6]=m$2[2],r$2[7]=m$2[5],r$2[8]=m$2[8],this}setUvTransform(tx,ty,sx,sy,rotation,cx,cy){let c$4=Math.cos(rotation),s$1=Math.sin(rotation);return this.set(sx*c$4,sx*s$1,-sx*(c$4*cx+s$1*cy)+cx+tx,-sy*s$1,sy*c$4,-sy*(-s$1*cx+c$4*cy)+cy+ty,0,0,1),this}scale(sx,sy){return this.premultiply(_m3.makeScale(sx,sy)),this}rotate(theta){return this.premultiply(_m3.makeRotation(-theta)),this}translate(tx,ty){return this.premultiply(_m3.makeTranslation(tx,ty)),this}makeTranslation(x$3,y$2){return x$3.isVector2?this.set(1,0,x$3.x,0,1,x$3.y,0,0,1):this.set(1,0,x$3,0,1,y$2,0,0,1),this}makeRotation(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(c$4,-s$1,0,s$1,c$4,0,0,0,1),this}makeScale(x$3,y$2){return this.set(x$3,0,0,0,y$2,0,0,0,1),this}equals(matrix){let te$2=this.elements,me$1=matrix.elements;for(let i$1=0;i$1<9;i$1++)if(te$2[i$1]!==me$1[i$1])return!1;return!0}fromArray(array,offset$1=0){for(let i$1=0;i$1<9;i$1++)this.elements[i$1]=array[i$1+offset$1];return this}toArray(array=[],offset$1=0){let te$2=this.elements;return array[offset$1]=te$2[0],array[offset$1+1]=te$2[1],array[offset$1+2]=te$2[2],array[offset$1+3]=te$2[3],array[offset$1+4]=te$2[4],array[offset$1+5]=te$2[5],array[offset$1+6]=te$2[6],array[offset$1+7]=te$2[7],array[offset$1+8]=te$2[8],array}clone(){return new this.constructor().fromArray(this.elements)}};const _m3=new Matrix3;function arrayNeedsUint32(array){for(let i$1=array.length-1;i$1>=0;--i$1)if(array[i$1]>=65535)return!0;return!1}const TYPED_ARRAYS={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function getTypedArray(type,buffer$1){return new TYPED_ARRAYS[type](buffer$1)}function createElementNS(name$2){return document.createElementNS(`http://www.w3.org/1999/xhtml`,name$2)}function createCanvasElement(){let canvas=createElementNS(`canvas`);return canvas.style.display=`block`,canvas}const _cache={};function warnOnce$1(message$1){message$1 in _cache||(_cache[message$1]=!0,console.warn(message$1))}function probeAsync(gl,sync$1,interval){return new Promise(function(resolve$1,reject){function probe(){switch(gl.clientWaitSync(sync$1,gl.SYNC_FLUSH_COMMANDS_BIT,0)){case gl.WAIT_FAILED:reject();break;case gl.TIMEOUT_EXPIRED:setTimeout(probe,interval);break;default:resolve$1()}}setTimeout(probe,interval)})}function toNormalizedProjectionMatrix(projectionMatrix){let m$2=projectionMatrix.elements;m$2[2]=.5*m$2[2]+.5*m$2[3],m$2[6]=.5*m$2[6]+.5*m$2[7],m$2[10]=.5*m$2[10]+.5*m$2[11],m$2[14]=.5*m$2[14]+.5*m$2[15]}function toReversedProjectionMatrix(projectionMatrix){let m$2=projectionMatrix.elements,isPerspectiveMatrix=m$2[11]===-1;isPerspectiveMatrix?(m$2[10]=-m$2[10]-1,m$2[14]=-m$2[14]):(m$2[10]=-m$2[10],m$2[14]=-m$2[14]+1)}const LINEAR_REC709_TO_XYZ=new Matrix3().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),XYZ_TO_LINEAR_REC709=new Matrix3().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function createColorManagement(){let ColorManagement$1={enabled:!0,workingColorSpace:LinearSRGBColorSpace,spaces:{},convert:function(color$2,sourceColorSpace,targetColorSpace){return this.enabled===!1||sourceColorSpace===targetColorSpace||!sourceColorSpace||!targetColorSpace?color$2:(this.spaces[sourceColorSpace].transfer===SRGBTransfer&&(color$2.r=SRGBToLinear(color$2.r),color$2.g=SRGBToLinear(color$2.g),color$2.b=SRGBToLinear(color$2.b)),this.spaces[sourceColorSpace].primaries!==this.spaces[targetColorSpace].primaries&&(color$2.applyMatrix3(this.spaces[sourceColorSpace].toXYZ),color$2.applyMatrix3(this.spaces[targetColorSpace].fromXYZ)),this.spaces[targetColorSpace].transfer===SRGBTransfer&&(color$2.r=LinearToSRGB(color$2.r),color$2.g=LinearToSRGB(color$2.g),color$2.b=LinearToSRGB(color$2.b)),color$2)},workingToColorSpace:function(color$2,targetColorSpace){return this.convert(color$2,this.workingColorSpace,targetColorSpace)},colorSpaceToWorking:function(color$2,sourceColorSpace){return this.convert(color$2,sourceColorSpace,this.workingColorSpace)},getPrimaries:function(colorSpace){return this.spaces[colorSpace].primaries},getTransfer:function(colorSpace){return colorSpace===NoColorSpace?LinearTransfer:this.spaces[colorSpace].transfer},getLuminanceCoefficients:function(target$1,colorSpace=this.workingColorSpace){return target$1.fromArray(this.spaces[colorSpace].luminanceCoefficients)},define:function(colorSpaces){Object.assign(this.spaces,colorSpaces)},_getMatrix:function(targetMatrix,sourceColorSpace,targetColorSpace){return targetMatrix.copy(this.spaces[sourceColorSpace].toXYZ).multiply(this.spaces[targetColorSpace].fromXYZ)},_getDrawingBufferColorSpace:function(colorSpace){return this.spaces[colorSpace].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(colorSpace=this.workingColorSpace){return this.spaces[colorSpace].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(color$2,targetColorSpace){return warnOnce$1(`THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),ColorManagement$1.workingToColorSpace(color$2,targetColorSpace)},toWorkingColorSpace:function(color$2,sourceColorSpace){return warnOnce$1(`THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),ColorManagement$1.colorSpaceToWorking(color$2,sourceColorSpace)}},REC709_PRIMARIES=[.64,.33,.3,.6,.15,.06],REC709_LUMINANCE_COEFFICIENTS=[.2126,.7152,.0722],D65$1=[.3127,.329];return ColorManagement$1.define({[LinearSRGBColorSpace]:{primaries:REC709_PRIMARIES,whitePoint:D65$1,transfer:LinearTransfer,toXYZ:LINEAR_REC709_TO_XYZ,fromXYZ:XYZ_TO_LINEAR_REC709,luminanceCoefficients:REC709_LUMINANCE_COEFFICIENTS,workingColorSpaceConfig:{unpackColorSpace:SRGBColorSpace},outputColorSpaceConfig:{drawingBufferColorSpace:SRGBColorSpace}},[SRGBColorSpace]:{primaries:REC709_PRIMARIES,whitePoint:D65$1,transfer:SRGBTransfer,toXYZ:LINEAR_REC709_TO_XYZ,fromXYZ:XYZ_TO_LINEAR_REC709,luminanceCoefficients:REC709_LUMINANCE_COEFFICIENTS,outputColorSpaceConfig:{drawingBufferColorSpace:SRGBColorSpace}}}),ColorManagement$1}const ColorManagement=createColorManagement();function SRGBToLinear(c$4){return c$4<.04045?c$4*.0773993808:(c$4*.9478672986+.0521327014)**2.4}function LinearToSRGB(c$4){return c$4<.0031308?c$4*12.92:1.055*c$4**.41666-.055}let _canvas;var ImageUtils=class{static getDataURL(image$1,type=`image/png`){if(/^data:/i.test(image$1.src)||typeof HTMLCanvasElement>`u`)return image$1.src;let canvas;if(image$1 instanceof HTMLCanvasElement)canvas=image$1;else{_canvas===void 0&&(_canvas=createElementNS(`canvas`)),_canvas.width=image$1.width,_canvas.height=image$1.height;let context$1=_canvas.getContext(`2d`);image$1 instanceof ImageData?context$1.putImageData(image$1,0,0):context$1.drawImage(image$1,0,0,image$1.width,image$1.height),canvas=_canvas}return canvas.toDataURL(type)}static sRGBToLinear(image$1){if(typeof HTMLImageElement<`u`&&image$1 instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&image$1 instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&image$1 instanceof ImageBitmap){let canvas=createElementNS(`canvas`);canvas.width=image$1.width,canvas.height=image$1.height;let context$1=canvas.getContext(`2d`);context$1.drawImage(image$1,0,0,image$1.width,image$1.height);let imageData=context$1.getImageData(0,0,image$1.width,image$1.height),data$10=imageData.data;for(let i$1=0;i$11),this.pmremVersion=0}get width(){return this.source.getSize(_tempVec3).x}get height(){return this.source.getSize(_tempVec3).y}get depth(){return this.source.getSize(_tempVec3).z}get image(){return this.source.data}set image(value$1=null){this.source.data=value$1}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(start,count$1){this.updateRanges.push({start,count:count$1})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(source){return this.name=source.name,this.source=source.source,this.mipmaps=source.mipmaps.slice(0),this.mapping=source.mapping,this.channel=source.channel,this.wrapS=source.wrapS,this.wrapT=source.wrapT,this.magFilter=source.magFilter,this.minFilter=source.minFilter,this.anisotropy=source.anisotropy,this.format=source.format,this.internalFormat=source.internalFormat,this.type=source.type,this.offset.copy(source.offset),this.repeat.copy(source.repeat),this.center.copy(source.center),this.rotation=source.rotation,this.matrixAutoUpdate=source.matrixAutoUpdate,this.matrix.copy(source.matrix),this.generateMipmaps=source.generateMipmaps,this.premultiplyAlpha=source.premultiplyAlpha,this.flipY=source.flipY,this.unpackAlignment=source.unpackAlignment,this.colorSpace=source.colorSpace,this.renderTarget=source.renderTarget,this.isRenderTargetTexture=source.isRenderTargetTexture,this.isArrayTexture=source.isArrayTexture,this.userData=JSON.parse(JSON.stringify(source.userData)),this.needsUpdate=!0,this}setValues(values){for(let key$1 in values){let newValue=values[key$1];if(newValue===void 0){console.warn(`THREE.Texture.setValues(): parameter '${key$1}' has value of undefined.`);continue}let currentValue=this[key$1];if(currentValue===void 0){console.warn(`THREE.Texture.setValues(): property '${key$1}' does not exist.`);continue}currentValue&&newValue&¤tValue.isVector2&&newValue.isVector2||currentValue&&newValue&¤tValue.isVector3&&newValue.isVector3||currentValue&&newValue&¤tValue.isMatrix3&&newValue.isMatrix3?currentValue.copy(newValue):this[key$1]=newValue}}toJSON(meta){let isRootObject=meta===void 0||typeof meta==`string`;if(!isRootObject&&meta.textures[this.uuid]!==void 0)return meta.textures[this.uuid];let output={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(meta).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&&(output.userData=this.userData),isRootObject||(meta.textures[this.uuid]=output),output}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(uv){if(this.mapping!==UVMapping)return uv;if(uv.applyMatrix3(this.matrix),uv.x<0||uv.x>1)switch(this.wrapS){case RepeatWrapping:uv.x-=Math.floor(uv.x);break;case ClampToEdgeWrapping:uv.x=uv.x<0?0:1;break;case MirroredRepeatWrapping:Math.abs(Math.floor(uv.x)%2)===1?uv.x=Math.ceil(uv.x)-uv.x:uv.x-=Math.floor(uv.x);break}if(uv.y<0||uv.y>1)switch(this.wrapT){case RepeatWrapping:uv.y-=Math.floor(uv.y);break;case ClampToEdgeWrapping:uv.y=uv.y<0?0:1;break;case MirroredRepeatWrapping:Math.abs(Math.floor(uv.y)%2)===1?uv.y=Math.ceil(uv.y)-uv.y:uv.y-=Math.floor(uv.y);break}return this.flipY&&(uv.y=1-uv.y),uv}set needsUpdate(value$1){value$1===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(value$1){value$1===!0&&this.pmremVersion++}};Texture.DEFAULT_IMAGE=null,Texture.DEFAULT_MAPPING=UVMapping,Texture.DEFAULT_ANISOTROPY=1;var Vector4=class Vector4{constructor(x$3=0,y$2=0,z$2=0,w$1=1){Vector4.prototype.isVector4=!0,this.x=x$3,this.y=y$2,this.z=z$2,this.w=w$1}get width(){return this.z}set width(value$1){this.z=value$1}get height(){return this.w}set height(value$1){this.w=value$1}set(x$3,y$2,z$2,w$1){return this.x=x$3,this.y=y$2,this.z=z$2,this.w=w$1,this}setScalar(scalar){return this.x=scalar,this.y=scalar,this.z=scalar,this.w=scalar,this}setX(x$3){return this.x=x$3,this}setY(y$2){return this.y=y$2,this}setZ(z$2){return this.z=z$2,this}setW(w$1){return this.w=w$1,this}setComponent(index$1,value$1){switch(index$1){case 0:this.x=value$1;break;case 1:this.y=value$1;break;case 2:this.z=value$1;break;case 3:this.w=value$1;break;default:throw Error(`index is out of range: `+index$1)}return this}getComponent(index$1){switch(index$1){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: `+index$1)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(v$1){return this.x=v$1.x,this.y=v$1.y,this.z=v$1.z,this.w=v$1.w===void 0?1:v$1.w,this}add(v$1){return this.x+=v$1.x,this.y+=v$1.y,this.z+=v$1.z,this.w+=v$1.w,this}addScalar(s$1){return this.x+=s$1,this.y+=s$1,this.z+=s$1,this.w+=s$1,this}addVectors(a$2,b$3){return this.x=a$2.x+b$3.x,this.y=a$2.y+b$3.y,this.z=a$2.z+b$3.z,this.w=a$2.w+b$3.w,this}addScaledVector(v$1,s$1){return this.x+=v$1.x*s$1,this.y+=v$1.y*s$1,this.z+=v$1.z*s$1,this.w+=v$1.w*s$1,this}sub(v$1){return this.x-=v$1.x,this.y-=v$1.y,this.z-=v$1.z,this.w-=v$1.w,this}subScalar(s$1){return this.x-=s$1,this.y-=s$1,this.z-=s$1,this.w-=s$1,this}subVectors(a$2,b$3){return this.x=a$2.x-b$3.x,this.y=a$2.y-b$3.y,this.z=a$2.z-b$3.z,this.w=a$2.w-b$3.w,this}multiply(v$1){return this.x*=v$1.x,this.y*=v$1.y,this.z*=v$1.z,this.w*=v$1.w,this}multiplyScalar(scalar){return this.x*=scalar,this.y*=scalar,this.z*=scalar,this.w*=scalar,this}applyMatrix4(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,w$1=this.w,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[4]*y$2+e$3[8]*z$2+e$3[12]*w$1,this.y=e$3[1]*x$3+e$3[5]*y$2+e$3[9]*z$2+e$3[13]*w$1,this.z=e$3[2]*x$3+e$3[6]*y$2+e$3[10]*z$2+e$3[14]*w$1,this.w=e$3[3]*x$3+e$3[7]*y$2+e$3[11]*z$2+e$3[15]*w$1,this}divide(v$1){return this.x/=v$1.x,this.y/=v$1.y,this.z/=v$1.z,this.w/=v$1.w,this}divideScalar(scalar){return this.multiplyScalar(1/scalar)}setAxisAngleFromQuaternion(q$1){this.w=2*Math.acos(q$1.w);let s$1=Math.sqrt(1-q$1.w*q$1.w);return s$1<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=q$1.x/s$1,this.y=q$1.y/s$1,this.z=q$1.z/s$1),this}setAxisAngleFromRotationMatrix(m$2){let angle,x$3,y$2,z$2,epsilon=.01,epsilon2=.1,te$2=m$2.elements,m11=te$2[0],m12=te$2[4],m13=te$2[8],m21=te$2[1],m22=te$2[5],m23=te$2[9],m31=te$2[2],m32=te$2[6],m33=te$2[10];if(Math.abs(m12-m21)yy&&xx>zz?xxzz?yy1;this.dispose()}this.viewport.set(0,0,width,height),this.scissor.set(0,0,width,height)}clone(){return new this.constructor().copy(this)}copy(source){this.width=source.width,this.height=source.height,this.depth=source.depth,this.scissor.copy(source.scissor),this.scissorTest=source.scissorTest,this.viewport.copy(source.viewport),this.textures.length=0;for(let i$1=0,il=source.textures.length;i$1=this.min.x&&point$3.x<=this.max.x&&point$3.y>=this.min.y&&point$3.y<=this.max.y&&point$3.z>=this.min.z&&point$3.z<=this.max.z}containsBox(box){return this.min.x<=box.min.x&&box.max.x<=this.max.x&&this.min.y<=box.min.y&&box.max.y<=this.max.y&&this.min.z<=box.min.z&&box.max.z<=this.max.z}getParameter(point$3,target$1){return target$1.set((point$3.x-this.min.x)/(this.max.x-this.min.x),(point$3.y-this.min.y)/(this.max.y-this.min.y),(point$3.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(box){return box.max.x>=this.min.x&&box.min.x<=this.max.x&&box.max.y>=this.min.y&&box.min.y<=this.max.y&&box.max.z>=this.min.z&&box.min.z<=this.max.z}intersectsSphere(sphere){return this.clampPoint(sphere.center,_vector$b),_vector$b.distanceToSquared(sphere.center)<=sphere.radius*sphere.radius}intersectsPlane(plane){let min$1,max$1;return plane.normal.x>0?(min$1=plane.normal.x*this.min.x,max$1=plane.normal.x*this.max.x):(min$1=plane.normal.x*this.max.x,max$1=plane.normal.x*this.min.x),plane.normal.y>0?(min$1+=plane.normal.y*this.min.y,max$1+=plane.normal.y*this.max.y):(min$1+=plane.normal.y*this.max.y,max$1+=plane.normal.y*this.min.y),plane.normal.z>0?(min$1+=plane.normal.z*this.min.z,max$1+=plane.normal.z*this.max.z):(min$1+=plane.normal.z*this.max.z,max$1+=plane.normal.z*this.min.z),min$1<=-plane.constant&&max$1>=-plane.constant}intersectsTriangle(triangle){if(this.isEmpty())return!1;this.getCenter(_center),_extents.subVectors(this.max,_center),_v0$2.subVectors(triangle.a,_center),_v1$7.subVectors(triangle.b,_center),_v2$4.subVectors(triangle.c,_center),_f0.subVectors(_v1$7,_v0$2),_f1.subVectors(_v2$4,_v1$7),_f2.subVectors(_v0$2,_v2$4);let axes=[0,-_f0.z,_f0.y,0,-_f1.z,_f1.y,0,-_f2.z,_f2.y,_f0.z,0,-_f0.x,_f1.z,0,-_f1.x,_f2.z,0,-_f2.x,-_f0.y,_f0.x,0,-_f1.y,_f1.x,0,-_f2.y,_f2.x,0];return!satForAxes(axes,_v0$2,_v1$7,_v2$4,_extents)||(axes=[1,0,0,0,1,0,0,0,1],!satForAxes(axes,_v0$2,_v1$7,_v2$4,_extents))?!1:(_triangleNormal.crossVectors(_f0,_f1),axes=[_triangleNormal.x,_triangleNormal.y,_triangleNormal.z],satForAxes(axes,_v0$2,_v1$7,_v2$4,_extents))}clampPoint(point$3,target$1){return target$1.copy(point$3).clamp(this.min,this.max)}distanceToPoint(point$3){return this.clampPoint(point$3,_vector$b).distanceTo(point$3)}getBoundingSphere(target$1){return this.isEmpty()?target$1.makeEmpty():(this.getCenter(target$1.center),target$1.radius=this.getSize(_vector$b).length()*.5),target$1}intersect(box){return this.min.max(box.min),this.max.min(box.max),this.isEmpty()&&this.makeEmpty(),this}union(box){return this.min.min(box.min),this.max.max(box.max),this}applyMatrix4(matrix){return this.isEmpty()?this:(_points[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(matrix),_points[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(matrix),_points[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(matrix),_points[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(matrix),_points[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(matrix),_points[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(matrix),_points[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(matrix),_points[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(matrix),this.setFromPoints(_points),this)}translate(offset$1){return this.min.add(offset$1),this.max.add(offset$1),this}equals(box){return box.min.equals(this.min)&&box.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(json){return this.min.fromArray(json.min),this.max.fromArray(json.max),this}};const _points=[new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3],_vector$b=new Vector3,_box$4=new Box3,_v0$2=new Vector3,_v1$7=new Vector3,_v2$4=new Vector3,_f0=new Vector3,_f1=new Vector3,_f2=new Vector3,_center=new Vector3,_extents=new Vector3,_triangleNormal=new Vector3,_testAxis=new Vector3;function satForAxes(axes,v0,v1,v2,extents){for(let i$1=0,j$1=axes.length-3;i$1<=j$1;i$1+=3){_testAxis.fromArray(axes,i$1);let r$2=extents.x*Math.abs(_testAxis.x)+extents.y*Math.abs(_testAxis.y)+extents.z*Math.abs(_testAxis.z),p0=v0.dot(_testAxis),p1=v1.dot(_testAxis),p2=v2.dot(_testAxis);if(Math.max(-Math.max(p0,p1,p2),Math.min(p0,p1,p2))>r$2)return!1}return!0}const _box$3=new Box3,_v1$6=new Vector3,_v2$3=new Vector3;var Sphere=class{constructor(center=new Vector3,radius=-1){this.isSphere=!0,this.center=center,this.radius=radius}set(center,radius){return this.center.copy(center),this.radius=radius,this}setFromPoints(points,optionalCenter){let center=this.center;optionalCenter===void 0?_box$3.setFromPoints(points).getCenter(center):center.copy(optionalCenter);let maxRadiusSq=0;for(let i$1=0,il=points.length;i$1this.radius*this.radius&&(target$1.sub(this.center).normalize(),target$1.multiplyScalar(this.radius).add(this.center)),target$1}getBoundingBox(target$1){return this.isEmpty()?(target$1.makeEmpty(),target$1):(target$1.set(this.center,this.center),target$1.expandByScalar(this.radius),target$1)}applyMatrix4(matrix){return this.center.applyMatrix4(matrix),this.radius*=matrix.getMaxScaleOnAxis(),this}translate(offset$1){return this.center.add(offset$1),this}expandByPoint(point$3){if(this.isEmpty())return this.center.copy(point$3),this.radius=0,this;_v1$6.subVectors(point$3,this.center);let lengthSq=_v1$6.lengthSq();if(lengthSq>this.radius*this.radius){let length=Math.sqrt(lengthSq),delta=(length-this.radius)*.5;this.center.addScaledVector(_v1$6,delta/length),this.radius+=delta}return this}union(sphere){return sphere.isEmpty()?this:this.isEmpty()?(this.copy(sphere),this):(this.center.equals(sphere.center)===!0?this.radius=Math.max(this.radius,sphere.radius):(_v2$3.subVectors(sphere.center,this.center).setLength(sphere.radius),this.expandByPoint(_v1$6.copy(sphere.center).add(_v2$3)),this.expandByPoint(_v1$6.copy(sphere.center).sub(_v2$3))),this)}equals(sphere){return sphere.center.equals(this.center)&&sphere.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(json){return this.radius=json.radius,this.center.fromArray(json.center),this}};const _vector$a=new Vector3,_segCenter=new Vector3,_segDir=new Vector3,_diff=new Vector3,_edge1=new Vector3,_edge2=new Vector3,_normal$1=new Vector3;var Ray=class{constructor(origin=new Vector3,direction=new Vector3(0,0,-1)){this.origin=origin,this.direction=direction}set(origin,direction){return this.origin.copy(origin),this.direction.copy(direction),this}copy(ray){return this.origin.copy(ray.origin),this.direction.copy(ray.direction),this}at(t,target$1){return target$1.copy(this.origin).addScaledVector(this.direction,t)}lookAt(v$1){return this.direction.copy(v$1).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,_vector$a)),this}closestPointToPoint(point$3,target$1){target$1.subVectors(point$3,this.origin);let directionDistance=target$1.dot(this.direction);return directionDistance<0?target$1.copy(this.origin):target$1.copy(this.origin).addScaledVector(this.direction,directionDistance)}distanceToPoint(point$3){return Math.sqrt(this.distanceSqToPoint(point$3))}distanceSqToPoint(point$3){let directionDistance=_vector$a.subVectors(point$3,this.origin).dot(this.direction);return directionDistance<0?this.origin.distanceToSquared(point$3):(_vector$a.copy(this.origin).addScaledVector(this.direction,directionDistance),_vector$a.distanceToSquared(point$3))}distanceSqToSegment(v0,v1,optionalPointOnRay,optionalPointOnSegment){_segCenter.copy(v0).add(v1).multiplyScalar(.5),_segDir.copy(v1).sub(v0).normalize(),_diff.copy(this.origin).sub(_segCenter);let segExtent=v0.distanceTo(v1)*.5,a01=-this.direction.dot(_segDir),b0=_diff.dot(this.direction),b1=-_diff.dot(_segDir),c$4=_diff.lengthSq(),det=Math.abs(1-a01*a01),s0,s1,sqrDist,extDet;if(det>0)if(s0=a01*b1-b0,s1=a01*b0-b1,extDet=segExtent*det,s0>=0)if(s1>=-extDet)if(s1<=extDet){let invDet=1/det;s0*=invDet,s1*=invDet,sqrDist=s0*(s0+a01*s1+2*b0)+s1*(a01*s0+s1+2*b1)+c$4}else s1=segExtent,s0=Math.max(0,-(a01*s1+b0)),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4;else s1=-segExtent,s0=Math.max(0,-(a01*s1+b0)),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4;else s1<=-extDet?(s0=Math.max(0,-(-a01*segExtent+b0)),s1=s0>0?-segExtent:Math.min(Math.max(-segExtent,-b1),segExtent),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4):s1<=extDet?(s0=0,s1=Math.min(Math.max(-segExtent,-b1),segExtent),sqrDist=s1*(s1+2*b1)+c$4):(s0=Math.max(0,-(a01*segExtent+b0)),s1=s0>0?segExtent:Math.min(Math.max(-segExtent,-b1),segExtent),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4);else s1=a01>0?-segExtent:segExtent,s0=Math.max(0,-(a01*s1+b0)),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4;return optionalPointOnRay&&optionalPointOnRay.copy(this.origin).addScaledVector(this.direction,s0),optionalPointOnSegment&&optionalPointOnSegment.copy(_segCenter).addScaledVector(_segDir,s1),sqrDist}intersectSphere(sphere,target$1){_vector$a.subVectors(sphere.center,this.origin);let tca=_vector$a.dot(this.direction),d2=_vector$a.dot(_vector$a)-tca*tca,radius2=sphere.radius*sphere.radius;if(d2>radius2)return null;let thc=Math.sqrt(radius2-d2),t0=tca-thc,t1=tca+thc;return t1<0?null:t0<0?this.at(t1,target$1):this.at(t0,target$1)}intersectsSphere(sphere){return sphere.radius<0?!1:this.distanceSqToPoint(sphere.center)<=sphere.radius*sphere.radius}distanceToPlane(plane){let denominator=plane.normal.dot(this.direction);if(denominator===0)return plane.distanceToPoint(this.origin)===0?0:null;let t=-(this.origin.dot(plane.normal)+plane.constant)/denominator;return t>=0?t:null}intersectPlane(plane,target$1){let t=this.distanceToPlane(plane);return t===null?null:this.at(t,target$1)}intersectsPlane(plane){let distToPoint=plane.distanceToPoint(this.origin);if(distToPoint===0)return!0;let denominator=plane.normal.dot(this.direction);return denominator*distToPoint<0}intersectBox(box,target$1){let tmin,tmax,tymin,tymax,tzmin,tzmax,invdirx=1/this.direction.x,invdiry=1/this.direction.y,invdirz=1/this.direction.z,origin=this.origin;return invdirx>=0?(tmin=(box.min.x-origin.x)*invdirx,tmax=(box.max.x-origin.x)*invdirx):(tmin=(box.max.x-origin.x)*invdirx,tmax=(box.min.x-origin.x)*invdirx),invdiry>=0?(tymin=(box.min.y-origin.y)*invdiry,tymax=(box.max.y-origin.y)*invdiry):(tymin=(box.max.y-origin.y)*invdiry,tymax=(box.min.y-origin.y)*invdiry),tmin>tymax||tymin>tmax||((tymin>tmin||isNaN(tmin))&&(tmin=tymin),(tymax=0?(tzmin=(box.min.z-origin.z)*invdirz,tzmax=(box.max.z-origin.z)*invdirz):(tzmin=(box.max.z-origin.z)*invdirz,tzmax=(box.min.z-origin.z)*invdirz),tmin>tzmax||tzmin>tmax)||((tzmin>tmin||tmin!==tmin)&&(tmin=tzmin),(tzmax=0?tmin:tmax,target$1)}intersectsBox(box){return this.intersectBox(box,_vector$a)!==null}intersectTriangle(a$2,b$3,c$4,backfaceCulling,target$1){_edge1.subVectors(b$3,a$2),_edge2.subVectors(c$4,a$2),_normal$1.crossVectors(_edge1,_edge2);let DdN=this.direction.dot(_normal$1),sign$1;if(DdN>0){if(backfaceCulling)return null;sign$1=1}else if(DdN<0)sign$1=-1,DdN=-DdN;else return null;_diff.subVectors(this.origin,a$2);let DdQxE2=sign$1*this.direction.dot(_edge2.crossVectors(_diff,_edge2));if(DdQxE2<0)return null;let DdE1xQ=sign$1*this.direction.dot(_edge1.cross(_diff));if(DdE1xQ<0||DdQxE2+DdE1xQ>DdN)return null;let QdN=-sign$1*_diff.dot(_normal$1);return QdN<0?null:this.at(QdN/DdN,target$1)}applyMatrix4(matrix4){return this.origin.applyMatrix4(matrix4),this.direction.transformDirection(matrix4),this}equals(ray){return ray.origin.equals(this.origin)&&ray.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Matrix4=class Matrix4{constructor(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44){Matrix4.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],n11!==void 0&&this.set(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44)}set(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44){let te$2=this.elements;return te$2[0]=n11,te$2[4]=n12,te$2[8]=n13,te$2[12]=n14,te$2[1]=n21,te$2[5]=n22,te$2[9]=n23,te$2[13]=n24,te$2[2]=n31,te$2[6]=n32,te$2[10]=n33,te$2[14]=n34,te$2[3]=n41,te$2[7]=n42,te$2[11]=n43,te$2[15]=n44,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 Matrix4().fromArray(this.elements)}copy(m$2){let te$2=this.elements,me$1=m$2.elements;return te$2[0]=me$1[0],te$2[1]=me$1[1],te$2[2]=me$1[2],te$2[3]=me$1[3],te$2[4]=me$1[4],te$2[5]=me$1[5],te$2[6]=me$1[6],te$2[7]=me$1[7],te$2[8]=me$1[8],te$2[9]=me$1[9],te$2[10]=me$1[10],te$2[11]=me$1[11],te$2[12]=me$1[12],te$2[13]=me$1[13],te$2[14]=me$1[14],te$2[15]=me$1[15],this}copyPosition(m$2){let te$2=this.elements,me$1=m$2.elements;return te$2[12]=me$1[12],te$2[13]=me$1[13],te$2[14]=me$1[14],this}setFromMatrix3(m$2){let me$1=m$2.elements;return this.set(me$1[0],me$1[3],me$1[6],0,me$1[1],me$1[4],me$1[7],0,me$1[2],me$1[5],me$1[8],0,0,0,0,1),this}extractBasis(xAxis,yAxis,zAxis){return xAxis.setFromMatrixColumn(this,0),yAxis.setFromMatrixColumn(this,1),zAxis.setFromMatrixColumn(this,2),this}makeBasis(xAxis,yAxis,zAxis){return this.set(xAxis.x,yAxis.x,zAxis.x,0,xAxis.y,yAxis.y,zAxis.y,0,xAxis.z,yAxis.z,zAxis.z,0,0,0,0,1),this}extractRotation(m$2){let te$2=this.elements,me$1=m$2.elements,scaleX=1/_v1$5.setFromMatrixColumn(m$2,0).length(),scaleY=1/_v1$5.setFromMatrixColumn(m$2,1).length(),scaleZ=1/_v1$5.setFromMatrixColumn(m$2,2).length();return te$2[0]=me$1[0]*scaleX,te$2[1]=me$1[1]*scaleX,te$2[2]=me$1[2]*scaleX,te$2[3]=0,te$2[4]=me$1[4]*scaleY,te$2[5]=me$1[5]*scaleY,te$2[6]=me$1[6]*scaleY,te$2[7]=0,te$2[8]=me$1[8]*scaleZ,te$2[9]=me$1[9]*scaleZ,te$2[10]=me$1[10]*scaleZ,te$2[11]=0,te$2[12]=0,te$2[13]=0,te$2[14]=0,te$2[15]=1,this}makeRotationFromEuler(euler){let te$2=this.elements,x$3=euler.x,y$2=euler.y,z$2=euler.z,a$2=Math.cos(x$3),b$3=Math.sin(x$3),c$4=Math.cos(y$2),d$2=Math.sin(y$2),e$3=Math.cos(z$2),f$3=Math.sin(z$2);if(euler.order===`XYZ`){let ae$1=a$2*e$3,af=a$2*f$3,be$2=b$3*e$3,bf=b$3*f$3;te$2[0]=c$4*e$3,te$2[4]=-c$4*f$3,te$2[8]=d$2,te$2[1]=af+be$2*d$2,te$2[5]=ae$1-bf*d$2,te$2[9]=-b$3*c$4,te$2[2]=bf-ae$1*d$2,te$2[6]=be$2+af*d$2,te$2[10]=a$2*c$4}else if(euler.order===`YXZ`){let ce$2=c$4*e$3,cf=c$4*f$3,de$2=d$2*e$3,df=d$2*f$3;te$2[0]=ce$2+df*b$3,te$2[4]=de$2*b$3-cf,te$2[8]=a$2*d$2,te$2[1]=a$2*f$3,te$2[5]=a$2*e$3,te$2[9]=-b$3,te$2[2]=cf*b$3-de$2,te$2[6]=df+ce$2*b$3,te$2[10]=a$2*c$4}else if(euler.order===`ZXY`){let ce$2=c$4*e$3,cf=c$4*f$3,de$2=d$2*e$3,df=d$2*f$3;te$2[0]=ce$2-df*b$3,te$2[4]=-a$2*f$3,te$2[8]=de$2+cf*b$3,te$2[1]=cf+de$2*b$3,te$2[5]=a$2*e$3,te$2[9]=df-ce$2*b$3,te$2[2]=-a$2*d$2,te$2[6]=b$3,te$2[10]=a$2*c$4}else if(euler.order===`ZYX`){let ae$1=a$2*e$3,af=a$2*f$3,be$2=b$3*e$3,bf=b$3*f$3;te$2[0]=c$4*e$3,te$2[4]=be$2*d$2-af,te$2[8]=ae$1*d$2+bf,te$2[1]=c$4*f$3,te$2[5]=bf*d$2+ae$1,te$2[9]=af*d$2-be$2,te$2[2]=-d$2,te$2[6]=b$3*c$4,te$2[10]=a$2*c$4}else if(euler.order===`YZX`){let ac=a$2*c$4,ad=a$2*d$2,bc=b$3*c$4,bd=b$3*d$2;te$2[0]=c$4*e$3,te$2[4]=bd-ac*f$3,te$2[8]=bc*f$3+ad,te$2[1]=f$3,te$2[5]=a$2*e$3,te$2[9]=-b$3*e$3,te$2[2]=-d$2*e$3,te$2[6]=ad*f$3+bc,te$2[10]=ac-bd*f$3}else if(euler.order===`XZY`){let ac=a$2*c$4,ad=a$2*d$2,bc=b$3*c$4,bd=b$3*d$2;te$2[0]=c$4*e$3,te$2[4]=-f$3,te$2[8]=d$2*e$3,te$2[1]=ac*f$3+bd,te$2[5]=a$2*e$3,te$2[9]=ad*f$3-bc,te$2[2]=bc*f$3-ad,te$2[6]=b$3*e$3,te$2[10]=bd*f$3+ac}return te$2[3]=0,te$2[7]=0,te$2[11]=0,te$2[12]=0,te$2[13]=0,te$2[14]=0,te$2[15]=1,this}makeRotationFromQuaternion(q$1){return this.compose(_zero,q$1,_one)}lookAt(eye,target$1,up){let te$2=this.elements;return _z.subVectors(eye,target$1),_z.lengthSq()===0&&(_z.z=1),_z.normalize(),_x.crossVectors(up,_z),_x.lengthSq()===0&&(Math.abs(up.z)===1?_z.x+=1e-4:_z.z+=1e-4,_z.normalize(),_x.crossVectors(up,_z)),_x.normalize(),_y.crossVectors(_z,_x),te$2[0]=_x.x,te$2[4]=_y.x,te$2[8]=_z.x,te$2[1]=_x.y,te$2[5]=_y.y,te$2[9]=_z.y,te$2[2]=_x.z,te$2[6]=_y.z,te$2[10]=_z.z,this}multiply(m$2){return this.multiplyMatrices(this,m$2)}premultiply(m$2){return this.multiplyMatrices(m$2,this)}multiplyMatrices(a$2,b$3){let ae$1=a$2.elements,be$2=b$3.elements,te$2=this.elements,a11=ae$1[0],a12=ae$1[4],a13=ae$1[8],a14=ae$1[12],a21=ae$1[1],a22=ae$1[5],a23=ae$1[9],a24=ae$1[13],a31=ae$1[2],a32=ae$1[6],a33=ae$1[10],a34=ae$1[14],a41=ae$1[3],a42=ae$1[7],a43=ae$1[11],a44=ae$1[15],b11=be$2[0],b12=be$2[4],b13=be$2[8],b14=be$2[12],b21=be$2[1],b22=be$2[5],b23=be$2[9],b24=be$2[13],b31=be$2[2],b32=be$2[6],b33=be$2[10],b34=be$2[14],b41=be$2[3],b42=be$2[7],b43=be$2[11],b44=be$2[15];return te$2[0]=a11*b11+a12*b21+a13*b31+a14*b41,te$2[4]=a11*b12+a12*b22+a13*b32+a14*b42,te$2[8]=a11*b13+a12*b23+a13*b33+a14*b43,te$2[12]=a11*b14+a12*b24+a13*b34+a14*b44,te$2[1]=a21*b11+a22*b21+a23*b31+a24*b41,te$2[5]=a21*b12+a22*b22+a23*b32+a24*b42,te$2[9]=a21*b13+a22*b23+a23*b33+a24*b43,te$2[13]=a21*b14+a22*b24+a23*b34+a24*b44,te$2[2]=a31*b11+a32*b21+a33*b31+a34*b41,te$2[6]=a31*b12+a32*b22+a33*b32+a34*b42,te$2[10]=a31*b13+a32*b23+a33*b33+a34*b43,te$2[14]=a31*b14+a32*b24+a33*b34+a34*b44,te$2[3]=a41*b11+a42*b21+a43*b31+a44*b41,te$2[7]=a41*b12+a42*b22+a43*b32+a44*b42,te$2[11]=a41*b13+a42*b23+a43*b33+a44*b43,te$2[15]=a41*b14+a42*b24+a43*b34+a44*b44,this}multiplyScalar(s$1){let te$2=this.elements;return te$2[0]*=s$1,te$2[4]*=s$1,te$2[8]*=s$1,te$2[12]*=s$1,te$2[1]*=s$1,te$2[5]*=s$1,te$2[9]*=s$1,te$2[13]*=s$1,te$2[2]*=s$1,te$2[6]*=s$1,te$2[10]*=s$1,te$2[14]*=s$1,te$2[3]*=s$1,te$2[7]*=s$1,te$2[11]*=s$1,te$2[15]*=s$1,this}determinant(){let te$2=this.elements,n11=te$2[0],n12=te$2[4],n13=te$2[8],n14=te$2[12],n21=te$2[1],n22=te$2[5],n23=te$2[9],n24=te$2[13],n31=te$2[2],n32=te$2[6],n33=te$2[10],n34=te$2[14],n41=te$2[3],n42=te$2[7],n43=te$2[11],n44=te$2[15];return n41*(+n14*n23*n32-n13*n24*n32-n14*n22*n33+n12*n24*n33+n13*n22*n34-n12*n23*n34)+n42*(+n11*n23*n34-n11*n24*n33+n14*n21*n33-n13*n21*n34+n13*n24*n31-n14*n23*n31)+n43*(+n11*n24*n32-n11*n22*n34-n14*n21*n32+n12*n21*n34+n14*n22*n31-n12*n24*n31)+n44*(-n13*n22*n31-n11*n23*n32+n11*n22*n33+n13*n21*n32-n12*n21*n33+n12*n23*n31)}transpose(){let te$2=this.elements,tmp$1;return tmp$1=te$2[1],te$2[1]=te$2[4],te$2[4]=tmp$1,tmp$1=te$2[2],te$2[2]=te$2[8],te$2[8]=tmp$1,tmp$1=te$2[6],te$2[6]=te$2[9],te$2[9]=tmp$1,tmp$1=te$2[3],te$2[3]=te$2[12],te$2[12]=tmp$1,tmp$1=te$2[7],te$2[7]=te$2[13],te$2[13]=tmp$1,tmp$1=te$2[11],te$2[11]=te$2[14],te$2[14]=tmp$1,this}setPosition(x$3,y$2,z$2){let te$2=this.elements;return x$3.isVector3?(te$2[12]=x$3.x,te$2[13]=x$3.y,te$2[14]=x$3.z):(te$2[12]=x$3,te$2[13]=y$2,te$2[14]=z$2),this}invert(){let te$2=this.elements,n11=te$2[0],n21=te$2[1],n31=te$2[2],n41=te$2[3],n12=te$2[4],n22=te$2[5],n32=te$2[6],n42=te$2[7],n13=te$2[8],n23=te$2[9],n33=te$2[10],n43=te$2[11],n14=te$2[12],n24=te$2[13],n34=te$2[14],n44=te$2[15],t11=n23*n34*n42-n24*n33*n42+n24*n32*n43-n22*n34*n43-n23*n32*n44+n22*n33*n44,t12=n14*n33*n42-n13*n34*n42-n14*n32*n43+n12*n34*n43+n13*n32*n44-n12*n33*n44,t13=n13*n24*n42-n14*n23*n42+n14*n22*n43-n12*n24*n43-n13*n22*n44+n12*n23*n44,t14=n14*n23*n32-n13*n24*n32-n14*n22*n33+n12*n24*n33+n13*n22*n34-n12*n23*n34,det=n11*t11+n21*t12+n31*t13+n41*t14;if(det===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let detInv=1/det;return te$2[0]=t11*detInv,te$2[1]=(n24*n33*n41-n23*n34*n41-n24*n31*n43+n21*n34*n43+n23*n31*n44-n21*n33*n44)*detInv,te$2[2]=(n22*n34*n41-n24*n32*n41+n24*n31*n42-n21*n34*n42-n22*n31*n44+n21*n32*n44)*detInv,te$2[3]=(n23*n32*n41-n22*n33*n41-n23*n31*n42+n21*n33*n42+n22*n31*n43-n21*n32*n43)*detInv,te$2[4]=t12*detInv,te$2[5]=(n13*n34*n41-n14*n33*n41+n14*n31*n43-n11*n34*n43-n13*n31*n44+n11*n33*n44)*detInv,te$2[6]=(n14*n32*n41-n12*n34*n41-n14*n31*n42+n11*n34*n42+n12*n31*n44-n11*n32*n44)*detInv,te$2[7]=(n12*n33*n41-n13*n32*n41+n13*n31*n42-n11*n33*n42-n12*n31*n43+n11*n32*n43)*detInv,te$2[8]=t13*detInv,te$2[9]=(n14*n23*n41-n13*n24*n41-n14*n21*n43+n11*n24*n43+n13*n21*n44-n11*n23*n44)*detInv,te$2[10]=(n12*n24*n41-n14*n22*n41+n14*n21*n42-n11*n24*n42-n12*n21*n44+n11*n22*n44)*detInv,te$2[11]=(n13*n22*n41-n12*n23*n41-n13*n21*n42+n11*n23*n42+n12*n21*n43-n11*n22*n43)*detInv,te$2[12]=t14*detInv,te$2[13]=(n13*n24*n31-n14*n23*n31+n14*n21*n33-n11*n24*n33-n13*n21*n34+n11*n23*n34)*detInv,te$2[14]=(n14*n22*n31-n12*n24*n31-n14*n21*n32+n11*n24*n32+n12*n21*n34-n11*n22*n34)*detInv,te$2[15]=(n12*n23*n31-n13*n22*n31+n13*n21*n32-n11*n23*n32-n12*n21*n33+n11*n22*n33)*detInv,this}scale(v$1){let te$2=this.elements,x$3=v$1.x,y$2=v$1.y,z$2=v$1.z;return te$2[0]*=x$3,te$2[4]*=y$2,te$2[8]*=z$2,te$2[1]*=x$3,te$2[5]*=y$2,te$2[9]*=z$2,te$2[2]*=x$3,te$2[6]*=y$2,te$2[10]*=z$2,te$2[3]*=x$3,te$2[7]*=y$2,te$2[11]*=z$2,this}getMaxScaleOnAxis(){let te$2=this.elements,scaleXSq=te$2[0]*te$2[0]+te$2[1]*te$2[1]+te$2[2]*te$2[2],scaleYSq=te$2[4]*te$2[4]+te$2[5]*te$2[5]+te$2[6]*te$2[6],scaleZSq=te$2[8]*te$2[8]+te$2[9]*te$2[9]+te$2[10]*te$2[10];return Math.sqrt(Math.max(scaleXSq,scaleYSq,scaleZSq))}makeTranslation(x$3,y$2,z$2){return x$3.isVector3?this.set(1,0,0,x$3.x,0,1,0,x$3.y,0,0,1,x$3.z,0,0,0,1):this.set(1,0,0,x$3,0,1,0,y$2,0,0,1,z$2,0,0,0,1),this}makeRotationX(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(1,0,0,0,0,c$4,-s$1,0,0,s$1,c$4,0,0,0,0,1),this}makeRotationY(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(c$4,0,s$1,0,0,1,0,0,-s$1,0,c$4,0,0,0,0,1),this}makeRotationZ(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(c$4,-s$1,0,0,s$1,c$4,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(axis,angle){let c$4=Math.cos(angle),s$1=Math.sin(angle),t=1-c$4,x$3=axis.x,y$2=axis.y,z$2=axis.z,tx=t*x$3,ty=t*y$2;return this.set(tx*x$3+c$4,tx*y$2-s$1*z$2,tx*z$2+s$1*y$2,0,tx*y$2+s$1*z$2,ty*y$2+c$4,ty*z$2-s$1*x$3,0,tx*z$2-s$1*y$2,ty*z$2+s$1*x$3,t*z$2*z$2+c$4,0,0,0,0,1),this}makeScale(x$3,y$2,z$2){return this.set(x$3,0,0,0,0,y$2,0,0,0,0,z$2,0,0,0,0,1),this}makeShear(xy,xz,yx,yz,zx,zy){return this.set(1,yx,zx,0,xy,1,zy,0,xz,yz,1,0,0,0,0,1),this}compose(position$2,quaternion,scale$1){let te$2=this.elements,x$3=quaternion._x,y$2=quaternion._y,z$2=quaternion._z,w$1=quaternion._w,x2=x$3+x$3,y2=y$2+y$2,z2=z$2+z$2,xx=x$3*x2,xy=x$3*y2,xz=x$3*z2,yy=y$2*y2,yz=y$2*z2,zz=z$2*z2,wx=w$1*x2,wy=w$1*y2,wz=w$1*z2,sx=scale$1.x,sy=scale$1.y,sz=scale$1.z;return te$2[0]=(1-(yy+zz))*sx,te$2[1]=(xy+wz)*sx,te$2[2]=(xz-wy)*sx,te$2[3]=0,te$2[4]=(xy-wz)*sy,te$2[5]=(1-(xx+zz))*sy,te$2[6]=(yz+wx)*sy,te$2[7]=0,te$2[8]=(xz+wy)*sz,te$2[9]=(yz-wx)*sz,te$2[10]=(1-(xx+yy))*sz,te$2[11]=0,te$2[12]=position$2.x,te$2[13]=position$2.y,te$2[14]=position$2.z,te$2[15]=1,this}decompose(position$2,quaternion,scale$1){let te$2=this.elements,sx=_v1$5.set(te$2[0],te$2[1],te$2[2]).length(),sy=_v1$5.set(te$2[4],te$2[5],te$2[6]).length(),sz=_v1$5.set(te$2[8],te$2[9],te$2[10]).length(),det=this.determinant();det<0&&(sx=-sx),position$2.x=te$2[12],position$2.y=te$2[13],position$2.z=te$2[14],_m1$2.copy(this);let invSX=1/sx,invSY=1/sy,invSZ=1/sz;return _m1$2.elements[0]*=invSX,_m1$2.elements[1]*=invSX,_m1$2.elements[2]*=invSX,_m1$2.elements[4]*=invSY,_m1$2.elements[5]*=invSY,_m1$2.elements[6]*=invSY,_m1$2.elements[8]*=invSZ,_m1$2.elements[9]*=invSZ,_m1$2.elements[10]*=invSZ,quaternion.setFromRotationMatrix(_m1$2),scale$1.x=sx,scale$1.y=sy,scale$1.z=sz,this}makePerspective(left,right,top,bottom,near,far,coordinateSystem=WebGLCoordinateSystem){let te$2=this.elements,x$3=2*near/(right-left),y$2=2*near/(top-bottom),a$2=(right+left)/(right-left),b$3=(top+bottom)/(top-bottom),c$4,d$2;if(coordinateSystem===WebGLCoordinateSystem)c$4=-(far+near)/(far-near),d$2=-2*far*near/(far-near);else if(coordinateSystem===WebGPUCoordinateSystem)c$4=-far/(far-near),d$2=-far*near/(far-near);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+coordinateSystem);return te$2[0]=x$3,te$2[4]=0,te$2[8]=a$2,te$2[12]=0,te$2[1]=0,te$2[5]=y$2,te$2[9]=b$3,te$2[13]=0,te$2[2]=0,te$2[6]=0,te$2[10]=c$4,te$2[14]=d$2,te$2[3]=0,te$2[7]=0,te$2[11]=-1,te$2[15]=0,this}makeOrthographic(left,right,top,bottom,near,far,coordinateSystem=WebGLCoordinateSystem){let te$2=this.elements,w$1=1/(right-left),h$3=1/(top-bottom),p$5=1/(far-near),x$3=(right+left)*w$1,y$2=(top+bottom)*h$3,z$2,zInv;if(coordinateSystem===WebGLCoordinateSystem)z$2=(far+near)*p$5,zInv=-2*p$5;else if(coordinateSystem===WebGPUCoordinateSystem)z$2=near*p$5,zInv=-1*p$5;else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+coordinateSystem);return te$2[0]=2*w$1,te$2[4]=0,te$2[8]=0,te$2[12]=-x$3,te$2[1]=0,te$2[5]=2*h$3,te$2[9]=0,te$2[13]=-y$2,te$2[2]=0,te$2[6]=0,te$2[10]=zInv,te$2[14]=-z$2,te$2[3]=0,te$2[7]=0,te$2[11]=0,te$2[15]=1,this}equals(matrix){let te$2=this.elements,me$1=matrix.elements;for(let i$1=0;i$1<16;i$1++)if(te$2[i$1]!==me$1[i$1])return!1;return!0}fromArray(array,offset$1=0){for(let i$1=0;i$1<16;i$1++)this.elements[i$1]=array[i$1+offset$1];return this}toArray(array=[],offset$1=0){let te$2=this.elements;return array[offset$1]=te$2[0],array[offset$1+1]=te$2[1],array[offset$1+2]=te$2[2],array[offset$1+3]=te$2[3],array[offset$1+4]=te$2[4],array[offset$1+5]=te$2[5],array[offset$1+6]=te$2[6],array[offset$1+7]=te$2[7],array[offset$1+8]=te$2[8],array[offset$1+9]=te$2[9],array[offset$1+10]=te$2[10],array[offset$1+11]=te$2[11],array[offset$1+12]=te$2[12],array[offset$1+13]=te$2[13],array[offset$1+14]=te$2[14],array[offset$1+15]=te$2[15],array}};const _v1$5=new Vector3,_m1$2=new Matrix4,_zero=new Vector3(0,0,0),_one=new Vector3(1,1,1),_x=new Vector3,_y=new Vector3,_z=new Vector3,_matrix$2=new Matrix4,_quaternion$3=new Quaternion;var Euler=class Euler{constructor(x$3=0,y$2=0,z$2=0,order$3=Euler.DEFAULT_ORDER){this.isEuler=!0,this._x=x$3,this._y=y$2,this._z=z$2,this._order=order$3}get x(){return this._x}set x(value$1){this._x=value$1,this._onChangeCallback()}get y(){return this._y}set y(value$1){this._y=value$1,this._onChangeCallback()}get z(){return this._z}set z(value$1){this._z=value$1,this._onChangeCallback()}get order(){return this._order}set order(value$1){this._order=value$1,this._onChangeCallback()}set(x$3,y$2,z$2,order$3=this._order){return this._x=x$3,this._y=y$2,this._z=z$2,this._order=order$3,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(euler){return this._x=euler._x,this._y=euler._y,this._z=euler._z,this._order=euler._order,this._onChangeCallback(),this}setFromRotationMatrix(m$2,order$3=this._order,update=!0){let te$2=m$2.elements,m11=te$2[0],m12=te$2[4],m13=te$2[8],m21=te$2[1],m22=te$2[5],m23=te$2[9],m31=te$2[2],m32=te$2[6],m33=te$2[10];switch(order$3){case`XYZ`:this._y=Math.asin(clamp$6(m13,-1,1)),Math.abs(m13)<.9999999?(this._x=Math.atan2(-m23,m33),this._z=Math.atan2(-m12,m11)):(this._x=Math.atan2(m32,m22),this._z=0);break;case`YXZ`:this._x=Math.asin(-clamp$6(m23,-1,1)),Math.abs(m23)<.9999999?(this._y=Math.atan2(m13,m33),this._z=Math.atan2(m21,m22)):(this._y=Math.atan2(-m31,m11),this._z=0);break;case`ZXY`:this._x=Math.asin(clamp$6(m32,-1,1)),Math.abs(m32)<.9999999?(this._y=Math.atan2(-m31,m33),this._z=Math.atan2(-m12,m22)):(this._y=0,this._z=Math.atan2(m21,m11));break;case`ZYX`:this._y=Math.asin(-clamp$6(m31,-1,1)),Math.abs(m31)<.9999999?(this._x=Math.atan2(m32,m33),this._z=Math.atan2(m21,m11)):(this._x=0,this._z=Math.atan2(-m12,m22));break;case`YZX`:this._z=Math.asin(clamp$6(m21,-1,1)),Math.abs(m21)<.9999999?(this._x=Math.atan2(-m23,m22),this._y=Math.atan2(-m31,m11)):(this._x=0,this._y=Math.atan2(m13,m33));break;case`XZY`:this._z=Math.asin(-clamp$6(m12,-1,1)),Math.abs(m12)<.9999999?(this._x=Math.atan2(m32,m22),this._y=Math.atan2(m13,m11)):(this._x=Math.atan2(-m23,m33),this._y=0);break;default:console.warn(`THREE.Euler: .setFromRotationMatrix() encountered an unknown order: `+order$3)}return this._order=order$3,update===!0&&this._onChangeCallback(),this}setFromQuaternion(q$1,order$3,update){return _matrix$2.makeRotationFromQuaternion(q$1),this.setFromRotationMatrix(_matrix$2,order$3,update)}setFromVector3(v$1,order$3=this._order){return this.set(v$1.x,v$1.y,v$1.z,order$3)}reorder(newOrder){return _quaternion$3.setFromEuler(this),this.setFromQuaternion(_quaternion$3,newOrder)}equals(euler){return euler._x===this._x&&euler._y===this._y&&euler._z===this._z&&euler._order===this._order}fromArray(array){return this._x=array[0],this._y=array[1],this._z=array[2],array[3]!==void 0&&(this._order=array[3]),this._onChangeCallback(),this}toArray(array=[],offset$1=0){return array[offset$1]=this._x,array[offset$1+1]=this._y,array[offset$1+2]=this._z,array[offset$1+3]=this._order,array}_onChange(callback){return this._onChangeCallback=callback,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};Euler.DEFAULT_ORDER=`XYZ`;var Layers=class{constructor(){this.mask=1}set(layer){this.mask=(1<>>0}enable(layer){this.mask|=1<1){for(let i$1=0;i$11){for(let i$1=0;i$10&&(object.userData=this.userData),object.layers=this.layers.mask,object.matrix=this.matrix.toArray(),object.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(object.matrixAutoUpdate=!1),this.isInstancedMesh&&(object.type=`InstancedMesh`,object.count=this.count,object.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(object.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(object.type=`BatchedMesh`,object.perObjectFrustumCulled=this.perObjectFrustumCulled,object.sortObjects=this.sortObjects,object.drawRanges=this._drawRanges,object.reservedRanges=this._reservedRanges,object.geometryInfo=this._geometryInfo.map(info=>({...info,boundingBox:info.boundingBox?info.boundingBox.toJSON():void 0,boundingSphere:info.boundingSphere?info.boundingSphere.toJSON():void 0})),object.instanceInfo=this._instanceInfo.map(info=>({...info})),object.availableInstanceIds=this._availableInstanceIds.slice(),object.availableGeometryIds=this._availableGeometryIds.slice(),object.nextIndexStart=this._nextIndexStart,object.nextVertexStart=this._nextVertexStart,object.geometryCount=this._geometryCount,object.maxInstanceCount=this._maxInstanceCount,object.maxVertexCount=this._maxVertexCount,object.maxIndexCount=this._maxIndexCount,object.geometryInitialized=this._geometryInitialized,object.matricesTexture=this._matricesTexture.toJSON(meta),object.indirectTexture=this._indirectTexture.toJSON(meta),this._colorsTexture!==null&&(object.colorsTexture=this._colorsTexture.toJSON(meta)),this.boundingSphere!==null&&(object.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(object.boundingBox=this.boundingBox.toJSON()));function serialize$1(library,element$3){return library[element$3.uuid]===void 0&&(library[element$3.uuid]=element$3.toJSON(meta)),element$3.uuid}if(this.isScene)this.background&&(this.background.isColor?object.background=this.background.toJSON():this.background.isTexture&&(object.background=this.background.toJSON(meta).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(object.environment=this.environment.toJSON(meta).uuid);else if(this.isMesh||this.isLine||this.isPoints){object.geometry=serialize$1(meta.geometries,this.geometry);let parameters=this.geometry.parameters;if(parameters!==void 0&¶meters.shapes!==void 0){let shapes=parameters.shapes;if(Array.isArray(shapes))for(let i$1=0,l$1=shapes.length;i$10){object.children=[];for(let i$1=0;i$10){object.animations=[];for(let i$1=0;i$10&&(output.geometries=geometries),materials.length>0&&(output.materials=materials),textures.length>0&&(output.textures=textures),images.length>0&&(output.images=images),shapes.length>0&&(output.shapes=shapes),skeletons.length>0&&(output.skeletons=skeletons),animations$1.length>0&&(output.animations=animations$1),nodes.length>0&&(output.nodes=nodes)}return output.object=object,output;function extractFromCache(cache$1){let values=[];for(let key$1 in cache$1){let data$10=cache$1[key$1];delete data$10.metadata,values.push(data$10)}return values}}clone(recursive){return new this.constructor().copy(this,recursive)}copy(source,recursive=!0){if(this.name=source.name,this.up.copy(source.up),this.position.copy(source.position),this.rotation.order=source.rotation.order,this.quaternion.copy(source.quaternion),this.scale.copy(source.scale),this.matrix.copy(source.matrix),this.matrixWorld.copy(source.matrixWorld),this.matrixAutoUpdate=source.matrixAutoUpdate,this.matrixWorldAutoUpdate=source.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=source.matrixWorldNeedsUpdate,this.layers.mask=source.layers.mask,this.visible=source.visible,this.castShadow=source.castShadow,this.receiveShadow=source.receiveShadow,this.frustumCulled=source.frustumCulled,this.renderOrder=source.renderOrder,this.animations=source.animations.slice(),this.userData=JSON.parse(JSON.stringify(source.userData)),recursive===!0)for(let i$1=0;i$10?target$1.multiplyScalar(1/Math.sqrt(targetLengthSq)):target$1.set(0,0,0)}static getBarycoord(point$3,a$2,b$3,c$4,target$1){_v0$1.subVectors(c$4,a$2),_v1$3.subVectors(b$3,a$2),_v2$2.subVectors(point$3,a$2);let dot00=_v0$1.dot(_v0$1),dot01=_v0$1.dot(_v1$3),dot02=_v0$1.dot(_v2$2),dot11=_v1$3.dot(_v1$3),dot12=_v1$3.dot(_v2$2),denom=dot00*dot11-dot01*dot01;if(denom===0)return target$1.set(0,0,0),null;let invDenom=1/denom,u$1=(dot11*dot02-dot01*dot12)*invDenom,v$1=(dot00*dot12-dot01*dot02)*invDenom;return target$1.set(1-u$1-v$1,v$1,u$1)}static containsPoint(point$3,a$2,b$3,c$4){return this.getBarycoord(point$3,a$2,b$3,c$4,_v3$2)===null?!1:_v3$2.x>=0&&_v3$2.y>=0&&_v3$2.x+_v3$2.y<=1}static getInterpolation(point$3,p1,p2,p3$1,v1,v2,v3,target$1){return this.getBarycoord(point$3,p1,p2,p3$1,_v3$2)===null?(target$1.x=0,target$1.y=0,`z`in target$1&&(target$1.z=0),`w`in target$1&&(target$1.w=0),null):(target$1.setScalar(0),target$1.addScaledVector(v1,_v3$2.x),target$1.addScaledVector(v2,_v3$2.y),target$1.addScaledVector(v3,_v3$2.z),target$1)}static getInterpolatedAttribute(attr,i1,i2,i3,barycoord,target$1){return _v40.setScalar(0),_v41.setScalar(0),_v42.setScalar(0),_v40.fromBufferAttribute(attr,i1),_v41.fromBufferAttribute(attr,i2),_v42.fromBufferAttribute(attr,i3),target$1.setScalar(0),target$1.addScaledVector(_v40,barycoord.x),target$1.addScaledVector(_v41,barycoord.y),target$1.addScaledVector(_v42,barycoord.z),target$1}static isFrontFacing(a$2,b$3,c$4,direction){return _v0$1.subVectors(c$4,b$3),_v1$3.subVectors(a$2,b$3),_v0$1.cross(_v1$3).dot(direction)<0}set(a$2,b$3,c$4){return this.a.copy(a$2),this.b.copy(b$3),this.c.copy(c$4),this}setFromPointsAndIndices(points,i0,i1,i2){return this.a.copy(points[i0]),this.b.copy(points[i1]),this.c.copy(points[i2]),this}setFromAttributeAndIndices(attribute,i0,i1,i2){return this.a.fromBufferAttribute(attribute,i0),this.b.fromBufferAttribute(attribute,i1),this.c.fromBufferAttribute(attribute,i2),this}clone(){return new this.constructor().copy(this)}copy(triangle){return this.a.copy(triangle.a),this.b.copy(triangle.b),this.c.copy(triangle.c),this}getArea(){return _v0$1.subVectors(this.c,this.b),_v1$3.subVectors(this.a,this.b),_v0$1.cross(_v1$3).length()*.5}getMidpoint(target$1){return target$1.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(target$1){return Triangle.getNormal(this.a,this.b,this.c,target$1)}getPlane(target$1){return target$1.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(point$3,target$1){return Triangle.getBarycoord(point$3,this.a,this.b,this.c,target$1)}getInterpolation(point$3,v1,v2,v3,target$1){return Triangle.getInterpolation(point$3,this.a,this.b,this.c,v1,v2,v3,target$1)}containsPoint(point$3){return Triangle.containsPoint(point$3,this.a,this.b,this.c)}isFrontFacing(direction){return Triangle.isFrontFacing(this.a,this.b,this.c,direction)}intersectsBox(box){return box.intersectsTriangle(this)}closestPointToPoint(p$5,target$1){let a$2=this.a,b$3=this.b,c$4=this.c,v$1,w$1;_vab.subVectors(b$3,a$2),_vac.subVectors(c$4,a$2),_vap.subVectors(p$5,a$2);let d1=_vab.dot(_vap),d2=_vac.dot(_vap);if(d1<=0&&d2<=0)return target$1.copy(a$2);_vbp.subVectors(p$5,b$3);let d3=_vab.dot(_vbp),d4=_vac.dot(_vbp);if(d3>=0&&d4<=d3)return target$1.copy(b$3);let vc=d1*d4-d3*d2;if(vc<=0&&d1>=0&&d3<=0)return v$1=d1/(d1-d3),target$1.copy(a$2).addScaledVector(_vab,v$1);_vcp.subVectors(p$5,c$4);let d5=_vab.dot(_vcp),d6=_vac.dot(_vcp);if(d6>=0&&d5<=d6)return target$1.copy(c$4);let vb=d5*d2-d1*d6;if(vb<=0&&d2>=0&&d6<=0)return w$1=d2/(d2-d6),target$1.copy(a$2).addScaledVector(_vac,w$1);let va=d3*d6-d5*d4;if(va<=0&&d4-d3>=0&&d5-d6>=0)return _vbc.subVectors(c$4,b$3),w$1=(d4-d3)/(d4-d3+(d5-d6)),target$1.copy(b$3).addScaledVector(_vbc,w$1);let denom=1/(va+vb+vc);return v$1=vb*denom,w$1=vc*denom,target$1.copy(a$2).addScaledVector(_vab,v$1).addScaledVector(_vac,w$1)}equals(triangle){return triangle.a.equals(this.a)&&triangle.b.equals(this.b)&&triangle.c.equals(this.c)}};const _colorKeywords={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},_hslA={h:0,s:0,l:0},_hslB={h:0,s:0,l:0};function hue2rgb(p$5,q$1,t){return t<0&&(t+=1),t>1&&--t,t<1/6?p$5+(q$1-p$5)*6*t:t<1/2?q$1:t<2/3?p$5+(q$1-p$5)*6*(2/3-t):p$5}var Color=class{constructor(r$2,g$2,b$3){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(r$2,g$2,b$3)}set(r$2,g$2,b$3){if(g$2===void 0&&b$3===void 0){let value$1=r$2;value$1&&value$1.isColor?this.copy(value$1):typeof value$1==`number`?this.setHex(value$1):typeof value$1==`string`&&this.setStyle(value$1)}else this.setRGB(r$2,g$2,b$3);return this}setScalar(scalar){return this.r=scalar,this.g=scalar,this.b=scalar,this}setHex(hex$2,colorSpace=SRGBColorSpace){return hex$2=Math.floor(hex$2),this.r=(hex$2>>16&255)/255,this.g=(hex$2>>8&255)/255,this.b=(hex$2&255)/255,ColorManagement.colorSpaceToWorking(this,colorSpace),this}setRGB(r$2,g$2,b$3,colorSpace=ColorManagement.workingColorSpace){return this.r=r$2,this.g=g$2,this.b=b$3,ColorManagement.colorSpaceToWorking(this,colorSpace),this}setHSL(h$3,s$1,l$1,colorSpace=ColorManagement.workingColorSpace){if(h$3=euclideanModulo(h$3,1),s$1=clamp$6(s$1,0,1),l$1=clamp$6(l$1,0,1),s$1===0)this.r=this.g=this.b=l$1;else{let p$5=l$1<=.5?l$1*(1+s$1):l$1+s$1-l$1*s$1,q$1=2*l$1-p$5;this.r=hue2rgb(q$1,p$5,h$3+1/3),this.g=hue2rgb(q$1,p$5,h$3),this.b=hue2rgb(q$1,p$5,h$3-1/3)}return ColorManagement.colorSpaceToWorking(this,colorSpace),this}setStyle(style,colorSpace=SRGBColorSpace){function handleAlpha(string$2){string$2!==void 0&&parseFloat(string$2)<1&&console.warn(`THREE.Color: Alpha component of `+style+` will be ignored.`)}let m$2;if(m$2=/^(\w+)\(([^\)]*)\)/.exec(style)){let color$2,name$2=m$2[1],components=m$2[2];switch(name$2){case`rgb`:case`rgba`:if(color$2=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components))return handleAlpha(color$2[4]),this.setRGB(Math.min(255,parseInt(color$2[1],10))/255,Math.min(255,parseInt(color$2[2],10))/255,Math.min(255,parseInt(color$2[3],10))/255,colorSpace);if(color$2=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components))return handleAlpha(color$2[4]),this.setRGB(Math.min(100,parseInt(color$2[1],10))/100,Math.min(100,parseInt(color$2[2],10))/100,Math.min(100,parseInt(color$2[3],10))/100,colorSpace);break;case`hsl`:case`hsla`:if(color$2=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components))return handleAlpha(color$2[4]),this.setHSL(parseFloat(color$2[1])/360,parseFloat(color$2[2])/100,parseFloat(color$2[3])/100,colorSpace);break;default:console.warn(`THREE.Color: Unknown color model `+style)}}else if(m$2=/^\#([A-Fa-f\d]+)$/.exec(style)){let hex$2=m$2[1],size$1=hex$2.length;if(size$1===3)return this.setRGB(parseInt(hex$2.charAt(0),16)/15,parseInt(hex$2.charAt(1),16)/15,parseInt(hex$2.charAt(2),16)/15,colorSpace);if(size$1===6)return this.setHex(parseInt(hex$2,16),colorSpace);console.warn(`THREE.Color: Invalid hex color `+style)}else if(style&&style.length>0)return this.setColorName(style,colorSpace);return this}setColorName(style,colorSpace=SRGBColorSpace){let hex$2=_colorKeywords[style.toLowerCase()];return hex$2===void 0?console.warn(`THREE.Color: Unknown color `+style):this.setHex(hex$2,colorSpace),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(color$2){return this.r=color$2.r,this.g=color$2.g,this.b=color$2.b,this}copySRGBToLinear(color$2){return this.r=SRGBToLinear(color$2.r),this.g=SRGBToLinear(color$2.g),this.b=SRGBToLinear(color$2.b),this}copyLinearToSRGB(color$2){return this.r=LinearToSRGB(color$2.r),this.g=LinearToSRGB(color$2.g),this.b=LinearToSRGB(color$2.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(colorSpace=SRGBColorSpace){return ColorManagement.workingToColorSpace(_color$2.copy(this),colorSpace),Math.round(clamp$6(_color$2.r*255,0,255))*65536+Math.round(clamp$6(_color$2.g*255,0,255))*256+Math.round(clamp$6(_color$2.b*255,0,255))}getHexString(colorSpace=SRGBColorSpace){return(`000000`+this.getHex(colorSpace).toString(16)).slice(-6)}getHSL(target$1,colorSpace=ColorManagement.workingColorSpace){ColorManagement.workingToColorSpace(_color$2.copy(this),colorSpace);let r$2=_color$2.r,g$2=_color$2.g,b$3=_color$2.b,max$1=Math.max(r$2,g$2,b$3),min$1=Math.min(r$2,g$2,b$3),hue$2,saturation,lightness=(min$1+max$1)/2;if(min$1===max$1)hue$2=0,saturation=0;else{let delta=max$1-min$1;switch(saturation=lightness<=.5?delta/(max$1+min$1):delta/(2-max$1-min$1),max$1){case r$2:hue$2=(g$2-b$3)/delta+(g$20!=value$1>0&&this.version++,this._alphaTest=value$1}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(values){if(values!==void 0)for(let key$1 in values){let newValue=values[key$1];if(newValue===void 0){console.warn(`THREE.Material: parameter '${key$1}' has value of undefined.`);continue}let currentValue=this[key$1];if(currentValue===void 0){console.warn(`THREE.Material: '${key$1}' is not a property of THREE.${this.type}.`);continue}currentValue&¤tValue.isColor?currentValue.set(newValue):currentValue&¤tValue.isVector3&&newValue&&newValue.isVector3?currentValue.copy(newValue):this[key$1]=newValue}}toJSON(meta){let isRootObject=meta===void 0||typeof meta==`string`;isRootObject&&(meta={textures:{},images:{}});let data$10={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};data$10.uuid=this.uuid,data$10.type=this.type,this.name!==``&&(data$10.name=this.name),this.color&&this.color.isColor&&(data$10.color=this.color.getHex()),this.roughness!==void 0&&(data$10.roughness=this.roughness),this.metalness!==void 0&&(data$10.metalness=this.metalness),this.sheen!==void 0&&(data$10.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(data$10.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(data$10.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(data$10.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(data$10.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(data$10.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(data$10.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(data$10.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(data$10.shininess=this.shininess),this.clearcoat!==void 0&&(data$10.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(data$10.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(data$10.clearcoatMap=this.clearcoatMap.toJSON(meta).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(data$10.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(meta).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(data$10.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(meta).uuid,data$10.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(data$10.dispersion=this.dispersion),this.iridescence!==void 0&&(data$10.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(data$10.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(data$10.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(data$10.iridescenceMap=this.iridescenceMap.toJSON(meta).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(data$10.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(meta).uuid),this.anisotropy!==void 0&&(data$10.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(data$10.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(data$10.anisotropyMap=this.anisotropyMap.toJSON(meta).uuid),this.map&&this.map.isTexture&&(data$10.map=this.map.toJSON(meta).uuid),this.matcap&&this.matcap.isTexture&&(data$10.matcap=this.matcap.toJSON(meta).uuid),this.alphaMap&&this.alphaMap.isTexture&&(data$10.alphaMap=this.alphaMap.toJSON(meta).uuid),this.lightMap&&this.lightMap.isTexture&&(data$10.lightMap=this.lightMap.toJSON(meta).uuid,data$10.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(data$10.aoMap=this.aoMap.toJSON(meta).uuid,data$10.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(data$10.bumpMap=this.bumpMap.toJSON(meta).uuid,data$10.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(data$10.normalMap=this.normalMap.toJSON(meta).uuid,data$10.normalMapType=this.normalMapType,data$10.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(data$10.displacementMap=this.displacementMap.toJSON(meta).uuid,data$10.displacementScale=this.displacementScale,data$10.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(data$10.roughnessMap=this.roughnessMap.toJSON(meta).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(data$10.metalnessMap=this.metalnessMap.toJSON(meta).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(data$10.emissiveMap=this.emissiveMap.toJSON(meta).uuid),this.specularMap&&this.specularMap.isTexture&&(data$10.specularMap=this.specularMap.toJSON(meta).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(data$10.specularIntensityMap=this.specularIntensityMap.toJSON(meta).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(data$10.specularColorMap=this.specularColorMap.toJSON(meta).uuid),this.envMap&&this.envMap.isTexture&&(data$10.envMap=this.envMap.toJSON(meta).uuid,this.combine!==void 0&&(data$10.combine=this.combine)),this.envMapRotation!==void 0&&(data$10.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(data$10.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(data$10.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(data$10.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(data$10.gradientMap=this.gradientMap.toJSON(meta).uuid),this.transmission!==void 0&&(data$10.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(data$10.transmissionMap=this.transmissionMap.toJSON(meta).uuid),this.thickness!==void 0&&(data$10.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(data$10.thicknessMap=this.thicknessMap.toJSON(meta).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(data$10.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(data$10.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(data$10.size=this.size),this.shadowSide!==null&&(data$10.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(data$10.sizeAttenuation=this.sizeAttenuation),this.blending!==NormalBlending&&(data$10.blending=this.blending),this.side!==FrontSide&&(data$10.side=this.side),this.vertexColors===!0&&(data$10.vertexColors=!0),this.opacity<1&&(data$10.opacity=this.opacity),this.transparent===!0&&(data$10.transparent=!0),this.blendSrc!==SrcAlphaFactor&&(data$10.blendSrc=this.blendSrc),this.blendDst!==OneMinusSrcAlphaFactor&&(data$10.blendDst=this.blendDst),this.blendEquation!==AddEquation&&(data$10.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(data$10.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(data$10.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(data$10.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(data$10.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(data$10.blendAlpha=this.blendAlpha),this.depthFunc!==LessEqualDepth&&(data$10.depthFunc=this.depthFunc),this.depthTest===!1&&(data$10.depthTest=this.depthTest),this.depthWrite===!1&&(data$10.depthWrite=this.depthWrite),this.colorWrite===!1&&(data$10.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(data$10.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==AlwaysStencilFunc&&(data$10.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(data$10.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(data$10.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==KeepStencilOp&&(data$10.stencilFail=this.stencilFail),this.stencilZFail!==KeepStencilOp&&(data$10.stencilZFail=this.stencilZFail),this.stencilZPass!==KeepStencilOp&&(data$10.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(data$10.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(data$10.rotation=this.rotation),this.polygonOffset===!0&&(data$10.polygonOffset=!0),this.polygonOffsetFactor!==0&&(data$10.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(data$10.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(data$10.linewidth=this.linewidth),this.dashSize!==void 0&&(data$10.dashSize=this.dashSize),this.gapSize!==void 0&&(data$10.gapSize=this.gapSize),this.scale!==void 0&&(data$10.scale=this.scale),this.dithering===!0&&(data$10.dithering=!0),this.alphaTest>0&&(data$10.alphaTest=this.alphaTest),this.alphaHash===!0&&(data$10.alphaHash=!0),this.alphaToCoverage===!0&&(data$10.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(data$10.premultipliedAlpha=!0),this.forceSinglePass===!0&&(data$10.forceSinglePass=!0),this.wireframe===!0&&(data$10.wireframe=!0),this.wireframeLinewidth>1&&(data$10.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(data$10.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(data$10.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(data$10.flatShading=!0),this.visible===!1&&(data$10.visible=!1),this.toneMapped===!1&&(data$10.toneMapped=!1),this.fog===!1&&(data$10.fog=!1),Object.keys(this.userData).length>0&&(data$10.userData=this.userData);function extractFromCache(cache$1){let values=[];for(let key$1 in cache$1){let data$11=cache$1[key$1];delete data$11.metadata,values.push(data$11)}return values}if(isRootObject){let textures=extractFromCache(meta.textures),images=extractFromCache(meta.images);textures.length>0&&(data$10.textures=textures),images.length>0&&(data$10.images=images)}return data$10}clone(){return new this.constructor().copy(this)}copy(source){this.name=source.name,this.blending=source.blending,this.side=source.side,this.vertexColors=source.vertexColors,this.opacity=source.opacity,this.transparent=source.transparent,this.blendSrc=source.blendSrc,this.blendDst=source.blendDst,this.blendEquation=source.blendEquation,this.blendSrcAlpha=source.blendSrcAlpha,this.blendDstAlpha=source.blendDstAlpha,this.blendEquationAlpha=source.blendEquationAlpha,this.blendColor.copy(source.blendColor),this.blendAlpha=source.blendAlpha,this.depthFunc=source.depthFunc,this.depthTest=source.depthTest,this.depthWrite=source.depthWrite,this.stencilWriteMask=source.stencilWriteMask,this.stencilFunc=source.stencilFunc,this.stencilRef=source.stencilRef,this.stencilFuncMask=source.stencilFuncMask,this.stencilFail=source.stencilFail,this.stencilZFail=source.stencilZFail,this.stencilZPass=source.stencilZPass,this.stencilWrite=source.stencilWrite;let srcPlanes=source.clippingPlanes,dstPlanes=null;if(srcPlanes!==null){let n$2=srcPlanes.length;dstPlanes=Array(n$2);for(let i$1=0;i$1!==n$2;++i$1)dstPlanes[i$1]=srcPlanes[i$1].clone()}return this.clippingPlanes=dstPlanes,this.clipIntersection=source.clipIntersection,this.clipShadows=source.clipShadows,this.shadowSide=source.shadowSide,this.colorWrite=source.colorWrite,this.precision=source.precision,this.polygonOffset=source.polygonOffset,this.polygonOffsetFactor=source.polygonOffsetFactor,this.polygonOffsetUnits=source.polygonOffsetUnits,this.dithering=source.dithering,this.alphaTest=source.alphaTest,this.alphaHash=source.alphaHash,this.alphaToCoverage=source.alphaToCoverage,this.premultipliedAlpha=source.premultipliedAlpha,this.forceSinglePass=source.forceSinglePass,this.visible=source.visible,this.toneMapped=source.toneMapped,this.userData=JSON.parse(JSON.stringify(source.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(value$1){value$1===!0&&this.version++}},MeshBasicMaterial=class extends Material{constructor(parameters){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Color(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 Euler,this.combine=MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapRotation.copy(source.envMapRotation),this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.fog=source.fog,this}};const _tables=_generateTables();function _generateTables(){let buffer$1=new ArrayBuffer(4),floatView=new Float32Array(buffer$1),uint32View=new Uint32Array(buffer$1),baseTable=new Uint32Array(512),shiftTable=new Uint32Array(512);for(let i$1=0;i$1<256;++i$1){let e$3=i$1-127;e$3<-27?(baseTable[i$1]=0,baseTable[i$1|256]=32768,shiftTable[i$1]=24,shiftTable[i$1|256]=24):e$3<-14?(baseTable[i$1]=1024>>-e$3-14,baseTable[i$1|256]=1024>>-e$3-14|32768,shiftTable[i$1]=-e$3-1,shiftTable[i$1|256]=-e$3-1):e$3<=15?(baseTable[i$1]=e$3+15<<10,baseTable[i$1|256]=e$3+15<<10|32768,shiftTable[i$1]=13,shiftTable[i$1|256]=13):e$3<128?(baseTable[i$1]=31744,baseTable[i$1|256]=64512,shiftTable[i$1]=24,shiftTable[i$1|256]=24):(baseTable[i$1]=31744,baseTable[i$1|256]=64512,shiftTable[i$1]=13,shiftTable[i$1|256]=13)}let mantissaTable=new Uint32Array(2048),exponentTable=new Uint32Array(64),offsetTable=new Uint32Array(64);for(let i$1=1;i$1<1024;++i$1){let m$2=i$1<<13,e$3=0;for(;!(m$2&8388608);)m$2<<=1,e$3-=8388608;m$2&=-8388609,e$3+=947912704,mantissaTable[i$1]=m$2|e$3}for(let i$1=1024;i$1<2048;++i$1)mantissaTable[i$1]=939524096+(i$1-1024<<13);for(let i$1=1;i$1<31;++i$1)exponentTable[i$1]=i$1<<23;exponentTable[31]=1199570944,exponentTable[32]=2147483648;for(let i$1=33;i$1<63;++i$1)exponentTable[i$1]=2147483648+(i$1-32<<23);exponentTable[63]=3347054592;for(let i$1=1;i$1<64;++i$1)i$1!==32&&(offsetTable[i$1]=1024);return{floatView,uint32View,baseTable,shiftTable,mantissaTable,exponentTable,offsetTable}}function toHalfFloat(val){Math.abs(val)>65504&&console.warn(`THREE.DataUtils.toHalfFloat(): Value out of range.`),val=clamp$6(val,-65504,65504),_tables.floatView[0]=val;let f$3=_tables.uint32View[0],e$3=f$3>>23&511;return _tables.baseTable[e$3]+((f$3&8388607)>>_tables.shiftTable[e$3])}function fromHalfFloat(val){let m$2=val>>10;return _tables.uint32View[0]=_tables.mantissaTable[_tables.offsetTable[m$2]+(val&1023)]+_tables.exponentTable[m$2],_tables.floatView[0]}var DataUtils=class{static toHalfFloat(val){return toHalfFloat(val)}static fromHalfFloat(val){return fromHalfFloat(val)}};const _vector$9=new Vector3,_vector2$1=new Vector2;let _id$2=0;var BufferAttribute=class{constructor(array,itemSize,normalized=!1){if(Array.isArray(array))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:_id$2++}),this.name=``,this.array=array,this.itemSize=itemSize,this.count=array===void 0?0:array.length/itemSize,this.normalized=normalized,this.usage=StaticDrawUsage,this.updateRanges=[],this.gpuType=FloatType,this.version=0}onUploadCallback(){}set needsUpdate(value$1){value$1===!0&&this.version++}setUsage(value$1){return this.usage=value$1,this}addUpdateRange(start,count$1){this.updateRanges.push({start,count:count$1})}clearUpdateRanges(){this.updateRanges.length=0}copy(source){return this.name=source.name,this.array=new source.array.constructor(source.array),this.itemSize=source.itemSize,this.count=source.count,this.normalized=source.normalized,this.usage=source.usage,this.gpuType=source.gpuType,this}copyAt(index1,attribute,index2){index1*=this.itemSize,index2*=attribute.itemSize;for(let i$1=0,l$1=this.itemSize;i$1positionAttribute.count&&console.warn(`THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),positionAttribute.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Box3);let position$2=this.attributes.position,morphAttributesPosition=this.morphAttributes.position;if(position$2&&position$2.isGLBufferAttribute){console.error(`THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new Vector3(-1/0,-1/0,-1/0),new Vector3(1/0,1/0,1/0));return}if(position$2!==void 0){if(this.boundingBox.setFromBufferAttribute(position$2),morphAttributesPosition)for(let i$1=0,il=morphAttributesPosition.length;i$10&&(data$10.userData=this.userData),this.parameters!==void 0){let parameters=this.parameters;for(let key$1 in parameters)parameters[key$1]!==void 0&&(data$10[key$1]=parameters[key$1]);return data$10}data$10.data={attributes:{}};let index$1=this.index;index$1!==null&&(data$10.data.index={type:index$1.array.constructor.name,array:Array.prototype.slice.call(index$1.array)});let attributes=this.attributes;for(let key$1 in attributes){let attribute=attributes[key$1];data$10.data.attributes[key$1]=attribute.toJSON(data$10.data)}let morphAttributes={},hasMorphAttributes=!1;for(let key$1 in this.morphAttributes){let attributeArray=this.morphAttributes[key$1],array=[];for(let i$1=0,il=attributeArray.length;i$10&&(morphAttributes[key$1]=array,hasMorphAttributes=!0)}hasMorphAttributes&&(data$10.data.morphAttributes=morphAttributes,data$10.data.morphTargetsRelative=this.morphTargetsRelative);let groups=this.groups;groups.length>0&&(data$10.data.groups=JSON.parse(JSON.stringify(groups)));let boundingSphere=this.boundingSphere;return boundingSphere!==null&&(data$10.data.boundingSphere=boundingSphere.toJSON()),data$10}clone(){return new this.constructor().copy(this)}copy(source){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let data$10={};this.name=source.name;let index$1=source.index;index$1!==null&&this.setIndex(index$1.clone());let attributes=source.attributes;for(let name$2 in attributes){let attribute=attributes[name$2];this.setAttribute(name$2,attribute.clone(data$10))}let morphAttributes=source.morphAttributes;for(let name$2 in morphAttributes){let array=[],morphAttribute=morphAttributes[name$2];for(let i$1=0,l$1=morphAttribute.length;i$10){let morphAttribute=morphAttributes[keys$3[0]];if(morphAttribute!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let m$2=0,ml=morphAttribute.length;m$2(raycaster.far-raycaster.near)**2))&&(_inverseMatrix$3.copy(matrixWorld).invert(),_ray$3.copy(raycaster.ray).applyMatrix4(_inverseMatrix$3),!(geometry.boundingBox!==null&&_ray$3.intersectsBox(geometry.boundingBox)===!1)&&this._computeIntersections(raycaster,intersects$1,_ray$3)))}_computeIntersections(raycaster,intersects$1,rayLocalSpace){let intersection,geometry=this.geometry,material=this.material,index$1=geometry.index,position$2=geometry.attributes.position,uv=geometry.attributes.uv,uv1=geometry.attributes.uv1,normal=geometry.attributes.normal,groups=geometry.groups,drawRange=geometry.drawRange;if(index$1!==null)if(Array.isArray(material))for(let i$1=0,il=groups.length;i$1raycaster.far?null:{distance,point:_intersectionPointWorld.clone(),object}}function checkGeometryIntersection(object,material,raycaster,ray,uv,uv1,normal,a$2,b$3,c$4){object.getVertexPosition(a$2,_vA$1),object.getVertexPosition(b$3,_vB$1),object.getVertexPosition(c$4,_vC$1);let intersection=checkIntersection$1(object,material,raycaster,ray,_vA$1,_vB$1,_vC$1,_intersectionPoint);if(intersection){let barycoord=new Vector3;Triangle.getBarycoord(_intersectionPoint,_vA$1,_vB$1,_vC$1,barycoord),uv&&(intersection.uv=Triangle.getInterpolatedAttribute(uv,a$2,b$3,c$4,barycoord,new Vector2)),uv1&&(intersection.uv1=Triangle.getInterpolatedAttribute(uv1,a$2,b$3,c$4,barycoord,new Vector2)),normal&&(intersection.normal=Triangle.getInterpolatedAttribute(normal,a$2,b$3,c$4,barycoord,new Vector3),intersection.normal.dot(ray.direction)>0&&intersection.normal.multiplyScalar(-1));let face={a:a$2,b:b$3,c:c$4,normal:new Vector3,materialIndex:0};Triangle.getNormal(_vA$1,_vB$1,_vC$1,face.normal),intersection.face=face,intersection.barycoord=barycoord}return intersection}var BoxGeometry=class BoxGeometry extends BufferGeometry{constructor(width=1,height=1,depth=1,widthSegments=1,heightSegments=1,depthSegments=1){super(),this.type=`BoxGeometry`,this.parameters={width,height,depth,widthSegments,heightSegments,depthSegments};let scope=this;widthSegments=Math.floor(widthSegments),heightSegments=Math.floor(heightSegments),depthSegments=Math.floor(depthSegments);let indices=[],vertices=[],normals=[],uvs=[],numberOfVertices=0,groupStart=0;buildPlane(`z`,`y`,`x`,-1,-1,depth,height,width,depthSegments,heightSegments,0),buildPlane(`z`,`y`,`x`,1,-1,depth,height,-width,depthSegments,heightSegments,1),buildPlane(`x`,`z`,`y`,1,1,width,depth,height,widthSegments,depthSegments,2),buildPlane(`x`,`z`,`y`,1,-1,width,depth,-height,widthSegments,depthSegments,3),buildPlane(`x`,`y`,`z`,1,-1,width,height,depth,widthSegments,heightSegments,4),buildPlane(`x`,`y`,`z`,-1,-1,width,height,-depth,widthSegments,heightSegments,5),this.setIndex(indices),this.setAttribute(`position`,new Float32BufferAttribute(vertices,3)),this.setAttribute(`normal`,new Float32BufferAttribute(normals,3)),this.setAttribute(`uv`,new Float32BufferAttribute(uvs,2));function buildPlane(u$1,v$1,w$1,udir,vdir,width$1,height$1,depth$1,gridX,gridY,materialIndex){let segmentWidth=width$1/gridX,segmentHeight=height$1/gridY,widthHalf=width$1/2,heightHalf=height$1/2,depthHalf=depth$1/2,gridX1=gridX+1,gridY1=gridY+1,vertexCounter=0,groupCount=0,vector=new Vector3;for(let iy=0;iy0?1:-1,normals.push(vector.x,vector.y,vector.z),uvs.push(ix/gridX),uvs.push(1-iy/gridY),vertexCounter+=1}}for(let iy=0;iydefineCustomElement(options$1,extraOptions,createSSRApp),BaseClass=typeof HTMLElement<`u`?HTMLElement:class{};var VueElement=class VueElement extends BaseClass{constructor(_def,_props={},_createApp=createApp){super(),this._def=_def,this._props=_props,this._createApp=_createApp,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&&_createApp!==createApp?this._root=this.shadowRoot:_def.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 parent=this;for(;parent&&=parent.parentNode||parent.host;)if(parent instanceof VueElement){this._parent=parent;break}this._instance||(this._resolved?this._mount(this._def):parent&&parent._pendingResolve?this._pendingResolve=parent._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(parent=this._parent){parent&&(this._instance.parent=parent._instance,this._inheritParentContext(parent))}_inheritParentContext(parent=this._parent){parent&&this._app&&Object.setPrototypeOf(this._app._context.provides,parent._instance.provides)}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=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 i$1=0;i$1{for(let m$2 of mutations$1)this._setAttr(m$2.attributeName)}),this._ob.observe(this,{attributes:!0});let resolve$1=(def$1,isAsync$1=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props,styles}=def$1,numberProps;if(props&&!isArray$5(props))for(let key$1 in props){let opt=props[key$1];(opt===Number||opt&&opt.type===Number)&&(key$1 in this._props&&(this._props[key$1]=toNumber(this._props[key$1])),(numberProps||=Object.create(null))[camelize(key$1)]=!0)}this._numberProps=numberProps,this._resolveProps(def$1),this.shadowRoot&&this._applyStyles(styles),this._mount(def$1)},asyncDef=this._def.__asyncLoader;asyncDef?this._pendingResolve=asyncDef().then(def$1=>{def$1.configureApp=this._def.configureApp,resolve$1(this._def=def$1,!0)}):resolve$1(this._def)}_mount(def$1){this._app=this._createApp(def$1),this._inheritParentContext(),def$1.configureApp&&def$1.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let exposed=this._instance&&this._instance.exposed;if(exposed)for(let key$1 in exposed)hasOwn$4(this,key$1)||Object.defineProperty(this,key$1,{get:()=>unref(exposed[key$1])})}_resolveProps(def$1){let{props}=def$1,declaredPropKeys=isArray$5(props)?props:Object.keys(props||{});for(let key$1 of Object.keys(this))key$1[0]!==`_`&&declaredPropKeys.includes(key$1)&&this._setProp(key$1,this[key$1]);for(let key$1 of declaredPropKeys.map(camelize))Object.defineProperty(this,key$1,{get(){return this._getProp(key$1)},set(val){this._setProp(key$1,val,!0,!0)}})}_setAttr(key$1){if(key$1.startsWith(`data-v-`))return;let has=this.hasAttribute(key$1),value$1=has?this.getAttribute(key$1):REMOVAL,camelKey=camelize(key$1);has&&this._numberProps&&this._numberProps[camelKey]&&(value$1=toNumber(value$1)),this._setProp(camelKey,value$1,!1,!0)}_getProp(key$1){return this._props[key$1]}_setProp(key$1,val,shouldReflect=!0,shouldUpdate=!1){if(val!==this._props[key$1]&&(val===REMOVAL?delete this._props[key$1]:(this._props[key$1]=val,key$1===`key`&&this._app&&(this._app._ceVNode.key=val)),shouldUpdate&&this._instance&&this._update(),shouldReflect)){let ob=this._ob;ob&&ob.disconnect(),val===!0?this.setAttribute(hyphenate$2(key$1),``):typeof val==`string`||typeof val==`number`?this.setAttribute(hyphenate$2(key$1),val+``):val||this.removeAttribute(hyphenate$2(key$1)),ob&&ob.observe(this,{attributes:!0})}}_update(){let vnode=this._createVNode();this._app&&(vnode.appContext=this._app._context),render(vnode,this._root)}_createVNode(){let baseProps={};this.shadowRoot||(baseProps.onVnodeMounted=baseProps.onVnodeUpdated=this._renderSlots.bind(this));let vnode=createVNode(this._def,extend$1(baseProps,this._props));return this._instance||(vnode.ce=instance=>{this._instance=instance,instance.ce=this,instance.isCE=!0;let dispatch=(event,args)=>{this.dispatchEvent(new CustomEvent(event,isPlainObject$6(args[0])?extend$1({detail:args},args[0]):{detail:args}))};instance.emit=(event,...args)=>{dispatch(event,args),hyphenate$2(event)!==event&&dispatch(hyphenate$2(event),args)},this._setParent()}),vnode}_applyStyles(styles,owner){if(!styles)return;if(owner){if(owner===this._def||this._styleChildren.has(owner))return;this._styleChildren.add(owner)}let nonce=this._nonce;for(let i$1=styles.length-1;i$1>=0;i$1--){let s$1=document.createElement(`style`);nonce&&s$1.setAttribute(`nonce`,nonce),s$1.textContent=styles[i$1],this.shadowRoot.prepend(s$1)}}_parseSlots(){let slots=this._slots={},n$2;for(;n$2=this.firstChild;){let slotName=n$2.nodeType===1&&n$2.getAttribute(`slot`)||`default`;(slots[slotName]||(slots[slotName]=[])).push(n$2),this.removeChild(n$2)}}_renderSlots(){let outlets=(this._teleportTarget||this).querySelectorAll(`slot`),scopeId=this._instance.type.__scopeId;for(let i$1=0;i$1(delete t.props.mode,t),TransitionGroupImpl=decorate({name:`TransitionGroup`,props:extend$1({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(props,{slots}){let instance=getCurrentInstance(),state=useTransitionState(),prevChildren,children;return onUpdated(()=>{if(!prevChildren.length)return;let moveClass=props.moveClass||`${props.name||`v`}-move`;if(!hasCSSTransform(prevChildren[0].el,instance.vnode.el,moveClass)){prevChildren=[];return}prevChildren.forEach(callPendingCbs),prevChildren.forEach(recordPosition);let movedChildren=prevChildren.filter(applyTranslation);forceReflow(),movedChildren.forEach(c$4=>{let el=c$4.el,style=el.style;addTransitionClass(el,moveClass),style.transform=style.webkitTransform=style.transitionDuration=``;let cb$1=el[moveCbKey]=e$3=>{e$3&&e$3.target!==el||(!e$3||/transform$/.test(e$3.propertyName))&&(el.removeEventListener(`transitionend`,cb$1),el[moveCbKey]=null,removeTransitionClass(el,moveClass))};el.addEventListener(`transitionend`,cb$1)}),prevChildren=[]}),()=>{let rawProps=toRaw(props),cssTransitionProps=resolveTransitionProps(rawProps),tag=rawProps.tag||Fragment;if(prevChildren=[],children)for(let i$1=0;i$1{cls.split(/\s+/).forEach(c$4=>c$4&&clone$2.classList.remove(c$4))}),moveClass.split(/\s+/).forEach(c$4=>c$4&&clone$2.classList.add(c$4)),clone$2.style.display=`none`;let container=root$3.nodeType===1?root$3:root$3.parentNode;container.appendChild(clone$2);let{hasTransform}=getTransitionInfo(clone$2);return container.removeChild(clone$2),hasTransform}const getModelAssigner=vnode=>{let fn$5=vnode.props[`onUpdate:modelValue`]||!1;return isArray$5(fn$5)?value$1=>invokeArrayFns(fn$5,value$1):fn$5};function onCompositionStart(e$3){e$3.target.composing=!0}function onCompositionEnd(e$3){let target$1=e$3.target;target$1.composing&&(target$1.composing=!1,target$1.dispatchEvent(new Event(`input`)))}const assignKey=Symbol(`_assign`),vModelText={created(el,{modifiers:{lazy,trim,number:number$3}},vnode){el[assignKey]=getModelAssigner(vnode);let castToNumber=number$3||vnode.props&&vnode.props.type===`number`;addEventListener(el,lazy?`change`:`input`,e$3=>{if(e$3.target.composing)return;let domValue=el.value;trim&&(domValue=domValue.trim()),castToNumber&&(domValue=looseToNumber(domValue)),el[assignKey](domValue)}),trim&&addEventListener(el,`change`,()=>{el.value=el.value.trim()}),lazy||(addEventListener(el,`compositionstart`,onCompositionStart),addEventListener(el,`compositionend`,onCompositionEnd),addEventListener(el,`change`,onCompositionEnd))},mounted(el,{value:value$1}){el.value=value$1??``},beforeUpdate(el,{value:value$1,oldValue,modifiers:{lazy,trim,number:number$3}},vnode){if(el[assignKey]=getModelAssigner(vnode),el.composing)return;let elValue=(number$3||el.type===`number`)&&!/^0\d/.test(el.value)?looseToNumber(el.value):el.value,newValue=value$1??``;elValue!==newValue&&(document.activeElement===el&&el.type!==`range`&&(lazy&&value$1===oldValue||trim&&el.value.trim()===newValue)||(el.value=newValue))}},vModelCheckbox={deep:!0,created(el,_$2,vnode){el[assignKey]=getModelAssigner(vnode),addEventListener(el,`change`,()=>{let modelValue=el._modelValue,elementValue=getValue$1(el),checked=el.checked,assign$3=el[assignKey];if(isArray$5(modelValue)){let index$1=looseIndexOf(modelValue,elementValue),found=index$1!==-1;if(checked&&!found)assign$3(modelValue.concat(elementValue));else if(!checked&&found){let filtered=[...modelValue];filtered.splice(index$1,1),assign$3(filtered)}}else if(isSet(modelValue)){let cloned=new Set(modelValue);checked?cloned.add(elementValue):cloned.delete(elementValue),assign$3(cloned)}else assign$3(getCheckboxValue(el,checked))})},mounted:setChecked,beforeUpdate(el,binding,vnode){el[assignKey]=getModelAssigner(vnode),setChecked(el,binding,vnode)}};function setChecked(el,{value:value$1,oldValue},vnode){el._modelValue=value$1;let checked;if(isArray$5(value$1))checked=looseIndexOf(value$1,vnode.props.value)>-1;else if(isSet(value$1))checked=value$1.has(vnode.props.value);else{if(value$1===oldValue)return;checked=looseEqual(value$1,getCheckboxValue(el,!0))}el.checked!==checked&&(el.checked=checked)}const vModelRadio={created(el,{value:value$1},vnode){el.checked=looseEqual(value$1,vnode.props.value),el[assignKey]=getModelAssigner(vnode),addEventListener(el,`change`,()=>{el[assignKey](getValue$1(el))})},beforeUpdate(el,{value:value$1,oldValue},vnode){el[assignKey]=getModelAssigner(vnode),value$1!==oldValue&&(el.checked=looseEqual(value$1,vnode.props.value))}},vModelSelect={deep:!0,created(el,{value:value$1,modifiers:{number:number$3}},vnode){let isSetModel=isSet(value$1);addEventListener(el,`change`,()=>{let selectedVal=Array.prototype.filter.call(el.options,o$1=>o$1.selected).map(o$1=>number$3?looseToNumber(getValue$1(o$1)):getValue$1(o$1));el[assignKey](el.multiple?isSetModel?new Set(selectedVal):selectedVal:selectedVal[0]),el._assigning=!0,nextTick(()=>{el._assigning=!1})}),el[assignKey]=getModelAssigner(vnode)},mounted(el,{value:value$1}){setSelected(el,value$1)},beforeUpdate(el,_binding,vnode){el[assignKey]=getModelAssigner(vnode)},updated(el,{value:value$1}){el._assigning||setSelected(el,value$1)}};function setSelected(el,value$1){let isMultiple=el.multiple,isArrayValue=isArray$5(value$1);if(!(isMultiple&&!isArrayValue&&!isSet(value$1))){for(let i$1=0,l$1=el.options.length;i$1String(v$1)===String(optionValue)):option$1.selected=looseIndexOf(value$1,optionValue)>-1}else option$1.selected=value$1.has(optionValue);else if(looseEqual(getValue$1(option$1),value$1)){el.selectedIndex!==i$1&&(el.selectedIndex=i$1);return}}!isMultiple&&el.selectedIndex!==-1&&(el.selectedIndex=-1)}}function getValue$1(el){return`_value`in el?el._value:el.value}function getCheckboxValue(el,checked){let key$1=checked?`_trueValue`:`_falseValue`;return key$1 in el?el[key$1]:checked}const vModelDynamic={created(el,binding,vnode){callModelHook(el,binding,vnode,null,`created`)},mounted(el,binding,vnode){callModelHook(el,binding,vnode,null,`mounted`)},beforeUpdate(el,binding,vnode,prevVNode){callModelHook(el,binding,vnode,prevVNode,`beforeUpdate`)},updated(el,binding,vnode,prevVNode){callModelHook(el,binding,vnode,prevVNode,`updated`)}};function resolveDynamicModel(tagName,type){switch(tagName){case`SELECT`:return vModelSelect;case`TEXTAREA`:return vModelText;default:switch(type){case`checkbox`:return vModelCheckbox;case`radio`:return vModelRadio;default:return vModelText}}}function callModelHook(el,binding,vnode,prevVNode,hook){let modelToUse=resolveDynamicModel(el.tagName,vnode.props&&vnode.props.type),fn$5=modelToUse[hook];fn$5&&fn$5(el,binding,vnode,prevVNode)}function initVModelForSSR(){vModelText.getSSRProps=({value:value$1})=>({value:value$1}),vModelRadio.getSSRProps=({value:value$1},vnode)=>{if(vnode.props&&looseEqual(vnode.props.value,value$1))return{checked:!0}},vModelCheckbox.getSSRProps=({value:value$1},vnode)=>{if(isArray$5(value$1)){if(vnode.props&&looseIndexOf(value$1,vnode.props.value)>-1)return{checked:!0}}else if(isSet(value$1)){if(vnode.props&&value$1.has(vnode.props.value))return{checked:!0}}else if(value$1)return{checked:!0}},vModelDynamic.getSSRProps=(binding,vnode)=>{if(typeof vnode.type!=`string`)return;let modelToUse=resolveDynamicModel(vnode.type.toUpperCase(),vnode.props&&vnode.props.type);if(modelToUse.getSSRProps)return modelToUse.getSSRProps(binding,vnode)}}const systemModifiers=[`ctrl`,`shift`,`alt`,`meta`],modifierGuards={stop:e$3=>e$3.stopPropagation(),prevent:e$3=>e$3.preventDefault(),self:e$3=>e$3.target!==e$3.currentTarget,ctrl:e$3=>!e$3.ctrlKey,shift:e$3=>!e$3.shiftKey,alt:e$3=>!e$3.altKey,meta:e$3=>!e$3.metaKey,left:e$3=>`button`in e$3&&e$3.button!==0,middle:e$3=>`button`in e$3&&e$3.button!==1,right:e$3=>`button`in e$3&&e$3.button!==2,exact:(e$3,modifiers)=>systemModifiers.some(m$2=>e$3[`${m$2}Key`]&&!modifiers.includes(m$2))},withModifiers=(fn$5,modifiers)=>{let cache$1=fn$5._withMods||={},cacheKey=modifiers.join(`.`);return cache$1[cacheKey]||(cache$1[cacheKey]=(event,...args)=>{for(let i$1=0;i$1{let cache$1=fn$5._withKeys||={},cacheKey=modifiers.join(`.`);return cache$1[cacheKey]||(cache$1[cacheKey]=event=>{if(!(`key`in event))return;let eventKey=hyphenate$2(event.key);if(modifiers.some(k$4=>k$4===eventKey||keyNames[k$4]===eventKey))return fn$5(event)})},rendererOptions=extend$1({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||=createRenderer(rendererOptions)}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(...args)=>{ensureRenderer().render(...args)},hydrate=(...args)=>{ensureHydrationRenderer().hydrate(...args)},createApp=(...args)=>{let app=ensureRenderer().createApp(...args),{mount}=app;return app.mount=containerOrSelector=>{let container=normalizeContainer(containerOrSelector);if(!container)return;let component=app._component;!isFunction$1(component)&&!component.render&&!component.template&&(component.template=container.innerHTML),container.nodeType===1&&(container.textContent=``);let proxy=mount(container,!1,resolveRootNamespace(container));return container instanceof Element&&(container.removeAttribute(`v-cloak`),container.setAttribute(`data-v-app`,``)),proxy},app},createSSRApp=(...args)=>{let app=ensureHydrationRenderer().createApp(...args),{mount}=app;return app.mount=containerOrSelector=>{let container=normalizeContainer(containerOrSelector);if(container)return mount(container,!0,resolveRootNamespace(container))},app};function resolveRootNamespace(container){if(container instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&container instanceof MathMLElement)return`mathml`}function normalizeContainer(container){if(isString$2(container)){let res=document.querySelector(container);return res}return container}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())};var vue_runtime_esm_bundler_exports={};__export(vue_runtime_esm_bundler_exports,{BaseTransition:()=>BaseTransition,BaseTransitionPropsValidators:()=>BaseTransitionPropsValidators,Comment:()=>Comment,DeprecationTypes:()=>DeprecationTypes,EffectScope:()=>EffectScope,ErrorCodes:()=>ErrorCodes,ErrorTypeStrings:()=>ErrorTypeStrings,Fragment:()=>Fragment,KeepAlive:()=>KeepAlive,ReactiveEffect:()=>ReactiveEffect,Static:()=>Static,Suspense:()=>Suspense,Teleport:()=>Teleport,Text:()=>Text,TrackOpTypes:()=>TrackOpTypes,Transition:()=>Transition,TransitionGroup:()=>TransitionGroup,TriggerOpTypes:()=>TriggerOpTypes,VueElement:()=>VueElement,assertNumber:()=>assertNumber,callWithAsyncErrorHandling:()=>callWithAsyncErrorHandling,callWithErrorHandling:()=>callWithErrorHandling,camelize:()=>camelize,capitalize:()=>capitalize$1,cloneVNode:()=>cloneVNode,compatUtils:()=>compatUtils,compile:()=>compile$1,computed:()=>computed,createApp:()=>createApp,createBlock:()=>createBlock,createCommentVNode:()=>createCommentVNode,createElementBlock:()=>createElementBlock,createElementVNode:()=>createBaseVNode,createHydrationRenderer:()=>createHydrationRenderer,createPropsRestProxy:()=>createPropsRestProxy,createRenderer:()=>createRenderer,createSSRApp:()=>createSSRApp,createSlots:()=>createSlots,createStaticVNode:()=>createStaticVNode,createTextVNode:()=>createTextVNode,createVNode:()=>createVNode,customRef:()=>customRef,defineAsyncComponent:()=>defineAsyncComponent,defineComponent:()=>defineComponent,defineCustomElement:()=>defineCustomElement,defineEmits:()=>defineEmits,defineExpose:()=>defineExpose,defineModel:()=>defineModel,defineOptions:()=>defineOptions,defineProps:()=>defineProps,defineSSRCustomElement:()=>defineSSRCustomElement,defineSlots:()=>defineSlots,devtools:()=>devtools$2,effect:()=>effect,effectScope:()=>effectScope,getCurrentInstance:()=>getCurrentInstance,getCurrentScope:()=>getCurrentScope,getCurrentWatcher:()=>getCurrentWatcher,getTransitionRawChildren:()=>getTransitionRawChildren,guardReactiveProps:()=>guardReactiveProps,h:()=>h,handleError:()=>handleError,hasInjectionContext:()=>hasInjectionContext,hydrate:()=>hydrate,hydrateOnIdle:()=>hydrateOnIdle,hydrateOnInteraction:()=>hydrateOnInteraction,hydrateOnMediaQuery:()=>hydrateOnMediaQuery,hydrateOnVisible:()=>hydrateOnVisible,initCustomFormatter:()=>initCustomFormatter,initDirectivesForSSR:()=>initDirectivesForSSR,inject:()=>inject,isMemoSame:()=>isMemoSame,isProxy:()=>isProxy,isReactive:()=>isReactive,isReadonly:()=>isReadonly,isRef:()=>isRef,isRuntimeOnly:()=>isRuntimeOnly,isShallow:()=>isShallow,isVNode:()=>isVNode$1,markRaw:()=>markRaw,mergeDefaults:()=>mergeDefaults,mergeModels:()=>mergeModels,mergeProps:()=>mergeProps,nextTick:()=>nextTick,normalizeClass:()=>normalizeClass,normalizeProps:()=>normalizeProps,normalizeStyle:()=>normalizeStyle,onActivated:()=>onActivated,onBeforeMount:()=>onBeforeMount,onBeforeUnmount:()=>onBeforeUnmount,onBeforeUpdate:()=>onBeforeUpdate,onDeactivated:()=>onDeactivated,onErrorCaptured:()=>onErrorCaptured,onMounted:()=>onMounted,onRenderTracked:()=>onRenderTracked,onRenderTriggered:()=>onRenderTriggered,onScopeDispose:()=>onScopeDispose,onServerPrefetch:()=>onServerPrefetch,onUnmounted:()=>onUnmounted,onUpdated:()=>onUpdated,onWatcherCleanup:()=>onWatcherCleanup,openBlock:()=>openBlock,popScopeId:()=>popScopeId,provide:()=>provide,proxyRefs:()=>proxyRefs,pushScopeId:()=>pushScopeId,queuePostFlushCb:()=>queuePostFlushCb,reactive:()=>reactive,readonly:()=>readonly,ref:()=>ref,registerRuntimeCompiler:()=>registerRuntimeCompiler,render:()=>render,renderList:()=>renderList,renderSlot:()=>renderSlot,resolveComponent:()=>resolveComponent,resolveDirective:()=>resolveDirective,resolveDynamicComponent:()=>resolveDynamicComponent,resolveFilter:()=>resolveFilter,resolveTransitionHooks:()=>resolveTransitionHooks,setBlockTracking:()=>setBlockTracking,setDevtoolsHook:()=>setDevtoolsHook,setTransitionHooks:()=>setTransitionHooks,shallowReactive:()=>shallowReactive,shallowReadonly:()=>shallowReadonly,shallowRef:()=>shallowRef,ssrContextKey:()=>ssrContextKey,ssrUtils:()=>ssrUtils,stop:()=>stop,toDisplayString:()=>toDisplayString,toHandlerKey:()=>toHandlerKey,toHandlers:()=>toHandlers,toRaw:()=>toRaw,toRef:()=>toRef,toRefs:()=>toRefs,toValue:()=>toValue$1,transformVNodeArgs:()=>transformVNodeArgs,triggerRef:()=>triggerRef,unref:()=>unref,useAttrs:()=>useAttrs,useCssModule:()=>useCssModule,useCssVars:()=>useCssVars,useHost:()=>useHost,useId:()=>useId$1,useModel:()=>useModel,useSSRContext:()=>useSSRContext,useShadowRoot:()=>useShadowRoot,useSlots:()=>useSlots,useTemplateRef:()=>useTemplateRef,useTransitionState:()=>useTransitionState,vModelCheckbox:()=>vModelCheckbox,vModelDynamic:()=>vModelDynamic,vModelRadio:()=>vModelRadio,vModelSelect:()=>vModelSelect,vModelText:()=>vModelText,vShow:()=>vShow,version:()=>version,warn:()=>warn$1,watch:()=>watch,watchEffect:()=>watchEffect,watchPostEffect:()=>watchPostEffect,watchSyncEffect:()=>watchSyncEffect,withAsyncContext:()=>withAsyncContext,withCtx:()=>withCtx,withDefaults:()=>withDefaults,withDirectives:()=>withDirectives,withKeys:()=>withKeys,withMemo:()=>withMemo,withModifiers:()=>withModifiers,withScopeId:()=>withScopeId});const compile$1=()=>{},REVISION=`178`,MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},CullFaceNone=0,CullFaceBack=1,CullFaceFront=2,CullFaceFrontBack=3,BasicShadowMap=0,PCFShadowMap=1,PCFSoftShadowMap=2,VSMShadowMap=3,FrontSide=0,BackSide=1,DoubleSide=2,NoBlending=0,NormalBlending=1,AdditiveBlending=2,SubtractiveBlending=3,MultiplyBlending=4,CustomBlending=5,AddEquation=100,SubtractEquation=101,ReverseSubtractEquation=102,MinEquation=103,MaxEquation=104,ZeroFactor=200,OneFactor=201,SrcColorFactor=202,OneMinusSrcColorFactor=203,SrcAlphaFactor=204,OneMinusSrcAlphaFactor=205,DstAlphaFactor=206,OneMinusDstAlphaFactor=207,DstColorFactor=208,OneMinusDstColorFactor=209,SrcAlphaSaturateFactor=210,ConstantColorFactor=211,OneMinusConstantColorFactor=212,ConstantAlphaFactor=213,OneMinusConstantAlphaFactor=214,NeverDepth=0,AlwaysDepth=1,LessDepth=2,LessEqualDepth=3,EqualDepth=4,GreaterEqualDepth=5,GreaterDepth=6,NotEqualDepth=7,MultiplyOperation=0,MixOperation=1,AddOperation=2,NoToneMapping=0,LinearToneMapping=1,ReinhardToneMapping=2,CineonToneMapping=3,ACESFilmicToneMapping=4,CustomToneMapping=5,AgXToneMapping=6,NeutralToneMapping=7,AttachedBindMode=`attached`,DetachedBindMode=`detached`,UVMapping=300,CubeReflectionMapping=301,CubeRefractionMapping=302,EquirectangularReflectionMapping=303,EquirectangularRefractionMapping=304,CubeUVReflectionMapping=306,RepeatWrapping=1e3,ClampToEdgeWrapping=1001,MirroredRepeatWrapping=1002,NearestFilter=1003,NearestMipmapNearestFilter=1004,NearestMipMapNearestFilter=1004,NearestMipmapLinearFilter=1005,NearestMipMapLinearFilter=1005,LinearFilter=1006,LinearMipmapNearestFilter=1007,LinearMipMapNearestFilter=1007,LinearMipmapLinearFilter=1008,LinearMipMapLinearFilter=1008,UnsignedByteType=1009,ByteType=1010,ShortType=1011,UnsignedShortType=1012,IntType=1013,UnsignedIntType=1014,FloatType=1015,HalfFloatType=1016,UnsignedShort4444Type=1017,UnsignedShort5551Type=1018,UnsignedInt248Type=1020,UnsignedInt5999Type=35902,AlphaFormat=1021,RGBFormat=1022,RGBAFormat=1023,DepthFormat=1026,DepthStencilFormat=1027,RedFormat=1028,RedIntegerFormat=1029,RGFormat=1030,RGIntegerFormat=1031,RGBIntegerFormat=1032,RGBAIntegerFormat=1033,RGB_S3TC_DXT1_Format=33776,RGBA_S3TC_DXT1_Format=33777,RGBA_S3TC_DXT3_Format=33778,RGBA_S3TC_DXT5_Format=33779,RGB_PVRTC_4BPPV1_Format=35840,RGB_PVRTC_2BPPV1_Format=35841,RGBA_PVRTC_4BPPV1_Format=35842,RGBA_PVRTC_2BPPV1_Format=35843,RGB_ETC1_Format=36196,RGB_ETC2_Format=37492,RGBA_ETC2_EAC_Format=37496,RGBA_ASTC_4x4_Format=37808,RGBA_ASTC_5x4_Format=37809,RGBA_ASTC_5x5_Format=37810,RGBA_ASTC_6x5_Format=37811,RGBA_ASTC_6x6_Format=37812,RGBA_ASTC_8x5_Format=37813,RGBA_ASTC_8x6_Format=37814,RGBA_ASTC_8x8_Format=37815,RGBA_ASTC_10x5_Format=37816,RGBA_ASTC_10x6_Format=37817,RGBA_ASTC_10x8_Format=37818,RGBA_ASTC_10x10_Format=37819,RGBA_ASTC_12x10_Format=37820,RGBA_ASTC_12x12_Format=37821,RGBA_BPTC_Format=36492,RGB_BPTC_SIGNED_Format=36494,RGB_BPTC_UNSIGNED_Format=36495,RED_RGTC1_Format=36283,SIGNED_RED_RGTC1_Format=36284,RED_GREEN_RGTC2_Format=36285,SIGNED_RED_GREEN_RGTC2_Format=36286,LoopOnce=2200,LoopRepeat=2201,LoopPingPong=2202,InterpolateDiscrete=2300,InterpolateLinear=2301,InterpolateSmooth=2302,ZeroCurvatureEnding=2400,ZeroSlopeEnding=2401,WrapAroundEnding=2402,NormalAnimationBlendMode=2500,AdditiveAnimationBlendMode=2501,TrianglesDrawMode=0,TriangleStripDrawMode=1,TriangleFanDrawMode=2,BasicDepthPacking=3200,RGBADepthPacking=3201,RGBDepthPacking=3202,RGDepthPacking=3203,TangentSpaceNormalMap=0,ObjectSpaceNormalMap=1,NoColorSpace=``,SRGBColorSpace=`srgb`,LinearSRGBColorSpace=`srgb-linear`,LinearTransfer=`linear`,SRGBTransfer=`srgb`,ZeroStencilOp=0,KeepStencilOp=7680,ReplaceStencilOp=7681,IncrementStencilOp=7682,DecrementStencilOp=7683,IncrementWrapStencilOp=34055,DecrementWrapStencilOp=34056,InvertStencilOp=5386,NeverStencilFunc=512,LessStencilFunc=513,EqualStencilFunc=514,LessEqualStencilFunc=515,GreaterStencilFunc=516,NotEqualStencilFunc=517,GreaterEqualStencilFunc=518,AlwaysStencilFunc=519,NeverCompare=512,LessCompare=513,EqualCompare=514,LessEqualCompare=515,GreaterCompare=516,NotEqualCompare=517,GreaterEqualCompare=518,AlwaysCompare=519,StaticDrawUsage=35044,DynamicDrawUsage=35048,StreamDrawUsage=35040,StaticReadUsage=35045,DynamicReadUsage=35049,StreamReadUsage=35041,StaticCopyUsage=35046,DynamicCopyUsage=35050,StreamCopyUsage=35042,GLSL1=`100`,GLSL3=`300 es`,WebGLCoordinateSystem=2e3,WebGPUCoordinateSystem=2001,TimestampQuery={COMPUTE:`compute`,RENDER:`render`},InterpolationSamplingType={PERSPECTIVE:`perspective`,LINEAR:`linear`,FLAT:`flat`},InterpolationSamplingMode={NORMAL:`normal`,CENTROID:`centroid`,SAMPLE:`sample`,FIRST:`first`,EITHER:`either`};var EventDispatcher=class{addEventListener(type,listener){this._listeners===void 0&&(this._listeners={});let listeners=this._listeners;listeners[type]===void 0&&(listeners[type]=[]),listeners[type].indexOf(listener)===-1&&listeners[type].push(listener)}hasEventListener(type,listener){let listeners=this._listeners;return listeners===void 0?!1:listeners[type]!==void 0&&listeners[type].indexOf(listener)!==-1}removeEventListener(type,listener){let listeners=this._listeners;if(listeners===void 0)return;let listenerArray=listeners[type];if(listenerArray!==void 0){let index$1=listenerArray.indexOf(listener);index$1!==-1&&listenerArray.splice(index$1,1)}}dispatchEvent(event){let listeners=this._listeners;if(listeners===void 0)return;let listenerArray=listeners[event.type];if(listenerArray!==void 0){event.target=this;let array=listenerArray.slice(0);for(let i$1=0,l$1=array.length;i$1>8&255]+_lut[d0$2>>16&255]+_lut[d0$2>>24&255]+`-`+_lut[d1&255]+_lut[d1>>8&255]+`-`+_lut[d1>>16&15|64]+_lut[d1>>24&255]+`-`+_lut[d2&63|128]+_lut[d2>>8&255]+`-`+_lut[d2>>16&255]+_lut[d2>>24&255]+_lut[d3&255]+_lut[d3>>8&255]+_lut[d3>>16&255]+_lut[d3>>24&255];return uuid.toLowerCase()}function clamp$6(value$1,min$1,max$1){return Math.max(min$1,Math.min(max$1,value$1))}function euclideanModulo(n$2,m$2){return(n$2%m$2+m$2)%m$2}function mapLinear(x$3,a1,a2,b1,b2){return b1+(x$3-a1)*(b2-b1)/(a2-a1)}function inverseLerp(x$3,y$2,value$1){return x$3===y$2?0:(value$1-x$3)/(y$2-x$3)}function lerp$2(x$3,y$2,t){return(1-t)*x$3+t*y$2}function damp(x$3,y$2,lambda,dt$4){return lerp$2(x$3,y$2,1-Math.exp(-lambda*dt$4))}function pingpong(x$3,length=1){return length-Math.abs(euclideanModulo(x$3,length*2)-length)}function smoothstep(x$3,min$1,max$1){return x$3<=min$1?0:x$3>=max$1?1:(x$3=(x$3-min$1)/(max$1-min$1),x$3*x$3*(3-2*x$3))}function smootherstep(x$3,min$1,max$1){return x$3<=min$1?0:x$3>=max$1?1:(x$3=(x$3-min$1)/(max$1-min$1),x$3*x$3*x$3*(x$3*(x$3*6-15)+10))}function randInt(low,high){return low+Math.floor(Math.random()*(high-low+1))}function randFloat$1(low,high){return low+Math.random()*(high-low)}function randFloatSpread(range){return range*(.5-Math.random())}function seededRandom(s$1){s$1!==void 0&&(_seed=s$1);let t=_seed+=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 degToRad$1(degrees$1){return degrees$1*DEG2RAD$1}function radToDeg$1(radians){return radians*RAD2DEG$2}function isPowerOfTwo(value$1){return(value$1&value$1-1)==0&&value$1!==0}function ceilPowerOfTwo(value$1){return 2**Math.ceil(Math.log(value$1)/Math.LN2)}function floorPowerOfTwo(value$1){return 2**Math.floor(Math.log(value$1)/Math.LN2)}function setQuaternionFromProperEuler(q$1,a$2,b$3,c$4,order$3){let cos=Math.cos,sin=Math.sin,c2=cos(b$3/2),s2=sin(b$3/2),c13=cos((a$2+c$4)/2),s13=sin((a$2+c$4)/2),c1_3=cos((a$2-c$4)/2),s1_3=sin((a$2-c$4)/2),c3_1=cos((c$4-a$2)/2),s3_1=sin((c$4-a$2)/2);switch(order$3){case`XYX`:q$1.set(c2*s13,s2*c1_3,s2*s1_3,c2*c13);break;case`YZY`:q$1.set(s2*s1_3,c2*s13,s2*c1_3,c2*c13);break;case`ZXZ`:q$1.set(s2*c1_3,s2*s1_3,c2*s13,c2*c13);break;case`XZX`:q$1.set(c2*s13,s2*s3_1,s2*c3_1,c2*c13);break;case`YXY`:q$1.set(s2*c3_1,c2*s13,s2*s3_1,c2*c13);break;case`ZYZ`:q$1.set(s2*s3_1,s2*c3_1,c2*s13,c2*c13);break;default:console.warn(`THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+order$3)}}function denormalize(value$1,array){switch(array.constructor){case Float32Array:return value$1;case Uint32Array:return value$1/4294967295;case Uint16Array:return value$1/65535;case Uint8Array:return value$1/255;case Int32Array:return Math.max(value$1/2147483647,-1);case Int16Array:return Math.max(value$1/32767,-1);case Int8Array:return Math.max(value$1/127,-1);default:throw Error(`Invalid component type.`)}}function normalize$2(value$1,array){switch(array.constructor){case Float32Array:return value$1;case Uint32Array:return Math.round(value$1*4294967295);case Uint16Array:return Math.round(value$1*65535);case Uint8Array:return Math.round(value$1*255);case Int32Array:return Math.round(value$1*2147483647);case Int16Array:return Math.round(value$1*32767);case Int8Array:return Math.round(value$1*127);default:throw Error(`Invalid component type.`)}}const MathUtils={DEG2RAD:DEG2RAD$1,RAD2DEG:RAD2DEG$2,generateUUID,clamp:clamp$6,euclideanModulo,mapLinear,inverseLerp,lerp:lerp$2,damp,pingpong,smoothstep,smootherstep,randInt,randFloat:randFloat$1,randFloatSpread,seededRandom,degToRad:degToRad$1,radToDeg:radToDeg$1,isPowerOfTwo,ceilPowerOfTwo,floorPowerOfTwo,setQuaternionFromProperEuler,normalize:normalize$2,denormalize};var Vector2=class Vector2{constructor(x$3=0,y$2=0){Vector2.prototype.isVector2=!0,this.x=x$3,this.y=y$2}get width(){return this.x}set width(value$1){this.x=value$1}get height(){return this.y}set height(value$1){this.y=value$1}set(x$3,y$2){return this.x=x$3,this.y=y$2,this}setScalar(scalar){return this.x=scalar,this.y=scalar,this}setX(x$3){return this.x=x$3,this}setY(y$2){return this.y=y$2,this}setComponent(index$1,value$1){switch(index$1){case 0:this.x=value$1;break;case 1:this.y=value$1;break;default:throw Error(`index is out of range: `+index$1)}return this}getComponent(index$1){switch(index$1){case 0:return this.x;case 1:return this.y;default:throw Error(`index is out of range: `+index$1)}}clone(){return new this.constructor(this.x,this.y)}copy(v$1){return this.x=v$1.x,this.y=v$1.y,this}add(v$1){return this.x+=v$1.x,this.y+=v$1.y,this}addScalar(s$1){return this.x+=s$1,this.y+=s$1,this}addVectors(a$2,b$3){return this.x=a$2.x+b$3.x,this.y=a$2.y+b$3.y,this}addScaledVector(v$1,s$1){return this.x+=v$1.x*s$1,this.y+=v$1.y*s$1,this}sub(v$1){return this.x-=v$1.x,this.y-=v$1.y,this}subScalar(s$1){return this.x-=s$1,this.y-=s$1,this}subVectors(a$2,b$3){return this.x=a$2.x-b$3.x,this.y=a$2.y-b$3.y,this}multiply(v$1){return this.x*=v$1.x,this.y*=v$1.y,this}multiplyScalar(scalar){return this.x*=scalar,this.y*=scalar,this}divide(v$1){return this.x/=v$1.x,this.y/=v$1.y,this}divideScalar(scalar){return this.multiplyScalar(1/scalar)}applyMatrix3(m$2){let x$3=this.x,y$2=this.y,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[3]*y$2+e$3[6],this.y=e$3[1]*x$3+e$3[4]*y$2+e$3[7],this}min(v$1){return this.x=Math.min(this.x,v$1.x),this.y=Math.min(this.y,v$1.y),this}max(v$1){return this.x=Math.max(this.x,v$1.x),this.y=Math.max(this.y,v$1.y),this}clamp(min$1,max$1){return this.x=clamp$6(this.x,min$1.x,max$1.x),this.y=clamp$6(this.y,min$1.y,max$1.y),this}clampScalar(minVal,maxVal){return this.x=clamp$6(this.x,minVal,maxVal),this.y=clamp$6(this.y,minVal,maxVal),this}clampLength(min$1,max$1){let length=this.length();return this.divideScalar(length||1).multiplyScalar(clamp$6(length,min$1,max$1))}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(v$1){return this.x*v$1.x+this.y*v$1.y}cross(v$1){return this.x*v$1.y-this.y*v$1.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 angle=Math.atan2(-this.y,-this.x)+Math.PI;return angle}angleTo(v$1){let denominator=Math.sqrt(this.lengthSq()*v$1.lengthSq());if(denominator===0)return Math.PI/2;let theta=this.dot(v$1)/denominator;return Math.acos(clamp$6(theta,-1,1))}distanceTo(v$1){return Math.sqrt(this.distanceToSquared(v$1))}distanceToSquared(v$1){let dx=this.x-v$1.x,dy=this.y-v$1.y;return dx*dx+dy*dy}manhattanDistanceTo(v$1){return Math.abs(this.x-v$1.x)+Math.abs(this.y-v$1.y)}setLength(length){return this.normalize().multiplyScalar(length)}lerp(v$1,alpha$1){return this.x+=(v$1.x-this.x)*alpha$1,this.y+=(v$1.y-this.y)*alpha$1,this}lerpVectors(v1,v2,alpha$1){return this.x=v1.x+(v2.x-v1.x)*alpha$1,this.y=v1.y+(v2.y-v1.y)*alpha$1,this}equals(v$1){return v$1.x===this.x&&v$1.y===this.y}fromArray(array,offset$1=0){return this.x=array[offset$1],this.y=array[offset$1+1],this}toArray(array=[],offset$1=0){return array[offset$1]=this.x,array[offset$1+1]=this.y,array}fromBufferAttribute(attribute,index$1){return this.x=attribute.getX(index$1),this.y=attribute.getY(index$1),this}rotateAround(center,angle){let c$4=Math.cos(angle),s$1=Math.sin(angle),x$3=this.x-center.x,y$2=this.y-center.y;return this.x=x$3*c$4-y$2*s$1+center.x,this.y=x$3*s$1+y$2*c$4+center.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},Quaternion=class{constructor(x$3=0,y$2=0,z$2=0,w$1=1){this.isQuaternion=!0,this._x=x$3,this._y=y$2,this._z=z$2,this._w=w$1}static slerpFlat(dst,dstOffset,src0,srcOffset0,src1,srcOffset1,t){let x0=src0[srcOffset0+0],y0=src0[srcOffset0+1],z0=src0[srcOffset0+2],w0=src0[srcOffset0+3],x1=src1[srcOffset1+0],y1=src1[srcOffset1+1],z1=src1[srcOffset1+2],w1=src1[srcOffset1+3];if(t===0){dst[dstOffset+0]=x0,dst[dstOffset+1]=y0,dst[dstOffset+2]=z0,dst[dstOffset+3]=w0;return}if(t===1){dst[dstOffset+0]=x1,dst[dstOffset+1]=y1,dst[dstOffset+2]=z1,dst[dstOffset+3]=w1;return}if(w0!==w1||x0!==x1||y0!==y1||z0!==z1){let s$1=1-t,cos=x0*x1+y0*y1+z0*z1+w0*w1,dir=cos>=0?1:-1,sqrSin=1-cos*cos;if(sqrSin>2**-52){let sin=Math.sqrt(sqrSin),len=Math.atan2(sin,cos*dir);s$1=Math.sin(s$1*len)/sin,t=Math.sin(t*len)/sin}let tDir=t*dir;if(x0=x0*s$1+x1*tDir,y0=y0*s$1+y1*tDir,z0=z0*s$1+z1*tDir,w0=w0*s$1+w1*tDir,s$1===1-t){let f$3=1/Math.sqrt(x0*x0+y0*y0+z0*z0+w0*w0);x0*=f$3,y0*=f$3,z0*=f$3,w0*=f$3}}dst[dstOffset]=x0,dst[dstOffset+1]=y0,dst[dstOffset+2]=z0,dst[dstOffset+3]=w0}static multiplyQuaternionsFlat(dst,dstOffset,src0,srcOffset0,src1,srcOffset1){let x0=src0[srcOffset0],y0=src0[srcOffset0+1],z0=src0[srcOffset0+2],w0=src0[srcOffset0+3],x1=src1[srcOffset1],y1=src1[srcOffset1+1],z1=src1[srcOffset1+2],w1=src1[srcOffset1+3];return dst[dstOffset]=x0*w1+w0*x1+y0*z1-z0*y1,dst[dstOffset+1]=y0*w1+w0*y1+z0*x1-x0*z1,dst[dstOffset+2]=z0*w1+w0*z1+x0*y1-y0*x1,dst[dstOffset+3]=w0*w1-x0*x1-y0*y1-z0*z1,dst}get x(){return this._x}set x(value$1){this._x=value$1,this._onChangeCallback()}get y(){return this._y}set y(value$1){this._y=value$1,this._onChangeCallback()}get z(){return this._z}set z(value$1){this._z=value$1,this._onChangeCallback()}get w(){return this._w}set w(value$1){this._w=value$1,this._onChangeCallback()}set(x$3,y$2,z$2,w$1){return this._x=x$3,this._y=y$2,this._z=z$2,this._w=w$1,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(quaternion){return this._x=quaternion.x,this._y=quaternion.y,this._z=quaternion.z,this._w=quaternion.w,this._onChangeCallback(),this}setFromEuler(euler,update=!0){let x$3=euler._x,y$2=euler._y,z$2=euler._z,order$3=euler._order,cos=Math.cos,sin=Math.sin,c1=cos(x$3/2),c2=cos(y$2/2),c3=cos(z$2/2),s1=sin(x$3/2),s2=sin(y$2/2),s3=sin(z$2/2);switch(order$3){case`XYZ`:this._x=s1*c2*c3+c1*s2*s3,this._y=c1*s2*c3-s1*c2*s3,this._z=c1*c2*s3+s1*s2*c3,this._w=c1*c2*c3-s1*s2*s3;break;case`YXZ`:this._x=s1*c2*c3+c1*s2*s3,this._y=c1*s2*c3-s1*c2*s3,this._z=c1*c2*s3-s1*s2*c3,this._w=c1*c2*c3+s1*s2*s3;break;case`ZXY`:this._x=s1*c2*c3-c1*s2*s3,this._y=c1*s2*c3+s1*c2*s3,this._z=c1*c2*s3+s1*s2*c3,this._w=c1*c2*c3-s1*s2*s3;break;case`ZYX`:this._x=s1*c2*c3-c1*s2*s3,this._y=c1*s2*c3+s1*c2*s3,this._z=c1*c2*s3-s1*s2*c3,this._w=c1*c2*c3+s1*s2*s3;break;case`YZX`:this._x=s1*c2*c3+c1*s2*s3,this._y=c1*s2*c3+s1*c2*s3,this._z=c1*c2*s3-s1*s2*c3,this._w=c1*c2*c3-s1*s2*s3;break;case`XZY`:this._x=s1*c2*c3-c1*s2*s3,this._y=c1*s2*c3-s1*c2*s3,this._z=c1*c2*s3+s1*s2*c3,this._w=c1*c2*c3+s1*s2*s3;break;default:console.warn(`THREE.Quaternion: .setFromEuler() encountered an unknown order: `+order$3)}return update===!0&&this._onChangeCallback(),this}setFromAxisAngle(axis,angle){let halfAngle=angle/2,s$1=Math.sin(halfAngle);return this._x=axis.x*s$1,this._y=axis.y*s$1,this._z=axis.z*s$1,this._w=Math.cos(halfAngle),this._onChangeCallback(),this}setFromRotationMatrix(m$2){let te$2=m$2.elements,m11=te$2[0],m12=te$2[4],m13=te$2[8],m21=te$2[1],m22=te$2[5],m23=te$2[9],m31=te$2[2],m32=te$2[6],m33=te$2[10],trace=m11+m22+m33;if(trace>0){let s$1=.5/Math.sqrt(trace+1);this._w=.25/s$1,this._x=(m32-m23)*s$1,this._y=(m13-m31)*s$1,this._z=(m21-m12)*s$1}else if(m11>m22&&m11>m33){let s$1=2*Math.sqrt(1+m11-m22-m33);this._w=(m32-m23)/s$1,this._x=.25*s$1,this._y=(m12+m21)/s$1,this._z=(m13+m31)/s$1}else if(m22>m33){let s$1=2*Math.sqrt(1+m22-m11-m33);this._w=(m13-m31)/s$1,this._x=(m12+m21)/s$1,this._y=.25*s$1,this._z=(m23+m32)/s$1}else{let s$1=2*Math.sqrt(1+m33-m11-m22);this._w=(m21-m12)/s$1,this._x=(m13+m31)/s$1,this._y=(m23+m32)/s$1,this._z=.25*s$1}return this._onChangeCallback(),this}setFromUnitVectors(vFrom,vTo){let r$2=vFrom.dot(vTo)+1;return r$2<1e-8?(r$2=0,Math.abs(vFrom.x)>Math.abs(vFrom.z)?(this._x=-vFrom.y,this._y=vFrom.x,this._z=0,this._w=r$2):(this._x=0,this._y=-vFrom.z,this._z=vFrom.y,this._w=r$2)):(this._x=vFrom.y*vTo.z-vFrom.z*vTo.y,this._y=vFrom.z*vTo.x-vFrom.x*vTo.z,this._z=vFrom.x*vTo.y-vFrom.y*vTo.x,this._w=r$2),this.normalize()}angleTo(q$1){return 2*Math.acos(Math.abs(clamp$6(this.dot(q$1),-1,1)))}rotateTowards(q$1,step){let angle=this.angleTo(q$1);if(angle===0)return this;let t=Math.min(1,step/angle);return this.slerp(q$1,t),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(v$1){return this._x*v$1._x+this._y*v$1._y+this._z*v$1._z+this._w*v$1._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 l$1=this.length();return l$1===0?(this._x=0,this._y=0,this._z=0,this._w=1):(l$1=1/l$1,this._x*=l$1,this._y*=l$1,this._z*=l$1,this._w*=l$1),this._onChangeCallback(),this}multiply(q$1){return this.multiplyQuaternions(this,q$1)}premultiply(q$1){return this.multiplyQuaternions(q$1,this)}multiplyQuaternions(a$2,b$3){let qax=a$2._x,qay=a$2._y,qaz=a$2._z,qaw=a$2._w,qbx=b$3._x,qby=b$3._y,qbz=b$3._z,qbw=b$3._w;return this._x=qax*qbw+qaw*qbx+qay*qbz-qaz*qby,this._y=qay*qbw+qaw*qby+qaz*qbx-qax*qbz,this._z=qaz*qbw+qaw*qbz+qax*qby-qay*qbx,this._w=qaw*qbw-qax*qbx-qay*qby-qaz*qbz,this._onChangeCallback(),this}slerp(qb,t){if(t===0)return this;if(t===1)return this.copy(qb);let x$3=this._x,y$2=this._y,z$2=this._z,w$1=this._w,cosHalfTheta=w$1*qb._w+x$3*qb._x+y$2*qb._y+z$2*qb._z;if(cosHalfTheta<0?(this._w=-qb._w,this._x=-qb._x,this._y=-qb._y,this._z=-qb._z,cosHalfTheta=-cosHalfTheta):this.copy(qb),cosHalfTheta>=1)return this._w=w$1,this._x=x$3,this._y=y$2,this._z=z$2,this;let sqrSinHalfTheta=1-cosHalfTheta*cosHalfTheta;if(sqrSinHalfTheta<=2**-52){let s$1=1-t;return this._w=s$1*w$1+t*this._w,this._x=s$1*x$3+t*this._x,this._y=s$1*y$2+t*this._y,this._z=s$1*z$2+t*this._z,this.normalize(),this}let sinHalfTheta=Math.sqrt(sqrSinHalfTheta),halfTheta=Math.atan2(sinHalfTheta,cosHalfTheta),ratioA=Math.sin((1-t)*halfTheta)/sinHalfTheta,ratioB=Math.sin(t*halfTheta)/sinHalfTheta;return this._w=w$1*ratioA+this._w*ratioB,this._x=x$3*ratioA+this._x*ratioB,this._y=y$2*ratioA+this._y*ratioB,this._z=z$2*ratioA+this._z*ratioB,this._onChangeCallback(),this}slerpQuaternions(qa,qb,t){return this.copy(qa).slerp(qb,t)}random(){let theta1=2*Math.PI*Math.random(),theta2=2*Math.PI*Math.random(),x0=Math.random(),r1=Math.sqrt(1-x0),r2=Math.sqrt(x0);return this.set(r1*Math.sin(theta1),r1*Math.cos(theta1),r2*Math.sin(theta2),r2*Math.cos(theta2))}equals(quaternion){return quaternion._x===this._x&&quaternion._y===this._y&&quaternion._z===this._z&&quaternion._w===this._w}fromArray(array,offset$1=0){return this._x=array[offset$1],this._y=array[offset$1+1],this._z=array[offset$1+2],this._w=array[offset$1+3],this._onChangeCallback(),this}toArray(array=[],offset$1=0){return array[offset$1]=this._x,array[offset$1+1]=this._y,array[offset$1+2]=this._z,array[offset$1+3]=this._w,array}fromBufferAttribute(attribute,index$1){return this._x=attribute.getX(index$1),this._y=attribute.getY(index$1),this._z=attribute.getZ(index$1),this._w=attribute.getW(index$1),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(callback){return this._onChangeCallback=callback,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},Vector3=class Vector3{constructor(x$3=0,y$2=0,z$2=0){Vector3.prototype.isVector3=!0,this.x=x$3,this.y=y$2,this.z=z$2}set(x$3,y$2,z$2){return z$2===void 0&&(z$2=this.z),this.x=x$3,this.y=y$2,this.z=z$2,this}setScalar(scalar){return this.x=scalar,this.y=scalar,this.z=scalar,this}setX(x$3){return this.x=x$3,this}setY(y$2){return this.y=y$2,this}setZ(z$2){return this.z=z$2,this}setComponent(index$1,value$1){switch(index$1){case 0:this.x=value$1;break;case 1:this.y=value$1;break;case 2:this.z=value$1;break;default:throw Error(`index is out of range: `+index$1)}return this}getComponent(index$1){switch(index$1){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`index is out of range: `+index$1)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(v$1){return this.x=v$1.x,this.y=v$1.y,this.z=v$1.z,this}add(v$1){return this.x+=v$1.x,this.y+=v$1.y,this.z+=v$1.z,this}addScalar(s$1){return this.x+=s$1,this.y+=s$1,this.z+=s$1,this}addVectors(a$2,b$3){return this.x=a$2.x+b$3.x,this.y=a$2.y+b$3.y,this.z=a$2.z+b$3.z,this}addScaledVector(v$1,s$1){return this.x+=v$1.x*s$1,this.y+=v$1.y*s$1,this.z+=v$1.z*s$1,this}sub(v$1){return this.x-=v$1.x,this.y-=v$1.y,this.z-=v$1.z,this}subScalar(s$1){return this.x-=s$1,this.y-=s$1,this.z-=s$1,this}subVectors(a$2,b$3){return this.x=a$2.x-b$3.x,this.y=a$2.y-b$3.y,this.z=a$2.z-b$3.z,this}multiply(v$1){return this.x*=v$1.x,this.y*=v$1.y,this.z*=v$1.z,this}multiplyScalar(scalar){return this.x*=scalar,this.y*=scalar,this.z*=scalar,this}multiplyVectors(a$2,b$3){return this.x=a$2.x*b$3.x,this.y=a$2.y*b$3.y,this.z=a$2.z*b$3.z,this}applyEuler(euler){return this.applyQuaternion(_quaternion$4.setFromEuler(euler))}applyAxisAngle(axis,angle){return this.applyQuaternion(_quaternion$4.setFromAxisAngle(axis,angle))}applyMatrix3(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[3]*y$2+e$3[6]*z$2,this.y=e$3[1]*x$3+e$3[4]*y$2+e$3[7]*z$2,this.z=e$3[2]*x$3+e$3[5]*y$2+e$3[8]*z$2,this}applyNormalMatrix(m$2){return this.applyMatrix3(m$2).normalize()}applyMatrix4(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,e$3=m$2.elements,w$1=1/(e$3[3]*x$3+e$3[7]*y$2+e$3[11]*z$2+e$3[15]);return this.x=(e$3[0]*x$3+e$3[4]*y$2+e$3[8]*z$2+e$3[12])*w$1,this.y=(e$3[1]*x$3+e$3[5]*y$2+e$3[9]*z$2+e$3[13])*w$1,this.z=(e$3[2]*x$3+e$3[6]*y$2+e$3[10]*z$2+e$3[14])*w$1,this}applyQuaternion(q$1){let vx=this.x,vy=this.y,vz=this.z,qx=q$1.x,qy=q$1.y,qz=q$1.z,qw=q$1.w,tx=2*(qy*vz-qz*vy),ty=2*(qz*vx-qx*vz),tz=2*(qx*vy-qy*vx);return this.x=vx+qw*tx+qy*tz-qz*ty,this.y=vy+qw*ty+qz*tx-qx*tz,this.z=vz+qw*tz+qx*ty-qy*tx,this}project(camera){return this.applyMatrix4(camera.matrixWorldInverse).applyMatrix4(camera.projectionMatrix)}unproject(camera){return this.applyMatrix4(camera.projectionMatrixInverse).applyMatrix4(camera.matrixWorld)}transformDirection(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[4]*y$2+e$3[8]*z$2,this.y=e$3[1]*x$3+e$3[5]*y$2+e$3[9]*z$2,this.z=e$3[2]*x$3+e$3[6]*y$2+e$3[10]*z$2,this.normalize()}divide(v$1){return this.x/=v$1.x,this.y/=v$1.y,this.z/=v$1.z,this}divideScalar(scalar){return this.multiplyScalar(1/scalar)}min(v$1){return this.x=Math.min(this.x,v$1.x),this.y=Math.min(this.y,v$1.y),this.z=Math.min(this.z,v$1.z),this}max(v$1){return this.x=Math.max(this.x,v$1.x),this.y=Math.max(this.y,v$1.y),this.z=Math.max(this.z,v$1.z),this}clamp(min$1,max$1){return this.x=clamp$6(this.x,min$1.x,max$1.x),this.y=clamp$6(this.y,min$1.y,max$1.y),this.z=clamp$6(this.z,min$1.z,max$1.z),this}clampScalar(minVal,maxVal){return this.x=clamp$6(this.x,minVal,maxVal),this.y=clamp$6(this.y,minVal,maxVal),this.z=clamp$6(this.z,minVal,maxVal),this}clampLength(min$1,max$1){let length=this.length();return this.divideScalar(length||1).multiplyScalar(clamp$6(length,min$1,max$1))}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(v$1){return this.x*v$1.x+this.y*v$1.y+this.z*v$1.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(length){return this.normalize().multiplyScalar(length)}lerp(v$1,alpha$1){return this.x+=(v$1.x-this.x)*alpha$1,this.y+=(v$1.y-this.y)*alpha$1,this.z+=(v$1.z-this.z)*alpha$1,this}lerpVectors(v1,v2,alpha$1){return this.x=v1.x+(v2.x-v1.x)*alpha$1,this.y=v1.y+(v2.y-v1.y)*alpha$1,this.z=v1.z+(v2.z-v1.z)*alpha$1,this}cross(v$1){return this.crossVectors(this,v$1)}crossVectors(a$2,b$3){let ax=a$2.x,ay=a$2.y,az=a$2.z,bx=b$3.x,by=b$3.y,bz=b$3.z;return this.x=ay*bz-az*by,this.y=az*bx-ax*bz,this.z=ax*by-ay*bx,this}projectOnVector(v$1){let denominator=v$1.lengthSq();if(denominator===0)return this.set(0,0,0);let scalar=v$1.dot(this)/denominator;return this.copy(v$1).multiplyScalar(scalar)}projectOnPlane(planeNormal){return _vector$c.copy(this).projectOnVector(planeNormal),this.sub(_vector$c)}reflect(normal){return this.sub(_vector$c.copy(normal).multiplyScalar(2*this.dot(normal)))}angleTo(v$1){let denominator=Math.sqrt(this.lengthSq()*v$1.lengthSq());if(denominator===0)return Math.PI/2;let theta=this.dot(v$1)/denominator;return Math.acos(clamp$6(theta,-1,1))}distanceTo(v$1){return Math.sqrt(this.distanceToSquared(v$1))}distanceToSquared(v$1){let dx=this.x-v$1.x,dy=this.y-v$1.y,dz=this.z-v$1.z;return dx*dx+dy*dy+dz*dz}manhattanDistanceTo(v$1){return Math.abs(this.x-v$1.x)+Math.abs(this.y-v$1.y)+Math.abs(this.z-v$1.z)}setFromSpherical(s$1){return this.setFromSphericalCoords(s$1.radius,s$1.phi,s$1.theta)}setFromSphericalCoords(radius,phi,theta){let sinPhiRadius=Math.sin(phi)*radius;return this.x=sinPhiRadius*Math.sin(theta),this.y=Math.cos(phi)*radius,this.z=sinPhiRadius*Math.cos(theta),this}setFromCylindrical(c$4){return this.setFromCylindricalCoords(c$4.radius,c$4.theta,c$4.y)}setFromCylindricalCoords(radius,theta,y$2){return this.x=radius*Math.sin(theta),this.y=y$2,this.z=radius*Math.cos(theta),this}setFromMatrixPosition(m$2){let e$3=m$2.elements;return this.x=e$3[12],this.y=e$3[13],this.z=e$3[14],this}setFromMatrixScale(m$2){let sx=this.setFromMatrixColumn(m$2,0).length(),sy=this.setFromMatrixColumn(m$2,1).length(),sz=this.setFromMatrixColumn(m$2,2).length();return this.x=sx,this.y=sy,this.z=sz,this}setFromMatrixColumn(m$2,index$1){return this.fromArray(m$2.elements,index$1*4)}setFromMatrix3Column(m$2,index$1){return this.fromArray(m$2.elements,index$1*3)}setFromEuler(e$3){return this.x=e$3._x,this.y=e$3._y,this.z=e$3._z,this}setFromColor(c$4){return this.x=c$4.r,this.y=c$4.g,this.z=c$4.b,this}equals(v$1){return v$1.x===this.x&&v$1.y===this.y&&v$1.z===this.z}fromArray(array,offset$1=0){return this.x=array[offset$1],this.y=array[offset$1+1],this.z=array[offset$1+2],this}toArray(array=[],offset$1=0){return array[offset$1]=this.x,array[offset$1+1]=this.y,array[offset$1+2]=this.z,array}fromBufferAttribute(attribute,index$1){return this.x=attribute.getX(index$1),this.y=attribute.getY(index$1),this.z=attribute.getZ(index$1),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let theta=Math.random()*Math.PI*2,u$1=Math.random()*2-1,c$4=Math.sqrt(1-u$1*u$1);return this.x=c$4*Math.cos(theta),this.y=u$1,this.z=c$4*Math.sin(theta),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};const _vector$c=new Vector3,_quaternion$4=new Quaternion;var Matrix3=class Matrix3{constructor(n11,n12,n13,n21,n22,n23,n31,n32,n33){Matrix3.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],n11!==void 0&&this.set(n11,n12,n13,n21,n22,n23,n31,n32,n33)}set(n11,n12,n13,n21,n22,n23,n31,n32,n33){let te$2=this.elements;return te$2[0]=n11,te$2[1]=n21,te$2[2]=n31,te$2[3]=n12,te$2[4]=n22,te$2[5]=n32,te$2[6]=n13,te$2[7]=n23,te$2[8]=n33,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(m$2){let te$2=this.elements,me$1=m$2.elements;return te$2[0]=me$1[0],te$2[1]=me$1[1],te$2[2]=me$1[2],te$2[3]=me$1[3],te$2[4]=me$1[4],te$2[5]=me$1[5],te$2[6]=me$1[6],te$2[7]=me$1[7],te$2[8]=me$1[8],this}extractBasis(xAxis,yAxis,zAxis){return xAxis.setFromMatrix3Column(this,0),yAxis.setFromMatrix3Column(this,1),zAxis.setFromMatrix3Column(this,2),this}setFromMatrix4(m$2){let me$1=m$2.elements;return this.set(me$1[0],me$1[4],me$1[8],me$1[1],me$1[5],me$1[9],me$1[2],me$1[6],me$1[10]),this}multiply(m$2){return this.multiplyMatrices(this,m$2)}premultiply(m$2){return this.multiplyMatrices(m$2,this)}multiplyMatrices(a$2,b$3){let ae$1=a$2.elements,be$2=b$3.elements,te$2=this.elements,a11=ae$1[0],a12=ae$1[3],a13=ae$1[6],a21=ae$1[1],a22=ae$1[4],a23=ae$1[7],a31=ae$1[2],a32=ae$1[5],a33=ae$1[8],b11=be$2[0],b12=be$2[3],b13=be$2[6],b21=be$2[1],b22=be$2[4],b23=be$2[7],b31=be$2[2],b32=be$2[5],b33=be$2[8];return te$2[0]=a11*b11+a12*b21+a13*b31,te$2[3]=a11*b12+a12*b22+a13*b32,te$2[6]=a11*b13+a12*b23+a13*b33,te$2[1]=a21*b11+a22*b21+a23*b31,te$2[4]=a21*b12+a22*b22+a23*b32,te$2[7]=a21*b13+a22*b23+a23*b33,te$2[2]=a31*b11+a32*b21+a33*b31,te$2[5]=a31*b12+a32*b22+a33*b32,te$2[8]=a31*b13+a32*b23+a33*b33,this}multiplyScalar(s$1){let te$2=this.elements;return te$2[0]*=s$1,te$2[3]*=s$1,te$2[6]*=s$1,te$2[1]*=s$1,te$2[4]*=s$1,te$2[7]*=s$1,te$2[2]*=s$1,te$2[5]*=s$1,te$2[8]*=s$1,this}determinant(){let te$2=this.elements,a$2=te$2[0],b$3=te$2[1],c$4=te$2[2],d$2=te$2[3],e$3=te$2[4],f$3=te$2[5],g$2=te$2[6],h$3=te$2[7],i$1=te$2[8];return a$2*e$3*i$1-a$2*f$3*h$3-b$3*d$2*i$1+b$3*f$3*g$2+c$4*d$2*h$3-c$4*e$3*g$2}invert(){let te$2=this.elements,n11=te$2[0],n21=te$2[1],n31=te$2[2],n12=te$2[3],n22=te$2[4],n32=te$2[5],n13=te$2[6],n23=te$2[7],n33=te$2[8],t11=n33*n22-n32*n23,t12=n32*n13-n33*n12,t13=n23*n12-n22*n13,det=n11*t11+n21*t12+n31*t13;if(det===0)return this.set(0,0,0,0,0,0,0,0,0);let detInv=1/det;return te$2[0]=t11*detInv,te$2[1]=(n31*n23-n33*n21)*detInv,te$2[2]=(n32*n21-n31*n22)*detInv,te$2[3]=t12*detInv,te$2[4]=(n33*n11-n31*n13)*detInv,te$2[5]=(n31*n12-n32*n11)*detInv,te$2[6]=t13*detInv,te$2[7]=(n21*n13-n23*n11)*detInv,te$2[8]=(n22*n11-n21*n12)*detInv,this}transpose(){let tmp$1,m$2=this.elements;return tmp$1=m$2[1],m$2[1]=m$2[3],m$2[3]=tmp$1,tmp$1=m$2[2],m$2[2]=m$2[6],m$2[6]=tmp$1,tmp$1=m$2[5],m$2[5]=m$2[7],m$2[7]=tmp$1,this}getNormalMatrix(matrix4){return this.setFromMatrix4(matrix4).invert().transpose()}transposeIntoArray(r$2){let m$2=this.elements;return r$2[0]=m$2[0],r$2[1]=m$2[3],r$2[2]=m$2[6],r$2[3]=m$2[1],r$2[4]=m$2[4],r$2[5]=m$2[7],r$2[6]=m$2[2],r$2[7]=m$2[5],r$2[8]=m$2[8],this}setUvTransform(tx,ty,sx,sy,rotation,cx,cy){let c$4=Math.cos(rotation),s$1=Math.sin(rotation);return this.set(sx*c$4,sx*s$1,-sx*(c$4*cx+s$1*cy)+cx+tx,-sy*s$1,sy*c$4,-sy*(-s$1*cx+c$4*cy)+cy+ty,0,0,1),this}scale(sx,sy){return this.premultiply(_m3.makeScale(sx,sy)),this}rotate(theta){return this.premultiply(_m3.makeRotation(-theta)),this}translate(tx,ty){return this.premultiply(_m3.makeTranslation(tx,ty)),this}makeTranslation(x$3,y$2){return x$3.isVector2?this.set(1,0,x$3.x,0,1,x$3.y,0,0,1):this.set(1,0,x$3,0,1,y$2,0,0,1),this}makeRotation(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(c$4,-s$1,0,s$1,c$4,0,0,0,1),this}makeScale(x$3,y$2){return this.set(x$3,0,0,0,y$2,0,0,0,1),this}equals(matrix){let te$2=this.elements,me$1=matrix.elements;for(let i$1=0;i$1<9;i$1++)if(te$2[i$1]!==me$1[i$1])return!1;return!0}fromArray(array,offset$1=0){for(let i$1=0;i$1<9;i$1++)this.elements[i$1]=array[i$1+offset$1];return this}toArray(array=[],offset$1=0){let te$2=this.elements;return array[offset$1]=te$2[0],array[offset$1+1]=te$2[1],array[offset$1+2]=te$2[2],array[offset$1+3]=te$2[3],array[offset$1+4]=te$2[4],array[offset$1+5]=te$2[5],array[offset$1+6]=te$2[6],array[offset$1+7]=te$2[7],array[offset$1+8]=te$2[8],array}clone(){return new this.constructor().fromArray(this.elements)}};const _m3=new Matrix3;function arrayNeedsUint32(array){for(let i$1=array.length-1;i$1>=0;--i$1)if(array[i$1]>=65535)return!0;return!1}const TYPED_ARRAYS={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function getTypedArray(type,buffer$1){return new TYPED_ARRAYS[type](buffer$1)}function createElementNS(name$2){return document.createElementNS(`http://www.w3.org/1999/xhtml`,name$2)}function createCanvasElement(){let canvas=createElementNS(`canvas`);return canvas.style.display=`block`,canvas}const _cache={};function warnOnce$1(message$1){message$1 in _cache||(_cache[message$1]=!0,console.warn(message$1))}function probeAsync(gl,sync$1,interval){return new Promise(function(resolve$1,reject){function probe(){switch(gl.clientWaitSync(sync$1,gl.SYNC_FLUSH_COMMANDS_BIT,0)){case gl.WAIT_FAILED:reject();break;case gl.TIMEOUT_EXPIRED:setTimeout(probe,interval);break;default:resolve$1()}}setTimeout(probe,interval)})}function toNormalizedProjectionMatrix(projectionMatrix){let m$2=projectionMatrix.elements;m$2[2]=.5*m$2[2]+.5*m$2[3],m$2[6]=.5*m$2[6]+.5*m$2[7],m$2[10]=.5*m$2[10]+.5*m$2[11],m$2[14]=.5*m$2[14]+.5*m$2[15]}function toReversedProjectionMatrix(projectionMatrix){let m$2=projectionMatrix.elements,isPerspectiveMatrix=m$2[11]===-1;isPerspectiveMatrix?(m$2[10]=-m$2[10]-1,m$2[14]=-m$2[14]):(m$2[10]=-m$2[10],m$2[14]=-m$2[14]+1)}const LINEAR_REC709_TO_XYZ=new Matrix3().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),XYZ_TO_LINEAR_REC709=new Matrix3().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function createColorManagement(){let ColorManagement$1={enabled:!0,workingColorSpace:LinearSRGBColorSpace,spaces:{},convert:function(color$2,sourceColorSpace,targetColorSpace){return this.enabled===!1||sourceColorSpace===targetColorSpace||!sourceColorSpace||!targetColorSpace?color$2:(this.spaces[sourceColorSpace].transfer===SRGBTransfer&&(color$2.r=SRGBToLinear(color$2.r),color$2.g=SRGBToLinear(color$2.g),color$2.b=SRGBToLinear(color$2.b)),this.spaces[sourceColorSpace].primaries!==this.spaces[targetColorSpace].primaries&&(color$2.applyMatrix3(this.spaces[sourceColorSpace].toXYZ),color$2.applyMatrix3(this.spaces[targetColorSpace].fromXYZ)),this.spaces[targetColorSpace].transfer===SRGBTransfer&&(color$2.r=LinearToSRGB(color$2.r),color$2.g=LinearToSRGB(color$2.g),color$2.b=LinearToSRGB(color$2.b)),color$2)},workingToColorSpace:function(color$2,targetColorSpace){return this.convert(color$2,this.workingColorSpace,targetColorSpace)},colorSpaceToWorking:function(color$2,sourceColorSpace){return this.convert(color$2,sourceColorSpace,this.workingColorSpace)},getPrimaries:function(colorSpace){return this.spaces[colorSpace].primaries},getTransfer:function(colorSpace){return colorSpace===NoColorSpace?LinearTransfer:this.spaces[colorSpace].transfer},getLuminanceCoefficients:function(target$1,colorSpace=this.workingColorSpace){return target$1.fromArray(this.spaces[colorSpace].luminanceCoefficients)},define:function(colorSpaces){Object.assign(this.spaces,colorSpaces)},_getMatrix:function(targetMatrix,sourceColorSpace,targetColorSpace){return targetMatrix.copy(this.spaces[sourceColorSpace].toXYZ).multiply(this.spaces[targetColorSpace].fromXYZ)},_getDrawingBufferColorSpace:function(colorSpace){return this.spaces[colorSpace].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(colorSpace=this.workingColorSpace){return this.spaces[colorSpace].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(color$2,targetColorSpace){return warnOnce$1(`THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),ColorManagement$1.workingToColorSpace(color$2,targetColorSpace)},toWorkingColorSpace:function(color$2,sourceColorSpace){return warnOnce$1(`THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),ColorManagement$1.colorSpaceToWorking(color$2,sourceColorSpace)}},REC709_PRIMARIES=[.64,.33,.3,.6,.15,.06],REC709_LUMINANCE_COEFFICIENTS=[.2126,.7152,.0722],D65$1=[.3127,.329];return ColorManagement$1.define({[LinearSRGBColorSpace]:{primaries:REC709_PRIMARIES,whitePoint:D65$1,transfer:LinearTransfer,toXYZ:LINEAR_REC709_TO_XYZ,fromXYZ:XYZ_TO_LINEAR_REC709,luminanceCoefficients:REC709_LUMINANCE_COEFFICIENTS,workingColorSpaceConfig:{unpackColorSpace:SRGBColorSpace},outputColorSpaceConfig:{drawingBufferColorSpace:SRGBColorSpace}},[SRGBColorSpace]:{primaries:REC709_PRIMARIES,whitePoint:D65$1,transfer:SRGBTransfer,toXYZ:LINEAR_REC709_TO_XYZ,fromXYZ:XYZ_TO_LINEAR_REC709,luminanceCoefficients:REC709_LUMINANCE_COEFFICIENTS,outputColorSpaceConfig:{drawingBufferColorSpace:SRGBColorSpace}}}),ColorManagement$1}const ColorManagement=createColorManagement();function SRGBToLinear(c$4){return c$4<.04045?c$4*.0773993808:(c$4*.9478672986+.0521327014)**2.4}function LinearToSRGB(c$4){return c$4<.0031308?c$4*12.92:1.055*c$4**.41666-.055}let _canvas;var ImageUtils=class{static getDataURL(image$1,type=`image/png`){if(/^data:/i.test(image$1.src)||typeof HTMLCanvasElement>`u`)return image$1.src;let canvas;if(image$1 instanceof HTMLCanvasElement)canvas=image$1;else{_canvas===void 0&&(_canvas=createElementNS(`canvas`)),_canvas.width=image$1.width,_canvas.height=image$1.height;let context$1=_canvas.getContext(`2d`);image$1 instanceof ImageData?context$1.putImageData(image$1,0,0):context$1.drawImage(image$1,0,0,image$1.width,image$1.height),canvas=_canvas}return canvas.toDataURL(type)}static sRGBToLinear(image$1){if(typeof HTMLImageElement<`u`&&image$1 instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&image$1 instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&image$1 instanceof ImageBitmap){let canvas=createElementNS(`canvas`);canvas.width=image$1.width,canvas.height=image$1.height;let context$1=canvas.getContext(`2d`);context$1.drawImage(image$1,0,0,image$1.width,image$1.height);let imageData=context$1.getImageData(0,0,image$1.width,image$1.height),data$10=imageData.data;for(let i$1=0;i$11),this.pmremVersion=0}get width(){return this.source.getSize(_tempVec3).x}get height(){return this.source.getSize(_tempVec3).y}get depth(){return this.source.getSize(_tempVec3).z}get image(){return this.source.data}set image(value$1=null){this.source.data=value$1}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(start,count$1){this.updateRanges.push({start,count:count$1})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(source){return this.name=source.name,this.source=source.source,this.mipmaps=source.mipmaps.slice(0),this.mapping=source.mapping,this.channel=source.channel,this.wrapS=source.wrapS,this.wrapT=source.wrapT,this.magFilter=source.magFilter,this.minFilter=source.minFilter,this.anisotropy=source.anisotropy,this.format=source.format,this.internalFormat=source.internalFormat,this.type=source.type,this.offset.copy(source.offset),this.repeat.copy(source.repeat),this.center.copy(source.center),this.rotation=source.rotation,this.matrixAutoUpdate=source.matrixAutoUpdate,this.matrix.copy(source.matrix),this.generateMipmaps=source.generateMipmaps,this.premultiplyAlpha=source.premultiplyAlpha,this.flipY=source.flipY,this.unpackAlignment=source.unpackAlignment,this.colorSpace=source.colorSpace,this.renderTarget=source.renderTarget,this.isRenderTargetTexture=source.isRenderTargetTexture,this.isArrayTexture=source.isArrayTexture,this.userData=JSON.parse(JSON.stringify(source.userData)),this.needsUpdate=!0,this}setValues(values){for(let key$1 in values){let newValue=values[key$1];if(newValue===void 0){console.warn(`THREE.Texture.setValues(): parameter '${key$1}' has value of undefined.`);continue}let currentValue=this[key$1];if(currentValue===void 0){console.warn(`THREE.Texture.setValues(): property '${key$1}' does not exist.`);continue}currentValue&&newValue&¤tValue.isVector2&&newValue.isVector2||currentValue&&newValue&¤tValue.isVector3&&newValue.isVector3||currentValue&&newValue&¤tValue.isMatrix3&&newValue.isMatrix3?currentValue.copy(newValue):this[key$1]=newValue}}toJSON(meta){let isRootObject=meta===void 0||typeof meta==`string`;if(!isRootObject&&meta.textures[this.uuid]!==void 0)return meta.textures[this.uuid];let output={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(meta).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&&(output.userData=this.userData),isRootObject||(meta.textures[this.uuid]=output),output}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(uv){if(this.mapping!==UVMapping)return uv;if(uv.applyMatrix3(this.matrix),uv.x<0||uv.x>1)switch(this.wrapS){case RepeatWrapping:uv.x-=Math.floor(uv.x);break;case ClampToEdgeWrapping:uv.x=uv.x<0?0:1;break;case MirroredRepeatWrapping:Math.abs(Math.floor(uv.x)%2)===1?uv.x=Math.ceil(uv.x)-uv.x:uv.x-=Math.floor(uv.x);break}if(uv.y<0||uv.y>1)switch(this.wrapT){case RepeatWrapping:uv.y-=Math.floor(uv.y);break;case ClampToEdgeWrapping:uv.y=uv.y<0?0:1;break;case MirroredRepeatWrapping:Math.abs(Math.floor(uv.y)%2)===1?uv.y=Math.ceil(uv.y)-uv.y:uv.y-=Math.floor(uv.y);break}return this.flipY&&(uv.y=1-uv.y),uv}set needsUpdate(value$1){value$1===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(value$1){value$1===!0&&this.pmremVersion++}};Texture.DEFAULT_IMAGE=null,Texture.DEFAULT_MAPPING=UVMapping,Texture.DEFAULT_ANISOTROPY=1;var Vector4=class Vector4{constructor(x$3=0,y$2=0,z$2=0,w$1=1){Vector4.prototype.isVector4=!0,this.x=x$3,this.y=y$2,this.z=z$2,this.w=w$1}get width(){return this.z}set width(value$1){this.z=value$1}get height(){return this.w}set height(value$1){this.w=value$1}set(x$3,y$2,z$2,w$1){return this.x=x$3,this.y=y$2,this.z=z$2,this.w=w$1,this}setScalar(scalar){return this.x=scalar,this.y=scalar,this.z=scalar,this.w=scalar,this}setX(x$3){return this.x=x$3,this}setY(y$2){return this.y=y$2,this}setZ(z$2){return this.z=z$2,this}setW(w$1){return this.w=w$1,this}setComponent(index$1,value$1){switch(index$1){case 0:this.x=value$1;break;case 1:this.y=value$1;break;case 2:this.z=value$1;break;case 3:this.w=value$1;break;default:throw Error(`index is out of range: `+index$1)}return this}getComponent(index$1){switch(index$1){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: `+index$1)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(v$1){return this.x=v$1.x,this.y=v$1.y,this.z=v$1.z,this.w=v$1.w===void 0?1:v$1.w,this}add(v$1){return this.x+=v$1.x,this.y+=v$1.y,this.z+=v$1.z,this.w+=v$1.w,this}addScalar(s$1){return this.x+=s$1,this.y+=s$1,this.z+=s$1,this.w+=s$1,this}addVectors(a$2,b$3){return this.x=a$2.x+b$3.x,this.y=a$2.y+b$3.y,this.z=a$2.z+b$3.z,this.w=a$2.w+b$3.w,this}addScaledVector(v$1,s$1){return this.x+=v$1.x*s$1,this.y+=v$1.y*s$1,this.z+=v$1.z*s$1,this.w+=v$1.w*s$1,this}sub(v$1){return this.x-=v$1.x,this.y-=v$1.y,this.z-=v$1.z,this.w-=v$1.w,this}subScalar(s$1){return this.x-=s$1,this.y-=s$1,this.z-=s$1,this.w-=s$1,this}subVectors(a$2,b$3){return this.x=a$2.x-b$3.x,this.y=a$2.y-b$3.y,this.z=a$2.z-b$3.z,this.w=a$2.w-b$3.w,this}multiply(v$1){return this.x*=v$1.x,this.y*=v$1.y,this.z*=v$1.z,this.w*=v$1.w,this}multiplyScalar(scalar){return this.x*=scalar,this.y*=scalar,this.z*=scalar,this.w*=scalar,this}applyMatrix4(m$2){let x$3=this.x,y$2=this.y,z$2=this.z,w$1=this.w,e$3=m$2.elements;return this.x=e$3[0]*x$3+e$3[4]*y$2+e$3[8]*z$2+e$3[12]*w$1,this.y=e$3[1]*x$3+e$3[5]*y$2+e$3[9]*z$2+e$3[13]*w$1,this.z=e$3[2]*x$3+e$3[6]*y$2+e$3[10]*z$2+e$3[14]*w$1,this.w=e$3[3]*x$3+e$3[7]*y$2+e$3[11]*z$2+e$3[15]*w$1,this}divide(v$1){return this.x/=v$1.x,this.y/=v$1.y,this.z/=v$1.z,this.w/=v$1.w,this}divideScalar(scalar){return this.multiplyScalar(1/scalar)}setAxisAngleFromQuaternion(q$1){this.w=2*Math.acos(q$1.w);let s$1=Math.sqrt(1-q$1.w*q$1.w);return s$1<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=q$1.x/s$1,this.y=q$1.y/s$1,this.z=q$1.z/s$1),this}setAxisAngleFromRotationMatrix(m$2){let angle,x$3,y$2,z$2,epsilon=.01,epsilon2=.1,te$2=m$2.elements,m11=te$2[0],m12=te$2[4],m13=te$2[8],m21=te$2[1],m22=te$2[5],m23=te$2[9],m31=te$2[2],m32=te$2[6],m33=te$2[10];if(Math.abs(m12-m21)yy&&xx>zz?xxzz?yy1;this.dispose()}this.viewport.set(0,0,width,height),this.scissor.set(0,0,width,height)}clone(){return new this.constructor().copy(this)}copy(source){this.width=source.width,this.height=source.height,this.depth=source.depth,this.scissor.copy(source.scissor),this.scissorTest=source.scissorTest,this.viewport.copy(source.viewport),this.textures.length=0;for(let i$1=0,il=source.textures.length;i$1=this.min.x&&point$3.x<=this.max.x&&point$3.y>=this.min.y&&point$3.y<=this.max.y&&point$3.z>=this.min.z&&point$3.z<=this.max.z}containsBox(box){return this.min.x<=box.min.x&&box.max.x<=this.max.x&&this.min.y<=box.min.y&&box.max.y<=this.max.y&&this.min.z<=box.min.z&&box.max.z<=this.max.z}getParameter(point$3,target$1){return target$1.set((point$3.x-this.min.x)/(this.max.x-this.min.x),(point$3.y-this.min.y)/(this.max.y-this.min.y),(point$3.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(box){return box.max.x>=this.min.x&&box.min.x<=this.max.x&&box.max.y>=this.min.y&&box.min.y<=this.max.y&&box.max.z>=this.min.z&&box.min.z<=this.max.z}intersectsSphere(sphere){return this.clampPoint(sphere.center,_vector$b),_vector$b.distanceToSquared(sphere.center)<=sphere.radius*sphere.radius}intersectsPlane(plane){let min$1,max$1;return plane.normal.x>0?(min$1=plane.normal.x*this.min.x,max$1=plane.normal.x*this.max.x):(min$1=plane.normal.x*this.max.x,max$1=plane.normal.x*this.min.x),plane.normal.y>0?(min$1+=plane.normal.y*this.min.y,max$1+=plane.normal.y*this.max.y):(min$1+=plane.normal.y*this.max.y,max$1+=plane.normal.y*this.min.y),plane.normal.z>0?(min$1+=plane.normal.z*this.min.z,max$1+=plane.normal.z*this.max.z):(min$1+=plane.normal.z*this.max.z,max$1+=plane.normal.z*this.min.z),min$1<=-plane.constant&&max$1>=-plane.constant}intersectsTriangle(triangle){if(this.isEmpty())return!1;this.getCenter(_center),_extents.subVectors(this.max,_center),_v0$2.subVectors(triangle.a,_center),_v1$7.subVectors(triangle.b,_center),_v2$4.subVectors(triangle.c,_center),_f0.subVectors(_v1$7,_v0$2),_f1.subVectors(_v2$4,_v1$7),_f2.subVectors(_v0$2,_v2$4);let axes=[0,-_f0.z,_f0.y,0,-_f1.z,_f1.y,0,-_f2.z,_f2.y,_f0.z,0,-_f0.x,_f1.z,0,-_f1.x,_f2.z,0,-_f2.x,-_f0.y,_f0.x,0,-_f1.y,_f1.x,0,-_f2.y,_f2.x,0];return!satForAxes(axes,_v0$2,_v1$7,_v2$4,_extents)||(axes=[1,0,0,0,1,0,0,0,1],!satForAxes(axes,_v0$2,_v1$7,_v2$4,_extents))?!1:(_triangleNormal.crossVectors(_f0,_f1),axes=[_triangleNormal.x,_triangleNormal.y,_triangleNormal.z],satForAxes(axes,_v0$2,_v1$7,_v2$4,_extents))}clampPoint(point$3,target$1){return target$1.copy(point$3).clamp(this.min,this.max)}distanceToPoint(point$3){return this.clampPoint(point$3,_vector$b).distanceTo(point$3)}getBoundingSphere(target$1){return this.isEmpty()?target$1.makeEmpty():(this.getCenter(target$1.center),target$1.radius=this.getSize(_vector$b).length()*.5),target$1}intersect(box){return this.min.max(box.min),this.max.min(box.max),this.isEmpty()&&this.makeEmpty(),this}union(box){return this.min.min(box.min),this.max.max(box.max),this}applyMatrix4(matrix){return this.isEmpty()?this:(_points[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(matrix),_points[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(matrix),_points[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(matrix),_points[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(matrix),_points[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(matrix),_points[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(matrix),_points[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(matrix),_points[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(matrix),this.setFromPoints(_points),this)}translate(offset$1){return this.min.add(offset$1),this.max.add(offset$1),this}equals(box){return box.min.equals(this.min)&&box.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(json){return this.min.fromArray(json.min),this.max.fromArray(json.max),this}};const _points=[new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3,new Vector3],_vector$b=new Vector3,_box$4=new Box3,_v0$2=new Vector3,_v1$7=new Vector3,_v2$4=new Vector3,_f0=new Vector3,_f1=new Vector3,_f2=new Vector3,_center=new Vector3,_extents=new Vector3,_triangleNormal=new Vector3,_testAxis=new Vector3;function satForAxes(axes,v0,v1,v2,extents){for(let i$1=0,j$1=axes.length-3;i$1<=j$1;i$1+=3){_testAxis.fromArray(axes,i$1);let r$2=extents.x*Math.abs(_testAxis.x)+extents.y*Math.abs(_testAxis.y)+extents.z*Math.abs(_testAxis.z),p0=v0.dot(_testAxis),p1=v1.dot(_testAxis),p2=v2.dot(_testAxis);if(Math.max(-Math.max(p0,p1,p2),Math.min(p0,p1,p2))>r$2)return!1}return!0}const _box$3=new Box3,_v1$6=new Vector3,_v2$3=new Vector3;var Sphere=class{constructor(center=new Vector3,radius=-1){this.isSphere=!0,this.center=center,this.radius=radius}set(center,radius){return this.center.copy(center),this.radius=radius,this}setFromPoints(points,optionalCenter){let center=this.center;optionalCenter===void 0?_box$3.setFromPoints(points).getCenter(center):center.copy(optionalCenter);let maxRadiusSq=0;for(let i$1=0,il=points.length;i$1this.radius*this.radius&&(target$1.sub(this.center).normalize(),target$1.multiplyScalar(this.radius).add(this.center)),target$1}getBoundingBox(target$1){return this.isEmpty()?(target$1.makeEmpty(),target$1):(target$1.set(this.center,this.center),target$1.expandByScalar(this.radius),target$1)}applyMatrix4(matrix){return this.center.applyMatrix4(matrix),this.radius*=matrix.getMaxScaleOnAxis(),this}translate(offset$1){return this.center.add(offset$1),this}expandByPoint(point$3){if(this.isEmpty())return this.center.copy(point$3),this.radius=0,this;_v1$6.subVectors(point$3,this.center);let lengthSq=_v1$6.lengthSq();if(lengthSq>this.radius*this.radius){let length=Math.sqrt(lengthSq),delta=(length-this.radius)*.5;this.center.addScaledVector(_v1$6,delta/length),this.radius+=delta}return this}union(sphere){return sphere.isEmpty()?this:this.isEmpty()?(this.copy(sphere),this):(this.center.equals(sphere.center)===!0?this.radius=Math.max(this.radius,sphere.radius):(_v2$3.subVectors(sphere.center,this.center).setLength(sphere.radius),this.expandByPoint(_v1$6.copy(sphere.center).add(_v2$3)),this.expandByPoint(_v1$6.copy(sphere.center).sub(_v2$3))),this)}equals(sphere){return sphere.center.equals(this.center)&&sphere.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(json){return this.radius=json.radius,this.center.fromArray(json.center),this}};const _vector$a=new Vector3,_segCenter=new Vector3,_segDir=new Vector3,_diff=new Vector3,_edge1=new Vector3,_edge2=new Vector3,_normal$1=new Vector3;var Ray=class{constructor(origin=new Vector3,direction=new Vector3(0,0,-1)){this.origin=origin,this.direction=direction}set(origin,direction){return this.origin.copy(origin),this.direction.copy(direction),this}copy(ray){return this.origin.copy(ray.origin),this.direction.copy(ray.direction),this}at(t,target$1){return target$1.copy(this.origin).addScaledVector(this.direction,t)}lookAt(v$1){return this.direction.copy(v$1).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,_vector$a)),this}closestPointToPoint(point$3,target$1){target$1.subVectors(point$3,this.origin);let directionDistance=target$1.dot(this.direction);return directionDistance<0?target$1.copy(this.origin):target$1.copy(this.origin).addScaledVector(this.direction,directionDistance)}distanceToPoint(point$3){return Math.sqrt(this.distanceSqToPoint(point$3))}distanceSqToPoint(point$3){let directionDistance=_vector$a.subVectors(point$3,this.origin).dot(this.direction);return directionDistance<0?this.origin.distanceToSquared(point$3):(_vector$a.copy(this.origin).addScaledVector(this.direction,directionDistance),_vector$a.distanceToSquared(point$3))}distanceSqToSegment(v0,v1,optionalPointOnRay,optionalPointOnSegment){_segCenter.copy(v0).add(v1).multiplyScalar(.5),_segDir.copy(v1).sub(v0).normalize(),_diff.copy(this.origin).sub(_segCenter);let segExtent=v0.distanceTo(v1)*.5,a01=-this.direction.dot(_segDir),b0=_diff.dot(this.direction),b1=-_diff.dot(_segDir),c$4=_diff.lengthSq(),det=Math.abs(1-a01*a01),s0,s1,sqrDist,extDet;if(det>0)if(s0=a01*b1-b0,s1=a01*b0-b1,extDet=segExtent*det,s0>=0)if(s1>=-extDet)if(s1<=extDet){let invDet=1/det;s0*=invDet,s1*=invDet,sqrDist=s0*(s0+a01*s1+2*b0)+s1*(a01*s0+s1+2*b1)+c$4}else s1=segExtent,s0=Math.max(0,-(a01*s1+b0)),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4;else s1=-segExtent,s0=Math.max(0,-(a01*s1+b0)),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4;else s1<=-extDet?(s0=Math.max(0,-(-a01*segExtent+b0)),s1=s0>0?-segExtent:Math.min(Math.max(-segExtent,-b1),segExtent),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4):s1<=extDet?(s0=0,s1=Math.min(Math.max(-segExtent,-b1),segExtent),sqrDist=s1*(s1+2*b1)+c$4):(s0=Math.max(0,-(a01*segExtent+b0)),s1=s0>0?segExtent:Math.min(Math.max(-segExtent,-b1),segExtent),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4);else s1=a01>0?-segExtent:segExtent,s0=Math.max(0,-(a01*s1+b0)),sqrDist=-s0*s0+s1*(s1+2*b1)+c$4;return optionalPointOnRay&&optionalPointOnRay.copy(this.origin).addScaledVector(this.direction,s0),optionalPointOnSegment&&optionalPointOnSegment.copy(_segCenter).addScaledVector(_segDir,s1),sqrDist}intersectSphere(sphere,target$1){_vector$a.subVectors(sphere.center,this.origin);let tca=_vector$a.dot(this.direction),d2=_vector$a.dot(_vector$a)-tca*tca,radius2=sphere.radius*sphere.radius;if(d2>radius2)return null;let thc=Math.sqrt(radius2-d2),t0=tca-thc,t1=tca+thc;return t1<0?null:t0<0?this.at(t1,target$1):this.at(t0,target$1)}intersectsSphere(sphere){return sphere.radius<0?!1:this.distanceSqToPoint(sphere.center)<=sphere.radius*sphere.radius}distanceToPlane(plane){let denominator=plane.normal.dot(this.direction);if(denominator===0)return plane.distanceToPoint(this.origin)===0?0:null;let t=-(this.origin.dot(plane.normal)+plane.constant)/denominator;return t>=0?t:null}intersectPlane(plane,target$1){let t=this.distanceToPlane(plane);return t===null?null:this.at(t,target$1)}intersectsPlane(plane){let distToPoint=plane.distanceToPoint(this.origin);if(distToPoint===0)return!0;let denominator=plane.normal.dot(this.direction);return denominator*distToPoint<0}intersectBox(box,target$1){let tmin,tmax,tymin,tymax,tzmin,tzmax,invdirx=1/this.direction.x,invdiry=1/this.direction.y,invdirz=1/this.direction.z,origin=this.origin;return invdirx>=0?(tmin=(box.min.x-origin.x)*invdirx,tmax=(box.max.x-origin.x)*invdirx):(tmin=(box.max.x-origin.x)*invdirx,tmax=(box.min.x-origin.x)*invdirx),invdiry>=0?(tymin=(box.min.y-origin.y)*invdiry,tymax=(box.max.y-origin.y)*invdiry):(tymin=(box.max.y-origin.y)*invdiry,tymax=(box.min.y-origin.y)*invdiry),tmin>tymax||tymin>tmax||((tymin>tmin||isNaN(tmin))&&(tmin=tymin),(tymax=0?(tzmin=(box.min.z-origin.z)*invdirz,tzmax=(box.max.z-origin.z)*invdirz):(tzmin=(box.max.z-origin.z)*invdirz,tzmax=(box.min.z-origin.z)*invdirz),tmin>tzmax||tzmin>tmax)||((tzmin>tmin||tmin!==tmin)&&(tmin=tzmin),(tzmax=0?tmin:tmax,target$1)}intersectsBox(box){return this.intersectBox(box,_vector$a)!==null}intersectTriangle(a$2,b$3,c$4,backfaceCulling,target$1){_edge1.subVectors(b$3,a$2),_edge2.subVectors(c$4,a$2),_normal$1.crossVectors(_edge1,_edge2);let DdN=this.direction.dot(_normal$1),sign$1;if(DdN>0){if(backfaceCulling)return null;sign$1=1}else if(DdN<0)sign$1=-1,DdN=-DdN;else return null;_diff.subVectors(this.origin,a$2);let DdQxE2=sign$1*this.direction.dot(_edge2.crossVectors(_diff,_edge2));if(DdQxE2<0)return null;let DdE1xQ=sign$1*this.direction.dot(_edge1.cross(_diff));if(DdE1xQ<0||DdQxE2+DdE1xQ>DdN)return null;let QdN=-sign$1*_diff.dot(_normal$1);return QdN<0?null:this.at(QdN/DdN,target$1)}applyMatrix4(matrix4){return this.origin.applyMatrix4(matrix4),this.direction.transformDirection(matrix4),this}equals(ray){return ray.origin.equals(this.origin)&&ray.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Matrix4=class Matrix4{constructor(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44){Matrix4.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],n11!==void 0&&this.set(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44)}set(n11,n12,n13,n14,n21,n22,n23,n24,n31,n32,n33,n34,n41,n42,n43,n44){let te$2=this.elements;return te$2[0]=n11,te$2[4]=n12,te$2[8]=n13,te$2[12]=n14,te$2[1]=n21,te$2[5]=n22,te$2[9]=n23,te$2[13]=n24,te$2[2]=n31,te$2[6]=n32,te$2[10]=n33,te$2[14]=n34,te$2[3]=n41,te$2[7]=n42,te$2[11]=n43,te$2[15]=n44,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 Matrix4().fromArray(this.elements)}copy(m$2){let te$2=this.elements,me$1=m$2.elements;return te$2[0]=me$1[0],te$2[1]=me$1[1],te$2[2]=me$1[2],te$2[3]=me$1[3],te$2[4]=me$1[4],te$2[5]=me$1[5],te$2[6]=me$1[6],te$2[7]=me$1[7],te$2[8]=me$1[8],te$2[9]=me$1[9],te$2[10]=me$1[10],te$2[11]=me$1[11],te$2[12]=me$1[12],te$2[13]=me$1[13],te$2[14]=me$1[14],te$2[15]=me$1[15],this}copyPosition(m$2){let te$2=this.elements,me$1=m$2.elements;return te$2[12]=me$1[12],te$2[13]=me$1[13],te$2[14]=me$1[14],this}setFromMatrix3(m$2){let me$1=m$2.elements;return this.set(me$1[0],me$1[3],me$1[6],0,me$1[1],me$1[4],me$1[7],0,me$1[2],me$1[5],me$1[8],0,0,0,0,1),this}extractBasis(xAxis,yAxis,zAxis){return xAxis.setFromMatrixColumn(this,0),yAxis.setFromMatrixColumn(this,1),zAxis.setFromMatrixColumn(this,2),this}makeBasis(xAxis,yAxis,zAxis){return this.set(xAxis.x,yAxis.x,zAxis.x,0,xAxis.y,yAxis.y,zAxis.y,0,xAxis.z,yAxis.z,zAxis.z,0,0,0,0,1),this}extractRotation(m$2){let te$2=this.elements,me$1=m$2.elements,scaleX=1/_v1$5.setFromMatrixColumn(m$2,0).length(),scaleY=1/_v1$5.setFromMatrixColumn(m$2,1).length(),scaleZ=1/_v1$5.setFromMatrixColumn(m$2,2).length();return te$2[0]=me$1[0]*scaleX,te$2[1]=me$1[1]*scaleX,te$2[2]=me$1[2]*scaleX,te$2[3]=0,te$2[4]=me$1[4]*scaleY,te$2[5]=me$1[5]*scaleY,te$2[6]=me$1[6]*scaleY,te$2[7]=0,te$2[8]=me$1[8]*scaleZ,te$2[9]=me$1[9]*scaleZ,te$2[10]=me$1[10]*scaleZ,te$2[11]=0,te$2[12]=0,te$2[13]=0,te$2[14]=0,te$2[15]=1,this}makeRotationFromEuler(euler){let te$2=this.elements,x$3=euler.x,y$2=euler.y,z$2=euler.z,a$2=Math.cos(x$3),b$3=Math.sin(x$3),c$4=Math.cos(y$2),d$2=Math.sin(y$2),e$3=Math.cos(z$2),f$3=Math.sin(z$2);if(euler.order===`XYZ`){let ae$1=a$2*e$3,af=a$2*f$3,be$2=b$3*e$3,bf=b$3*f$3;te$2[0]=c$4*e$3,te$2[4]=-c$4*f$3,te$2[8]=d$2,te$2[1]=af+be$2*d$2,te$2[5]=ae$1-bf*d$2,te$2[9]=-b$3*c$4,te$2[2]=bf-ae$1*d$2,te$2[6]=be$2+af*d$2,te$2[10]=a$2*c$4}else if(euler.order===`YXZ`){let ce$2=c$4*e$3,cf=c$4*f$3,de$3=d$2*e$3,df=d$2*f$3;te$2[0]=ce$2+df*b$3,te$2[4]=de$3*b$3-cf,te$2[8]=a$2*d$2,te$2[1]=a$2*f$3,te$2[5]=a$2*e$3,te$2[9]=-b$3,te$2[2]=cf*b$3-de$3,te$2[6]=df+ce$2*b$3,te$2[10]=a$2*c$4}else if(euler.order===`ZXY`){let ce$2=c$4*e$3,cf=c$4*f$3,de$3=d$2*e$3,df=d$2*f$3;te$2[0]=ce$2-df*b$3,te$2[4]=-a$2*f$3,te$2[8]=de$3+cf*b$3,te$2[1]=cf+de$3*b$3,te$2[5]=a$2*e$3,te$2[9]=df-ce$2*b$3,te$2[2]=-a$2*d$2,te$2[6]=b$3,te$2[10]=a$2*c$4}else if(euler.order===`ZYX`){let ae$1=a$2*e$3,af=a$2*f$3,be$2=b$3*e$3,bf=b$3*f$3;te$2[0]=c$4*e$3,te$2[4]=be$2*d$2-af,te$2[8]=ae$1*d$2+bf,te$2[1]=c$4*f$3,te$2[5]=bf*d$2+ae$1,te$2[9]=af*d$2-be$2,te$2[2]=-d$2,te$2[6]=b$3*c$4,te$2[10]=a$2*c$4}else if(euler.order===`YZX`){let ac=a$2*c$4,ad=a$2*d$2,bc=b$3*c$4,bd=b$3*d$2;te$2[0]=c$4*e$3,te$2[4]=bd-ac*f$3,te$2[8]=bc*f$3+ad,te$2[1]=f$3,te$2[5]=a$2*e$3,te$2[9]=-b$3*e$3,te$2[2]=-d$2*e$3,te$2[6]=ad*f$3+bc,te$2[10]=ac-bd*f$3}else if(euler.order===`XZY`){let ac=a$2*c$4,ad=a$2*d$2,bc=b$3*c$4,bd=b$3*d$2;te$2[0]=c$4*e$3,te$2[4]=-f$3,te$2[8]=d$2*e$3,te$2[1]=ac*f$3+bd,te$2[5]=a$2*e$3,te$2[9]=ad*f$3-bc,te$2[2]=bc*f$3-ad,te$2[6]=b$3*e$3,te$2[10]=bd*f$3+ac}return te$2[3]=0,te$2[7]=0,te$2[11]=0,te$2[12]=0,te$2[13]=0,te$2[14]=0,te$2[15]=1,this}makeRotationFromQuaternion(q$1){return this.compose(_zero,q$1,_one)}lookAt(eye,target$1,up){let te$2=this.elements;return _z.subVectors(eye,target$1),_z.lengthSq()===0&&(_z.z=1),_z.normalize(),_x.crossVectors(up,_z),_x.lengthSq()===0&&(Math.abs(up.z)===1?_z.x+=1e-4:_z.z+=1e-4,_z.normalize(),_x.crossVectors(up,_z)),_x.normalize(),_y.crossVectors(_z,_x),te$2[0]=_x.x,te$2[4]=_y.x,te$2[8]=_z.x,te$2[1]=_x.y,te$2[5]=_y.y,te$2[9]=_z.y,te$2[2]=_x.z,te$2[6]=_y.z,te$2[10]=_z.z,this}multiply(m$2){return this.multiplyMatrices(this,m$2)}premultiply(m$2){return this.multiplyMatrices(m$2,this)}multiplyMatrices(a$2,b$3){let ae$1=a$2.elements,be$2=b$3.elements,te$2=this.elements,a11=ae$1[0],a12=ae$1[4],a13=ae$1[8],a14=ae$1[12],a21=ae$1[1],a22=ae$1[5],a23=ae$1[9],a24=ae$1[13],a31=ae$1[2],a32=ae$1[6],a33=ae$1[10],a34=ae$1[14],a41=ae$1[3],a42=ae$1[7],a43=ae$1[11],a44=ae$1[15],b11=be$2[0],b12=be$2[4],b13=be$2[8],b14=be$2[12],b21=be$2[1],b22=be$2[5],b23=be$2[9],b24=be$2[13],b31=be$2[2],b32=be$2[6],b33=be$2[10],b34=be$2[14],b41=be$2[3],b42=be$2[7],b43=be$2[11],b44=be$2[15];return te$2[0]=a11*b11+a12*b21+a13*b31+a14*b41,te$2[4]=a11*b12+a12*b22+a13*b32+a14*b42,te$2[8]=a11*b13+a12*b23+a13*b33+a14*b43,te$2[12]=a11*b14+a12*b24+a13*b34+a14*b44,te$2[1]=a21*b11+a22*b21+a23*b31+a24*b41,te$2[5]=a21*b12+a22*b22+a23*b32+a24*b42,te$2[9]=a21*b13+a22*b23+a23*b33+a24*b43,te$2[13]=a21*b14+a22*b24+a23*b34+a24*b44,te$2[2]=a31*b11+a32*b21+a33*b31+a34*b41,te$2[6]=a31*b12+a32*b22+a33*b32+a34*b42,te$2[10]=a31*b13+a32*b23+a33*b33+a34*b43,te$2[14]=a31*b14+a32*b24+a33*b34+a34*b44,te$2[3]=a41*b11+a42*b21+a43*b31+a44*b41,te$2[7]=a41*b12+a42*b22+a43*b32+a44*b42,te$2[11]=a41*b13+a42*b23+a43*b33+a44*b43,te$2[15]=a41*b14+a42*b24+a43*b34+a44*b44,this}multiplyScalar(s$1){let te$2=this.elements;return te$2[0]*=s$1,te$2[4]*=s$1,te$2[8]*=s$1,te$2[12]*=s$1,te$2[1]*=s$1,te$2[5]*=s$1,te$2[9]*=s$1,te$2[13]*=s$1,te$2[2]*=s$1,te$2[6]*=s$1,te$2[10]*=s$1,te$2[14]*=s$1,te$2[3]*=s$1,te$2[7]*=s$1,te$2[11]*=s$1,te$2[15]*=s$1,this}determinant(){let te$2=this.elements,n11=te$2[0],n12=te$2[4],n13=te$2[8],n14=te$2[12],n21=te$2[1],n22=te$2[5],n23=te$2[9],n24=te$2[13],n31=te$2[2],n32=te$2[6],n33=te$2[10],n34=te$2[14],n41=te$2[3],n42=te$2[7],n43=te$2[11],n44=te$2[15];return n41*(+n14*n23*n32-n13*n24*n32-n14*n22*n33+n12*n24*n33+n13*n22*n34-n12*n23*n34)+n42*(+n11*n23*n34-n11*n24*n33+n14*n21*n33-n13*n21*n34+n13*n24*n31-n14*n23*n31)+n43*(+n11*n24*n32-n11*n22*n34-n14*n21*n32+n12*n21*n34+n14*n22*n31-n12*n24*n31)+n44*(-n13*n22*n31-n11*n23*n32+n11*n22*n33+n13*n21*n32-n12*n21*n33+n12*n23*n31)}transpose(){let te$2=this.elements,tmp$1;return tmp$1=te$2[1],te$2[1]=te$2[4],te$2[4]=tmp$1,tmp$1=te$2[2],te$2[2]=te$2[8],te$2[8]=tmp$1,tmp$1=te$2[6],te$2[6]=te$2[9],te$2[9]=tmp$1,tmp$1=te$2[3],te$2[3]=te$2[12],te$2[12]=tmp$1,tmp$1=te$2[7],te$2[7]=te$2[13],te$2[13]=tmp$1,tmp$1=te$2[11],te$2[11]=te$2[14],te$2[14]=tmp$1,this}setPosition(x$3,y$2,z$2){let te$2=this.elements;return x$3.isVector3?(te$2[12]=x$3.x,te$2[13]=x$3.y,te$2[14]=x$3.z):(te$2[12]=x$3,te$2[13]=y$2,te$2[14]=z$2),this}invert(){let te$2=this.elements,n11=te$2[0],n21=te$2[1],n31=te$2[2],n41=te$2[3],n12=te$2[4],n22=te$2[5],n32=te$2[6],n42=te$2[7],n13=te$2[8],n23=te$2[9],n33=te$2[10],n43=te$2[11],n14=te$2[12],n24=te$2[13],n34=te$2[14],n44=te$2[15],t11=n23*n34*n42-n24*n33*n42+n24*n32*n43-n22*n34*n43-n23*n32*n44+n22*n33*n44,t12=n14*n33*n42-n13*n34*n42-n14*n32*n43+n12*n34*n43+n13*n32*n44-n12*n33*n44,t13=n13*n24*n42-n14*n23*n42+n14*n22*n43-n12*n24*n43-n13*n22*n44+n12*n23*n44,t14=n14*n23*n32-n13*n24*n32-n14*n22*n33+n12*n24*n33+n13*n22*n34-n12*n23*n34,det=n11*t11+n21*t12+n31*t13+n41*t14;if(det===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let detInv=1/det;return te$2[0]=t11*detInv,te$2[1]=(n24*n33*n41-n23*n34*n41-n24*n31*n43+n21*n34*n43+n23*n31*n44-n21*n33*n44)*detInv,te$2[2]=(n22*n34*n41-n24*n32*n41+n24*n31*n42-n21*n34*n42-n22*n31*n44+n21*n32*n44)*detInv,te$2[3]=(n23*n32*n41-n22*n33*n41-n23*n31*n42+n21*n33*n42+n22*n31*n43-n21*n32*n43)*detInv,te$2[4]=t12*detInv,te$2[5]=(n13*n34*n41-n14*n33*n41+n14*n31*n43-n11*n34*n43-n13*n31*n44+n11*n33*n44)*detInv,te$2[6]=(n14*n32*n41-n12*n34*n41-n14*n31*n42+n11*n34*n42+n12*n31*n44-n11*n32*n44)*detInv,te$2[7]=(n12*n33*n41-n13*n32*n41+n13*n31*n42-n11*n33*n42-n12*n31*n43+n11*n32*n43)*detInv,te$2[8]=t13*detInv,te$2[9]=(n14*n23*n41-n13*n24*n41-n14*n21*n43+n11*n24*n43+n13*n21*n44-n11*n23*n44)*detInv,te$2[10]=(n12*n24*n41-n14*n22*n41+n14*n21*n42-n11*n24*n42-n12*n21*n44+n11*n22*n44)*detInv,te$2[11]=(n13*n22*n41-n12*n23*n41-n13*n21*n42+n11*n23*n42+n12*n21*n43-n11*n22*n43)*detInv,te$2[12]=t14*detInv,te$2[13]=(n13*n24*n31-n14*n23*n31+n14*n21*n33-n11*n24*n33-n13*n21*n34+n11*n23*n34)*detInv,te$2[14]=(n14*n22*n31-n12*n24*n31-n14*n21*n32+n11*n24*n32+n12*n21*n34-n11*n22*n34)*detInv,te$2[15]=(n12*n23*n31-n13*n22*n31+n13*n21*n32-n11*n23*n32-n12*n21*n33+n11*n22*n33)*detInv,this}scale(v$1){let te$2=this.elements,x$3=v$1.x,y$2=v$1.y,z$2=v$1.z;return te$2[0]*=x$3,te$2[4]*=y$2,te$2[8]*=z$2,te$2[1]*=x$3,te$2[5]*=y$2,te$2[9]*=z$2,te$2[2]*=x$3,te$2[6]*=y$2,te$2[10]*=z$2,te$2[3]*=x$3,te$2[7]*=y$2,te$2[11]*=z$2,this}getMaxScaleOnAxis(){let te$2=this.elements,scaleXSq=te$2[0]*te$2[0]+te$2[1]*te$2[1]+te$2[2]*te$2[2],scaleYSq=te$2[4]*te$2[4]+te$2[5]*te$2[5]+te$2[6]*te$2[6],scaleZSq=te$2[8]*te$2[8]+te$2[9]*te$2[9]+te$2[10]*te$2[10];return Math.sqrt(Math.max(scaleXSq,scaleYSq,scaleZSq))}makeTranslation(x$3,y$2,z$2){return x$3.isVector3?this.set(1,0,0,x$3.x,0,1,0,x$3.y,0,0,1,x$3.z,0,0,0,1):this.set(1,0,0,x$3,0,1,0,y$2,0,0,1,z$2,0,0,0,1),this}makeRotationX(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(1,0,0,0,0,c$4,-s$1,0,0,s$1,c$4,0,0,0,0,1),this}makeRotationY(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(c$4,0,s$1,0,0,1,0,0,-s$1,0,c$4,0,0,0,0,1),this}makeRotationZ(theta){let c$4=Math.cos(theta),s$1=Math.sin(theta);return this.set(c$4,-s$1,0,0,s$1,c$4,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(axis,angle){let c$4=Math.cos(angle),s$1=Math.sin(angle),t=1-c$4,x$3=axis.x,y$2=axis.y,z$2=axis.z,tx=t*x$3,ty=t*y$2;return this.set(tx*x$3+c$4,tx*y$2-s$1*z$2,tx*z$2+s$1*y$2,0,tx*y$2+s$1*z$2,ty*y$2+c$4,ty*z$2-s$1*x$3,0,tx*z$2-s$1*y$2,ty*z$2+s$1*x$3,t*z$2*z$2+c$4,0,0,0,0,1),this}makeScale(x$3,y$2,z$2){return this.set(x$3,0,0,0,0,y$2,0,0,0,0,z$2,0,0,0,0,1),this}makeShear(xy,xz,yx,yz,zx,zy){return this.set(1,yx,zx,0,xy,1,zy,0,xz,yz,1,0,0,0,0,1),this}compose(position$2,quaternion,scale$1){let te$2=this.elements,x$3=quaternion._x,y$2=quaternion._y,z$2=quaternion._z,w$1=quaternion._w,x2=x$3+x$3,y2=y$2+y$2,z2=z$2+z$2,xx=x$3*x2,xy=x$3*y2,xz=x$3*z2,yy=y$2*y2,yz=y$2*z2,zz=z$2*z2,wx=w$1*x2,wy=w$1*y2,wz=w$1*z2,sx=scale$1.x,sy=scale$1.y,sz=scale$1.z;return te$2[0]=(1-(yy+zz))*sx,te$2[1]=(xy+wz)*sx,te$2[2]=(xz-wy)*sx,te$2[3]=0,te$2[4]=(xy-wz)*sy,te$2[5]=(1-(xx+zz))*sy,te$2[6]=(yz+wx)*sy,te$2[7]=0,te$2[8]=(xz+wy)*sz,te$2[9]=(yz-wx)*sz,te$2[10]=(1-(xx+yy))*sz,te$2[11]=0,te$2[12]=position$2.x,te$2[13]=position$2.y,te$2[14]=position$2.z,te$2[15]=1,this}decompose(position$2,quaternion,scale$1){let te$2=this.elements,sx=_v1$5.set(te$2[0],te$2[1],te$2[2]).length(),sy=_v1$5.set(te$2[4],te$2[5],te$2[6]).length(),sz=_v1$5.set(te$2[8],te$2[9],te$2[10]).length(),det=this.determinant();det<0&&(sx=-sx),position$2.x=te$2[12],position$2.y=te$2[13],position$2.z=te$2[14],_m1$2.copy(this);let invSX=1/sx,invSY=1/sy,invSZ=1/sz;return _m1$2.elements[0]*=invSX,_m1$2.elements[1]*=invSX,_m1$2.elements[2]*=invSX,_m1$2.elements[4]*=invSY,_m1$2.elements[5]*=invSY,_m1$2.elements[6]*=invSY,_m1$2.elements[8]*=invSZ,_m1$2.elements[9]*=invSZ,_m1$2.elements[10]*=invSZ,quaternion.setFromRotationMatrix(_m1$2),scale$1.x=sx,scale$1.y=sy,scale$1.z=sz,this}makePerspective(left,right,top,bottom,near,far,coordinateSystem=WebGLCoordinateSystem){let te$2=this.elements,x$3=2*near/(right-left),y$2=2*near/(top-bottom),a$2=(right+left)/(right-left),b$3=(top+bottom)/(top-bottom),c$4,d$2;if(coordinateSystem===WebGLCoordinateSystem)c$4=-(far+near)/(far-near),d$2=-2*far*near/(far-near);else if(coordinateSystem===WebGPUCoordinateSystem)c$4=-far/(far-near),d$2=-far*near/(far-near);else throw Error(`THREE.Matrix4.makePerspective(): Invalid coordinate system: `+coordinateSystem);return te$2[0]=x$3,te$2[4]=0,te$2[8]=a$2,te$2[12]=0,te$2[1]=0,te$2[5]=y$2,te$2[9]=b$3,te$2[13]=0,te$2[2]=0,te$2[6]=0,te$2[10]=c$4,te$2[14]=d$2,te$2[3]=0,te$2[7]=0,te$2[11]=-1,te$2[15]=0,this}makeOrthographic(left,right,top,bottom,near,far,coordinateSystem=WebGLCoordinateSystem){let te$2=this.elements,w$1=1/(right-left),h$3=1/(top-bottom),p$5=1/(far-near),x$3=(right+left)*w$1,y$2=(top+bottom)*h$3,z$2,zInv;if(coordinateSystem===WebGLCoordinateSystem)z$2=(far+near)*p$5,zInv=-2*p$5;else if(coordinateSystem===WebGPUCoordinateSystem)z$2=near*p$5,zInv=-1*p$5;else throw Error(`THREE.Matrix4.makeOrthographic(): Invalid coordinate system: `+coordinateSystem);return te$2[0]=2*w$1,te$2[4]=0,te$2[8]=0,te$2[12]=-x$3,te$2[1]=0,te$2[5]=2*h$3,te$2[9]=0,te$2[13]=-y$2,te$2[2]=0,te$2[6]=0,te$2[10]=zInv,te$2[14]=-z$2,te$2[3]=0,te$2[7]=0,te$2[11]=0,te$2[15]=1,this}equals(matrix){let te$2=this.elements,me$1=matrix.elements;for(let i$1=0;i$1<16;i$1++)if(te$2[i$1]!==me$1[i$1])return!1;return!0}fromArray(array,offset$1=0){for(let i$1=0;i$1<16;i$1++)this.elements[i$1]=array[i$1+offset$1];return this}toArray(array=[],offset$1=0){let te$2=this.elements;return array[offset$1]=te$2[0],array[offset$1+1]=te$2[1],array[offset$1+2]=te$2[2],array[offset$1+3]=te$2[3],array[offset$1+4]=te$2[4],array[offset$1+5]=te$2[5],array[offset$1+6]=te$2[6],array[offset$1+7]=te$2[7],array[offset$1+8]=te$2[8],array[offset$1+9]=te$2[9],array[offset$1+10]=te$2[10],array[offset$1+11]=te$2[11],array[offset$1+12]=te$2[12],array[offset$1+13]=te$2[13],array[offset$1+14]=te$2[14],array[offset$1+15]=te$2[15],array}};const _v1$5=new Vector3,_m1$2=new Matrix4,_zero=new Vector3(0,0,0),_one=new Vector3(1,1,1),_x=new Vector3,_y=new Vector3,_z=new Vector3,_matrix$2=new Matrix4,_quaternion$3=new Quaternion;var Euler=class Euler{constructor(x$3=0,y$2=0,z$2=0,order$3=Euler.DEFAULT_ORDER){this.isEuler=!0,this._x=x$3,this._y=y$2,this._z=z$2,this._order=order$3}get x(){return this._x}set x(value$1){this._x=value$1,this._onChangeCallback()}get y(){return this._y}set y(value$1){this._y=value$1,this._onChangeCallback()}get z(){return this._z}set z(value$1){this._z=value$1,this._onChangeCallback()}get order(){return this._order}set order(value$1){this._order=value$1,this._onChangeCallback()}set(x$3,y$2,z$2,order$3=this._order){return this._x=x$3,this._y=y$2,this._z=z$2,this._order=order$3,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(euler){return this._x=euler._x,this._y=euler._y,this._z=euler._z,this._order=euler._order,this._onChangeCallback(),this}setFromRotationMatrix(m$2,order$3=this._order,update=!0){let te$2=m$2.elements,m11=te$2[0],m12=te$2[4],m13=te$2[8],m21=te$2[1],m22=te$2[5],m23=te$2[9],m31=te$2[2],m32=te$2[6],m33=te$2[10];switch(order$3){case`XYZ`:this._y=Math.asin(clamp$6(m13,-1,1)),Math.abs(m13)<.9999999?(this._x=Math.atan2(-m23,m33),this._z=Math.atan2(-m12,m11)):(this._x=Math.atan2(m32,m22),this._z=0);break;case`YXZ`:this._x=Math.asin(-clamp$6(m23,-1,1)),Math.abs(m23)<.9999999?(this._y=Math.atan2(m13,m33),this._z=Math.atan2(m21,m22)):(this._y=Math.atan2(-m31,m11),this._z=0);break;case`ZXY`:this._x=Math.asin(clamp$6(m32,-1,1)),Math.abs(m32)<.9999999?(this._y=Math.atan2(-m31,m33),this._z=Math.atan2(-m12,m22)):(this._y=0,this._z=Math.atan2(m21,m11));break;case`ZYX`:this._y=Math.asin(-clamp$6(m31,-1,1)),Math.abs(m31)<.9999999?(this._x=Math.atan2(m32,m33),this._z=Math.atan2(m21,m11)):(this._x=0,this._z=Math.atan2(-m12,m22));break;case`YZX`:this._z=Math.asin(clamp$6(m21,-1,1)),Math.abs(m21)<.9999999?(this._x=Math.atan2(-m23,m22),this._y=Math.atan2(-m31,m11)):(this._x=0,this._y=Math.atan2(m13,m33));break;case`XZY`:this._z=Math.asin(-clamp$6(m12,-1,1)),Math.abs(m12)<.9999999?(this._x=Math.atan2(m32,m22),this._y=Math.atan2(m13,m11)):(this._x=Math.atan2(-m23,m33),this._y=0);break;default:console.warn(`THREE.Euler: .setFromRotationMatrix() encountered an unknown order: `+order$3)}return this._order=order$3,update===!0&&this._onChangeCallback(),this}setFromQuaternion(q$1,order$3,update){return _matrix$2.makeRotationFromQuaternion(q$1),this.setFromRotationMatrix(_matrix$2,order$3,update)}setFromVector3(v$1,order$3=this._order){return this.set(v$1.x,v$1.y,v$1.z,order$3)}reorder(newOrder){return _quaternion$3.setFromEuler(this),this.setFromQuaternion(_quaternion$3,newOrder)}equals(euler){return euler._x===this._x&&euler._y===this._y&&euler._z===this._z&&euler._order===this._order}fromArray(array){return this._x=array[0],this._y=array[1],this._z=array[2],array[3]!==void 0&&(this._order=array[3]),this._onChangeCallback(),this}toArray(array=[],offset$1=0){return array[offset$1]=this._x,array[offset$1+1]=this._y,array[offset$1+2]=this._z,array[offset$1+3]=this._order,array}_onChange(callback){return this._onChangeCallback=callback,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};Euler.DEFAULT_ORDER=`XYZ`;var Layers=class{constructor(){this.mask=1}set(layer){this.mask=(1<>>0}enable(layer){this.mask|=1<1){for(let i$1=0;i$11){for(let i$1=0;i$10&&(object.userData=this.userData),object.layers=this.layers.mask,object.matrix=this.matrix.toArray(),object.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(object.matrixAutoUpdate=!1),this.isInstancedMesh&&(object.type=`InstancedMesh`,object.count=this.count,object.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(object.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(object.type=`BatchedMesh`,object.perObjectFrustumCulled=this.perObjectFrustumCulled,object.sortObjects=this.sortObjects,object.drawRanges=this._drawRanges,object.reservedRanges=this._reservedRanges,object.geometryInfo=this._geometryInfo.map(info=>({...info,boundingBox:info.boundingBox?info.boundingBox.toJSON():void 0,boundingSphere:info.boundingSphere?info.boundingSphere.toJSON():void 0})),object.instanceInfo=this._instanceInfo.map(info=>({...info})),object.availableInstanceIds=this._availableInstanceIds.slice(),object.availableGeometryIds=this._availableGeometryIds.slice(),object.nextIndexStart=this._nextIndexStart,object.nextVertexStart=this._nextVertexStart,object.geometryCount=this._geometryCount,object.maxInstanceCount=this._maxInstanceCount,object.maxVertexCount=this._maxVertexCount,object.maxIndexCount=this._maxIndexCount,object.geometryInitialized=this._geometryInitialized,object.matricesTexture=this._matricesTexture.toJSON(meta),object.indirectTexture=this._indirectTexture.toJSON(meta),this._colorsTexture!==null&&(object.colorsTexture=this._colorsTexture.toJSON(meta)),this.boundingSphere!==null&&(object.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(object.boundingBox=this.boundingBox.toJSON()));function serialize$1(library,element$3){return library[element$3.uuid]===void 0&&(library[element$3.uuid]=element$3.toJSON(meta)),element$3.uuid}if(this.isScene)this.background&&(this.background.isColor?object.background=this.background.toJSON():this.background.isTexture&&(object.background=this.background.toJSON(meta).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(object.environment=this.environment.toJSON(meta).uuid);else if(this.isMesh||this.isLine||this.isPoints){object.geometry=serialize$1(meta.geometries,this.geometry);let parameters=this.geometry.parameters;if(parameters!==void 0&¶meters.shapes!==void 0){let shapes=parameters.shapes;if(Array.isArray(shapes))for(let i$1=0,l$1=shapes.length;i$10){object.children=[];for(let i$1=0;i$10){object.animations=[];for(let i$1=0;i$10&&(output.geometries=geometries),materials.length>0&&(output.materials=materials),textures.length>0&&(output.textures=textures),images.length>0&&(output.images=images),shapes.length>0&&(output.shapes=shapes),skeletons.length>0&&(output.skeletons=skeletons),animations$1.length>0&&(output.animations=animations$1),nodes.length>0&&(output.nodes=nodes)}return output.object=object,output;function extractFromCache(cache$1){let values=[];for(let key$1 in cache$1){let data$10=cache$1[key$1];delete data$10.metadata,values.push(data$10)}return values}}clone(recursive){return new this.constructor().copy(this,recursive)}copy(source,recursive=!0){if(this.name=source.name,this.up.copy(source.up),this.position.copy(source.position),this.rotation.order=source.rotation.order,this.quaternion.copy(source.quaternion),this.scale.copy(source.scale),this.matrix.copy(source.matrix),this.matrixWorld.copy(source.matrixWorld),this.matrixAutoUpdate=source.matrixAutoUpdate,this.matrixWorldAutoUpdate=source.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=source.matrixWorldNeedsUpdate,this.layers.mask=source.layers.mask,this.visible=source.visible,this.castShadow=source.castShadow,this.receiveShadow=source.receiveShadow,this.frustumCulled=source.frustumCulled,this.renderOrder=source.renderOrder,this.animations=source.animations.slice(),this.userData=JSON.parse(JSON.stringify(source.userData)),recursive===!0)for(let i$1=0;i$10?target$1.multiplyScalar(1/Math.sqrt(targetLengthSq)):target$1.set(0,0,0)}static getBarycoord(point$3,a$2,b$3,c$4,target$1){_v0$1.subVectors(c$4,a$2),_v1$3.subVectors(b$3,a$2),_v2$2.subVectors(point$3,a$2);let dot00=_v0$1.dot(_v0$1),dot01=_v0$1.dot(_v1$3),dot02=_v0$1.dot(_v2$2),dot11=_v1$3.dot(_v1$3),dot12=_v1$3.dot(_v2$2),denom=dot00*dot11-dot01*dot01;if(denom===0)return target$1.set(0,0,0),null;let invDenom=1/denom,u$1=(dot11*dot02-dot01*dot12)*invDenom,v$1=(dot00*dot12-dot01*dot02)*invDenom;return target$1.set(1-u$1-v$1,v$1,u$1)}static containsPoint(point$3,a$2,b$3,c$4){return this.getBarycoord(point$3,a$2,b$3,c$4,_v3$2)===null?!1:_v3$2.x>=0&&_v3$2.y>=0&&_v3$2.x+_v3$2.y<=1}static getInterpolation(point$3,p1,p2,p3$1,v1,v2,v3,target$1){return this.getBarycoord(point$3,p1,p2,p3$1,_v3$2)===null?(target$1.x=0,target$1.y=0,`z`in target$1&&(target$1.z=0),`w`in target$1&&(target$1.w=0),null):(target$1.setScalar(0),target$1.addScaledVector(v1,_v3$2.x),target$1.addScaledVector(v2,_v3$2.y),target$1.addScaledVector(v3,_v3$2.z),target$1)}static getInterpolatedAttribute(attr,i1,i2,i3,barycoord,target$1){return _v40.setScalar(0),_v41.setScalar(0),_v42.setScalar(0),_v40.fromBufferAttribute(attr,i1),_v41.fromBufferAttribute(attr,i2),_v42.fromBufferAttribute(attr,i3),target$1.setScalar(0),target$1.addScaledVector(_v40,barycoord.x),target$1.addScaledVector(_v41,barycoord.y),target$1.addScaledVector(_v42,barycoord.z),target$1}static isFrontFacing(a$2,b$3,c$4,direction){return _v0$1.subVectors(c$4,b$3),_v1$3.subVectors(a$2,b$3),_v0$1.cross(_v1$3).dot(direction)<0}set(a$2,b$3,c$4){return this.a.copy(a$2),this.b.copy(b$3),this.c.copy(c$4),this}setFromPointsAndIndices(points,i0,i1,i2){return this.a.copy(points[i0]),this.b.copy(points[i1]),this.c.copy(points[i2]),this}setFromAttributeAndIndices(attribute,i0,i1,i2){return this.a.fromBufferAttribute(attribute,i0),this.b.fromBufferAttribute(attribute,i1),this.c.fromBufferAttribute(attribute,i2),this}clone(){return new this.constructor().copy(this)}copy(triangle){return this.a.copy(triangle.a),this.b.copy(triangle.b),this.c.copy(triangle.c),this}getArea(){return _v0$1.subVectors(this.c,this.b),_v1$3.subVectors(this.a,this.b),_v0$1.cross(_v1$3).length()*.5}getMidpoint(target$1){return target$1.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(target$1){return Triangle.getNormal(this.a,this.b,this.c,target$1)}getPlane(target$1){return target$1.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(point$3,target$1){return Triangle.getBarycoord(point$3,this.a,this.b,this.c,target$1)}getInterpolation(point$3,v1,v2,v3,target$1){return Triangle.getInterpolation(point$3,this.a,this.b,this.c,v1,v2,v3,target$1)}containsPoint(point$3){return Triangle.containsPoint(point$3,this.a,this.b,this.c)}isFrontFacing(direction){return Triangle.isFrontFacing(this.a,this.b,this.c,direction)}intersectsBox(box){return box.intersectsTriangle(this)}closestPointToPoint(p$5,target$1){let a$2=this.a,b$3=this.b,c$4=this.c,v$1,w$1;_vab.subVectors(b$3,a$2),_vac.subVectors(c$4,a$2),_vap.subVectors(p$5,a$2);let d1=_vab.dot(_vap),d2=_vac.dot(_vap);if(d1<=0&&d2<=0)return target$1.copy(a$2);_vbp.subVectors(p$5,b$3);let d3=_vab.dot(_vbp),d4=_vac.dot(_vbp);if(d3>=0&&d4<=d3)return target$1.copy(b$3);let vc=d1*d4-d3*d2;if(vc<=0&&d1>=0&&d3<=0)return v$1=d1/(d1-d3),target$1.copy(a$2).addScaledVector(_vab,v$1);_vcp.subVectors(p$5,c$4);let d5=_vab.dot(_vcp),d6=_vac.dot(_vcp);if(d6>=0&&d5<=d6)return target$1.copy(c$4);let vb=d5*d2-d1*d6;if(vb<=0&&d2>=0&&d6<=0)return w$1=d2/(d2-d6),target$1.copy(a$2).addScaledVector(_vac,w$1);let va=d3*d6-d5*d4;if(va<=0&&d4-d3>=0&&d5-d6>=0)return _vbc.subVectors(c$4,b$3),w$1=(d4-d3)/(d4-d3+(d5-d6)),target$1.copy(b$3).addScaledVector(_vbc,w$1);let denom=1/(va+vb+vc);return v$1=vb*denom,w$1=vc*denom,target$1.copy(a$2).addScaledVector(_vab,v$1).addScaledVector(_vac,w$1)}equals(triangle){return triangle.a.equals(this.a)&&triangle.b.equals(this.b)&&triangle.c.equals(this.c)}};const _colorKeywords={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},_hslA={h:0,s:0,l:0},_hslB={h:0,s:0,l:0};function hue2rgb(p$5,q$1,t){return t<0&&(t+=1),t>1&&--t,t<1/6?p$5+(q$1-p$5)*6*t:t<1/2?q$1:t<2/3?p$5+(q$1-p$5)*6*(2/3-t):p$5}var Color=class{constructor(r$2,g$2,b$3){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(r$2,g$2,b$3)}set(r$2,g$2,b$3){if(g$2===void 0&&b$3===void 0){let value$1=r$2;value$1&&value$1.isColor?this.copy(value$1):typeof value$1==`number`?this.setHex(value$1):typeof value$1==`string`&&this.setStyle(value$1)}else this.setRGB(r$2,g$2,b$3);return this}setScalar(scalar){return this.r=scalar,this.g=scalar,this.b=scalar,this}setHex(hex$2,colorSpace=SRGBColorSpace){return hex$2=Math.floor(hex$2),this.r=(hex$2>>16&255)/255,this.g=(hex$2>>8&255)/255,this.b=(hex$2&255)/255,ColorManagement.colorSpaceToWorking(this,colorSpace),this}setRGB(r$2,g$2,b$3,colorSpace=ColorManagement.workingColorSpace){return this.r=r$2,this.g=g$2,this.b=b$3,ColorManagement.colorSpaceToWorking(this,colorSpace),this}setHSL(h$3,s$1,l$1,colorSpace=ColorManagement.workingColorSpace){if(h$3=euclideanModulo(h$3,1),s$1=clamp$6(s$1,0,1),l$1=clamp$6(l$1,0,1),s$1===0)this.r=this.g=this.b=l$1;else{let p$5=l$1<=.5?l$1*(1+s$1):l$1+s$1-l$1*s$1,q$1=2*l$1-p$5;this.r=hue2rgb(q$1,p$5,h$3+1/3),this.g=hue2rgb(q$1,p$5,h$3),this.b=hue2rgb(q$1,p$5,h$3-1/3)}return ColorManagement.colorSpaceToWorking(this,colorSpace),this}setStyle(style,colorSpace=SRGBColorSpace){function handleAlpha(string$2){string$2!==void 0&&parseFloat(string$2)<1&&console.warn(`THREE.Color: Alpha component of `+style+` will be ignored.`)}let m$2;if(m$2=/^(\w+)\(([^\)]*)\)/.exec(style)){let color$2,name$2=m$2[1],components=m$2[2];switch(name$2){case`rgb`:case`rgba`:if(color$2=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components))return handleAlpha(color$2[4]),this.setRGB(Math.min(255,parseInt(color$2[1],10))/255,Math.min(255,parseInt(color$2[2],10))/255,Math.min(255,parseInt(color$2[3],10))/255,colorSpace);if(color$2=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components))return handleAlpha(color$2[4]),this.setRGB(Math.min(100,parseInt(color$2[1],10))/100,Math.min(100,parseInt(color$2[2],10))/100,Math.min(100,parseInt(color$2[3],10))/100,colorSpace);break;case`hsl`:case`hsla`:if(color$2=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components))return handleAlpha(color$2[4]),this.setHSL(parseFloat(color$2[1])/360,parseFloat(color$2[2])/100,parseFloat(color$2[3])/100,colorSpace);break;default:console.warn(`THREE.Color: Unknown color model `+style)}}else if(m$2=/^\#([A-Fa-f\d]+)$/.exec(style)){let hex$2=m$2[1],size$1=hex$2.length;if(size$1===3)return this.setRGB(parseInt(hex$2.charAt(0),16)/15,parseInt(hex$2.charAt(1),16)/15,parseInt(hex$2.charAt(2),16)/15,colorSpace);if(size$1===6)return this.setHex(parseInt(hex$2,16),colorSpace);console.warn(`THREE.Color: Invalid hex color `+style)}else if(style&&style.length>0)return this.setColorName(style,colorSpace);return this}setColorName(style,colorSpace=SRGBColorSpace){let hex$2=_colorKeywords[style.toLowerCase()];return hex$2===void 0?console.warn(`THREE.Color: Unknown color `+style):this.setHex(hex$2,colorSpace),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(color$2){return this.r=color$2.r,this.g=color$2.g,this.b=color$2.b,this}copySRGBToLinear(color$2){return this.r=SRGBToLinear(color$2.r),this.g=SRGBToLinear(color$2.g),this.b=SRGBToLinear(color$2.b),this}copyLinearToSRGB(color$2){return this.r=LinearToSRGB(color$2.r),this.g=LinearToSRGB(color$2.g),this.b=LinearToSRGB(color$2.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(colorSpace=SRGBColorSpace){return ColorManagement.workingToColorSpace(_color$2.copy(this),colorSpace),Math.round(clamp$6(_color$2.r*255,0,255))*65536+Math.round(clamp$6(_color$2.g*255,0,255))*256+Math.round(clamp$6(_color$2.b*255,0,255))}getHexString(colorSpace=SRGBColorSpace){return(`000000`+this.getHex(colorSpace).toString(16)).slice(-6)}getHSL(target$1,colorSpace=ColorManagement.workingColorSpace){ColorManagement.workingToColorSpace(_color$2.copy(this),colorSpace);let r$2=_color$2.r,g$2=_color$2.g,b$3=_color$2.b,max$1=Math.max(r$2,g$2,b$3),min$1=Math.min(r$2,g$2,b$3),hue$2,saturation,lightness=(min$1+max$1)/2;if(min$1===max$1)hue$2=0,saturation=0;else{let delta=max$1-min$1;switch(saturation=lightness<=.5?delta/(max$1+min$1):delta/(2-max$1-min$1),max$1){case r$2:hue$2=(g$2-b$3)/delta+(g$20!=value$1>0&&this.version++,this._alphaTest=value$1}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(values){if(values!==void 0)for(let key$1 in values){let newValue=values[key$1];if(newValue===void 0){console.warn(`THREE.Material: parameter '${key$1}' has value of undefined.`);continue}let currentValue=this[key$1];if(currentValue===void 0){console.warn(`THREE.Material: '${key$1}' is not a property of THREE.${this.type}.`);continue}currentValue&¤tValue.isColor?currentValue.set(newValue):currentValue&¤tValue.isVector3&&newValue&&newValue.isVector3?currentValue.copy(newValue):this[key$1]=newValue}}toJSON(meta){let isRootObject=meta===void 0||typeof meta==`string`;isRootObject&&(meta={textures:{},images:{}});let data$10={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};data$10.uuid=this.uuid,data$10.type=this.type,this.name!==``&&(data$10.name=this.name),this.color&&this.color.isColor&&(data$10.color=this.color.getHex()),this.roughness!==void 0&&(data$10.roughness=this.roughness),this.metalness!==void 0&&(data$10.metalness=this.metalness),this.sheen!==void 0&&(data$10.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(data$10.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(data$10.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(data$10.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(data$10.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(data$10.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(data$10.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(data$10.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(data$10.shininess=this.shininess),this.clearcoat!==void 0&&(data$10.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(data$10.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(data$10.clearcoatMap=this.clearcoatMap.toJSON(meta).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(data$10.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(meta).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(data$10.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(meta).uuid,data$10.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(data$10.dispersion=this.dispersion),this.iridescence!==void 0&&(data$10.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(data$10.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(data$10.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(data$10.iridescenceMap=this.iridescenceMap.toJSON(meta).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(data$10.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(meta).uuid),this.anisotropy!==void 0&&(data$10.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(data$10.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(data$10.anisotropyMap=this.anisotropyMap.toJSON(meta).uuid),this.map&&this.map.isTexture&&(data$10.map=this.map.toJSON(meta).uuid),this.matcap&&this.matcap.isTexture&&(data$10.matcap=this.matcap.toJSON(meta).uuid),this.alphaMap&&this.alphaMap.isTexture&&(data$10.alphaMap=this.alphaMap.toJSON(meta).uuid),this.lightMap&&this.lightMap.isTexture&&(data$10.lightMap=this.lightMap.toJSON(meta).uuid,data$10.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(data$10.aoMap=this.aoMap.toJSON(meta).uuid,data$10.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(data$10.bumpMap=this.bumpMap.toJSON(meta).uuid,data$10.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(data$10.normalMap=this.normalMap.toJSON(meta).uuid,data$10.normalMapType=this.normalMapType,data$10.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(data$10.displacementMap=this.displacementMap.toJSON(meta).uuid,data$10.displacementScale=this.displacementScale,data$10.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(data$10.roughnessMap=this.roughnessMap.toJSON(meta).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(data$10.metalnessMap=this.metalnessMap.toJSON(meta).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(data$10.emissiveMap=this.emissiveMap.toJSON(meta).uuid),this.specularMap&&this.specularMap.isTexture&&(data$10.specularMap=this.specularMap.toJSON(meta).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(data$10.specularIntensityMap=this.specularIntensityMap.toJSON(meta).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(data$10.specularColorMap=this.specularColorMap.toJSON(meta).uuid),this.envMap&&this.envMap.isTexture&&(data$10.envMap=this.envMap.toJSON(meta).uuid,this.combine!==void 0&&(data$10.combine=this.combine)),this.envMapRotation!==void 0&&(data$10.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(data$10.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(data$10.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(data$10.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(data$10.gradientMap=this.gradientMap.toJSON(meta).uuid),this.transmission!==void 0&&(data$10.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(data$10.transmissionMap=this.transmissionMap.toJSON(meta).uuid),this.thickness!==void 0&&(data$10.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(data$10.thicknessMap=this.thicknessMap.toJSON(meta).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(data$10.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(data$10.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(data$10.size=this.size),this.shadowSide!==null&&(data$10.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(data$10.sizeAttenuation=this.sizeAttenuation),this.blending!==NormalBlending&&(data$10.blending=this.blending),this.side!==FrontSide&&(data$10.side=this.side),this.vertexColors===!0&&(data$10.vertexColors=!0),this.opacity<1&&(data$10.opacity=this.opacity),this.transparent===!0&&(data$10.transparent=!0),this.blendSrc!==SrcAlphaFactor&&(data$10.blendSrc=this.blendSrc),this.blendDst!==OneMinusSrcAlphaFactor&&(data$10.blendDst=this.blendDst),this.blendEquation!==AddEquation&&(data$10.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(data$10.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(data$10.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(data$10.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(data$10.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(data$10.blendAlpha=this.blendAlpha),this.depthFunc!==LessEqualDepth&&(data$10.depthFunc=this.depthFunc),this.depthTest===!1&&(data$10.depthTest=this.depthTest),this.depthWrite===!1&&(data$10.depthWrite=this.depthWrite),this.colorWrite===!1&&(data$10.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(data$10.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==AlwaysStencilFunc&&(data$10.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(data$10.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(data$10.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==KeepStencilOp&&(data$10.stencilFail=this.stencilFail),this.stencilZFail!==KeepStencilOp&&(data$10.stencilZFail=this.stencilZFail),this.stencilZPass!==KeepStencilOp&&(data$10.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(data$10.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(data$10.rotation=this.rotation),this.polygonOffset===!0&&(data$10.polygonOffset=!0),this.polygonOffsetFactor!==0&&(data$10.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(data$10.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(data$10.linewidth=this.linewidth),this.dashSize!==void 0&&(data$10.dashSize=this.dashSize),this.gapSize!==void 0&&(data$10.gapSize=this.gapSize),this.scale!==void 0&&(data$10.scale=this.scale),this.dithering===!0&&(data$10.dithering=!0),this.alphaTest>0&&(data$10.alphaTest=this.alphaTest),this.alphaHash===!0&&(data$10.alphaHash=!0),this.alphaToCoverage===!0&&(data$10.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(data$10.premultipliedAlpha=!0),this.forceSinglePass===!0&&(data$10.forceSinglePass=!0),this.wireframe===!0&&(data$10.wireframe=!0),this.wireframeLinewidth>1&&(data$10.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==`round`&&(data$10.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==`round`&&(data$10.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(data$10.flatShading=!0),this.visible===!1&&(data$10.visible=!1),this.toneMapped===!1&&(data$10.toneMapped=!1),this.fog===!1&&(data$10.fog=!1),Object.keys(this.userData).length>0&&(data$10.userData=this.userData);function extractFromCache(cache$1){let values=[];for(let key$1 in cache$1){let data$11=cache$1[key$1];delete data$11.metadata,values.push(data$11)}return values}if(isRootObject){let textures=extractFromCache(meta.textures),images=extractFromCache(meta.images);textures.length>0&&(data$10.textures=textures),images.length>0&&(data$10.images=images)}return data$10}clone(){return new this.constructor().copy(this)}copy(source){this.name=source.name,this.blending=source.blending,this.side=source.side,this.vertexColors=source.vertexColors,this.opacity=source.opacity,this.transparent=source.transparent,this.blendSrc=source.blendSrc,this.blendDst=source.blendDst,this.blendEquation=source.blendEquation,this.blendSrcAlpha=source.blendSrcAlpha,this.blendDstAlpha=source.blendDstAlpha,this.blendEquationAlpha=source.blendEquationAlpha,this.blendColor.copy(source.blendColor),this.blendAlpha=source.blendAlpha,this.depthFunc=source.depthFunc,this.depthTest=source.depthTest,this.depthWrite=source.depthWrite,this.stencilWriteMask=source.stencilWriteMask,this.stencilFunc=source.stencilFunc,this.stencilRef=source.stencilRef,this.stencilFuncMask=source.stencilFuncMask,this.stencilFail=source.stencilFail,this.stencilZFail=source.stencilZFail,this.stencilZPass=source.stencilZPass,this.stencilWrite=source.stencilWrite;let srcPlanes=source.clippingPlanes,dstPlanes=null;if(srcPlanes!==null){let n$2=srcPlanes.length;dstPlanes=Array(n$2);for(let i$1=0;i$1!==n$2;++i$1)dstPlanes[i$1]=srcPlanes[i$1].clone()}return this.clippingPlanes=dstPlanes,this.clipIntersection=source.clipIntersection,this.clipShadows=source.clipShadows,this.shadowSide=source.shadowSide,this.colorWrite=source.colorWrite,this.precision=source.precision,this.polygonOffset=source.polygonOffset,this.polygonOffsetFactor=source.polygonOffsetFactor,this.polygonOffsetUnits=source.polygonOffsetUnits,this.dithering=source.dithering,this.alphaTest=source.alphaTest,this.alphaHash=source.alphaHash,this.alphaToCoverage=source.alphaToCoverage,this.premultipliedAlpha=source.premultipliedAlpha,this.forceSinglePass=source.forceSinglePass,this.visible=source.visible,this.toneMapped=source.toneMapped,this.userData=JSON.parse(JSON.stringify(source.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(value$1){value$1===!0&&this.version++}},MeshBasicMaterial=class extends Material{constructor(parameters){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new Color(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 Euler,this.combine=MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapRotation.copy(source.envMapRotation),this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.fog=source.fog,this}};const _tables=_generateTables();function _generateTables(){let buffer$1=new ArrayBuffer(4),floatView=new Float32Array(buffer$1),uint32View=new Uint32Array(buffer$1),baseTable=new Uint32Array(512),shiftTable=new Uint32Array(512);for(let i$1=0;i$1<256;++i$1){let e$3=i$1-127;e$3<-27?(baseTable[i$1]=0,baseTable[i$1|256]=32768,shiftTable[i$1]=24,shiftTable[i$1|256]=24):e$3<-14?(baseTable[i$1]=1024>>-e$3-14,baseTable[i$1|256]=1024>>-e$3-14|32768,shiftTable[i$1]=-e$3-1,shiftTable[i$1|256]=-e$3-1):e$3<=15?(baseTable[i$1]=e$3+15<<10,baseTable[i$1|256]=e$3+15<<10|32768,shiftTable[i$1]=13,shiftTable[i$1|256]=13):e$3<128?(baseTable[i$1]=31744,baseTable[i$1|256]=64512,shiftTable[i$1]=24,shiftTable[i$1|256]=24):(baseTable[i$1]=31744,baseTable[i$1|256]=64512,shiftTable[i$1]=13,shiftTable[i$1|256]=13)}let mantissaTable=new Uint32Array(2048),exponentTable=new Uint32Array(64),offsetTable=new Uint32Array(64);for(let i$1=1;i$1<1024;++i$1){let m$2=i$1<<13,e$3=0;for(;!(m$2&8388608);)m$2<<=1,e$3-=8388608;m$2&=-8388609,e$3+=947912704,mantissaTable[i$1]=m$2|e$3}for(let i$1=1024;i$1<2048;++i$1)mantissaTable[i$1]=939524096+(i$1-1024<<13);for(let i$1=1;i$1<31;++i$1)exponentTable[i$1]=i$1<<23;exponentTable[31]=1199570944,exponentTable[32]=2147483648;for(let i$1=33;i$1<63;++i$1)exponentTable[i$1]=2147483648+(i$1-32<<23);exponentTable[63]=3347054592;for(let i$1=1;i$1<64;++i$1)i$1!==32&&(offsetTable[i$1]=1024);return{floatView,uint32View,baseTable,shiftTable,mantissaTable,exponentTable,offsetTable}}function toHalfFloat(val){Math.abs(val)>65504&&console.warn(`THREE.DataUtils.toHalfFloat(): Value out of range.`),val=clamp$6(val,-65504,65504),_tables.floatView[0]=val;let f$3=_tables.uint32View[0],e$3=f$3>>23&511;return _tables.baseTable[e$3]+((f$3&8388607)>>_tables.shiftTable[e$3])}function fromHalfFloat(val){let m$2=val>>10;return _tables.uint32View[0]=_tables.mantissaTable[_tables.offsetTable[m$2]+(val&1023)]+_tables.exponentTable[m$2],_tables.floatView[0]}var DataUtils=class{static toHalfFloat(val){return toHalfFloat(val)}static fromHalfFloat(val){return fromHalfFloat(val)}};const _vector$9=new Vector3,_vector2$1=new Vector2;let _id$2=0;var BufferAttribute=class{constructor(array,itemSize,normalized=!1){if(Array.isArray(array))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,`id`,{value:_id$2++}),this.name=``,this.array=array,this.itemSize=itemSize,this.count=array===void 0?0:array.length/itemSize,this.normalized=normalized,this.usage=StaticDrawUsage,this.updateRanges=[],this.gpuType=FloatType,this.version=0}onUploadCallback(){}set needsUpdate(value$1){value$1===!0&&this.version++}setUsage(value$1){return this.usage=value$1,this}addUpdateRange(start,count$1){this.updateRanges.push({start,count:count$1})}clearUpdateRanges(){this.updateRanges.length=0}copy(source){return this.name=source.name,this.array=new source.array.constructor(source.array),this.itemSize=source.itemSize,this.count=source.count,this.normalized=source.normalized,this.usage=source.usage,this.gpuType=source.gpuType,this}copyAt(index1,attribute,index2){index1*=this.itemSize,index2*=attribute.itemSize;for(let i$1=0,l$1=this.itemSize;i$1positionAttribute.count&&console.warn(`THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),positionAttribute.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Box3);let position$2=this.attributes.position,morphAttributesPosition=this.morphAttributes.position;if(position$2&&position$2.isGLBufferAttribute){console.error(`THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new Vector3(-1/0,-1/0,-1/0),new Vector3(1/0,1/0,1/0));return}if(position$2!==void 0){if(this.boundingBox.setFromBufferAttribute(position$2),morphAttributesPosition)for(let i$1=0,il=morphAttributesPosition.length;i$10&&(data$10.userData=this.userData),this.parameters!==void 0){let parameters=this.parameters;for(let key$1 in parameters)parameters[key$1]!==void 0&&(data$10[key$1]=parameters[key$1]);return data$10}data$10.data={attributes:{}};let index$1=this.index;index$1!==null&&(data$10.data.index={type:index$1.array.constructor.name,array:Array.prototype.slice.call(index$1.array)});let attributes=this.attributes;for(let key$1 in attributes){let attribute=attributes[key$1];data$10.data.attributes[key$1]=attribute.toJSON(data$10.data)}let morphAttributes={},hasMorphAttributes=!1;for(let key$1 in this.morphAttributes){let attributeArray=this.morphAttributes[key$1],array=[];for(let i$1=0,il=attributeArray.length;i$10&&(morphAttributes[key$1]=array,hasMorphAttributes=!0)}hasMorphAttributes&&(data$10.data.morphAttributes=morphAttributes,data$10.data.morphTargetsRelative=this.morphTargetsRelative);let groups=this.groups;groups.length>0&&(data$10.data.groups=JSON.parse(JSON.stringify(groups)));let boundingSphere=this.boundingSphere;return boundingSphere!==null&&(data$10.data.boundingSphere=boundingSphere.toJSON()),data$10}clone(){return new this.constructor().copy(this)}copy(source){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let data$10={};this.name=source.name;let index$1=source.index;index$1!==null&&this.setIndex(index$1.clone());let attributes=source.attributes;for(let name$2 in attributes){let attribute=attributes[name$2];this.setAttribute(name$2,attribute.clone(data$10))}let morphAttributes=source.morphAttributes;for(let name$2 in morphAttributes){let array=[],morphAttribute=morphAttributes[name$2];for(let i$1=0,l$1=morphAttribute.length;i$10){let morphAttribute=morphAttributes[keys$3[0]];if(morphAttribute!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let m$2=0,ml=morphAttribute.length;m$2(raycaster.far-raycaster.near)**2))&&(_inverseMatrix$3.copy(matrixWorld).invert(),_ray$3.copy(raycaster.ray).applyMatrix4(_inverseMatrix$3),!(geometry.boundingBox!==null&&_ray$3.intersectsBox(geometry.boundingBox)===!1)&&this._computeIntersections(raycaster,intersects$1,_ray$3)))}_computeIntersections(raycaster,intersects$1,rayLocalSpace){let intersection,geometry=this.geometry,material=this.material,index$1=geometry.index,position$2=geometry.attributes.position,uv=geometry.attributes.uv,uv1=geometry.attributes.uv1,normal=geometry.attributes.normal,groups=geometry.groups,drawRange=geometry.drawRange;if(index$1!==null)if(Array.isArray(material))for(let i$1=0,il=groups.length;i$1raycaster.far?null:{distance,point:_intersectionPointWorld.clone(),object}}function checkGeometryIntersection(object,material,raycaster,ray,uv,uv1,normal,a$2,b$3,c$4){object.getVertexPosition(a$2,_vA$1),object.getVertexPosition(b$3,_vB$1),object.getVertexPosition(c$4,_vC$1);let intersection=checkIntersection$1(object,material,raycaster,ray,_vA$1,_vB$1,_vC$1,_intersectionPoint);if(intersection){let barycoord=new Vector3;Triangle.getBarycoord(_intersectionPoint,_vA$1,_vB$1,_vC$1,barycoord),uv&&(intersection.uv=Triangle.getInterpolatedAttribute(uv,a$2,b$3,c$4,barycoord,new Vector2)),uv1&&(intersection.uv1=Triangle.getInterpolatedAttribute(uv1,a$2,b$3,c$4,barycoord,new Vector2)),normal&&(intersection.normal=Triangle.getInterpolatedAttribute(normal,a$2,b$3,c$4,barycoord,new Vector3),intersection.normal.dot(ray.direction)>0&&intersection.normal.multiplyScalar(-1));let face={a:a$2,b:b$3,c:c$4,normal:new Vector3,materialIndex:0};Triangle.getNormal(_vA$1,_vB$1,_vC$1,face.normal),intersection.face=face,intersection.barycoord=barycoord}return intersection}var BoxGeometry=class BoxGeometry extends BufferGeometry{constructor(width=1,height=1,depth=1,widthSegments=1,heightSegments=1,depthSegments=1){super(),this.type=`BoxGeometry`,this.parameters={width,height,depth,widthSegments,heightSegments,depthSegments};let scope=this;widthSegments=Math.floor(widthSegments),heightSegments=Math.floor(heightSegments),depthSegments=Math.floor(depthSegments);let indices=[],vertices=[],normals=[],uvs=[],numberOfVertices=0,groupStart=0;buildPlane(`z`,`y`,`x`,-1,-1,depth,height,width,depthSegments,heightSegments,0),buildPlane(`z`,`y`,`x`,1,-1,depth,height,-width,depthSegments,heightSegments,1),buildPlane(`x`,`z`,`y`,1,1,width,depth,height,widthSegments,depthSegments,2),buildPlane(`x`,`z`,`y`,1,-1,width,depth,-height,widthSegments,depthSegments,3),buildPlane(`x`,`y`,`z`,1,-1,width,height,depth,widthSegments,heightSegments,4),buildPlane(`x`,`y`,`z`,-1,-1,width,height,-depth,widthSegments,heightSegments,5),this.setIndex(indices),this.setAttribute(`position`,new Float32BufferAttribute(vertices,3)),this.setAttribute(`normal`,new Float32BufferAttribute(normals,3)),this.setAttribute(`uv`,new Float32BufferAttribute(uvs,2));function buildPlane(u$1,v$1,w$1,udir,vdir,width$1,height$1,depth$1,gridX,gridY,materialIndex){let segmentWidth=width$1/gridX,segmentHeight=height$1/gridY,widthHalf=width$1/2,heightHalf=height$1/2,depthHalf=depth$1/2,gridX1=gridX+1,gridY1=gridY+1,vertexCounter=0,groupCount=0,vector=new Vector3;for(let iy=0;iy0?1:-1,normals.push(vector.x,vector.y,vector.z),uvs.push(ix/gridX),uvs.push(1-iy/gridY),vertexCounter+=1}}for(let iy=0;iydefineCustomElement(optio gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},geometry=new BoxGeometry(5,5,5),material=new ShaderMaterial({name:`CubemapFromEquirect`,uniforms:cloneUniforms(shader.uniforms),vertexShader:shader.vertexShader,fragmentShader:shader.fragmentShader,side:BackSide,blending:NoBlending});material.uniforms.tEquirect.value=texture;let mesh=new Mesh(geometry,material),currentMinFilter=texture.minFilter;texture.minFilter===LinearMipmapLinearFilter&&(texture.minFilter=LinearFilter);let camera=new CubeCamera(1,10,this);return camera.update(renderer$1,mesh),texture.minFilter=currentMinFilter,mesh.geometry.dispose(),mesh.material.dispose(),this}clear(renderer$1,color$2=!0,depth=!0,stencil=!0){let currentRenderTarget=renderer$1.getRenderTarget();for(let i$1=0;i$1<6;i$1++)renderer$1.setRenderTarget(this,i$1),renderer$1.clear(color$2,depth,stencil);renderer$1.setRenderTarget(currentRenderTarget)}},Group=class extends Object3D{constructor(){super(),this.isGroup=!0,this.type=`Group`}};const _moveEvent={type:`move`};var WebXRController=class{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Group,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 Group,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Vector3,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Vector3),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Group,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Vector3,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Vector3),this._grip}dispatchEvent(event){return this._targetRay!==null&&this._targetRay.dispatchEvent(event),this._grip!==null&&this._grip.dispatchEvent(event),this._hand!==null&&this._hand.dispatchEvent(event),this}connect(inputSource){if(inputSource&&inputSource.hand){let hand=this._hand;if(hand)for(let inputjoint of inputSource.hand.values())this._getHandJoint(hand,inputjoint)}return this.dispatchEvent({type:`connected`,data:inputSource}),this}disconnect(inputSource){return this.dispatchEvent({type:`disconnected`,data:inputSource}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(inputSource,frame$1,referenceSpace){let inputPose=null,gripPose=null,handPose=null,targetRay=this._targetRay,grip=this._grip,hand=this._hand;if(inputSource&&frame$1.session.visibilityState!==`visible-blurred`){if(hand&&inputSource.hand){handPose=!0;for(let inputjoint of inputSource.hand.values()){let jointPose=frame$1.getJointPose(inputjoint,referenceSpace),joint=this._getHandJoint(hand,inputjoint);jointPose!==null&&(joint.matrix.fromArray(jointPose.transform.matrix),joint.matrix.decompose(joint.position,joint.rotation,joint.scale),joint.matrixWorldNeedsUpdate=!0,joint.jointRadius=jointPose.radius),joint.visible=jointPose!==null}let indexTip=hand.joints[`index-finger-tip`],thumbTip=hand.joints[`thumb-tip`],distance=indexTip.position.distanceTo(thumbTip.position),distanceToPinch=.02,threshold=.005;hand.inputState.pinching&&distance>distanceToPinch+threshold?(hand.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:inputSource.handedness,target:this})):!hand.inputState.pinching&&distance<=distanceToPinch-threshold&&(hand.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:inputSource.handedness,target:this}))}else grip!==null&&inputSource.gripSpace&&(gripPose=frame$1.getPose(inputSource.gripSpace,referenceSpace),gripPose!==null&&(grip.matrix.fromArray(gripPose.transform.matrix),grip.matrix.decompose(grip.position,grip.rotation,grip.scale),grip.matrixWorldNeedsUpdate=!0,gripPose.linearVelocity?(grip.hasLinearVelocity=!0,grip.linearVelocity.copy(gripPose.linearVelocity)):grip.hasLinearVelocity=!1,gripPose.angularVelocity?(grip.hasAngularVelocity=!0,grip.angularVelocity.copy(gripPose.angularVelocity)):grip.hasAngularVelocity=!1));targetRay!==null&&(inputPose=frame$1.getPose(inputSource.targetRaySpace,referenceSpace),inputPose===null&&gripPose!==null&&(inputPose=gripPose),inputPose!==null&&(targetRay.matrix.fromArray(inputPose.transform.matrix),targetRay.matrix.decompose(targetRay.position,targetRay.rotation,targetRay.scale),targetRay.matrixWorldNeedsUpdate=!0,inputPose.linearVelocity?(targetRay.hasLinearVelocity=!0,targetRay.linearVelocity.copy(inputPose.linearVelocity)):targetRay.hasLinearVelocity=!1,inputPose.angularVelocity?(targetRay.hasAngularVelocity=!0,targetRay.angularVelocity.copy(inputPose.angularVelocity)):targetRay.hasAngularVelocity=!1,this.dispatchEvent(_moveEvent)))}return targetRay!==null&&(targetRay.visible=inputPose!==null),grip!==null&&(grip.visible=gripPose!==null),hand!==null&&(hand.visible=handPose!==null),this}_getHandJoint(hand,inputjoint){if(hand.joints[inputjoint.jointName]===void 0){let joint=new Group;joint.matrixAutoUpdate=!1,joint.visible=!1,hand.joints[inputjoint.jointName]=joint,hand.add(joint)}return hand.joints[inputjoint.jointName]}},FogExp2=class FogExp2{constructor(color$2,density=25e-5){this.isFogExp2=!0,this.name=``,this.color=new Color(color$2),this.density=density}clone(){return new FogExp2(this.color,this.density)}toJSON(){return{type:`FogExp2`,name:this.name,color:this.color.getHex(),density:this.density}}},Fog=class Fog{constructor(color$2,near=1,far=1e3){this.isFog=!0,this.name=``,this.color=new Color(color$2),this.near=near,this.far=far}clone(){return new Fog(this.color,this.near,this.far)}toJSON(){return{type:`Fog`,name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}},Scene=class extends Object3D{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 Euler,this.environmentIntensity=1,this.environmentRotation=new Euler,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}copy(source,recursive){return super.copy(source,recursive),source.background!==null&&(this.background=source.background.clone()),source.environment!==null&&(this.environment=source.environment.clone()),source.fog!==null&&(this.fog=source.fog.clone()),this.backgroundBlurriness=source.backgroundBlurriness,this.backgroundIntensity=source.backgroundIntensity,this.backgroundRotation.copy(source.backgroundRotation),this.environmentIntensity=source.environmentIntensity,this.environmentRotation.copy(source.environmentRotation),source.overrideMaterial!==null&&(this.overrideMaterial=source.overrideMaterial.clone()),this.matrixAutoUpdate=source.matrixAutoUpdate,this}toJSON(meta){let data$10=super.toJSON(meta);return this.fog!==null&&(data$10.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(data$10.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(data$10.object.backgroundIntensity=this.backgroundIntensity),data$10.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(data$10.object.environmentIntensity=this.environmentIntensity),data$10.object.environmentRotation=this.environmentRotation.toArray(),data$10}},InterleavedBuffer=class{constructor(array,stride){this.isInterleavedBuffer=!0,this.array=array,this.stride=stride,this.count=array===void 0?0:array.length/stride,this.usage=StaticDrawUsage,this.updateRanges=[],this.version=0,this.uuid=generateUUID()}onUploadCallback(){}set needsUpdate(value$1){value$1===!0&&this.version++}setUsage(value$1){return this.usage=value$1,this}addUpdateRange(start,count$1){this.updateRanges.push({start,count:count$1})}clearUpdateRanges(){this.updateRanges.length=0}copy(source){return this.array=new source.array.constructor(source.array),this.count=source.count,this.stride=source.stride,this.usage=source.usage,this}copyAt(index1,interleavedBuffer,index2){index1*=this.stride,index2*=interleavedBuffer.stride;for(let i$1=0,l$1=this.stride;i$1raycaster.far||intersects$1.push({distance,point:_intersectPoint.clone(),uv:Triangle.getInterpolation(_intersectPoint,_vA,_vB,_vC,_uvA,_uvB,_uvC,new Vector2),face:null,object:this})}copy(source,recursive){return super.copy(source,recursive),source.center!==void 0&&this.center.copy(source.center),this.material=source.material,this}};function transformVertex(vertexPosition,mvPosition,center,scale$1,sin,cos){_alignedPosition.subVectors(vertexPosition,center).addScalar(.5).multiply(scale$1),sin===void 0?_rotatedPosition.copy(_alignedPosition):(_rotatedPosition.x=cos*_alignedPosition.x-sin*_alignedPosition.y,_rotatedPosition.y=sin*_alignedPosition.x+cos*_alignedPosition.y),vertexPosition.copy(mvPosition),vertexPosition.x+=_rotatedPosition.x,vertexPosition.y+=_rotatedPosition.y,vertexPosition.applyMatrix4(_viewWorldMatrix)}const _v1$2=new Vector3,_v2$1$1=new Vector3;var LOD=class extends Object3D{constructor(){super(),this.isLOD=!0,this._currentLevel=0,this.type=`LOD`,Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}copy(source){super.copy(source,!1);let levels$1=source.levels;for(let i$1=0,l$1=levels$1.length;i$10){let i$1,l$1;for(i$1=1,l$1=levels$1.length;i$10){_v1$2.setFromMatrixPosition(this.matrixWorld);let distance=raycaster.ray.origin.distanceTo(_v1$2);this.getObjectForDistance(distance).raycast(raycaster,intersects$1)}}update(camera){let levels$1=this.levels;if(levels$1.length>1){_v1$2.setFromMatrixPosition(camera.matrixWorld),_v2$1$1.setFromMatrixPosition(this.matrixWorld);let distance=_v1$2.distanceTo(_v2$1$1)/camera.zoom;levels$1[0].object.visible=!0;let i$1,l$1;for(i$1=1,l$1=levels$1.length;i$1=levelDistance)levels$1[i$1-1].object.visible=!1,levels$1[i$1].object.visible=!0;else break}for(this._currentLevel=i$1-1;i$11?null:target$1.copy(line.start).addScaledVector(direction,t)}intersectsLine(line){let startSign=this.distanceToPoint(line.start),endSign=this.distanceToPoint(line.end);return startSign<0&&endSign>0||endSign<0&&startSign>0}intersectsBox(box){return box.intersectsPlane(this)}intersectsSphere(sphere){return sphere.intersectsPlane(this)}coplanarPoint(target$1){return target$1.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(matrix,optionalNormalMatrix){let normalMatrix=optionalNormalMatrix||_normalMatrix.getNormalMatrix(matrix),referencePoint=this.coplanarPoint(_vector1).applyMatrix4(matrix),normal=this.normal.applyMatrix3(normalMatrix).normalize();return this.constant=-referencePoint.dot(normal),this}translate(offset$1){return this.constant-=offset$1.dot(this.normal),this}equals(plane){return plane.normal.equals(this.normal)&&plane.constant===this.constant}clone(){return new this.constructor().copy(this)}};const _sphere$3=new Sphere,_defaultSpriteCenter=new Vector2(.5,.5),_vector$6=new Vector3;var Frustum=class{constructor(p0=new Plane,p1=new Plane,p2=new Plane,p3$1=new Plane,p4=new Plane,p5=new Plane){this.planes=[p0,p1,p2,p3$1,p4,p5]}set(p0,p1,p2,p3$1,p4,p5){let planes=this.planes;return planes[0].copy(p0),planes[1].copy(p1),planes[2].copy(p2),planes[3].copy(p3$1),planes[4].copy(p4),planes[5].copy(p5),this}copy(frustum){let planes=this.planes;for(let i$1=0;i$1<6;i$1++)planes[i$1].copy(frustum.planes[i$1]);return this}setFromProjectionMatrix(m$2,coordinateSystem=WebGLCoordinateSystem){let planes=this.planes,me$1=m$2.elements,me0=me$1[0],me1=me$1[1],me2=me$1[2],me3=me$1[3],me4=me$1[4],me5=me$1[5],me6=me$1[6],me7=me$1[7],me8=me$1[8],me9=me$1[9],me10=me$1[10],me11=me$1[11],me12=me$1[12],me13=me$1[13],me14=me$1[14],me15=me$1[15];if(planes[0].setComponents(me3-me0,me7-me4,me11-me8,me15-me12).normalize(),planes[1].setComponents(me3+me0,me7+me4,me11+me8,me15+me12).normalize(),planes[2].setComponents(me3+me1,me7+me5,me11+me9,me15+me13).normalize(),planes[3].setComponents(me3-me1,me7-me5,me11-me9,me15-me13).normalize(),planes[4].setComponents(me3-me2,me7-me6,me11-me10,me15-me14).normalize(),coordinateSystem===WebGLCoordinateSystem)planes[5].setComponents(me3+me2,me7+me6,me11+me10,me15+me14).normalize();else if(coordinateSystem===WebGPUCoordinateSystem)planes[5].setComponents(me2,me6,me10,me14).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+coordinateSystem);return this}intersectsObject(object){if(object.boundingSphere!==void 0)object.boundingSphere===null&&object.computeBoundingSphere(),_sphere$3.copy(object.boundingSphere).applyMatrix4(object.matrixWorld);else{let geometry=object.geometry;geometry.boundingSphere===null&&geometry.computeBoundingSphere(),_sphere$3.copy(geometry.boundingSphere).applyMatrix4(object.matrixWorld)}return this.intersectsSphere(_sphere$3)}intersectsSprite(sprite){_sphere$3.center.set(0,0,0);let offset$1=_defaultSpriteCenter.distanceTo(sprite.center);return _sphere$3.radius=.7071067811865476+offset$1,_sphere$3.applyMatrix4(sprite.matrixWorld),this.intersectsSphere(_sphere$3)}intersectsSphere(sphere){let planes=this.planes,center=sphere.center,negRadius=-sphere.radius;for(let i$1=0;i$1<6;i$1++){let distance=planes[i$1].distanceToPoint(center);if(distance0?box.max.x:box.min.x,_vector$6.y=plane.normal.y>0?box.max.y:box.min.y,_vector$6.z=plane.normal.z>0?box.max.z:box.min.z,plane.distanceToPoint(_vector$6)<0)return!1}return!0}containsPoint(point$3){let planes=this.planes;for(let i$1=0;i$1<6;i$1++)if(planes[i$1].distanceToPoint(point$3)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}};const _projScreenMatrix$2=new Matrix4,_frustum$1=new Frustum;var FrustumArray=class FrustumArray{constructor(){this.coordinateSystem=WebGLCoordinateSystem}intersectsObject(object,cameraArray){if(!cameraArray.isArrayCamera||cameraArray.cameras.length===0)return!1;for(let i$1=0;i$1=pool.length&&pool.push({start:-1,count:-1,z:-1,index:-1});let item=pool[this.index];list$2.push(item),this.index++,item.start=start,item.count=count$1,item.z=z$2,item.index=index$1}reset(){this.list.length=0,this.index=0}};const _matrix$1=new Matrix4,_whiteColor=new Color(1,1,1),_frustum=new Frustum,_frustumArray=new FrustumArray,_box$1=new Box3,_sphere$2=new Sphere,_vector$5=new Vector3,_forward$1=new Vector3,_temp=new Vector3,_renderList=new MultiDrawRenderList,_mesh=new Mesh,_batchIntersects=[];function copyAttributeData(src,target$1,targetOffset=0){let itemSize=target$1.itemSize;if(src.isInterleavedBufferAttribute||src.array.constructor!==target$1.array.constructor){let vertexCount=src.count;for(let i$1=0;i$165535?new Uint32Array(maxIndexCount):new Uint16Array(maxIndexCount);geometry.setIndex(new BufferAttribute(indexArray,1))}this._geometryInitialized=!0}}_validateGeometry(geometry){let batchGeometry=this.geometry;if(!!geometry.getIndex()!=!!batchGeometry.getIndex())throw Error(`THREE.BatchedMesh: All geometries must consistently have "index".`);for(let attributeName in batchGeometry.attributes){if(!geometry.hasAttribute(attributeName))throw Error(`THREE.BatchedMesh: Added geometry missing "${attributeName}". All geometries must have consistent attributes.`);let srcAttribute=geometry.getAttribute(attributeName),dstAttribute=batchGeometry.getAttribute(attributeName);if(srcAttribute.itemSize!==dstAttribute.itemSize||srcAttribute.normalized!==dstAttribute.normalized)throw Error(`THREE.BatchedMesh: All attributes must have a consistent itemSize and normalized value.`)}}validateInstanceId(instanceId){let instanceInfo=this._instanceInfo;if(instanceId<0||instanceId>=instanceInfo.length||instanceInfo[instanceId].active===!1)throw Error(`THREE.BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or has been deleted.`)}validateGeometryId(geometryId){let geometryInfoList=this._geometryInfo;if(geometryId<0||geometryId>=geometryInfoList.length||geometryInfoList[geometryId].active===!1)throw Error(`THREE.BatchedMesh: Invalid geometryId ${geometryId}. Geometry is either out of range or has been deleted.`)}setCustomSort(func){return this.customSort=func,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Box3);let boundingBox=this.boundingBox,instanceInfo=this._instanceInfo;boundingBox.makeEmpty();for(let i$1=0,l$1=instanceInfo.length;i$1=this.maxInstanceCount;if(atCapacity&&this._availableInstanceIds.length===0)throw Error(`THREE.BatchedMesh: Maximum item count reached.`);let instanceInfo={visible:!0,active:!0,geometryIndex:geometryId},drawId=null;this._availableInstanceIds.length>0?(this._availableInstanceIds.sort(ascIdSort),drawId=this._availableInstanceIds.shift(),this._instanceInfo[drawId]=instanceInfo):(drawId=this._instanceInfo.length,this._instanceInfo.push(instanceInfo));let matricesTexture=this._matricesTexture;_matrix$1.identity().toArray(matricesTexture.image.data,drawId*16),matricesTexture.needsUpdate=!0;let colorsTexture=this._colorsTexture;return colorsTexture&&(_whiteColor.toArray(colorsTexture.image.data,drawId*4),colorsTexture.needsUpdate=!0),this._visibilityChanged=!0,drawId}addGeometry(geometry,reservedVertexCount=-1,reservedIndexCount=-1){this._initializeGeometry(geometry),this._validateGeometry(geometry);let geometryInfo={vertexStart:-1,vertexCount:-1,reservedVertexCount:-1,indexStart:-1,indexCount:-1,reservedIndexCount:-1,start:-1,count:-1,boundingBox:null,boundingSphere:null,active:!0},geometryInfoList=this._geometryInfo;geometryInfo.vertexStart=this._nextVertexStart,geometryInfo.reservedVertexCount=reservedVertexCount===-1?geometry.getAttribute(`position`).count:reservedVertexCount;let index$1=geometry.getIndex(),hasIndex=index$1!==null;if(hasIndex&&(geometryInfo.indexStart=this._nextIndexStart,geometryInfo.reservedIndexCount=reservedIndexCount===-1?index$1.count:reservedIndexCount),geometryInfo.indexStart!==-1&&geometryInfo.indexStart+geometryInfo.reservedIndexCount>this._maxIndexCount||geometryInfo.vertexStart+geometryInfo.reservedVertexCount>this._maxVertexCount)throw Error(`THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.`);let geometryId;return this._availableGeometryIds.length>0?(this._availableGeometryIds.sort(ascIdSort),geometryId=this._availableGeometryIds.shift(),geometryInfoList[geometryId]=geometryInfo):(geometryId=this._geometryCount,this._geometryCount++,geometryInfoList.push(geometryInfo)),this.setGeometryAt(geometryId,geometry),this._nextIndexStart=geometryInfo.indexStart+geometryInfo.reservedIndexCount,this._nextVertexStart=geometryInfo.vertexStart+geometryInfo.reservedVertexCount,geometryId}setGeometryAt(geometryId,geometry){if(geometryId>=this._geometryCount)throw Error(`THREE.BatchedMesh: Maximum geometry count reached.`);this._validateGeometry(geometry);let batchGeometry=this.geometry,hasIndex=batchGeometry.getIndex()!==null,dstIndex=batchGeometry.getIndex(),srcIndex=geometry.getIndex(),geometryInfo=this._geometryInfo[geometryId];if(hasIndex&&srcIndex.count>geometryInfo.reservedIndexCount||geometry.attributes.position.count>geometryInfo.reservedVertexCount)throw Error(`THREE.BatchedMesh: Reserved space not large enough for provided geometry.`);let vertexStart=geometryInfo.vertexStart,reservedVertexCount=geometryInfo.reservedVertexCount;for(let attributeName in geometryInfo.vertexCount=geometry.getAttribute(`position`).count,batchGeometry.attributes){let srcAttribute=geometry.getAttribute(attributeName),dstAttribute=batchGeometry.getAttribute(attributeName);copyAttributeData(srcAttribute,dstAttribute,vertexStart);let itemSize=srcAttribute.itemSize;for(let i$1=srcAttribute.count,l$1=reservedVertexCount;i$1=geometryInfoList.length||geometryInfoList[geometryId].active===!1)return this;let instanceInfo=this._instanceInfo;for(let i$1=0,l$1=instanceInfo.length;i$1i$1).sort((a$2,b$3)=>geometryInfoList[a$2].vertexStart-geometryInfoList[b$3].vertexStart),geometry=this.geometry;for(let i$1=0,l$1=geometryInfoList.length;i$1=this._geometryCount)return null;let geometry=this.geometry,geometryInfo=this._geometryInfo[geometryId];if(geometryInfo.boundingBox===null){let box=new Box3,index$1=geometry.index,position$2=geometry.attributes.position;for(let i$1=geometryInfo.start,l$1=geometryInfo.start+geometryInfo.count;i$1=this._geometryCount)return null;let geometry=this.geometry,geometryInfo=this._geometryInfo[geometryId];if(geometryInfo.boundingSphere===null){let sphere=new Sphere;this.getBoundingBoxAt(geometryId,_box$1),_box$1.getCenter(sphere.center);let index$1=geometry.index,position$2=geometry.attributes.position,maxRadiusSq=0;for(let i$1=geometryInfo.start,l$1=geometryInfo.start+geometryInfo.count;i$1info.active),requiredVertexLength=Math.max(...validRanges.map(range=>range.vertexStart+range.reservedVertexCount));if(requiredVertexLength>maxVertexCount)throw Error(`BatchedMesh: Geometry vertex values are being used outside the range ${maxIndexCount}. Cannot shrink further.`);if(this.geometry.index){let requiredIndexLength=Math.max(...validRanges.map(range=>range.indexStart+range.reservedIndexCount));if(requiredIndexLength>maxIndexCount)throw Error(`BatchedMesh: Geometry index values are being used outside the range ${maxIndexCount}. Cannot shrink further.`)}let oldGeometry=this.geometry;oldGeometry.dispose(),this._maxVertexCount=maxVertexCount,this._maxIndexCount=maxIndexCount,this._geometryInitialized&&(this._geometryInitialized=!1,this.geometry=new BufferGeometry,this._initializeGeometry(oldGeometry));let geometry=this.geometry;for(let key$1 in oldGeometry.index&©ArrayContents(oldGeometry.index.array,geometry.index.array),oldGeometry.attributes)copyArrayContents(oldGeometry.attributes[key$1].array,geometry.attributes[key$1].array)}raycast(raycaster,intersects$1){let instanceInfo=this._instanceInfo,geometryInfoList=this._geometryInfo,matrixWorld=this.matrixWorld,batchGeometry=this.geometry;_mesh.material=this.material,_mesh.geometry.index=batchGeometry.index,_mesh.geometry.attributes=batchGeometry.attributes,_mesh.geometry.boundingBox===null&&(_mesh.geometry.boundingBox=new Box3),_mesh.geometry.boundingSphere===null&&(_mesh.geometry.boundingSphere=new Sphere);for(let i$1=0,l$1=instanceInfo.length;i$1({...info,boundingBox:info.boundingBox===null?null:info.boundingBox.clone(),boundingSphere:info.boundingSphere===null?null:info.boundingSphere.clone()})),this._instanceInfo=source._instanceInfo.map(info=>({...info})),this._availableInstanceIds=source._availableInstanceIds.slice(),this._availableGeometryIds=source._availableGeometryIds.slice(),this._nextIndexStart=source._nextIndexStart,this._nextVertexStart=source._nextVertexStart,this._geometryCount=source._geometryCount,this._maxInstanceCount=source._maxInstanceCount,this._maxVertexCount=source._maxVertexCount,this._maxIndexCount=source._maxIndexCount,this._geometryInitialized=source._geometryInitialized,this._multiDrawCounts=source._multiDrawCounts.slice(),this._multiDrawStarts=source._multiDrawStarts.slice(),this._indirectTexture=source._indirectTexture.clone(),this._indirectTexture.image.data=this._indirectTexture.image.data.slice(),this._matricesTexture=source._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.data.slice(),this._colorsTexture!==null&&(this._colorsTexture=source._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(renderer$1,scene,camera,geometry,material){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;let index$1=geometry.getIndex(),bytesPerElement=index$1===null?1:index$1.array.BYTES_PER_ELEMENT,instanceInfo=this._instanceInfo,multiDrawStarts=this._multiDrawStarts,multiDrawCounts=this._multiDrawCounts,geometryInfoList=this._geometryInfo,perObjectFrustumCulled=this.perObjectFrustumCulled,indirectTexture=this._indirectTexture,indirectArray=indirectTexture.image.data,frustum=camera.isArrayCamera?_frustumArray:_frustum;perObjectFrustumCulled&&!camera.isArrayCamera&&(_matrix$1.multiplyMatrices(camera.projectionMatrix,camera.matrixWorldInverse).multiply(this.matrixWorld),_frustum.setFromProjectionMatrix(_matrix$1,renderer$1.coordinateSystem));let multiDrawCount=0;if(this.sortObjects){_matrix$1.copy(this.matrixWorld).invert(),_vector$5.setFromMatrixPosition(camera.matrixWorld).applyMatrix4(_matrix$1),_forward$1.set(0,0,-1).transformDirection(camera.matrixWorld).transformDirection(_matrix$1);for(let i$1=0,l$1=instanceInfo.length;i$10){let morphAttribute=morphAttributes[keys$3[0]];if(morphAttribute!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let m$2=0,ml=morphAttribute.length;m$2thresholdSq)return;_intersectPointOnRay.applyMatrix4(object.matrixWorld);let distance=raycaster.ray.origin.distanceTo(_intersectPointOnRay);if(!(distanceraycaster.far))return{distance,point:_intersectPointOnSegment.clone().applyMatrix4(object.matrixWorld),index:i$1,face:null,faceIndex:null,barycoord:null,object}}const _start=new Vector3,_end=new Vector3;var LineSegments=class extends Line{constructor(geometry,material){super(geometry,material),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let geometry=this.geometry;if(geometry.index===null){let positionAttribute=geometry.attributes.position,lineDistances=[];for(let i$1=0,l$1=positionAttribute.count;i$10){let morphAttribute=morphAttributes[keys$3[0]];if(morphAttribute!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let m$2=0,ml=morphAttribute.length;m$2raycaster.far)return;intersects$1.push({distance,distanceToRay:Math.sqrt(rayPointDistanceSq),point:intersectPoint,index:index$1,face:null,faceIndex:null,barycoord:null,object})}}var VideoTexture=class extends Texture{constructor(video,mapping,wrapS,wrapT,magFilter=LinearFilter,minFilter=LinearFilter,format$2,type,anisotropy){super(video,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isVideoTexture=!0,this.generateMipmaps=!1;let scope=this;function updateVideo(){scope.needsUpdate=!0,video.requestVideoFrameCallback(updateVideo)}`requestVideoFrameCallback`in video&&video.requestVideoFrameCallback(updateVideo)}clone(){return new this.constructor(this.image).copy(this)}update(){let video=this.image,hasVideoFrameCallback=`requestVideoFrameCallback`in video;hasVideoFrameCallback===!1&&video.readyState>=video.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}},VideoFrameTexture=class extends VideoTexture{constructor(mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy){super({},mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isVideoFrameTexture=!0}update(){}clone(){return new this.constructor().copy(this)}setFrame(frame$1){this.image=frame$1,this.needsUpdate=!0}},FramebufferTexture=class extends Texture{constructor(width,height){super({width,height}),this.isFramebufferTexture=!0,this.magFilter=NearestFilter,this.minFilter=NearestFilter,this.generateMipmaps=!1,this.needsUpdate=!0}},CompressedTexture=class extends Texture{constructor(mipmaps,width,height,format$2,type,mapping,wrapS,wrapT,magFilter,minFilter,anisotropy,colorSpace){super(null,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy,colorSpace),this.isCompressedTexture=!0,this.image={width,height},this.mipmaps=mipmaps,this.flipY=!1,this.generateMipmaps=!1}},CompressedArrayTexture=class extends CompressedTexture{constructor(mipmaps,width,height,depth,format$2,type){super(mipmaps,width,height,format$2,type),this.isCompressedArrayTexture=!0,this.image.depth=depth,this.wrapR=ClampToEdgeWrapping,this.layerUpdates=new Set}addLayerUpdate(layerIndex){this.layerUpdates.add(layerIndex)}clearLayerUpdates(){this.layerUpdates.clear()}},CompressedCubeTexture=class extends CompressedTexture{constructor(images,format$2,type){super(void 0,images[0].width,images[0].height,format$2,type,CubeReflectionMapping),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=images}},CanvasTexture=class extends Texture{constructor(canvas,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy){super(canvas,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isCanvasTexture=!0,this.needsUpdate=!0}},DepthTexture=class extends Texture{constructor(width,height,type=UnsignedIntType,mapping,wrapS,wrapT,magFilter=NearestFilter,minFilter=NearestFilter,anisotropy,format$2=DepthFormat,depth=1){if(format$2!==DepthFormat&&format$2!==DepthStencilFormat)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);let image$1={width,height,depth};super(image$1,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(source){return super.copy(source),this.source=new Source(Object.assign({},source.image)),this.compareFunction=source.compareFunction,this}toJSON(meta){let data$10=super.toJSON(meta);return this.compareFunction!==null&&(data$10.compareFunction=this.compareFunction),data$10}},CapsuleGeometry=class CapsuleGeometry extends BufferGeometry{constructor(radius=1,height=1,capSegments=4,radialSegments=8,heightSegments=1){super(),this.type=`CapsuleGeometry`,this.parameters={radius,height,capSegments,radialSegments,heightSegments},height=Math.max(0,height),capSegments=Math.max(1,Math.floor(capSegments)),radialSegments=Math.max(3,Math.floor(radialSegments)),heightSegments=Math.max(1,Math.floor(heightSegments));let indices=[],vertices=[],normals=[],uvs=[],halfHeight=height/2,capArcLength=Math.PI/2*radius,cylinderPartLength=height,totalArcLength=2*capArcLength+cylinderPartLength,numVerticalSegments=capSegments*2+heightSegments,verticesPerRow=radialSegments+1,normal=new Vector3,vertex$10=new Vector3;for(let iy=0;iy<=numVerticalSegments;iy++){let currentArcLength=0,profileY=0,profileRadius=0,normalYComponent=0;if(iy<=capSegments){let segmentProgress=iy/capSegments,angle=segmentProgress*Math.PI/2;profileY=-halfHeight-radius*Math.cos(angle),profileRadius=radius*Math.sin(angle),normalYComponent=-radius*Math.cos(angle),currentArcLength=segmentProgress*capArcLength}else if(iy<=capSegments+heightSegments){let segmentProgress=(iy-capSegments)/heightSegments;profileY=-halfHeight+segmentProgress*height,profileRadius=radius,normalYComponent=0,currentArcLength=capArcLength+segmentProgress*cylinderPartLength}else{let segmentProgress=(iy-capSegments-heightSegments)/capSegments,angle=segmentProgress*Math.PI/2;profileY=halfHeight+radius*Math.sin(angle),profileRadius=radius*Math.cos(angle),normalYComponent=radius*Math.sin(angle),currentArcLength=capArcLength+cylinderPartLength+segmentProgress*capArcLength}let v$1=Math.max(0,Math.min(1,currentArcLength/totalArcLength)),uOffset=0;iy===0?uOffset=.5/radialSegments:iy===numVerticalSegments&&(uOffset=-.5/radialSegments);for(let ix=0;ix<=radialSegments;ix++){let u$1=ix/radialSegments,theta=u$1*Math.PI*2,sinTheta=Math.sin(theta),cosTheta=Math.cos(theta);vertex$10.x=-profileRadius*cosTheta,vertex$10.y=profileY,vertex$10.z=profileRadius*sinTheta,vertices.push(vertex$10.x,vertex$10.y,vertex$10.z),normal.set(-profileRadius*cosTheta,normalYComponent,profileRadius*sinTheta),normal.normalize(),normals.push(normal.x,normal.y,normal.z),uvs.push(u$1+uOffset,v$1)}if(iy>0){let prevIndexRow=(iy-1)*verticesPerRow;for(let ix=0;ix0&&generateCap(!0),radiusBottom>0&&generateCap(!1)),this.setIndex(indices),this.setAttribute(`position`,new Float32BufferAttribute(vertices,3)),this.setAttribute(`normal`,new Float32BufferAttribute(normals,3)),this.setAttribute(`uv`,new Float32BufferAttribute(uvs,2));function generateTorso(){let normal=new Vector3,vertex$10=new Vector3,groupCount=0,slope=(radiusBottom-radiusTop)/height;for(let y$2=0;y$2<=heightSegments;y$2++){let indexRow=[],v$1=y$2/heightSegments,radius=v$1*(radiusBottom-radiusTop)+radiusTop;for(let x$3=0;x$3<=radialSegments;x$3++){let u$1=x$3/radialSegments,theta=u$1*thetaLength+thetaStart,sinTheta=Math.sin(theta),cosTheta=Math.cos(theta);vertex$10.x=radius*sinTheta,vertex$10.y=-v$1*height+halfHeight,vertex$10.z=radius*cosTheta,vertices.push(vertex$10.x,vertex$10.y,vertex$10.z),normal.set(sinTheta,slope,cosTheta).normalize(),normals.push(normal.x,normal.y,normal.z),uvs.push(u$1,1-v$1),indexRow.push(index$1++)}indexArray.push(indexRow)}for(let x$3=0;x$30||y$2!==0)&&(indices.push(a$2,b$3,d$2),groupCount+=3),(radiusBottom>0||y$2!==heightSegments-1)&&(indices.push(b$3,c$4,d$2),groupCount+=3)}scope.addGroup(groupStart,groupCount,0),groupStart+=groupCount}function generateCap(top){let centerIndexStart=index$1,uv=new Vector2,vertex$10=new Vector3,groupCount=0,radius=top===!0?radiusTop:radiusBottom,sign$1=top===!0?1:-1;for(let x$3=1;x$3<=radialSegments;x$3++)vertices.push(0,halfHeight*sign$1,0),normals.push(0,sign$1,0),uvs.push(.5,.5),index$1++;let centerIndexEnd=index$1;for(let x$3=0;x$3<=radialSegments;x$3++){let u$1=x$3/radialSegments,theta=u$1*thetaLength+thetaStart,cosTheta=Math.cos(theta),sinTheta=Math.sin(theta);vertex$10.x=radius*sinTheta,vertex$10.y=halfHeight*sign$1,vertex$10.z=radius*cosTheta,vertices.push(vertex$10.x,vertex$10.y,vertex$10.z),normals.push(0,sign$1,0),uv.x=cosTheta*.5+.5,uv.y=sinTheta*.5*sign$1+.5,uvs.push(uv.x,uv.y),index$1++}for(let x$3=0;x$3.9&&min$1<.1&&(x0<.2&&(uvBuffer[i$1+0]+=1),x1<.2&&(uvBuffer[i$1+2]+=1),x2<.2&&(uvBuffer[i$1+4]+=1))}}function pushVertex(vertex$10){vertexBuffer.push(vertex$10.x,vertex$10.y,vertex$10.z)}function getVertexByIndex(index$1,vertex$10){let stride=index$1*3;vertex$10.x=vertices[stride+0],vertex$10.y=vertices[stride+1],vertex$10.z=vertices[stride+2]}function correctUVs(){let a$2=new Vector3,b$3=new Vector3,c$4=new Vector3,centroid=new Vector3,uvA=new Vector2,uvB=new Vector2,uvC=new Vector2;for(let i$1=0,j$1=0;i$10)high=i$1-1;else{high=i$1;break}if(i$1=high,arcLengths[i$1]===targetArcLength)return i$1/(il-1);let lengthBefore=arcLengths[i$1],lengthAfter=arcLengths[i$1+1],segmentLength=lengthAfter-lengthBefore,segmentFraction=(targetArcLength-lengthBefore)/segmentLength,t=(i$1+segmentFraction)/(il-1);return t}getTangent(t,optionalTarget){let delta=1e-4,t1=t-delta,t2=t+delta;t1<0&&(t1=0),t2>1&&(t2=1);let pt1=this.getPoint(t1),pt2=this.getPoint(t2),tangent=optionalTarget||(pt1.isVector2?new Vector2:new Vector3);return tangent.copy(pt2).sub(pt1).normalize(),tangent}getTangentAt(u$1,optionalTarget){let t=this.getUtoTmapping(u$1);return this.getTangent(t,optionalTarget)}computeFrenetFrames(segments,closed$1=!1){let normal=new Vector3,tangents=[],normals=[],binormals=[],vec=new Vector3,mat=new Matrix4;for(let i$1=0;i$1<=segments;i$1++){let u$1=i$1/segments;tangents[i$1]=this.getTangentAt(u$1,new Vector3)}normals[0]=new Vector3,binormals[0]=new Vector3;let min$1=Number.MAX_VALUE,tx=Math.abs(tangents[0].x),ty=Math.abs(tangents[0].y),tz=Math.abs(tangents[0].z);tx<=min$1&&(min$1=tx,normal.set(1,0,0)),ty<=min$1&&(min$1=ty,normal.set(0,1,0)),tz<=min$1&&normal.set(0,0,1),vec.crossVectors(tangents[0],normal).normalize(),normals[0].crossVectors(tangents[0],vec),binormals[0].crossVectors(tangents[0],normals[0]);for(let i$1=1;i$1<=segments;i$1++){if(normals[i$1]=normals[i$1-1].clone(),binormals[i$1]=binormals[i$1-1].clone(),vec.crossVectors(tangents[i$1-1],tangents[i$1]),vec.length()>2**-52){vec.normalize();let theta=Math.acos(clamp$6(tangents[i$1-1].dot(tangents[i$1]),-1,1));normals[i$1].applyMatrix4(mat.makeRotationAxis(vec,theta))}binormals[i$1].crossVectors(tangents[i$1],normals[i$1])}if(closed$1===!0){let theta=Math.acos(clamp$6(normals[0].dot(normals[segments]),-1,1));theta/=segments,tangents[0].dot(vec.crossVectors(normals[0],normals[segments]))>0&&(theta=-theta);for(let i$1=1;i$1<=segments;i$1++)normals[i$1].applyMatrix4(mat.makeRotationAxis(tangents[i$1],theta*i$1)),binormals[i$1].crossVectors(tangents[i$1],normals[i$1])}return{tangents,normals,binormals}}clone(){return new this.constructor().copy(this)}copy(source){return this.arcLengthDivisions=source.arcLengthDivisions,this}toJSON(){let data$10={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return data$10.arcLengthDivisions=this.arcLengthDivisions,data$10.type=this.type,data$10}fromJSON(json){return this.arcLengthDivisions=json.arcLengthDivisions,this}},EllipseCurve=class extends Curve{constructor(aX=0,aY=0,xRadius=1,yRadius=1,aStartAngle=0,aEndAngle=Math.PI*2,aClockwise=!1,aRotation=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=aX,this.aY=aY,this.xRadius=xRadius,this.yRadius=yRadius,this.aStartAngle=aStartAngle,this.aEndAngle=aEndAngle,this.aClockwise=aClockwise,this.aRotation=aRotation}getPoint(t,optionalTarget=new Vector2){let point$3=optionalTarget,twoPi=Math.PI*2,deltaAngle=this.aEndAngle-this.aStartAngle,samePoints=Math.abs(deltaAngle)<2**-52;for(;deltaAngle<0;)deltaAngle+=twoPi;for(;deltaAngle>twoPi;)deltaAngle-=twoPi;deltaAngle<2**-52&&(deltaAngle=samePoints?0:twoPi),this.aClockwise===!0&&!samePoints&&(deltaAngle===twoPi?deltaAngle=-twoPi:deltaAngle-=twoPi);let angle=this.aStartAngle+t*deltaAngle,x$3=this.aX+this.xRadius*Math.cos(angle),y$2=this.aY+this.yRadius*Math.sin(angle);if(this.aRotation!==0){let cos=Math.cos(this.aRotation),sin=Math.sin(this.aRotation),tx=x$3-this.aX,ty=y$2-this.aY;x$3=tx*cos-ty*sin+this.aX,y$2=tx*sin+ty*cos+this.aY}return point$3.set(x$3,y$2)}copy(source){return super.copy(source),this.aX=source.aX,this.aY=source.aY,this.xRadius=source.xRadius,this.yRadius=source.yRadius,this.aStartAngle=source.aStartAngle,this.aEndAngle=source.aEndAngle,this.aClockwise=source.aClockwise,this.aRotation=source.aRotation,this}toJSON(){let data$10=super.toJSON();return data$10.aX=this.aX,data$10.aY=this.aY,data$10.xRadius=this.xRadius,data$10.yRadius=this.yRadius,data$10.aStartAngle=this.aStartAngle,data$10.aEndAngle=this.aEndAngle,data$10.aClockwise=this.aClockwise,data$10.aRotation=this.aRotation,data$10}fromJSON(json){return super.fromJSON(json),this.aX=json.aX,this.aY=json.aY,this.xRadius=json.xRadius,this.yRadius=json.yRadius,this.aStartAngle=json.aStartAngle,this.aEndAngle=json.aEndAngle,this.aClockwise=json.aClockwise,this.aRotation=json.aRotation,this}},ArcCurve=class extends EllipseCurve{constructor(aX,aY,aRadius,aStartAngle,aEndAngle,aClockwise){super(aX,aY,aRadius,aRadius,aStartAngle,aEndAngle,aClockwise),this.isArcCurve=!0,this.type=`ArcCurve`}};function CubicPoly(){let c0=0,c1=0,c2=0,c3=0;function init(x0,x1,t0,t1){c0=x0,c1=t0,c2=-3*x0+3*x1-2*t0-t1,c3=2*x0-2*x1+t0+t1}return{initCatmullRom:function(x0,x1,x2,x3,tension){init(x1,x2,tension*(x2-x0),tension*(x3-x1))},initNonuniformCatmullRom:function(x0,x1,x2,x3,dt0,dt1,dt2){let t1=(x1-x0)/dt0-(x2-x0)/(dt0+dt1)+(x2-x1)/dt1,t2=(x2-x1)/dt1-(x3-x1)/(dt1+dt2)+(x3-x2)/dt2;t1*=dt1,t2*=dt1,init(x1,x2,t1,t2)},calc:function(t){let t2=t*t,t3=t2*t;return c0+c1*t+c2*t2+c3*t3}}}const tmp=new Vector3,px$1=new CubicPoly,py=new CubicPoly,pz=new CubicPoly;var CatmullRomCurve3=class extends Curve{constructor(points=[],closed$1=!1,curveType=`centripetal`,tension=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=points,this.closed=closed$1,this.curveType=curveType,this.tension=tension}getPoint(t,optionalTarget=new Vector3){let point$3=optionalTarget,points=this.points,l$1=points.length,p$5=(l$1-(this.closed?0:1))*t,intPoint=Math.floor(p$5),weight=p$5-intPoint;this.closed?intPoint+=intPoint>0?0:(Math.floor(Math.abs(intPoint)/l$1)+1)*l$1:weight===0&&intPoint===l$1-1&&(intPoint=l$1-2,weight=1);let p0,p3$1;this.closed||intPoint>0?p0=points[(intPoint-1)%l$1]:(tmp.subVectors(points[0],points[1]).add(points[0]),p0=tmp);let p1=points[intPoint%l$1],p2=points[(intPoint+1)%l$1];if(this.closed||intPoint+2points.length-2?points.length-1:intPoint+1],p3$1=points[intPoint>points.length-3?points.length-1:intPoint+2];return point$3.set(CatmullRom(weight,p0.x,p1.x,p2.x,p3$1.x),CatmullRom(weight,p0.y,p1.y,p2.y,p3$1.y)),point$3}copy(source){super.copy(source),this.points=[];for(let i$1=0,l$1=source.points.length;i$1=d$2){let diff=curveLengths[i$1]-d$2,curve=this.curves[i$1],segmentLength=curve.getLength(),u$1=segmentLength===0?0:1-diff/segmentLength;return curve.getPointAt(u$1,optionalTarget)}i$1++}return null}getLength(){let lens=this.getCurveLengths();return lens[lens.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 lengths=[],sums=0;for(let i$1=0,l$1=this.curves.length;i$11&&!points[points.length-1].equals(points[0])&&points.push(points[0]),points}copy(source){super.copy(source),this.curves=[];for(let i$1=0,l$1=source.curves.length;i$10){let firstPoint=curve.getPoint(0);firstPoint.equals(this.currentPoint)||this.lineTo(firstPoint.x,firstPoint.y)}this.curves.push(curve);let lastPoint=curve.getPoint(1);return this.currentPoint.copy(lastPoint),this}copy(source){return super.copy(source),this.currentPoint.copy(source.currentPoint),this}toJSON(){let data$10=super.toJSON();return data$10.currentPoint=this.currentPoint.toArray(),data$10}fromJSON(json){return super.fromJSON(json),this.currentPoint.fromArray(json.currentPoint),this}},Shape=class extends Path{constructor(points){super(points),this.uuid=generateUUID(),this.type=`Shape`,this.holes=[]}getPointsHoles(divisions){let holesPts=[];for(let i$1=0,l$1=this.holes.length;i$180*dim){minX=1/0,minY=1/0;let maxX=-1/0,maxY=-1/0;for(let i$1=dim;i$1maxX&&(maxX=x$3),y$2>maxY&&(maxY=y$2)}invSize=Math.max(maxX-minX,maxY-minY),invSize=invSize===0?0:32767/invSize}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize,0),triangles}function linkedList(data$10,start,end,dim,clockwise){let last;if(clockwise===signedArea(data$10,start,end,dim)>0)for(let i$1=start;i$1=start;i$1-=dim)last=insertNode(i$1/dim|0,data$10[i$1],data$10[i$1+1],last);return last&&equals(last,last.next)&&(removeNode(last),last=last.next),last}function filterPoints(start,end){if(!start)return start;end||=start;let p$5=start,again;do if(again=!1,!p$5.steiner&&(equals(p$5,p$5.next)||area(p$5.prev,p$5,p$5.next)===0)){if(removeNode(p$5),p$5=end=p$5.prev,p$5===p$5.next)break;again=!0}else p$5=p$5.next;while(again||p$5!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;!pass&&invSize&&indexCurve(ear,minX,minY,invSize);let stop$1=ear;for(;ear.prev!==ear.next;){let prev=ear.prev,next=ear.next;if(invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear)){triangles.push(prev.i,ear.i,next.i),removeNode(ear),ear=next.next,stop$1=next.next;continue}if(ear=next,ear===stop$1){pass?pass===1?(ear=cureLocalIntersections(filterPoints(ear),triangles),earcutLinked(ear,triangles,dim,minX,minY,invSize,2)):pass===2&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}}function isEar(ear){let a$2=ear.prev,b$3=ear,c$4=ear.next;if(area(a$2,b$3,c$4)>=0)return!1;let ax=a$2.x,bx=b$3.x,cx=c$4.x,ay=a$2.y,by=b$3.y,cy=c$4.y,x0=Math.min(ax,bx,cx),y0=Math.min(ay,by,cy),x1=Math.max(ax,bx,cx),y1=Math.max(ay,by,cy),p$5=c$4.next;for(;p$5!==a$2;){if(p$5.x>=x0&&p$5.x<=x1&&p$5.y>=y0&&p$5.y<=y1&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,p$5.x,p$5.y)&&area(p$5.prev,p$5,p$5.next)>=0)return!1;p$5=p$5.next}return!0}function isEarHashed(ear,minX,minY,invSize){let a$2=ear.prev,b$3=ear,c$4=ear.next;if(area(a$2,b$3,c$4)>=0)return!1;let ax=a$2.x,bx=b$3.x,cx=c$4.x,ay=a$2.y,by=b$3.y,cy=c$4.y,x0=Math.min(ax,bx,cx),y0=Math.min(ay,by,cy),x1=Math.max(ax,bx,cx),y1=Math.max(ay,by,cy),minZ=zOrder(x0,y0,minX,minY,invSize),maxZ=zOrder(x1,y1,minX,minY,invSize),p$5=ear.prevZ,n$2=ear.nextZ;for(;p$5&&p$5.z>=minZ&&n$2&&n$2.z<=maxZ;){if(p$5.x>=x0&&p$5.x<=x1&&p$5.y>=y0&&p$5.y<=y1&&p$5!==a$2&&p$5!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,p$5.x,p$5.y)&&area(p$5.prev,p$5,p$5.next)>=0||(p$5=p$5.prevZ,n$2.x>=x0&&n$2.x<=x1&&n$2.y>=y0&&n$2.y<=y1&&n$2!==a$2&&n$2!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,n$2.x,n$2.y)&&area(n$2.prev,n$2,n$2.next)>=0))return!1;n$2=n$2.nextZ}for(;p$5&&p$5.z>=minZ;){if(p$5.x>=x0&&p$5.x<=x1&&p$5.y>=y0&&p$5.y<=y1&&p$5!==a$2&&p$5!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,p$5.x,p$5.y)&&area(p$5.prev,p$5,p$5.next)>=0)return!1;p$5=p$5.prevZ}for(;n$2&&n$2.z<=maxZ;){if(n$2.x>=x0&&n$2.x<=x1&&n$2.y>=y0&&n$2.y<=y1&&n$2!==a$2&&n$2!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,n$2.x,n$2.y)&&area(n$2.prev,n$2,n$2.next)>=0)return!1;n$2=n$2.nextZ}return!0}function cureLocalIntersections(start,triangles){let p$5=start;do{let a$2=p$5.prev,b$3=p$5.next.next;!equals(a$2,b$3)&&intersects(a$2,p$5,p$5.next,b$3)&&locallyInside(a$2,b$3)&&locallyInside(b$3,a$2)&&(triangles.push(a$2.i,p$5.i,b$3.i),removeNode(p$5),removeNode(p$5.next),p$5=start=b$3),p$5=p$5.next}while(p$5!==start);return filterPoints(p$5)}function splitEarcut(start,triangles,dim,minX,minY,invSize){let a$2=start;do{let b$3=a$2.next.next;for(;b$3!==a$2.prev;){if(a$2.i!==b$3.i&&isValidDiagonal(a$2,b$3)){let c$4=splitPolygon(a$2,b$3);a$2=filterPoints(a$2,a$2.next),c$4=filterPoints(c$4,c$4.next),earcutLinked(a$2,triangles,dim,minX,minY,invSize,0),earcutLinked(c$4,triangles,dim,minX,minY,invSize,0);return}b$3=b$3.next}a$2=a$2.next}while(a$2!==start)}function eliminateHoles(data$10,holeIndices,outerNode,dim){let queue$1=[];for(let i$1=0,len=holeIndices.length;i$1=p$5.next.y&&p$5.next.y!==p$5.y){let x$3=p$5.x+(hy-p$5.y)*(p$5.next.x-p$5.x)/(p$5.next.y-p$5.y);if(x$3<=hx&&x$3>qx&&(qx=x$3,m$2=p$5.x=p$5.x&&p$5.x>=mx&&hx!==p$5.x&&pointInTriangle(hym$2.x||p$5.x===m$2.x&§orContainsSector(m$2,p$5)))&&(m$2=p$5,tanMin=tan)}p$5=p$5.next}while(p$5!==stop$1);return m$2}function sectorContainsSector(m$2,p$5){return area(m$2.prev,m$2,p$5.prev)<0&&area(p$5.next,m$2,m$2.next)<0}function indexCurve(start,minX,minY,invSize){let p$5=start;do p$5.z===0&&(p$5.z=zOrder(p$5.x,p$5.y,minX,minY,invSize)),p$5.prevZ=p$5.prev,p$5.nextZ=p$5.next,p$5=p$5.next;while(p$5!==start);p$5.prevZ.nextZ=null,p$5.prevZ=null,sortLinked(p$5)}function sortLinked(list$2){let numMerges,inSize=1;do{let p$5=list$2,e$3;list$2=null;let tail=null;for(numMerges=0;p$5;){numMerges++;let q$1=p$5,pSize=0;for(let i$1=0;i$10||qSize>0&&q$1;)pSize!==0&&(qSize===0||!q$1||p$5.z<=q$1.z)?(e$3=p$5,p$5=p$5.nextZ,pSize--):(e$3=q$1,q$1=q$1.nextZ,qSize--),tail?tail.nextZ=e$3:list$2=e$3,e$3.prevZ=tail,tail=e$3;p$5=q$1}tail.nextZ=null,inSize*=2}while(numMerges>1);return list$2}function zOrder(x$3,y$2,minX,minY,invSize){return x$3=(x$3-minX)*invSize|0,y$2=(y$2-minY)*invSize|0,x$3=(x$3|x$3<<8)&16711935,x$3=(x$3|x$3<<4)&252645135,x$3=(x$3|x$3<<2)&858993459,x$3=(x$3|x$3<<1)&1431655765,y$2=(y$2|y$2<<8)&16711935,y$2=(y$2|y$2<<4)&252645135,y$2=(y$2|y$2<<2)&858993459,y$2=(y$2|y$2<<1)&1431655765,x$3|y$2<<1}function getLeftmost(start){let p$5=start,leftmost=start;do(p$5.x=(ax-px$2)*(cy-py$1)&&(ax-px$2)*(by-py$1)>=(bx-px$2)*(ay-py$1)&&(bx-px$2)*(cy-py$1)>=(cx-px$2)*(by-py$1)}function pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,px$2,py$1){return!(ax===px$2&&ay===py$1)&&pointInTriangle(ax,ay,bx,by,cx,cy,px$2,py$1)}function isValidDiagonal(a$2,b$3){return a$2.next.i!==b$3.i&&a$2.prev.i!==b$3.i&&!intersectsPolygon(a$2,b$3)&&(locallyInside(a$2,b$3)&&locallyInside(b$3,a$2)&&middleInside(a$2,b$3)&&(area(a$2.prev,a$2,b$3.prev)||area(a$2,b$3.prev,b$3))||equals(a$2,b$3)&&area(a$2.prev,a$2,a$2.next)>0&&area(b$3.prev,b$3,b$3.next)>0)}function area(p$5,q$1,r$2){return(q$1.y-p$5.y)*(r$2.x-q$1.x)-(q$1.x-p$5.x)*(r$2.y-q$1.y)}function equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){let o1=sign(area(p1,q1,p2)),o2=sign(area(p1,q1,q2)),o3=sign(area(p2,q2,p1)),o4=sign(area(p2,q2,q1));return!!(o1!==o2&&o3!==o4||o1===0&&onSegment(p1,p2,q1)||o2===0&&onSegment(p1,q2,q1)||o3===0&&onSegment(p2,p1,q2)||o4===0&&onSegment(p2,q1,q2))}function onSegment(p$5,q$1,r$2){return q$1.x<=Math.max(p$5.x,r$2.x)&&q$1.x>=Math.min(p$5.x,r$2.x)&&q$1.y<=Math.max(p$5.y,r$2.y)&&q$1.y>=Math.min(p$5.y,r$2.y)}function sign(num$2){return num$2>0?1:num$2<0?-1:0}function intersectsPolygon(a$2,b$3){let p$5=a$2;do{if(p$5.i!==a$2.i&&p$5.next.i!==a$2.i&&p$5.i!==b$3.i&&p$5.next.i!==b$3.i&&intersects(p$5,p$5.next,a$2,b$3))return!0;p$5=p$5.next}while(p$5!==a$2);return!1}function locallyInside(a$2,b$3){return area(a$2.prev,a$2,a$2.next)<0?area(a$2,b$3,a$2.next)>=0&&area(a$2,a$2.prev,b$3)>=0:area(a$2,b$3,a$2.prev)<0||area(a$2,a$2.next,b$3)<0}function middleInside(a$2,b$3){let p$5=a$2,inside=!1,px$2=(a$2.x+b$3.x)/2,py$1=(a$2.y+b$3.y)/2;do p$5.y>py$1!=p$5.next.y>py$1&&p$5.next.y!==p$5.y&&px$2<(p$5.next.x-p$5.x)*(py$1-p$5.y)/(p$5.next.y-p$5.y)+p$5.x&&(inside=!inside),p$5=p$5.next;while(p$5!==a$2);return inside}function splitPolygon(a$2,b$3){let a2=createNode(a$2.i,a$2.x,a$2.y),b2=createNode(b$3.i,b$3.x,b$3.y),an$1=a$2.next,bp=b$3.prev;return a$2.next=b$3,b$3.prev=a$2,a2.next=an$1,an$1.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i$1,x$3,y$2,last){let p$5=createNode(i$1,x$3,y$2);return last?(p$5.next=last.next,p$5.prev=last,last.next.prev=p$5,last.next=p$5):(p$5.prev=p$5,p$5.next=p$5),p$5}function removeNode(p$5){p$5.next.prev=p$5.prev,p$5.prev.next=p$5.next,p$5.prevZ&&(p$5.prevZ.nextZ=p$5.nextZ),p$5.nextZ&&(p$5.nextZ.prevZ=p$5.prevZ)}function createNode(i$1,x$3,y$2){return{i:i$1,x:x$3,y:y$2,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function signedArea(data$10,start,end,dim){let sum=0;for(let i$1=start,j$1=end-dim;i$12&&points[l$1-1].equals(points[0])&&points.pop()}function addContour(vertices,contour){for(let i$1=0;i$12**-52){let v_prev_len=Math.sqrt(v_prev_lensq),v_next_len=Math.sqrt(v_next_x*v_next_x+v_next_y*v_next_y),ptPrevShift_x=inPrev.x-v_prev_y/v_prev_len,ptPrevShift_y=inPrev.y+v_prev_x/v_prev_len,ptNextShift_x=inNext.x-v_next_y/v_next_len,ptNextShift_y=inNext.y+v_next_x/v_next_len,sf=((ptNextShift_x-ptPrevShift_x)*v_next_y-(ptNextShift_y-ptPrevShift_y)*v_next_x)/(v_prev_x*v_next_y-v_prev_y*v_next_x);v_trans_x=ptPrevShift_x+v_prev_x*sf-inPt.x,v_trans_y=ptPrevShift_y+v_prev_y*sf-inPt.y;let v_trans_lensq=v_trans_x*v_trans_x+v_trans_y*v_trans_y;if(v_trans_lensq<=2)return new Vector2(v_trans_x,v_trans_y);shrink_by=Math.sqrt(v_trans_lensq/2)}else{let direction_eq=!1;v_prev_x>2**-52?v_next_x>2**-52&&(direction_eq=!0):v_prev_x<-(2**-52)?v_next_x<-(2**-52)&&(direction_eq=!0):Math.sign(v_prev_y)===Math.sign(v_next_y)&&(direction_eq=!0),direction_eq?(v_trans_x=-v_prev_y,v_trans_y=v_prev_x,shrink_by=Math.sqrt(v_prev_lensq)):(v_trans_x=v_prev_x,v_trans_y=v_prev_y,shrink_by=Math.sqrt(v_prev_lensq/2))}return new Vector2(v_trans_x/shrink_by,v_trans_y/shrink_by)}let contourMovements=[];for(let i$1=0,il=contour.length,j$1=il-1,k$4=i$1+1;i$1=0;b$3--){let t=b$3/bevelSegments,z$2=bevelThickness*Math.cos(t*Math.PI/2),bs$1=bevelSize*Math.sin(t*Math.PI/2)+bevelOffset;for(let i$1=0,il=contour.length;i$1=0;){let j$1=i$1,k$4=i$1-1;k$4<0&&(k$4=contour$1.length-1);for(let s$1=0,sl=steps$1+bevelSegments*2;s$10)&&indices.push(a$2,b$3,d$2),(iy!==heightSegments-1||thetaEnd0!=value$1>0&&this.version++,this._anisotropy=value$1}get clearcoat(){return this._clearcoat}set clearcoat(value$1){this._clearcoat>0!=value$1>0&&this.version++,this._clearcoat=value$1}get iridescence(){return this._iridescence}set iridescence(value$1){this._iridescence>0!=value$1>0&&this.version++,this._iridescence=value$1}get dispersion(){return this._dispersion}set dispersion(value$1){this._dispersion>0!=value$1>0&&this.version++,this._dispersion=value$1}get sheen(){return this._sheen}set sheen(value$1){this._sheen>0!=value$1>0&&this.version++,this._sheen=value$1}get transmission(){return this._transmission}set transmission(value$1){this._transmission>0!=value$1>0&&this.version++,this._transmission=value$1}copy(source){return super.copy(source),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=source.anisotropy,this.anisotropyRotation=source.anisotropyRotation,this.anisotropyMap=source.anisotropyMap,this.clearcoat=source.clearcoat,this.clearcoatMap=source.clearcoatMap,this.clearcoatRoughness=source.clearcoatRoughness,this.clearcoatRoughnessMap=source.clearcoatRoughnessMap,this.clearcoatNormalMap=source.clearcoatNormalMap,this.clearcoatNormalScale.copy(source.clearcoatNormalScale),this.dispersion=source.dispersion,this.ior=source.ior,this.iridescence=source.iridescence,this.iridescenceMap=source.iridescenceMap,this.iridescenceIOR=source.iridescenceIOR,this.iridescenceThicknessRange=[...source.iridescenceThicknessRange],this.iridescenceThicknessMap=source.iridescenceThicknessMap,this.sheen=source.sheen,this.sheenColor.copy(source.sheenColor),this.sheenColorMap=source.sheenColorMap,this.sheenRoughness=source.sheenRoughness,this.sheenRoughnessMap=source.sheenRoughnessMap,this.transmission=source.transmission,this.transmissionMap=source.transmissionMap,this.thickness=source.thickness,this.thicknessMap=source.thicknessMap,this.attenuationDistance=source.attenuationDistance,this.attenuationColor.copy(source.attenuationColor),this.specularIntensity=source.specularIntensity,this.specularIntensityMap=source.specularIntensityMap,this.specularColor.copy(source.specularColor),this.specularColorMap=source.specularColorMap,this}},MeshPhongMaterial=class extends Material{constructor(parameters){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Color(16777215),this.specular=new Color(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Euler,this.combine=MultiplyOperation,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(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.specular.copy(source.specular),this.shininess=source.shininess,this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapRotation.copy(source.envMapRotation),this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}},MeshToonMaterial=class extends Material{constructor(parameters){super(),this.isMeshToonMaterial=!0,this.defines={TOON:``},this.type=`MeshToonMaterial`,this.color=new Color(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(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(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.gradientMap=source.gradientMap,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.alphaMap=source.alphaMap,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.fog=source.fog,this}},MeshNormalMaterial=class extends Material{constructor(parameters){super(),this.isMeshNormalMaterial=!0,this.type=`MeshNormalMaterial`,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(parameters)}copy(source){return super.copy(source),this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.flatShading=source.flatShading,this}},MeshLambertMaterial=class extends Material{constructor(parameters){super(),this.isMeshLambertMaterial=!0,this.type=`MeshLambertMaterial`,this.color=new Color(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Euler,this.combine=MultiplyOperation,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(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapRotation.copy(source.envMapRotation),this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}},MeshDepthMaterial=class extends Material{constructor(parameters){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=BasicDepthPacking,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(parameters)}copy(source){return super.copy(source),this.depthPacking=source.depthPacking,this.map=source.map,this.alphaMap=source.alphaMap,this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this}},MeshDistanceMaterial=class extends Material{constructor(parameters){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(parameters)}copy(source){return super.copy(source),this.map=source.map,this.alphaMap=source.alphaMap,this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this}},MeshMatcapMaterial=class extends Material{constructor(parameters){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:``},this.type=`MeshMatcapMaterial`,this.color=new Color(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(parameters)}copy(source){return super.copy(source),this.defines={MATCAP:``},this.color.copy(source.color),this.matcap=source.matcap,this.map=source.map,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.alphaMap=source.alphaMap,this.flatShading=source.flatShading,this.fog=source.fog,this}},LineDashedMaterial=class extends LineBasicMaterial{constructor(parameters){super(),this.isLineDashedMaterial=!0,this.type=`LineDashedMaterial`,this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(parameters)}copy(source){return super.copy(source),this.scale=source.scale,this.dashSize=source.dashSize,this.gapSize=source.gapSize,this}};function convertArray(array,type){return!array||array.constructor===type?array:typeof type.BYTES_PER_ELEMENT==`number`?new type(array):Array.prototype.slice.call(array)}function isTypedArray(object){return ArrayBuffer.isView(object)&&!(object instanceof DataView)}function getKeyframeOrder(times){function compareTime(i$1,j$1){return times[i$1]-times[j$1]}let n$2=times.length,result=Array(n$2);for(let i$1=0;i$1!==n$2;++i$1)result[i$1]=i$1;return result.sort(compareTime),result}function sortedArray(values,stride,order$3){let nValues=values.length,result=new values.constructor(nValues);for(let i$1=0,dstOffset=0;dstOffset!==nValues;++i$1){let srcOffset=order$3[i$1]*stride;for(let j$1=0;j$1!==stride;++j$1)result[dstOffset++]=values[srcOffset+j$1]}return result}function flattenJSON(jsonKeys,times,values,valuePropertyName){let i$1=1,key$1=jsonKeys[0];for(;key$1!==void 0&&key$1[valuePropertyName]===void 0;)key$1=jsonKeys[i$1++];if(key$1===void 0)return;let value$1=key$1[valuePropertyName];if(value$1!==void 0)if(Array.isArray(value$1))do value$1=key$1[valuePropertyName],value$1!==void 0&&(times.push(key$1.time),values.push(...value$1)),key$1=jsonKeys[i$1++];while(key$1!==void 0);else if(value$1.toArray!==void 0)do value$1=key$1[valuePropertyName],value$1!==void 0&&(times.push(key$1.time),value$1.toArray(values,values.length)),key$1=jsonKeys[i$1++];while(key$1!==void 0);else do value$1=key$1[valuePropertyName],value$1!==void 0&&(times.push(key$1.time),values.push(value$1)),key$1=jsonKeys[i$1++];while(key$1!==void 0)}function subclip(sourceClip,name$2,startFrame,endFrame,fps=30){let clip=sourceClip.clone();clip.name=name$2;let tracks=[];for(let i$1=0;i$1=endFrame)){times.push(track$1.times[j$1]);for(let k$4=0;k$4clip.tracks[i$1].times[0]&&(minStartTime=clip.tracks[i$1].times[0]);for(let i$1=0;i$1=referenceTrack.times[lastIndex]){let startIndex=lastIndex*referenceValueSize+referenceOffset,endIndex=startIndex+referenceValueSize-referenceOffset;referenceValue=referenceTrack.values.slice(startIndex,endIndex)}else{let interpolant=referenceTrack.createInterpolant(),startIndex=referenceOffset,endIndex=referenceValueSize-referenceOffset;interpolant.evaluate(referenceTime),referenceValue=interpolant.resultBuffer.slice(startIndex,endIndex)}if(referenceTrackType===`quaternion`){let referenceQuat=new Quaternion().fromArray(referenceValue).normalize().conjugate();referenceQuat.toArray(referenceValue)}let numTimes=targetTrack.times.length;for(let j$1=0;j$1=t0)){let t1global=pp[1];t=t0)break seek}right=i1,i1=0;break linear_scan}break validate_interval}for(;i1>>1;tendTime;)--to$1;if(++to$1,from!==0||to$1!==nKeys){from>=to$1&&(to$1=Math.max(to$1,1),from=to$1-1);let stride=this.getValueSize();this.times=times.slice(from,to$1),this.values=this.values.slice(from*stride,to$1*stride)}return this}validate(){let valid$1=!0,valueSize=this.getValueSize();valueSize-Math.floor(valueSize)!==0&&(console.error(`THREE.KeyframeTrack: Invalid value size in track.`,this),valid$1=!1);let times=this.times,values=this.values,nKeys=times.length;nKeys===0&&(console.error(`THREE.KeyframeTrack: Track is empty.`,this),valid$1=!1);let prevTime=null;for(let i$1=0;i$1!==nKeys;i$1++){let currTime=times[i$1];if(typeof currTime==`number`&&isNaN(currTime)){console.error(`THREE.KeyframeTrack: Time is not a valid number.`,this,i$1,currTime),valid$1=!1;break}if(prevTime!==null&&prevTime>currTime){console.error(`THREE.KeyframeTrack: Out of order keys.`,this,i$1,currTime,prevTime),valid$1=!1;break}prevTime=currTime}if(values!==void 0&&isTypedArray(values))for(let i$1=0,n$2=values.length;i$1!==n$2;++i$1){let value$1=values[i$1];if(isNaN(value$1)){console.error(`THREE.KeyframeTrack: Value is not a valid number.`,this,i$1,value$1),valid$1=!1;break}}return valid$1}optimize(){let times=this.times.slice(),values=this.values.slice(),stride=this.getValueSize(),smoothInterpolation=this.getInterpolation()===InterpolateSmooth,lastIndex=times.length-1,writeIndex=1;for(let i$1=1;i$10){times[writeIndex]=times[lastIndex];for(let readOffset=lastIndex*stride,writeOffset=writeIndex*stride,j$1=0;j$1!==stride;++j$1)values[writeOffset+j$1]=values[readOffset+j$1];++writeIndex}return writeIndex===times.length?(this.times=times,this.values=values):(this.times=times.slice(0,writeIndex),this.values=values.slice(0,writeIndex*stride)),this}clone(){let times=this.times.slice(),values=this.values.slice(),TypedKeyframeTrack=this.constructor,track$1=new TypedKeyframeTrack(this.name,times,values);return track$1.createInterpolant=this.createInterpolant,track$1}};KeyframeTrack.prototype.ValueTypeName=``,KeyframeTrack.prototype.TimeBufferType=Float32Array,KeyframeTrack.prototype.ValueBufferType=Float32Array,KeyframeTrack.prototype.DefaultInterpolation=InterpolateLinear;var BooleanKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values){super(name$2,times,values)}};BooleanKeyframeTrack.prototype.ValueTypeName=`bool`,BooleanKeyframeTrack.prototype.ValueBufferType=Array,BooleanKeyframeTrack.prototype.DefaultInterpolation=InterpolateDiscrete,BooleanKeyframeTrack.prototype.InterpolantFactoryMethodLinear=void 0,BooleanKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;var ColorKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}};ColorKeyframeTrack.prototype.ValueTypeName=`color`;var NumberKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}};NumberKeyframeTrack.prototype.ValueTypeName=`number`;var QuaternionLinearInterpolant=class extends Interpolant{constructor(parameterPositions,sampleValues,sampleSize,resultBuffer){super(parameterPositions,sampleValues,sampleSize,resultBuffer)}interpolate_(i1,t0,t,t1){let result=this.resultBuffer,values=this.sampleValues,stride=this.valueSize,alpha$1=(t-t0)/(t1-t0),offset$1=i1*stride;for(let end=offset$1+stride;offset$1!==end;offset$1+=4)Quaternion.slerpFlat(result,0,values,offset$1-stride,values,offset$1,alpha$1);return result}},QuaternionKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}InterpolantFactoryMethodLinear(result){return new QuaternionLinearInterpolant(this.times,this.values,this.getValueSize(),result)}};QuaternionKeyframeTrack.prototype.ValueTypeName=`quaternion`,QuaternionKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;var StringKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values){super(name$2,times,values)}};StringKeyframeTrack.prototype.ValueTypeName=`string`,StringKeyframeTrack.prototype.ValueBufferType=Array,StringKeyframeTrack.prototype.DefaultInterpolation=InterpolateDiscrete,StringKeyframeTrack.prototype.InterpolantFactoryMethodLinear=void 0,StringKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;var VectorKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}};VectorKeyframeTrack.prototype.ValueTypeName=`vector`;var AnimationClip=class{constructor(name$2=``,duration=-1,tracks=[],blendMode=NormalAnimationBlendMode){this.name=name$2,this.tracks=tracks,this.duration=duration,this.blendMode=blendMode,this.uuid=generateUUID(),this.duration<0&&this.resetDuration()}static parse(json){let tracks=[],jsonTracks=json.tracks,frameTime=1/(json.fps||1);for(let i$1=0,n$2=jsonTracks.length;i$1!==n$2;++i$1)tracks.push(parseKeyframeTrack(jsonTracks[i$1]).scale(frameTime));let clip=new this(json.name,json.duration,tracks,json.blendMode);return clip.uuid=json.uuid,clip}static toJSON(clip){let tracks=[],clipTracks=clip.tracks,json={name:clip.name,duration:clip.duration,tracks,uuid:clip.uuid,blendMode:clip.blendMode};for(let i$1=0,n$2=clipTracks.length;i$1!==n$2;++i$1)tracks.push(KeyframeTrack.toJSON(clipTracks[i$1]));return json}static CreateFromMorphTargetSequence(name$2,morphTargetSequence,fps,noLoop){let numMorphTargets=morphTargetSequence.length,tracks=[];for(let i$1=0;i$11){let name$2=parts[1],animationMorphTargets=animationToMorphTargets[name$2];animationMorphTargets||(animationToMorphTargets[name$2]=animationMorphTargets=[]),animationMorphTargets.push(morphTarget)}}let clips=[];for(let name$2 in animationToMorphTargets)clips.push(this.CreateFromMorphTargetSequence(name$2,animationToMorphTargets[name$2],fps,noLoop));return clips}static parseAnimation(animation,bones){if(console.warn(`THREE.AnimationClip: parseAnimation() is deprecated and will be removed with r185`),!animation)return console.error(`THREE.AnimationClip: No animation in JSONLoader data.`),null;let addNonemptyTrack=function(trackType,trackName,animationKeys,propertyName,destTracks){if(animationKeys.length!==0){let times=[],values=[];flattenJSON(animationKeys,times,values,propertyName),times.length!==0&&destTracks.push(new trackType(trackName,times,values))}},tracks=[],clipName=animation.name||`default`,fps=animation.fps||30,blendMode=animation.blendMode,duration=animation.length||-1,hierarchyTracks=animation.hierarchy||[];for(let h$3=0;h$3{onLoad&&onLoad(cached),this.manager.itemEnd(url)},0),cached;if(loading[url]!==void 0){loading[url].push({onLoad,onProgress,onError});return}loading[url]=[],loading[url].push({onLoad,onProgress,onError});let req=new Request(url,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`}),mimeType=this.mimeType,responseType=this.responseType;fetch(req).then(response=>{if(response.status===200||response.status===0){if(response.status===0&&console.warn(`THREE.FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||response.body===void 0||response.body.getReader===void 0)return response;let callbacks=loading[url],reader=response.body.getReader(),contentLength=response.headers.get(`X-File-Size`)||response.headers.get(`Content-Length`),total=contentLength?parseInt(contentLength):0,lengthComputable=total!==0,loaded=0,stream=new ReadableStream({start(controller){readData();function readData(){reader.read().then(({done,value:value$1})=>{if(done)controller.close();else{loaded+=value$1.byteLength;let event=new ProgressEvent(`progress`,{lengthComputable,loaded,total});for(let i$1=0,il=callbacks.length;i$1{controller.error(e$3)})}}});return new Response(stream)}else throw new HttpError(`fetch for "${response.url}" responded with ${response.status}: ${response.statusText}`,response)}).then(response=>{switch(responseType){case`arraybuffer`:return response.arrayBuffer();case`blob`:return response.blob();case`document`:return response.text().then(text$5=>{let parser=new DOMParser;return parser.parseFromString(text$5,mimeType)});case`json`:return response.json();default:if(mimeType===``)return response.text();{let re$2=/charset="?([^;"\s]*)"?/i,exec=re$2.exec(mimeType),label=exec&&exec[1]?exec[1].toLowerCase():void 0,decoder=new TextDecoder(label);return response.arrayBuffer().then(ab=>decoder.decode(ab))}}}).then(data$10=>{Cache.add(`file:${url}`,data$10);let callbacks=loading[url];delete loading[url];for(let i$1=0,il=callbacks.length;i$1{let callbacks=loading[url];if(callbacks===void 0)throw this.manager.itemError(url),err;delete loading[url];for(let i$1=0,il=callbacks.length;i$1{this.manager.itemEnd(url)}),this.manager.itemStart(url)}setResponseType(value$1){return this.responseType=value$1,this}setMimeType(value$1){return this.mimeType=value$1,this}},AnimationLoader=class extends Loader{constructor(manager){super(manager)}load(url,onLoad,onProgress,onError){let scope=this,loader$1=new FileLoader(this.manager);loader$1.setPath(this.path),loader$1.setRequestHeader(this.requestHeader),loader$1.setWithCredentials(this.withCredentials),loader$1.load(url,function(text$5){try{onLoad(scope.parse(JSON.parse(text$5)))}catch(e$3){onError?onError(e$3):console.error(e$3),scope.manager.itemError(url)}},onProgress,onError)}parse(json){let animations$1=[];for(let i$1=0;i$10:material.vertexColors=json.vertexColors),json.uniforms!==void 0)for(let name$2 in json.uniforms){let uniform=json.uniforms[name$2];switch(material.uniforms[name$2]={},uniform.type){case`t`:material.uniforms[name$2].value=getTexture(uniform.value);break;case`c`:material.uniforms[name$2].value=new Color().setHex(uniform.value);break;case`v2`:material.uniforms[name$2].value=new Vector2().fromArray(uniform.value);break;case`v3`:material.uniforms[name$2].value=new Vector3().fromArray(uniform.value);break;case`v4`:material.uniforms[name$2].value=new Vector4().fromArray(uniform.value);break;case`m3`:material.uniforms[name$2].value=new Matrix3().fromArray(uniform.value);break;case`m4`:material.uniforms[name$2].value=new Matrix4().fromArray(uniform.value);break;default:material.uniforms[name$2].value=uniform.value}}if(json.defines!==void 0&&(material.defines=json.defines),json.vertexShader!==void 0&&(material.vertexShader=json.vertexShader),json.fragmentShader!==void 0&&(material.fragmentShader=json.fragmentShader),json.glslVersion!==void 0&&(material.glslVersion=json.glslVersion),json.extensions!==void 0)for(let key$1 in json.extensions)material.extensions[key$1]=json.extensions[key$1];if(json.lights!==void 0&&(material.lights=json.lights),json.clipping!==void 0&&(material.clipping=json.clipping),json.size!==void 0&&(material.size=json.size),json.sizeAttenuation!==void 0&&(material.sizeAttenuation=json.sizeAttenuation),json.map!==void 0&&(material.map=getTexture(json.map)),json.matcap!==void 0&&(material.matcap=getTexture(json.matcap)),json.alphaMap!==void 0&&(material.alphaMap=getTexture(json.alphaMap)),json.bumpMap!==void 0&&(material.bumpMap=getTexture(json.bumpMap)),json.bumpScale!==void 0&&(material.bumpScale=json.bumpScale),json.normalMap!==void 0&&(material.normalMap=getTexture(json.normalMap)),json.normalMapType!==void 0&&(material.normalMapType=json.normalMapType),json.normalScale!==void 0){let normalScale=json.normalScale;Array.isArray(normalScale)===!1&&(normalScale=[normalScale,normalScale]),material.normalScale=new Vector2().fromArray(normalScale)}return json.displacementMap!==void 0&&(material.displacementMap=getTexture(json.displacementMap)),json.displacementScale!==void 0&&(material.displacementScale=json.displacementScale),json.displacementBias!==void 0&&(material.displacementBias=json.displacementBias),json.roughnessMap!==void 0&&(material.roughnessMap=getTexture(json.roughnessMap)),json.metalnessMap!==void 0&&(material.metalnessMap=getTexture(json.metalnessMap)),json.emissiveMap!==void 0&&(material.emissiveMap=getTexture(json.emissiveMap)),json.emissiveIntensity!==void 0&&(material.emissiveIntensity=json.emissiveIntensity),json.specularMap!==void 0&&(material.specularMap=getTexture(json.specularMap)),json.specularIntensityMap!==void 0&&(material.specularIntensityMap=getTexture(json.specularIntensityMap)),json.specularColorMap!==void 0&&(material.specularColorMap=getTexture(json.specularColorMap)),json.envMap!==void 0&&(material.envMap=getTexture(json.envMap)),json.envMapRotation!==void 0&&material.envMapRotation.fromArray(json.envMapRotation),json.envMapIntensity!==void 0&&(material.envMapIntensity=json.envMapIntensity),json.reflectivity!==void 0&&(material.reflectivity=json.reflectivity),json.refractionRatio!==void 0&&(material.refractionRatio=json.refractionRatio),json.lightMap!==void 0&&(material.lightMap=getTexture(json.lightMap)),json.lightMapIntensity!==void 0&&(material.lightMapIntensity=json.lightMapIntensity),json.aoMap!==void 0&&(material.aoMap=getTexture(json.aoMap)),json.aoMapIntensity!==void 0&&(material.aoMapIntensity=json.aoMapIntensity),json.gradientMap!==void 0&&(material.gradientMap=getTexture(json.gradientMap)),json.clearcoatMap!==void 0&&(material.clearcoatMap=getTexture(json.clearcoatMap)),json.clearcoatRoughnessMap!==void 0&&(material.clearcoatRoughnessMap=getTexture(json.clearcoatRoughnessMap)),json.clearcoatNormalMap!==void 0&&(material.clearcoatNormalMap=getTexture(json.clearcoatNormalMap)),json.clearcoatNormalScale!==void 0&&(material.clearcoatNormalScale=new Vector2().fromArray(json.clearcoatNormalScale)),json.iridescenceMap!==void 0&&(material.iridescenceMap=getTexture(json.iridescenceMap)),json.iridescenceThicknessMap!==void 0&&(material.iridescenceThicknessMap=getTexture(json.iridescenceThicknessMap)),json.transmissionMap!==void 0&&(material.transmissionMap=getTexture(json.transmissionMap)),json.thicknessMap!==void 0&&(material.thicknessMap=getTexture(json.thicknessMap)),json.anisotropyMap!==void 0&&(material.anisotropyMap=getTexture(json.anisotropyMap)),json.sheenColorMap!==void 0&&(material.sheenColorMap=getTexture(json.sheenColorMap)),json.sheenRoughnessMap!==void 0&&(material.sheenRoughnessMap=getTexture(json.sheenRoughnessMap)),material}setTextures(value$1){return this.textures=value$1,this}createMaterialFromType(type){return MaterialLoader.createMaterialFromType(type)}static createMaterialFromType(type){let materialLib={ShadowMaterial,SpriteMaterial,RawShaderMaterial,ShaderMaterial,PointsMaterial,MeshPhysicalMaterial,MeshStandardMaterial,MeshPhongMaterial,MeshToonMaterial,MeshNormalMaterial,MeshLambertMaterial,MeshDepthMaterial,MeshDistanceMaterial,MeshBasicMaterial,MeshMatcapMaterial,LineDashedMaterial,LineBasicMaterial,Material};return new materialLib[type]}},LoaderUtils=class{static extractUrlBase(url){let index$1=url.lastIndexOf(`/`);return index$1===-1?`./`:url.slice(0,index$1+1)}static resolveURL(url,path){return typeof url!=`string`||url===``?``:(/^https?:\/\//i.test(path)&&/^\//.test(url)&&(path=path.replace(/(^https?:\/\/[^\/]+).*/i,`$1`)),/^(https?:)?\/\//i.test(url)||/^data:.*,.*$/i.test(url)||/^blob:.*$/i.test(url)?url:path+url)}},InstancedBufferGeometry=class extends BufferGeometry{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type=`InstancedBufferGeometry`,this.instanceCount=1/0}copy(source){return super.copy(source),this.instanceCount=source.instanceCount,this}toJSON(){let data$10=super.toJSON();return data$10.instanceCount=this.instanceCount,data$10.isInstancedBufferGeometry=!0,data$10}},BufferGeometryLoader=class extends Loader{constructor(manager){super(manager)}load(url,onLoad,onProgress,onError){let scope=this,loader$1=new FileLoader(scope.manager);loader$1.setPath(scope.path),loader$1.setRequestHeader(scope.requestHeader),loader$1.setWithCredentials(scope.withCredentials),loader$1.load(url,function(text$5){try{onLoad(scope.parse(JSON.parse(text$5)))}catch(e$3){onError?onError(e$3):console.error(e$3),scope.manager.itemError(url)}},onProgress,onError)}parse(json){let interleavedBufferMap={},arrayBufferMap={};function getInterleavedBuffer(json$1,uuid){if(interleavedBufferMap[uuid]!==void 0)return interleavedBufferMap[uuid];let interleavedBuffers=json$1.interleavedBuffers,interleavedBuffer=interleavedBuffers[uuid],buffer$1=getArrayBuffer(json$1,interleavedBuffer.buffer),array=getTypedArray(interleavedBuffer.type,buffer$1),ib=new InterleavedBuffer(array,interleavedBuffer.stride);return ib.uuid=interleavedBuffer.uuid,interleavedBufferMap[uuid]=ib,ib}function getArrayBuffer(json$1,uuid){if(arrayBufferMap[uuid]!==void 0)return arrayBufferMap[uuid];let arrayBuffers=json$1.arrayBuffers,arrayBuffer=arrayBuffers[uuid],ab=new Uint32Array(arrayBuffer).buffer;return arrayBufferMap[uuid]=ab,ab}let geometry=json.isInstancedBufferGeometry?new InstancedBufferGeometry:new BufferGeometry,index$1=json.data.index;if(index$1!==void 0){let typedArray=getTypedArray(index$1.type,index$1.array);geometry.setIndex(new BufferAttribute(typedArray,1))}let attributes=json.data.attributes;for(let key$1 in attributes){let attribute=attributes[key$1],bufferAttribute;if(attribute.isInterleavedBufferAttribute){let interleavedBuffer=getInterleavedBuffer(json.data,attribute.data);bufferAttribute=new InterleavedBufferAttribute(interleavedBuffer,attribute.itemSize,attribute.offset,attribute.normalized)}else{let typedArray=getTypedArray(attribute.type,attribute.array),bufferAttributeConstr=attribute.isInstancedBufferAttribute?InstancedBufferAttribute:BufferAttribute;bufferAttribute=new bufferAttributeConstr(typedArray,attribute.itemSize,attribute.normalized)}attribute.name!==void 0&&(bufferAttribute.name=attribute.name),attribute.usage!==void 0&&bufferAttribute.setUsage(attribute.usage),geometry.setAttribute(key$1,bufferAttribute)}let morphAttributes=json.data.morphAttributes;if(morphAttributes)for(let key$1 in morphAttributes){let attributeArray=morphAttributes[key$1],array=[];for(let i$1=0,il=attributeArray.length;i$10){let manager=new LoadingManager(onLoad);loader$1=new ImageLoader(manager),loader$1.setCrossOrigin(this.crossOrigin);for(let i$1=0,il=json.length;i$10){loader$1=new ImageLoader(this.manager),loader$1.setCrossOrigin(this.crossOrigin);for(let i$1=0,il=json.length;i$1{let box=null,sphere=null;return info.boundingBox!==void 0&&(box=new Box3().fromJSON(info.boundingBox)),info.boundingSphere!==void 0&&(sphere=new Sphere().fromJSON(info.boundingSphere)),{...info,boundingBox:box,boundingSphere:sphere}}),object._instanceInfo=data$10.instanceInfo,object._availableInstanceIds=data$10._availableInstanceIds,object._availableGeometryIds=data$10._availableGeometryIds,object._nextIndexStart=data$10.nextIndexStart,object._nextVertexStart=data$10.nextVertexStart,object._geometryCount=data$10.geometryCount,object._maxInstanceCount=data$10.maxInstanceCount,object._maxVertexCount=data$10.maxVertexCount,object._maxIndexCount=data$10.maxIndexCount,object._geometryInitialized=data$10.geometryInitialized,object._matricesTexture=getTexture(data$10.matricesTexture.uuid),object._indirectTexture=getTexture(data$10.indirectTexture.uuid),data$10.colorsTexture!==void 0&&(object._colorsTexture=getTexture(data$10.colorsTexture.uuid)),data$10.boundingSphere!==void 0&&(object.boundingSphere=new Sphere().fromJSON(data$10.boundingSphere)),data$10.boundingBox!==void 0&&(object.boundingBox=new Box3().fromJSON(data$10.boundingBox));break;case`LOD`:object=new LOD;break;case`Line`:object=new Line(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`LineLoop`:object=new LineLoop(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`LineSegments`:object=new LineSegments(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`PointCloud`:case`Points`:object=new Points(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`Sprite`:object=new Sprite(getMaterial(data$10.material));break;case`Group`:object=new Group;break;case`Bone`:object=new Bone;break;default:object=new Object3D}if(object.uuid=data$10.uuid,data$10.name!==void 0&&(object.name=data$10.name),data$10.matrix===void 0?(data$10.position!==void 0&&object.position.fromArray(data$10.position),data$10.rotation!==void 0&&object.rotation.fromArray(data$10.rotation),data$10.quaternion!==void 0&&object.quaternion.fromArray(data$10.quaternion),data$10.scale!==void 0&&object.scale.fromArray(data$10.scale)):(object.matrix.fromArray(data$10.matrix),data$10.matrixAutoUpdate!==void 0&&(object.matrixAutoUpdate=data$10.matrixAutoUpdate),object.matrixAutoUpdate&&object.matrix.decompose(object.position,object.quaternion,object.scale)),data$10.up!==void 0&&object.up.fromArray(data$10.up),data$10.castShadow!==void 0&&(object.castShadow=data$10.castShadow),data$10.receiveShadow!==void 0&&(object.receiveShadow=data$10.receiveShadow),data$10.shadow&&(data$10.shadow.intensity!==void 0&&(object.shadow.intensity=data$10.shadow.intensity),data$10.shadow.bias!==void 0&&(object.shadow.bias=data$10.shadow.bias),data$10.shadow.normalBias!==void 0&&(object.shadow.normalBias=data$10.shadow.normalBias),data$10.shadow.radius!==void 0&&(object.shadow.radius=data$10.shadow.radius),data$10.shadow.mapSize!==void 0&&object.shadow.mapSize.fromArray(data$10.shadow.mapSize),data$10.shadow.camera!==void 0&&(object.shadow.camera=this.parseObject(data$10.shadow.camera))),data$10.visible!==void 0&&(object.visible=data$10.visible),data$10.frustumCulled!==void 0&&(object.frustumCulled=data$10.frustumCulled),data$10.renderOrder!==void 0&&(object.renderOrder=data$10.renderOrder),data$10.userData!==void 0&&(object.userData=data$10.userData),data$10.layers!==void 0&&(object.layers.mask=data$10.layers),data$10.children!==void 0){let children=data$10.children;for(let i$1=0;i$1`u`&&console.warn(`THREE.ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&console.warn(`THREE.ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`}}setOptions(options$1){return this.options=options$1,this}load(url,onLoad,onProgress,onError){url===void 0&&(url=``),this.path!==void 0&&(url=this.path+url),url=this.manager.resolveURL(url);let scope=this,cached=Cache.get(`image-bitmap:${url}`);if(cached!==void 0){if(scope.manager.itemStart(url),cached.then){cached.then(imageBitmap=>{if(_errorMap.has(cached)===!0)onError&&onError(_errorMap.get(cached)),scope.manager.itemError(url),scope.manager.itemEnd(url);else return onLoad&&onLoad(imageBitmap),scope.manager.itemEnd(url),imageBitmap});return}return setTimeout(function(){onLoad&&onLoad(cached),scope.manager.itemEnd(url)},0),cached}let fetchOptions={};fetchOptions.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,fetchOptions.headers=this.requestHeader;let promise=fetch(url,fetchOptions).then(function(res){return res.blob()}).then(function(blob){return createImageBitmap(blob,Object.assign(scope.options,{colorSpaceConversion:`none`}))}).then(function(imageBitmap){return Cache.add(`image-bitmap:${url}`,imageBitmap),onLoad&&onLoad(imageBitmap),scope.manager.itemEnd(url),imageBitmap}).catch(function(e$3){onError&&onError(e$3),_errorMap.set(promise,e$3),Cache.remove(`image-bitmap:${url}`),scope.manager.itemError(url),scope.manager.itemEnd(url)});Cache.add(`image-bitmap:${url}`,promise),scope.manager.itemStart(url)}};let _context;var AudioContext$1=class{static getContext(){return _context===void 0&&(_context=new(window.AudioContext||window.webkitAudioContext)),_context}static setContext(value$1){_context=value$1}},AudioLoader=class extends Loader{constructor(manager){super(manager)}load(url,onLoad,onProgress,onError){let scope=this,loader$1=new FileLoader(this.manager);loader$1.setResponseType(`arraybuffer`),loader$1.setPath(this.path),loader$1.setRequestHeader(this.requestHeader),loader$1.setWithCredentials(this.withCredentials),loader$1.load(url,function(buffer$1){try{let bufferCopy=buffer$1.slice(0),context$1=AudioContext$1.getContext();context$1.decodeAudioData(bufferCopy,function(audioBuffer){onLoad(audioBuffer)}).catch(handleError$1)}catch(e$3){handleError$1(e$3)}},onProgress,onError);function handleError$1(e$3){onError?onError(e$3):console.error(e$3),scope.manager.itemError(url)}}};const _eyeRight=new Matrix4,_eyeLeft=new Matrix4,_projectionMatrix=new Matrix4;var StereoCamera=class{constructor(){this.type=`StereoCamera`,this.aspect=1,this.eyeSep=.064,this.cameraL=new PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new PerspectiveCamera,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(camera){let cache$1=this._cache,needsUpdate=cache$1.focus!==camera.focus||cache$1.fov!==camera.fov||cache$1.aspect!==camera.aspect*this.aspect||cache$1.near!==camera.near||cache$1.far!==camera.far||cache$1.zoom!==camera.zoom||cache$1.eyeSep!==this.eyeSep;if(needsUpdate){cache$1.focus=camera.focus,cache$1.fov=camera.fov,cache$1.aspect=camera.aspect*this.aspect,cache$1.near=camera.near,cache$1.far=camera.far,cache$1.zoom=camera.zoom,cache$1.eyeSep=this.eyeSep,_projectionMatrix.copy(camera.projectionMatrix);let eyeSepHalf=cache$1.eyeSep/2,eyeSepOnProjection=eyeSepHalf*cache$1.near/cache$1.focus,ymax=cache$1.near*Math.tan(DEG2RAD$1*cache$1.fov*.5)/cache$1.zoom,xmin,xmax;_eyeLeft.elements[12]=-eyeSepHalf,_eyeRight.elements[12]=eyeSepHalf,xmin=-ymax*cache$1.aspect+eyeSepOnProjection,xmax=ymax*cache$1.aspect+eyeSepOnProjection,_projectionMatrix.elements[0]=2*cache$1.near/(xmax-xmin),_projectionMatrix.elements[8]=(xmax+xmin)/(xmax-xmin),this.cameraL.projectionMatrix.copy(_projectionMatrix),xmin=-ymax*cache$1.aspect-eyeSepOnProjection,xmax=ymax*cache$1.aspect-eyeSepOnProjection,_projectionMatrix.elements[0]=2*cache$1.near/(xmax-xmin),_projectionMatrix.elements[8]=(xmax+xmin)/(xmax-xmin),this.cameraR.projectionMatrix.copy(_projectionMatrix)}this.cameraL.matrixWorld.copy(camera.matrixWorld).multiply(_eyeLeft),this.cameraR.matrixWorld.copy(camera.matrixWorld).multiply(_eyeRight)}},ArrayCamera=class extends PerspectiveCamera{constructor(array=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=array}},Clock=class{constructor(autoStart=!0){this.autoStart=autoStart,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 diff=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){let newTime=performance.now();diff=(newTime-this.oldTime)/1e3,this.oldTime=newTime,this.elapsedTime+=diff}return diff}};const _position$1$1=new Vector3,_quaternion$1=new Quaternion,_scale$1$1=new Vector3,_forward=new Vector3,_up=new Vector3;var AudioListener=class extends Object3D{constructor(){super(),this.type=`AudioListener`,this.context=AudioContext$1.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Clock}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(value$1){return this.filter===null?this.gain.disconnect(this.context.destination):(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)),this.filter=value$1,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(value$1){return this.gain.gain.setTargetAtTime(value$1,this.context.currentTime,.01),this}updateMatrixWorld(force){super.updateMatrixWorld(force);let listener=this.context.listener;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(_position$1$1,_quaternion$1,_scale$1$1),_forward.set(0,0,-1).applyQuaternion(_quaternion$1),_up.set(0,1,0).applyQuaternion(_quaternion$1),listener.positionX){let endTime=this.context.currentTime+this.timeDelta;listener.positionX.linearRampToValueAtTime(_position$1$1.x,endTime),listener.positionY.linearRampToValueAtTime(_position$1$1.y,endTime),listener.positionZ.linearRampToValueAtTime(_position$1$1.z,endTime),listener.forwardX.linearRampToValueAtTime(_forward.x,endTime),listener.forwardY.linearRampToValueAtTime(_forward.y,endTime),listener.forwardZ.linearRampToValueAtTime(_forward.z,endTime),listener.upX.linearRampToValueAtTime(_up.x,endTime),listener.upY.linearRampToValueAtTime(_up.y,endTime),listener.upZ.linearRampToValueAtTime(_up.z,endTime)}else listener.setPosition(_position$1$1.x,_position$1$1.y,_position$1$1.z),listener.setOrientation(_forward.x,_forward.y,_forward.z,_up.x,_up.y,_up.z)}},Audio$1=class extends Object3D{constructor(listener){super(),this.type=`Audio`,this.listener=listener,this.context=listener.context,this.gain=this.context.createGain(),this.gain.connect(listener.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(audioNode){return this.hasPlaybackControl=!1,this.sourceType=`audioNode`,this.source=audioNode,this.connect(),this}setMediaElementSource(mediaElement){return this.hasPlaybackControl=!1,this.sourceType=`mediaNode`,this.source=this.context.createMediaElementSource(mediaElement),this.connect(),this}setMediaStreamSource(mediaStream){return this.hasPlaybackControl=!1,this.sourceType=`mediaStreamNode`,this.source=this.context.createMediaStreamSource(mediaStream),this.connect(),this}setBuffer(audioBuffer){return this.buffer=audioBuffer,this.sourceType=`buffer`,this.autoplay&&this.play(),this}play(delay=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+delay;let source=this.context.createBufferSource();return source.buffer=this.buffer,source.loop=this.loop,source.loopStart=this.loopStart,source.loopEnd=this.loopEnd,source.onended=this.onEnded.bind(this),source.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=source,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(delay=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+delay),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let i$1=1,l$1=this.filters.length;i$10){this.source.disconnect(this.filters[0]);for(let i$1=1,l$1=this.filters.length;i$10&&this._mixBufferRegionAdditive(buffer$1,offset$1,this._addIndex*stride,1,stride);for(let i$1=stride,e$3=stride+stride;i$1!==e$3;++i$1)if(buffer$1[i$1]!==buffer$1[i$1+stride]){binding.setValue(buffer$1,offset$1);break}}saveOriginalState(){let binding=this.binding,buffer$1=this.buffer,stride=this.valueSize,originalValueOffset=stride*this._origIndex;binding.getValue(buffer$1,originalValueOffset);for(let i$1=stride,e$3=originalValueOffset;i$1!==e$3;++i$1)buffer$1[i$1]=buffer$1[originalValueOffset+i$1%stride];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){let originalValueOffset=this.valueSize*3;this.binding.setValue(this.buffer,originalValueOffset)}_setAdditiveIdentityNumeric(){let startIndex=this._addIndex*this.valueSize,endIndex=startIndex+this.valueSize;for(let i$1=startIndex;i$1=.5)for(let i$1=0;i$1!==stride;++i$1)buffer$1[dstOffset+i$1]=buffer$1[srcOffset+i$1]}_slerp(buffer$1,dstOffset,srcOffset,t){Quaternion.slerpFlat(buffer$1,dstOffset,buffer$1,dstOffset,buffer$1,srcOffset,t)}_slerpAdditive(buffer$1,dstOffset,srcOffset,t,stride){let workOffset=this._workIndex*stride;Quaternion.multiplyQuaternionsFlat(buffer$1,workOffset,buffer$1,dstOffset,buffer$1,srcOffset),Quaternion.slerpFlat(buffer$1,dstOffset,buffer$1,dstOffset,buffer$1,workOffset,t)}_lerp(buffer$1,dstOffset,srcOffset,t,stride){let s$1=1-t;for(let i$1=0;i$1!==stride;++i$1){let j$1=dstOffset+i$1;buffer$1[j$1]=buffer$1[j$1]*s$1+buffer$1[srcOffset+i$1]*t}}_lerpAdditive(buffer$1,dstOffset,srcOffset,t,stride){for(let i$1=0;i$1!==stride;++i$1){let j$1=dstOffset+i$1;buffer$1[j$1]=buffer$1[j$1]+buffer$1[srcOffset+i$1]*t}}};const _RESERVED_CHARS_RE=`\\[\\]\\.:\\/`,_reservedRe=RegExp(`[`+_RESERVED_CHARS_RE+`]`,`g`),_wordChar=`[^`+_RESERVED_CHARS_RE+`]`,_wordCharOrDot=`[^`+_RESERVED_CHARS_RE.replace(`\\.`,``)+`]`,_directoryRe=/((?:WC+[\/:])*)/.source.replace(`WC`,_wordChar),_nodeRe=/(WCOD+)?/.source.replace(`WCOD`,_wordCharOrDot),_objectRe=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace(`WC`,_wordChar),_propertyRe=/\.(WC+)(?:\[(.+)\])?/.source.replace(`WC`,_wordChar),_trackRe=RegExp(`^`+_directoryRe+_nodeRe+_objectRe+_propertyRe+`$`),_supportedObjectNames=[`material`,`materials`,`bones`,`map`];var Composite=class{constructor(targetGroup,path,optionalParsedPath){let parsedPath=optionalParsedPath||PropertyBinding.parseTrackName(path);this._targetGroup=targetGroup,this._bindings=targetGroup.subscribe_(path,parsedPath)}getValue(array,offset$1){this.bind();let firstValidIndex=this._targetGroup.nCachedObjects_,binding=this._bindings[firstValidIndex];binding!==void 0&&binding.getValue(array,offset$1)}setValue(array,offset$1){let bindings=this._bindings;for(let i$1=this._targetGroup.nCachedObjects_,n$2=bindings.length;i$1!==n$2;++i$1)bindings[i$1].setValue(array,offset$1)}bind(){let bindings=this._bindings;for(let i$1=this._targetGroup.nCachedObjects_,n$2=bindings.length;i$1!==n$2;++i$1)bindings[i$1].bind()}unbind(){let bindings=this._bindings;for(let i$1=this._targetGroup.nCachedObjects_,n$2=bindings.length;i$1!==n$2;++i$1)bindings[i$1].unbind()}},PropertyBinding=class PropertyBinding{constructor(rootNode,path,parsedPath){this.path=path,this.parsedPath=parsedPath||PropertyBinding.parseTrackName(path),this.node=PropertyBinding.findNode(rootNode,this.parsedPath.nodeName),this.rootNode=rootNode,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(root$3,path,parsedPath){return root$3&&root$3.isAnimationObjectGroup?new PropertyBinding.Composite(root$3,path,parsedPath):new PropertyBinding(root$3,path,parsedPath)}static sanitizeNodeName(name$2){return name$2.replace(/\s/g,`_`).replace(_reservedRe,``)}static parseTrackName(trackName){let matches$1=_trackRe.exec(trackName);if(matches$1===null)throw Error(`PropertyBinding: Cannot parse trackName: `+trackName);let results={nodeName:matches$1[2],objectName:matches$1[3],objectIndex:matches$1[4],propertyName:matches$1[5],propertyIndex:matches$1[6]},lastDot=results.nodeName&&results.nodeName.lastIndexOf(`.`);if(lastDot!==void 0&&lastDot!==-1){let objectName=results.nodeName.substring(lastDot+1);_supportedObjectNames.indexOf(objectName)!==-1&&(results.nodeName=results.nodeName.substring(0,lastDot),results.objectName=objectName)}if(results.propertyName===null||results.propertyName.length===0)throw Error(`PropertyBinding: can not parse propertyName from trackName: `+trackName);return results}static findNode(root$3,nodeName){if(nodeName===void 0||nodeName===``||nodeName===`.`||nodeName===-1||nodeName===root$3.name||nodeName===root$3.uuid)return root$3;if(root$3.skeleton){let bone=root$3.skeleton.getBoneByName(nodeName);if(bone!==void 0)return bone}if(root$3.children){let searchNodeSubtree=function(children){for(let i$1=0;i$1=nCachedObjects){let lastCachedIndex=nCachedObjects++,firstActiveObject=objects[lastCachedIndex];indicesByUUID[firstActiveObject.uuid]=index$1,objects[index$1]=firstActiveObject,indicesByUUID[uuid]=lastCachedIndex,objects[lastCachedIndex]=object;for(let j$1=0,m$2=nBindings;j$1!==m$2;++j$1){let bindingsForPath=bindings[j$1],firstActive=bindingsForPath[lastCachedIndex],binding=bindingsForPath[index$1];bindingsForPath[index$1]=firstActive,bindingsForPath[lastCachedIndex]=binding}}}this.nCachedObjects_=nCachedObjects}uncache(){let objects=this._objects,indicesByUUID=this._indicesByUUID,bindings=this._bindings,nBindings=bindings.length,nCachedObjects=this.nCachedObjects_,nObjects=objects.length;for(let i$1=0,n$2=arguments.length;i$1!==n$2;++i$1){let object=arguments[i$1],uuid=object.uuid,index$1=indicesByUUID[uuid];if(index$1!==void 0)if(delete indicesByUUID[uuid],index$10&&(indicesByUUID[lastObject.uuid]=index$1),objects[index$1]=lastObject,objects.pop();for(let j$1=0,m$2=nBindings;j$1!==m$2;++j$1){let bindingsForPath=bindings[j$1];bindingsForPath[index$1]=bindingsForPath[lastIndex],bindingsForPath.pop()}}}this.nCachedObjects_=nCachedObjects}subscribe_(path,parsedPath){let indicesByPath=this._bindingsIndicesByPath,index$1=indicesByPath[path],bindings=this._bindings;if(index$1!==void 0)return bindings[index$1];let paths=this._paths,parsedPaths=this._parsedPaths,objects=this._objects,nObjects=objects.length,nCachedObjects=this.nCachedObjects_,bindingsForPath=Array(nObjects);index$1=bindings.length,indicesByPath[path]=index$1,paths.push(path),parsedPaths.push(parsedPath),bindings.push(bindingsForPath);for(let i$1=nCachedObjects,n$2=objects.length;i$1!==n$2;++i$1){let object=objects[i$1];bindingsForPath[i$1]=new PropertyBinding(object,path,parsedPath)}return bindingsForPath}unsubscribe_(path){let indicesByPath=this._bindingsIndicesByPath,index$1=indicesByPath[path];if(index$1!==void 0){let paths=this._paths,parsedPaths=this._parsedPaths,bindings=this._bindings,lastBindingsIndex=bindings.length-1,lastBindings=bindings[lastBindingsIndex],lastBindingsPath=path[lastBindingsIndex];indicesByPath[lastBindingsPath]=index$1,bindings[index$1]=lastBindings,bindings.pop(),parsedPaths[index$1]=parsedPaths[lastBindingsIndex],parsedPaths.pop(),paths[index$1]=paths[lastBindingsIndex],paths.pop()}}},AnimationAction=class{constructor(mixer,clip,localRoot=null,blendMode=clip.blendMode){this._mixer=mixer,this._clip=clip,this._localRoot=localRoot,this.blendMode=blendMode;let tracks=clip.tracks,nTracks=tracks.length,interpolants=Array(nTracks),interpolantSettings={endingStart:ZeroCurvatureEnding,endingEnd:ZeroCurvatureEnding};for(let i$1=0;i$1!==nTracks;++i$1){let interpolant=tracks[i$1].createInterpolant(null);interpolants[i$1]=interpolant,interpolant.settings=interpolantSettings}this._interpolantSettings=interpolantSettings,this._interpolants=interpolants,this._propertyBindings=Array(nTracks),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=LoopRepeat,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(time){return this._startTime=time,this}setLoop(mode,repetitions){return this.loop=mode,this.repetitions=repetitions,this}setEffectiveWeight(weight){return this.weight=weight,this._effectiveWeight=this.enabled?weight:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(duration){return this._scheduleFading(duration,0,1)}fadeOut(duration){return this._scheduleFading(duration,1,0)}crossFadeFrom(fadeOutAction,duration,warp=!1){if(fadeOutAction.fadeOut(duration),this.fadeIn(duration),warp===!0){let fadeInDuration=this._clip.duration,fadeOutDuration=fadeOutAction._clip.duration,startEndRatio=fadeOutDuration/fadeInDuration,endStartRatio=fadeInDuration/fadeOutDuration;fadeOutAction.warp(1,startEndRatio,duration),this.warp(endStartRatio,1,duration)}return this}crossFadeTo(fadeInAction,duration,warp=!1){return fadeInAction.crossFadeFrom(this,duration,warp)}stopFading(){let weightInterpolant=this._weightInterpolant;return weightInterpolant!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(weightInterpolant)),this}setEffectiveTimeScale(timeScale){return this.timeScale=timeScale,this._effectiveTimeScale=this.paused?0:timeScale,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(duration){return this.timeScale=this._clip.duration/duration,this.stopWarping()}syncWith(action){return this.time=action.time,this.timeScale=action.timeScale,this.stopWarping()}halt(duration){return this.warp(this._effectiveTimeScale,0,duration)}warp(startTimeScale,endTimeScale,duration){let mixer=this._mixer,now=mixer.time,timeScale=this.timeScale,interpolant=this._timeScaleInterpolant;interpolant===null&&(interpolant=mixer._lendControlInterpolant(),this._timeScaleInterpolant=interpolant);let times=interpolant.parameterPositions,values=interpolant.sampleValues;return times[0]=now,times[1]=now+duration,values[0]=startTimeScale/timeScale,values[1]=endTimeScale/timeScale,this}stopWarping(){let timeScaleInterpolant=this._timeScaleInterpolant;return timeScaleInterpolant!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(timeScaleInterpolant)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(time,deltaTime,timeDirection,accuIndex){if(!this.enabled){this._updateWeight(time);return}let startTime=this._startTime;if(startTime!==null){let timeRunning=(time-startTime)*timeDirection;timeRunning<0||timeDirection===0?deltaTime=0:(this._startTime=null,deltaTime=timeDirection*timeRunning)}deltaTime*=this._updateTimeScale(time);let clipTime=this._updateTime(deltaTime),weight=this._updateWeight(time);if(weight>0){let interpolants=this._interpolants,propertyMixers=this._propertyBindings;switch(this.blendMode){case AdditiveAnimationBlendMode:for(let j$1=0,m$2=interpolants.length;j$1!==m$2;++j$1)interpolants[j$1].evaluate(clipTime),propertyMixers[j$1].accumulateAdditive(weight);break;case NormalAnimationBlendMode:default:for(let j$1=0,m$2=interpolants.length;j$1!==m$2;++j$1)interpolants[j$1].evaluate(clipTime),propertyMixers[j$1].accumulate(accuIndex,weight)}}}_updateWeight(time){let weight=0;if(this.enabled){weight=this.weight;let interpolant=this._weightInterpolant;if(interpolant!==null){let interpolantValue=interpolant.evaluate(time)[0];weight*=interpolantValue,time>interpolant.parameterPositions[1]&&(this.stopFading(),interpolantValue===0&&(this.enabled=!1))}}return this._effectiveWeight=weight,weight}_updateTimeScale(time){let timeScale=0;if(!this.paused){timeScale=this.timeScale;let interpolant=this._timeScaleInterpolant;if(interpolant!==null){let interpolantValue=interpolant.evaluate(time)[0];timeScale*=interpolantValue,time>interpolant.parameterPositions[1]&&(this.stopWarping(),timeScale===0?this.paused=!0:this.timeScale=timeScale)}}return this._effectiveTimeScale=timeScale,timeScale}_updateTime(deltaTime){let duration=this._clip.duration,loop=this.loop,time=this.time+deltaTime,loopCount=this._loopCount,pingPong=loop===LoopPingPong;if(deltaTime===0)return loopCount===-1?time:pingPong&&(loopCount&1)==1?duration-time:time;if(loop===LoopOnce){loopCount===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));handle_stop:{if(time>=duration)time=duration;else if(time<0)time=0;else{this.time=time;break handle_stop}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=time,this._mixer.dispatchEvent({type:`finished`,action:this,direction:deltaTime<0?-1:1})}}else{if(loopCount===-1&&(deltaTime>=0?(loopCount=0,this._setEndings(!0,this.repetitions===0,pingPong)):this._setEndings(this.repetitions===0,!0,pingPong)),time>=duration||time<0){let loopDelta=Math.floor(time/duration);time-=duration*loopDelta,loopCount+=Math.abs(loopDelta);let pending=this.repetitions-loopCount;if(pending<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,time=deltaTime>0?duration:0,this.time=time,this._mixer.dispatchEvent({type:`finished`,action:this,direction:deltaTime>0?1:-1});else{if(pending===1){let atStart=deltaTime<0;this._setEndings(atStart,!atStart,pingPong)}else this._setEndings(!1,!1,pingPong);this._loopCount=loopCount,this.time=time,this._mixer.dispatchEvent({type:`loop`,action:this,loopDelta})}}else this.time=time;if(pingPong&&(loopCount&1)==1)return duration-time}return time}_setEndings(atStart,atEnd,pingPong){let settings=this._interpolantSettings;pingPong?(settings.endingStart=ZeroSlopeEnding,settings.endingEnd=ZeroSlopeEnding):(atStart?settings.endingStart=this.zeroSlopeAtStart?ZeroSlopeEnding:ZeroCurvatureEnding:settings.endingStart=WrapAroundEnding,atEnd?settings.endingEnd=this.zeroSlopeAtEnd?ZeroSlopeEnding:ZeroCurvatureEnding:settings.endingEnd=WrapAroundEnding)}_scheduleFading(duration,weightNow,weightThen){let mixer=this._mixer,now=mixer.time,interpolant=this._weightInterpolant;interpolant===null&&(interpolant=mixer._lendControlInterpolant(),this._weightInterpolant=interpolant);let times=interpolant.parameterPositions,values=interpolant.sampleValues;return times[0]=now,values[0]=weightNow,times[1]=now+duration,values[1]=weightThen,this}};const _controlInterpolantsResultBuffer=new Float32Array(1);var AnimationMixer=class extends EventDispatcher{constructor(root$3){super(),this._root=root$3,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(action,prototypeAction){let root$3=action._localRoot||this._root,tracks=action._clip.tracks,nTracks=tracks.length,bindings=action._propertyBindings,interpolants=action._interpolants,rootUuid=root$3.uuid,bindingsByRoot=this._bindingsByRootAndName,bindingsByName=bindingsByRoot[rootUuid];bindingsByName===void 0&&(bindingsByName={},bindingsByRoot[rootUuid]=bindingsByName);for(let i$1=0;i$1!==nTracks;++i$1){let track$1=tracks[i$1],trackName=track$1.name,binding=bindingsByName[trackName];if(binding!==void 0)++binding.referenceCount,bindings[i$1]=binding;else{if(binding=bindings[i$1],binding!==void 0){binding._cacheIndex===null&&(++binding.referenceCount,this._addInactiveBinding(binding,rootUuid,trackName));continue}let path=prototypeAction&&prototypeAction._propertyBindings[i$1].binding.parsedPath;binding=new PropertyMixer(PropertyBinding.create(root$3,trackName,path),track$1.ValueTypeName,track$1.getValueSize()),++binding.referenceCount,this._addInactiveBinding(binding,rootUuid,trackName),bindings[i$1]=binding}interpolants[i$1].resultBuffer=binding.buffer}}_activateAction(action){if(!this._isActiveAction(action)){if(action._cacheIndex===null){let rootUuid=(action._localRoot||this._root).uuid,clipUuid=action._clip.uuid,actionsForClip=this._actionsByClip[clipUuid];this._bindAction(action,actionsForClip&&actionsForClip.knownActions[0]),this._addInactiveAction(action,clipUuid,rootUuid)}let bindings=action._propertyBindings;for(let i$1=0,n$2=bindings.length;i$1!==n$2;++i$1){let binding=bindings[i$1];binding.useCount++===0&&(this._lendBinding(binding),binding.saveOriginalState())}this._lendAction(action)}}_deactivateAction(action){if(this._isActiveAction(action)){let bindings=action._propertyBindings;for(let i$1=0,n$2=bindings.length;i$1!==n$2;++i$1){let binding=bindings[i$1];--binding.useCount===0&&(binding.restoreOriginalState(),this._takeBackBinding(binding))}this._takeBackAction(action)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;let scope=this;this.stats={actions:{get total(){return scope._actions.length},get inUse(){return scope._nActiveActions}},bindings:{get total(){return scope._bindings.length},get inUse(){return scope._nActiveBindings}},controlInterpolants:{get total(){return scope._controlInterpolants.length},get inUse(){return scope._nActiveControlInterpolants}}}}_isActiveAction(action){let index$1=action._cacheIndex;return index$1!==null&&index$1=0;--i$1)actions[i$1].stop();return this}update(deltaTime){deltaTime*=this.timeScale;let actions=this._actions,nActions=this._nActiveActions,time=this.time+=deltaTime,timeDirection=Math.sign(deltaTime),accuIndex=this._accuIndex^=1;for(let i$1=0;i$1!==nActions;++i$1){let action=actions[i$1];action._update(time,deltaTime,timeDirection,accuIndex)}let bindings=this._bindings,nBindings=this._nActiveBindings;for(let i$1=0;i$1!==nBindings;++i$1)bindings[i$1].apply(accuIndex);return this}setTime(time){this.time=0;for(let i$1=0;i$1=this.min.x&&point$3.x<=this.max.x&&point$3.y>=this.min.y&&point$3.y<=this.max.y}containsBox(box){return this.min.x<=box.min.x&&box.max.x<=this.max.x&&this.min.y<=box.min.y&&box.max.y<=this.max.y}getParameter(point$3,target$1){return target$1.set((point$3.x-this.min.x)/(this.max.x-this.min.x),(point$3.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(box){return box.max.x>=this.min.x&&box.min.x<=this.max.x&&box.max.y>=this.min.y&&box.min.y<=this.max.y}clampPoint(point$3,target$1){return target$1.copy(point$3).clamp(this.min,this.max)}distanceToPoint(point$3){return this.clampPoint(point$3,_vector$4).distanceTo(point$3)}intersect(box){return this.min.max(box.min),this.max.min(box.max),this.isEmpty()&&this.makeEmpty(),this}union(box){return this.min.min(box.min),this.max.max(box.max),this}translate(offset$1){return this.min.add(offset$1),this.max.add(offset$1),this}equals(box){return box.min.equals(this.min)&&box.max.equals(this.max)}};const _startP=new Vector3,_startEnd=new Vector3;var Line3=class{constructor(start=new Vector3,end=new Vector3){this.start=start,this.end=end}set(start,end){return this.start.copy(start),this.end.copy(end),this}copy(line){return this.start.copy(line.start),this.end.copy(line.end),this}getCenter(target$1){return target$1.addVectors(this.start,this.end).multiplyScalar(.5)}delta(target$1){return target$1.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(t,target$1){return this.delta(target$1).multiplyScalar(t).add(this.start)}closestPointToPointParameter(point$3,clampToLine){_startP.subVectors(point$3,this.start),_startEnd.subVectors(this.end,this.start);let startEnd2=_startEnd.dot(_startEnd),startEnd_startP=_startEnd.dot(_startP),t=startEnd_startP/startEnd2;return clampToLine&&(t=clamp$6(t,0,1)),t}closestPointToPoint(point$3,clampToLine,target$1){let t=this.closestPointToPointParameter(point$3,clampToLine);return this.delta(target$1).multiplyScalar(t).add(this.start)}applyMatrix4(matrix){return this.start.applyMatrix4(matrix),this.end.applyMatrix4(matrix),this}equals(line){return line.start.equals(this.start)&&line.end.equals(this.end)}clone(){return new this.constructor().copy(this)}};const _vector$3=new Vector3;var SpotLightHelper=class extends Object3D{constructor(light,color$2){super(),this.light=light,this.matrixAutoUpdate=!1,this.color=color$2,this.type=`SpotLightHelper`;let geometry=new BufferGeometry,positions=[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 i$1=0,j$1=1,l$1=32;i$11)for(let i$1=0;i$1.99999)this.quaternion.set(0,0,0,1);else if(dir.y<-.99999)this.quaternion.set(1,0,0,0);else{_axis.set(dir.z,0,-dir.x).normalize();let radians=Math.acos(dir.y);this.quaternion.setFromAxisAngle(_axis,radians)}}setLength(length,headLength=length*.2,headWidth=headLength*.2){this.line.scale.set(1,Math.max(1e-4,length-headLength),1),this.line.updateMatrix(),this.cone.scale.set(headWidth,headLength,headWidth),this.cone.position.y=length,this.cone.updateMatrix()}setColor(color$2){this.line.material.color.set(color$2),this.cone.material.color.set(color$2)}copy(source){return super.copy(source,!1),this.line.copy(source.line),this.cone.copy(source.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}},AxesHelper=class extends LineSegments{constructor(size$1=1){let vertices=[0,0,0,size$1,0,0,0,0,0,0,size$1,0,0,0,0,0,0,size$1],colors=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],geometry=new BufferGeometry;geometry.setAttribute(`position`,new Float32BufferAttribute(vertices,3)),geometry.setAttribute(`color`,new Float32BufferAttribute(colors,3));let material=new LineBasicMaterial({vertexColors:!0,toneMapped:!1});super(geometry,material),this.type=`AxesHelper`}setColors(xAxisColor,yAxisColor,zAxisColor){let color$2=new Color,array=this.geometry.attributes.color.array;return color$2.set(xAxisColor),color$2.toArray(array,0),color$2.toArray(array,3),color$2.set(yAxisColor),color$2.toArray(array,6),color$2.toArray(array,9),color$2.set(zAxisColor),color$2.toArray(array,12),color$2.toArray(array,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}},ShapePath=class{constructor(){this.type=`ShapePath`,this.color=new Color,this.subPaths=[],this.currentPath=null}moveTo(x$3,y$2){return this.currentPath=new Path,this.subPaths.push(this.currentPath),this.currentPath.moveTo(x$3,y$2),this}lineTo(x$3,y$2){return this.currentPath.lineTo(x$3,y$2),this}quadraticCurveTo(aCPx,aCPy,aX,aY){return this.currentPath.quadraticCurveTo(aCPx,aCPy,aX,aY),this}bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY){return this.currentPath.bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY),this}splineThru(pts){return this.currentPath.splineThru(pts),this}toShapes(isCCW){function toShapesNoHoles(inSubpaths){let shapes$1=[];for(let i$1=0,l$1=inSubpaths.length;i$12**-52){if(edgeDy<0&&(edgeLowPt=inPolygon[q$1],edgeDx=-edgeDx,edgeHighPt=inPolygon[p$5],edgeDy=-edgeDy),inPt.yedgeHighPt.y)continue;if(inPt.y===edgeLowPt.y){if(inPt.x===edgeLowPt.x)return!0}else{let perpEdge=edgeDy*(inPt.x-edgeLowPt.x)-edgeDx*(inPt.y-edgeLowPt.y);if(perpEdge===0)return!0;if(perpEdge<0)continue;inside=!inside}}else{if(inPt.y!==edgeLowPt.y)continue;if(edgeHighPt.x<=inPt.x&&inPt.x<=edgeLowPt.x||edgeLowPt.x<=inPt.x&&inPt.x<=edgeHighPt.x)return!0}}return inside}let isClockWise=ShapeUtils.isClockWise,subPaths=this.subPaths;if(subPaths.length===0)return[];let solid,tmpPath,tmpShape,shapes=[];if(subPaths.length===1)return tmpPath=subPaths[0],tmpShape=new Shape,tmpShape.curves=tmpPath.curves,shapes.push(tmpShape),shapes;let holesFirst=!isClockWise(subPaths[0].getPoints());holesFirst=isCCW?!holesFirst:holesFirst;let betterShapeHoles=[],newShapes=[],newShapeHoles=[],mainIdx=0,tmpPoints;newShapes[mainIdx]=void 0,newShapeHoles[mainIdx]=[];for(let i$1=0,l$1=subPaths.length;i$11){let ambiguous=!1,toChange=0;for(let sIdx=0,sLen=newShapes.length;sIdx0&&ambiguous===!1&&(newShapeHoles=betterShapeHoles)}let tmpHoles;for(let i$1=0,il=newShapes.length;i$1aspect$1?(texture.repeat.x=1,texture.repeat.y=imageAspect/aspect$1,texture.offset.x=0,texture.offset.y=(1-texture.repeat.y)/2):(texture.repeat.x=aspect$1/imageAspect,texture.repeat.y=1,texture.offset.x=(1-texture.repeat.x)/2,texture.offset.y=0),texture}function cover(texture,aspect$1){let imageAspect=texture.image&&texture.image.width?texture.image.width/texture.image.height:1;return imageAspect>aspect$1?(texture.repeat.x=aspect$1/imageAspect,texture.repeat.y=1,texture.offset.x=(1-texture.repeat.x)/2,texture.offset.y=0):(texture.repeat.x=1,texture.repeat.y=imageAspect/aspect$1,texture.offset.x=0,texture.offset.y=(1-texture.repeat.y)/2),texture}function fill(texture){return texture.repeat.x=1,texture.repeat.y=1,texture.offset.x=0,texture.offset.y=0,texture}function getByteLength(width,height,format$2,type){let typeByteLength=getTextureTypeByteLength(type);switch(format$2){case AlphaFormat:return width*height;case RedFormat:return width*height/typeByteLength.components*typeByteLength.byteLength;case RedIntegerFormat:return width*height/typeByteLength.components*typeByteLength.byteLength;case RGFormat:return width*height*2/typeByteLength.components*typeByteLength.byteLength;case RGIntegerFormat:return width*height*2/typeByteLength.components*typeByteLength.byteLength;case RGBFormat:return width*height*3/typeByteLength.components*typeByteLength.byteLength;case RGBAFormat:return width*height*4/typeByteLength.components*typeByteLength.byteLength;case RGBAIntegerFormat:return width*height*4/typeByteLength.components*typeByteLength.byteLength;case RGB_S3TC_DXT1_Format:case RGBA_S3TC_DXT1_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*8;case RGBA_S3TC_DXT3_Format:case RGBA_S3TC_DXT5_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*16;case RGB_PVRTC_2BPPV1_Format:case RGBA_PVRTC_2BPPV1_Format:return Math.max(width,16)*Math.max(height,8)/4;case RGB_PVRTC_4BPPV1_Format:case RGBA_PVRTC_4BPPV1_Format:return Math.max(width,8)*Math.max(height,8)/2;case RGB_ETC1_Format:case RGB_ETC2_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*8;case RGBA_ETC2_EAC_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*16;case RGBA_ASTC_4x4_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*16;case RGBA_ASTC_5x4_Format:return Math.floor((width+4)/5)*Math.floor((height+3)/4)*16;case RGBA_ASTC_5x5_Format:return Math.floor((width+4)/5)*Math.floor((height+4)/5)*16;case RGBA_ASTC_6x5_Format:return Math.floor((width+5)/6)*Math.floor((height+4)/5)*16;case RGBA_ASTC_6x6_Format:return Math.floor((width+5)/6)*Math.floor((height+5)/6)*16;case RGBA_ASTC_8x5_Format:return Math.floor((width+7)/8)*Math.floor((height+4)/5)*16;case RGBA_ASTC_8x6_Format:return Math.floor((width+7)/8)*Math.floor((height+5)/6)*16;case RGBA_ASTC_8x8_Format:return Math.floor((width+7)/8)*Math.floor((height+7)/8)*16;case RGBA_ASTC_10x5_Format:return Math.floor((width+9)/10)*Math.floor((height+4)/5)*16;case RGBA_ASTC_10x6_Format:return Math.floor((width+9)/10)*Math.floor((height+5)/6)*16;case RGBA_ASTC_10x8_Format:return Math.floor((width+9)/10)*Math.floor((height+7)/8)*16;case RGBA_ASTC_10x10_Format:return Math.floor((width+9)/10)*Math.floor((height+9)/10)*16;case RGBA_ASTC_12x10_Format:return Math.floor((width+11)/12)*Math.floor((height+9)/10)*16;case RGBA_ASTC_12x12_Format:return Math.floor((width+11)/12)*Math.floor((height+11)/12)*16;case RGBA_BPTC_Format:case RGB_BPTC_SIGNED_Format:case RGB_BPTC_UNSIGNED_Format:return Math.ceil(width/4)*Math.ceil(height/4)*16;case RED_RGTC1_Format:case SIGNED_RED_RGTC1_Format:return Math.ceil(width/4)*Math.ceil(height/4)*8;case RED_GREEN_RGTC2_Format:case SIGNED_RED_GREEN_RGTC2_Format:return Math.ceil(width/4)*Math.ceil(height/4)*16}throw Error(`Unable to determine texture byte length for ${format$2} format.`)}function getTextureTypeByteLength(type){switch(type){case UnsignedByteType:case ByteType:return{byteLength:1,components:1};case UnsignedShortType:case ShortType:case HalfFloatType:return{byteLength:2,components:1};case UnsignedShort4444Type:case UnsignedShort5551Type:return{byteLength:2,components:4};case UnsignedIntType:case IntType:case FloatType:return{byteLength:4,components:1};case UnsignedInt5999Type:return{byteLength:4,components:3}}throw Error(`Unknown texture type ${type}.`)}var TextureUtils=class{static contain(texture,aspect$1){return contain(texture,aspect$1)}static cover(texture,aspect$1){return cover(texture,aspect$1)}static fill(texture){return fill(texture)}static getByteLength(width,height,format$2,type){return getByteLength(width,height,format$2,type)}};typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:REVISION}})),typeof window<`u`&&(window.__THREE__?console.warn(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=REVISION);var three_module_exports={};__export(three_module_exports,{ACESFilmicToneMapping:()=>ACESFilmicToneMapping,AddEquation:()=>AddEquation,AddOperation:()=>AddOperation,AdditiveAnimationBlendMode:()=>AdditiveAnimationBlendMode,AdditiveBlending:()=>AdditiveBlending,AgXToneMapping:()=>AgXToneMapping,AlphaFormat:()=>AlphaFormat,AlwaysCompare:()=>AlwaysCompare,AlwaysDepth:()=>AlwaysDepth,AlwaysStencilFunc:()=>AlwaysStencilFunc,AmbientLight:()=>AmbientLight,AnimationAction:()=>AnimationAction,AnimationClip:()=>AnimationClip,AnimationLoader:()=>AnimationLoader,AnimationMixer:()=>AnimationMixer,AnimationObjectGroup:()=>AnimationObjectGroup,AnimationUtils:()=>AnimationUtils,ArcCurve:()=>ArcCurve,ArrayCamera:()=>ArrayCamera,ArrowHelper:()=>ArrowHelper,AttachedBindMode:()=>AttachedBindMode,Audio:()=>Audio$1,AudioAnalyser:()=>AudioAnalyser,AudioContext:()=>AudioContext$1,AudioListener:()=>AudioListener,AudioLoader:()=>AudioLoader,AxesHelper:()=>AxesHelper,BackSide:()=>BackSide,BasicDepthPacking:()=>BasicDepthPacking,BasicShadowMap:()=>BasicShadowMap,BatchedMesh:()=>BatchedMesh,Bone:()=>Bone,BooleanKeyframeTrack:()=>BooleanKeyframeTrack,Box2:()=>Box2,Box3:()=>Box3,Box3Helper:()=>Box3Helper,BoxGeometry:()=>BoxGeometry,BoxHelper:()=>BoxHelper,BufferAttribute:()=>BufferAttribute,BufferGeometry:()=>BufferGeometry,BufferGeometryLoader:()=>BufferGeometryLoader,ByteType:()=>ByteType,Cache:()=>Cache,Camera:()=>Camera,CameraHelper:()=>CameraHelper,CanvasTexture:()=>CanvasTexture,CapsuleGeometry:()=>CapsuleGeometry,CatmullRomCurve3:()=>CatmullRomCurve3,CineonToneMapping:()=>CineonToneMapping,CircleGeometry:()=>CircleGeometry,ClampToEdgeWrapping:()=>ClampToEdgeWrapping,Clock:()=>Clock,Color:()=>Color,ColorKeyframeTrack:()=>ColorKeyframeTrack,ColorManagement:()=>ColorManagement,CompressedArrayTexture:()=>CompressedArrayTexture,CompressedCubeTexture:()=>CompressedCubeTexture,CompressedTexture:()=>CompressedTexture,CompressedTextureLoader:()=>CompressedTextureLoader,ConeGeometry:()=>ConeGeometry,ConstantAlphaFactor:()=>ConstantAlphaFactor,ConstantColorFactor:()=>ConstantColorFactor,Controls:()=>Controls,CubeCamera:()=>CubeCamera,CubeReflectionMapping:()=>CubeReflectionMapping,CubeRefractionMapping:()=>CubeRefractionMapping,CubeTexture:()=>CubeTexture,CubeTextureLoader:()=>CubeTextureLoader,CubeUVReflectionMapping:()=>CubeUVReflectionMapping,CubicBezierCurve:()=>CubicBezierCurve,CubicBezierCurve3:()=>CubicBezierCurve3,CubicInterpolant:()=>CubicInterpolant,CullFaceBack:()=>CullFaceBack,CullFaceFront:()=>CullFaceFront,CullFaceFrontBack:()=>CullFaceFrontBack,CullFaceNone:()=>CullFaceNone,Curve:()=>Curve,CurvePath:()=>CurvePath,CustomBlending:()=>CustomBlending,CustomToneMapping:()=>CustomToneMapping,CylinderGeometry:()=>CylinderGeometry,Cylindrical:()=>Cylindrical,Data3DTexture:()=>Data3DTexture,DataArrayTexture:()=>DataArrayTexture,DataTexture:()=>DataTexture,DataTextureLoader:()=>DataTextureLoader,DataUtils:()=>DataUtils,DecrementStencilOp:()=>DecrementStencilOp,DecrementWrapStencilOp:()=>DecrementWrapStencilOp,DefaultLoadingManager:()=>DefaultLoadingManager,DepthFormat:()=>DepthFormat,DepthStencilFormat:()=>DepthStencilFormat,DepthTexture:()=>DepthTexture,DetachedBindMode:()=>DetachedBindMode,DirectionalLight:()=>DirectionalLight,DirectionalLightHelper:()=>DirectionalLightHelper,DiscreteInterpolant:()=>DiscreteInterpolant,DodecahedronGeometry:()=>DodecahedronGeometry,DoubleSide:()=>DoubleSide,DstAlphaFactor:()=>DstAlphaFactor,DstColorFactor:()=>DstColorFactor,DynamicCopyUsage:()=>DynamicCopyUsage,DynamicDrawUsage:()=>DynamicDrawUsage,DynamicReadUsage:()=>DynamicReadUsage,EdgesGeometry:()=>EdgesGeometry,EllipseCurve:()=>EllipseCurve,EqualCompare:()=>EqualCompare,EqualDepth:()=>EqualDepth,EqualStencilFunc:()=>EqualStencilFunc,EquirectangularReflectionMapping:()=>EquirectangularReflectionMapping,EquirectangularRefractionMapping:()=>EquirectangularRefractionMapping,Euler:()=>Euler,EventDispatcher:()=>EventDispatcher,ExtrudeGeometry:()=>ExtrudeGeometry,FileLoader:()=>FileLoader,Float16BufferAttribute:()=>Float16BufferAttribute,Float32BufferAttribute:()=>Float32BufferAttribute,FloatType:()=>FloatType,Fog:()=>Fog,FogExp2:()=>FogExp2,FramebufferTexture:()=>FramebufferTexture,FrontSide:()=>FrontSide,Frustum:()=>Frustum,FrustumArray:()=>FrustumArray,GLBufferAttribute:()=>GLBufferAttribute,GLSL1:()=>GLSL1,GLSL3:()=>GLSL3,GreaterCompare:()=>GreaterCompare,GreaterDepth:()=>GreaterDepth,GreaterEqualCompare:()=>GreaterEqualCompare,GreaterEqualDepth:()=>GreaterEqualDepth,GreaterEqualStencilFunc:()=>GreaterEqualStencilFunc,GreaterStencilFunc:()=>GreaterStencilFunc,GridHelper:()=>GridHelper,Group:()=>Group,HalfFloatType:()=>HalfFloatType,HemisphereLight:()=>HemisphereLight,HemisphereLightHelper:()=>HemisphereLightHelper,IcosahedronGeometry:()=>IcosahedronGeometry,ImageBitmapLoader:()=>ImageBitmapLoader,ImageLoader:()=>ImageLoader,ImageUtils:()=>ImageUtils,IncrementStencilOp:()=>IncrementStencilOp,IncrementWrapStencilOp:()=>IncrementWrapStencilOp,InstancedBufferAttribute:()=>InstancedBufferAttribute,InstancedBufferGeometry:()=>InstancedBufferGeometry,InstancedInterleavedBuffer:()=>InstancedInterleavedBuffer,InstancedMesh:()=>InstancedMesh,Int16BufferAttribute:()=>Int16BufferAttribute,Int32BufferAttribute:()=>Int32BufferAttribute,Int8BufferAttribute:()=>Int8BufferAttribute,IntType:()=>IntType,InterleavedBuffer:()=>InterleavedBuffer,InterleavedBufferAttribute:()=>InterleavedBufferAttribute,Interpolant:()=>Interpolant,InterpolateDiscrete:()=>InterpolateDiscrete,InterpolateLinear:()=>InterpolateLinear,InterpolateSmooth:()=>InterpolateSmooth,InterpolationSamplingMode:()=>InterpolationSamplingMode,InterpolationSamplingType:()=>InterpolationSamplingType,InvertStencilOp:()=>InvertStencilOp,KeepStencilOp:()=>KeepStencilOp,KeyframeTrack:()=>KeyframeTrack,LOD:()=>LOD,LatheGeometry:()=>LatheGeometry,Layers:()=>Layers,LessCompare:()=>LessCompare,LessDepth:()=>LessDepth,LessEqualCompare:()=>LessEqualCompare,LessEqualDepth:()=>LessEqualDepth,LessEqualStencilFunc:()=>LessEqualStencilFunc,LessStencilFunc:()=>LessStencilFunc,Light:()=>Light,LightProbe:()=>LightProbe,Line:()=>Line,Line3:()=>Line3,LineBasicMaterial:()=>LineBasicMaterial,LineCurve:()=>LineCurve,LineCurve3:()=>LineCurve3,LineDashedMaterial:()=>LineDashedMaterial,LineLoop:()=>LineLoop,LineSegments:()=>LineSegments,LinearFilter:()=>LinearFilter,LinearInterpolant:()=>LinearInterpolant,LinearMipMapLinearFilter:()=>LinearMipMapLinearFilter,LinearMipMapNearestFilter:()=>LinearMipMapNearestFilter,LinearMipmapLinearFilter:()=>LinearMipmapLinearFilter,LinearMipmapNearestFilter:()=>LinearMipmapNearestFilter,LinearSRGBColorSpace:()=>LinearSRGBColorSpace,LinearToneMapping:()=>LinearToneMapping,LinearTransfer:()=>LinearTransfer,Loader:()=>Loader,LoaderUtils:()=>LoaderUtils,LoadingManager:()=>LoadingManager,LoopOnce:()=>LoopOnce,LoopPingPong:()=>LoopPingPong,LoopRepeat:()=>LoopRepeat,MOUSE:()=>MOUSE,Material:()=>Material,MaterialLoader:()=>MaterialLoader,MathUtils:()=>MathUtils,Matrix2:()=>Matrix2,Matrix3:()=>Matrix3,Matrix4:()=>Matrix4,MaxEquation:()=>MaxEquation,Mesh:()=>Mesh,MeshBasicMaterial:()=>MeshBasicMaterial,MeshDepthMaterial:()=>MeshDepthMaterial,MeshDistanceMaterial:()=>MeshDistanceMaterial,MeshLambertMaterial:()=>MeshLambertMaterial,MeshMatcapMaterial:()=>MeshMatcapMaterial,MeshNormalMaterial:()=>MeshNormalMaterial,MeshPhongMaterial:()=>MeshPhongMaterial,MeshPhysicalMaterial:()=>MeshPhysicalMaterial,MeshStandardMaterial:()=>MeshStandardMaterial,MeshToonMaterial:()=>MeshToonMaterial,MinEquation:()=>MinEquation,MirroredRepeatWrapping:()=>MirroredRepeatWrapping,MixOperation:()=>MixOperation,MultiplyBlending:()=>MultiplyBlending,MultiplyOperation:()=>MultiplyOperation,NearestFilter:()=>NearestFilter,NearestMipMapLinearFilter:()=>NearestMipMapLinearFilter,NearestMipMapNearestFilter:()=>NearestMipMapNearestFilter,NearestMipmapLinearFilter:()=>NearestMipmapLinearFilter,NearestMipmapNearestFilter:()=>NearestMipmapNearestFilter,NeutralToneMapping:()=>NeutralToneMapping,NeverCompare:()=>NeverCompare,NeverDepth:()=>NeverDepth,NeverStencilFunc:()=>NeverStencilFunc,NoBlending:()=>NoBlending,NoColorSpace:()=>NoColorSpace,NoToneMapping:()=>NoToneMapping,NormalAnimationBlendMode:()=>NormalAnimationBlendMode,NormalBlending:()=>NormalBlending,NotEqualCompare:()=>NotEqualCompare,NotEqualDepth:()=>NotEqualDepth,NotEqualStencilFunc:()=>NotEqualStencilFunc,NumberKeyframeTrack:()=>NumberKeyframeTrack,Object3D:()=>Object3D,ObjectLoader:()=>ObjectLoader,ObjectSpaceNormalMap:()=>ObjectSpaceNormalMap,OctahedronGeometry:()=>OctahedronGeometry,OneFactor:()=>OneFactor,OneMinusConstantAlphaFactor:()=>OneMinusConstantAlphaFactor,OneMinusConstantColorFactor:()=>OneMinusConstantColorFactor,OneMinusDstAlphaFactor:()=>OneMinusDstAlphaFactor,OneMinusDstColorFactor:()=>OneMinusDstColorFactor,OneMinusSrcAlphaFactor:()=>OneMinusSrcAlphaFactor,OneMinusSrcColorFactor:()=>OneMinusSrcColorFactor,OrthographicCamera:()=>OrthographicCamera,PCFShadowMap:()=>PCFShadowMap,PCFSoftShadowMap:()=>PCFSoftShadowMap,PMREMGenerator:()=>PMREMGenerator,Path:()=>Path,PerspectiveCamera:()=>PerspectiveCamera,Plane:()=>Plane,PlaneGeometry:()=>PlaneGeometry,PlaneHelper:()=>PlaneHelper,PointLight:()=>PointLight,PointLightHelper:()=>PointLightHelper,Points:()=>Points,PointsMaterial:()=>PointsMaterial,PolarGridHelper:()=>PolarGridHelper,PolyhedronGeometry:()=>PolyhedronGeometry,PositionalAudio:()=>PositionalAudio,PropertyBinding:()=>PropertyBinding,PropertyMixer:()=>PropertyMixer,QuadraticBezierCurve:()=>QuadraticBezierCurve,QuadraticBezierCurve3:()=>QuadraticBezierCurve3,Quaternion:()=>Quaternion,QuaternionKeyframeTrack:()=>QuaternionKeyframeTrack,QuaternionLinearInterpolant:()=>QuaternionLinearInterpolant,RED_GREEN_RGTC2_Format:()=>RED_GREEN_RGTC2_Format,RED_RGTC1_Format:()=>RED_RGTC1_Format,REVISION:()=>REVISION,RGBADepthPacking:()=>RGBADepthPacking,RGBAFormat:()=>RGBAFormat,RGBAIntegerFormat:()=>RGBAIntegerFormat,RGBA_ASTC_10x10_Format:()=>RGBA_ASTC_10x10_Format,RGBA_ASTC_10x5_Format:()=>RGBA_ASTC_10x5_Format,RGBA_ASTC_10x6_Format:()=>RGBA_ASTC_10x6_Format,RGBA_ASTC_10x8_Format:()=>RGBA_ASTC_10x8_Format,RGBA_ASTC_12x10_Format:()=>RGBA_ASTC_12x10_Format,RGBA_ASTC_12x12_Format:()=>RGBA_ASTC_12x12_Format,RGBA_ASTC_4x4_Format:()=>RGBA_ASTC_4x4_Format,RGBA_ASTC_5x4_Format:()=>RGBA_ASTC_5x4_Format,RGBA_ASTC_5x5_Format:()=>RGBA_ASTC_5x5_Format,RGBA_ASTC_6x5_Format:()=>RGBA_ASTC_6x5_Format,RGBA_ASTC_6x6_Format:()=>RGBA_ASTC_6x6_Format,RGBA_ASTC_8x5_Format:()=>RGBA_ASTC_8x5_Format,RGBA_ASTC_8x6_Format:()=>RGBA_ASTC_8x6_Format,RGBA_ASTC_8x8_Format:()=>RGBA_ASTC_8x8_Format,RGBA_BPTC_Format:()=>RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:()=>RGBA_ETC2_EAC_Format,RGBA_PVRTC_2BPPV1_Format:()=>RGBA_PVRTC_2BPPV1_Format,RGBA_PVRTC_4BPPV1_Format:()=>RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:()=>RGBA_S3TC_DXT1_Format,RGBA_S3TC_DXT3_Format:()=>RGBA_S3TC_DXT3_Format,RGBA_S3TC_DXT5_Format:()=>RGBA_S3TC_DXT5_Format,RGBDepthPacking:()=>RGBDepthPacking,RGBFormat:()=>RGBFormat,RGBIntegerFormat:()=>RGBIntegerFormat,RGB_BPTC_SIGNED_Format:()=>RGB_BPTC_SIGNED_Format,RGB_BPTC_UNSIGNED_Format:()=>RGB_BPTC_UNSIGNED_Format,RGB_ETC1_Format:()=>RGB_ETC1_Format,RGB_ETC2_Format:()=>RGB_ETC2_Format,RGB_PVRTC_2BPPV1_Format:()=>RGB_PVRTC_2BPPV1_Format,RGB_PVRTC_4BPPV1_Format:()=>RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:()=>RGB_S3TC_DXT1_Format,RGDepthPacking:()=>RGDepthPacking,RGFormat:()=>RGFormat,RGIntegerFormat:()=>RGIntegerFormat,RawShaderMaterial:()=>RawShaderMaterial,Ray:()=>Ray,Raycaster:()=>Raycaster,RectAreaLight:()=>RectAreaLight,RedFormat:()=>RedFormat,RedIntegerFormat:()=>RedIntegerFormat,ReinhardToneMapping:()=>ReinhardToneMapping,RenderTarget:()=>RenderTarget,RenderTarget3D:()=>RenderTarget3D,RepeatWrapping:()=>RepeatWrapping,ReplaceStencilOp:()=>ReplaceStencilOp,ReverseSubtractEquation:()=>ReverseSubtractEquation,RingGeometry:()=>RingGeometry,SIGNED_RED_GREEN_RGTC2_Format:()=>SIGNED_RED_GREEN_RGTC2_Format,SIGNED_RED_RGTC1_Format:()=>SIGNED_RED_RGTC1_Format,SRGBColorSpace:()=>SRGBColorSpace,SRGBTransfer:()=>SRGBTransfer,Scene:()=>Scene,ShaderChunk:()=>ShaderChunk,ShaderLib:()=>ShaderLib,ShaderMaterial:()=>ShaderMaterial,ShadowMaterial:()=>ShadowMaterial,Shape:()=>Shape,ShapeGeometry:()=>ShapeGeometry,ShapePath:()=>ShapePath,ShapeUtils:()=>ShapeUtils,ShortType:()=>ShortType,Skeleton:()=>Skeleton,SkeletonHelper:()=>SkeletonHelper,SkinnedMesh:()=>SkinnedMesh,Source:()=>Source,Sphere:()=>Sphere,SphereGeometry:()=>SphereGeometry,Spherical:()=>Spherical,SphericalHarmonics3:()=>SphericalHarmonics3,SplineCurve:()=>SplineCurve,SpotLight:()=>SpotLight,SpotLightHelper:()=>SpotLightHelper,Sprite:()=>Sprite,SpriteMaterial:()=>SpriteMaterial,SrcAlphaFactor:()=>SrcAlphaFactor,SrcAlphaSaturateFactor:()=>SrcAlphaSaturateFactor,SrcColorFactor:()=>SrcColorFactor,StaticCopyUsage:()=>StaticCopyUsage,StaticDrawUsage:()=>StaticDrawUsage,StaticReadUsage:()=>StaticReadUsage,StereoCamera:()=>StereoCamera,StreamCopyUsage:()=>StreamCopyUsage,StreamDrawUsage:()=>StreamDrawUsage,StreamReadUsage:()=>StreamReadUsage,StringKeyframeTrack:()=>StringKeyframeTrack,SubtractEquation:()=>SubtractEquation,SubtractiveBlending:()=>SubtractiveBlending,TOUCH:()=>TOUCH,TangentSpaceNormalMap:()=>TangentSpaceNormalMap,TetrahedronGeometry:()=>TetrahedronGeometry,Texture:()=>Texture,TextureLoader:()=>TextureLoader,TextureUtils:()=>TextureUtils,TimestampQuery:()=>TimestampQuery,TorusGeometry:()=>TorusGeometry,TorusKnotGeometry:()=>TorusKnotGeometry,Triangle:()=>Triangle,TriangleFanDrawMode:()=>TriangleFanDrawMode,TriangleStripDrawMode:()=>TriangleStripDrawMode,TrianglesDrawMode:()=>TrianglesDrawMode,TubeGeometry:()=>TubeGeometry,UVMapping:()=>UVMapping,Uint16BufferAttribute:()=>Uint16BufferAttribute,Uint32BufferAttribute:()=>Uint32BufferAttribute,Uint8BufferAttribute:()=>Uint8BufferAttribute,Uint8ClampedBufferAttribute:()=>Uint8ClampedBufferAttribute,Uniform:()=>Uniform,UniformsGroup:()=>UniformsGroup,UniformsLib:()=>UniformsLib,UniformsUtils:()=>UniformsUtils,UnsignedByteType:()=>UnsignedByteType,UnsignedInt248Type:()=>UnsignedInt248Type,UnsignedInt5999Type:()=>UnsignedInt5999Type,UnsignedIntType:()=>UnsignedIntType,UnsignedShort4444Type:()=>UnsignedShort4444Type,UnsignedShort5551Type:()=>UnsignedShort5551Type,UnsignedShortType:()=>UnsignedShortType,VSMShadowMap:()=>VSMShadowMap,Vector2:()=>Vector2,Vector3:()=>Vector3,Vector4:()=>Vector4,VectorKeyframeTrack:()=>VectorKeyframeTrack,VideoFrameTexture:()=>VideoFrameTexture,VideoTexture:()=>VideoTexture,WebGL3DRenderTarget:()=>WebGL3DRenderTarget,WebGLArrayRenderTarget:()=>WebGLArrayRenderTarget,WebGLCoordinateSystem:()=>WebGLCoordinateSystem,WebGLCubeRenderTarget:()=>WebGLCubeRenderTarget,WebGLRenderTarget:()=>WebGLRenderTarget,WebGLRenderer:()=>WebGLRenderer,WebGLUtils:()=>WebGLUtils,WebGPUCoordinateSystem:()=>WebGPUCoordinateSystem,WebXRController:()=>WebXRController,WireframeGeometry:()=>WireframeGeometry,WrapAroundEnding:()=>WrapAroundEnding,ZeroCurvatureEnding:()=>ZeroCurvatureEnding,ZeroFactor:()=>ZeroFactor,ZeroSlopeEnding:()=>ZeroSlopeEnding,ZeroStencilOp:()=>ZeroStencilOp,createCanvasElement:()=>createCanvasElement});function WebGLAnimation(){let context$1=null,isAnimating=!1,animationLoop=null,requestId=null;function onAnimationFrame(time,frame$1){animationLoop(time,frame$1),requestId=context$1.requestAnimationFrame(onAnimationFrame)}return{start:function(){isAnimating!==!0&&animationLoop!==null&&(requestId=context$1.requestAnimationFrame(onAnimationFrame),isAnimating=!0)},stop:function(){context$1.cancelAnimationFrame(requestId),isAnimating=!1},setAnimationLoop:function(callback){animationLoop=callback},setContext:function(value$1){context$1=value$1}}}function WebGLAttributes(gl){let buffers=new WeakMap;function createBuffer(attribute,bufferType){let array=attribute.array,usage=attribute.usage,size$1=array.byteLength,buffer$1=gl.createBuffer();gl.bindBuffer(bufferType,buffer$1),gl.bufferData(bufferType,array,usage),attribute.onUploadCallback();let type;if(array instanceof Float32Array)type=gl.FLOAT;else if(typeof Float16Array<`u`&&array instanceof Float16Array)type=gl.HALF_FLOAT;else if(array instanceof Uint16Array)type=attribute.isFloat16BufferAttribute?gl.HALF_FLOAT:gl.UNSIGNED_SHORT;else if(array instanceof Int16Array)type=gl.SHORT;else if(array instanceof Uint32Array)type=gl.UNSIGNED_INT;else if(array instanceof Int32Array)type=gl.INT;else if(array instanceof Int8Array)type=gl.BYTE;else if(array instanceof Uint8Array)type=gl.UNSIGNED_BYTE;else if(array instanceof Uint8ClampedArray)type=gl.UNSIGNED_BYTE;else throw Error(`THREE.WebGLAttributes: Unsupported buffer data format: `+array);return{buffer:buffer$1,type,bytesPerElement:array.BYTES_PER_ELEMENT,version:attribute.version,size:size$1}}function updateBuffer(buffer$1,attribute,bufferType){let array=attribute.array,updateRanges=attribute.updateRanges;if(gl.bindBuffer(bufferType,buffer$1),updateRanges.length===0)gl.bufferSubData(bufferType,0,array);else{updateRanges.sort((a$2,b$3)=>a$2.start-b$3.start);let mergeIndex=0;for(let i$1=1;i$1distanceToPinch+threshold?(hand.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:inputSource.handedness,target:this})):!hand.inputState.pinching&&distance<=distanceToPinch-threshold&&(hand.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:inputSource.handedness,target:this}))}else grip!==null&&inputSource.gripSpace&&(gripPose=frame$1.getPose(inputSource.gripSpace,referenceSpace),gripPose!==null&&(grip.matrix.fromArray(gripPose.transform.matrix),grip.matrix.decompose(grip.position,grip.rotation,grip.scale),grip.matrixWorldNeedsUpdate=!0,gripPose.linearVelocity?(grip.hasLinearVelocity=!0,grip.linearVelocity.copy(gripPose.linearVelocity)):grip.hasLinearVelocity=!1,gripPose.angularVelocity?(grip.hasAngularVelocity=!0,grip.angularVelocity.copy(gripPose.angularVelocity)):grip.hasAngularVelocity=!1));targetRay!==null&&(inputPose=frame$1.getPose(inputSource.targetRaySpace,referenceSpace),inputPose===null&&gripPose!==null&&(inputPose=gripPose),inputPose!==null&&(targetRay.matrix.fromArray(inputPose.transform.matrix),targetRay.matrix.decompose(targetRay.position,targetRay.rotation,targetRay.scale),targetRay.matrixWorldNeedsUpdate=!0,inputPose.linearVelocity?(targetRay.hasLinearVelocity=!0,targetRay.linearVelocity.copy(inputPose.linearVelocity)):targetRay.hasLinearVelocity=!1,inputPose.angularVelocity?(targetRay.hasAngularVelocity=!0,targetRay.angularVelocity.copy(inputPose.angularVelocity)):targetRay.hasAngularVelocity=!1,this.dispatchEvent(_moveEvent)))}return targetRay!==null&&(targetRay.visible=inputPose!==null),grip!==null&&(grip.visible=gripPose!==null),hand!==null&&(hand.visible=handPose!==null),this}_getHandJoint(hand,inputjoint){if(hand.joints[inputjoint.jointName]===void 0){let joint=new Group;joint.matrixAutoUpdate=!1,joint.visible=!1,hand.joints[inputjoint.jointName]=joint,hand.add(joint)}return hand.joints[inputjoint.jointName]}},FogExp2=class FogExp2{constructor(color$2,density=25e-5){this.isFogExp2=!0,this.name=``,this.color=new Color(color$2),this.density=density}clone(){return new FogExp2(this.color,this.density)}toJSON(){return{type:`FogExp2`,name:this.name,color:this.color.getHex(),density:this.density}}},Fog=class Fog{constructor(color$2,near=1,far=1e3){this.isFog=!0,this.name=``,this.color=new Color(color$2),this.near=near,this.far=far}clone(){return new Fog(this.color,this.near,this.far)}toJSON(){return{type:`Fog`,name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}},Scene=class extends Object3D{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 Euler,this.environmentIntensity=1,this.environmentRotation=new Euler,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`observe`,{detail:this}))}copy(source,recursive){return super.copy(source,recursive),source.background!==null&&(this.background=source.background.clone()),source.environment!==null&&(this.environment=source.environment.clone()),source.fog!==null&&(this.fog=source.fog.clone()),this.backgroundBlurriness=source.backgroundBlurriness,this.backgroundIntensity=source.backgroundIntensity,this.backgroundRotation.copy(source.backgroundRotation),this.environmentIntensity=source.environmentIntensity,this.environmentRotation.copy(source.environmentRotation),source.overrideMaterial!==null&&(this.overrideMaterial=source.overrideMaterial.clone()),this.matrixAutoUpdate=source.matrixAutoUpdate,this}toJSON(meta){let data$10=super.toJSON(meta);return this.fog!==null&&(data$10.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(data$10.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(data$10.object.backgroundIntensity=this.backgroundIntensity),data$10.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(data$10.object.environmentIntensity=this.environmentIntensity),data$10.object.environmentRotation=this.environmentRotation.toArray(),data$10}},InterleavedBuffer=class{constructor(array,stride){this.isInterleavedBuffer=!0,this.array=array,this.stride=stride,this.count=array===void 0?0:array.length/stride,this.usage=StaticDrawUsage,this.updateRanges=[],this.version=0,this.uuid=generateUUID()}onUploadCallback(){}set needsUpdate(value$1){value$1===!0&&this.version++}setUsage(value$1){return this.usage=value$1,this}addUpdateRange(start,count$1){this.updateRanges.push({start,count:count$1})}clearUpdateRanges(){this.updateRanges.length=0}copy(source){return this.array=new source.array.constructor(source.array),this.count=source.count,this.stride=source.stride,this.usage=source.usage,this}copyAt(index1,interleavedBuffer,index2){index1*=this.stride,index2*=interleavedBuffer.stride;for(let i$1=0,l$1=this.stride;i$1raycaster.far||intersects$1.push({distance,point:_intersectPoint.clone(),uv:Triangle.getInterpolation(_intersectPoint,_vA,_vB,_vC,_uvA,_uvB,_uvC,new Vector2),face:null,object:this})}copy(source,recursive){return super.copy(source,recursive),source.center!==void 0&&this.center.copy(source.center),this.material=source.material,this}};function transformVertex(vertexPosition,mvPosition,center,scale$1,sin,cos){_alignedPosition.subVectors(vertexPosition,center).addScalar(.5).multiply(scale$1),sin===void 0?_rotatedPosition.copy(_alignedPosition):(_rotatedPosition.x=cos*_alignedPosition.x-sin*_alignedPosition.y,_rotatedPosition.y=sin*_alignedPosition.x+cos*_alignedPosition.y),vertexPosition.copy(mvPosition),vertexPosition.x+=_rotatedPosition.x,vertexPosition.y+=_rotatedPosition.y,vertexPosition.applyMatrix4(_viewWorldMatrix)}const _v1$2=new Vector3,_v2$1$1=new Vector3;var LOD=class extends Object3D{constructor(){super(),this.isLOD=!0,this._currentLevel=0,this.type=`LOD`,Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}copy(source){super.copy(source,!1);let levels$1=source.levels;for(let i$1=0,l$1=levels$1.length;i$10){let i$1,l$1;for(i$1=1,l$1=levels$1.length;i$10){_v1$2.setFromMatrixPosition(this.matrixWorld);let distance=raycaster.ray.origin.distanceTo(_v1$2);this.getObjectForDistance(distance).raycast(raycaster,intersects$1)}}update(camera){let levels$1=this.levels;if(levels$1.length>1){_v1$2.setFromMatrixPosition(camera.matrixWorld),_v2$1$1.setFromMatrixPosition(this.matrixWorld);let distance=_v1$2.distanceTo(_v2$1$1)/camera.zoom;levels$1[0].object.visible=!0;let i$1,l$1;for(i$1=1,l$1=levels$1.length;i$1=levelDistance)levels$1[i$1-1].object.visible=!1,levels$1[i$1].object.visible=!0;else break}for(this._currentLevel=i$1-1;i$11?null:target$1.copy(line.start).addScaledVector(direction,t)}intersectsLine(line){let startSign=this.distanceToPoint(line.start),endSign=this.distanceToPoint(line.end);return startSign<0&&endSign>0||endSign<0&&startSign>0}intersectsBox(box){return box.intersectsPlane(this)}intersectsSphere(sphere){return sphere.intersectsPlane(this)}coplanarPoint(target$1){return target$1.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(matrix,optionalNormalMatrix){let normalMatrix=optionalNormalMatrix||_normalMatrix.getNormalMatrix(matrix),referencePoint=this.coplanarPoint(_vector1).applyMatrix4(matrix),normal=this.normal.applyMatrix3(normalMatrix).normalize();return this.constant=-referencePoint.dot(normal),this}translate(offset$1){return this.constant-=offset$1.dot(this.normal),this}equals(plane){return plane.normal.equals(this.normal)&&plane.constant===this.constant}clone(){return new this.constructor().copy(this)}};const _sphere$3=new Sphere,_defaultSpriteCenter=new Vector2(.5,.5),_vector$6=new Vector3;var Frustum=class{constructor(p0=new Plane,p1=new Plane,p2=new Plane,p3$1=new Plane,p4=new Plane,p5=new Plane){this.planes=[p0,p1,p2,p3$1,p4,p5]}set(p0,p1,p2,p3$1,p4,p5){let planes=this.planes;return planes[0].copy(p0),planes[1].copy(p1),planes[2].copy(p2),planes[3].copy(p3$1),planes[4].copy(p4),planes[5].copy(p5),this}copy(frustum){let planes=this.planes;for(let i$1=0;i$1<6;i$1++)planes[i$1].copy(frustum.planes[i$1]);return this}setFromProjectionMatrix(m$2,coordinateSystem=WebGLCoordinateSystem){let planes=this.planes,me$1=m$2.elements,me0=me$1[0],me1=me$1[1],me2=me$1[2],me3=me$1[3],me4=me$1[4],me5=me$1[5],me6=me$1[6],me7=me$1[7],me8=me$1[8],me9=me$1[9],me10=me$1[10],me11=me$1[11],me12=me$1[12],me13=me$1[13],me14=me$1[14],me15=me$1[15];if(planes[0].setComponents(me3-me0,me7-me4,me11-me8,me15-me12).normalize(),planes[1].setComponents(me3+me0,me7+me4,me11+me8,me15+me12).normalize(),planes[2].setComponents(me3+me1,me7+me5,me11+me9,me15+me13).normalize(),planes[3].setComponents(me3-me1,me7-me5,me11-me9,me15-me13).normalize(),planes[4].setComponents(me3-me2,me7-me6,me11-me10,me15-me14).normalize(),coordinateSystem===WebGLCoordinateSystem)planes[5].setComponents(me3+me2,me7+me6,me11+me10,me15+me14).normalize();else if(coordinateSystem===WebGPUCoordinateSystem)planes[5].setComponents(me2,me6,me10,me14).normalize();else throw Error(`THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: `+coordinateSystem);return this}intersectsObject(object){if(object.boundingSphere!==void 0)object.boundingSphere===null&&object.computeBoundingSphere(),_sphere$3.copy(object.boundingSphere).applyMatrix4(object.matrixWorld);else{let geometry=object.geometry;geometry.boundingSphere===null&&geometry.computeBoundingSphere(),_sphere$3.copy(geometry.boundingSphere).applyMatrix4(object.matrixWorld)}return this.intersectsSphere(_sphere$3)}intersectsSprite(sprite){_sphere$3.center.set(0,0,0);let offset$1=_defaultSpriteCenter.distanceTo(sprite.center);return _sphere$3.radius=.7071067811865476+offset$1,_sphere$3.applyMatrix4(sprite.matrixWorld),this.intersectsSphere(_sphere$3)}intersectsSphere(sphere){let planes=this.planes,center=sphere.center,negRadius=-sphere.radius;for(let i$1=0;i$1<6;i$1++){let distance=planes[i$1].distanceToPoint(center);if(distance0?box.max.x:box.min.x,_vector$6.y=plane.normal.y>0?box.max.y:box.min.y,_vector$6.z=plane.normal.z>0?box.max.z:box.min.z,plane.distanceToPoint(_vector$6)<0)return!1}return!0}containsPoint(point$3){let planes=this.planes;for(let i$1=0;i$1<6;i$1++)if(planes[i$1].distanceToPoint(point$3)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}};const _projScreenMatrix$2=new Matrix4,_frustum$1=new Frustum;var FrustumArray=class FrustumArray{constructor(){this.coordinateSystem=WebGLCoordinateSystem}intersectsObject(object,cameraArray){if(!cameraArray.isArrayCamera||cameraArray.cameras.length===0)return!1;for(let i$1=0;i$1=pool.length&&pool.push({start:-1,count:-1,z:-1,index:-1});let item=pool[this.index];list$2.push(item),this.index++,item.start=start,item.count=count$1,item.z=z$2,item.index=index$1}reset(){this.list.length=0,this.index=0}};const _matrix$1=new Matrix4,_whiteColor=new Color(1,1,1),_frustum=new Frustum,_frustumArray=new FrustumArray,_box$1=new Box3,_sphere$2=new Sphere,_vector$5=new Vector3,_forward$1=new Vector3,_temp=new Vector3,_renderList=new MultiDrawRenderList,_mesh=new Mesh,_batchIntersects=[];function copyAttributeData(src,target$1,targetOffset=0){let itemSize=target$1.itemSize;if(src.isInterleavedBufferAttribute||src.array.constructor!==target$1.array.constructor){let vertexCount=src.count;for(let i$1=0;i$165535?new Uint32Array(maxIndexCount):new Uint16Array(maxIndexCount);geometry.setIndex(new BufferAttribute(indexArray,1))}this._geometryInitialized=!0}}_validateGeometry(geometry){let batchGeometry=this.geometry;if(!!geometry.getIndex()!=!!batchGeometry.getIndex())throw Error(`THREE.BatchedMesh: All geometries must consistently have "index".`);for(let attributeName in batchGeometry.attributes){if(!geometry.hasAttribute(attributeName))throw Error(`THREE.BatchedMesh: Added geometry missing "${attributeName}". All geometries must have consistent attributes.`);let srcAttribute=geometry.getAttribute(attributeName),dstAttribute=batchGeometry.getAttribute(attributeName);if(srcAttribute.itemSize!==dstAttribute.itemSize||srcAttribute.normalized!==dstAttribute.normalized)throw Error(`THREE.BatchedMesh: All attributes must have a consistent itemSize and normalized value.`)}}validateInstanceId(instanceId){let instanceInfo=this._instanceInfo;if(instanceId<0||instanceId>=instanceInfo.length||instanceInfo[instanceId].active===!1)throw Error(`THREE.BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or has been deleted.`)}validateGeometryId(geometryId){let geometryInfoList=this._geometryInfo;if(geometryId<0||geometryId>=geometryInfoList.length||geometryInfoList[geometryId].active===!1)throw Error(`THREE.BatchedMesh: Invalid geometryId ${geometryId}. Geometry is either out of range or has been deleted.`)}setCustomSort(func){return this.customSort=func,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Box3);let boundingBox=this.boundingBox,instanceInfo=this._instanceInfo;boundingBox.makeEmpty();for(let i$1=0,l$1=instanceInfo.length;i$1=this.maxInstanceCount;if(atCapacity&&this._availableInstanceIds.length===0)throw Error(`THREE.BatchedMesh: Maximum item count reached.`);let instanceInfo={visible:!0,active:!0,geometryIndex:geometryId},drawId=null;this._availableInstanceIds.length>0?(this._availableInstanceIds.sort(ascIdSort),drawId=this._availableInstanceIds.shift(),this._instanceInfo[drawId]=instanceInfo):(drawId=this._instanceInfo.length,this._instanceInfo.push(instanceInfo));let matricesTexture=this._matricesTexture;_matrix$1.identity().toArray(matricesTexture.image.data,drawId*16),matricesTexture.needsUpdate=!0;let colorsTexture=this._colorsTexture;return colorsTexture&&(_whiteColor.toArray(colorsTexture.image.data,drawId*4),colorsTexture.needsUpdate=!0),this._visibilityChanged=!0,drawId}addGeometry(geometry,reservedVertexCount=-1,reservedIndexCount=-1){this._initializeGeometry(geometry),this._validateGeometry(geometry);let geometryInfo={vertexStart:-1,vertexCount:-1,reservedVertexCount:-1,indexStart:-1,indexCount:-1,reservedIndexCount:-1,start:-1,count:-1,boundingBox:null,boundingSphere:null,active:!0},geometryInfoList=this._geometryInfo;geometryInfo.vertexStart=this._nextVertexStart,geometryInfo.reservedVertexCount=reservedVertexCount===-1?geometry.getAttribute(`position`).count:reservedVertexCount;let index$1=geometry.getIndex(),hasIndex=index$1!==null;if(hasIndex&&(geometryInfo.indexStart=this._nextIndexStart,geometryInfo.reservedIndexCount=reservedIndexCount===-1?index$1.count:reservedIndexCount),geometryInfo.indexStart!==-1&&geometryInfo.indexStart+geometryInfo.reservedIndexCount>this._maxIndexCount||geometryInfo.vertexStart+geometryInfo.reservedVertexCount>this._maxVertexCount)throw Error(`THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.`);let geometryId;return this._availableGeometryIds.length>0?(this._availableGeometryIds.sort(ascIdSort),geometryId=this._availableGeometryIds.shift(),geometryInfoList[geometryId]=geometryInfo):(geometryId=this._geometryCount,this._geometryCount++,geometryInfoList.push(geometryInfo)),this.setGeometryAt(geometryId,geometry),this._nextIndexStart=geometryInfo.indexStart+geometryInfo.reservedIndexCount,this._nextVertexStart=geometryInfo.vertexStart+geometryInfo.reservedVertexCount,geometryId}setGeometryAt(geometryId,geometry){if(geometryId>=this._geometryCount)throw Error(`THREE.BatchedMesh: Maximum geometry count reached.`);this._validateGeometry(geometry);let batchGeometry=this.geometry,hasIndex=batchGeometry.getIndex()!==null,dstIndex=batchGeometry.getIndex(),srcIndex=geometry.getIndex(),geometryInfo=this._geometryInfo[geometryId];if(hasIndex&&srcIndex.count>geometryInfo.reservedIndexCount||geometry.attributes.position.count>geometryInfo.reservedVertexCount)throw Error(`THREE.BatchedMesh: Reserved space not large enough for provided geometry.`);let vertexStart=geometryInfo.vertexStart,reservedVertexCount=geometryInfo.reservedVertexCount;for(let attributeName in geometryInfo.vertexCount=geometry.getAttribute(`position`).count,batchGeometry.attributes){let srcAttribute=geometry.getAttribute(attributeName),dstAttribute=batchGeometry.getAttribute(attributeName);copyAttributeData(srcAttribute,dstAttribute,vertexStart);let itemSize=srcAttribute.itemSize;for(let i$1=srcAttribute.count,l$1=reservedVertexCount;i$1=geometryInfoList.length||geometryInfoList[geometryId].active===!1)return this;let instanceInfo=this._instanceInfo;for(let i$1=0,l$1=instanceInfo.length;i$1i$1).sort((a$2,b$3)=>geometryInfoList[a$2].vertexStart-geometryInfoList[b$3].vertexStart),geometry=this.geometry;for(let i$1=0,l$1=geometryInfoList.length;i$1=this._geometryCount)return null;let geometry=this.geometry,geometryInfo=this._geometryInfo[geometryId];if(geometryInfo.boundingBox===null){let box=new Box3,index$1=geometry.index,position$2=geometry.attributes.position;for(let i$1=geometryInfo.start,l$1=geometryInfo.start+geometryInfo.count;i$1=this._geometryCount)return null;let geometry=this.geometry,geometryInfo=this._geometryInfo[geometryId];if(geometryInfo.boundingSphere===null){let sphere=new Sphere;this.getBoundingBoxAt(geometryId,_box$1),_box$1.getCenter(sphere.center);let index$1=geometry.index,position$2=geometry.attributes.position,maxRadiusSq=0;for(let i$1=geometryInfo.start,l$1=geometryInfo.start+geometryInfo.count;i$1info.active),requiredVertexLength=Math.max(...validRanges.map(range=>range.vertexStart+range.reservedVertexCount));if(requiredVertexLength>maxVertexCount)throw Error(`BatchedMesh: Geometry vertex values are being used outside the range ${maxIndexCount}. Cannot shrink further.`);if(this.geometry.index){let requiredIndexLength=Math.max(...validRanges.map(range=>range.indexStart+range.reservedIndexCount));if(requiredIndexLength>maxIndexCount)throw Error(`BatchedMesh: Geometry index values are being used outside the range ${maxIndexCount}. Cannot shrink further.`)}let oldGeometry=this.geometry;oldGeometry.dispose(),this._maxVertexCount=maxVertexCount,this._maxIndexCount=maxIndexCount,this._geometryInitialized&&(this._geometryInitialized=!1,this.geometry=new BufferGeometry,this._initializeGeometry(oldGeometry));let geometry=this.geometry;for(let key$1 in oldGeometry.index&©ArrayContents(oldGeometry.index.array,geometry.index.array),oldGeometry.attributes)copyArrayContents(oldGeometry.attributes[key$1].array,geometry.attributes[key$1].array)}raycast(raycaster,intersects$1){let instanceInfo=this._instanceInfo,geometryInfoList=this._geometryInfo,matrixWorld=this.matrixWorld,batchGeometry=this.geometry;_mesh.material=this.material,_mesh.geometry.index=batchGeometry.index,_mesh.geometry.attributes=batchGeometry.attributes,_mesh.geometry.boundingBox===null&&(_mesh.geometry.boundingBox=new Box3),_mesh.geometry.boundingSphere===null&&(_mesh.geometry.boundingSphere=new Sphere);for(let i$1=0,l$1=instanceInfo.length;i$1({...info,boundingBox:info.boundingBox===null?null:info.boundingBox.clone(),boundingSphere:info.boundingSphere===null?null:info.boundingSphere.clone()})),this._instanceInfo=source._instanceInfo.map(info=>({...info})),this._availableInstanceIds=source._availableInstanceIds.slice(),this._availableGeometryIds=source._availableGeometryIds.slice(),this._nextIndexStart=source._nextIndexStart,this._nextVertexStart=source._nextVertexStart,this._geometryCount=source._geometryCount,this._maxInstanceCount=source._maxInstanceCount,this._maxVertexCount=source._maxVertexCount,this._maxIndexCount=source._maxIndexCount,this._geometryInitialized=source._geometryInitialized,this._multiDrawCounts=source._multiDrawCounts.slice(),this._multiDrawStarts=source._multiDrawStarts.slice(),this._indirectTexture=source._indirectTexture.clone(),this._indirectTexture.image.data=this._indirectTexture.image.data.slice(),this._matricesTexture=source._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.data.slice(),this._colorsTexture!==null&&(this._colorsTexture=source._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(renderer$1,scene,camera,geometry,material){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;let index$1=geometry.getIndex(),bytesPerElement=index$1===null?1:index$1.array.BYTES_PER_ELEMENT,instanceInfo=this._instanceInfo,multiDrawStarts=this._multiDrawStarts,multiDrawCounts=this._multiDrawCounts,geometryInfoList=this._geometryInfo,perObjectFrustumCulled=this.perObjectFrustumCulled,indirectTexture=this._indirectTexture,indirectArray=indirectTexture.image.data,frustum=camera.isArrayCamera?_frustumArray:_frustum;perObjectFrustumCulled&&!camera.isArrayCamera&&(_matrix$1.multiplyMatrices(camera.projectionMatrix,camera.matrixWorldInverse).multiply(this.matrixWorld),_frustum.setFromProjectionMatrix(_matrix$1,renderer$1.coordinateSystem));let multiDrawCount=0;if(this.sortObjects){_matrix$1.copy(this.matrixWorld).invert(),_vector$5.setFromMatrixPosition(camera.matrixWorld).applyMatrix4(_matrix$1),_forward$1.set(0,0,-1).transformDirection(camera.matrixWorld).transformDirection(_matrix$1);for(let i$1=0,l$1=instanceInfo.length;i$10){let morphAttribute=morphAttributes[keys$3[0]];if(morphAttribute!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let m$2=0,ml=morphAttribute.length;m$2thresholdSq)return;_intersectPointOnRay.applyMatrix4(object.matrixWorld);let distance=raycaster.ray.origin.distanceTo(_intersectPointOnRay);if(!(distanceraycaster.far))return{distance,point:_intersectPointOnSegment.clone().applyMatrix4(object.matrixWorld),index:i$1,face:null,faceIndex:null,barycoord:null,object}}const _start=new Vector3,_end=new Vector3;var LineSegments=class extends Line{constructor(geometry,material){super(geometry,material),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let geometry=this.geometry;if(geometry.index===null){let positionAttribute=geometry.attributes.position,lineDistances=[];for(let i$1=0,l$1=positionAttribute.count;i$10){let morphAttribute=morphAttributes[keys$3[0]];if(morphAttribute!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let m$2=0,ml=morphAttribute.length;m$2raycaster.far)return;intersects$1.push({distance,distanceToRay:Math.sqrt(rayPointDistanceSq),point:intersectPoint,index:index$1,face:null,faceIndex:null,barycoord:null,object})}}var VideoTexture=class extends Texture{constructor(video,mapping,wrapS,wrapT,magFilter=LinearFilter,minFilter=LinearFilter,format$2,type,anisotropy){super(video,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isVideoTexture=!0,this.generateMipmaps=!1;let scope=this;function updateVideo(){scope.needsUpdate=!0,video.requestVideoFrameCallback(updateVideo)}`requestVideoFrameCallback`in video&&video.requestVideoFrameCallback(updateVideo)}clone(){return new this.constructor(this.image).copy(this)}update(){let video=this.image,hasVideoFrameCallback=`requestVideoFrameCallback`in video;hasVideoFrameCallback===!1&&video.readyState>=video.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}},VideoFrameTexture=class extends VideoTexture{constructor(mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy){super({},mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isVideoFrameTexture=!0}update(){}clone(){return new this.constructor().copy(this)}setFrame(frame$1){this.image=frame$1,this.needsUpdate=!0}},FramebufferTexture=class extends Texture{constructor(width,height){super({width,height}),this.isFramebufferTexture=!0,this.magFilter=NearestFilter,this.minFilter=NearestFilter,this.generateMipmaps=!1,this.needsUpdate=!0}},CompressedTexture=class extends Texture{constructor(mipmaps,width,height,format$2,type,mapping,wrapS,wrapT,magFilter,minFilter,anisotropy,colorSpace){super(null,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy,colorSpace),this.isCompressedTexture=!0,this.image={width,height},this.mipmaps=mipmaps,this.flipY=!1,this.generateMipmaps=!1}},CompressedArrayTexture=class extends CompressedTexture{constructor(mipmaps,width,height,depth,format$2,type){super(mipmaps,width,height,format$2,type),this.isCompressedArrayTexture=!0,this.image.depth=depth,this.wrapR=ClampToEdgeWrapping,this.layerUpdates=new Set}addLayerUpdate(layerIndex){this.layerUpdates.add(layerIndex)}clearLayerUpdates(){this.layerUpdates.clear()}},CompressedCubeTexture=class extends CompressedTexture{constructor(images,format$2,type){super(void 0,images[0].width,images[0].height,format$2,type,CubeReflectionMapping),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=images}},CanvasTexture=class extends Texture{constructor(canvas,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy){super(canvas,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isCanvasTexture=!0,this.needsUpdate=!0}},DepthTexture=class extends Texture{constructor(width,height,type=UnsignedIntType,mapping,wrapS,wrapT,magFilter=NearestFilter,minFilter=NearestFilter,anisotropy,format$2=DepthFormat,depth=1){if(format$2!==DepthFormat&&format$2!==DepthStencilFormat)throw Error(`DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);let image$1={width,height,depth};super(image$1,mapping,wrapS,wrapT,magFilter,minFilter,format$2,type,anisotropy),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(source){return super.copy(source),this.source=new Source(Object.assign({},source.image)),this.compareFunction=source.compareFunction,this}toJSON(meta){let data$10=super.toJSON(meta);return this.compareFunction!==null&&(data$10.compareFunction=this.compareFunction),data$10}},CapsuleGeometry=class CapsuleGeometry extends BufferGeometry{constructor(radius=1,height=1,capSegments=4,radialSegments=8,heightSegments=1){super(),this.type=`CapsuleGeometry`,this.parameters={radius,height,capSegments,radialSegments,heightSegments},height=Math.max(0,height),capSegments=Math.max(1,Math.floor(capSegments)),radialSegments=Math.max(3,Math.floor(radialSegments)),heightSegments=Math.max(1,Math.floor(heightSegments));let indices=[],vertices=[],normals=[],uvs=[],halfHeight=height/2,capArcLength=Math.PI/2*radius,cylinderPartLength=height,totalArcLength=2*capArcLength+cylinderPartLength,numVerticalSegments=capSegments*2+heightSegments,verticesPerRow=radialSegments+1,normal=new Vector3,vertex$10=new Vector3;for(let iy=0;iy<=numVerticalSegments;iy++){let currentArcLength=0,profileY=0,profileRadius=0,normalYComponent=0;if(iy<=capSegments){let segmentProgress=iy/capSegments,angle=segmentProgress*Math.PI/2;profileY=-halfHeight-radius*Math.cos(angle),profileRadius=radius*Math.sin(angle),normalYComponent=-radius*Math.cos(angle),currentArcLength=segmentProgress*capArcLength}else if(iy<=capSegments+heightSegments){let segmentProgress=(iy-capSegments)/heightSegments;profileY=-halfHeight+segmentProgress*height,profileRadius=radius,normalYComponent=0,currentArcLength=capArcLength+segmentProgress*cylinderPartLength}else{let segmentProgress=(iy-capSegments-heightSegments)/capSegments,angle=segmentProgress*Math.PI/2;profileY=halfHeight+radius*Math.sin(angle),profileRadius=radius*Math.cos(angle),normalYComponent=radius*Math.sin(angle),currentArcLength=capArcLength+cylinderPartLength+segmentProgress*capArcLength}let v$1=Math.max(0,Math.min(1,currentArcLength/totalArcLength)),uOffset=0;iy===0?uOffset=.5/radialSegments:iy===numVerticalSegments&&(uOffset=-.5/radialSegments);for(let ix=0;ix<=radialSegments;ix++){let u$1=ix/radialSegments,theta=u$1*Math.PI*2,sinTheta=Math.sin(theta),cosTheta=Math.cos(theta);vertex$10.x=-profileRadius*cosTheta,vertex$10.y=profileY,vertex$10.z=profileRadius*sinTheta,vertices.push(vertex$10.x,vertex$10.y,vertex$10.z),normal.set(-profileRadius*cosTheta,normalYComponent,profileRadius*sinTheta),normal.normalize(),normals.push(normal.x,normal.y,normal.z),uvs.push(u$1+uOffset,v$1)}if(iy>0){let prevIndexRow=(iy-1)*verticesPerRow;for(let ix=0;ix0&&generateCap(!0),radiusBottom>0&&generateCap(!1)),this.setIndex(indices),this.setAttribute(`position`,new Float32BufferAttribute(vertices,3)),this.setAttribute(`normal`,new Float32BufferAttribute(normals,3)),this.setAttribute(`uv`,new Float32BufferAttribute(uvs,2));function generateTorso(){let normal=new Vector3,vertex$10=new Vector3,groupCount=0,slope=(radiusBottom-radiusTop)/height;for(let y$2=0;y$2<=heightSegments;y$2++){let indexRow=[],v$1=y$2/heightSegments,radius=v$1*(radiusBottom-radiusTop)+radiusTop;for(let x$3=0;x$3<=radialSegments;x$3++){let u$1=x$3/radialSegments,theta=u$1*thetaLength+thetaStart,sinTheta=Math.sin(theta),cosTheta=Math.cos(theta);vertex$10.x=radius*sinTheta,vertex$10.y=-v$1*height+halfHeight,vertex$10.z=radius*cosTheta,vertices.push(vertex$10.x,vertex$10.y,vertex$10.z),normal.set(sinTheta,slope,cosTheta).normalize(),normals.push(normal.x,normal.y,normal.z),uvs.push(u$1,1-v$1),indexRow.push(index$1++)}indexArray.push(indexRow)}for(let x$3=0;x$30||y$2!==0)&&(indices.push(a$2,b$3,d$2),groupCount+=3),(radiusBottom>0||y$2!==heightSegments-1)&&(indices.push(b$3,c$4,d$2),groupCount+=3)}scope.addGroup(groupStart,groupCount,0),groupStart+=groupCount}function generateCap(top){let centerIndexStart=index$1,uv=new Vector2,vertex$10=new Vector3,groupCount=0,radius=top===!0?radiusTop:radiusBottom,sign$1=top===!0?1:-1;for(let x$3=1;x$3<=radialSegments;x$3++)vertices.push(0,halfHeight*sign$1,0),normals.push(0,sign$1,0),uvs.push(.5,.5),index$1++;let centerIndexEnd=index$1;for(let x$3=0;x$3<=radialSegments;x$3++){let u$1=x$3/radialSegments,theta=u$1*thetaLength+thetaStart,cosTheta=Math.cos(theta),sinTheta=Math.sin(theta);vertex$10.x=radius*sinTheta,vertex$10.y=halfHeight*sign$1,vertex$10.z=radius*cosTheta,vertices.push(vertex$10.x,vertex$10.y,vertex$10.z),normals.push(0,sign$1,0),uv.x=cosTheta*.5+.5,uv.y=sinTheta*.5*sign$1+.5,uvs.push(uv.x,uv.y),index$1++}for(let x$3=0;x$3.9&&min$1<.1&&(x0<.2&&(uvBuffer[i$1+0]+=1),x1<.2&&(uvBuffer[i$1+2]+=1),x2<.2&&(uvBuffer[i$1+4]+=1))}}function pushVertex(vertex$10){vertexBuffer.push(vertex$10.x,vertex$10.y,vertex$10.z)}function getVertexByIndex(index$1,vertex$10){let stride=index$1*3;vertex$10.x=vertices[stride+0],vertex$10.y=vertices[stride+1],vertex$10.z=vertices[stride+2]}function correctUVs(){let a$2=new Vector3,b$3=new Vector3,c$4=new Vector3,centroid=new Vector3,uvA=new Vector2,uvB=new Vector2,uvC=new Vector2;for(let i$1=0,j$1=0;i$10)high=i$1-1;else{high=i$1;break}if(i$1=high,arcLengths[i$1]===targetArcLength)return i$1/(il-1);let lengthBefore=arcLengths[i$1],lengthAfter=arcLengths[i$1+1],segmentLength=lengthAfter-lengthBefore,segmentFraction=(targetArcLength-lengthBefore)/segmentLength,t=(i$1+segmentFraction)/(il-1);return t}getTangent(t,optionalTarget){let delta=1e-4,t1=t-delta,t2=t+delta;t1<0&&(t1=0),t2>1&&(t2=1);let pt1=this.getPoint(t1),pt2=this.getPoint(t2),tangent=optionalTarget||(pt1.isVector2?new Vector2:new Vector3);return tangent.copy(pt2).sub(pt1).normalize(),tangent}getTangentAt(u$1,optionalTarget){let t=this.getUtoTmapping(u$1);return this.getTangent(t,optionalTarget)}computeFrenetFrames(segments,closed$1=!1){let normal=new Vector3,tangents=[],normals=[],binormals=[],vec=new Vector3,mat=new Matrix4;for(let i$1=0;i$1<=segments;i$1++){let u$1=i$1/segments;tangents[i$1]=this.getTangentAt(u$1,new Vector3)}normals[0]=new Vector3,binormals[0]=new Vector3;let min$1=Number.MAX_VALUE,tx=Math.abs(tangents[0].x),ty=Math.abs(tangents[0].y),tz=Math.abs(tangents[0].z);tx<=min$1&&(min$1=tx,normal.set(1,0,0)),ty<=min$1&&(min$1=ty,normal.set(0,1,0)),tz<=min$1&&normal.set(0,0,1),vec.crossVectors(tangents[0],normal).normalize(),normals[0].crossVectors(tangents[0],vec),binormals[0].crossVectors(tangents[0],normals[0]);for(let i$1=1;i$1<=segments;i$1++){if(normals[i$1]=normals[i$1-1].clone(),binormals[i$1]=binormals[i$1-1].clone(),vec.crossVectors(tangents[i$1-1],tangents[i$1]),vec.length()>2**-52){vec.normalize();let theta=Math.acos(clamp$6(tangents[i$1-1].dot(tangents[i$1]),-1,1));normals[i$1].applyMatrix4(mat.makeRotationAxis(vec,theta))}binormals[i$1].crossVectors(tangents[i$1],normals[i$1])}if(closed$1===!0){let theta=Math.acos(clamp$6(normals[0].dot(normals[segments]),-1,1));theta/=segments,tangents[0].dot(vec.crossVectors(normals[0],normals[segments]))>0&&(theta=-theta);for(let i$1=1;i$1<=segments;i$1++)normals[i$1].applyMatrix4(mat.makeRotationAxis(tangents[i$1],theta*i$1)),binormals[i$1].crossVectors(tangents[i$1],normals[i$1])}return{tangents,normals,binormals}}clone(){return new this.constructor().copy(this)}copy(source){return this.arcLengthDivisions=source.arcLengthDivisions,this}toJSON(){let data$10={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return data$10.arcLengthDivisions=this.arcLengthDivisions,data$10.type=this.type,data$10}fromJSON(json){return this.arcLengthDivisions=json.arcLengthDivisions,this}},EllipseCurve=class extends Curve{constructor(aX=0,aY=0,xRadius=1,yRadius=1,aStartAngle=0,aEndAngle=Math.PI*2,aClockwise=!1,aRotation=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=aX,this.aY=aY,this.xRadius=xRadius,this.yRadius=yRadius,this.aStartAngle=aStartAngle,this.aEndAngle=aEndAngle,this.aClockwise=aClockwise,this.aRotation=aRotation}getPoint(t,optionalTarget=new Vector2){let point$3=optionalTarget,twoPi=Math.PI*2,deltaAngle=this.aEndAngle-this.aStartAngle,samePoints=Math.abs(deltaAngle)<2**-52;for(;deltaAngle<0;)deltaAngle+=twoPi;for(;deltaAngle>twoPi;)deltaAngle-=twoPi;deltaAngle<2**-52&&(deltaAngle=samePoints?0:twoPi),this.aClockwise===!0&&!samePoints&&(deltaAngle===twoPi?deltaAngle=-twoPi:deltaAngle-=twoPi);let angle=this.aStartAngle+t*deltaAngle,x$3=this.aX+this.xRadius*Math.cos(angle),y$2=this.aY+this.yRadius*Math.sin(angle);if(this.aRotation!==0){let cos=Math.cos(this.aRotation),sin=Math.sin(this.aRotation),tx=x$3-this.aX,ty=y$2-this.aY;x$3=tx*cos-ty*sin+this.aX,y$2=tx*sin+ty*cos+this.aY}return point$3.set(x$3,y$2)}copy(source){return super.copy(source),this.aX=source.aX,this.aY=source.aY,this.xRadius=source.xRadius,this.yRadius=source.yRadius,this.aStartAngle=source.aStartAngle,this.aEndAngle=source.aEndAngle,this.aClockwise=source.aClockwise,this.aRotation=source.aRotation,this}toJSON(){let data$10=super.toJSON();return data$10.aX=this.aX,data$10.aY=this.aY,data$10.xRadius=this.xRadius,data$10.yRadius=this.yRadius,data$10.aStartAngle=this.aStartAngle,data$10.aEndAngle=this.aEndAngle,data$10.aClockwise=this.aClockwise,data$10.aRotation=this.aRotation,data$10}fromJSON(json){return super.fromJSON(json),this.aX=json.aX,this.aY=json.aY,this.xRadius=json.xRadius,this.yRadius=json.yRadius,this.aStartAngle=json.aStartAngle,this.aEndAngle=json.aEndAngle,this.aClockwise=json.aClockwise,this.aRotation=json.aRotation,this}},ArcCurve=class extends EllipseCurve{constructor(aX,aY,aRadius,aStartAngle,aEndAngle,aClockwise){super(aX,aY,aRadius,aRadius,aStartAngle,aEndAngle,aClockwise),this.isArcCurve=!0,this.type=`ArcCurve`}};function CubicPoly(){let c0=0,c1=0,c2=0,c3=0;function init(x0,x1,t0,t1){c0=x0,c1=t0,c2=-3*x0+3*x1-2*t0-t1,c3=2*x0-2*x1+t0+t1}return{initCatmullRom:function(x0,x1,x2,x3,tension){init(x1,x2,tension*(x2-x0),tension*(x3-x1))},initNonuniformCatmullRom:function(x0,x1,x2,x3,dt0,dt1,dt2){let t1=(x1-x0)/dt0-(x2-x0)/(dt0+dt1)+(x2-x1)/dt1,t2=(x2-x1)/dt1-(x3-x1)/(dt1+dt2)+(x3-x2)/dt2;t1*=dt1,t2*=dt1,init(x1,x2,t1,t2)},calc:function(t){let t2=t*t,t3=t2*t;return c0+c1*t+c2*t2+c3*t3}}}const tmp=new Vector3,px$1=new CubicPoly,py=new CubicPoly,pz=new CubicPoly;var CatmullRomCurve3=class extends Curve{constructor(points=[],closed$1=!1,curveType=`centripetal`,tension=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=points,this.closed=closed$1,this.curveType=curveType,this.tension=tension}getPoint(t,optionalTarget=new Vector3){let point$3=optionalTarget,points=this.points,l$1=points.length,p$5=(l$1-(this.closed?0:1))*t,intPoint=Math.floor(p$5),weight=p$5-intPoint;this.closed?intPoint+=intPoint>0?0:(Math.floor(Math.abs(intPoint)/l$1)+1)*l$1:weight===0&&intPoint===l$1-1&&(intPoint=l$1-2,weight=1);let p0,p3$1;this.closed||intPoint>0?p0=points[(intPoint-1)%l$1]:(tmp.subVectors(points[0],points[1]).add(points[0]),p0=tmp);let p1=points[intPoint%l$1],p2=points[(intPoint+1)%l$1];if(this.closed||intPoint+2points.length-2?points.length-1:intPoint+1],p3$1=points[intPoint>points.length-3?points.length-1:intPoint+2];return point$3.set(CatmullRom(weight,p0.x,p1.x,p2.x,p3$1.x),CatmullRom(weight,p0.y,p1.y,p2.y,p3$1.y)),point$3}copy(source){super.copy(source),this.points=[];for(let i$1=0,l$1=source.points.length;i$1=d$2){let diff=curveLengths[i$1]-d$2,curve=this.curves[i$1],segmentLength=curve.getLength(),u$1=segmentLength===0?0:1-diff/segmentLength;return curve.getPointAt(u$1,optionalTarget)}i$1++}return null}getLength(){let lens=this.getCurveLengths();return lens[lens.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 lengths=[],sums=0;for(let i$1=0,l$1=this.curves.length;i$11&&!points[points.length-1].equals(points[0])&&points.push(points[0]),points}copy(source){super.copy(source),this.curves=[];for(let i$1=0,l$1=source.curves.length;i$10){let firstPoint=curve.getPoint(0);firstPoint.equals(this.currentPoint)||this.lineTo(firstPoint.x,firstPoint.y)}this.curves.push(curve);let lastPoint=curve.getPoint(1);return this.currentPoint.copy(lastPoint),this}copy(source){return super.copy(source),this.currentPoint.copy(source.currentPoint),this}toJSON(){let data$10=super.toJSON();return data$10.currentPoint=this.currentPoint.toArray(),data$10}fromJSON(json){return super.fromJSON(json),this.currentPoint.fromArray(json.currentPoint),this}},Shape=class extends Path{constructor(points){super(points),this.uuid=generateUUID(),this.type=`Shape`,this.holes=[]}getPointsHoles(divisions){let holesPts=[];for(let i$1=0,l$1=this.holes.length;i$180*dim){minX=1/0,minY=1/0;let maxX=-1/0,maxY=-1/0;for(let i$1=dim;i$1maxX&&(maxX=x$3),y$2>maxY&&(maxY=y$2)}invSize=Math.max(maxX-minX,maxY-minY),invSize=invSize===0?0:32767/invSize}return earcutLinked(outerNode,triangles,dim,minX,minY,invSize,0),triangles}function linkedList(data$10,start,end,dim,clockwise){let last;if(clockwise===signedArea(data$10,start,end,dim)>0)for(let i$1=start;i$1=start;i$1-=dim)last=insertNode(i$1/dim|0,data$10[i$1],data$10[i$1+1],last);return last&&equals(last,last.next)&&(removeNode(last),last=last.next),last}function filterPoints(start,end){if(!start)return start;end||=start;let p$5=start,again;do if(again=!1,!p$5.steiner&&(equals(p$5,p$5.next)||area(p$5.prev,p$5,p$5.next)===0)){if(removeNode(p$5),p$5=end=p$5.prev,p$5===p$5.next)break;again=!0}else p$5=p$5.next;while(again||p$5!==end);return end}function earcutLinked(ear,triangles,dim,minX,minY,invSize,pass){if(!ear)return;!pass&&invSize&&indexCurve(ear,minX,minY,invSize);let stop$1=ear;for(;ear.prev!==ear.next;){let prev=ear.prev,next=ear.next;if(invSize?isEarHashed(ear,minX,minY,invSize):isEar(ear)){triangles.push(prev.i,ear.i,next.i),removeNode(ear),ear=next.next,stop$1=next.next;continue}if(ear=next,ear===stop$1){pass?pass===1?(ear=cureLocalIntersections(filterPoints(ear),triangles),earcutLinked(ear,triangles,dim,minX,minY,invSize,2)):pass===2&&splitEarcut(ear,triangles,dim,minX,minY,invSize):earcutLinked(filterPoints(ear),triangles,dim,minX,minY,invSize,1);break}}}function isEar(ear){let a$2=ear.prev,b$3=ear,c$4=ear.next;if(area(a$2,b$3,c$4)>=0)return!1;let ax=a$2.x,bx=b$3.x,cx=c$4.x,ay=a$2.y,by=b$3.y,cy=c$4.y,x0=Math.min(ax,bx,cx),y0=Math.min(ay,by,cy),x1=Math.max(ax,bx,cx),y1=Math.max(ay,by,cy),p$5=c$4.next;for(;p$5!==a$2;){if(p$5.x>=x0&&p$5.x<=x1&&p$5.y>=y0&&p$5.y<=y1&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,p$5.x,p$5.y)&&area(p$5.prev,p$5,p$5.next)>=0)return!1;p$5=p$5.next}return!0}function isEarHashed(ear,minX,minY,invSize){let a$2=ear.prev,b$3=ear,c$4=ear.next;if(area(a$2,b$3,c$4)>=0)return!1;let ax=a$2.x,bx=b$3.x,cx=c$4.x,ay=a$2.y,by=b$3.y,cy=c$4.y,x0=Math.min(ax,bx,cx),y0=Math.min(ay,by,cy),x1=Math.max(ax,bx,cx),y1=Math.max(ay,by,cy),minZ=zOrder(x0,y0,minX,minY,invSize),maxZ=zOrder(x1,y1,minX,minY,invSize),p$5=ear.prevZ,n$2=ear.nextZ;for(;p$5&&p$5.z>=minZ&&n$2&&n$2.z<=maxZ;){if(p$5.x>=x0&&p$5.x<=x1&&p$5.y>=y0&&p$5.y<=y1&&p$5!==a$2&&p$5!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,p$5.x,p$5.y)&&area(p$5.prev,p$5,p$5.next)>=0||(p$5=p$5.prevZ,n$2.x>=x0&&n$2.x<=x1&&n$2.y>=y0&&n$2.y<=y1&&n$2!==a$2&&n$2!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,n$2.x,n$2.y)&&area(n$2.prev,n$2,n$2.next)>=0))return!1;n$2=n$2.nextZ}for(;p$5&&p$5.z>=minZ;){if(p$5.x>=x0&&p$5.x<=x1&&p$5.y>=y0&&p$5.y<=y1&&p$5!==a$2&&p$5!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,p$5.x,p$5.y)&&area(p$5.prev,p$5,p$5.next)>=0)return!1;p$5=p$5.prevZ}for(;n$2&&n$2.z<=maxZ;){if(n$2.x>=x0&&n$2.x<=x1&&n$2.y>=y0&&n$2.y<=y1&&n$2!==a$2&&n$2!==c$4&&pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,n$2.x,n$2.y)&&area(n$2.prev,n$2,n$2.next)>=0)return!1;n$2=n$2.nextZ}return!0}function cureLocalIntersections(start,triangles){let p$5=start;do{let a$2=p$5.prev,b$3=p$5.next.next;!equals(a$2,b$3)&&intersects(a$2,p$5,p$5.next,b$3)&&locallyInside(a$2,b$3)&&locallyInside(b$3,a$2)&&(triangles.push(a$2.i,p$5.i,b$3.i),removeNode(p$5),removeNode(p$5.next),p$5=start=b$3),p$5=p$5.next}while(p$5!==start);return filterPoints(p$5)}function splitEarcut(start,triangles,dim,minX,minY,invSize){let a$2=start;do{let b$3=a$2.next.next;for(;b$3!==a$2.prev;){if(a$2.i!==b$3.i&&isValidDiagonal(a$2,b$3)){let c$4=splitPolygon(a$2,b$3);a$2=filterPoints(a$2,a$2.next),c$4=filterPoints(c$4,c$4.next),earcutLinked(a$2,triangles,dim,minX,minY,invSize,0),earcutLinked(c$4,triangles,dim,minX,minY,invSize,0);return}b$3=b$3.next}a$2=a$2.next}while(a$2!==start)}function eliminateHoles(data$10,holeIndices,outerNode,dim){let queue$1=[];for(let i$1=0,len=holeIndices.length;i$1=p$5.next.y&&p$5.next.y!==p$5.y){let x$3=p$5.x+(hy-p$5.y)*(p$5.next.x-p$5.x)/(p$5.next.y-p$5.y);if(x$3<=hx&&x$3>qx&&(qx=x$3,m$2=p$5.x=p$5.x&&p$5.x>=mx&&hx!==p$5.x&&pointInTriangle(hym$2.x||p$5.x===m$2.x&§orContainsSector(m$2,p$5)))&&(m$2=p$5,tanMin=tan)}p$5=p$5.next}while(p$5!==stop$1);return m$2}function sectorContainsSector(m$2,p$5){return area(m$2.prev,m$2,p$5.prev)<0&&area(p$5.next,m$2,m$2.next)<0}function indexCurve(start,minX,minY,invSize){let p$5=start;do p$5.z===0&&(p$5.z=zOrder(p$5.x,p$5.y,minX,minY,invSize)),p$5.prevZ=p$5.prev,p$5.nextZ=p$5.next,p$5=p$5.next;while(p$5!==start);p$5.prevZ.nextZ=null,p$5.prevZ=null,sortLinked(p$5)}function sortLinked(list$2){let numMerges,inSize=1;do{let p$5=list$2,e$3;list$2=null;let tail=null;for(numMerges=0;p$5;){numMerges++;let q$1=p$5,pSize=0;for(let i$1=0;i$10||qSize>0&&q$1;)pSize!==0&&(qSize===0||!q$1||p$5.z<=q$1.z)?(e$3=p$5,p$5=p$5.nextZ,pSize--):(e$3=q$1,q$1=q$1.nextZ,qSize--),tail?tail.nextZ=e$3:list$2=e$3,e$3.prevZ=tail,tail=e$3;p$5=q$1}tail.nextZ=null,inSize*=2}while(numMerges>1);return list$2}function zOrder(x$3,y$2,minX,minY,invSize){return x$3=(x$3-minX)*invSize|0,y$2=(y$2-minY)*invSize|0,x$3=(x$3|x$3<<8)&16711935,x$3=(x$3|x$3<<4)&252645135,x$3=(x$3|x$3<<2)&858993459,x$3=(x$3|x$3<<1)&1431655765,y$2=(y$2|y$2<<8)&16711935,y$2=(y$2|y$2<<4)&252645135,y$2=(y$2|y$2<<2)&858993459,y$2=(y$2|y$2<<1)&1431655765,x$3|y$2<<1}function getLeftmost(start){let p$5=start,leftmost=start;do(p$5.x=(ax-px$2)*(cy-py$1)&&(ax-px$2)*(by-py$1)>=(bx-px$2)*(ay-py$1)&&(bx-px$2)*(cy-py$1)>=(cx-px$2)*(by-py$1)}function pointInTriangleExceptFirst(ax,ay,bx,by,cx,cy,px$2,py$1){return!(ax===px$2&&ay===py$1)&&pointInTriangle(ax,ay,bx,by,cx,cy,px$2,py$1)}function isValidDiagonal(a$2,b$3){return a$2.next.i!==b$3.i&&a$2.prev.i!==b$3.i&&!intersectsPolygon(a$2,b$3)&&(locallyInside(a$2,b$3)&&locallyInside(b$3,a$2)&&middleInside(a$2,b$3)&&(area(a$2.prev,a$2,b$3.prev)||area(a$2,b$3.prev,b$3))||equals(a$2,b$3)&&area(a$2.prev,a$2,a$2.next)>0&&area(b$3.prev,b$3,b$3.next)>0)}function area(p$5,q$1,r$2){return(q$1.y-p$5.y)*(r$2.x-q$1.x)-(q$1.x-p$5.x)*(r$2.y-q$1.y)}function equals(p1,p2){return p1.x===p2.x&&p1.y===p2.y}function intersects(p1,q1,p2,q2){let o1=sign(area(p1,q1,p2)),o2=sign(area(p1,q1,q2)),o3=sign(area(p2,q2,p1)),o4=sign(area(p2,q2,q1));return!!(o1!==o2&&o3!==o4||o1===0&&onSegment(p1,p2,q1)||o2===0&&onSegment(p1,q2,q1)||o3===0&&onSegment(p2,p1,q2)||o4===0&&onSegment(p2,q1,q2))}function onSegment(p$5,q$1,r$2){return q$1.x<=Math.max(p$5.x,r$2.x)&&q$1.x>=Math.min(p$5.x,r$2.x)&&q$1.y<=Math.max(p$5.y,r$2.y)&&q$1.y>=Math.min(p$5.y,r$2.y)}function sign(num$2){return num$2>0?1:num$2<0?-1:0}function intersectsPolygon(a$2,b$3){let p$5=a$2;do{if(p$5.i!==a$2.i&&p$5.next.i!==a$2.i&&p$5.i!==b$3.i&&p$5.next.i!==b$3.i&&intersects(p$5,p$5.next,a$2,b$3))return!0;p$5=p$5.next}while(p$5!==a$2);return!1}function locallyInside(a$2,b$3){return area(a$2.prev,a$2,a$2.next)<0?area(a$2,b$3,a$2.next)>=0&&area(a$2,a$2.prev,b$3)>=0:area(a$2,b$3,a$2.prev)<0||area(a$2,a$2.next,b$3)<0}function middleInside(a$2,b$3){let p$5=a$2,inside=!1,px$2=(a$2.x+b$3.x)/2,py$1=(a$2.y+b$3.y)/2;do p$5.y>py$1!=p$5.next.y>py$1&&p$5.next.y!==p$5.y&&px$2<(p$5.next.x-p$5.x)*(py$1-p$5.y)/(p$5.next.y-p$5.y)+p$5.x&&(inside=!inside),p$5=p$5.next;while(p$5!==a$2);return inside}function splitPolygon(a$2,b$3){let a2=createNode(a$2.i,a$2.x,a$2.y),b2=createNode(b$3.i,b$3.x,b$3.y),an$1=a$2.next,bp=b$3.prev;return a$2.next=b$3,b$3.prev=a$2,a2.next=an$1,an$1.prev=a2,b2.next=a2,a2.prev=b2,bp.next=b2,b2.prev=bp,b2}function insertNode(i$1,x$3,y$2,last){let p$5=createNode(i$1,x$3,y$2);return last?(p$5.next=last.next,p$5.prev=last,last.next.prev=p$5,last.next=p$5):(p$5.prev=p$5,p$5.next=p$5),p$5}function removeNode(p$5){p$5.next.prev=p$5.prev,p$5.prev.next=p$5.next,p$5.prevZ&&(p$5.prevZ.nextZ=p$5.nextZ),p$5.nextZ&&(p$5.nextZ.prevZ=p$5.prevZ)}function createNode(i$1,x$3,y$2){return{i:i$1,x:x$3,y:y$2,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function signedArea(data$10,start,end,dim){let sum=0;for(let i$1=start,j$1=end-dim;i$12&&points[l$1-1].equals(points[0])&&points.pop()}function addContour(vertices,contour){for(let i$1=0;i$12**-52){let v_prev_len=Math.sqrt(v_prev_lensq),v_next_len=Math.sqrt(v_next_x*v_next_x+v_next_y*v_next_y),ptPrevShift_x=inPrev.x-v_prev_y/v_prev_len,ptPrevShift_y=inPrev.y+v_prev_x/v_prev_len,ptNextShift_x=inNext.x-v_next_y/v_next_len,ptNextShift_y=inNext.y+v_next_x/v_next_len,sf=((ptNextShift_x-ptPrevShift_x)*v_next_y-(ptNextShift_y-ptPrevShift_y)*v_next_x)/(v_prev_x*v_next_y-v_prev_y*v_next_x);v_trans_x=ptPrevShift_x+v_prev_x*sf-inPt.x,v_trans_y=ptPrevShift_y+v_prev_y*sf-inPt.y;let v_trans_lensq=v_trans_x*v_trans_x+v_trans_y*v_trans_y;if(v_trans_lensq<=2)return new Vector2(v_trans_x,v_trans_y);shrink_by=Math.sqrt(v_trans_lensq/2)}else{let direction_eq=!1;v_prev_x>2**-52?v_next_x>2**-52&&(direction_eq=!0):v_prev_x<-(2**-52)?v_next_x<-(2**-52)&&(direction_eq=!0):Math.sign(v_prev_y)===Math.sign(v_next_y)&&(direction_eq=!0),direction_eq?(v_trans_x=-v_prev_y,v_trans_y=v_prev_x,shrink_by=Math.sqrt(v_prev_lensq)):(v_trans_x=v_prev_x,v_trans_y=v_prev_y,shrink_by=Math.sqrt(v_prev_lensq/2))}return new Vector2(v_trans_x/shrink_by,v_trans_y/shrink_by)}let contourMovements=[];for(let i$1=0,il=contour.length,j$1=il-1,k$4=i$1+1;i$1=0;b$3--){let t=b$3/bevelSegments,z$2=bevelThickness*Math.cos(t*Math.PI/2),bs$1=bevelSize*Math.sin(t*Math.PI/2)+bevelOffset;for(let i$1=0,il=contour.length;i$1=0;){let j$1=i$1,k$4=i$1-1;k$4<0&&(k$4=contour$1.length-1);for(let s$1=0,sl=steps$1+bevelSegments*2;s$10)&&indices.push(a$2,b$3,d$2),(iy!==heightSegments-1||thetaEnd0!=value$1>0&&this.version++,this._anisotropy=value$1}get clearcoat(){return this._clearcoat}set clearcoat(value$1){this._clearcoat>0!=value$1>0&&this.version++,this._clearcoat=value$1}get iridescence(){return this._iridescence}set iridescence(value$1){this._iridescence>0!=value$1>0&&this.version++,this._iridescence=value$1}get dispersion(){return this._dispersion}set dispersion(value$1){this._dispersion>0!=value$1>0&&this.version++,this._dispersion=value$1}get sheen(){return this._sheen}set sheen(value$1){this._sheen>0!=value$1>0&&this.version++,this._sheen=value$1}get transmission(){return this._transmission}set transmission(value$1){this._transmission>0!=value$1>0&&this.version++,this._transmission=value$1}copy(source){return super.copy(source),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=source.anisotropy,this.anisotropyRotation=source.anisotropyRotation,this.anisotropyMap=source.anisotropyMap,this.clearcoat=source.clearcoat,this.clearcoatMap=source.clearcoatMap,this.clearcoatRoughness=source.clearcoatRoughness,this.clearcoatRoughnessMap=source.clearcoatRoughnessMap,this.clearcoatNormalMap=source.clearcoatNormalMap,this.clearcoatNormalScale.copy(source.clearcoatNormalScale),this.dispersion=source.dispersion,this.ior=source.ior,this.iridescence=source.iridescence,this.iridescenceMap=source.iridescenceMap,this.iridescenceIOR=source.iridescenceIOR,this.iridescenceThicknessRange=[...source.iridescenceThicknessRange],this.iridescenceThicknessMap=source.iridescenceThicknessMap,this.sheen=source.sheen,this.sheenColor.copy(source.sheenColor),this.sheenColorMap=source.sheenColorMap,this.sheenRoughness=source.sheenRoughness,this.sheenRoughnessMap=source.sheenRoughnessMap,this.transmission=source.transmission,this.transmissionMap=source.transmissionMap,this.thickness=source.thickness,this.thicknessMap=source.thicknessMap,this.attenuationDistance=source.attenuationDistance,this.attenuationColor.copy(source.attenuationColor),this.specularIntensity=source.specularIntensity,this.specularIntensityMap=source.specularIntensityMap,this.specularColor.copy(source.specularColor),this.specularColorMap=source.specularColorMap,this}},MeshPhongMaterial=class extends Material{constructor(parameters){super(),this.isMeshPhongMaterial=!0,this.type=`MeshPhongMaterial`,this.color=new Color(16777215),this.specular=new Color(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Euler,this.combine=MultiplyOperation,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(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.specular.copy(source.specular),this.shininess=source.shininess,this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapRotation.copy(source.envMapRotation),this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}},MeshToonMaterial=class extends Material{constructor(parameters){super(),this.isMeshToonMaterial=!0,this.defines={TOON:``},this.type=`MeshToonMaterial`,this.color=new Color(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(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(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.gradientMap=source.gradientMap,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.alphaMap=source.alphaMap,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.fog=source.fog,this}},MeshNormalMaterial=class extends Material{constructor(parameters){super(),this.isMeshNormalMaterial=!0,this.type=`MeshNormalMaterial`,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(parameters)}copy(source){return super.copy(source),this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.flatShading=source.flatShading,this}},MeshLambertMaterial=class extends Material{constructor(parameters){super(),this.isMeshLambertMaterial=!0,this.type=`MeshLambertMaterial`,this.color=new Color(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Euler,this.combine=MultiplyOperation,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(parameters)}copy(source){return super.copy(source),this.color.copy(source.color),this.map=source.map,this.lightMap=source.lightMap,this.lightMapIntensity=source.lightMapIntensity,this.aoMap=source.aoMap,this.aoMapIntensity=source.aoMapIntensity,this.emissive.copy(source.emissive),this.emissiveMap=source.emissiveMap,this.emissiveIntensity=source.emissiveIntensity,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.specularMap=source.specularMap,this.alphaMap=source.alphaMap,this.envMap=source.envMap,this.envMapRotation.copy(source.envMapRotation),this.combine=source.combine,this.reflectivity=source.reflectivity,this.refractionRatio=source.refractionRatio,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this.wireframeLinecap=source.wireframeLinecap,this.wireframeLinejoin=source.wireframeLinejoin,this.flatShading=source.flatShading,this.fog=source.fog,this}},MeshDepthMaterial=class extends Material{constructor(parameters){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=BasicDepthPacking,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(parameters)}copy(source){return super.copy(source),this.depthPacking=source.depthPacking,this.map=source.map,this.alphaMap=source.alphaMap,this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.wireframe=source.wireframe,this.wireframeLinewidth=source.wireframeLinewidth,this}},MeshDistanceMaterial=class extends Material{constructor(parameters){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(parameters)}copy(source){return super.copy(source),this.map=source.map,this.alphaMap=source.alphaMap,this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this}},MeshMatcapMaterial=class extends Material{constructor(parameters){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:``},this.type=`MeshMatcapMaterial`,this.color=new Color(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=TangentSpaceNormalMap,this.normalScale=new Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(parameters)}copy(source){return super.copy(source),this.defines={MATCAP:``},this.color.copy(source.color),this.matcap=source.matcap,this.map=source.map,this.bumpMap=source.bumpMap,this.bumpScale=source.bumpScale,this.normalMap=source.normalMap,this.normalMapType=source.normalMapType,this.normalScale.copy(source.normalScale),this.displacementMap=source.displacementMap,this.displacementScale=source.displacementScale,this.displacementBias=source.displacementBias,this.alphaMap=source.alphaMap,this.flatShading=source.flatShading,this.fog=source.fog,this}},LineDashedMaterial=class extends LineBasicMaterial{constructor(parameters){super(),this.isLineDashedMaterial=!0,this.type=`LineDashedMaterial`,this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(parameters)}copy(source){return super.copy(source),this.scale=source.scale,this.dashSize=source.dashSize,this.gapSize=source.gapSize,this}};function convertArray(array,type){return!array||array.constructor===type?array:typeof type.BYTES_PER_ELEMENT==`number`?new type(array):Array.prototype.slice.call(array)}function isTypedArray(object){return ArrayBuffer.isView(object)&&!(object instanceof DataView)}function getKeyframeOrder(times){function compareTime(i$1,j$1){return times[i$1]-times[j$1]}let n$2=times.length,result=Array(n$2);for(let i$1=0;i$1!==n$2;++i$1)result[i$1]=i$1;return result.sort(compareTime),result}function sortedArray(values,stride,order$3){let nValues=values.length,result=new values.constructor(nValues);for(let i$1=0,dstOffset=0;dstOffset!==nValues;++i$1){let srcOffset=order$3[i$1]*stride;for(let j$1=0;j$1!==stride;++j$1)result[dstOffset++]=values[srcOffset+j$1]}return result}function flattenJSON(jsonKeys,times,values,valuePropertyName){let i$1=1,key$1=jsonKeys[0];for(;key$1!==void 0&&key$1[valuePropertyName]===void 0;)key$1=jsonKeys[i$1++];if(key$1===void 0)return;let value$1=key$1[valuePropertyName];if(value$1!==void 0)if(Array.isArray(value$1))do value$1=key$1[valuePropertyName],value$1!==void 0&&(times.push(key$1.time),values.push(...value$1)),key$1=jsonKeys[i$1++];while(key$1!==void 0);else if(value$1.toArray!==void 0)do value$1=key$1[valuePropertyName],value$1!==void 0&&(times.push(key$1.time),value$1.toArray(values,values.length)),key$1=jsonKeys[i$1++];while(key$1!==void 0);else do value$1=key$1[valuePropertyName],value$1!==void 0&&(times.push(key$1.time),values.push(value$1)),key$1=jsonKeys[i$1++];while(key$1!==void 0)}function subclip(sourceClip,name$2,startFrame,endFrame,fps=30){let clip=sourceClip.clone();clip.name=name$2;let tracks=[];for(let i$1=0;i$1=endFrame)){times.push(track$1.times[j$1]);for(let k$4=0;k$4clip.tracks[i$1].times[0]&&(minStartTime=clip.tracks[i$1].times[0]);for(let i$1=0;i$1=referenceTrack.times[lastIndex]){let startIndex=lastIndex*referenceValueSize+referenceOffset,endIndex=startIndex+referenceValueSize-referenceOffset;referenceValue=referenceTrack.values.slice(startIndex,endIndex)}else{let interpolant=referenceTrack.createInterpolant(),startIndex=referenceOffset,endIndex=referenceValueSize-referenceOffset;interpolant.evaluate(referenceTime),referenceValue=interpolant.resultBuffer.slice(startIndex,endIndex)}if(referenceTrackType===`quaternion`){let referenceQuat=new Quaternion().fromArray(referenceValue).normalize().conjugate();referenceQuat.toArray(referenceValue)}let numTimes=targetTrack.times.length;for(let j$1=0;j$1=t0)){let t1global=pp[1];t=t0)break seek}right=i1,i1=0;break linear_scan}break validate_interval}for(;i1>>1;tendTime;)--to$1;if(++to$1,from!==0||to$1!==nKeys){from>=to$1&&(to$1=Math.max(to$1,1),from=to$1-1);let stride=this.getValueSize();this.times=times.slice(from,to$1),this.values=this.values.slice(from*stride,to$1*stride)}return this}validate(){let valid$1=!0,valueSize=this.getValueSize();valueSize-Math.floor(valueSize)!==0&&(console.error(`THREE.KeyframeTrack: Invalid value size in track.`,this),valid$1=!1);let times=this.times,values=this.values,nKeys=times.length;nKeys===0&&(console.error(`THREE.KeyframeTrack: Track is empty.`,this),valid$1=!1);let prevTime=null;for(let i$1=0;i$1!==nKeys;i$1++){let currTime=times[i$1];if(typeof currTime==`number`&&isNaN(currTime)){console.error(`THREE.KeyframeTrack: Time is not a valid number.`,this,i$1,currTime),valid$1=!1;break}if(prevTime!==null&&prevTime>currTime){console.error(`THREE.KeyframeTrack: Out of order keys.`,this,i$1,currTime,prevTime),valid$1=!1;break}prevTime=currTime}if(values!==void 0&&isTypedArray(values))for(let i$1=0,n$2=values.length;i$1!==n$2;++i$1){let value$1=values[i$1];if(isNaN(value$1)){console.error(`THREE.KeyframeTrack: Value is not a valid number.`,this,i$1,value$1),valid$1=!1;break}}return valid$1}optimize(){let times=this.times.slice(),values=this.values.slice(),stride=this.getValueSize(),smoothInterpolation=this.getInterpolation()===InterpolateSmooth,lastIndex=times.length-1,writeIndex=1;for(let i$1=1;i$10){times[writeIndex]=times[lastIndex];for(let readOffset=lastIndex*stride,writeOffset=writeIndex*stride,j$1=0;j$1!==stride;++j$1)values[writeOffset+j$1]=values[readOffset+j$1];++writeIndex}return writeIndex===times.length?(this.times=times,this.values=values):(this.times=times.slice(0,writeIndex),this.values=values.slice(0,writeIndex*stride)),this}clone(){let times=this.times.slice(),values=this.values.slice(),TypedKeyframeTrack=this.constructor,track$1=new TypedKeyframeTrack(this.name,times,values);return track$1.createInterpolant=this.createInterpolant,track$1}};KeyframeTrack.prototype.ValueTypeName=``,KeyframeTrack.prototype.TimeBufferType=Float32Array,KeyframeTrack.prototype.ValueBufferType=Float32Array,KeyframeTrack.prototype.DefaultInterpolation=InterpolateLinear;var BooleanKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values){super(name$2,times,values)}};BooleanKeyframeTrack.prototype.ValueTypeName=`bool`,BooleanKeyframeTrack.prototype.ValueBufferType=Array,BooleanKeyframeTrack.prototype.DefaultInterpolation=InterpolateDiscrete,BooleanKeyframeTrack.prototype.InterpolantFactoryMethodLinear=void 0,BooleanKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;var ColorKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}};ColorKeyframeTrack.prototype.ValueTypeName=`color`;var NumberKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}};NumberKeyframeTrack.prototype.ValueTypeName=`number`;var QuaternionLinearInterpolant=class extends Interpolant{constructor(parameterPositions,sampleValues,sampleSize,resultBuffer){super(parameterPositions,sampleValues,sampleSize,resultBuffer)}interpolate_(i1,t0,t,t1){let result=this.resultBuffer,values=this.sampleValues,stride=this.valueSize,alpha$1=(t-t0)/(t1-t0),offset$1=i1*stride;for(let end=offset$1+stride;offset$1!==end;offset$1+=4)Quaternion.slerpFlat(result,0,values,offset$1-stride,values,offset$1,alpha$1);return result}},QuaternionKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}InterpolantFactoryMethodLinear(result){return new QuaternionLinearInterpolant(this.times,this.values,this.getValueSize(),result)}};QuaternionKeyframeTrack.prototype.ValueTypeName=`quaternion`,QuaternionKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;var StringKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values){super(name$2,times,values)}};StringKeyframeTrack.prototype.ValueTypeName=`string`,StringKeyframeTrack.prototype.ValueBufferType=Array,StringKeyframeTrack.prototype.DefaultInterpolation=InterpolateDiscrete,StringKeyframeTrack.prototype.InterpolantFactoryMethodLinear=void 0,StringKeyframeTrack.prototype.InterpolantFactoryMethodSmooth=void 0;var VectorKeyframeTrack=class extends KeyframeTrack{constructor(name$2,times,values,interpolation){super(name$2,times,values,interpolation)}};VectorKeyframeTrack.prototype.ValueTypeName=`vector`;var AnimationClip=class{constructor(name$2=``,duration=-1,tracks=[],blendMode=NormalAnimationBlendMode){this.name=name$2,this.tracks=tracks,this.duration=duration,this.blendMode=blendMode,this.uuid=generateUUID(),this.duration<0&&this.resetDuration()}static parse(json){let tracks=[],jsonTracks=json.tracks,frameTime=1/(json.fps||1);for(let i$1=0,n$2=jsonTracks.length;i$1!==n$2;++i$1)tracks.push(parseKeyframeTrack(jsonTracks[i$1]).scale(frameTime));let clip=new this(json.name,json.duration,tracks,json.blendMode);return clip.uuid=json.uuid,clip}static toJSON(clip){let tracks=[],clipTracks=clip.tracks,json={name:clip.name,duration:clip.duration,tracks,uuid:clip.uuid,blendMode:clip.blendMode};for(let i$1=0,n$2=clipTracks.length;i$1!==n$2;++i$1)tracks.push(KeyframeTrack.toJSON(clipTracks[i$1]));return json}static CreateFromMorphTargetSequence(name$2,morphTargetSequence,fps,noLoop){let numMorphTargets=morphTargetSequence.length,tracks=[];for(let i$1=0;i$11){let name$2=parts[1],animationMorphTargets=animationToMorphTargets[name$2];animationMorphTargets||(animationToMorphTargets[name$2]=animationMorphTargets=[]),animationMorphTargets.push(morphTarget)}}let clips=[];for(let name$2 in animationToMorphTargets)clips.push(this.CreateFromMorphTargetSequence(name$2,animationToMorphTargets[name$2],fps,noLoop));return clips}static parseAnimation(animation,bones){if(console.warn(`THREE.AnimationClip: parseAnimation() is deprecated and will be removed with r185`),!animation)return console.error(`THREE.AnimationClip: No animation in JSONLoader data.`),null;let addNonemptyTrack=function(trackType,trackName,animationKeys,propertyName,destTracks){if(animationKeys.length!==0){let times=[],values=[];flattenJSON(animationKeys,times,values,propertyName),times.length!==0&&destTracks.push(new trackType(trackName,times,values))}},tracks=[],clipName=animation.name||`default`,fps=animation.fps||30,blendMode=animation.blendMode,duration=animation.length||-1,hierarchyTracks=animation.hierarchy||[];for(let h$3=0;h$3{onLoad&&onLoad(cached),this.manager.itemEnd(url)},0),cached;if(loading[url]!==void 0){loading[url].push({onLoad,onProgress,onError});return}loading[url]=[],loading[url].push({onLoad,onProgress,onError});let req=new Request(url,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`}),mimeType=this.mimeType,responseType=this.responseType;fetch(req).then(response=>{if(response.status===200||response.status===0){if(response.status===0&&console.warn(`THREE.FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||response.body===void 0||response.body.getReader===void 0)return response;let callbacks=loading[url],reader=response.body.getReader(),contentLength=response.headers.get(`X-File-Size`)||response.headers.get(`Content-Length`),total=contentLength?parseInt(contentLength):0,lengthComputable=total!==0,loaded=0,stream=new ReadableStream({start(controller){readData();function readData(){reader.read().then(({done,value:value$1})=>{if(done)controller.close();else{loaded+=value$1.byteLength;let event=new ProgressEvent(`progress`,{lengthComputable,loaded,total});for(let i$1=0,il=callbacks.length;i$1{controller.error(e$3)})}}});return new Response(stream)}else throw new HttpError(`fetch for "${response.url}" responded with ${response.status}: ${response.statusText}`,response)}).then(response=>{switch(responseType){case`arraybuffer`:return response.arrayBuffer();case`blob`:return response.blob();case`document`:return response.text().then(text$5=>{let parser=new DOMParser;return parser.parseFromString(text$5,mimeType)});case`json`:return response.json();default:if(mimeType===``)return response.text();{let re$3=/charset="?([^;"\s]*)"?/i,exec=re$3.exec(mimeType),label=exec&&exec[1]?exec[1].toLowerCase():void 0,decoder=new TextDecoder(label);return response.arrayBuffer().then(ab=>decoder.decode(ab))}}}).then(data$10=>{Cache.add(`file:${url}`,data$10);let callbacks=loading[url];delete loading[url];for(let i$1=0,il=callbacks.length;i$1{let callbacks=loading[url];if(callbacks===void 0)throw this.manager.itemError(url),err;delete loading[url];for(let i$1=0,il=callbacks.length;i$1{this.manager.itemEnd(url)}),this.manager.itemStart(url)}setResponseType(value$1){return this.responseType=value$1,this}setMimeType(value$1){return this.mimeType=value$1,this}},AnimationLoader=class extends Loader{constructor(manager){super(manager)}load(url,onLoad,onProgress,onError){let scope=this,loader$1=new FileLoader(this.manager);loader$1.setPath(this.path),loader$1.setRequestHeader(this.requestHeader),loader$1.setWithCredentials(this.withCredentials),loader$1.load(url,function(text$5){try{onLoad(scope.parse(JSON.parse(text$5)))}catch(e$3){onError?onError(e$3):console.error(e$3),scope.manager.itemError(url)}},onProgress,onError)}parse(json){let animations$1=[];for(let i$1=0;i$10:material.vertexColors=json.vertexColors),json.uniforms!==void 0)for(let name$2 in json.uniforms){let uniform=json.uniforms[name$2];switch(material.uniforms[name$2]={},uniform.type){case`t`:material.uniforms[name$2].value=getTexture(uniform.value);break;case`c`:material.uniforms[name$2].value=new Color().setHex(uniform.value);break;case`v2`:material.uniforms[name$2].value=new Vector2().fromArray(uniform.value);break;case`v3`:material.uniforms[name$2].value=new Vector3().fromArray(uniform.value);break;case`v4`:material.uniforms[name$2].value=new Vector4().fromArray(uniform.value);break;case`m3`:material.uniforms[name$2].value=new Matrix3().fromArray(uniform.value);break;case`m4`:material.uniforms[name$2].value=new Matrix4().fromArray(uniform.value);break;default:material.uniforms[name$2].value=uniform.value}}if(json.defines!==void 0&&(material.defines=json.defines),json.vertexShader!==void 0&&(material.vertexShader=json.vertexShader),json.fragmentShader!==void 0&&(material.fragmentShader=json.fragmentShader),json.glslVersion!==void 0&&(material.glslVersion=json.glslVersion),json.extensions!==void 0)for(let key$1 in json.extensions)material.extensions[key$1]=json.extensions[key$1];if(json.lights!==void 0&&(material.lights=json.lights),json.clipping!==void 0&&(material.clipping=json.clipping),json.size!==void 0&&(material.size=json.size),json.sizeAttenuation!==void 0&&(material.sizeAttenuation=json.sizeAttenuation),json.map!==void 0&&(material.map=getTexture(json.map)),json.matcap!==void 0&&(material.matcap=getTexture(json.matcap)),json.alphaMap!==void 0&&(material.alphaMap=getTexture(json.alphaMap)),json.bumpMap!==void 0&&(material.bumpMap=getTexture(json.bumpMap)),json.bumpScale!==void 0&&(material.bumpScale=json.bumpScale),json.normalMap!==void 0&&(material.normalMap=getTexture(json.normalMap)),json.normalMapType!==void 0&&(material.normalMapType=json.normalMapType),json.normalScale!==void 0){let normalScale=json.normalScale;Array.isArray(normalScale)===!1&&(normalScale=[normalScale,normalScale]),material.normalScale=new Vector2().fromArray(normalScale)}return json.displacementMap!==void 0&&(material.displacementMap=getTexture(json.displacementMap)),json.displacementScale!==void 0&&(material.displacementScale=json.displacementScale),json.displacementBias!==void 0&&(material.displacementBias=json.displacementBias),json.roughnessMap!==void 0&&(material.roughnessMap=getTexture(json.roughnessMap)),json.metalnessMap!==void 0&&(material.metalnessMap=getTexture(json.metalnessMap)),json.emissiveMap!==void 0&&(material.emissiveMap=getTexture(json.emissiveMap)),json.emissiveIntensity!==void 0&&(material.emissiveIntensity=json.emissiveIntensity),json.specularMap!==void 0&&(material.specularMap=getTexture(json.specularMap)),json.specularIntensityMap!==void 0&&(material.specularIntensityMap=getTexture(json.specularIntensityMap)),json.specularColorMap!==void 0&&(material.specularColorMap=getTexture(json.specularColorMap)),json.envMap!==void 0&&(material.envMap=getTexture(json.envMap)),json.envMapRotation!==void 0&&material.envMapRotation.fromArray(json.envMapRotation),json.envMapIntensity!==void 0&&(material.envMapIntensity=json.envMapIntensity),json.reflectivity!==void 0&&(material.reflectivity=json.reflectivity),json.refractionRatio!==void 0&&(material.refractionRatio=json.refractionRatio),json.lightMap!==void 0&&(material.lightMap=getTexture(json.lightMap)),json.lightMapIntensity!==void 0&&(material.lightMapIntensity=json.lightMapIntensity),json.aoMap!==void 0&&(material.aoMap=getTexture(json.aoMap)),json.aoMapIntensity!==void 0&&(material.aoMapIntensity=json.aoMapIntensity),json.gradientMap!==void 0&&(material.gradientMap=getTexture(json.gradientMap)),json.clearcoatMap!==void 0&&(material.clearcoatMap=getTexture(json.clearcoatMap)),json.clearcoatRoughnessMap!==void 0&&(material.clearcoatRoughnessMap=getTexture(json.clearcoatRoughnessMap)),json.clearcoatNormalMap!==void 0&&(material.clearcoatNormalMap=getTexture(json.clearcoatNormalMap)),json.clearcoatNormalScale!==void 0&&(material.clearcoatNormalScale=new Vector2().fromArray(json.clearcoatNormalScale)),json.iridescenceMap!==void 0&&(material.iridescenceMap=getTexture(json.iridescenceMap)),json.iridescenceThicknessMap!==void 0&&(material.iridescenceThicknessMap=getTexture(json.iridescenceThicknessMap)),json.transmissionMap!==void 0&&(material.transmissionMap=getTexture(json.transmissionMap)),json.thicknessMap!==void 0&&(material.thicknessMap=getTexture(json.thicknessMap)),json.anisotropyMap!==void 0&&(material.anisotropyMap=getTexture(json.anisotropyMap)),json.sheenColorMap!==void 0&&(material.sheenColorMap=getTexture(json.sheenColorMap)),json.sheenRoughnessMap!==void 0&&(material.sheenRoughnessMap=getTexture(json.sheenRoughnessMap)),material}setTextures(value$1){return this.textures=value$1,this}createMaterialFromType(type){return MaterialLoader.createMaterialFromType(type)}static createMaterialFromType(type){let materialLib={ShadowMaterial,SpriteMaterial,RawShaderMaterial,ShaderMaterial,PointsMaterial,MeshPhysicalMaterial,MeshStandardMaterial,MeshPhongMaterial,MeshToonMaterial,MeshNormalMaterial,MeshLambertMaterial,MeshDepthMaterial,MeshDistanceMaterial,MeshBasicMaterial,MeshMatcapMaterial,LineDashedMaterial,LineBasicMaterial,Material};return new materialLib[type]}},LoaderUtils=class{static extractUrlBase(url){let index$1=url.lastIndexOf(`/`);return index$1===-1?`./`:url.slice(0,index$1+1)}static resolveURL(url,path){return typeof url!=`string`||url===``?``:(/^https?:\/\//i.test(path)&&/^\//.test(url)&&(path=path.replace(/(^https?:\/\/[^\/]+).*/i,`$1`)),/^(https?:)?\/\//i.test(url)||/^data:.*,.*$/i.test(url)||/^blob:.*$/i.test(url)?url:path+url)}},InstancedBufferGeometry=class extends BufferGeometry{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type=`InstancedBufferGeometry`,this.instanceCount=1/0}copy(source){return super.copy(source),this.instanceCount=source.instanceCount,this}toJSON(){let data$10=super.toJSON();return data$10.instanceCount=this.instanceCount,data$10.isInstancedBufferGeometry=!0,data$10}},BufferGeometryLoader=class extends Loader{constructor(manager){super(manager)}load(url,onLoad,onProgress,onError){let scope=this,loader$1=new FileLoader(scope.manager);loader$1.setPath(scope.path),loader$1.setRequestHeader(scope.requestHeader),loader$1.setWithCredentials(scope.withCredentials),loader$1.load(url,function(text$5){try{onLoad(scope.parse(JSON.parse(text$5)))}catch(e$3){onError?onError(e$3):console.error(e$3),scope.manager.itemError(url)}},onProgress,onError)}parse(json){let interleavedBufferMap={},arrayBufferMap={};function getInterleavedBuffer(json$1,uuid){if(interleavedBufferMap[uuid]!==void 0)return interleavedBufferMap[uuid];let interleavedBuffers=json$1.interleavedBuffers,interleavedBuffer=interleavedBuffers[uuid],buffer$1=getArrayBuffer(json$1,interleavedBuffer.buffer),array=getTypedArray(interleavedBuffer.type,buffer$1),ib=new InterleavedBuffer(array,interleavedBuffer.stride);return ib.uuid=interleavedBuffer.uuid,interleavedBufferMap[uuid]=ib,ib}function getArrayBuffer(json$1,uuid){if(arrayBufferMap[uuid]!==void 0)return arrayBufferMap[uuid];let arrayBuffers=json$1.arrayBuffers,arrayBuffer=arrayBuffers[uuid],ab=new Uint32Array(arrayBuffer).buffer;return arrayBufferMap[uuid]=ab,ab}let geometry=json.isInstancedBufferGeometry?new InstancedBufferGeometry:new BufferGeometry,index$1=json.data.index;if(index$1!==void 0){let typedArray=getTypedArray(index$1.type,index$1.array);geometry.setIndex(new BufferAttribute(typedArray,1))}let attributes=json.data.attributes;for(let key$1 in attributes){let attribute=attributes[key$1],bufferAttribute;if(attribute.isInterleavedBufferAttribute){let interleavedBuffer=getInterleavedBuffer(json.data,attribute.data);bufferAttribute=new InterleavedBufferAttribute(interleavedBuffer,attribute.itemSize,attribute.offset,attribute.normalized)}else{let typedArray=getTypedArray(attribute.type,attribute.array),bufferAttributeConstr=attribute.isInstancedBufferAttribute?InstancedBufferAttribute:BufferAttribute;bufferAttribute=new bufferAttributeConstr(typedArray,attribute.itemSize,attribute.normalized)}attribute.name!==void 0&&(bufferAttribute.name=attribute.name),attribute.usage!==void 0&&bufferAttribute.setUsage(attribute.usage),geometry.setAttribute(key$1,bufferAttribute)}let morphAttributes=json.data.morphAttributes;if(morphAttributes)for(let key$1 in morphAttributes){let attributeArray=morphAttributes[key$1],array=[];for(let i$1=0,il=attributeArray.length;i$10){let manager=new LoadingManager(onLoad);loader$1=new ImageLoader(manager),loader$1.setCrossOrigin(this.crossOrigin);for(let i$1=0,il=json.length;i$10){loader$1=new ImageLoader(this.manager),loader$1.setCrossOrigin(this.crossOrigin);for(let i$1=0,il=json.length;i$1{let box=null,sphere=null;return info.boundingBox!==void 0&&(box=new Box3().fromJSON(info.boundingBox)),info.boundingSphere!==void 0&&(sphere=new Sphere().fromJSON(info.boundingSphere)),{...info,boundingBox:box,boundingSphere:sphere}}),object._instanceInfo=data$10.instanceInfo,object._availableInstanceIds=data$10._availableInstanceIds,object._availableGeometryIds=data$10._availableGeometryIds,object._nextIndexStart=data$10.nextIndexStart,object._nextVertexStart=data$10.nextVertexStart,object._geometryCount=data$10.geometryCount,object._maxInstanceCount=data$10.maxInstanceCount,object._maxVertexCount=data$10.maxVertexCount,object._maxIndexCount=data$10.maxIndexCount,object._geometryInitialized=data$10.geometryInitialized,object._matricesTexture=getTexture(data$10.matricesTexture.uuid),object._indirectTexture=getTexture(data$10.indirectTexture.uuid),data$10.colorsTexture!==void 0&&(object._colorsTexture=getTexture(data$10.colorsTexture.uuid)),data$10.boundingSphere!==void 0&&(object.boundingSphere=new Sphere().fromJSON(data$10.boundingSphere)),data$10.boundingBox!==void 0&&(object.boundingBox=new Box3().fromJSON(data$10.boundingBox));break;case`LOD`:object=new LOD;break;case`Line`:object=new Line(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`LineLoop`:object=new LineLoop(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`LineSegments`:object=new LineSegments(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`PointCloud`:case`Points`:object=new Points(getGeometry(data$10.geometry),getMaterial(data$10.material));break;case`Sprite`:object=new Sprite(getMaterial(data$10.material));break;case`Group`:object=new Group;break;case`Bone`:object=new Bone;break;default:object=new Object3D}if(object.uuid=data$10.uuid,data$10.name!==void 0&&(object.name=data$10.name),data$10.matrix===void 0?(data$10.position!==void 0&&object.position.fromArray(data$10.position),data$10.rotation!==void 0&&object.rotation.fromArray(data$10.rotation),data$10.quaternion!==void 0&&object.quaternion.fromArray(data$10.quaternion),data$10.scale!==void 0&&object.scale.fromArray(data$10.scale)):(object.matrix.fromArray(data$10.matrix),data$10.matrixAutoUpdate!==void 0&&(object.matrixAutoUpdate=data$10.matrixAutoUpdate),object.matrixAutoUpdate&&object.matrix.decompose(object.position,object.quaternion,object.scale)),data$10.up!==void 0&&object.up.fromArray(data$10.up),data$10.castShadow!==void 0&&(object.castShadow=data$10.castShadow),data$10.receiveShadow!==void 0&&(object.receiveShadow=data$10.receiveShadow),data$10.shadow&&(data$10.shadow.intensity!==void 0&&(object.shadow.intensity=data$10.shadow.intensity),data$10.shadow.bias!==void 0&&(object.shadow.bias=data$10.shadow.bias),data$10.shadow.normalBias!==void 0&&(object.shadow.normalBias=data$10.shadow.normalBias),data$10.shadow.radius!==void 0&&(object.shadow.radius=data$10.shadow.radius),data$10.shadow.mapSize!==void 0&&object.shadow.mapSize.fromArray(data$10.shadow.mapSize),data$10.shadow.camera!==void 0&&(object.shadow.camera=this.parseObject(data$10.shadow.camera))),data$10.visible!==void 0&&(object.visible=data$10.visible),data$10.frustumCulled!==void 0&&(object.frustumCulled=data$10.frustumCulled),data$10.renderOrder!==void 0&&(object.renderOrder=data$10.renderOrder),data$10.userData!==void 0&&(object.userData=data$10.userData),data$10.layers!==void 0&&(object.layers.mask=data$10.layers),data$10.children!==void 0){let children=data$10.children;for(let i$1=0;i$1`u`&&console.warn(`THREE.ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&console.warn(`THREE.ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`}}setOptions(options$1){return this.options=options$1,this}load(url,onLoad,onProgress,onError){url===void 0&&(url=``),this.path!==void 0&&(url=this.path+url),url=this.manager.resolveURL(url);let scope=this,cached=Cache.get(`image-bitmap:${url}`);if(cached!==void 0){if(scope.manager.itemStart(url),cached.then){cached.then(imageBitmap=>{if(_errorMap.has(cached)===!0)onError&&onError(_errorMap.get(cached)),scope.manager.itemError(url),scope.manager.itemEnd(url);else return onLoad&&onLoad(imageBitmap),scope.manager.itemEnd(url),imageBitmap});return}return setTimeout(function(){onLoad&&onLoad(cached),scope.manager.itemEnd(url)},0),cached}let fetchOptions={};fetchOptions.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,fetchOptions.headers=this.requestHeader;let promise=fetch(url,fetchOptions).then(function(res){return res.blob()}).then(function(blob){return createImageBitmap(blob,Object.assign(scope.options,{colorSpaceConversion:`none`}))}).then(function(imageBitmap){return Cache.add(`image-bitmap:${url}`,imageBitmap),onLoad&&onLoad(imageBitmap),scope.manager.itemEnd(url),imageBitmap}).catch(function(e$3){onError&&onError(e$3),_errorMap.set(promise,e$3),Cache.remove(`image-bitmap:${url}`),scope.manager.itemError(url),scope.manager.itemEnd(url)});Cache.add(`image-bitmap:${url}`,promise),scope.manager.itemStart(url)}};let _context;var AudioContext$1=class{static getContext(){return _context===void 0&&(_context=new(window.AudioContext||window.webkitAudioContext)),_context}static setContext(value$1){_context=value$1}},AudioLoader=class extends Loader{constructor(manager){super(manager)}load(url,onLoad,onProgress,onError){let scope=this,loader$1=new FileLoader(this.manager);loader$1.setResponseType(`arraybuffer`),loader$1.setPath(this.path),loader$1.setRequestHeader(this.requestHeader),loader$1.setWithCredentials(this.withCredentials),loader$1.load(url,function(buffer$1){try{let bufferCopy=buffer$1.slice(0),context$1=AudioContext$1.getContext();context$1.decodeAudioData(bufferCopy,function(audioBuffer){onLoad(audioBuffer)}).catch(handleError$1)}catch(e$3){handleError$1(e$3)}},onProgress,onError);function handleError$1(e$3){onError?onError(e$3):console.error(e$3),scope.manager.itemError(url)}}};const _eyeRight=new Matrix4,_eyeLeft=new Matrix4,_projectionMatrix=new Matrix4;var StereoCamera=class{constructor(){this.type=`StereoCamera`,this.aspect=1,this.eyeSep=.064,this.cameraL=new PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new PerspectiveCamera,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(camera){let cache$1=this._cache,needsUpdate=cache$1.focus!==camera.focus||cache$1.fov!==camera.fov||cache$1.aspect!==camera.aspect*this.aspect||cache$1.near!==camera.near||cache$1.far!==camera.far||cache$1.zoom!==camera.zoom||cache$1.eyeSep!==this.eyeSep;if(needsUpdate){cache$1.focus=camera.focus,cache$1.fov=camera.fov,cache$1.aspect=camera.aspect*this.aspect,cache$1.near=camera.near,cache$1.far=camera.far,cache$1.zoom=camera.zoom,cache$1.eyeSep=this.eyeSep,_projectionMatrix.copy(camera.projectionMatrix);let eyeSepHalf=cache$1.eyeSep/2,eyeSepOnProjection=eyeSepHalf*cache$1.near/cache$1.focus,ymax=cache$1.near*Math.tan(DEG2RAD$1*cache$1.fov*.5)/cache$1.zoom,xmin,xmax;_eyeLeft.elements[12]=-eyeSepHalf,_eyeRight.elements[12]=eyeSepHalf,xmin=-ymax*cache$1.aspect+eyeSepOnProjection,xmax=ymax*cache$1.aspect+eyeSepOnProjection,_projectionMatrix.elements[0]=2*cache$1.near/(xmax-xmin),_projectionMatrix.elements[8]=(xmax+xmin)/(xmax-xmin),this.cameraL.projectionMatrix.copy(_projectionMatrix),xmin=-ymax*cache$1.aspect-eyeSepOnProjection,xmax=ymax*cache$1.aspect-eyeSepOnProjection,_projectionMatrix.elements[0]=2*cache$1.near/(xmax-xmin),_projectionMatrix.elements[8]=(xmax+xmin)/(xmax-xmin),this.cameraR.projectionMatrix.copy(_projectionMatrix)}this.cameraL.matrixWorld.copy(camera.matrixWorld).multiply(_eyeLeft),this.cameraR.matrixWorld.copy(camera.matrixWorld).multiply(_eyeRight)}},ArrayCamera=class extends PerspectiveCamera{constructor(array=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=array}},Clock=class{constructor(autoStart=!0){this.autoStart=autoStart,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 diff=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){let newTime=performance.now();diff=(newTime-this.oldTime)/1e3,this.oldTime=newTime,this.elapsedTime+=diff}return diff}};const _position$1$1=new Vector3,_quaternion$1=new Quaternion,_scale$1$1=new Vector3,_forward=new Vector3,_up=new Vector3;var AudioListener=class extends Object3D{constructor(){super(),this.type=`AudioListener`,this.context=AudioContext$1.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Clock}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(value$1){return this.filter===null?this.gain.disconnect(this.context.destination):(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)),this.filter=value$1,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(value$1){return this.gain.gain.setTargetAtTime(value$1,this.context.currentTime,.01),this}updateMatrixWorld(force){super.updateMatrixWorld(force);let listener=this.context.listener;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(_position$1$1,_quaternion$1,_scale$1$1),_forward.set(0,0,-1).applyQuaternion(_quaternion$1),_up.set(0,1,0).applyQuaternion(_quaternion$1),listener.positionX){let endTime=this.context.currentTime+this.timeDelta;listener.positionX.linearRampToValueAtTime(_position$1$1.x,endTime),listener.positionY.linearRampToValueAtTime(_position$1$1.y,endTime),listener.positionZ.linearRampToValueAtTime(_position$1$1.z,endTime),listener.forwardX.linearRampToValueAtTime(_forward.x,endTime),listener.forwardY.linearRampToValueAtTime(_forward.y,endTime),listener.forwardZ.linearRampToValueAtTime(_forward.z,endTime),listener.upX.linearRampToValueAtTime(_up.x,endTime),listener.upY.linearRampToValueAtTime(_up.y,endTime),listener.upZ.linearRampToValueAtTime(_up.z,endTime)}else listener.setPosition(_position$1$1.x,_position$1$1.y,_position$1$1.z),listener.setOrientation(_forward.x,_forward.y,_forward.z,_up.x,_up.y,_up.z)}},Audio$1=class extends Object3D{constructor(listener){super(),this.type=`Audio`,this.listener=listener,this.context=listener.context,this.gain=this.context.createGain(),this.gain.connect(listener.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(audioNode){return this.hasPlaybackControl=!1,this.sourceType=`audioNode`,this.source=audioNode,this.connect(),this}setMediaElementSource(mediaElement){return this.hasPlaybackControl=!1,this.sourceType=`mediaNode`,this.source=this.context.createMediaElementSource(mediaElement),this.connect(),this}setMediaStreamSource(mediaStream){return this.hasPlaybackControl=!1,this.sourceType=`mediaStreamNode`,this.source=this.context.createMediaStreamSource(mediaStream),this.connect(),this}setBuffer(audioBuffer){return this.buffer=audioBuffer,this.sourceType=`buffer`,this.autoplay&&this.play(),this}play(delay=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+delay;let source=this.context.createBufferSource();return source.buffer=this.buffer,source.loop=this.loop,source.loopStart=this.loopStart,source.loopEnd=this.loopEnd,source.onended=this.onEnded.bind(this),source.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=source,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(delay=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+delay),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let i$1=1,l$1=this.filters.length;i$10){this.source.disconnect(this.filters[0]);for(let i$1=1,l$1=this.filters.length;i$10&&this._mixBufferRegionAdditive(buffer$1,offset$1,this._addIndex*stride,1,stride);for(let i$1=stride,e$3=stride+stride;i$1!==e$3;++i$1)if(buffer$1[i$1]!==buffer$1[i$1+stride]){binding.setValue(buffer$1,offset$1);break}}saveOriginalState(){let binding=this.binding,buffer$1=this.buffer,stride=this.valueSize,originalValueOffset=stride*this._origIndex;binding.getValue(buffer$1,originalValueOffset);for(let i$1=stride,e$3=originalValueOffset;i$1!==e$3;++i$1)buffer$1[i$1]=buffer$1[originalValueOffset+i$1%stride];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){let originalValueOffset=this.valueSize*3;this.binding.setValue(this.buffer,originalValueOffset)}_setAdditiveIdentityNumeric(){let startIndex=this._addIndex*this.valueSize,endIndex=startIndex+this.valueSize;for(let i$1=startIndex;i$1=.5)for(let i$1=0;i$1!==stride;++i$1)buffer$1[dstOffset+i$1]=buffer$1[srcOffset+i$1]}_slerp(buffer$1,dstOffset,srcOffset,t){Quaternion.slerpFlat(buffer$1,dstOffset,buffer$1,dstOffset,buffer$1,srcOffset,t)}_slerpAdditive(buffer$1,dstOffset,srcOffset,t,stride){let workOffset=this._workIndex*stride;Quaternion.multiplyQuaternionsFlat(buffer$1,workOffset,buffer$1,dstOffset,buffer$1,srcOffset),Quaternion.slerpFlat(buffer$1,dstOffset,buffer$1,dstOffset,buffer$1,workOffset,t)}_lerp(buffer$1,dstOffset,srcOffset,t,stride){let s$1=1-t;for(let i$1=0;i$1!==stride;++i$1){let j$1=dstOffset+i$1;buffer$1[j$1]=buffer$1[j$1]*s$1+buffer$1[srcOffset+i$1]*t}}_lerpAdditive(buffer$1,dstOffset,srcOffset,t,stride){for(let i$1=0;i$1!==stride;++i$1){let j$1=dstOffset+i$1;buffer$1[j$1]=buffer$1[j$1]+buffer$1[srcOffset+i$1]*t}}};const _RESERVED_CHARS_RE=`\\[\\]\\.:\\/`,_reservedRe=RegExp(`[`+_RESERVED_CHARS_RE+`]`,`g`),_wordChar=`[^`+_RESERVED_CHARS_RE+`]`,_wordCharOrDot=`[^`+_RESERVED_CHARS_RE.replace(`\\.`,``)+`]`,_directoryRe=/((?:WC+[\/:])*)/.source.replace(`WC`,_wordChar),_nodeRe=/(WCOD+)?/.source.replace(`WCOD`,_wordCharOrDot),_objectRe=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace(`WC`,_wordChar),_propertyRe=/\.(WC+)(?:\[(.+)\])?/.source.replace(`WC`,_wordChar),_trackRe=RegExp(`^`+_directoryRe+_nodeRe+_objectRe+_propertyRe+`$`),_supportedObjectNames=[`material`,`materials`,`bones`,`map`];var Composite=class{constructor(targetGroup,path,optionalParsedPath){let parsedPath=optionalParsedPath||PropertyBinding.parseTrackName(path);this._targetGroup=targetGroup,this._bindings=targetGroup.subscribe_(path,parsedPath)}getValue(array,offset$1){this.bind();let firstValidIndex=this._targetGroup.nCachedObjects_,binding=this._bindings[firstValidIndex];binding!==void 0&&binding.getValue(array,offset$1)}setValue(array,offset$1){let bindings=this._bindings;for(let i$1=this._targetGroup.nCachedObjects_,n$2=bindings.length;i$1!==n$2;++i$1)bindings[i$1].setValue(array,offset$1)}bind(){let bindings=this._bindings;for(let i$1=this._targetGroup.nCachedObjects_,n$2=bindings.length;i$1!==n$2;++i$1)bindings[i$1].bind()}unbind(){let bindings=this._bindings;for(let i$1=this._targetGroup.nCachedObjects_,n$2=bindings.length;i$1!==n$2;++i$1)bindings[i$1].unbind()}},PropertyBinding=class PropertyBinding{constructor(rootNode,path,parsedPath){this.path=path,this.parsedPath=parsedPath||PropertyBinding.parseTrackName(path),this.node=PropertyBinding.findNode(rootNode,this.parsedPath.nodeName),this.rootNode=rootNode,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(root$3,path,parsedPath){return root$3&&root$3.isAnimationObjectGroup?new PropertyBinding.Composite(root$3,path,parsedPath):new PropertyBinding(root$3,path,parsedPath)}static sanitizeNodeName(name$2){return name$2.replace(/\s/g,`_`).replace(_reservedRe,``)}static parseTrackName(trackName){let matches$1=_trackRe.exec(trackName);if(matches$1===null)throw Error(`PropertyBinding: Cannot parse trackName: `+trackName);let results={nodeName:matches$1[2],objectName:matches$1[3],objectIndex:matches$1[4],propertyName:matches$1[5],propertyIndex:matches$1[6]},lastDot=results.nodeName&&results.nodeName.lastIndexOf(`.`);if(lastDot!==void 0&&lastDot!==-1){let objectName=results.nodeName.substring(lastDot+1);_supportedObjectNames.indexOf(objectName)!==-1&&(results.nodeName=results.nodeName.substring(0,lastDot),results.objectName=objectName)}if(results.propertyName===null||results.propertyName.length===0)throw Error(`PropertyBinding: can not parse propertyName from trackName: `+trackName);return results}static findNode(root$3,nodeName){if(nodeName===void 0||nodeName===``||nodeName===`.`||nodeName===-1||nodeName===root$3.name||nodeName===root$3.uuid)return root$3;if(root$3.skeleton){let bone=root$3.skeleton.getBoneByName(nodeName);if(bone!==void 0)return bone}if(root$3.children){let searchNodeSubtree=function(children){for(let i$1=0;i$1=nCachedObjects){let lastCachedIndex=nCachedObjects++,firstActiveObject=objects[lastCachedIndex];indicesByUUID[firstActiveObject.uuid]=index$1,objects[index$1]=firstActiveObject,indicesByUUID[uuid]=lastCachedIndex,objects[lastCachedIndex]=object;for(let j$1=0,m$2=nBindings;j$1!==m$2;++j$1){let bindingsForPath=bindings[j$1],firstActive=bindingsForPath[lastCachedIndex],binding=bindingsForPath[index$1];bindingsForPath[index$1]=firstActive,bindingsForPath[lastCachedIndex]=binding}}}this.nCachedObjects_=nCachedObjects}uncache(){let objects=this._objects,indicesByUUID=this._indicesByUUID,bindings=this._bindings,nBindings=bindings.length,nCachedObjects=this.nCachedObjects_,nObjects=objects.length;for(let i$1=0,n$2=arguments.length;i$1!==n$2;++i$1){let object=arguments[i$1],uuid=object.uuid,index$1=indicesByUUID[uuid];if(index$1!==void 0)if(delete indicesByUUID[uuid],index$10&&(indicesByUUID[lastObject.uuid]=index$1),objects[index$1]=lastObject,objects.pop();for(let j$1=0,m$2=nBindings;j$1!==m$2;++j$1){let bindingsForPath=bindings[j$1];bindingsForPath[index$1]=bindingsForPath[lastIndex],bindingsForPath.pop()}}}this.nCachedObjects_=nCachedObjects}subscribe_(path,parsedPath){let indicesByPath=this._bindingsIndicesByPath,index$1=indicesByPath[path],bindings=this._bindings;if(index$1!==void 0)return bindings[index$1];let paths=this._paths,parsedPaths=this._parsedPaths,objects=this._objects,nObjects=objects.length,nCachedObjects=this.nCachedObjects_,bindingsForPath=Array(nObjects);index$1=bindings.length,indicesByPath[path]=index$1,paths.push(path),parsedPaths.push(parsedPath),bindings.push(bindingsForPath);for(let i$1=nCachedObjects,n$2=objects.length;i$1!==n$2;++i$1){let object=objects[i$1];bindingsForPath[i$1]=new PropertyBinding(object,path,parsedPath)}return bindingsForPath}unsubscribe_(path){let indicesByPath=this._bindingsIndicesByPath,index$1=indicesByPath[path];if(index$1!==void 0){let paths=this._paths,parsedPaths=this._parsedPaths,bindings=this._bindings,lastBindingsIndex=bindings.length-1,lastBindings=bindings[lastBindingsIndex],lastBindingsPath=path[lastBindingsIndex];indicesByPath[lastBindingsPath]=index$1,bindings[index$1]=lastBindings,bindings.pop(),parsedPaths[index$1]=parsedPaths[lastBindingsIndex],parsedPaths.pop(),paths[index$1]=paths[lastBindingsIndex],paths.pop()}}},AnimationAction=class{constructor(mixer,clip,localRoot=null,blendMode=clip.blendMode){this._mixer=mixer,this._clip=clip,this._localRoot=localRoot,this.blendMode=blendMode;let tracks=clip.tracks,nTracks=tracks.length,interpolants=Array(nTracks),interpolantSettings={endingStart:ZeroCurvatureEnding,endingEnd:ZeroCurvatureEnding};for(let i$1=0;i$1!==nTracks;++i$1){let interpolant=tracks[i$1].createInterpolant(null);interpolants[i$1]=interpolant,interpolant.settings=interpolantSettings}this._interpolantSettings=interpolantSettings,this._interpolants=interpolants,this._propertyBindings=Array(nTracks),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=LoopRepeat,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(time){return this._startTime=time,this}setLoop(mode,repetitions){return this.loop=mode,this.repetitions=repetitions,this}setEffectiveWeight(weight){return this.weight=weight,this._effectiveWeight=this.enabled?weight:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(duration){return this._scheduleFading(duration,0,1)}fadeOut(duration){return this._scheduleFading(duration,1,0)}crossFadeFrom(fadeOutAction,duration,warp=!1){if(fadeOutAction.fadeOut(duration),this.fadeIn(duration),warp===!0){let fadeInDuration=this._clip.duration,fadeOutDuration=fadeOutAction._clip.duration,startEndRatio=fadeOutDuration/fadeInDuration,endStartRatio=fadeInDuration/fadeOutDuration;fadeOutAction.warp(1,startEndRatio,duration),this.warp(endStartRatio,1,duration)}return this}crossFadeTo(fadeInAction,duration,warp=!1){return fadeInAction.crossFadeFrom(this,duration,warp)}stopFading(){let weightInterpolant=this._weightInterpolant;return weightInterpolant!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(weightInterpolant)),this}setEffectiveTimeScale(timeScale){return this.timeScale=timeScale,this._effectiveTimeScale=this.paused?0:timeScale,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(duration){return this.timeScale=this._clip.duration/duration,this.stopWarping()}syncWith(action){return this.time=action.time,this.timeScale=action.timeScale,this.stopWarping()}halt(duration){return this.warp(this._effectiveTimeScale,0,duration)}warp(startTimeScale,endTimeScale,duration){let mixer=this._mixer,now=mixer.time,timeScale=this.timeScale,interpolant=this._timeScaleInterpolant;interpolant===null&&(interpolant=mixer._lendControlInterpolant(),this._timeScaleInterpolant=interpolant);let times=interpolant.parameterPositions,values=interpolant.sampleValues;return times[0]=now,times[1]=now+duration,values[0]=startTimeScale/timeScale,values[1]=endTimeScale/timeScale,this}stopWarping(){let timeScaleInterpolant=this._timeScaleInterpolant;return timeScaleInterpolant!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(timeScaleInterpolant)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(time,deltaTime,timeDirection,accuIndex){if(!this.enabled){this._updateWeight(time);return}let startTime=this._startTime;if(startTime!==null){let timeRunning=(time-startTime)*timeDirection;timeRunning<0||timeDirection===0?deltaTime=0:(this._startTime=null,deltaTime=timeDirection*timeRunning)}deltaTime*=this._updateTimeScale(time);let clipTime=this._updateTime(deltaTime),weight=this._updateWeight(time);if(weight>0){let interpolants=this._interpolants,propertyMixers=this._propertyBindings;switch(this.blendMode){case AdditiveAnimationBlendMode:for(let j$1=0,m$2=interpolants.length;j$1!==m$2;++j$1)interpolants[j$1].evaluate(clipTime),propertyMixers[j$1].accumulateAdditive(weight);break;case NormalAnimationBlendMode:default:for(let j$1=0,m$2=interpolants.length;j$1!==m$2;++j$1)interpolants[j$1].evaluate(clipTime),propertyMixers[j$1].accumulate(accuIndex,weight)}}}_updateWeight(time){let weight=0;if(this.enabled){weight=this.weight;let interpolant=this._weightInterpolant;if(interpolant!==null){let interpolantValue=interpolant.evaluate(time)[0];weight*=interpolantValue,time>interpolant.parameterPositions[1]&&(this.stopFading(),interpolantValue===0&&(this.enabled=!1))}}return this._effectiveWeight=weight,weight}_updateTimeScale(time){let timeScale=0;if(!this.paused){timeScale=this.timeScale;let interpolant=this._timeScaleInterpolant;if(interpolant!==null){let interpolantValue=interpolant.evaluate(time)[0];timeScale*=interpolantValue,time>interpolant.parameterPositions[1]&&(this.stopWarping(),timeScale===0?this.paused=!0:this.timeScale=timeScale)}}return this._effectiveTimeScale=timeScale,timeScale}_updateTime(deltaTime){let duration=this._clip.duration,loop=this.loop,time=this.time+deltaTime,loopCount=this._loopCount,pingPong=loop===LoopPingPong;if(deltaTime===0)return loopCount===-1?time:pingPong&&(loopCount&1)==1?duration-time:time;if(loop===LoopOnce){loopCount===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));handle_stop:{if(time>=duration)time=duration;else if(time<0)time=0;else{this.time=time;break handle_stop}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=time,this._mixer.dispatchEvent({type:`finished`,action:this,direction:deltaTime<0?-1:1})}}else{if(loopCount===-1&&(deltaTime>=0?(loopCount=0,this._setEndings(!0,this.repetitions===0,pingPong)):this._setEndings(this.repetitions===0,!0,pingPong)),time>=duration||time<0){let loopDelta=Math.floor(time/duration);time-=duration*loopDelta,loopCount+=Math.abs(loopDelta);let pending=this.repetitions-loopCount;if(pending<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,time=deltaTime>0?duration:0,this.time=time,this._mixer.dispatchEvent({type:`finished`,action:this,direction:deltaTime>0?1:-1});else{if(pending===1){let atStart=deltaTime<0;this._setEndings(atStart,!atStart,pingPong)}else this._setEndings(!1,!1,pingPong);this._loopCount=loopCount,this.time=time,this._mixer.dispatchEvent({type:`loop`,action:this,loopDelta})}}else this.time=time;if(pingPong&&(loopCount&1)==1)return duration-time}return time}_setEndings(atStart,atEnd,pingPong){let settings=this._interpolantSettings;pingPong?(settings.endingStart=ZeroSlopeEnding,settings.endingEnd=ZeroSlopeEnding):(atStart?settings.endingStart=this.zeroSlopeAtStart?ZeroSlopeEnding:ZeroCurvatureEnding:settings.endingStart=WrapAroundEnding,atEnd?settings.endingEnd=this.zeroSlopeAtEnd?ZeroSlopeEnding:ZeroCurvatureEnding:settings.endingEnd=WrapAroundEnding)}_scheduleFading(duration,weightNow,weightThen){let mixer=this._mixer,now=mixer.time,interpolant=this._weightInterpolant;interpolant===null&&(interpolant=mixer._lendControlInterpolant(),this._weightInterpolant=interpolant);let times=interpolant.parameterPositions,values=interpolant.sampleValues;return times[0]=now,values[0]=weightNow,times[1]=now+duration,values[1]=weightThen,this}};const _controlInterpolantsResultBuffer=new Float32Array(1);var AnimationMixer=class extends EventDispatcher{constructor(root$3){super(),this._root=root$3,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(action,prototypeAction){let root$3=action._localRoot||this._root,tracks=action._clip.tracks,nTracks=tracks.length,bindings=action._propertyBindings,interpolants=action._interpolants,rootUuid=root$3.uuid,bindingsByRoot=this._bindingsByRootAndName,bindingsByName=bindingsByRoot[rootUuid];bindingsByName===void 0&&(bindingsByName={},bindingsByRoot[rootUuid]=bindingsByName);for(let i$1=0;i$1!==nTracks;++i$1){let track$1=tracks[i$1],trackName=track$1.name,binding=bindingsByName[trackName];if(binding!==void 0)++binding.referenceCount,bindings[i$1]=binding;else{if(binding=bindings[i$1],binding!==void 0){binding._cacheIndex===null&&(++binding.referenceCount,this._addInactiveBinding(binding,rootUuid,trackName));continue}let path=prototypeAction&&prototypeAction._propertyBindings[i$1].binding.parsedPath;binding=new PropertyMixer(PropertyBinding.create(root$3,trackName,path),track$1.ValueTypeName,track$1.getValueSize()),++binding.referenceCount,this._addInactiveBinding(binding,rootUuid,trackName),bindings[i$1]=binding}interpolants[i$1].resultBuffer=binding.buffer}}_activateAction(action){if(!this._isActiveAction(action)){if(action._cacheIndex===null){let rootUuid=(action._localRoot||this._root).uuid,clipUuid=action._clip.uuid,actionsForClip=this._actionsByClip[clipUuid];this._bindAction(action,actionsForClip&&actionsForClip.knownActions[0]),this._addInactiveAction(action,clipUuid,rootUuid)}let bindings=action._propertyBindings;for(let i$1=0,n$2=bindings.length;i$1!==n$2;++i$1){let binding=bindings[i$1];binding.useCount++===0&&(this._lendBinding(binding),binding.saveOriginalState())}this._lendAction(action)}}_deactivateAction(action){if(this._isActiveAction(action)){let bindings=action._propertyBindings;for(let i$1=0,n$2=bindings.length;i$1!==n$2;++i$1){let binding=bindings[i$1];--binding.useCount===0&&(binding.restoreOriginalState(),this._takeBackBinding(binding))}this._takeBackAction(action)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;let scope=this;this.stats={actions:{get total(){return scope._actions.length},get inUse(){return scope._nActiveActions}},bindings:{get total(){return scope._bindings.length},get inUse(){return scope._nActiveBindings}},controlInterpolants:{get total(){return scope._controlInterpolants.length},get inUse(){return scope._nActiveControlInterpolants}}}}_isActiveAction(action){let index$1=action._cacheIndex;return index$1!==null&&index$1=0;--i$1)actions[i$1].stop();return this}update(deltaTime){deltaTime*=this.timeScale;let actions=this._actions,nActions=this._nActiveActions,time=this.time+=deltaTime,timeDirection=Math.sign(deltaTime),accuIndex=this._accuIndex^=1;for(let i$1=0;i$1!==nActions;++i$1){let action=actions[i$1];action._update(time,deltaTime,timeDirection,accuIndex)}let bindings=this._bindings,nBindings=this._nActiveBindings;for(let i$1=0;i$1!==nBindings;++i$1)bindings[i$1].apply(accuIndex);return this}setTime(time){this.time=0;for(let i$1=0;i$1=this.min.x&&point$3.x<=this.max.x&&point$3.y>=this.min.y&&point$3.y<=this.max.y}containsBox(box){return this.min.x<=box.min.x&&box.max.x<=this.max.x&&this.min.y<=box.min.y&&box.max.y<=this.max.y}getParameter(point$3,target$1){return target$1.set((point$3.x-this.min.x)/(this.max.x-this.min.x),(point$3.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(box){return box.max.x>=this.min.x&&box.min.x<=this.max.x&&box.max.y>=this.min.y&&box.min.y<=this.max.y}clampPoint(point$3,target$1){return target$1.copy(point$3).clamp(this.min,this.max)}distanceToPoint(point$3){return this.clampPoint(point$3,_vector$4).distanceTo(point$3)}intersect(box){return this.min.max(box.min),this.max.min(box.max),this.isEmpty()&&this.makeEmpty(),this}union(box){return this.min.min(box.min),this.max.max(box.max),this}translate(offset$1){return this.min.add(offset$1),this.max.add(offset$1),this}equals(box){return box.min.equals(this.min)&&box.max.equals(this.max)}};const _startP=new Vector3,_startEnd=new Vector3;var Line3=class{constructor(start=new Vector3,end=new Vector3){this.start=start,this.end=end}set(start,end){return this.start.copy(start),this.end.copy(end),this}copy(line){return this.start.copy(line.start),this.end.copy(line.end),this}getCenter(target$1){return target$1.addVectors(this.start,this.end).multiplyScalar(.5)}delta(target$1){return target$1.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(t,target$1){return this.delta(target$1).multiplyScalar(t).add(this.start)}closestPointToPointParameter(point$3,clampToLine){_startP.subVectors(point$3,this.start),_startEnd.subVectors(this.end,this.start);let startEnd2=_startEnd.dot(_startEnd),startEnd_startP=_startEnd.dot(_startP),t=startEnd_startP/startEnd2;return clampToLine&&(t=clamp$6(t,0,1)),t}closestPointToPoint(point$3,clampToLine,target$1){let t=this.closestPointToPointParameter(point$3,clampToLine);return this.delta(target$1).multiplyScalar(t).add(this.start)}applyMatrix4(matrix){return this.start.applyMatrix4(matrix),this.end.applyMatrix4(matrix),this}equals(line){return line.start.equals(this.start)&&line.end.equals(this.end)}clone(){return new this.constructor().copy(this)}};const _vector$3=new Vector3;var SpotLightHelper=class extends Object3D{constructor(light,color$2){super(),this.light=light,this.matrixAutoUpdate=!1,this.color=color$2,this.type=`SpotLightHelper`;let geometry=new BufferGeometry,positions=[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 i$1=0,j$1=1,l$1=32;i$11)for(let i$1=0;i$1.99999)this.quaternion.set(0,0,0,1);else if(dir.y<-.99999)this.quaternion.set(1,0,0,0);else{_axis.set(dir.z,0,-dir.x).normalize();let radians=Math.acos(dir.y);this.quaternion.setFromAxisAngle(_axis,radians)}}setLength(length,headLength=length*.2,headWidth=headLength*.2){this.line.scale.set(1,Math.max(1e-4,length-headLength),1),this.line.updateMatrix(),this.cone.scale.set(headWidth,headLength,headWidth),this.cone.position.y=length,this.cone.updateMatrix()}setColor(color$2){this.line.material.color.set(color$2),this.cone.material.color.set(color$2)}copy(source){return super.copy(source,!1),this.line.copy(source.line),this.cone.copy(source.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}},AxesHelper=class extends LineSegments{constructor(size$1=1){let vertices=[0,0,0,size$1,0,0,0,0,0,0,size$1,0,0,0,0,0,0,size$1],colors=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],geometry=new BufferGeometry;geometry.setAttribute(`position`,new Float32BufferAttribute(vertices,3)),geometry.setAttribute(`color`,new Float32BufferAttribute(colors,3));let material=new LineBasicMaterial({vertexColors:!0,toneMapped:!1});super(geometry,material),this.type=`AxesHelper`}setColors(xAxisColor,yAxisColor,zAxisColor){let color$2=new Color,array=this.geometry.attributes.color.array;return color$2.set(xAxisColor),color$2.toArray(array,0),color$2.toArray(array,3),color$2.set(yAxisColor),color$2.toArray(array,6),color$2.toArray(array,9),color$2.set(zAxisColor),color$2.toArray(array,12),color$2.toArray(array,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}},ShapePath=class{constructor(){this.type=`ShapePath`,this.color=new Color,this.subPaths=[],this.currentPath=null}moveTo(x$3,y$2){return this.currentPath=new Path,this.subPaths.push(this.currentPath),this.currentPath.moveTo(x$3,y$2),this}lineTo(x$3,y$2){return this.currentPath.lineTo(x$3,y$2),this}quadraticCurveTo(aCPx,aCPy,aX,aY){return this.currentPath.quadraticCurveTo(aCPx,aCPy,aX,aY),this}bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY){return this.currentPath.bezierCurveTo(aCP1x,aCP1y,aCP2x,aCP2y,aX,aY),this}splineThru(pts){return this.currentPath.splineThru(pts),this}toShapes(isCCW){function toShapesNoHoles(inSubpaths){let shapes$1=[];for(let i$1=0,l$1=inSubpaths.length;i$12**-52){if(edgeDy<0&&(edgeLowPt=inPolygon[q$1],edgeDx=-edgeDx,edgeHighPt=inPolygon[p$5],edgeDy=-edgeDy),inPt.yedgeHighPt.y)continue;if(inPt.y===edgeLowPt.y){if(inPt.x===edgeLowPt.x)return!0}else{let perpEdge=edgeDy*(inPt.x-edgeLowPt.x)-edgeDx*(inPt.y-edgeLowPt.y);if(perpEdge===0)return!0;if(perpEdge<0)continue;inside=!inside}}else{if(inPt.y!==edgeLowPt.y)continue;if(edgeHighPt.x<=inPt.x&&inPt.x<=edgeLowPt.x||edgeLowPt.x<=inPt.x&&inPt.x<=edgeHighPt.x)return!0}}return inside}let isClockWise=ShapeUtils.isClockWise,subPaths=this.subPaths;if(subPaths.length===0)return[];let solid,tmpPath,tmpShape,shapes=[];if(subPaths.length===1)return tmpPath=subPaths[0],tmpShape=new Shape,tmpShape.curves=tmpPath.curves,shapes.push(tmpShape),shapes;let holesFirst=!isClockWise(subPaths[0].getPoints());holesFirst=isCCW?!holesFirst:holesFirst;let betterShapeHoles=[],newShapes=[],newShapeHoles=[],mainIdx=0,tmpPoints;newShapes[mainIdx]=void 0,newShapeHoles[mainIdx]=[];for(let i$1=0,l$1=subPaths.length;i$11){let ambiguous=!1,toChange=0;for(let sIdx=0,sLen=newShapes.length;sIdx0&&ambiguous===!1&&(newShapeHoles=betterShapeHoles)}let tmpHoles;for(let i$1=0,il=newShapes.length;i$1aspect$1?(texture.repeat.x=1,texture.repeat.y=imageAspect/aspect$1,texture.offset.x=0,texture.offset.y=(1-texture.repeat.y)/2):(texture.repeat.x=aspect$1/imageAspect,texture.repeat.y=1,texture.offset.x=(1-texture.repeat.x)/2,texture.offset.y=0),texture}function cover(texture,aspect$1){let imageAspect=texture.image&&texture.image.width?texture.image.width/texture.image.height:1;return imageAspect>aspect$1?(texture.repeat.x=aspect$1/imageAspect,texture.repeat.y=1,texture.offset.x=(1-texture.repeat.x)/2,texture.offset.y=0):(texture.repeat.x=1,texture.repeat.y=imageAspect/aspect$1,texture.offset.x=0,texture.offset.y=(1-texture.repeat.y)/2),texture}function fill(texture){return texture.repeat.x=1,texture.repeat.y=1,texture.offset.x=0,texture.offset.y=0,texture}function getByteLength(width,height,format$2,type){let typeByteLength=getTextureTypeByteLength(type);switch(format$2){case AlphaFormat:return width*height;case RedFormat:return width*height/typeByteLength.components*typeByteLength.byteLength;case RedIntegerFormat:return width*height/typeByteLength.components*typeByteLength.byteLength;case RGFormat:return width*height*2/typeByteLength.components*typeByteLength.byteLength;case RGIntegerFormat:return width*height*2/typeByteLength.components*typeByteLength.byteLength;case RGBFormat:return width*height*3/typeByteLength.components*typeByteLength.byteLength;case RGBAFormat:return width*height*4/typeByteLength.components*typeByteLength.byteLength;case RGBAIntegerFormat:return width*height*4/typeByteLength.components*typeByteLength.byteLength;case RGB_S3TC_DXT1_Format:case RGBA_S3TC_DXT1_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*8;case RGBA_S3TC_DXT3_Format:case RGBA_S3TC_DXT5_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*16;case RGB_PVRTC_2BPPV1_Format:case RGBA_PVRTC_2BPPV1_Format:return Math.max(width,16)*Math.max(height,8)/4;case RGB_PVRTC_4BPPV1_Format:case RGBA_PVRTC_4BPPV1_Format:return Math.max(width,8)*Math.max(height,8)/2;case RGB_ETC1_Format:case RGB_ETC2_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*8;case RGBA_ETC2_EAC_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*16;case RGBA_ASTC_4x4_Format:return Math.floor((width+3)/4)*Math.floor((height+3)/4)*16;case RGBA_ASTC_5x4_Format:return Math.floor((width+4)/5)*Math.floor((height+3)/4)*16;case RGBA_ASTC_5x5_Format:return Math.floor((width+4)/5)*Math.floor((height+4)/5)*16;case RGBA_ASTC_6x5_Format:return Math.floor((width+5)/6)*Math.floor((height+4)/5)*16;case RGBA_ASTC_6x6_Format:return Math.floor((width+5)/6)*Math.floor((height+5)/6)*16;case RGBA_ASTC_8x5_Format:return Math.floor((width+7)/8)*Math.floor((height+4)/5)*16;case RGBA_ASTC_8x6_Format:return Math.floor((width+7)/8)*Math.floor((height+5)/6)*16;case RGBA_ASTC_8x8_Format:return Math.floor((width+7)/8)*Math.floor((height+7)/8)*16;case RGBA_ASTC_10x5_Format:return Math.floor((width+9)/10)*Math.floor((height+4)/5)*16;case RGBA_ASTC_10x6_Format:return Math.floor((width+9)/10)*Math.floor((height+5)/6)*16;case RGBA_ASTC_10x8_Format:return Math.floor((width+9)/10)*Math.floor((height+7)/8)*16;case RGBA_ASTC_10x10_Format:return Math.floor((width+9)/10)*Math.floor((height+9)/10)*16;case RGBA_ASTC_12x10_Format:return Math.floor((width+11)/12)*Math.floor((height+9)/10)*16;case RGBA_ASTC_12x12_Format:return Math.floor((width+11)/12)*Math.floor((height+11)/12)*16;case RGBA_BPTC_Format:case RGB_BPTC_SIGNED_Format:case RGB_BPTC_UNSIGNED_Format:return Math.ceil(width/4)*Math.ceil(height/4)*16;case RED_RGTC1_Format:case SIGNED_RED_RGTC1_Format:return Math.ceil(width/4)*Math.ceil(height/4)*8;case RED_GREEN_RGTC2_Format:case SIGNED_RED_GREEN_RGTC2_Format:return Math.ceil(width/4)*Math.ceil(height/4)*16}throw Error(`Unable to determine texture byte length for ${format$2} format.`)}function getTextureTypeByteLength(type){switch(type){case UnsignedByteType:case ByteType:return{byteLength:1,components:1};case UnsignedShortType:case ShortType:case HalfFloatType:return{byteLength:2,components:1};case UnsignedShort4444Type:case UnsignedShort5551Type:return{byteLength:2,components:4};case UnsignedIntType:case IntType:case FloatType:return{byteLength:4,components:1};case UnsignedInt5999Type:return{byteLength:4,components:3}}throw Error(`Unknown texture type ${type}.`)}var TextureUtils=class{static contain(texture,aspect$1){return contain(texture,aspect$1)}static cover(texture,aspect$1){return cover(texture,aspect$1)}static fill(texture){return fill(texture)}static getByteLength(width,height,format$2,type){return getByteLength(width,height,format$2,type)}};typeof __THREE_DEVTOOLS__<`u`&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent(`register`,{detail:{revision:REVISION}})),typeof window<`u`&&(window.__THREE__?console.warn(`WARNING: Multiple instances of Three.js being imported.`):window.__THREE__=REVISION);var three_module_exports={};__export(three_module_exports,{ACESFilmicToneMapping:()=>ACESFilmicToneMapping,AddEquation:()=>AddEquation,AddOperation:()=>AddOperation,AdditiveAnimationBlendMode:()=>AdditiveAnimationBlendMode,AdditiveBlending:()=>AdditiveBlending,AgXToneMapping:()=>AgXToneMapping,AlphaFormat:()=>AlphaFormat,AlwaysCompare:()=>AlwaysCompare,AlwaysDepth:()=>AlwaysDepth,AlwaysStencilFunc:()=>AlwaysStencilFunc,AmbientLight:()=>AmbientLight,AnimationAction:()=>AnimationAction,AnimationClip:()=>AnimationClip,AnimationLoader:()=>AnimationLoader,AnimationMixer:()=>AnimationMixer,AnimationObjectGroup:()=>AnimationObjectGroup,AnimationUtils:()=>AnimationUtils,ArcCurve:()=>ArcCurve,ArrayCamera:()=>ArrayCamera,ArrowHelper:()=>ArrowHelper,AttachedBindMode:()=>AttachedBindMode,Audio:()=>Audio$1,AudioAnalyser:()=>AudioAnalyser,AudioContext:()=>AudioContext$1,AudioListener:()=>AudioListener,AudioLoader:()=>AudioLoader,AxesHelper:()=>AxesHelper,BackSide:()=>BackSide,BasicDepthPacking:()=>BasicDepthPacking,BasicShadowMap:()=>BasicShadowMap,BatchedMesh:()=>BatchedMesh,Bone:()=>Bone,BooleanKeyframeTrack:()=>BooleanKeyframeTrack,Box2:()=>Box2,Box3:()=>Box3,Box3Helper:()=>Box3Helper,BoxGeometry:()=>BoxGeometry,BoxHelper:()=>BoxHelper,BufferAttribute:()=>BufferAttribute,BufferGeometry:()=>BufferGeometry,BufferGeometryLoader:()=>BufferGeometryLoader,ByteType:()=>ByteType,Cache:()=>Cache,Camera:()=>Camera,CameraHelper:()=>CameraHelper,CanvasTexture:()=>CanvasTexture,CapsuleGeometry:()=>CapsuleGeometry,CatmullRomCurve3:()=>CatmullRomCurve3,CineonToneMapping:()=>CineonToneMapping,CircleGeometry:()=>CircleGeometry,ClampToEdgeWrapping:()=>ClampToEdgeWrapping,Clock:()=>Clock,Color:()=>Color,ColorKeyframeTrack:()=>ColorKeyframeTrack,ColorManagement:()=>ColorManagement,CompressedArrayTexture:()=>CompressedArrayTexture,CompressedCubeTexture:()=>CompressedCubeTexture,CompressedTexture:()=>CompressedTexture,CompressedTextureLoader:()=>CompressedTextureLoader,ConeGeometry:()=>ConeGeometry,ConstantAlphaFactor:()=>ConstantAlphaFactor,ConstantColorFactor:()=>ConstantColorFactor,Controls:()=>Controls,CubeCamera:()=>CubeCamera,CubeReflectionMapping:()=>CubeReflectionMapping,CubeRefractionMapping:()=>CubeRefractionMapping,CubeTexture:()=>CubeTexture,CubeTextureLoader:()=>CubeTextureLoader,CubeUVReflectionMapping:()=>CubeUVReflectionMapping,CubicBezierCurve:()=>CubicBezierCurve,CubicBezierCurve3:()=>CubicBezierCurve3,CubicInterpolant:()=>CubicInterpolant,CullFaceBack:()=>CullFaceBack,CullFaceFront:()=>CullFaceFront,CullFaceFrontBack:()=>CullFaceFrontBack,CullFaceNone:()=>CullFaceNone,Curve:()=>Curve,CurvePath:()=>CurvePath,CustomBlending:()=>CustomBlending,CustomToneMapping:()=>CustomToneMapping,CylinderGeometry:()=>CylinderGeometry,Cylindrical:()=>Cylindrical,Data3DTexture:()=>Data3DTexture,DataArrayTexture:()=>DataArrayTexture,DataTexture:()=>DataTexture,DataTextureLoader:()=>DataTextureLoader,DataUtils:()=>DataUtils,DecrementStencilOp:()=>DecrementStencilOp,DecrementWrapStencilOp:()=>DecrementWrapStencilOp,DefaultLoadingManager:()=>DefaultLoadingManager,DepthFormat:()=>DepthFormat,DepthStencilFormat:()=>DepthStencilFormat,DepthTexture:()=>DepthTexture,DetachedBindMode:()=>DetachedBindMode,DirectionalLight:()=>DirectionalLight,DirectionalLightHelper:()=>DirectionalLightHelper,DiscreteInterpolant:()=>DiscreteInterpolant,DodecahedronGeometry:()=>DodecahedronGeometry,DoubleSide:()=>DoubleSide,DstAlphaFactor:()=>DstAlphaFactor,DstColorFactor:()=>DstColorFactor,DynamicCopyUsage:()=>DynamicCopyUsage,DynamicDrawUsage:()=>DynamicDrawUsage,DynamicReadUsage:()=>DynamicReadUsage,EdgesGeometry:()=>EdgesGeometry,EllipseCurve:()=>EllipseCurve,EqualCompare:()=>EqualCompare,EqualDepth:()=>EqualDepth,EqualStencilFunc:()=>EqualStencilFunc,EquirectangularReflectionMapping:()=>EquirectangularReflectionMapping,EquirectangularRefractionMapping:()=>EquirectangularRefractionMapping,Euler:()=>Euler,EventDispatcher:()=>EventDispatcher,ExtrudeGeometry:()=>ExtrudeGeometry,FileLoader:()=>FileLoader,Float16BufferAttribute:()=>Float16BufferAttribute,Float32BufferAttribute:()=>Float32BufferAttribute,FloatType:()=>FloatType,Fog:()=>Fog,FogExp2:()=>FogExp2,FramebufferTexture:()=>FramebufferTexture,FrontSide:()=>FrontSide,Frustum:()=>Frustum,FrustumArray:()=>FrustumArray,GLBufferAttribute:()=>GLBufferAttribute,GLSL1:()=>GLSL1,GLSL3:()=>GLSL3,GreaterCompare:()=>GreaterCompare,GreaterDepth:()=>GreaterDepth,GreaterEqualCompare:()=>GreaterEqualCompare,GreaterEqualDepth:()=>GreaterEqualDepth,GreaterEqualStencilFunc:()=>GreaterEqualStencilFunc,GreaterStencilFunc:()=>GreaterStencilFunc,GridHelper:()=>GridHelper,Group:()=>Group,HalfFloatType:()=>HalfFloatType,HemisphereLight:()=>HemisphereLight,HemisphereLightHelper:()=>HemisphereLightHelper,IcosahedronGeometry:()=>IcosahedronGeometry,ImageBitmapLoader:()=>ImageBitmapLoader,ImageLoader:()=>ImageLoader,ImageUtils:()=>ImageUtils,IncrementStencilOp:()=>IncrementStencilOp,IncrementWrapStencilOp:()=>IncrementWrapStencilOp,InstancedBufferAttribute:()=>InstancedBufferAttribute,InstancedBufferGeometry:()=>InstancedBufferGeometry,InstancedInterleavedBuffer:()=>InstancedInterleavedBuffer,InstancedMesh:()=>InstancedMesh,Int16BufferAttribute:()=>Int16BufferAttribute,Int32BufferAttribute:()=>Int32BufferAttribute,Int8BufferAttribute:()=>Int8BufferAttribute,IntType:()=>IntType,InterleavedBuffer:()=>InterleavedBuffer,InterleavedBufferAttribute:()=>InterleavedBufferAttribute,Interpolant:()=>Interpolant,InterpolateDiscrete:()=>InterpolateDiscrete,InterpolateLinear:()=>InterpolateLinear,InterpolateSmooth:()=>InterpolateSmooth,InterpolationSamplingMode:()=>InterpolationSamplingMode,InterpolationSamplingType:()=>InterpolationSamplingType,InvertStencilOp:()=>InvertStencilOp,KeepStencilOp:()=>KeepStencilOp,KeyframeTrack:()=>KeyframeTrack,LOD:()=>LOD,LatheGeometry:()=>LatheGeometry,Layers:()=>Layers,LessCompare:()=>LessCompare,LessDepth:()=>LessDepth,LessEqualCompare:()=>LessEqualCompare,LessEqualDepth:()=>LessEqualDepth,LessEqualStencilFunc:()=>LessEqualStencilFunc,LessStencilFunc:()=>LessStencilFunc,Light:()=>Light,LightProbe:()=>LightProbe,Line:()=>Line,Line3:()=>Line3,LineBasicMaterial:()=>LineBasicMaterial,LineCurve:()=>LineCurve,LineCurve3:()=>LineCurve3,LineDashedMaterial:()=>LineDashedMaterial,LineLoop:()=>LineLoop,LineSegments:()=>LineSegments,LinearFilter:()=>LinearFilter,LinearInterpolant:()=>LinearInterpolant,LinearMipMapLinearFilter:()=>LinearMipMapLinearFilter,LinearMipMapNearestFilter:()=>LinearMipMapNearestFilter,LinearMipmapLinearFilter:()=>LinearMipmapLinearFilter,LinearMipmapNearestFilter:()=>LinearMipmapNearestFilter,LinearSRGBColorSpace:()=>LinearSRGBColorSpace,LinearToneMapping:()=>LinearToneMapping,LinearTransfer:()=>LinearTransfer,Loader:()=>Loader,LoaderUtils:()=>LoaderUtils,LoadingManager:()=>LoadingManager,LoopOnce:()=>LoopOnce,LoopPingPong:()=>LoopPingPong,LoopRepeat:()=>LoopRepeat,MOUSE:()=>MOUSE,Material:()=>Material,MaterialLoader:()=>MaterialLoader,MathUtils:()=>MathUtils,Matrix2:()=>Matrix2,Matrix3:()=>Matrix3,Matrix4:()=>Matrix4,MaxEquation:()=>MaxEquation,Mesh:()=>Mesh,MeshBasicMaterial:()=>MeshBasicMaterial,MeshDepthMaterial:()=>MeshDepthMaterial,MeshDistanceMaterial:()=>MeshDistanceMaterial,MeshLambertMaterial:()=>MeshLambertMaterial,MeshMatcapMaterial:()=>MeshMatcapMaterial,MeshNormalMaterial:()=>MeshNormalMaterial,MeshPhongMaterial:()=>MeshPhongMaterial,MeshPhysicalMaterial:()=>MeshPhysicalMaterial,MeshStandardMaterial:()=>MeshStandardMaterial,MeshToonMaterial:()=>MeshToonMaterial,MinEquation:()=>MinEquation,MirroredRepeatWrapping:()=>MirroredRepeatWrapping,MixOperation:()=>MixOperation,MultiplyBlending:()=>MultiplyBlending,MultiplyOperation:()=>MultiplyOperation,NearestFilter:()=>NearestFilter,NearestMipMapLinearFilter:()=>NearestMipMapLinearFilter,NearestMipMapNearestFilter:()=>NearestMipMapNearestFilter,NearestMipmapLinearFilter:()=>NearestMipmapLinearFilter,NearestMipmapNearestFilter:()=>NearestMipmapNearestFilter,NeutralToneMapping:()=>NeutralToneMapping,NeverCompare:()=>NeverCompare,NeverDepth:()=>NeverDepth,NeverStencilFunc:()=>NeverStencilFunc,NoBlending:()=>NoBlending,NoColorSpace:()=>NoColorSpace,NoToneMapping:()=>NoToneMapping,NormalAnimationBlendMode:()=>NormalAnimationBlendMode,NormalBlending:()=>NormalBlending,NotEqualCompare:()=>NotEqualCompare,NotEqualDepth:()=>NotEqualDepth,NotEqualStencilFunc:()=>NotEqualStencilFunc,NumberKeyframeTrack:()=>NumberKeyframeTrack,Object3D:()=>Object3D,ObjectLoader:()=>ObjectLoader,ObjectSpaceNormalMap:()=>ObjectSpaceNormalMap,OctahedronGeometry:()=>OctahedronGeometry,OneFactor:()=>OneFactor,OneMinusConstantAlphaFactor:()=>OneMinusConstantAlphaFactor,OneMinusConstantColorFactor:()=>OneMinusConstantColorFactor,OneMinusDstAlphaFactor:()=>OneMinusDstAlphaFactor,OneMinusDstColorFactor:()=>OneMinusDstColorFactor,OneMinusSrcAlphaFactor:()=>OneMinusSrcAlphaFactor,OneMinusSrcColorFactor:()=>OneMinusSrcColorFactor,OrthographicCamera:()=>OrthographicCamera,PCFShadowMap:()=>PCFShadowMap,PCFSoftShadowMap:()=>PCFSoftShadowMap,PMREMGenerator:()=>PMREMGenerator,Path:()=>Path,PerspectiveCamera:()=>PerspectiveCamera,Plane:()=>Plane,PlaneGeometry:()=>PlaneGeometry,PlaneHelper:()=>PlaneHelper,PointLight:()=>PointLight,PointLightHelper:()=>PointLightHelper,Points:()=>Points,PointsMaterial:()=>PointsMaterial,PolarGridHelper:()=>PolarGridHelper,PolyhedronGeometry:()=>PolyhedronGeometry,PositionalAudio:()=>PositionalAudio,PropertyBinding:()=>PropertyBinding,PropertyMixer:()=>PropertyMixer,QuadraticBezierCurve:()=>QuadraticBezierCurve,QuadraticBezierCurve3:()=>QuadraticBezierCurve3,Quaternion:()=>Quaternion,QuaternionKeyframeTrack:()=>QuaternionKeyframeTrack,QuaternionLinearInterpolant:()=>QuaternionLinearInterpolant,RED_GREEN_RGTC2_Format:()=>RED_GREEN_RGTC2_Format,RED_RGTC1_Format:()=>RED_RGTC1_Format,REVISION:()=>REVISION,RGBADepthPacking:()=>RGBADepthPacking,RGBAFormat:()=>RGBAFormat,RGBAIntegerFormat:()=>RGBAIntegerFormat,RGBA_ASTC_10x10_Format:()=>RGBA_ASTC_10x10_Format,RGBA_ASTC_10x5_Format:()=>RGBA_ASTC_10x5_Format,RGBA_ASTC_10x6_Format:()=>RGBA_ASTC_10x6_Format,RGBA_ASTC_10x8_Format:()=>RGBA_ASTC_10x8_Format,RGBA_ASTC_12x10_Format:()=>RGBA_ASTC_12x10_Format,RGBA_ASTC_12x12_Format:()=>RGBA_ASTC_12x12_Format,RGBA_ASTC_4x4_Format:()=>RGBA_ASTC_4x4_Format,RGBA_ASTC_5x4_Format:()=>RGBA_ASTC_5x4_Format,RGBA_ASTC_5x5_Format:()=>RGBA_ASTC_5x5_Format,RGBA_ASTC_6x5_Format:()=>RGBA_ASTC_6x5_Format,RGBA_ASTC_6x6_Format:()=>RGBA_ASTC_6x6_Format,RGBA_ASTC_8x5_Format:()=>RGBA_ASTC_8x5_Format,RGBA_ASTC_8x6_Format:()=>RGBA_ASTC_8x6_Format,RGBA_ASTC_8x8_Format:()=>RGBA_ASTC_8x8_Format,RGBA_BPTC_Format:()=>RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:()=>RGBA_ETC2_EAC_Format,RGBA_PVRTC_2BPPV1_Format:()=>RGBA_PVRTC_2BPPV1_Format,RGBA_PVRTC_4BPPV1_Format:()=>RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT1_Format:()=>RGBA_S3TC_DXT1_Format,RGBA_S3TC_DXT3_Format:()=>RGBA_S3TC_DXT3_Format,RGBA_S3TC_DXT5_Format:()=>RGBA_S3TC_DXT5_Format,RGBDepthPacking:()=>RGBDepthPacking,RGBFormat:()=>RGBFormat,RGBIntegerFormat:()=>RGBIntegerFormat,RGB_BPTC_SIGNED_Format:()=>RGB_BPTC_SIGNED_Format,RGB_BPTC_UNSIGNED_Format:()=>RGB_BPTC_UNSIGNED_Format,RGB_ETC1_Format:()=>RGB_ETC1_Format,RGB_ETC2_Format:()=>RGB_ETC2_Format,RGB_PVRTC_2BPPV1_Format:()=>RGB_PVRTC_2BPPV1_Format,RGB_PVRTC_4BPPV1_Format:()=>RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:()=>RGB_S3TC_DXT1_Format,RGDepthPacking:()=>RGDepthPacking,RGFormat:()=>RGFormat,RGIntegerFormat:()=>RGIntegerFormat,RawShaderMaterial:()=>RawShaderMaterial,Ray:()=>Ray,Raycaster:()=>Raycaster,RectAreaLight:()=>RectAreaLight,RedFormat:()=>RedFormat,RedIntegerFormat:()=>RedIntegerFormat,ReinhardToneMapping:()=>ReinhardToneMapping,RenderTarget:()=>RenderTarget,RenderTarget3D:()=>RenderTarget3D,RepeatWrapping:()=>RepeatWrapping,ReplaceStencilOp:()=>ReplaceStencilOp,ReverseSubtractEquation:()=>ReverseSubtractEquation,RingGeometry:()=>RingGeometry,SIGNED_RED_GREEN_RGTC2_Format:()=>SIGNED_RED_GREEN_RGTC2_Format,SIGNED_RED_RGTC1_Format:()=>SIGNED_RED_RGTC1_Format,SRGBColorSpace:()=>SRGBColorSpace,SRGBTransfer:()=>SRGBTransfer,Scene:()=>Scene,ShaderChunk:()=>ShaderChunk,ShaderLib:()=>ShaderLib,ShaderMaterial:()=>ShaderMaterial,ShadowMaterial:()=>ShadowMaterial,Shape:()=>Shape,ShapeGeometry:()=>ShapeGeometry,ShapePath:()=>ShapePath,ShapeUtils:()=>ShapeUtils,ShortType:()=>ShortType,Skeleton:()=>Skeleton,SkeletonHelper:()=>SkeletonHelper,SkinnedMesh:()=>SkinnedMesh,Source:()=>Source,Sphere:()=>Sphere,SphereGeometry:()=>SphereGeometry,Spherical:()=>Spherical,SphericalHarmonics3:()=>SphericalHarmonics3,SplineCurve:()=>SplineCurve,SpotLight:()=>SpotLight,SpotLightHelper:()=>SpotLightHelper,Sprite:()=>Sprite,SpriteMaterial:()=>SpriteMaterial,SrcAlphaFactor:()=>SrcAlphaFactor,SrcAlphaSaturateFactor:()=>SrcAlphaSaturateFactor,SrcColorFactor:()=>SrcColorFactor,StaticCopyUsage:()=>StaticCopyUsage,StaticDrawUsage:()=>StaticDrawUsage,StaticReadUsage:()=>StaticReadUsage,StereoCamera:()=>StereoCamera,StreamCopyUsage:()=>StreamCopyUsage,StreamDrawUsage:()=>StreamDrawUsage,StreamReadUsage:()=>StreamReadUsage,StringKeyframeTrack:()=>StringKeyframeTrack,SubtractEquation:()=>SubtractEquation,SubtractiveBlending:()=>SubtractiveBlending,TOUCH:()=>TOUCH,TangentSpaceNormalMap:()=>TangentSpaceNormalMap,TetrahedronGeometry:()=>TetrahedronGeometry,Texture:()=>Texture,TextureLoader:()=>TextureLoader,TextureUtils:()=>TextureUtils,TimestampQuery:()=>TimestampQuery,TorusGeometry:()=>TorusGeometry,TorusKnotGeometry:()=>TorusKnotGeometry,Triangle:()=>Triangle,TriangleFanDrawMode:()=>TriangleFanDrawMode,TriangleStripDrawMode:()=>TriangleStripDrawMode,TrianglesDrawMode:()=>TrianglesDrawMode,TubeGeometry:()=>TubeGeometry,UVMapping:()=>UVMapping,Uint16BufferAttribute:()=>Uint16BufferAttribute,Uint32BufferAttribute:()=>Uint32BufferAttribute,Uint8BufferAttribute:()=>Uint8BufferAttribute,Uint8ClampedBufferAttribute:()=>Uint8ClampedBufferAttribute,Uniform:()=>Uniform,UniformsGroup:()=>UniformsGroup,UniformsLib:()=>UniformsLib,UniformsUtils:()=>UniformsUtils,UnsignedByteType:()=>UnsignedByteType,UnsignedInt248Type:()=>UnsignedInt248Type,UnsignedInt5999Type:()=>UnsignedInt5999Type,UnsignedIntType:()=>UnsignedIntType,UnsignedShort4444Type:()=>UnsignedShort4444Type,UnsignedShort5551Type:()=>UnsignedShort5551Type,UnsignedShortType:()=>UnsignedShortType,VSMShadowMap:()=>VSMShadowMap,Vector2:()=>Vector2,Vector3:()=>Vector3,Vector4:()=>Vector4,VectorKeyframeTrack:()=>VectorKeyframeTrack,VideoFrameTexture:()=>VideoFrameTexture,VideoTexture:()=>VideoTexture,WebGL3DRenderTarget:()=>WebGL3DRenderTarget,WebGLArrayRenderTarget:()=>WebGLArrayRenderTarget,WebGLCoordinateSystem:()=>WebGLCoordinateSystem,WebGLCubeRenderTarget:()=>WebGLCubeRenderTarget,WebGLRenderTarget:()=>WebGLRenderTarget,WebGLRenderer:()=>WebGLRenderer,WebGLUtils:()=>WebGLUtils,WebGPUCoordinateSystem:()=>WebGPUCoordinateSystem,WebXRController:()=>WebXRController,WireframeGeometry:()=>WireframeGeometry,WrapAroundEnding:()=>WrapAroundEnding,ZeroCurvatureEnding:()=>ZeroCurvatureEnding,ZeroFactor:()=>ZeroFactor,ZeroSlopeEnding:()=>ZeroSlopeEnding,ZeroStencilOp:()=>ZeroStencilOp,createCanvasElement:()=>createCanvasElement});function WebGLAnimation(){let context$1=null,isAnimating=!1,animationLoop=null,requestId=null;function onAnimationFrame(time,frame$1){animationLoop(time,frame$1),requestId=context$1.requestAnimationFrame(onAnimationFrame)}return{start:function(){isAnimating!==!0&&animationLoop!==null&&(requestId=context$1.requestAnimationFrame(onAnimationFrame),isAnimating=!0)},stop:function(){context$1.cancelAnimationFrame(requestId),isAnimating=!1},setAnimationLoop:function(callback){animationLoop=callback},setContext:function(value$1){context$1=value$1}}}function WebGLAttributes(gl){let buffers=new WeakMap;function createBuffer(attribute,bufferType){let array=attribute.array,usage=attribute.usage,size$1=array.byteLength,buffer$1=gl.createBuffer();gl.bindBuffer(bufferType,buffer$1),gl.bufferData(bufferType,array,usage),attribute.onUploadCallback();let type;if(array instanceof Float32Array)type=gl.FLOAT;else if(typeof Float16Array<`u`&&array instanceof Float16Array)type=gl.HALF_FLOAT;else if(array instanceof Uint16Array)type=attribute.isFloat16BufferAttribute?gl.HALF_FLOAT:gl.UNSIGNED_SHORT;else if(array instanceof Int16Array)type=gl.SHORT;else if(array instanceof Uint32Array)type=gl.UNSIGNED_INT;else if(array instanceof Int32Array)type=gl.INT;else if(array instanceof Int8Array)type=gl.BYTE;else if(array instanceof Uint8Array)type=gl.UNSIGNED_BYTE;else if(array instanceof Uint8ClampedArray)type=gl.UNSIGNED_BYTE;else throw Error(`THREE.WebGLAttributes: Unsupported buffer data format: `+array);return{buffer:buffer$1,type,bytesPerElement:array.BYTES_PER_ELEMENT,version:attribute.version,size:size$1}}function updateBuffer(buffer$1,attribute,bufferType){let array=attribute.array,updateRanges=attribute.updateRanges;if(gl.bindBuffer(bufferType,buffer$1),updateRanges.length===0)gl.bufferSubData(bufferType,0,array);else{updateRanges.sort((a$2,b$3)=>a$2.start-b$3.start);let mergeIndex=0;for(let i$1=1;i$1=0&&(controllerInputSources[index$1]=null,controllers[index$1].disconnect(inputSource))}for(let i$1=0;i$1=controllerInputSources.length){controllerInputSources.push(inputSource),controllerIndex=i$2;break}else if(controllerInputSources[i$2]===null){controllerInputSources[i$2]=inputSource,controllerIndex=i$2;break}if(controllerIndex===-1)break}let controller=controllers[controllerIndex];controller&&controller.connect(inputSource)}}let cameraLPos=new Vector3,cameraRPos=new Vector3;function setProjectionFromUnion(camera,cameraL$1,cameraR$1){cameraLPos.setFromMatrixPosition(cameraL$1.matrixWorld),cameraRPos.setFromMatrixPosition(cameraR$1.matrixWorld);let ipd=cameraLPos.distanceTo(cameraRPos),projL=cameraL$1.projectionMatrix.elements,projR=cameraR$1.projectionMatrix.elements,near=projL[14]/(projL[10]-1),far=projL[14]/(projL[10]+1),topFov=(projL[9]+1)/projL[5],bottomFov=(projL[9]-1)/projL[5],leftFov=(projL[8]-1)/projL[0],rightFov=(projR[8]+1)/projR[0],left=near*leftFov,right=near*rightFov,zOffset=ipd/(-leftFov+rightFov),xOffset=zOffset*-leftFov;if(cameraL$1.matrixWorld.decompose(camera.position,camera.quaternion,camera.scale),camera.translateX(xOffset),camera.translateZ(zOffset),camera.matrixWorld.compose(camera.position,camera.quaternion,camera.scale),camera.matrixWorldInverse.copy(camera.matrixWorld).invert(),projL[10]===-1)camera.projectionMatrix.copy(cameraL$1.projectionMatrix),camera.projectionMatrixInverse.copy(cameraL$1.projectionMatrixInverse);else{let near2=near+zOffset,far2=far+zOffset,left2=left-xOffset,right2=right+(ipd-xOffset),top2=topFov*far/far2*near2,bottom2=bottomFov*far/far2*near2;camera.projectionMatrix.makePerspective(left2,right2,top2,bottom2,near2,far2),camera.projectionMatrixInverse.copy(camera.projectionMatrix).invert()}}function updateCamera(camera,parent){parent===null?camera.matrixWorld.copy(camera.matrix):camera.matrixWorld.multiplyMatrices(parent.matrixWorld,camera.matrix),camera.matrixWorldInverse.copy(camera.matrixWorld).invert()}this.updateCamera=function(camera){if(session===null)return;let depthNear=camera.near,depthFar=camera.far;depthSensing.texture!==null&&(depthSensing.depthNear>0&&(depthNear=depthSensing.depthNear),depthSensing.depthFar>0&&(depthFar=depthSensing.depthFar)),cameraXR.near=cameraR.near=cameraL.near=depthNear,cameraXR.far=cameraR.far=cameraL.far=depthFar,(_currentDepthNear!==cameraXR.near||_currentDepthFar!==cameraXR.far)&&(session.updateRenderState({depthNear:cameraXR.near,depthFar:cameraXR.far}),_currentDepthNear=cameraXR.near,_currentDepthFar=cameraXR.far),cameraL.layers.mask=camera.layers.mask|2,cameraR.layers.mask=camera.layers.mask|4,cameraXR.layers.mask=cameraL.layers.mask|cameraR.layers.mask;let parent=camera.parent,cameras$1=cameraXR.cameras;updateCamera(cameraXR,parent);for(let i$1=0;i$10&&(uniforms.alphaTest.value=material.alphaTest);let materialProperties=properties.get(material),envMap=materialProperties.envMap,envMapRotation=materialProperties.envMapRotation;envMap&&(uniforms.envMap.value=envMap,_e1.copy(envMapRotation),_e1.x*=-1,_e1.y*=-1,_e1.z*=-1,envMap.isCubeTexture&&envMap.isRenderTargetTexture===!1&&(_e1.y*=-1,_e1.z*=-1),uniforms.envMapRotation.value.setFromMatrix4(_m1.makeRotationFromEuler(_e1)),uniforms.flipEnvMap.value=envMap.isCubeTexture&&envMap.isRenderTargetTexture===!1?-1:1,uniforms.reflectivity.value=material.reflectivity,uniforms.ior.value=material.ior,uniforms.refractionRatio.value=material.refractionRatio),material.lightMap&&(uniforms.lightMap.value=material.lightMap,uniforms.lightMapIntensity.value=material.lightMapIntensity,refreshTransformUniform(material.lightMap,uniforms.lightMapTransform)),material.aoMap&&(uniforms.aoMap.value=material.aoMap,uniforms.aoMapIntensity.value=material.aoMapIntensity,refreshTransformUniform(material.aoMap,uniforms.aoMapTransform))}function refreshUniformsLine(uniforms,material){uniforms.diffuse.value.copy(material.color),uniforms.opacity.value=material.opacity,material.map&&(uniforms.map.value=material.map,refreshTransformUniform(material.map,uniforms.mapTransform))}function refreshUniformsDash(uniforms,material){uniforms.dashSize.value=material.dashSize,uniforms.totalSize.value=material.dashSize+material.gapSize,uniforms.scale.value=material.scale}function refreshUniformsPoints(uniforms,material,pixelRatio,height){uniforms.diffuse.value.copy(material.color),uniforms.opacity.value=material.opacity,uniforms.size.value=material.size*pixelRatio,uniforms.scale.value=height*.5,material.map&&(uniforms.map.value=material.map,refreshTransformUniform(material.map,uniforms.uvTransform)),material.alphaMap&&(uniforms.alphaMap.value=material.alphaMap,refreshTransformUniform(material.alphaMap,uniforms.alphaMapTransform)),material.alphaTest>0&&(uniforms.alphaTest.value=material.alphaTest)}function refreshUniformsSprites(uniforms,material){uniforms.diffuse.value.copy(material.color),uniforms.opacity.value=material.opacity,uniforms.rotation.value=material.rotation,material.map&&(uniforms.map.value=material.map,refreshTransformUniform(material.map,uniforms.mapTransform)),material.alphaMap&&(uniforms.alphaMap.value=material.alphaMap,refreshTransformUniform(material.alphaMap,uniforms.alphaMapTransform)),material.alphaTest>0&&(uniforms.alphaTest.value=material.alphaTest)}function refreshUniformsPhong(uniforms,material){uniforms.specular.value.copy(material.specular),uniforms.shininess.value=Math.max(material.shininess,1e-4)}function refreshUniformsToon(uniforms,material){material.gradientMap&&(uniforms.gradientMap.value=material.gradientMap)}function refreshUniformsStandard(uniforms,material){uniforms.metalness.value=material.metalness,material.metalnessMap&&(uniforms.metalnessMap.value=material.metalnessMap,refreshTransformUniform(material.metalnessMap,uniforms.metalnessMapTransform)),uniforms.roughness.value=material.roughness,material.roughnessMap&&(uniforms.roughnessMap.value=material.roughnessMap,refreshTransformUniform(material.roughnessMap,uniforms.roughnessMapTransform)),material.envMap&&(uniforms.envMapIntensity.value=material.envMapIntensity)}function refreshUniformsPhysical(uniforms,material,transmissionRenderTarget){uniforms.ior.value=material.ior,material.sheen>0&&(uniforms.sheenColor.value.copy(material.sheenColor).multiplyScalar(material.sheen),uniforms.sheenRoughness.value=material.sheenRoughness,material.sheenColorMap&&(uniforms.sheenColorMap.value=material.sheenColorMap,refreshTransformUniform(material.sheenColorMap,uniforms.sheenColorMapTransform)),material.sheenRoughnessMap&&(uniforms.sheenRoughnessMap.value=material.sheenRoughnessMap,refreshTransformUniform(material.sheenRoughnessMap,uniforms.sheenRoughnessMapTransform))),material.clearcoat>0&&(uniforms.clearcoat.value=material.clearcoat,uniforms.clearcoatRoughness.value=material.clearcoatRoughness,material.clearcoatMap&&(uniforms.clearcoatMap.value=material.clearcoatMap,refreshTransformUniform(material.clearcoatMap,uniforms.clearcoatMapTransform)),material.clearcoatRoughnessMap&&(uniforms.clearcoatRoughnessMap.value=material.clearcoatRoughnessMap,refreshTransformUniform(material.clearcoatRoughnessMap,uniforms.clearcoatRoughnessMapTransform)),material.clearcoatNormalMap&&(uniforms.clearcoatNormalMap.value=material.clearcoatNormalMap,refreshTransformUniform(material.clearcoatNormalMap,uniforms.clearcoatNormalMapTransform),uniforms.clearcoatNormalScale.value.copy(material.clearcoatNormalScale),material.side===BackSide&&uniforms.clearcoatNormalScale.value.negate())),material.dispersion>0&&(uniforms.dispersion.value=material.dispersion),material.iridescence>0&&(uniforms.iridescence.value=material.iridescence,uniforms.iridescenceIOR.value=material.iridescenceIOR,uniforms.iridescenceThicknessMinimum.value=material.iridescenceThicknessRange[0],uniforms.iridescenceThicknessMaximum.value=material.iridescenceThicknessRange[1],material.iridescenceMap&&(uniforms.iridescenceMap.value=material.iridescenceMap,refreshTransformUniform(material.iridescenceMap,uniforms.iridescenceMapTransform)),material.iridescenceThicknessMap&&(uniforms.iridescenceThicknessMap.value=material.iridescenceThicknessMap,refreshTransformUniform(material.iridescenceThicknessMap,uniforms.iridescenceThicknessMapTransform))),material.transmission>0&&(uniforms.transmission.value=material.transmission,uniforms.transmissionSamplerMap.value=transmissionRenderTarget.texture,uniforms.transmissionSamplerSize.value.set(transmissionRenderTarget.width,transmissionRenderTarget.height),material.transmissionMap&&(uniforms.transmissionMap.value=material.transmissionMap,refreshTransformUniform(material.transmissionMap,uniforms.transmissionMapTransform)),uniforms.thickness.value=material.thickness,material.thicknessMap&&(uniforms.thicknessMap.value=material.thicknessMap,refreshTransformUniform(material.thicknessMap,uniforms.thicknessMapTransform)),uniforms.attenuationDistance.value=material.attenuationDistance,uniforms.attenuationColor.value.copy(material.attenuationColor)),material.anisotropy>0&&(uniforms.anisotropyVector.value.set(material.anisotropy*Math.cos(material.anisotropyRotation),material.anisotropy*Math.sin(material.anisotropyRotation)),material.anisotropyMap&&(uniforms.anisotropyMap.value=material.anisotropyMap,refreshTransformUniform(material.anisotropyMap,uniforms.anisotropyMapTransform))),uniforms.specularIntensity.value=material.specularIntensity,uniforms.specularColor.value.copy(material.specularColor),material.specularColorMap&&(uniforms.specularColorMap.value=material.specularColorMap,refreshTransformUniform(material.specularColorMap,uniforms.specularColorMapTransform)),material.specularIntensityMap&&(uniforms.specularIntensityMap.value=material.specularIntensityMap,refreshTransformUniform(material.specularIntensityMap,uniforms.specularIntensityMapTransform))}function refreshUniformsMatcap(uniforms,material){material.matcap&&(uniforms.matcap.value=material.matcap)}function refreshUniformsDistance(uniforms,material){let light=properties.get(material).light;uniforms.referencePosition.value.setFromMatrixPosition(light.matrixWorld),uniforms.nearDistance.value=light.shadow.camera.near,uniforms.farDistance.value=light.shadow.camera.far}return{refreshFogUniforms,refreshMaterialUniforms}}function WebGLUniformsGroups(gl,info,capabilities,state){let buffers={},updateList={},allocatedBindingPoints=[],maxBindingPoints=gl.getParameter(gl.MAX_UNIFORM_BUFFER_BINDINGS);function bind(uniformsGroup,program){let webglProgram=program.program;state.uniformBlockBinding(uniformsGroup,webglProgram)}function update(uniformsGroup,program){let buffer$1=buffers[uniformsGroup.id];buffer$1===void 0&&(prepareUniformsGroup(uniformsGroup),buffer$1=createBuffer(uniformsGroup),buffers[uniformsGroup.id]=buffer$1,uniformsGroup.addEventListener(`dispose`,onUniformsGroupsDispose));let webglProgram=program.program;state.updateUBOMapping(uniformsGroup,webglProgram);let frame$1=info.render.frame;updateList[uniformsGroup.id]!==frame$1&&(updateBufferData(uniformsGroup),updateList[uniformsGroup.id]=frame$1)}function createBuffer(uniformsGroup){let bindingPointIndex=allocateBindingPointIndex();uniformsGroup.__bindingPointIndex=bindingPointIndex;let buffer$1=gl.createBuffer(),size$1=uniformsGroup.__size,usage=uniformsGroup.usage;return gl.bindBuffer(gl.UNIFORM_BUFFER,buffer$1),gl.bufferData(gl.UNIFORM_BUFFER,size$1,usage),gl.bindBuffer(gl.UNIFORM_BUFFER,null),gl.bindBufferBase(gl.UNIFORM_BUFFER,bindingPointIndex,buffer$1),buffer$1}function allocateBindingPointIndex(){for(let i$1=0;i$10&&(offset$1+=chunkSize-chunkOffset),uniformsGroup.__size=offset$1,uniformsGroup.__cache={},this}function getUniformSize(value$1){let info$1={boundary:0,storage:0};return typeof value$1==`number`||typeof value$1==`boolean`?(info$1.boundary=4,info$1.storage=4):value$1.isVector2?(info$1.boundary=8,info$1.storage=8):value$1.isVector3||value$1.isColor?(info$1.boundary=16,info$1.storage=12):value$1.isVector4?(info$1.boundary=16,info$1.storage=16):value$1.isMatrix3?(info$1.boundary=48,info$1.storage=48):value$1.isMatrix4?(info$1.boundary=64,info$1.storage=64):value$1.isTexture?console.warn(`THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group.`):console.warn(`THREE.WebGLRenderer: Unsupported uniform value type.`,value$1),info$1}function onUniformsGroupsDispose(event){let uniformsGroup=event.target;uniformsGroup.removeEventListener(`dispose`,onUniformsGroupsDispose);let index$1=allocatedBindingPoints.indexOf(uniformsGroup.__bindingPointIndex);allocatedBindingPoints.splice(index$1,1),gl.deleteBuffer(buffers[uniformsGroup.id]),delete buffers[uniformsGroup.id],delete updateList[uniformsGroup.id]}function dispose$1(){for(let id in buffers)gl.deleteBuffer(buffers[id]);allocatedBindingPoints=[],buffers={},updateList={}}return{bind,update,dispose:dispose$1}}var WebGLRenderer=class{constructor(parameters={}){let{canvas=createCanvasElement(),context:context$1=null,depth=!0,stencil=!1,alpha:alpha$1=!1,antialias=!1,premultipliedAlpha=!0,preserveDrawingBuffer=!1,powerPreference=`default`,failIfMajorPerformanceCaveat=!1,reverseDepthBuffer=!1}=parameters;this.isWebGLRenderer=!0;let _alpha;if(context$1!==null){if(typeof WebGLRenderingContext<`u`&&context$1 instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);_alpha=context$1.getContextAttributes().alpha}else _alpha=alpha$1;let uintClearColor=new Uint32Array(4),intClearColor=new Int32Array(4),currentRenderList=null,currentRenderState=null,renderListStack=[],renderStateStack=[];this.domElement=canvas,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=NoToneMapping,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let _this=this,_isContextLost=!1;this._outputColorSpace=SRGBColorSpace;let _currentActiveCubeFace=0,_currentActiveMipmapLevel=0,_currentRenderTarget=null,_currentMaterialId=-1,_currentCamera=null,_currentViewport=new Vector4,_currentScissor=new Vector4,_currentScissorTest=null,_currentClearColor=new Color(0),_currentClearAlpha=0,_width=canvas.width,_height=canvas.height,_pixelRatio=1,_opaqueSort=null,_transparentSort=null,_viewport=new Vector4(0,0,_width,_height),_scissor=new Vector4(0,0,_width,_height),_scissorTest=!1,_frustum$2=new Frustum,_clippingEnabled=!1,_localClippingEnabled=!1,_currentProjectionMatrix=new Matrix4,_projScreenMatrix$3=new Matrix4,_vector3$1=new Vector3,_vector4=new Vector4,_emptyScene={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},_renderBackground=!1;function getTargetPixelRatio(){return _currentRenderTarget===null?_pixelRatio:1}let _gl=context$1;function getContext$1(contextName,contextAttributes){return canvas.getContext(contextName,contextAttributes)}try{let contextAttributes={alpha:!0,depth,stencil,antialias,premultipliedAlpha,preserveDrawingBuffer,powerPreference,failIfMajorPerformanceCaveat};if(`setAttribute`in canvas&&canvas.setAttribute(`data-engine`,`three.js r${REVISION}`),canvas.addEventListener(`webglcontextlost`,onContextLost,!1),canvas.addEventListener(`webglcontextrestored`,onContextRestore,!1),canvas.addEventListener(`webglcontextcreationerror`,onContextCreationError,!1),_gl===null){let contextName=`webgl2`;if(_gl=getContext$1(contextName,contextAttributes),_gl===null)throw getContext$1(contextName)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(error){throw console.error(`THREE.WebGLRenderer: `+error.message),error}let extensions,capabilities,state,info,properties,textures,cubemaps,cubeuvmaps,attributes,geometries,objects,programCache,materials,renderLists,renderStates,clipping,shadowMap,background,morphtargets,bufferRenderer,indexedBufferRenderer,utils,bindingStates,uniformsGroups;function initGLContext(){extensions=new WebGLExtensions(_gl),extensions.init(),utils=new WebGLUtils(_gl,extensions),capabilities=new WebGLCapabilities(_gl,extensions,parameters,utils),state=new WebGLState(_gl,extensions),capabilities.reverseDepthBuffer&&reverseDepthBuffer&&state.buffers.depth.setReversed(!0),info=new WebGLInfo(_gl),properties=new WebGLProperties,textures=new WebGLTextures(_gl,extensions,state,properties,capabilities,utils,info),cubemaps=new WebGLCubeMaps(_this),cubeuvmaps=new WebGLCubeUVMaps(_this),attributes=new WebGLAttributes(_gl),bindingStates=new WebGLBindingStates(_gl,attributes),geometries=new WebGLGeometries(_gl,attributes,info,bindingStates),objects=new WebGLObjects(_gl,geometries,attributes,info),morphtargets=new WebGLMorphtargets(_gl,capabilities,textures),clipping=new WebGLClipping(properties),programCache=new WebGLPrograms(_this,cubemaps,cubeuvmaps,extensions,capabilities,bindingStates,clipping),materials=new WebGLMaterials(_this,properties),renderLists=new WebGLRenderLists,renderStates=new WebGLRenderStates(extensions),background=new WebGLBackground(_this,cubemaps,cubeuvmaps,state,objects,_alpha,premultipliedAlpha),shadowMap=new WebGLShadowMap(_this,objects,capabilities),uniformsGroups=new WebGLUniformsGroups(_gl,info,capabilities,state),bufferRenderer=new WebGLBufferRenderer(_gl,extensions,info),indexedBufferRenderer=new WebGLIndexedBufferRenderer(_gl,extensions,info),info.programs=programCache.programs,_this.capabilities=capabilities,_this.extensions=extensions,_this.properties=properties,_this.renderLists=renderLists,_this.shadowMap=shadowMap,_this.state=state,_this.info=info}initGLContext();let xr$1=new WebXRManager(_this,_gl);this.xr=xr$1,this.getContext=function(){return _gl},this.getContextAttributes=function(){return _gl.getContextAttributes()},this.forceContextLoss=function(){let extension$1=extensions.get(`WEBGL_lose_context`);extension$1&&extension$1.loseContext()},this.forceContextRestore=function(){let extension$1=extensions.get(`WEBGL_lose_context`);extension$1&&extension$1.restoreContext()},this.getPixelRatio=function(){return _pixelRatio},this.setPixelRatio=function(value$1){value$1!==void 0&&(_pixelRatio=value$1,this.setSize(_width,_height,!1))},this.getSize=function(target$1){return target$1.set(_width,_height)},this.setSize=function(width,height,updateStyle=!0){if(xr$1.isPresenting){console.warn(`THREE.WebGLRenderer: Can't change size while VR device is presenting.`);return}_width=width,_height=height,canvas.width=Math.floor(width*_pixelRatio),canvas.height=Math.floor(height*_pixelRatio),updateStyle===!0&&(canvas.style.width=width+`px`,canvas.style.height=height+`px`),this.setViewport(0,0,width,height)},this.getDrawingBufferSize=function(target$1){return target$1.set(_width*_pixelRatio,_height*_pixelRatio).floor()},this.setDrawingBufferSize=function(width,height,pixelRatio){_width=width,_height=height,_pixelRatio=pixelRatio,canvas.width=Math.floor(width*pixelRatio),canvas.height=Math.floor(height*pixelRatio),this.setViewport(0,0,width,height)},this.getCurrentViewport=function(target$1){return target$1.copy(_currentViewport)},this.getViewport=function(target$1){return target$1.copy(_viewport)},this.setViewport=function(x$3,y$2,width,height){x$3.isVector4?_viewport.set(x$3.x,x$3.y,x$3.z,x$3.w):_viewport.set(x$3,y$2,width,height),state.viewport(_currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).round())},this.getScissor=function(target$1){return target$1.copy(_scissor)},this.setScissor=function(x$3,y$2,width,height){x$3.isVector4?_scissor.set(x$3.x,x$3.y,x$3.z,x$3.w):_scissor.set(x$3,y$2,width,height),state.scissor(_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).round())},this.getScissorTest=function(){return _scissorTest},this.setScissorTest=function(boolean$1){state.setScissorTest(_scissorTest=boolean$1)},this.setOpaqueSort=function(method){_opaqueSort=method},this.setTransparentSort=function(method){_transparentSort=method},this.getClearColor=function(target$1){return target$1.copy(background.getClearColor())},this.setClearColor=function(){background.setClearColor(...arguments)},this.getClearAlpha=function(){return background.getClearAlpha()},this.setClearAlpha=function(){background.setClearAlpha(...arguments)},this.clear=function(color$2=!0,depth$1=!0,stencil$1=!0){let bits=0;if(color$2){let isIntegerFormat=!1;if(_currentRenderTarget!==null){let targetFormat=_currentRenderTarget.texture.format;isIntegerFormat=targetFormat===RGBAIntegerFormat||targetFormat===RGIntegerFormat||targetFormat===RedIntegerFormat}if(isIntegerFormat){let targetType=_currentRenderTarget.texture.type,isUnsignedType=targetType===UnsignedByteType||targetType===UnsignedIntType||targetType===UnsignedShortType||targetType===UnsignedInt248Type||targetType===UnsignedShort4444Type||targetType===UnsignedShort5551Type,clearColor=background.getClearColor(),a$2=background.getClearAlpha(),r$2=clearColor.r,g$2=clearColor.g,b$3=clearColor.b;isUnsignedType?(uintClearColor[0]=r$2,uintClearColor[1]=g$2,uintClearColor[2]=b$3,uintClearColor[3]=a$2,_gl.clearBufferuiv(_gl.COLOR,0,uintClearColor)):(intClearColor[0]=r$2,intClearColor[1]=g$2,intClearColor[2]=b$3,intClearColor[3]=a$2,_gl.clearBufferiv(_gl.COLOR,0,intClearColor))}else bits|=_gl.COLOR_BUFFER_BIT}depth$1&&(bits|=_gl.DEPTH_BUFFER_BIT),stencil$1&&(bits|=_gl.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),_gl.clear(bits)},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(){canvas.removeEventListener(`webglcontextlost`,onContextLost,!1),canvas.removeEventListener(`webglcontextrestored`,onContextRestore,!1),canvas.removeEventListener(`webglcontextcreationerror`,onContextCreationError,!1),background.dispose(),renderLists.dispose(),renderStates.dispose(),properties.dispose(),cubemaps.dispose(),cubeuvmaps.dispose(),objects.dispose(),bindingStates.dispose(),uniformsGroups.dispose(),programCache.dispose(),xr$1.dispose(),xr$1.removeEventListener(`sessionstart`,onXRSessionStart),xr$1.removeEventListener(`sessionend`,onXRSessionEnd),animation.stop()};function onContextLost(event){event.preventDefault(),console.log(`THREE.WebGLRenderer: Context Lost.`),_isContextLost=!0}function onContextRestore(){console.log(`THREE.WebGLRenderer: Context Restored.`),_isContextLost=!1;let infoAutoReset=info.autoReset,shadowMapEnabled=shadowMap.enabled,shadowMapAutoUpdate=shadowMap.autoUpdate,shadowMapNeedsUpdate=shadowMap.needsUpdate,shadowMapType=shadowMap.type;initGLContext(),info.autoReset=infoAutoReset,shadowMap.enabled=shadowMapEnabled,shadowMap.autoUpdate=shadowMapAutoUpdate,shadowMap.needsUpdate=shadowMapNeedsUpdate,shadowMap.type=shadowMapType}function onContextCreationError(event){console.error(`THREE.WebGLRenderer: A WebGL context could not be created. Reason: `,event.statusMessage)}function onMaterialDispose(event){let material=event.target;material.removeEventListener(`dispose`,onMaterialDispose),deallocateMaterial(material)}function deallocateMaterial(material){releaseMaterialProgramReferences(material),properties.remove(material)}function releaseMaterialProgramReferences(material){let programs=properties.get(material).programs;programs!==void 0&&(programs.forEach(function(program){programCache.releaseProgram(program)}),material.isShaderMaterial&&programCache.releaseShaderCache(material))}this.renderBufferDirect=function(camera,scene,geometry,material,object,group){scene===null&&(scene=_emptyScene);let frontFaceCW=object.isMesh&&object.matrixWorld.determinant()<0,program=setProgram(camera,scene,geometry,material,object);state.setMaterial(material,frontFaceCW);let index$1=geometry.index,rangeFactor=1;if(material.wireframe===!0){if(index$1=geometries.getWireframeAttribute(geometry),index$1===void 0)return;rangeFactor=2}let drawRange=geometry.drawRange,position$2=geometry.attributes.position,drawStart=drawRange.start*rangeFactor,drawEnd=(drawRange.start+drawRange.count)*rangeFactor;group!==null&&(drawStart=Math.max(drawStart,group.start*rangeFactor),drawEnd=Math.min(drawEnd,(group.start+group.count)*rangeFactor)),index$1===null?position$2!=null&&(drawStart=Math.max(drawStart,0),drawEnd=Math.min(drawEnd,position$2.count)):(drawStart=Math.max(drawStart,0),drawEnd=Math.min(drawEnd,index$1.count));let drawCount=drawEnd-drawStart;if(drawCount<0||drawCount===1/0)return;bindingStates.setup(object,material,program,geometry,index$1);let attribute,renderer$1=bufferRenderer;if(index$1!==null&&(attribute=attributes.get(index$1),renderer$1=indexedBufferRenderer,renderer$1.setIndex(attribute)),object.isMesh)material.wireframe===!0?(state.setLineWidth(material.wireframeLinewidth*getTargetPixelRatio()),renderer$1.setMode(_gl.LINES)):renderer$1.setMode(_gl.TRIANGLES);else if(object.isLine){let lineWidth=material.linewidth;lineWidth===void 0&&(lineWidth=1),state.setLineWidth(lineWidth*getTargetPixelRatio()),object.isLineSegments?renderer$1.setMode(_gl.LINES):object.isLineLoop?renderer$1.setMode(_gl.LINE_LOOP):renderer$1.setMode(_gl.LINE_STRIP)}else object.isPoints?renderer$1.setMode(_gl.POINTS):object.isSprite&&renderer$1.setMode(_gl.TRIANGLES);if(object.isBatchedMesh)if(object._multiDrawInstances!==null)warnOnce$1(`THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection.`),renderer$1.renderMultiDrawInstances(object._multiDrawStarts,object._multiDrawCounts,object._multiDrawCount,object._multiDrawInstances);else if(extensions.get(`WEBGL_multi_draw`))renderer$1.renderMultiDraw(object._multiDrawStarts,object._multiDrawCounts,object._multiDrawCount);else{let starts=object._multiDrawStarts,counts=object._multiDrawCounts,drawCount$1=object._multiDrawCount,bytesPerElement=index$1?attributes.get(index$1).bytesPerElement:1,uniforms=properties.get(material).currentProgram.getUniforms();for(let i$1=0;i$1{function checkMaterialsReady(){if(materials$1.forEach(function(material){let materialProperties=properties.get(material),program=materialProperties.currentProgram;program.isReady()&&materials$1.delete(material)}),materials$1.size===0){resolve$1(scene);return}setTimeout(checkMaterialsReady,10)}extensions.get(`KHR_parallel_shader_compile`)===null?setTimeout(checkMaterialsReady,10):checkMaterialsReady()})};let onAnimationFrameCallback=null;function onAnimationFrame(time){onAnimationFrameCallback&&onAnimationFrameCallback(time)}function onXRSessionStart(){animation.stop()}function onXRSessionEnd(){animation.start()}let animation=new WebGLAnimation;animation.setAnimationLoop(onAnimationFrame),typeof self<`u`&&animation.setContext(self),this.setAnimationLoop=function(callback){onAnimationFrameCallback=callback,xr$1.setAnimationLoop(callback),callback===null?animation.stop():animation.start()},xr$1.addEventListener(`sessionstart`,onXRSessionStart),xr$1.addEventListener(`sessionend`,onXRSessionEnd),this.render=function(scene,camera){if(camera!==void 0&&camera.isCamera!==!0){console.error(`THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(_isContextLost===!0)return;if(scene.matrixWorldAutoUpdate===!0&&scene.updateMatrixWorld(),camera.parent===null&&camera.matrixWorldAutoUpdate===!0&&camera.updateMatrixWorld(),xr$1.enabled===!0&&xr$1.isPresenting===!0&&(xr$1.cameraAutoUpdate===!0&&xr$1.updateCamera(camera),camera=xr$1.getCamera()),scene.isScene===!0&&scene.onBeforeRender(_this,scene,camera,_currentRenderTarget),currentRenderState=renderStates.get(scene,renderStateStack.length),currentRenderState.init(camera),renderStateStack.push(currentRenderState),_projScreenMatrix$3.multiplyMatrices(camera.projectionMatrix,camera.matrixWorldInverse),_frustum$2.setFromProjectionMatrix(_projScreenMatrix$3),_localClippingEnabled=this.localClippingEnabled,_clippingEnabled=clipping.init(this.clippingPlanes,_localClippingEnabled),currentRenderList=renderLists.get(scene,renderListStack.length),currentRenderList.init(),renderListStack.push(currentRenderList),xr$1.enabled===!0&&xr$1.isPresenting===!0){let depthSensingMesh=_this.xr.getDepthSensingMesh();depthSensingMesh!==null&&projectObject(depthSensingMesh,camera,-1/0,_this.sortObjects)}projectObject(scene,camera,0,_this.sortObjects),currentRenderList.finish(),_this.sortObjects===!0&¤tRenderList.sort(_opaqueSort,_transparentSort),_renderBackground=xr$1.enabled===!1||xr$1.isPresenting===!1||xr$1.hasDepthSensing()===!1,_renderBackground&&background.addToRenderList(currentRenderList,scene),this.info.render.frame++,_clippingEnabled===!0&&clipping.beginShadows();let shadowsArray=currentRenderState.state.shadowsArray;shadowMap.render(shadowsArray,scene,camera),_clippingEnabled===!0&&clipping.endShadows(),this.info.autoReset===!0&&this.info.reset();let opaqueObjects=currentRenderList.opaque,transmissiveObjects=currentRenderList.transmissive;if(currentRenderState.setupLights(),camera.isArrayCamera){let cameras=camera.cameras;if(transmissiveObjects.length>0)for(let i$1=0,l$1=cameras.length;i$10&&renderTransmissionPass(opaqueObjects,transmissiveObjects,scene,camera),_renderBackground&&background.render(scene),renderScene(currentRenderList,scene,camera);_currentRenderTarget!==null&&_currentActiveMipmapLevel===0&&(textures.updateMultisampleRenderTarget(_currentRenderTarget),textures.updateRenderTargetMipmap(_currentRenderTarget)),scene.isScene===!0&&scene.onAfterRender(_this,scene,camera),bindingStates.resetDefaultState(),_currentMaterialId=-1,_currentCamera=null,renderStateStack.pop(),renderStateStack.length>0?(currentRenderState=renderStateStack[renderStateStack.length-1],_clippingEnabled===!0&&clipping.setGlobalState(_this.clippingPlanes,currentRenderState.state.camera)):currentRenderState=null,renderListStack.pop(),currentRenderList=renderListStack.length>0?renderListStack[renderListStack.length-1]:null};function projectObject(object,camera,groupOrder,sortObjects){if(object.visible===!1)return;let visible=object.layers.test(camera.layers);if(visible){if(object.isGroup)groupOrder=object.renderOrder;else if(object.isLOD)object.autoUpdate===!0&&object.update(camera);else if(object.isLight)currentRenderState.pushLight(object),object.castShadow&¤tRenderState.pushShadow(object);else if(object.isSprite){if(!object.frustumCulled||_frustum$2.intersectsSprite(object)){sortObjects&&_vector4.setFromMatrixPosition(object.matrixWorld).applyMatrix4(_projScreenMatrix$3);let geometry=objects.update(object),material=object.material;material.visible&¤tRenderList.push(object,geometry,material,groupOrder,_vector4.z,null)}}else if((object.isMesh||object.isLine||object.isPoints)&&(!object.frustumCulled||_frustum$2.intersectsObject(object))){let geometry=objects.update(object),material=object.material;if(sortObjects&&(object.boundingSphere===void 0?(geometry.boundingSphere===null&&geometry.computeBoundingSphere(),_vector4.copy(geometry.boundingSphere.center)):(object.boundingSphere===null&&object.computeBoundingSphere(),_vector4.copy(object.boundingSphere.center)),_vector4.applyMatrix4(object.matrixWorld).applyMatrix4(_projScreenMatrix$3)),Array.isArray(material)){let groups=geometry.groups;for(let i$1=0,l$1=groups.length;i$10&&renderObjects(opaqueObjects,scene,camera),transmissiveObjects.length>0&&renderObjects(transmissiveObjects,scene,camera),transparentObjects.length>0&&renderObjects(transparentObjects,scene,camera),state.buffers.depth.setTest(!0),state.buffers.depth.setMask(!0),state.buffers.color.setMask(!0),state.setPolygonOffset(!1)}function renderTransmissionPass(opaqueObjects,transmissiveObjects,scene,camera){let overrideMaterial=scene.isScene===!0?scene.overrideMaterial:null;if(overrideMaterial!==null)return;currentRenderState.state.transmissionRenderTarget[camera.id]===void 0&&(currentRenderState.state.transmissionRenderTarget[camera.id]=new WebGLRenderTarget(1,1,{generateMipmaps:!0,type:extensions.has(`EXT_color_buffer_half_float`)||extensions.has(`EXT_color_buffer_float`)?HalfFloatType:UnsignedByteType,minFilter:LinearMipmapLinearFilter,samples:4,stencilBuffer:stencil,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ColorManagement.workingColorSpace}));let transmissionRenderTarget=currentRenderState.state.transmissionRenderTarget[camera.id],activeViewport=camera.viewport||_currentViewport;transmissionRenderTarget.setSize(activeViewport.z*_this.transmissionResolutionScale,activeViewport.w*_this.transmissionResolutionScale);let currentRenderTarget=_this.getRenderTarget(),currentActiveCubeFace=_this.getActiveCubeFace(),currentActiveMipmapLevel=_this.getActiveMipmapLevel();_this.setRenderTarget(transmissionRenderTarget),_this.getClearColor(_currentClearColor),_currentClearAlpha=_this.getClearAlpha(),_currentClearAlpha<1&&_this.setClearColor(16777215,.5),_this.clear(),_renderBackground&&background.render(scene);let currentToneMapping=_this.toneMapping;_this.toneMapping=NoToneMapping;let currentCameraViewport=camera.viewport;if(camera.viewport!==void 0&&(camera.viewport=void 0),currentRenderState.setupLightsView(camera),_clippingEnabled===!0&&clipping.setGlobalState(_this.clippingPlanes,camera),renderObjects(opaqueObjects,scene,camera),textures.updateMultisampleRenderTarget(transmissionRenderTarget),textures.updateRenderTargetMipmap(transmissionRenderTarget),extensions.has(`WEBGL_multisampled_render_to_texture`)===!1){let renderTargetNeedsUpdate=!1;for(let i$1=0,l$1=transmissiveObjects.length;i$10),morphTargets=!!geometry.morphAttributes.position,morphNormals=!!geometry.morphAttributes.normal,morphColors=!!geometry.morphAttributes.color,toneMapping=NoToneMapping;material.toneMapped&&(_currentRenderTarget===null||_currentRenderTarget.isXRRenderTarget===!0)&&(toneMapping=_this.toneMapping);let morphAttribute=geometry.morphAttributes.position||geometry.morphAttributes.normal||geometry.morphAttributes.color,morphTargetsCount=morphAttribute===void 0?0:morphAttribute.length,materialProperties=properties.get(material),lights=currentRenderState.state.lights;if(_clippingEnabled===!0&&(_localClippingEnabled===!0||camera!==_currentCamera)){let useCache=camera===_currentCamera&&material.id===_currentMaterialId;clipping.setState(material,camera,useCache)}let needsProgramChange=!1;material.version===materialProperties.__version?materialProperties.needsLights&&materialProperties.lightsStateVersion!==lights.state.version?needsProgramChange=!0:materialProperties.outputColorSpace===colorSpace?object.isBatchedMesh&&materialProperties.batching===!1||!object.isBatchedMesh&&materialProperties.batching===!0||object.isBatchedMesh&&materialProperties.batchingColor===!0&&object.colorTexture===null||object.isBatchedMesh&&materialProperties.batchingColor===!1&&object.colorTexture!==null||object.isInstancedMesh&&materialProperties.instancing===!1||!object.isInstancedMesh&&materialProperties.instancing===!0||object.isSkinnedMesh&&materialProperties.skinning===!1||!object.isSkinnedMesh&&materialProperties.skinning===!0||object.isInstancedMesh&&materialProperties.instancingColor===!0&&object.instanceColor===null||object.isInstancedMesh&&materialProperties.instancingColor===!1&&object.instanceColor!==null||object.isInstancedMesh&&materialProperties.instancingMorph===!0&&object.morphTexture===null||object.isInstancedMesh&&materialProperties.instancingMorph===!1&&object.morphTexture!==null?needsProgramChange=!0:materialProperties.envMap===envMap?material.fog===!0&&materialProperties.fog!==fog||materialProperties.numClippingPlanes!==void 0&&(materialProperties.numClippingPlanes!==clipping.numPlanes||materialProperties.numIntersection!==clipping.numIntersection)?needsProgramChange=!0:materialProperties.vertexAlphas===vertexAlphas&&materialProperties.vertexTangents===vertexTangents&&materialProperties.morphTargets===morphTargets&&materialProperties.morphNormals===morphNormals&&materialProperties.morphColors===morphColors&&materialProperties.toneMapping===toneMapping?materialProperties.morphTargetsCount!==morphTargetsCount&&(needsProgramChange=!0):needsProgramChange=!0:needsProgramChange=!0:needsProgramChange=!0:(needsProgramChange=!0,materialProperties.__version=material.version);let program=materialProperties.currentProgram;needsProgramChange===!0&&(program=getProgram(material,scene,object));let refreshProgram=!1,refreshMaterial=!1,refreshLights=!1,p_uniforms=program.getUniforms(),m_uniforms=materialProperties.uniforms;if(state.useProgram(program.program)&&(refreshProgram=!0,refreshMaterial=!0,refreshLights=!0),material.id!==_currentMaterialId&&(_currentMaterialId=material.id,refreshMaterial=!0),refreshProgram||_currentCamera!==camera){let reverseDepthBuffer$1=state.buffers.depth.getReversed();reverseDepthBuffer$1?(_currentProjectionMatrix.copy(camera.projectionMatrix),toNormalizedProjectionMatrix(_currentProjectionMatrix),toReversedProjectionMatrix(_currentProjectionMatrix),p_uniforms.setValue(_gl,`projectionMatrix`,_currentProjectionMatrix)):p_uniforms.setValue(_gl,`projectionMatrix`,camera.projectionMatrix),p_uniforms.setValue(_gl,`viewMatrix`,camera.matrixWorldInverse);let uCamPos=p_uniforms.map.cameraPosition;uCamPos!==void 0&&uCamPos.setValue(_gl,_vector3$1.setFromMatrixPosition(camera.matrixWorld)),capabilities.logarithmicDepthBuffer&&p_uniforms.setValue(_gl,`logDepthBufFC`,2/(Math.log(camera.far+1)/Math.LN2)),(material.isMeshPhongMaterial||material.isMeshToonMaterial||material.isMeshLambertMaterial||material.isMeshBasicMaterial||material.isMeshStandardMaterial||material.isShaderMaterial)&&p_uniforms.setValue(_gl,`isOrthographic`,camera.isOrthographicCamera===!0),_currentCamera!==camera&&(_currentCamera=camera,refreshMaterial=!0,refreshLights=!0)}if(object.isSkinnedMesh){p_uniforms.setOptional(_gl,object,`bindMatrix`),p_uniforms.setOptional(_gl,object,`bindMatrixInverse`);let skeleton=object.skeleton;skeleton&&(skeleton.boneTexture===null&&skeleton.computeBoneTexture(),p_uniforms.setValue(_gl,`boneTexture`,skeleton.boneTexture,textures))}object.isBatchedMesh&&(p_uniforms.setOptional(_gl,object,`batchingTexture`),p_uniforms.setValue(_gl,`batchingTexture`,object._matricesTexture,textures),p_uniforms.setOptional(_gl,object,`batchingIdTexture`),p_uniforms.setValue(_gl,`batchingIdTexture`,object._indirectTexture,textures),p_uniforms.setOptional(_gl,object,`batchingColorTexture`),object._colorsTexture!==null&&p_uniforms.setValue(_gl,`batchingColorTexture`,object._colorsTexture,textures));let morphAttributes=geometry.morphAttributes;if((morphAttributes.position!==void 0||morphAttributes.normal!==void 0||morphAttributes.color!==void 0)&&morphtargets.update(object,geometry,program),(refreshMaterial||materialProperties.receiveShadow!==object.receiveShadow)&&(materialProperties.receiveShadow=object.receiveShadow,p_uniforms.setValue(_gl,`receiveShadow`,object.receiveShadow)),material.isMeshGouraudMaterial&&material.envMap!==null&&(m_uniforms.envMap.value=envMap,m_uniforms.flipEnvMap.value=envMap.isCubeTexture&&envMap.isRenderTargetTexture===!1?-1:1),material.isMeshStandardMaterial&&material.envMap===null&&scene.environment!==null&&(m_uniforms.envMapIntensity.value=scene.environmentIntensity),refreshMaterial&&(p_uniforms.setValue(_gl,`toneMappingExposure`,_this.toneMappingExposure),materialProperties.needsLights&&markUniformsLightsNeedsUpdate(m_uniforms,refreshLights),fog&&material.fog===!0&&materials.refreshFogUniforms(m_uniforms,fog),materials.refreshMaterialUniforms(m_uniforms,material,_pixelRatio,_height,currentRenderState.state.transmissionRenderTarget[camera.id]),WebGLUniforms.upload(_gl,getUniformList(materialProperties),m_uniforms,textures)),material.isShaderMaterial&&material.uniformsNeedUpdate===!0&&(WebGLUniforms.upload(_gl,getUniformList(materialProperties),m_uniforms,textures),material.uniformsNeedUpdate=!1),material.isSpriteMaterial&&p_uniforms.setValue(_gl,`center`,object.center),p_uniforms.setValue(_gl,`modelViewMatrix`,object.modelViewMatrix),p_uniforms.setValue(_gl,`normalMatrix`,object.normalMatrix),p_uniforms.setValue(_gl,`modelMatrix`,object.matrixWorld),material.isShaderMaterial||material.isRawShaderMaterial){let groups=material.uniformsGroups;for(let i$1=0,l$1=groups.length;i$10&&textures.useMultisampledRTT(renderTarget)===!1?properties.get(renderTarget).__webglMultisampledFramebuffer:Array.isArray(__webglFramebuffer)?__webglFramebuffer[activeMipmapLevel]:__webglFramebuffer,_currentViewport.copy(renderTarget.viewport),_currentScissor.copy(renderTarget.scissor),_currentScissorTest=renderTarget.scissorTest}else _currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor(),_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).floor(),_currentScissorTest=_scissorTest;activeMipmapLevel!==0&&(framebuffer=_scratchFrameBuffer);let framebufferBound=state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer);if(framebufferBound&&useDefaultFramebuffer&&state.drawBuffers(renderTarget,framebuffer),state.viewport(_currentViewport),state.scissor(_currentScissor),state.setScissorTest(_currentScissorTest),isCube){let textureProperties=properties.get(renderTarget.texture);_gl.framebufferTexture2D(_gl.FRAMEBUFFER,_gl.COLOR_ATTACHMENT0,_gl.TEXTURE_CUBE_MAP_POSITIVE_X+activeCubeFace,textureProperties.__webglTexture,activeMipmapLevel)}else if(isRenderTarget3D){let textureProperties=properties.get(renderTarget.texture),layer=activeCubeFace;_gl.framebufferTextureLayer(_gl.FRAMEBUFFER,_gl.COLOR_ATTACHMENT0,textureProperties.__webglTexture,activeMipmapLevel,layer)}else if(renderTarget!==null&&activeMipmapLevel!==0){let textureProperties=properties.get(renderTarget.texture);_gl.framebufferTexture2D(_gl.FRAMEBUFFER,_gl.COLOR_ATTACHMENT0,_gl.TEXTURE_2D,textureProperties.__webglTexture,activeMipmapLevel)}_currentMaterialId=-1},this.readRenderTargetPixels=function(renderTarget,x$3,y$2,width,height,buffer$1,activeCubeFaceIndex,textureIndex=0){if(!(renderTarget&&renderTarget.isWebGLRenderTarget)){console.error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);return}let framebuffer=properties.get(renderTarget).__webglFramebuffer;if(renderTarget.isWebGLCubeRenderTarget&&activeCubeFaceIndex!==void 0&&(framebuffer=framebuffer[activeCubeFaceIndex]),framebuffer){state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer);try{let texture=renderTarget.textures[textureIndex],textureFormat=texture.format,textureType=texture.type;if(!capabilities.textureFormatReadable(textureFormat)){console.error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!capabilities.textureTypeReadable(textureType)){console.error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}x$3>=0&&x$3<=renderTarget.width-width&&y$2>=0&&y$2<=renderTarget.height-height&&(renderTarget.textures.length>1&&_gl.readBuffer(_gl.COLOR_ATTACHMENT0+textureIndex),_gl.readPixels(x$3,y$2,width,height,utils.convert(textureFormat),utils.convert(textureType),buffer$1))}finally{let framebuffer$1=_currentRenderTarget===null?null:properties.get(_currentRenderTarget).__webglFramebuffer;state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer$1)}}},this.readRenderTargetPixelsAsync=async function(renderTarget,x$3,y$2,width,height,buffer$1,activeCubeFaceIndex,textureIndex=0){if(!(renderTarget&&renderTarget.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let framebuffer=properties.get(renderTarget).__webglFramebuffer;if(renderTarget.isWebGLCubeRenderTarget&&activeCubeFaceIndex!==void 0&&(framebuffer=framebuffer[activeCubeFaceIndex]),framebuffer)if(x$3>=0&&x$3<=renderTarget.width-width&&y$2>=0&&y$2<=renderTarget.height-height){state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer);let texture=renderTarget.textures[textureIndex],textureFormat=texture.format,textureType=texture.type;if(!capabilities.textureFormatReadable(textureFormat))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!capabilities.textureTypeReadable(textureType))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let glBuffer=_gl.createBuffer();_gl.bindBuffer(_gl.PIXEL_PACK_BUFFER,glBuffer),_gl.bufferData(_gl.PIXEL_PACK_BUFFER,buffer$1.byteLength,_gl.STREAM_READ),renderTarget.textures.length>1&&_gl.readBuffer(_gl.COLOR_ATTACHMENT0+textureIndex),_gl.readPixels(x$3,y$2,width,height,utils.convert(textureFormat),utils.convert(textureType),0);let currFramebuffer=_currentRenderTarget===null?null:properties.get(_currentRenderTarget).__webglFramebuffer;state.bindFramebuffer(_gl.FRAMEBUFFER,currFramebuffer);let sync$1=_gl.fenceSync(_gl.SYNC_GPU_COMMANDS_COMPLETE,0);return _gl.flush(),await probeAsync(_gl,sync$1,4),_gl.bindBuffer(_gl.PIXEL_PACK_BUFFER,glBuffer),_gl.getBufferSubData(_gl.PIXEL_PACK_BUFFER,0,buffer$1),_gl.deleteBuffer(glBuffer),_gl.deleteSync(sync$1),buffer$1}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(texture,position$2=null,level=0){let levelScale=2**-level,width=Math.floor(texture.image.width*levelScale),height=Math.floor(texture.image.height*levelScale),x$3=position$2===null?0:position$2.x,y$2=position$2===null?0:position$2.y;textures.setTexture2D(texture,0),_gl.copyTexSubImage2D(_gl.TEXTURE_2D,level,0,0,x$3,y$2,width,height),state.unbindTexture()};let _srcFramebuffer=_gl.createFramebuffer(),_dstFramebuffer=_gl.createFramebuffer();this.copyTextureToTexture=function(srcTexture,dstTexture,srcRegion=null,dstPosition=null,srcLevel=0,dstLevel=null){dstLevel===null&&(srcLevel===0?dstLevel=0:(warnOnce$1(`WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels.`),dstLevel=srcLevel,srcLevel=0));let width,height,depth$1,minX,minY,minZ,dstX,dstY,dstZ,image$1=srcTexture.isCompressedTexture?srcTexture.mipmaps[dstLevel]:srcTexture.image;if(srcRegion!==null)width=srcRegion.max.x-srcRegion.min.x,height=srcRegion.max.y-srcRegion.min.y,depth$1=srcRegion.isBox3?srcRegion.max.z-srcRegion.min.z:1,minX=srcRegion.min.x,minY=srcRegion.min.y,minZ=srcRegion.isBox3?srcRegion.min.z:0;else{let levelScale=2**-srcLevel;width=Math.floor(image$1.width*levelScale),height=Math.floor(image$1.height*levelScale),depth$1=srcTexture.isDataArrayTexture?image$1.depth:srcTexture.isData3DTexture?Math.floor(image$1.depth*levelScale):1,minX=0,minY=0,minZ=0}dstPosition===null?(dstX=0,dstY=0,dstZ=0):(dstX=dstPosition.x,dstY=dstPosition.y,dstZ=dstPosition.z);let glFormat=utils.convert(dstTexture.format),glType=utils.convert(dstTexture.type),glTarget;dstTexture.isData3DTexture?(textures.setTexture3D(dstTexture,0),glTarget=_gl.TEXTURE_3D):dstTexture.isDataArrayTexture||dstTexture.isCompressedArrayTexture?(textures.setTexture2DArray(dstTexture,0),glTarget=_gl.TEXTURE_2D_ARRAY):(textures.setTexture2D(dstTexture,0),glTarget=_gl.TEXTURE_2D),_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL,dstTexture.flipY),_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,dstTexture.premultiplyAlpha),_gl.pixelStorei(_gl.UNPACK_ALIGNMENT,dstTexture.unpackAlignment);let currentUnpackRowLen=_gl.getParameter(_gl.UNPACK_ROW_LENGTH),currentUnpackImageHeight=_gl.getParameter(_gl.UNPACK_IMAGE_HEIGHT),currentUnpackSkipPixels=_gl.getParameter(_gl.UNPACK_SKIP_PIXELS),currentUnpackSkipRows=_gl.getParameter(_gl.UNPACK_SKIP_ROWS),currentUnpackSkipImages=_gl.getParameter(_gl.UNPACK_SKIP_IMAGES);_gl.pixelStorei(_gl.UNPACK_ROW_LENGTH,image$1.width),_gl.pixelStorei(_gl.UNPACK_IMAGE_HEIGHT,image$1.height),_gl.pixelStorei(_gl.UNPACK_SKIP_PIXELS,minX),_gl.pixelStorei(_gl.UNPACK_SKIP_ROWS,minY),_gl.pixelStorei(_gl.UNPACK_SKIP_IMAGES,minZ);let isSrc3D=srcTexture.isDataArrayTexture||srcTexture.isData3DTexture,isDst3D=dstTexture.isDataArrayTexture||dstTexture.isData3DTexture;if(srcTexture.isDepthTexture){let srcTextureProperties=properties.get(srcTexture),dstTextureProperties=properties.get(dstTexture),srcRenderTargetProperties=properties.get(srcTextureProperties.__renderTarget),dstRenderTargetProperties=properties.get(dstTextureProperties.__renderTarget);state.bindFramebuffer(_gl.READ_FRAMEBUFFER,srcRenderTargetProperties.__webglFramebuffer),state.bindFramebuffer(_gl.DRAW_FRAMEBUFFER,dstRenderTargetProperties.__webglFramebuffer);for(let i$1=0;i$1{fns.delete(fn$5)},clear=()=>{fns.clear()},on$1=fn$5=>{fns.add(fn$5);let offFn=()=>off(fn$5);return tryOnScopeDispose$1(offFn),{off:offFn}},trigger$1=(...args)=>Promise.all(Array.from(fns).map(fn$5=>fn$5(...args)));return{on:on$1,off,trigger:trigger$1,clear}}function createGlobalState(stateFactory){let initialized=!1,state,scope=effectScope(!0);return(...args)=>(initialized||(state=scope.run(()=>stateFactory(...args)),initialized=!0),state)}const localProvidedStateMap$1=new WeakMap,injectLocal$1=(...args)=>{var _a$2;let key$1=args[0],instance=(_a$2=getCurrentInstance())?.proxy;if(instance==null&&!hasInjectionContext())throw Error(`injectLocal must be called in setup`);return instance&&localProvidedStateMap$1.has(instance)&&key$1 in localProvidedStateMap$1.get(instance)?localProvidedStateMap$1.get(instance)[key$1]:inject(...args)};function createSharedComposable(composable){let subscribers=0,state,scope,dispose$1=()=>{--subscribers,scope&&subscribers<=0&&(scope.stop(),state=void 0,scope=void 0)};return(...args)=>(subscribers+=1,scope||(scope=effectScope(!0),state=scope.run(()=>composable(...args))),tryOnScopeDispose$1(dispose$1),state)}const isClient=typeof window<`u`&&typeof document<`u`,isWorker$1=typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,isDef$1=val=>val!==void 0,notNullish$1=val=>val!=null,toString$3=Object.prototype.toString,isObject$4=val=>toString$3.call(val)===`[object Object]`,noop$3=()=>{},isIOS=getIsIOS();function getIsIOS(){var _a$2,_b;return isClient&&(_a$2=window==null?void 0:window.navigator)?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(_b=window==null?void 0:window.navigator)?.maxTouchPoints>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function createFilterWrapper$1(filter$1,fn$5){function wrapper(...args){return new Promise((resolve$1,reject)=>{Promise.resolve(filter$1(()=>fn$5.apply(this,args),{fn:fn$5,thisArg:this,args})).then(resolve$1).catch(reject)})}return wrapper}function debounceFilter$1(ms,options$1={}){let timer,maxTimer,lastRejector=noop$3,_clearTimeout=timer2=>{clearTimeout(timer2),lastRejector(),lastRejector=noop$3},lastInvoker,filter$1=invoke$1=>{let duration=toValue$1(ms),maxDuration$1=toValue$1(options$1.maxWait);return timer&&_clearTimeout(timer),duration<=0||maxDuration$1!==void 0&&maxDuration$1<=0?(maxTimer&&(_clearTimeout(maxTimer),maxTimer=null),Promise.resolve(invoke$1())):new Promise((resolve$1,reject)=>{lastRejector=options$1.rejectOnCancel?reject:resolve$1,lastInvoker=invoke$1,maxDuration$1&&!maxTimer&&(maxTimer=setTimeout(()=>{timer&&_clearTimeout(timer),maxTimer=null,resolve$1(lastInvoker())},maxDuration$1)),timer=setTimeout(()=>{maxTimer&&_clearTimeout(maxTimer),maxTimer=null,resolve$1(invoke$1())},duration)})};return filter$1}function cacheStringFunction$1(fn$5){let cache$1=Object.create(null);return str=>{let hit=cache$1[str];return hit||(cache$1[str]=fn$5(str))}}const hyphenateRE$1=/\B([A-Z])/g,hyphenate$1=cacheStringFunction$1(str=>str.replace(hyphenateRE$1,`-$1`).toLowerCase()),camelizeRE$1=/-(\w)/g,camelize$2=cacheStringFunction$1(str=>str.replace(camelizeRE$1,(_$1,c$4)=>c$4?c$4.toUpperCase():``));function pxValue$1(px$2){return px$2.endsWith(`rem`)?Number.parseFloat(px$2)*16:Number.parseFloat(px$2)}function objectPick$1(obj,keys$3,omitUndefined=!1){return keys$3.reduce((n$2,k$4)=>(k$4 in obj&&(!omitUndefined||obj[k$4]!==void 0)&&(n$2[k$4]=obj[k$4]),n$2),{})}function getLifeCycleTarget$1(target$1){return target$1||getCurrentInstance()}function toArray$1(value$1){return Array.isArray(value$1)?value$1:[value$1]}function useDebounceFn$1(fn$5,ms=200,options$1={}){return createFilterWrapper$1(debounceFilter$1(ms,options$1),fn$5)}function refDebounced$1(value$1,ms=200,options$1={}){let debounced=ref(value$1.value),updater=useDebounceFn$1(()=>{debounced.value=value$1.value},ms,options$1);return watch(value$1,()=>updater()),debounced}function toRefs$2(objectRef,options$1={}){if(!isRef(objectRef))return toRefs(objectRef);let result=Array.isArray(objectRef.value)?Array.from({length:objectRef.value.length}):{};for(let key$1 in objectRef.value)result[key$1]=customRef(()=>({get(){return objectRef.value[key$1]},set(v$1){var _a$2;let replaceRef=(_a$2=toValue$1(options$1.replaceRef))??!0;if(replaceRef)if(Array.isArray(objectRef.value)){let copy=[...objectRef.value];copy[key$1]=v$1,objectRef.value=copy}else{let newObject={...objectRef.value,[key$1]:v$1};Object.setPrototypeOf(newObject,Object.getPrototypeOf(objectRef.value)),objectRef.value=newObject}else objectRef.value[key$1]=v$1}}));return result}const toValue=toValue$1;function tryOnBeforeUnmount(fn$5,target$1){let instance=getLifeCycleTarget$1(target$1);instance&&onBeforeUnmount(fn$5,target$1)}function tryOnMounted$1(fn$5,sync$1=!0,target$1){let instance=getLifeCycleTarget$1();instance?onMounted(fn$5,target$1):sync$1?fn$5():nextTick(fn$5)}function useIntervalFn$1(cb$1,interval=1e3,options$1={}){let{immediate=!0,immediateCallback=!1}=options$1,timer=null,isActive=shallowRef(!1);function clean$3(){timer&&(clearInterval(timer),timer=null)}function pause(){isActive.value=!1,clean$3()}function resume(){let intervalValue=toValue$1(interval);intervalValue<=0||(isActive.value=!0,immediateCallback&&cb$1(),clean$3(),isActive.value&&(timer=setInterval(cb$1,intervalValue)))}if(immediate&&isClient&&resume(),isRef(interval)||typeof interval==`function`){let stopWatch=watch(interval,()=>{isActive.value&&isClient&&resume()});tryOnScopeDispose$1(stopWatch)}return tryOnScopeDispose$1(pause),{isActive,pause,resume}}function watchImmediate$1(source,cb$1,options$1){return watch(source,cb$1,{...options$1,immediate:!0})}const defaultWindow=isClient?window:void 0,defaultDocument$1=isClient?window.document:void 0,defaultNavigator$1=isClient?window.navigator:void 0,defaultLocation$1=isClient?window.location:void 0;function unrefElement$1(elRef){var _a$2;let plain=toValue$1(elRef);return(_a$2=plain?.$el)??plain}function useEventListener$1(...args){let cleanups=[],cleanup=()=>{cleanups.forEach(fn$5=>fn$5()),cleanups.length=0},register=(el,event,listener,options$1)=>(el.addEventListener(event,listener,options$1),()=>el.removeEventListener(event,listener,options$1)),firstParamTargets=computed(()=>{let test$1=toArray$1(toValue$1(args[0])).filter(e$3=>e$3!=null);return test$1.every(e$3=>typeof e$3!=`string`)?test$1:void 0}),stopWatch=watchImmediate$1(()=>{var _a$2,_b;return[(_b=(_a$2=firstParamTargets.value)?.map(e$3=>unrefElement$1(e$3)))??[defaultWindow].filter(e$3=>e$3!=null),toArray$1(toValue$1(firstParamTargets.value?args[1]:args[0])),toArray$1(unref(firstParamTargets.value?args[2]:args[1])),toValue$1(firstParamTargets.value?args[3]:args[2])]},([raw_targets,raw_events,raw_listeners,raw_options])=>{if(cleanup(),!raw_targets?.length||!raw_events?.length||!raw_listeners?.length)return;let optionsClone=isObject$4(raw_options)?{...raw_options}:raw_options;cleanups.push(...raw_targets.flatMap(el=>raw_events.flatMap(event=>raw_listeners.map(listener=>register(el,event,listener,optionsClone)))))},{flush:`post`}),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose$1(cleanup),stop$1}function useMounted(){let isMounted=shallowRef(!1),instance=getCurrentInstance();return instance&&onMounted(()=>{isMounted.value=!0},instance),isMounted}function useSupported$1(callback){let isMounted=useMounted();return computed(()=>(isMounted.value,!!callback()))}function useMutationObserver$1(target$1,callback,options$1={}){let{window:window$1=defaultWindow,...mutationOptions}=options$1,observer,isSupported=useSupported$1(()=>window$1&&`MutationObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let value$1=toValue$1(target$1),items=toArray$1(value$1).map(unrefElement$1).filter(notNullish$1);return new Set(items)}),stopWatch=watch(()=>targets.value,targets2=>{cleanup(),isSupported.value&&targets2.size&&(observer=new MutationObserver(callback),targets2.forEach(el=>observer.observe(el,mutationOptions)))},{immediate:!0,flush:`post`}),takeRecords=()=>observer?.takeRecords(),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose$1(stop$1),{isSupported,stop:stop$1,takeRecords}}function createKeyPredicate(keyFilter){return typeof keyFilter==`function`?keyFilter:typeof keyFilter==`string`?event=>event.key===keyFilter:Array.isArray(keyFilter)?event=>keyFilter.includes(event.key):()=>!0}function onKeyStroke(...args){let key$1,handler,options$1={};args.length===3?(key$1=args[0],handler=args[1],options$1=args[2]):args.length===2?typeof args[1]==`object`?(key$1=!0,handler=args[0],options$1=args[1]):(key$1=args[0],handler=args[1]):(key$1=!0,handler=args[0]);let{target:target$1=defaultWindow,eventName=`keydown`,passive=!1,dedupe=!1}=options$1,predicate=createKeyPredicate(key$1),listener=e$3=>{e$3.repeat&&toValue$1(dedupe)||predicate(e$3)&&handler(e$3)};return useEventListener$1(target$1,eventName,listener,passive)}function useRafFn(fn$5,options$1={}){let{immediate=!0,fpsLimit=void 0,window:window$1=defaultWindow,once=!1}=options$1,isActive=shallowRef(!1),intervalLimit=computed(()=>fpsLimit?1e3/toValue$1(fpsLimit):null),previousFrameTimestamp=0,rafId=null;function loop(timestamp$2){if(!isActive.value||!window$1)return;previousFrameTimestamp||=timestamp$2;let delta=timestamp$2-previousFrameTimestamp;if(intervalLimit.value&&deltawindow$1&&`matchMedia`in window$1&&typeof window$1.matchMedia==`function`),ssrSupport=shallowRef(typeof ssrWidth==`number`),mediaQuery=shallowRef(),matches$1=shallowRef(!1),handler=event=>{matches$1.value=event.matches};return watchEffect(()=>{if(ssrSupport.value){ssrSupport.value=!isSupported.value;let queryStrings=toValue$1(query).split(`,`);matches$1.value=queryStrings.some(queryString=>{let not=queryString.includes(`not all`),minWidth=queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),maxWidth=queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),res=!!(minWidth||maxWidth);return minWidth&&res&&(res=ssrWidth>=pxValue$1(minWidth[1])),maxWidth&&res&&(res=ssrWidth<=pxValue$1(maxWidth[1])),not?!res:res});return}isSupported.value&&(mediaQuery.value=window$1.matchMedia(toValue$1(query)),matches$1.value=mediaQuery.value.matches)}),useEventListener$1(mediaQuery,`change`,handler,{passive:!0}),computed(()=>matches$1.value)}function cloneFnJSON(source){return JSON.parse(JSON.stringify(source))}function useDevicePixelRatio(options$1={}){let{window:window$1=defaultWindow}=options$1,pixelRatio=shallowRef(1),query=useMediaQuery$1(()=>`(resolution: ${pixelRatio.value}dppx)`,options$1),stop$1=noop$3;return window$1&&(stop$1=watchImmediate$1(query,()=>pixelRatio.value=window$1.devicePixelRatio)),{pixelRatio:readonly(pixelRatio),stop:stop$1}}function useResizeObserver$1(target$1,callback,options$1={}){let{window:window$1=defaultWindow,...observerOptions}=options$1,observer,isSupported=useSupported$1(()=>window$1&&`ResizeObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let _targets=toValue$1(target$1);return Array.isArray(_targets)?_targets.map(el=>unrefElement$1(el)):[unrefElement$1(_targets)]}),stopWatch=watch(targets,els=>{if(cleanup(),isSupported.value&&window$1){observer=new ResizeObserver(callback);for(let _el of els)_el&&observer.observe(_el,observerOptions)}},{immediate:!0,flush:`post`}),stop$1=()=>{cleanup(),stopWatch()};return tryOnScopeDispose$1(stop$1),{isSupported,stop:stop$1}}function useElementBounding$1(target$1,options$1={}){let{reset=!0,windowResize=!0,windowScroll=!0,immediate=!0,updateTiming=`sync`}=options$1,height=shallowRef(0),bottom=shallowRef(0),left=shallowRef(0),right=shallowRef(0),top=shallowRef(0),width=shallowRef(0),x$3=shallowRef(0),y$2=shallowRef(0);function recalculate(){let el=unrefElement$1(target$1);if(!el){reset&&(height.value=0,bottom.value=0,left.value=0,right.value=0,top.value=0,width.value=0,x$3.value=0,y$2.value=0);return}let rect=el.getBoundingClientRect();height.value=rect.height,bottom.value=rect.bottom,left.value=rect.left,right.value=rect.right,top.value=rect.top,width.value=rect.width,x$3.value=rect.x,y$2.value=rect.y}function update(){updateTiming===`sync`?recalculate():updateTiming===`next-frame`&&requestAnimationFrame(()=>recalculate())}return useResizeObserver$1(target$1,update),watch(()=>unrefElement$1(target$1),ele=>!ele&&update()),useMutationObserver$1(target$1,update,{attributeFilter:[`style`,`class`]}),windowScroll&&useEventListener$1(`scroll`,update,{capture:!0,passive:!0}),windowResize&&useEventListener$1(`resize`,update,{passive:!0}),tryOnMounted$1(()=>{immediate&&update()}),{height,bottom,left,right,top,width,x:x$3,y:y$2,update}}function useElementSize(target$1,initialSize={width:0,height:0},options$1={}){let{window:window$1=defaultWindow,box=`content-box`}=options$1,isSVG=computed(()=>{var _a$2,_b;return(_b=(_a$2=unrefElement$1(target$1))?.namespaceURI)?.includes(`svg`)}),width=shallowRef(initialSize.width),height=shallowRef(initialSize.height),{stop:stop1}=useResizeObserver$1(target$1,([entry])=>{let boxSize=box===`border-box`?entry.borderBoxSize:box===`content-box`?entry.contentBoxSize:entry.devicePixelContentBoxSize;if(window$1&&isSVG.value){let $elem=unrefElement$1(target$1);if($elem){let rect=$elem.getBoundingClientRect();width.value=rect.width,height.value=rect.height}}else if(boxSize){let formatBoxSize=toArray$1(boxSize);width.value=formatBoxSize.reduce((acc,{inlineSize})=>acc+inlineSize,0),height.value=formatBoxSize.reduce((acc,{blockSize})=>acc+blockSize,0)}else width.value=entry.contentRect.width,height.value=entry.contentRect.height},options$1);tryOnMounted$1(()=>{let ele=unrefElement$1(target$1);ele&&(width.value=`offsetWidth`in ele?ele.offsetWidth:initialSize.width,height.value=`offsetHeight`in ele?ele.offsetHeight:initialSize.height)});let stop2=watch(()=>unrefElement$1(target$1),ele=>{width.value=ele?initialSize.width:0,height.value=ele?initialSize.height:0});function stop$1(){stop1(),stop2()}return{width,height,stop:stop$1}}function useFps(options$1){var _a$2;let fps=shallowRef(0);if(typeof performance>`u`)return fps;let every=(_a$2=options$1?.every)??10,last=performance.now(),ticks=0;return useRafFn(()=>{if(ticks+=1,ticks>=every){let now=performance.now(),diff=now-last;fps.value=Math.round(1e3/(diff/ticks)),last=now,ticks=0}}),fps}function useMemory(options$1={}){let memory=ref(),isSupported=useSupported$1(()=>typeof performance<`u`&&`memory`in performance);if(isSupported.value){let{interval=1e3}=options$1;useIntervalFn$1(()=>{memory.value=performance.memory},interval,{immediate:options$1.immediate,immediateCallback:options$1.immediateCallback})}return{isSupported,memory}}const defaultState$1={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},keys$2=Object.keys(defaultState$1);function usePointer$1(options$1={}){let{target:target$1=defaultWindow}=options$1,isInside=shallowRef(!1),state=ref(options$1.initialValue||{});Object.assign(state.value,defaultState$1,state.value);let handler=event=>{isInside.value=!0,!(options$1.pointerTypes&&!options$1.pointerTypes.includes(event.pointerType))&&(state.value=objectPick$1(event,keys$2,!1))};if(target$1){let listenerOptions={passive:!0};useEventListener$1(target$1,[`pointerdown`,`pointermove`,`pointerup`],handler,listenerOptions),useEventListener$1(target$1,`pointerleave`,()=>isInside.value=!1,listenerOptions)}return{...toRefs$2(state),isInside}}const DEFAULT_UNITS$1=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}];function useVModel(props,key$1,emit$1,options$1={}){var _a$2,_b,_c;let{clone:clone$2=!1,passive=!1,eventName,deep=!1,defaultValue,shouldEmit}=options$1,vm=getCurrentInstance(),_emit=emit$1||vm?.emit||(_a$2=vm?.$emit)?.bind(vm)||(_c=(_b=vm?.proxy)?.$emit)?.bind(vm?.proxy),event=eventName;key$1||=`modelValue`,event||=`update:${key$1.toString()}`;let cloneFn=val=>clone$2?typeof clone$2==`function`?clone$2(val):cloneFnJSON(val):val,getValue$2=()=>isDef$1(props[key$1])?cloneFn(props[key$1]):defaultValue,triggerEmit=value$1=>{shouldEmit?shouldEmit(value$1)&&_emit(event,value$1):_emit(event,value$1)};if(passive){let initialValue=getValue$2(),proxy=ref(initialValue),isUpdating=!1;return watch(()=>props[key$1],v$1=>{isUpdating||(isUpdating=!0,proxy.value=cloneFn(v$1),nextTick(()=>isUpdating=!1))}),watch(proxy,v$1=>{!isUpdating&&(v$1!==props[key$1]||deep)&&triggerEmit(v$1)},{deep}),proxy}else return computed({get(){return getValue$2()},set(value$1){triggerEmit(value$1)}})}function useWindowSize$1(options$1={}){let{window:window$1=defaultWindow,initialWidth=1/0,initialHeight=1/0,listenOrientation=!0,includeScrollbar=!0,type=`inner`}=options$1,width=shallowRef(initialWidth),height=shallowRef(initialHeight),update=()=>{if(window$1)if(type===`outer`)width.value=window$1.outerWidth,height.value=window$1.outerHeight;else if(type===`visual`&&window$1.visualViewport){let{width:visualViewportWidth,height:visualViewportHeight,scale:scale$1}=window$1.visualViewport;width.value=Math.round(visualViewportWidth*scale$1),height.value=Math.round(visualViewportHeight*scale$1)}else includeScrollbar?(width.value=window$1.innerWidth,height.value=window$1.innerHeight):(width.value=window$1.document.documentElement.clientWidth,height.value=window$1.document.documentElement.clientHeight)};update(),tryOnMounted$1(update);let listenerOptions={passive:!0};if(useEventListener$1(`resize`,update,listenerOptions),window$1&&type===`visual`&&window$1.visualViewport&&useEventListener$1(window$1.visualViewport,`resize`,update,listenerOptions),listenOrientation){let matches$1=useMediaQuery$1(`(orientation: portrait)`);watch(matches$1,()=>update())}return{width,height}}var At=Object.defineProperty,xt=(e$3,t,r$2)=>t in e$3?At(e$3,t,{enumerable:!0,configurable:!0,writable:!0,value:r$2}):e$3[t]=r$2,de$1=(e$3,t,r$2)=>xt(e$3,typeof t==`symbol`?t:t+``,r$2);const gr=`@tresjs/core`,hr=`module`,vr=`4.3.6`,yr=`pnpm@10.6.3`,_r=`Declarative ThreeJS using Vue Components`,wr=`Alvaro Saburido (https://github.com/alvarosabu/)`,br=`MIT`,Mr={type:`git`,url:`git+https://github.com/Tresjs/tres.git`},Pr=[`vue`,`3d`,`threejs`,`three`,`threejs-vue`],Cr=!1,Er={".":{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`},"./*":`./*`},Tr=`./dist/tres.js`,Sr=`./dist/tres.js`,Ar=`./dist/index.d.ts`,xr=[`*.d.ts`,`dist`],kr={access:`public`},Lr={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`},Rr={three:`>=0.133`,vue:`>=3.4`},Or={"@alvarosabu/utils":`^3.2.0`,"@vue/devtools-api":`^6.6.3`,"@vueuse/core":`^12.5.0`},Dr={"@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`},jr={name:gr,type:hr,version:vr,packageManager:yr,description:_r,author:wr,license:br,repository:Mr,keywords:Pr,sideEffects:Cr,exports:Er,main:Tr,module:Sr,types:Ar,files:xr,publishConfig:kr,scripts:Lr,peerDependencies:Rr,dependencies:Or,devDependencies:Dr};function Br(e$3){let t={nodes:{},materials:{}};return e$3&&e$3.traverse(r$2=>{r$2.name&&(t.nodes[r$2.name]=r$2),r$2.material&&!t.materials[r$2.material.name]&&(t.materials[r$2.material.name]=r$2.material)}),t}async function Ir(e$3,t,r$2,n$2,o$1){let{logError:l$1}=Q$1(),s$1=new e$3;return o$1&&o$1(s$1),r$2&&r$2(s$1),await new Promise((a$2,c$4)=>{s$1.load(t,i$1=>{let f$3=i$1;f$3.scene&&Object.assign(f$3,Br(f$3.scene)),a$2(f$3)},n$2,i$1=>{l$1(`[useLoader] - Failed to load resource`,i$1),c$4(i$1)})})}var $r=class extends Mesh{constructor(...r$2){super(...r$2),de$1(this,`type`,`HightlightMesh`),de$1(this,`createTime`),this.createTime=Date.now()}onBeforeRender(){let n$2=(Date.now()-this.createTime)/1e3,s$1=1+.07*Math.sin(2.5*n$2);this.scale.set(s$1,s$1,s$1)}};function be$1(e$3){return typeof e$3>`u`}function ke(e$3){return Array.isArray(e$3)}function Hr(e$3){return typeof e$3==`number`}function dt$2(e$3){return typeof e$3==`string`}function Y$1(e$3){return typeof e$3==`function`}function j(e$3){return e$3===Object(e$3)&&!ke(e$3)&&!Y$1(e$3)}function N(e$3){return j(e$3)&&!!e$3.isObject3D}function mt$1(e$3){return j(e$3)&&!!e$3.isColor}function Ur(e$3){return e$3!=null&&(typeof e$3==`string`||typeof e$3==`number`||mt$1(e$3))}function Me$1(e$3){return typeof e$3==`object`&&!!e$3&&`set`in e$3&&typeof e$3.set==`function`}function Fr(e$3){return Me$1(e$3)&&`copy`in e$3&&typeof e$3.copy==`function`}function Wr(e$3){return!!(e$3!=null&&e$3.constructor)}function Ge(e$3){return e$3 instanceof Layers}function Ve(e$3){return j(e$3)&&!!e$3.isCamera}function Nr(e$3){return j(e$3)&&!!e$3.isBufferGeometry}function zr(e$3){return j(e$3)&&!!e$3.isMaterial}function Gr(e$3){return j(e$3)&&!!e$3.isLight}function Vr(e$3){return j(e$3)&&!!e$3.isFog}function Yr(e$3){return j(e$3)&&!!e$3.isScene}function ne(e$3){return N(e$3)||Nr(e$3)||zr(e$3)||Vr(e$3)}function qr(e$3){return j(e$3)&&!!e$3.isPrimitive}const gt$1=(e$3,t)=>{for(let r$2 of Object.keys(t))t[r$2]instanceof Object&&Object.assign(t[r$2],gt$1(e$3[r$2],t[r$2]));return Object.assign(e$3||{},t),e$3},Kr=`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`,Jr=Zr(Kr);function Ye(e$3){return e$3&&e$3.nodeType===1}function he$1(e$3){return e$3.replace(/-([a-z])/g,(t,r$2)=>r$2.toUpperCase())}const Qr=/\B([A-Z])/g;function Xr(e$3){return e$3.replace(Qr,`-$1`).toLowerCase()}function Zr(e$3,t){let r$2=Object.create(null),n$2=e$3.split(`,`);for(let o$1=0;o$1!!r$2[o$1.toLowerCase()]:o$1=>!!r$2[o$1]}const qe=(e$3,t)=>{if(!t)return;let r$2=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return r$2?.reduce((n$2,o$1)=>n$2&&n$2[o$1],e$3)},en=(e$3,t,r$2)=>{let n$2=Array.isArray(t)?t:t.match(/([^[.\]])+/g);n$2&&n$2.reduce((o$1,l$1,s$1)=>(o$1[l$1]===void 0&&(o$1[l$1]={}),s$1===n$2.length-1&&(o$1[l$1]=r$2),o$1[l$1]),e$3)};function ht$1(e$3,t){if(Ye(e$3)&&Ye(t)){let o$1=e$3.attributes,l$1=t.attributes;return o$1.length===l$1.length?Array.from(o$1).every(({name:s$1,value:a$2})=>t.getAttribute(s$1)===a$2):!1}if(e$3===t)return!0;if(typeof e$3!=`object`||!e$3||typeof t!=`object`||!t)return!1;let r$2=Object.keys(e$3),n$2=Object.keys(t);if(r$2.length!==n$2.length)return!1;for(let o$1 of r$2)if(!n$2.includes(o$1)||!ht$1(e$3[o$1],t[o$1]))return!1;return!0}function tn(e$3,t){if(!Array.isArray(e$3)||!Array.isArray(t)||e$3.length!==t.length)return!1;for(let r$2=0;r$2{if(c$4.uuid===t)return c$4;for(let i$1 of c$4.children){let f$3=o$1(i$1);if(f$3)return f$3}},l$1=o$1(e$3);if(!l$1){console.warn(`Object with UUID not found in the scene.`);return}let s$1=l$1;for(let c$4=0;c$4vt$1(o$1)),!(e$3 instanceof Scene)){let o$1=e$3;e$3&&((n$2=e$3.dispose)==null||n$2.call(e$3)),o$1.geometry&&o$1.geometry.dispose(),Array.isArray(o$1.material)?o$1.material.forEach(l$1=>Ke(l$1)):o$1.material&&Ke(o$1.material)}}function ln(e$3,t){let r$2=0;for(let n$2=0;n$2r$2===0?t:t.charAt(0).toUpperCase()+t.slice(1)).join(``)}const Qe=/-\d+$/;function cn(e$3,t,r$2){if(dt$2(r$2)){if(Qe.test(r$2)){let l$1=r$2.replace(Qe,``),{target:s$1,key:a$2}=Pe$1(e$3,l$1);if(!Array.isArray(s$1[a$2])){let c$4=s$1[a$2],i$1=[];i$1.__tresDetach=()=>{i$1.every(f$3=>be$1(f$3))&&(s$1[a$2]=c$4)},s$1[a$2]=i$1}}let{target:n$2,key:o$1}=Pe$1(e$3,r$2);t.__tres.previousAttach=n$2[o$1],n$2[o$1]=J(t)}else t.__tres.previousAttach=r$2(e$3,t)}function un$2(e$3,t,r$2){var n$2,o$1,l$1;if(dt$2(r$2)){let{target:s$1,key:a$2}=Pe$1(e$3,r$2),c$4=t.__tres.previousAttach;c$4===void 0?delete s$1[a$2]:s$1[a$2]=c$4,`__tresDetach`in s$1&&s$1.__tresDetach()}else (o$1=(n$2=t.__tres)?.previousAttach)==null||o$1.call(n$2,e$3,t);(l$1=t.__tres)==null||delete l$1.previousAttach}function z$1(e$3,t,r$2){let n$2=e$3;return n$2.__tres={type:`unknown`,eventCount:0,root:r$2,handlers:{},memoizedProps:{},objects:[],parent:null,previousAttach:null,...t},n$2.__tres.attach||(n$2.isMaterial?n$2.__tres.attach=`material`:n$2.isBufferGeometry?n$2.__tres.attach=`geometry`:n$2.isFog&&(n$2.__tres.attach=`fog`)),n$2}function yt$1(e$3){var r$2;let t=(r$2=e$3?.__tres)?.root;t&&t.render&&t.render.canBeInvalidated.value&&t.invalidate()}function fn$4(e$3,t,r$2){var o$1;if(!Y$1(e$3.setPixelRatio))return;let n$2=0;if(r$2&&ke(r$2)&&r$2.length>=2){let[l$1,s$1]=r$2;n$2=MathUtils.clamp(t,l$1,s$1)}else n$2=Hr(r$2)?r$2:t;n$2!==(o$1=e$3.getPixelRatio)?.call(e$3)&&e$3.setPixelRatio(n$2)}function pn(e$3,t,r$2,n$2,o$1){let l$1=[...t.__tres.objects],s$1=J(t);if(e$3=J(e$3),s$1===e$3)return!0;let a$2=z$1(e$3,t.__tres??{},o$1),c$4=t.parent??t.__tres.parent??null,i$1={...t.__tres.memoizedProps};delete i$1.object;for(let f$3 of l$1)_t$1(f$3,o$1),wt$1(f$3,o$1);s$1.__tres.objects=[],n$2.remove(t);for(let[f$3,v$1]of Object.entries(i$1))n$2.patchProp(a$2,f$3,a$2[f$3],v$1);r$2(e$3),n$2.insert(t,c$4);for(let f$3 of l$1)n$2.insert(f$3,t);return!0}function J(e$3){return qr(e$3)?(e$3.object.__tres=e$3.__tres,e$3.object):e$3}function _t$1(e$3,t){var n$2,o$1,l$1,s$1;let r$2=(n$2=e$3.__tres)?.parent||t.scene.value;e$3.__tres&&(e$3.__tres.parent=null),r$2&&r$2.__tres&&`objects`in r$2.__tres&&ln(r$2.__tres.objects,a$2=>a$2!==e$3),(o$1=e$3.__tres)!=null&&o$1.attach?un$2(r$2,e$3,e$3.__tres.attach):((s$1=(l$1=e$3.parent)?.remove)==null||s$1.call(l$1,J(e$3)),e$3.parent=null)}function wt$1(e$3,t){var r$2;(r$2=e$3.traverse)==null||r$2.call(e$3,n$2=>{var o$1;t.deregisterCamera(n$2),(o$1=t.eventManager)==null||o$1.deregisterPointerMissedObject(n$2)}),t.deregisterCamera(e$3),yt$1(e$3)}async function dn(e$3,t){let r$2=new TextureLoader(t),n$2=o$1=>new Promise((l$1,s$1)=>{r$2.load(o$1,a$2=>l$1(a$2),()=>null,()=>{s$1(Error(`[useTextures] - Failed to load texture`))})});if(rn(e$3)){let o$1=await Promise.all(e$3.map(l$1=>n$2(l$1)));return e$3.length>1?o$1:o$1[0]}else{let{map:o$1,displacementMap:l$1,normalMap:s$1,roughnessMap:a$2,metalnessMap:c$4,aoMap:i$1,alphaMap:f$3,matcap:v$1}=e$3;return{map:o$1?await n$2(o$1):null,displacementMap:l$1?await n$2(l$1):null,normalMap:s$1?await n$2(s$1):null,roughnessMap:a$2?await n$2(a$2):null,metalnessMap:c$4?await n$2(c$4):null,aoMap:i$1?await n$2(i$1):null,alphaMap:f$3?await n$2(f$3):null,matcap:v$1?await n$2(v$1):null}}}const to=defineComponent({__name:`component`,props:{map:{},displacementMap:{},normalMap:{},roughnessMap:{},metalnessMap:{},aoMap:{},alphaMap:{},matcap:{}},async setup(e$3){let t,r$2,n$2=e$3,o$1=([t,r$2]=withAsyncContext(()=>reactive(dn(n$2))),t=await t,r$2(),t);return(l$1,s$1)=>renderSlot(l$1.$slots,`default`,{textures:unref(o$1)})}}),mn=({sizes:e$3})=>{let t=ref([]),r$2=computed(()=>t.value[0]),n$2=s$1=>{let a$2=s$1 instanceof Camera?s$1:t.value.find(i$1=>i$1.uuid===s$1);if(!a$2)return;let c$4=t.value.filter(({uuid:i$1})=>i$1!==a$2.uuid);t.value=[a$2,...c$4]},o$1=(s$1,a$2=!1)=>{if(Ve(s$1)){let c$4=s$1;if(t.value.some(({uuid:i$1})=>i$1===c$4.uuid))return;a$2?n$2(c$4):t.value.push(c$4)}},l$1=s$1=>{if(Ve(s$1)){let a$2=s$1;t.value=t.value.filter(({uuid:c$4})=>c$4!==a$2.uuid)}};return watchEffect(()=>{e$3.aspectRatio.value&&t.value.forEach(s$1=>{!s$1.manual&&(s$1 instanceof PerspectiveCamera||gn(s$1))&&(s$1 instanceof PerspectiveCamera?s$1.aspect=e$3.aspectRatio.value:(s$1.left=e$3.width.value*-.5,s$1.right=e$3.width.value*.5,s$1.top=e$3.height.value*.5,s$1.bottom=e$3.height.value*-.5),s$1.updateProjectionMatrix())})}),onUnmounted(()=>{t.value=[]}),{camera:r$2,cameras:t,registerCamera:o$1,deregisterCamera:l$1,setCameraActive:n$2}};function gn(e$3){return e$3.hasOwnProperty(`isOrthographicCamera`)&&e$3.isOrthographicCamera}const ro=!0,fe$1=`[TresJS ▲ ■ ●] `;function hn(...e$3){typeof e$3[0]==`string`?e$3[0]=fe$1+e$3[0]:e$3.unshift(fe$1),console.error(...e$3)}function vn$2(...e$3){typeof e$3[0]==`string`?e$3[0]=fe$1+e$3[0]:e$3.unshift(fe$1),console.warn(...e$3)}function yn(e$3,t){}function Q$1(){return{logError:hn,logWarning:vn$2,logMessage:yn}}const Ce$1=ref({}),Ee=e$3=>Object.assign(Ce$1.value,e$3);function ve(){let e$3=new Map,t=new Set,r$2=0,n$2=!1,o$1=()=>{let i$1=Array.from(e$3.entries()).sort((f$3,v$1)=>{let u$1=f$3[1].priority-v$1[1].priority;return u$1===0?f$3[1].addI-v$1[1].addI:u$1});t.clear(),i$1.forEach(f$3=>t.add(f$3[0]))},l$1=i$1=>{e$3.delete(i$1),t.delete(i$1)};return{on:(i$1,f$3=0)=>{e$3.set(i$1,{priority:f$3,addI:r$2++});let v$1=()=>l$1(i$1);return tryOnScopeDispose$1(v$1),n$2=!0,{off:v$1}},off:l$1,trigger:(...i$1)=>{n$2&&(o$1(),n$2=!1),t.forEach(f$3=>f$3(...i$1))},dispose:()=>{e$3.clear(),t.clear()},get count(){return e$3.size}}}function _n(){let e$3=!0,t=!0,r$2=!1,n$2=new Clock(!1),o$1=ref(n$2.running),l$1=ref(!1),s$1,a$2=MathUtils.generateUUID(),c$4=null,i$1=ve(),f$3=ve(),v$1=ve();S$2();let u$1={};function _$1(M$1){u$1=M$1}function d$2(M$1,x$3,m$2=0){switch(x$3){case`before`:return i$1.on(M$1,m$2);case`render`:return c$4||=M$1,f$3.dispose(),f$3.on(M$1);case`after`:return v$1.on(M$1,m$2)}}function y$2(){t&&(t=!1,S$2(),E$2())}function p$5(){t=!0,S$2(),cancelAnimationFrame(s$1)}function h$3(){r$2=!1,S$2()}function P$1(){r$2=!0,S$2()}function C$2(){l$1.value=!0}function b$3(){l$1.value=!1}function E$2(){if(!e$3){s$1=requestAnimationFrame(E$2);return}let M$1=n$2.getDelta(),x$3=n$2.getElapsedTime(),m$2={camera:unref(u$1.camera),scene:unref(u$1.scene),renderer:unref(u$1.renderer),raycaster:unref(u$1.raycaster),controls:unref(u$1.controls),invalidate:u$1.invalidate,advance:u$1.advance},w$1={delta:M$1,elapsed:x$3,clock:n$2,...m$2};o$1.value&&i$1.trigger(w$1),l$1.value||(f$3.count?f$3.trigger(w$1):c$4&&c$4(w$1)),o$1.value&&v$1.trigger(w$1),s$1=requestAnimationFrame(E$2)}function S$2(){let M$1=!t&&!r$2;n$2.running!==M$1&&(n$2.running?n$2.stop():n$2.start()),o$1.value=n$2.running}return{loopId:a$2,register:(M$1,x$3,m$2)=>d$2(M$1,x$3,m$2),start:y$2,stop:p$5,pause:P$1,resume:h$3,pauseRender:C$2,resumeRender:b$3,isRenderPaused:l$1,isActive:o$1,setContext:_$1,setReady:M$1=>e$3=M$1}}function Le(e$3){let t=0;return e$3.traverse(r$2=>{if(r$2.isMesh&&r$2.geometry&&r$2.type!==`HightlightMesh`){let n$2=r$2.geometry,o$1=n$2.attributes.position.count*3*Float32Array.BYTES_PER_ELEMENT,l$1=n$2.index?n$2.index.count*Uint32Array.BYTES_PER_ELEMENT:0,s$1=n$2.attributes.normal?n$2.attributes.normal.count*3*Float32Array.BYTES_PER_ELEMENT:0,a$2=n$2.attributes.uv?n$2.attributes.uv.count*2*Float32Array.BYTES_PER_ELEMENT:0,c$4=o$1+l$1+s$1+a$2;t+=c$4}}),t}function wn(e$3){return(e$3/1024).toFixed(2)}const bn=Number.parseInt(REVISION.replace(`dev`,``));function Mn(e$3){return e$3 instanceof Color?e$3:Array.isArray(e$3)?new Color(...e$3):new Color(e$3)}const oe$1={realistic:{shadows:!0,physicallyCorrectLights:!0,outputColorSpace:SRGBColorSpace,toneMapping:ACESFilmicToneMapping,toneMappingExposure:3,shadowMap:{enabled:!0,type:PCFSoftShadowMap}},flat:{toneMapping:NoToneMapping,toneMappingExposure:1}};function Pn({canvas:e$3,options:t,contextParts:{sizes:r$2,render:n$2,invalidate:o$1,advance:l$1}}){let s$1=computed(()=>({alpha:toValue(t.alpha)??!0,depth:toValue(t.depth),canvas:unrefElement$1(e$3),context:toValue(t.context),stencil:toValue(t.stencil),antialias:toValue(t.antialias)??!0,precision:toValue(t.precision),powerPreference:toValue(t.powerPreference),premultipliedAlpha:toValue(t.premultipliedAlpha),preserveDrawingBuffer:toValue(t.preserveDrawingBuffer),logarithmicDepthBuffer:toValue(t.logarithmicDepthBuffer),failIfMajorPerformanceCaveat:toValue(t.failIfMajorPerformanceCaveat)})),a$2=shallowRef(new WebGLRenderer(s$1.value));function c$4(){t.renderMode===`on-demand`&&o$1()}watch(s$1,()=>{a$2.value.dispose(),a$2.value=new WebGLRenderer(s$1.value),c$4()}),watch([r$2.width,r$2.height],()=>{a$2.value.setSize(r$2.width.value,r$2.height.value),c$4()},{immediate:!0}),watch(()=>t.clearColor,c$4);let{pixelRatio:i$1}=useDevicePixelRatio(),{logError:f$3}=Q$1(),u$1=(()=>{let d$2=new WebGLRenderer,y$2={shadowMap:{enabled:d$2.shadowMap.enabled,type:d$2.shadowMap.type},toneMapping:d$2.toneMapping,toneMappingExposure:d$2.toneMappingExposure,outputColorSpace:d$2.outputColorSpace};return d$2.dispose(),y$2})(),_$1=toValue(t.renderMode);return _$1===`on-demand`&&o$1(),_$1===`manual`&&setTimeout(()=>{l$1()},100),watchEffect(()=>{let d$2=toValue(t.preset);d$2&&(d$2 in oe$1||f$3(`Renderer Preset must be one of these: ${Object.keys(oe$1).join(`, `)}`),gt$1(a$2.value,oe$1[d$2])),fn$4(a$2.value,i$1.value,toValue(t.dpr)),_$1===`always`&&(n$2.frames.value=Math.max(1,n$2.frames.value));let y$2=(P$1,C$2)=>{let b$3=toValue(P$1),E$2=()=>{if(d$2)return qe(oe$1[d$2],C$2)};if(b$3!==void 0)return b$3;let S$2=E$2();return S$2===void 0?qe(u$1,C$2):S$2},p$5=(P$1,C$2)=>en(a$2.value,C$2,y$2(P$1,C$2));p$5(t.shadows,`shadowMap.enabled`),p$5(t.toneMapping??ACESFilmicToneMapping,`toneMapping`),p$5(t.shadowMapType,`shadowMap.type`),bn<150&&p$5(!t.useLegacyLights,`physicallyCorrectLights`),p$5(t.outputColorSpace,`outputColorSpace`),p$5(t.toneMappingExposure,`toneMappingExposure`);let h$3=y$2(t.clearColor,`clearColor`);h$3&&a$2.value.setClearColor(h$3?Mn(h$3):new Color(0))}),onUnmounted(()=>{a$2.value.dispose(),a$2.value.forceContextLoss()}),{renderer:a$2}}function Cn(e$3,t,r$2=10){let n$2=toValue(e$3)?useWindowSize$1():useElementSize(computed(()=>toValue(t).parentElement)),o$1=readonly(refDebounced$1(n$2.width,r$2)),l$1=readonly(refDebounced$1(n$2.height,r$2)),s$1=computed(()=>o$1.value/l$1.value);return{height:l$1,width:o$1,aspectRatio:s$1}}const En=(e$3,t)=>{let r$2=computed(()=>t.renderer.value.domElement),n$2=shallowRef([]),{x:o$1,y:l$1}=usePointer$1({target:r$2}),s$1=0,{width:a$2,height:c$4,top:i$1,left:f$3}=useElementBounding$1(r$2),v$1=({x:g$2,y:T$1})=>{if(r$2.value)return{x:(g$2-f$3.value)/a$2.value*2-1,y:-((T$1-i$1.value)/c$4.value)*2+1}},u$1=({x:g$2,y:T$1})=>{if(t.camera.value)return t.raycaster.value.setFromCamera(new Vector2(g$2,T$1),t.camera.value),n$2.value=t.raycaster.value.intersectObjects(e$3.value,!0),n$2.value},_$1=g$2=>{let T$1=v$1({x:g$2?.clientX??o$1.value,y:g$2?.clientY??l$1.value});return T$1&&u$1(T$1)||[]},d$2=createEventHook$1(),y$2=createEventHook$1(),p$5=createEventHook$1(),h$3=createEventHook$1(),P$1=createEventHook$1(),C$2=createEventHook$1(),b$3=createEventHook$1(),E$2=createEventHook$1();function S$2(g$2){let T$1={};for(let U in g$2)typeof U!=`function`&&(T$1[U]=g$2[U]);return T$1}let M$1=(g$2,T$1)=>{var Ie,$e,He$1;let U=S$2(T$1),re$2=new Vector3(T$1?.clientX,T$1?.clientY,0).unproject((Ie=t.camera)?.value);g$2.trigger({...U,intersections:n$2.value,unprojectedPoint:re$2,ray:($e=t.raycaster)?.value.ray,camera:(He$1=t.camera)?.value,sourceEvent:T$1,delta:s$1,stopPropagating:!1})},x$3,m$2=g$2=>{_$1(g$2),M$1(p$5,g$2),x$3=g$2},w$1=()=>{x$3&&m$2(x$3)},k$4,L$1,R$1,B$2=g$2=>{var T$1;k$4=(T$1=n$2.value[0])?.object,s$1=0,L$1=new Vector2(g$2?.clientX??o$1.value,g$2?.clientY??l$1.value),M$1(P$1,g$2)},O$1,G$1=!1,Oe$1=g$2=>{var T$1,U,re$2;g$2 instanceof PointerEvent&&(n$2.value.length===0&&M$1(C$2,g$2),k$4===(T$1=n$2.value[0])?.object&&(R$1=new Vector2(g$2?.clientX??o$1.value,g$2?.clientY??l$1.value),s$1=L$1?.distanceTo(R$1),g$2.button===0?(M$1(d$2,g$2),O$1===(U=n$2.value[0])?.object?G$1=!0:(O$1=(re$2=n$2.value[0])?.object,G$1=!1)):g$2.button===2&&M$1(b$3,g$2)),M$1(h$3,g$2))},De=g$2=>{G$1&&(M$1(y$2,g$2),O$1=void 0,G$1=!1)},je=g$2=>M$1(p$5,g$2),Be$1=g$2=>M$1(E$2,g$2);return r$2.value.addEventListener(`pointerup`,Oe$1),r$2.value.addEventListener(`pointerdown`,B$2),r$2.value.addEventListener(`pointermove`,m$2),r$2.value.addEventListener(`pointerleave`,je),r$2.value.addEventListener(`dblclick`,De),r$2.value.addEventListener(`wheel`,Be$1),onUnmounted(()=>{r$2!=null&&r$2.value&&(r$2.value.removeEventListener(`pointerup`,Oe$1),r$2.value.removeEventListener(`pointerdown`,B$2),r$2.value.removeEventListener(`pointermove`,m$2),r$2.value.removeEventListener(`pointerleave`,je),r$2.value.removeEventListener(`dblclick`,De),r$2.value.removeEventListener(`wheel`,Be$1))}),{intersects:n$2,onClick:g$2=>d$2.on(g$2).off,onDblClick:g$2=>y$2.on(g$2).off,onContextMenu:g$2=>b$3.on(g$2).off,onPointerMove:g$2=>p$5.on(g$2).off,onPointerUp:g$2=>h$3.on(g$2).off,onPointerDown:g$2=>P$1.on(g$2).off,onPointerMissed:g$2=>C$2.on(g$2).off,onWheel:g$2=>E$2.on(g$2).off,forceUpdate:w$1}};function ye(e$3,t){if(Array.isArray(e$3))for(let r$2 of e$3)r$2(t);typeof e$3==`function`&&e$3(t)}function Tn(e$3,t,r$2){var x$3;let n$2=shallowRef(),o$1=shallowRef();e$3&&(n$2.value=e$3),t&&(o$1.value=t);let l$1=m$2=>{var w$1;return(w$1=m$2.__tres)?.eventCount>0},s$1=m$2=>{var w$1;return(w$1=m$2.children)?.some(k$4=>s$1(k$4))||l$1(m$2)},a$2=shallowRef(((x$3=n$2.value)?.children).filter(s$1)||[]);function c$4(m$2,w$1){let k$4=[],L$1=()=>w$1.stopPropagating=!0;w$1.stopPropagation=L$1;for(let R$1 of w$1?.intersections){if(w$1.stopPropagating)return;w$1={...w$1,...R$1};let{object:B$2}=R$1;w$1.eventObject=B$2,ye(B$2[m$2],w$1),k$4.push(B$2);let O$1=B$2.parent;for(;O$1!==null&&!w$1.stopPropagating&&!k$4.includes(O$1);)w$1.eventObject=O$1,ye(O$1[m$2],w$1),k$4.push(O$1),O$1=O$1.parent;let G$1=Xr(m$2.slice(2));r$2(G$1,{intersection:R$1,event:w$1})}}let{onClick:i$1,onDblClick:f$3,onContextMenu:v$1,onPointerMove:u$1,onPointerDown:_$1,onPointerUp:d$2,onPointerMissed:y$2,onWheel:p$5,forceUpdate:h$3}=En(a$2,t);d$2(m$2=>c$4(`onPointerUp`,m$2)),_$1(m$2=>c$4(`onPointerDown`,m$2)),i$1(m$2=>c$4(`onClick`,m$2)),f$3(m$2=>c$4(`onDoubleClick`,m$2)),v$1(m$2=>c$4(`onContextMenu`,m$2)),p$5(m$2=>c$4(`onWheel`,m$2));let P$1=[];u$1(m$2=>{let w$1=m$2.intersections.map(({object:L$1})=>L$1),k$4=m$2.intersections;P$1.forEach(({object:L$1})=>{w$1.includes(L$1)||(m$2.intersections=P$1,c$4(`onPointerLeave`,m$2),c$4(`onPointerOut`,m$2))}),m$2.intersections=k$4,m$2.intersections.forEach(({object:L$1})=>{P$1.includes(L$1)||(c$4(`onPointerEnter`,m$2),c$4(`onPointerOver`,m$2))}),c$4(`onPointerMove`,m$2),P$1=m$2.intersections});let C$2=[];y$2(m$2=>{let w$1=()=>m$2.stopPropagating=!0;m$2.stopPropagation=w$1,C$2.forEach(k$4=>{m$2.stopPropagating||(m$2.eventObject=k$4,ye(k$4.onPointerMissed,m$2))}),r$2(`pointer-missed`,{event:m$2})});function b$3(m$2){ne(m$2)&&N(m$2)&&a$2.value.push(m$2)}function E$2(m$2){if(ne(m$2)&&N(m$2)){let w$1=a$2.value.indexOf(m$2);w$1>-1&&a$2.value.splice(w$1,1)}}function S$2(m$2){ne(m$2)&&N(m$2)&&m$2.onPointerMissed&&C$2.push(m$2)}function M$1(m$2){if(ne(m$2)&&N(m$2)){let w$1=C$2.indexOf(m$2);w$1>-1&&C$2.splice(w$1,1)}}return t.eventManager={forceUpdate:h$3,registerObject:b$3,deregisterObject:E$2,registerPointerMissedObject:S$2,deregisterPointerMissedObject:M$1},{forceUpdate:h$3,registerObject:b$3,deregisterObject:E$2,registerPointerMissedObject:S$2,deregisterPointerMissedObject:M$1}}function Sn(e$3,t,r$2=100){r$2=r$2<=0?100:r$2;let n$2=createEventHook$1(),o$1=new Set,l$1=!1,s$1=!1,a$2=null;function c$4(){a$2&&clearTimeout(a$2),!s$1&&!l$1&&e$3()?(n$2.trigger(t),o$1.forEach(u$1=>u$1()),o$1.clear(),l$1=!0):!s$1&&!l$1&&(a$2=setTimeout(c$4,r$2))}function i$1(){s$1=!0,a$2&&clearTimeout(a$2)}c$4();let f$3=(u$1,..._$1)=>{u$1(..._$1)};return{on:u$1=>{if(l$1)return f$3(u$1,t),{off:()=>{}};{let _$1=n$2.on(u$1);return o$1.add(_$1.off),n$2.on(u$1)}},off:n$2.off,trigger:n$2.trigger,clear:n$2.clear,cancel:i$1}}const ee$1=new WeakMap;function bt$1(e$3){if(e$3||=pe$1(),ee$1.has(e$3))return ee$1.get(e$3);let t=100,r$2=Date.now(),l$1=Sn(()=>{if(Date.now()-r$2>=t)return!0;{let s$1=e$3.renderer.value,a$2=s$1?.domElement||{width:0,height:0};return!!(s$1&&a$2.width>0&&a$2.height>0)}},e$3);return ee$1.set(e$3,l$1),l$1}function An({scene:e$3,canvas:t,windowSize:r$2,rendererOptions:n$2,emit:o$1}){let l$1=shallowRef(e$3),s$1=Cn(r$2,t),{camera:a$2,cameras:c$4,registerCamera:i$1,deregisterCamera:f$3,setCameraActive:v$1}=mn({sizes:s$1}),u$1={mode:ref(n$2.renderMode||`always`),priority:ref(0),frames:ref(0),maxFrames:60,canBeInvalidated:computed(()=>u$1.mode.value===`on-demand`&&u$1.frames.value===0)};function _$1(R$1=1){n$2.renderMode===`on-demand`&&(u$1.frames.value=Math.min(u$1.maxFrames,u$1.frames.value+R$1))}function d$2(){n$2.renderMode===`manual`&&(u$1.frames.value=1)}let{renderer:y$2}=Pn({canvas:t,options:n$2,contextParts:{sizes:s$1,render:u$1,invalidate:_$1,advance:d$2}}),p$5={sizes:s$1,scene:l$1,camera:a$2,cameras:readonly(c$4),renderer:y$2,raycaster:shallowRef(new Raycaster),controls:ref(null),perf:{maxFrames:160,fps:{value:0,accumulator:[]},memory:{currentMem:0,allocatedMem:0,accumulator:[]}},render:u$1,advance:d$2,extend:Ee,invalidate:_$1,registerCamera:i$1,setCameraActive:v$1,deregisterCamera:f$3,loop:_n()};provide(`useTres`,p$5),p$5.scene.value.__tres={root:p$5},p$5.loop.register(()=>{a$2.value&&u$1.frames.value>0&&(y$2.value.render(e$3,a$2.value),o$1(`render`,p$5.renderer.value)),u$1.priority.value=0,u$1.mode.value===`always`?u$1.frames.value=1:u$1.frames.value=Math.max(0,u$1.frames.value-1)},`render`);let{on:h$3,cancel:P$1}=bt$1(p$5);p$5.loop.setReady(!1),p$5.loop.start(),h$3(()=>{o$1(`ready`,p$5),p$5.loop.setReady(!0),Tn(e$3,p$5,o$1)}),onUnmounted(()=>{P$1(),p$5.loop.stop()});let C$2=100,b$3=useFps({every:C$2}),{isSupported:E$2,memory:S$2}=useMemory({interval:C$2}),M$1=160,x$3=performance.now(),m$2=({timestamp:R$1})=>{p$5.scene.value&&(p$5.perf.memory.allocatedMem=Le(p$5.scene.value)),R$1-x$3>=C$2&&(x$3=R$1,p$5.perf.fps.accumulator.push(b$3.value),p$5.perf.fps.accumulator.length>M$1&&p$5.perf.fps.accumulator.shift(),p$5.perf.fps.value=b$3.value,E$2.value&&S$2.value&&(p$5.perf.memory.accumulator.push(S$2.value.usedJSHeapSize/1024/1024),p$5.perf.memory.accumulator.length>M$1&&p$5.perf.memory.accumulator.shift(),p$5.perf.memory.currentMem=p$5.perf.memory.accumulator.reduce((B$2,O$1)=>B$2+O$1,0)/p$5.perf.memory.accumulator.length))},w$1=0,k$4=1,{pause:L$1}=useRafFn(({delta:R$1})=>{window.__TRES__DEVTOOLS__&&(m$2({timestamp:performance.now()}),w$1+=R$1,w$1>=k$4&&(window.__TRES__DEVTOOLS__.cb(p$5),w$1=0))},{immediate:!0});return onUnmounted(()=>{L$1()}),p$5}function pe$1(){let e$3=inject(`useTres`);if(!e$3)throw Error(`useTresContext must be used together with useTresContextProvider`);return e$3}const so=pe$1;function io(){let{camera:e$3,scene:t,renderer:r$2,loop:n$2,raycaster:o$1,controls:l$1,invalidate:s$1,advance:a$2}=pe$1();n$2.setContext({camera:e$3,scene:t,renderer:r$2,raycaster:o$1,controls:l$1,invalidate:s$1,advance:a$2});function c$4(v$1,u$1=0){return n$2.register(v$1,`before`,u$1)}function i$1(v$1){return n$2.register(v$1,`render`)}function f$3(v$1,u$1=0){return n$2.register(v$1,`after`,u$1)}return{pause:n$2.pause,resume:n$2.resume,pauseRender:n$2.pauseRender,resumeRender:n$2.resumeRender,isActive:n$2.isActive,onBeforeRender:c$4,render:i$1,onAfterRender:f$3}}const Mt$1=createEventHook$1(),Pt$1=createEventHook$1(),Re=createEventHook$1(),te$1=new Clock;let le$1=0,ce$1=0;const{pause:xn,resume:Xe,isActive:kn}=useRafFn(()=>{Mt$1.trigger({delta:le$1,elapsed:ce$1,clock:te$1}),Pt$1.trigger({delta:le$1,elapsed:ce$1,clock:te$1}),Re.trigger({delta:le$1,elapsed:ce$1,clock:te$1})},{immediate:!1});Re.on(()=>{le$1=te$1.getDelta(),ce$1=te$1.getElapsedTime()});function Ln(e$3,t={},r$2={}){let n$2=e$3,o$1=a$2=>{n$2=a$2},l$1=new Proxy({},{}),s$1={has(a$2,c$4){return c$4 in t||c$4 in n$2},get(a$2,c$4,i$1){return c$4 in t?t[c$4](n$2):n$2[c$4]},set(a$2,c$4,i$1){return r$2[c$4]?r$2[c$4](i$1,n$2,l$1,o$1):n$2[c$4]=i$1,!0}};return l$1=new Proxy({},s$1),l$1}const{logError:et$1}=Q$1(),tt$1=[`onClick`,`onContextMenu`,`onPointerMove`,`onPointerEnter`,`onPointerLeave`,`onPointerOver`,`onPointerOut`,`onDoubleClick`,`onPointerDown`,`onPointerUp`,`onPointerCancel`,`onPointerMissed`,`onLostPointerCapture`,`onWheel`],Rn=e$3=>{let t=e$3.scene.value;function r$2(i$1,f$3,v$1,u$1){if(u$1||={},u$1.args||=[],i$1===`template`||Jr(i$1))return null;let _$1=i$1.replace(`Tres`,``),d$2;if(i$1===`primitive`){(!j(u$1.object)||isRef(u$1.object))&&et$1(`Tres primitives need an 'object' prop, whose value is an object or shallowRef`),_$1=u$1.object.type;let y$2={};d$2=Ln(u$1.object,{object:h$3=>h$3,isPrimitive:()=>!0,__tres:()=>y$2},{object:(h$3,P$1,C$2,b$3)=>{pn(h$3,C$2,b$3,{patchProp:l$1,remove:o$1,insert:n$2},e$3)},__tres:h$3=>{Object.assign(y$2,h$3)}})}else{let y$2=Ce$1.value[_$1];y$2||et$1(`${_$1} is not defined on the THREE namespace. Use extend to add it to the catalog.`),d$2=new y$2(...u$1.args)}return d$2?(d$2.isCamera&&(u$1!=null&&u$1.position||d$2.position.set(3,3,3),u$1!=null&&u$1.lookAt||d$2.lookAt(0,0,0)),d$2=z$1(d$2,{...d$2.__tres,type:_$1,memoizedProps:u$1,eventCount:0,primitive:i$1===`primitive`,attach:u$1.attach},e$3),d$2):null}function n$2(i$1,f$3){var _$1,d$2,y$2;if(!i$1)return;f$3||=t;let v$1=i$1.__tres?i$1:z$1(i$1,{},e$3),u$1=f$3.__tres?f$3:z$1(f$3,{},e$3);i$1=J(v$1),f$3=J(u$1),i$1.__tres&&(_$1=i$1.__tres)?.eventCount>0&&((d$2=e$3.eventManager)==null||d$2.registerObject(i$1)),e$3.registerCamera(i$1),(y$2=e$3.eventManager)==null||y$2.registerPointerMissedObject(i$1),v$1.__tres.attach?cn(u$1,v$1,v$1.__tres.attach):N(i$1)&&N(u$1)&&(u$1.add(i$1),i$1.dispatchEvent({type:`added`})),v$1.__tres.parent=u$1,u$1.__tres.objects&&!u$1.__tres.objects.includes(v$1)&&u$1.__tres.objects.push(v$1)}function o$1(i$1,f$3){var d$2,y$2,p$5,h$3;if(!i$1)return;i$1!=null&&i$1.__tres&&(d$2=i$1.__tres)?.eventCount>0&&((y$2=e$3.eventManager)==null||y$2.deregisterObject(i$1)),f$3=be$1(f$3)?`default`:f$3;let v$1=(p$5=i$1.__tres)?.dispose;be$1(v$1)||(f$3=v$1===null?!1:v$1);let u$1=(h$3=i$1.__tres)?.primitive,_$1=f$3===`default`?!u$1:!!f$3;if(i$1.__tres&&`objects`in i$1.__tres&&[...i$1.__tres.objects].forEach(P$1=>o$1(P$1,f$3)),_$1&&i$1.children&&[...i$1.children].forEach(P$1=>o$1(P$1,f$3)),_t$1(i$1,e$3),wt$1(i$1,e$3),_$1&&!Yr(i$1)){if(Y$1(f$3))f$3(i$1);else if(Y$1(i$1.dispose))try{i$1.dispose()}catch{}}`__tres`in i$1&&delete i$1.__tres}function l$1(i$1,f$3,v$1,u$1){var P$1,C$2;if(!i$1)return;let _$1=i$1,d$2=f$3;if(i$1.__tres&&(i$1.__tres.memoizedProps[f$3]=u$1),f$3===`attach`){let b$3=(P$1=i$1.__tres)?.parent||i$1.parent;o$1(i$1),z$1(i$1,{attach:u$1},e$3),b$3&&n$2(i$1,b$3);return}if(f$3===`dispose`){i$1.__tres||(i$1=z$1(i$1,{},e$3)),i$1.__tres.dispose=u$1;return}if(N(i$1)&&d$2===`blocks-pointer-events`){u$1||u$1===``?i$1[d$2]=u$1:delete i$1[d$2];return}tt$1.includes(f$3)&&i$1.__tres&&(i$1.__tres.eventCount+=1);let y$2=he$1(d$2),p$5=_$1?.[y$2];if(d$2===`args`){let b$3=i$1,E$2=v$1??[],S$2=u$1??[],M$1=(C$2=i$1.__tres)?.type||i$1.type;M$1&&E$2.length&&!tn(E$2,S$2)&&(_$1=Object.assign(b$3,new Ce$1.value[M$1](...u$1)));return}if(_$1.type===`BufferGeometry`){if(d$2===`args`)return;_$1.setAttribute(he$1(d$2),new BufferAttribute(...u$1));return}if(d$2.includes(`-`)&&p$5===void 0){p$5=_$1;for(let b$3 of d$2.split(`-`))y$2=d$2=he$1(b$3),_$1=p$5,p$5=p$5?.[d$2]}let h$3=u$1;if(h$3===``&&(h$3=!0),Y$1(p$5)){tt$1.includes(f$3)||(ke(h$3)?i$1[y$2](...h$3):i$1[y$2](h$3)),y$2.startsWith(`on`)&&Y$1(h$3)&&(_$1[y$2]=h$3);return}Ge(p$5)&&Ge(h$3)?p$5.mask=h$3.mask:mt$1(p$5)&&Ur(h$3)?p$5.set(h$3):Fr(p$5)&&Wr(h$3)&&p$5.constructor===h$3.constructor?p$5.copy(h$3):Me$1(p$5)&&Array.isArray(h$3)?`fromArray`in p$5&&typeof p$5.fromArray==`function`?p$5.fromArray(h$3):p$5.set(...h$3):Me$1(p$5)&&typeof h$3==`number`?`setScalar`in p$5&&typeof p$5.setScalar==`function`?p$5.setScalar(h$3):p$5.set(h$3):_$1[y$2]=h$3,yt$1(i$1)}function s$1(i$1){var f$3;return(f$3=i$1?.__tres)?.parent||null}function a$2(i$1){let f$3=z$1(new Object3D,{type:`Comment`},e$3);return f$3.name=i$1,f$3}function c$4(i$1){var _$1;let f$3=s$1(i$1),v$1=(_$1=f$3?.__tres)?.objects||[],u$1=v$1.indexOf(i$1);return u$1<0||u$1>=v$1.length-1?null:v$1[u$1+1]}return{insert:n$2,remove:o$1,createElement:r$2,patchProp:l$1,parentNode:s$1,createText:()=>void 0,createComment:a$2,setText:()=>void 0,setElementText:()=>void 0,nextSibling:c$4,querySelector:()=>void 0,setScopeId:()=>void 0,cloneNode:()=>void 0,insertStaticContent:()=>void 0}};function On(){return Ct().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ct(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}const Dn=typeof Proxy==`function`,jn=`devtools-plugin:setup`,Bn=`plugin:settings:set`;let V,Te$1;function In(){var e$3;return V!==void 0||(typeof window<`u`&&window.performance?(V=!0,Te$1=window.performance):typeof globalThis<`u`&&(e$3=globalThis.perf_hooks)!=null&&e$3.performance?(V=!0,Te$1=globalThis.perf_hooks.performance):V=!1),V}function $n(){return In()?Te$1.now():Date.now()}var Hn=class{constructor(t,r$2){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r$2;let n$2={};if(t.settings)for(let s$1 in t.settings){let a$2=t.settings[s$1];n$2[s$1]=a$2.defaultValue}let o$1=`__vue-devtools-plugin-settings__${t.id}`,l$1=Object.assign({},n$2);try{let s$1=localStorage.getItem(o$1),a$2=JSON.parse(s$1);Object.assign(l$1,a$2)}catch{}this.fallbacks={getSettings(){return l$1},setSettings(s$1){try{localStorage.setItem(o$1,JSON.stringify(s$1))}catch{}l$1=s$1},now(){return $n()}},r$2&&r$2.on(Bn,(s$1,a$2)=>{s$1===this.plugin.id&&this.fallbacks.setSettings(a$2)}),this.proxiedOn=new Proxy({},{get:(s$1,a$2)=>this.target?this.target.on[a$2]:(...c$4)=>{this.onQueue.push({method:a$2,args:c$4})}}),this.proxiedTarget=new Proxy({},{get:(s$1,a$2)=>this.target?this.target[a$2]:a$2===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(a$2)?(...c$4)=>(this.targetQueue.push({method:a$2,args:c$4,resolve:()=>{}}),this.fallbacks[a$2](...c$4)):(...c$4)=>new Promise(i$1=>{this.targetQueue.push({method:a$2,args:c$4,resolve:i$1})})})}async setRealTarget(t){this.target=t;for(let r$2 of this.onQueue)this.target.on[r$2.method](...r$2.args);for(let r$2 of this.targetQueue)r$2.resolve(await this.target[r$2.method](...r$2.args))}};function Un(e$3,t){let r$2=e$3,n$2=Ct(),o$1=On(),l$1=Dn&&r$2.enableEarlyProxy;if(o$1&&(n$2.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l$1))o$1.emit(jn,e$3,t);else{let s$1=l$1?new Hn(r$2,o$1):null;(n$2.__VUE_DEVTOOLS_PLUGINS__=n$2.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r$2,setupFn:t,proxy:s$1}),s$1&&t(s$1.proxiedTarget)}}function Fn(e$3,t){let r$2=`▲ ■ ●${e$3}`;typeof rt$1==`function`?rt$1(r$2,t):console.log(r$2)}function rt$1(e$3,t){throw Error(e$3+t)}const Et$1=e$3=>{let t={id:e$3.uuid,label:e$3.type,children:[],tags:[]};e$3.name!==``&&t.tags.push({label:e$3.name,textColor:5750629,backgroundColor:15793395});let r$2=Le(e$3);return r$2>0&&t.tags.push({label:`${wn(r$2)} KB`,textColor:15707189,backgroundColor:16775644,tooltip:`Memory usage`}),e$3.type.includes(`Light`)&&(Gr(e$3)&&t.tags.push({label:`${e$3.intensity}`,textColor:9738662,backgroundColor:16316922,tooltip:`Intensity`}),t.tags.push({label:`#${new Color(e$3.color).getHexString()}`,textColor:9738662,backgroundColor:16316922,tooltip:`Color`})),e$3.type.includes(`Camera`)&&(t.tags.push({label:`${e$3.fov}°`,textColor:9738662,backgroundColor:16316922,tooltip:`Field of view`}),t.tags.push({label:`x: ${Math.round(e$3.position.x)} y: ${Math.round(e$3.position.y)} z: ${Math.round(e$3.position.z)}`,textColor:9738662,backgroundColor:16316922,tooltip:`Position`})),t};function Tt$1(e$3,t,r$2=``){e$3.children.forEach(n$2=>{if(n$2.type===`HightlightMesh`||r$2&&!n$2.type.includes(r$2)&&!n$2.name.includes(r$2))return;let o$1=Et$1(n$2);t.children.push(o$1),Tt$1(n$2,o$1,r$2)})}const Wn=[],X$1=`tres:inspector`,Nn=reactive({sceneGraph:null});function zn(e$3,t){Un({id:`dev.esm.tres`,label:`TresJS 🪐`,logo:`https://raw.githubusercontent.com/Tresjs/tres/main/public/favicon.svg`,packageName:`tresjs`,homepage:`https://tresjs.org`,componentStateTypes:Wn,app:e$3},r$2=>{typeof r$2.now!=`function`&&Fn(`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.`),r$2.addInspector({id:X$1,label:`TresJS 🪐`,icon:`account_tree`,treeFilterPlaceholder:`Search instances`}),setInterval(()=>{r$2.sendInspectorTree(X$1)},1e3),setInterval(()=>{r$2.notifyComponentUpdate()},5e3),r$2.on.getInspectorTree(l$1=>{if(l$1.inspectorId===X$1){let s$1=Et$1(t.scene.value);Tt$1(t.scene.value,s$1,l$1.filter),Nn.sceneGraph=s$1,l$1.rootNodes=[s$1]}});let n$2=null,o$1=null;r$2.on.getInspectorState(l$1=>{var s$1;if(l$1.inspectorId===X$1){let[a$2]=t.scene.value.getObjectsByProperty(`uuid`,l$1.nodeId);if(!a$2)return;if(o$1&&n$2&&n$2.parent&&o$1.remove(n$2),a$2.isMesh){let c$4=on(a$2);a$2.add(c$4),n$2=c$4,o$1=a$2}l$1.state={object:Object.entries(a$2).map(([c$4,i$1])=>c$4===`children`?{key:c$4,value:i$1.filter(f$3=>f$3.type!==`HightlightMesh`)}:{key:c$4,value:i$1,editable:!0}).filter(({key:c$4})=>c$4!==`parent`)},a$2.isScene&&(l$1.state={...l$1.state,state:[{key:`Scene Info`,value:{objects:a$2.children.length,memory:Le(a$2),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:(s$1=t.renderer.value.info.programs)?.map(c$4=>({...c$4,programName:c$4.name}))||[]}]})}}),r$2.on.editInspectorState(l$1=>{l$1.inspectorId===X$1&&nn(t.scene.value,l$1.nodeId,l$1.path,l$1.state.value)})})}const Gn=[`data-scene`,`data-tres`],Vn=defineComponent({__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$3,{expose:t,emit:r$2}){let n$2=e$3,o$1=r$2,l$1=useSlots(),s$1=ref(),a$2=shallowRef(new Scene),c$4=getCurrentInstance();Ee(three_module_exports);let i$1=(d$2,y$2=!1)=>defineComponent({setup(){var C$2;let p$5=(C$2=getCurrentInstance())?.appContext;p$5&&(p$5.app=c$4?.appContext.app);let h$3={};function P$1(b$3){b$3&&(b$3.parent&&P$1(b$3.parent),b$3.provides&&Object.assign(h$3,b$3.provides))}return c$4!=null&&c$4.parent&&n$2.enableProvideBridge&&(P$1(c$4.parent),Reflect.ownKeys(h$3).forEach(b$3=>{provide(b$3,h$3[b$3])})),provide(`useTres`,d$2),provide(`extend`,Ee),typeof window<`u`&&zn(p$5?.app,d$2),()=>h(Fragment,null,y$2?[]:l$1.default())}}),f$3=(d$2,y$2=!1)=>{let p$5=i$1(d$2,y$2),{render:h$3}=createRenderer(Rn(d$2));h$3(h(p$5),a$2.value)},v$1=(d$2,y$2=!1)=>{vt$1(d$2.scene.value),y$2&&(d$2.renderer.value.dispose(),d$2.renderer.value.renderLists.dispose(),d$2.renderer.value.forceContextLoss()),a$2.value.__tres={root:d$2}},u$1=shallowRef(null);t({context:u$1,dispose:()=>v$1(u$1.value,!0)});let _$1=()=>{v$1(u$1.value),f$3(u$1.value,!0)};return onMounted(()=>{let d$2=s$1;u$1.value=An({scene:a$2.value,canvas:d$2,windowSize:n$2.windowSize??!1,rendererOptions:n$2,emit:o$1});let{registerCamera:y$2,camera:p$5,cameras:h$3,deregisterCamera:P$1}=u$1.value;f$3(u$1.value);let C$2=()=>{let b$3=new PerspectiveCamera(45,window.innerWidth/window.innerHeight,.1,1e3);b$3.position.set(3,3,3),b$3.lookAt(0,0,0),y$2(b$3);let E$2=watchEffect(()=>{h$3.value.length>=2&&(b$3.removeFromParent(),P$1(b$3),E$2?.())})};watch(()=>n$2.camera,(b$3,E$2)=>{b$3&&y$2(b$3),E$2&&(E$2.removeFromParent(),P$1(E$2))},{immediate:!0}),p$5.value||C$2()}),onUnmounted(_$1),(d$2,y$2)=>(openBlock(),createElementBlock(`canvas`,{ref_key:`canvas`,ref:s$1,"data-scene":a$2.value.uuid,class:normalizeClass(d$2.$attrs.class),"data-tres":`tresjs ${unref(jr).version}`,style:normalizeStyle({display:`block`,width:`100%`,height:`100%`,position:d$2.windowSize?`fixed`:`relative`,top:0,left:0,pointerEvents:`auto`,touchAction:`none`,...d$2.$attrs.style})},null,14,Gn))}}),Yn=[`TresCanvas`,`TresLeches`,`TresScene`],co={template:{compilerOptions:{isCustomElement:e$3=>e$3.startsWith(`Tres`)&&!Yn.includes(e$3)||e$3===`primitive`}}},{logWarning:qn}=Q$1();var St$1=class extends Line{constructor(t,r$2){let n$2=[1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],o$1=new BufferGeometry;o$1.setAttribute(`position`,new Float32BufferAttribute(n$2,3)),o$1.computeBoundingSphere();let l$1=new LineBasicMaterial({fog:!1});super(o$1,l$1),this.light=t,this.color=r$2,this.type=`RectAreaLightHelper`;let s$1=[1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],a$2=new BufferGeometry;a$2.setAttribute(`position`,new Float32BufferAttribute(s$1,3)),a$2.computeBoundingSphere(),this.add(new Mesh(a$2,new MeshBasicMaterial({side:BackSide,fog:!1})))}updateMatrixWorld(){if(this.scale.set(.5*this.light.width,.5*this.light.height,1),this.color!==void 0)this.material.color.set(this.color),this.children[0].material.color.set(this.color);else{this.material.color.copy(this.light.color).multiplyScalar(this.light.intensity);let t=this.material.color,r$2=Math.max(t.r,t.g,t.b);r$2>1&&t.multiplyScalar(1/r$2),this.children[0].material.color.copy(this.material.color)}this.matrixWorld.extractRotation(this.light.matrixWorld).scale(this.scale).copyPosition(this.light.matrixWorld),this.children[0].matrixWorld.copy(this.matrixWorld)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}};const{logWarning:nt$1}=Q$1();let se,F$1;const Kn={DirectionalLight:DirectionalLightHelper,PointLight:PointLightHelper,SpotLight:SpotLightHelper,HemisphereLight:HemisphereLightHelper,RectAreaLight:St$1},fo={mounted:e$3=>{if(!e$3.isLight){nt$1(`${e$3.type} is not a light`);return}se=Kn[e$3.type],e$3.parent.add(new se(e$3,1,e$3.color.getHex()))},updated:e$3=>{F$1=e$3.parent.children.find(t=>t instanceof se),!(F$1 instanceof St$1)&&F$1.update()},unmounted:e$3=>{if(!e$3.isLight){nt$1(`${e$3.type} is not a light`);return}F$1=e$3.parent.children.find(t=>t instanceof se),F$1&&F$1.dispose&&F$1.dispose(),e$3.parent&&e$3.parent.remove(F$1)}},po={mounted:(e$3,t)=>{if(t.arg){console.log(`v-log:${t.arg}`,e$3[t.arg]);return}console.log(`v-log`,e$3)}},mo={install(e$3){e$3.component(`TresCanvas`,Vn)}};var require_nprogress=__commonJSMin((exports,module)=>{(function(root$3,factory){typeof define==`function`&&define.amd?define(factory):typeof exports==`object`?module.exports=factory():root$3.NProgress=factory()})(void 0,function(){var NProgress$1={};NProgress$1.version=`0.2.0`;var Settings=NProgress$1.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:`
`};NProgress$1.configure=function(options$1){var key$1,value$1;for(key$1 in options$1)value$1=options$1[key$1],value$1!==void 0&&options$1.hasOwnProperty(key$1)&&(Settings[key$1]=value$1);return this},NProgress$1.status=null,NProgress$1.set=function(n$2){var started=NProgress$1.isStarted();n$2=clamp$7(n$2,Settings.minimum,1),NProgress$1.status=n$2===1?null:n$2;var progress$1=NProgress$1.render(!started),bar=progress$1.querySelector(Settings.barSelector),speed=Settings.speed,ease=Settings.easing;return progress$1.offsetWidth,queue$1(function(next){Settings.positionUsing===``&&(Settings.positionUsing=NProgress$1.getPositioningCSS()),css(bar,barPositionCSS(n$2,speed,ease)),n$2===1?(css(progress$1,{transition:`none`,opacity:1}),progress$1.offsetWidth,setTimeout(function(){css(progress$1,{transition:`all `+speed+`ms linear`,opacity:0}),setTimeout(function(){NProgress$1.remove(),next()},speed)},speed)):setTimeout(next,speed)}),this},NProgress$1.isStarted=function(){return typeof NProgress$1.status==`number`},NProgress$1.start=function(){NProgress$1.status||NProgress$1.set(0);var work=function(){setTimeout(function(){NProgress$1.status&&(NProgress$1.trickle(),work())},Settings.trickleSpeed)};return Settings.trickle&&work(),this},NProgress$1.done=function(force){return!force&&!NProgress$1.status?this:NProgress$1.inc(.3+.5*Math.random()).set(1)},NProgress$1.inc=function(amount){var n$2=NProgress$1.status;return n$2?(typeof amount!=`number`&&(amount=(1-n$2)*clamp$7(Math.random()*n$2,.1,.95)),n$2=clamp$7(n$2+amount,0,.994),NProgress$1.set(n$2)):NProgress$1.start()},NProgress$1.trickle=function(){return NProgress$1.inc(Math.random()*Settings.trickleRate)},function(){var initial=0,current=0;NProgress$1.promise=function($promise){return!$promise||$promise.state()===`resolved`?this:(current===0&&NProgress$1.start(),initial++,current++,$promise.always(function(){current--,current===0?(initial=0,NProgress$1.done()):NProgress$1.set((initial-current)/initial)}),this)}}(),NProgress$1.render=function(fromStart){if(NProgress$1.isRendered())return document.getElementById(`nprogress`);addClass(document.documentElement,`nprogress-busy`);var progress$1=document.createElement(`div`);progress$1.id=`nprogress`,progress$1.innerHTML=Settings.template;var bar=progress$1.querySelector(Settings.barSelector),perc=fromStart?`-100`:toBarPerc(NProgress$1.status||0),parent=document.querySelector(Settings.parent),spinner;return css(bar,{transition:`all 0 linear`,transform:`translate3d(`+perc+`%,0,0)`}),Settings.showSpinner||(spinner=progress$1.querySelector(Settings.spinnerSelector),spinner&&removeElement(spinner)),parent!=document.body&&addClass(parent,`nprogress-custom-parent`),parent.appendChild(progress$1),progress$1},NProgress$1.remove=function(){removeClass(document.documentElement,`nprogress-busy`),removeClass(document.querySelector(Settings.parent),`nprogress-custom-parent`);var progress$1=document.getElementById(`nprogress`);progress$1&&removeElement(progress$1)},NProgress$1.isRendered=function(){return!!document.getElementById(`nprogress`)},NProgress$1.getPositioningCSS=function(){var bodyStyle=document.body.style,vendorPrefix=`WebkitTransform`in bodyStyle?`Webkit`:`MozTransform`in bodyStyle?`Moz`:`msTransform`in bodyStyle?`ms`:`OTransform`in bodyStyle?`O`:``;return vendorPrefix+`Perspective`in bodyStyle?`translate3d`:vendorPrefix+`Transform`in bodyStyle?`translate`:`margin`};function clamp$7(n$2,min$1,max$1){return n$2max$1?max$1:n$2}function toBarPerc(n$2){return(-1+n$2)*100}function barPositionCSS(n$2,speed,ease){var barCSS;return barCSS=Settings.positionUsing===`translate3d`?{transform:`translate3d(`+toBarPerc(n$2)+`%,0,0)`}:Settings.positionUsing===`translate`?{transform:`translate(`+toBarPerc(n$2)+`%,0)`}:{"margin-left":toBarPerc(n$2)+`%`},barCSS.transition=`all `+speed+`ms `+ease,barCSS}var queue$1=function(){var pending=[];function next(){var fn$5=pending.shift();fn$5&&fn$5(next)}return function(fn$5){pending.push(fn$5),pending.length==1&&next()}}(),css=function(){var cssPrefixes=[`Webkit`,`O`,`Moz`,`ms`],cssProps={};function camelCase(string$2){return string$2.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(match,letter){return letter.toUpperCase()})}function getVendorProp(name$2){var style=document.body.style;if(name$2 in style)return name$2;for(var i$1=cssPrefixes.length,capName=name$2.charAt(0).toUpperCase()+name$2.slice(1),vendorName;i$1--;)if(vendorName=cssPrefixes[i$1]+capName,vendorName in style)return vendorName;return name$2}function getStyleProp(name$2){return name$2=camelCase(name$2),cssProps[name$2]||(cssProps[name$2]=getVendorProp(name$2))}function applyCss(element$3,prop,value$1){prop=getStyleProp(prop),element$3.style[prop]=value$1}return function(element$3,properties){var args=arguments,prop,value$1;if(args.length==2)for(prop in properties)value$1=properties[prop],value$1!==void 0&&properties.hasOwnProperty(prop)&&applyCss(element$3,prop,value$1);else applyCss(element$3,args[1],args[2])}}();function hasClass(element$3,name$2){var list$2=typeof element$3==`string`?element$3:classList(element$3);return list$2.indexOf(` `+name$2+` `)>=0}function addClass(element$3,name$2){var oldList=classList(element$3),newList=oldList+name$2;hasClass(oldList,name$2)||(element$3.className=newList.substring(1))}function removeClass(element$3,name$2){var oldList=classList(element$3),newList;hasClass(element$3,name$2)&&(newList=oldList.replace(` `+name$2+` `,` `),element$3.className=newList.substring(1,newList.length-1))}function classList(element$3){return(` `+(element$3.className||``)+` `).replace(/\s+/gi,` `)}function removeElement(element$3){element$3&&element$3.parentNode&&element$3.parentNode.removeChild(element$3)}return NProgress$1})});const parents=new Set,coords=new WeakMap,siblings$1=new WeakMap,animations=new WeakMap,intersections=new WeakMap,intervals=new WeakMap,options=new WeakMap,debounces=new WeakMap,enabled=new WeakSet;let root$2,scrollX=0,scrollY=0;const TGT=`__aa_tgt`,DEL=`__aa_del`,NEW=`__aa_new`,handleMutations=mutations$1=>{let elements=getElements(mutations$1);elements&&elements.forEach(el=>animate$1(el))},handleResizes=entries=>{entries.forEach(entry=>{entry.target===root$2&&updateAllPos(),coords.has(entry.target)&&updatePos(entry.target)})};function observePosition(el){let oldObserver=intersections.get(el);oldObserver?.disconnect();let rect=coords.get(el),invocations=0,buffer$1=5;rect||(rect=getCoords(el),coords.set(el,rect));let{offsetWidth,offsetHeight}=root$2,rootMargins=[rect.top-buffer$1,offsetWidth-(rect.left+buffer$1+rect.width),offsetHeight-(rect.top+buffer$1+rect.height),rect.left-buffer$1],rootMargin=rootMargins.map(px$2=>`${-1*Math.floor(px$2)}px`).join(` `),observer=new IntersectionObserver(()=>{++invocations>1&&updatePos(el)},{root:root$2,threshold:1,rootMargin});observer.observe(el),intersections.set(el,observer)}function updatePos(el){clearTimeout(debounces.get(el));let optionsOrPlugin=getOptions(el),delay=isPlugin(optionsOrPlugin)?500:optionsOrPlugin.duration;debounces.set(el,setTimeout(async()=>{let currentAnimation=animations.get(el);try{await currentAnimation?.finished,coords.set(el,getCoords(el)),observePosition(el)}catch{}},delay))}function updateAllPos(){clearTimeout(debounces.get(root$2)),debounces.set(root$2,setTimeout(()=>{parents.forEach(parent=>forEach(parent,el=>lowPriority(()=>updatePos(el))))},100))}function poll(el){setTimeout(()=>{intervals.set(el,setInterval(()=>lowPriority(updatePos.bind(null,el)),2e3))},Math.round(2e3*Math.random()))}function lowPriority(callback){typeof requestIdleCallback==`function`?requestIdleCallback(()=>callback()):requestAnimationFrame(()=>callback())}let mutations,resize;const supportedBrowser=typeof window<`u`&&`ResizeObserver`in window;supportedBrowser&&(root$2=document.documentElement,mutations=new MutationObserver(handleMutations),resize=new ResizeObserver(handleResizes),window.addEventListener(`scroll`,()=>{scrollY=window.scrollY,scrollX=window.scrollX}),resize.observe(root$2));function getElements(mutations$1){let observedNodes=mutations$1.reduce((nodes,mutation)=>[...nodes,...Array.from(mutation.addedNodes),...Array.from(mutation.removedNodes)],[]),onlyCommentNodesObserved=observedNodes.every(node$1=>node$1.nodeName===`#comment`);return onlyCommentNodesObserved?!1:mutations$1.reduce((elements,mutation)=>{if(elements===!1)return!1;if(mutation.target instanceof Element){if(target(mutation.target),!elements.has(mutation.target)){elements.add(mutation.target);for(let i$1=0;i$1callback(parent,options.has(parent)));for(let i$1=0;i$1callback(child,options.has(child)))}}function getPluginTuple(pluginReturn){return Array.isArray(pluginReturn)?pluginReturn:[pluginReturn]}function isPlugin(config){return typeof config==`function`}function remain(el){let oldCoords=coords.get(el),newCoords=getCoords(el);if(!isEnabled(el))return coords.set(el,newCoords);let animation;if(!oldCoords)return;let pluginOrOptions=getOptions(el);if(typeof pluginOrOptions!=`function`){let deltaX=oldCoords.left-newCoords.left,deltaY=oldCoords.top-newCoords.top,[widthFrom,widthTo,heightFrom,heightTo]=getTransitionSizes(el,oldCoords,newCoords),start={transform:`translate(${deltaX}px, ${deltaY}px)`},end={transform:`translate(0, 0)`};widthFrom!==widthTo&&(start.width=`${widthFrom}px`,end.width=`${widthTo}px`),heightFrom!==heightTo&&(start.height=`${heightFrom}px`,end.height=`${heightTo}px`),animation=el.animate([start,end],{duration:pluginOrOptions.duration,easing:pluginOrOptions.easing})}else{let[keyframes$3]=getPluginTuple(pluginOrOptions(el,`remain`,oldCoords,newCoords));animation=new Animation(keyframes$3),animation.play()}animations.set(el,animation),coords.set(el,newCoords),animation.addEventListener(`finish`,updatePos.bind(null,el))}function add(el){NEW in el&&delete el[NEW];let newCoords=getCoords(el);coords.set(el,newCoords);let pluginOrOptions=getOptions(el);if(!isEnabled(el))return;let animation;if(typeof pluginOrOptions!=`function`)animation=el.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:pluginOrOptions.duration*1.5,easing:`ease-in`});else{let[keyframes$3]=getPluginTuple(pluginOrOptions(el,`add`,newCoords));animation=new Animation(keyframes$3),animation.play()}animations.set(el,animation),animation.addEventListener(`finish`,updatePos.bind(null,el))}function cleanUp(el,styles){var _a$2;el.remove(),coords.delete(el),siblings$1.delete(el),animations.delete(el),(_a$2=intersections.get(el))==null||_a$2.disconnect(),setTimeout(()=>{if(DEL in el&&delete el[DEL],Object.defineProperty(el,NEW,{value:!0,configurable:!0}),styles&&el instanceof HTMLElement)for(let style in styles)el.style[style]=``},0)}function remove(el){var _a$2;if(!siblings$1.has(el)||!coords.has(el))return;let[prev,next]=siblings$1.get(el);Object.defineProperty(el,DEL,{value:!0,configurable:!0});let finalX=window.scrollX,finalY=window.scrollY;if(next&&next.parentNode&&next.parentNode instanceof Element?next.parentNode.insertBefore(el,next):prev&&prev.parentNode?prev.parentNode.appendChild(el):(_a$2=getTarget(el))==null||_a$2.appendChild(el),!isEnabled(el))return cleanUp(el);let[top,left,width,height]=deletePosition(el),optionsOrPlugin=getOptions(el),oldCoords=coords.get(el);(finalX!==scrollX||finalY!==scrollY)&&adjustScroll(el,finalX,finalY,optionsOrPlugin);let animation,styleReset={position:`absolute`,top:`${top}px`,left:`${left}px`,width:`${width}px`,height:`${height}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!isPlugin(optionsOrPlugin))Object.assign(el.style,styleReset),animation=el.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:optionsOrPlugin.duration,easing:`ease-out`});else{let[keyframes$3,options$1]=getPluginTuple(optionsOrPlugin(el,`remove`,oldCoords));options$1?.styleReset!==!1&&(styleReset=options$1?.styleReset||styleReset,Object.assign(el.style,styleReset)),animation=new Animation(keyframes$3),animation.play()}animations.set(el,animation),animation.addEventListener(`finish`,cleanUp.bind(null,el,styleReset))}function adjustScroll(el,finalX,finalY,optionsOrPlugin){let scrollDeltaX=scrollX-finalX,scrollDeltaY=scrollY-finalY,scrollBefore=document.documentElement.style.scrollBehavior,scrollBehavior=getComputedStyle(root$2).scrollBehavior;if(scrollBehavior===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+scrollDeltaX,window.scrollY+scrollDeltaY),!el.parentElement)return;let parent=el.parentElement,lastHeight=parent.clientHeight,lastWidth=parent.clientWidth,startScroll=performance.now();function smoothScroll(){requestAnimationFrame(()=>{if(!isPlugin(optionsOrPlugin)){let deltaY=lastHeight-parent.clientHeight,deltaX=lastWidth-parent.clientWidth;startScroll+optionsOrPlugin.duration>performance.now()?(window.scrollTo({left:window.scrollX-deltaX,top:window.scrollY-deltaY}),lastHeight=parent.clientHeight,lastWidth=parent.clientWidth,smoothScroll()):document.documentElement.style.scrollBehavior=scrollBefore}})}smoothScroll()}function deletePosition(el){let oldCoords=coords.get(el),[width,,height]=getTransitionSizes(el,oldCoords,getCoords(el)),offsetParent=el.parentElement;for(;offsetParent&&(getComputedStyle(offsetParent).position===`static`||offsetParent instanceof HTMLBodyElement);)offsetParent=offsetParent.parentElement;offsetParent||=document.body;let parentStyles=getComputedStyle(offsetParent),parentCoords=coords.get(offsetParent)||getCoords(offsetParent),top=Math.round(oldCoords.top-parentCoords.top)-raw$2(parentStyles.borderTopWidth),left=Math.round(oldCoords.left-parentCoords.left)-raw$2(parentStyles.borderLeftWidth);return[top,left,width,height]}function autoAnimate(el,config={}){if(mutations&&resize){let mediaQuery=window.matchMedia(`(prefers-reduced-motion: reduce)`),isDisabledDueToReduceMotion=mediaQuery.matches&&!isPlugin(config)&&!config.disrespectUserMotionPreference;isDisabledDueToReduceMotion||(enabled.add(el),getComputedStyle(el).position===`static`&&Object.assign(el.style,{position:`relative`}),forEach(el,updatePos,poll,element$3=>resize?.observe(element$3)),isPlugin(config)?options.set(el,config):options.set(el,{duration:250,easing:`ease-in-out`,...config}),mutations.observe(el,{childList:!0}),parents.add(el))}return Object.freeze({parent:el,enable:()=>{enabled.add(el)},disable:()=>{enabled.delete(el)},isEnabled:()=>enabled.has(el)})}const vAutoAnimate={mounted:(el,binding)=>{autoAnimate(el,binding.value||{})},getSSRProps:()=>({})},vAutoAnimate$1=vAutoAnimate,autoAnimatePlugin={install(app){app.directive(`auto-animate`,vAutoAnimate$1)}};function isPlainObject$5(value$1){if(typeof value$1!=`object`||!value$1)return!1;let prototype=Object.getPrototypeOf(value$1);return prototype!==null&&prototype!==Object.prototype&&Object.getPrototypeOf(prototype)!==null||Symbol.iterator in value$1?!1:Symbol.toStringTag in value$1?Object.prototype.toString.call(value$1)===`[object Module]`:!0}function _defu(baseObject,defaults,namespace=`.`,merger){if(!isPlainObject$5(defaults))return _defu(baseObject,{},namespace,merger);let object=Object.assign({},defaults);for(let key$1 in baseObject){if(key$1===`__proto__`||key$1===`constructor`)continue;let value$1=baseObject[key$1];if(value$1==null||merger&&merger(object,key$1,value$1,namespace))continue;Array.isArray(value$1)&&Array.isArray(object[key$1])?object[key$1]=[...value$1,...object[key$1]]:isPlainObject$5(value$1)&&isPlainObject$5(object[key$1])?object[key$1]=_defu(value$1,object[key$1],(namespace?`${namespace}.`:``)+key$1.toString(),merger):object[key$1]=value$1}return object}function createDefu(merger){return(...arguments_)=>arguments_.reduce((p$5,c$4)=>_defu(p$5,c$4,``,merger),{})}const defu=createDefu(),defuFn=createDefu((object,key$1,currentValue)=>{if(object[key$1]!==void 0&&typeof currentValue==`function`)return object[key$1]=currentValue(object[key$1]),!0}),defuArrayFn=createDefu((object,key$1,currentValue)=>{if(Array.isArray(object[key$1])&&typeof currentValue==`function`)return object[key$1]=currentValue(object[key$1]),!0});function tryOnScopeDispose(fn$5){return getCurrentScope()?(onScopeDispose(fn$5),!0):!1}function createEventHook(){let fns=new Set,off=fn$5=>{fns.delete(fn$5)},clear=()=>{fns.clear()},on$1=fn$5=>{fns.add(fn$5);let offFn=()=>off(fn$5);return tryOnScopeDispose(offFn),{off:offFn}},trigger$1=(...args)=>Promise.all(Array.from(fns).map(fn$5=>fn$5(...args)));return{on:on$1,off,trigger:trigger$1,clear}}const localProvidedStateMap=new WeakMap,injectLocal=(...args)=>{var _a$2;let key$1=args[0],instance=(_a$2=getCurrentInstance())?.proxy;if(instance==null&&!hasInjectionContext())throw Error(`injectLocal must be called in setup`);return instance&&localProvidedStateMap.has(instance)&&key$1 in localProvidedStateMap.get(instance)?localProvidedStateMap.get(instance)[key$1]:inject(...args)},isClient$1=typeof window<`u`&&typeof document<`u`,isWorker=typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,notNullish=val=>val!=null,toString$2=Object.prototype.toString,isObject=val=>toString$2.call(val)===`[object Object]`,noop$2=()=>{},hasOwn$2=(val,key$1)=>Object.prototype.hasOwnProperty.call(val,key$1);function toRef$1(...args){if(args.length!==1)return toRef(...args);let r$2=args[0];return typeof r$2==`function`?readonly(customRef(()=>({get:r$2,set:noop$2}))):ref(r$2)}function createFilterWrapper(filter$1,fn$5){function wrapper(...args){return new Promise((resolve$1,reject)=>{Promise.resolve(filter$1(()=>fn$5.apply(this,args),{fn:fn$5,thisArg:this,args})).then(resolve$1).catch(reject)})}return wrapper}const bypassFilter=invoke$1=>invoke$1();function debounceFilter(ms,options$1={}){let timer,maxTimer,lastRejector=noop$2,_clearTimeout=timer2=>{clearTimeout(timer2),lastRejector(),lastRejector=noop$2},lastInvoker,filter$1=invoke$1=>{let duration=toValue$1(ms),maxDuration$1=toValue$1(options$1.maxWait);return timer&&_clearTimeout(timer),duration<=0||maxDuration$1!==void 0&&maxDuration$1<=0?(maxTimer&&(_clearTimeout(maxTimer),maxTimer=void 0),Promise.resolve(invoke$1())):new Promise((resolve$1,reject)=>{lastRejector=options$1.rejectOnCancel?reject:resolve$1,lastInvoker=invoke$1,maxDuration$1&&!maxTimer&&(maxTimer=setTimeout(()=>{timer&&_clearTimeout(timer),maxTimer=void 0,resolve$1(lastInvoker())},maxDuration$1)),timer=setTimeout(()=>{maxTimer&&_clearTimeout(maxTimer),maxTimer=void 0,resolve$1(invoke$1())},duration)})};return filter$1}function throttleFilter(...args){let lastExec=0,timer,isLeading=!0,lastRejector=noop$2,lastValue,ms,trailing,leading,rejectOnCancel;!isRef(args[0])&&typeof args[0]==`object`?{delay:ms,trailing=!0,leading=!0,rejectOnCancel=!1}=args[0]:[ms,trailing=!0,leading=!0,rejectOnCancel=!1]=args;let clear=()=>{timer&&(clearTimeout(timer),timer=void 0,lastRejector(),lastRejector=noop$2)},filter$1=_invoke=>{let duration=toValue$1(ms),elapsed=Date.now()-lastExec,invoke$1=()=>lastValue=_invoke();return clear(),duration<=0?(lastExec=Date.now(),invoke$1()):(elapsed>duration&&(leading||!isLeading)?(lastExec=Date.now(),invoke$1()):trailing&&(lastValue=new Promise((resolve$1,reject)=>{lastRejector=rejectOnCancel?reject:resolve$1,timer=setTimeout(()=>{lastExec=Date.now(),isLeading=!0,resolve$1(invoke$1()),clear()},Math.max(0,duration-elapsed))})),!leading&&!timer&&(timer=setTimeout(()=>isLeading=!0,duration)),isLeading=!1,lastValue)};return filter$1}function pausableFilter(extendFilter=bypassFilter,options$1={}){let{initialState=`active`}=options$1,isActive=toRef$1(initialState===`active`);function pause(){isActive.value=!1}function resume(){isActive.value=!0}let eventFilter=(...args)=>{isActive.value&&extendFilter(...args)};return{isActive:readonly(isActive),pause,resume,eventFilter}}function promiseTimeout(ms,throwOnTimeout=!1,reason=`Timeout`){return new Promise((resolve$1,reject)=>{throwOnTimeout?setTimeout(()=>reject(reason),ms):setTimeout(resolve$1,ms)})}function createSingletonPromise(fn$5){let _promise;function wrapper(){return _promise||=fn$5(),_promise}return wrapper.reset=async()=>{let _prev=_promise;_promise=void 0,_prev&&await _prev},wrapper}function increaseWithUnit(target$1,delta){var _a$2;if(typeof target$1==`number`)return target$1+delta;let value$1=(_a$2=target$1.match(/^-?\d+\.?\d*/))?.[0]||``,unit=target$1.slice(value$1.length),result=Number.parseFloat(value$1)+delta;return Number.isNaN(result)?target$1:result+unit}function pxValue(px$2){return px$2.endsWith(`rem`)?Number.parseFloat(px$2)*16:Number.parseFloat(px$2)}function objectPick(obj,keys$3,omitUndefined=!1){return keys$3.reduce((n$2,k$4)=>(k$4 in obj&&(!omitUndefined||obj[k$4]!==void 0)&&(n$2[k$4]=obj[k$4]),n$2),{})}function toArray(value$1){return Array.isArray(value$1)?value$1:[value$1]}function cacheStringFunction(fn$5){let cache$1=Object.create(null);return str=>{let hit=cache$1[str];return hit||(cache$1[str]=fn$5(str))}}const hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(str=>str.replace(hyphenateRE,`-$1`).toLowerCase()),camelizeRE=/-(\w)/g,camelize$1=cacheStringFunction(str=>str.replace(camelizeRE,(_$1,c$4)=>c$4?c$4.toUpperCase():``));function getLifeCycleTarget(target$1){return target$1||getCurrentInstance()}function useDebounceFn(fn$5,ms=200,options$1={}){return createFilterWrapper(debounceFilter(ms,options$1),fn$5)}function refDebounced(value$1,ms=200,options$1={}){let debounced=ref(toValue$1(value$1)),updater=useDebounceFn(()=>{debounced.value=value$1.value},ms,options$1);return watch(value$1,()=>updater()),shallowReadonly(debounced)}function useThrottleFn(fn$5,ms=200,trailing=!1,leading=!0,rejectOnCancel=!1){return createFilterWrapper(throttleFilter(ms,trailing,leading,rejectOnCancel),fn$5)}function refThrottled(value$1,delay=200,trailing=!0,leading=!0){if(delay<=0)return value$1;let throttled=ref(toValue$1(value$1)),updater=useThrottleFn(()=>{throttled.value=value$1.value},delay,trailing,leading);return watch(value$1,()=>updater()),throttled}function watchWithFilter(source,cb$1,options$1={}){let{eventFilter=bypassFilter,...watchOptions}=options$1;return watch(source,createFilterWrapper(eventFilter,cb$1),watchOptions)}function watchPausable(source,cb$1,options$1={}){let{eventFilter:filter$1,initialState=`active`,...watchOptions}=options$1,{eventFilter,pause,resume,isActive}=pausableFilter(filter$1,{initialState}),stop$1=watchWithFilter(source,cb$1,{...watchOptions,eventFilter});return{stop:stop$1,pause,resume,isActive}}function toRefs$1(objectRef,options$1={}){if(!isRef(objectRef))return toRefs(objectRef);let result=Array.isArray(objectRef.value)?Array.from({length:objectRef.value.length}):{};for(let key$1 in objectRef.value)result[key$1]=customRef(()=>({get(){return objectRef.value[key$1]},set(v$1){var _a$2;let replaceRef=(_a$2=toValue$1(options$1.replaceRef))??!0;if(replaceRef)if(Array.isArray(objectRef.value)){let copy=[...objectRef.value];copy[key$1]=v$1,objectRef.value=copy}else{let newObject={...objectRef.value,[key$1]:v$1};Object.setPrototypeOf(newObject,Object.getPrototypeOf(objectRef.value)),objectRef.value=newObject}else objectRef.value[key$1]=v$1}}));return result}function tryOnMounted(fn$5,sync$1=!0,target$1){let instance=getLifeCycleTarget(target$1);instance?onMounted(fn$5,target$1):sync$1?fn$5():nextTick(fn$5)}function tryOnUnmounted(fn$5,target$1){let instance=getLifeCycleTarget(target$1);instance&&onUnmounted(fn$5,target$1)}function createUntil(r$2,isNot=!1){function toMatch(condition,{flush=`sync`,deep=!1,timeout,throwOnTimeout}={}){let stop$1=null,watcher=new Promise(resolve$1=>{stop$1=watch(r$2,v$1=>{condition(v$1)!==isNot&&(stop$1?stop$1():nextTick(()=>stop$1?.()),resolve$1(v$1))},{flush,deep,immediate:!0})}),promises=[watcher];return timeout!=null&&promises.push(promiseTimeout(timeout,throwOnTimeout).then(()=>toValue$1(r$2)).finally(()=>stop$1?.())),Promise.race(promises)}function toBe(value$1,options$1){if(!isRef(value$1))return toMatch(v$1=>v$1===value$1,options$1);let{flush=`sync`,deep=!1,timeout,throwOnTimeout}=options$1??{},stop$1=null,watcher=new Promise(resolve$1=>{stop$1=watch([r$2,value$1],([v1,v2])=>{isNot!==(v1===v2)&&(stop$1?stop$1():nextTick(()=>stop$1?.()),resolve$1(v1))},{flush,deep,immediate:!0})}),promises=[watcher];return timeout!=null&&promises.push(promiseTimeout(timeout,throwOnTimeout).then(()=>toValue$1(r$2)).finally(()=>(stop$1?.(),toValue$1(r$2)))),Promise.race(promises)}function toBeTruthy(options$1){return toMatch(v$1=>!!v$1,options$1)}function toBeNull(options$1){return toBe(null,options$1)}function toBeUndefined(options$1){return toBe(void 0,options$1)}function toBeNaN(options$1){return toMatch(Number.isNaN,options$1)}function toContains(value$1,options$1){return toMatch(v$1=>{let array=Array.from(v$1);return array.includes(value$1)||array.includes(toValue$1(value$1))},options$1)}function changed(options$1){return changedTimes(1,options$1)}function changedTimes(n$2=1,options$1){let count$1=-1;return toMatch(()=>(count$1+=1,count$1>=n$2),options$1)}if(Array.isArray(toValue$1(r$2))){let instance={toMatch,toContains,changed,changedTimes,get not(){return createUntil(r$2,!isNot)}};return instance}else{let instance={toMatch,toBe,toBeTruthy,toBeNull,toBeNaN,toBeUndefined,changed,changedTimes,get not(){return createUntil(r$2,!isNot)}};return instance}}function until(r$2){return createUntil(r$2)}function useTimeoutFn(cb$1,interval,options$1={}){let{immediate=!0,immediateCallback=!1}=options$1,isPending=shallowRef(!1),timer;function clear(){timer&&(clearTimeout(timer),timer=void 0)}function stop$1(){isPending.value=!1,clear()}function start(...args){immediateCallback&&cb$1(),clear(),isPending.value=!0,timer=setTimeout(()=>{isPending.value=!1,timer=void 0,cb$1(...args)},toValue$1(interval))}return immediate&&(isPending.value=!0,isClient$1&&start()),tryOnScopeDispose(stop$1),{isPending:shallowReadonly(isPending),start,stop:stop$1}}function watchDebounced(source,cb$1,options$1={}){let{debounce=0,maxWait=void 0,...watchOptions}=options$1;return watchWithFilter(source,cb$1,{...watchOptions,eventFilter:debounceFilter(debounce,{maxWait})})}function watchImmediate(source,cb$1,options$1){return watch(source,cb$1,{...options$1,immediate:!0})}function computedAsync(evaluationCallback,initialState,optionsOrRef){let options$1;options$1=isRef(optionsOrRef)?{evaluating:optionsOrRef}:optionsOrRef||{};let{lazy=!1,flush=`pre`,evaluating=void 0,shallow=!0,onError=noop$2}=options$1,started=shallowRef(!lazy),current=shallow?shallowRef(initialState):ref(initialState),counter=0;return watchEffect(async onInvalidate=>{if(!started.value)return;counter++;let counterAtBeginning=counter,hasFinished=!1;evaluating&&Promise.resolve().then(()=>{evaluating.value=!0});try{let result=await evaluationCallback(cancelCallback=>{onInvalidate(()=>{evaluating&&(evaluating.value=!1),hasFinished||cancelCallback()})});counterAtBeginning===counter&&(current.value=result)}catch(e$3){onError(e$3)}finally{evaluating&&counterAtBeginning===counter&&(evaluating.value=!1),hasFinished=!0}},{flush}),lazy?computed(()=>(started.value=!0,current.value)):current}const defaultWindow$1=isClient$1?window:void 0,defaultDocument=isClient$1?window.document:void 0,defaultNavigator=isClient$1?window.navigator:void 0,defaultLocation=isClient$1?window.location:void 0;function unrefElement(elRef){var _a$2;let plain=toValue$1(elRef);return(_a$2=plain?.$el)??plain}function useEventListener(...args){let cleanups=[],cleanup=()=>{cleanups.forEach(fn$5=>fn$5()),cleanups.length=0},register=(el,event,listener,options$1)=>(el.addEventListener(event,listener,options$1),()=>el.removeEventListener(event,listener,options$1)),firstParamTargets=computed(()=>{let test$1=toArray(toValue$1(args[0])).filter(e$3=>e$3!=null);return test$1.every(e$3=>typeof e$3!=`string`)?test$1:void 0}),stopWatch=watchImmediate(()=>{var _a$2,_b;return[(_b=(_a$2=firstParamTargets.value)?.map(e$3=>unrefElement(e$3)))??[defaultWindow$1].filter(e$3=>e$3!=null),toArray(toValue$1(firstParamTargets.value?args[1]:args[0])),toArray(unref(firstParamTargets.value?args[2]:args[1])),toValue$1(firstParamTargets.value?args[3]:args[2])]},([raw_targets,raw_events,raw_listeners,raw_options])=>{if(cleanup(),!raw_targets?.length||!raw_events?.length||!raw_listeners?.length)return;let optionsClone=isObject(raw_options)?{...raw_options}:raw_options;cleanups.push(...raw_targets.flatMap(el=>raw_events.flatMap(event=>raw_listeners.map(listener=>register(el,event,listener,optionsClone)))))},{flush:`post`}),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose(cleanup),stop$1}function useMounted$1(){let isMounted=shallowRef(!1),instance=getCurrentInstance();return instance&&onMounted(()=>{isMounted.value=!0},instance),isMounted}function useSupported(callback){let isMounted=useMounted$1();return computed(()=>(isMounted.value,!!callback()))}function useMutationObserver(target$1,callback,options$1={}){let{window:window$1=defaultWindow$1,...mutationOptions}=options$1,observer,isSupported=useSupported(()=>window$1&&`MutationObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let value$1=toValue$1(target$1),items=toArray(value$1).map(unrefElement).filter(notNullish);return new Set(items)}),stopWatch=watch(()=>targets.value,targets2=>{cleanup(),isSupported.value&&targets2.size&&(observer=new MutationObserver(callback),targets2.forEach(el=>observer.observe(el,mutationOptions)))},{immediate:!0,flush:`post`}),takeRecords=()=>observer?.takeRecords(),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose(stop$1),{isSupported,stop:stop$1,takeRecords}}const ssrWidthSymbol=Symbol(`vueuse-ssr-width`);function useSSRWidth(){let ssrWidth=hasInjectionContext()?injectLocal(ssrWidthSymbol,null):null;return typeof ssrWidth==`number`?ssrWidth:void 0}function useMediaQuery(query,options$1={}){let{window:window$1=defaultWindow$1,ssrWidth=useSSRWidth()}=options$1,isSupported=useSupported(()=>window$1&&`matchMedia`in window$1&&typeof window$1.matchMedia==`function`),ssrSupport=shallowRef(typeof ssrWidth==`number`),mediaQuery=shallowRef(),matches$1=shallowRef(!1),handler=event=>{matches$1.value=event.matches};return watchEffect(()=>{if(ssrSupport.value){ssrSupport.value=!isSupported.value;let queryStrings=toValue$1(query).split(`,`);matches$1.value=queryStrings.some(queryString=>{let not=queryString.includes(`not all`),minWidth=queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),maxWidth=queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),res=!!(minWidth||maxWidth);return minWidth&&res&&(res=ssrWidth>=pxValue(minWidth[1])),maxWidth&&res&&(res=ssrWidth<=pxValue(maxWidth[1])),not?!res:res});return}isSupported.value&&(mediaQuery.value=window$1.matchMedia(toValue$1(query)),matches$1.value=mediaQuery.value.matches)}),useEventListener(mediaQuery,`change`,handler,{passive:!0}),computed(()=>matches$1.value)}const breakpointsTailwind={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function useBreakpoints(breakpoints,options$1={}){function getValue$2(k$4,delta){let v$1=toValue$1(breakpoints[toValue$1(k$4)]);return delta!=null&&(v$1=increaseWithUnit(v$1,delta)),typeof v$1==`number`&&(v$1=`${v$1}px`),v$1}let{window:window$1=defaultWindow$1,strategy=`min-width`,ssrWidth=useSSRWidth()}=options$1,ssrSupport=typeof ssrWidth==`number`,mounted=ssrSupport?shallowRef(!1):{value:!0};ssrSupport&&tryOnMounted(()=>mounted.value=!!window$1);function match(query,size$1){return!mounted.value&&ssrSupport?query===`min`?ssrWidth>=pxValue(size$1):ssrWidth<=pxValue(size$1):window$1?window$1.matchMedia(`(${query}-width: ${size$1})`).matches:!1}let greaterOrEqual=k$4=>useMediaQuery(()=>`(min-width: ${getValue$2(k$4)})`,options$1),smallerOrEqual=k$4=>useMediaQuery(()=>`(max-width: ${getValue$2(k$4)})`,options$1),shortcutMethods=Object.keys(breakpoints).reduce((shortcuts,k$4)=>(Object.defineProperty(shortcuts,k$4,{get:()=>strategy===`min-width`?greaterOrEqual(k$4):smallerOrEqual(k$4),enumerable:!0,configurable:!0}),shortcuts),{});function current(){let points=Object.keys(breakpoints).map(k$4=>[k$4,shortcutMethods[k$4],pxValue(getValue$2(k$4))]).sort((a$2,b$3)=>a$2[2]-b$3[2]);return computed(()=>points.filter(([,v$1])=>v$1.value).map(([k$4])=>k$4))}return Object.assign(shortcutMethods,{greaterOrEqual,smallerOrEqual,greater(k$4){return useMediaQuery(()=>`(min-width: ${getValue$2(k$4,.1)})`,options$1)},smaller(k$4){return useMediaQuery(()=>`(max-width: ${getValue$2(k$4,-.1)})`,options$1)},between(a$2,b$3){return useMediaQuery(()=>`(min-width: ${getValue$2(a$2)}) and (max-width: ${getValue$2(b$3,-.1)})`,options$1)},isGreater(k$4){return match(`min`,getValue$2(k$4,.1))},isGreaterOrEqual(k$4){return match(`min`,getValue$2(k$4))},isSmaller(k$4){return match(`max`,getValue$2(k$4,-.1))},isSmallerOrEqual(k$4){return match(`max`,getValue$2(k$4))},isInBetween(a$2,b$3){return match(`min`,getValue$2(a$2))&&match(`max`,getValue$2(b$3,-.1))},current,active(){let bps=current();return computed(()=>bps.value.length===0?``:bps.value.at(strategy===`min-width`?-1:0))}})}function usePermission(permissionDesc,options$1={}){let{controls=!1,navigator:navigator$1=defaultNavigator}=options$1,isSupported=useSupported(()=>navigator$1&&`permissions`in navigator$1),permissionStatus=shallowRef(),desc=typeof permissionDesc==`string`?{name:permissionDesc}:permissionDesc,state=shallowRef(),update=()=>{var _a$2,_b;state.value=(_b=(_a$2=permissionStatus.value)?.state)??`prompt`};useEventListener(permissionStatus,`change`,update,{passive:!0});let query=createSingletonPromise(async()=>{if(isSupported.value){if(!permissionStatus.value)try{permissionStatus.value=await navigator$1.permissions.query(desc)}catch{permissionStatus.value=void 0}finally{update()}if(controls)return toRaw(permissionStatus.value)}});return query(),controls?{state,isSupported,query}:state}function useClipboard(options$1={}){let{navigator:navigator$1=defaultNavigator,read=!1,source,copiedDuring=1500,legacy=!1}=options$1,isClipboardApiSupported=useSupported(()=>navigator$1&&`clipboard`in navigator$1),permissionRead=usePermission(`clipboard-read`),permissionWrite=usePermission(`clipboard-write`),isSupported=computed(()=>isClipboardApiSupported.value||legacy),text$5=shallowRef(``),copied=shallowRef(!1),timeout=useTimeoutFn(()=>copied.value=!1,copiedDuring,{immediate:!1});async function updateText(){let useLegacy=!(isClipboardApiSupported.value&&isAllowed(permissionRead.value));if(!useLegacy)try{text$5.value=await navigator$1.clipboard.readText()}catch{useLegacy=!0}useLegacy&&(text$5.value=legacyRead())}isSupported.value&&read&&useEventListener([`copy`,`cut`],updateText,{passive:!0});async function copy(value$1=toValue$1(source)){if(isSupported.value&&value$1!=null){let useLegacy=!(isClipboardApiSupported.value&&isAllowed(permissionWrite.value));if(!useLegacy)try{await navigator$1.clipboard.writeText(value$1)}catch{useLegacy=!0}useLegacy&&legacyCopy(value$1),text$5.value=value$1,copied.value=!0,timeout.start()}}function legacyCopy(value$1){let ta=document.createElement(`textarea`);ta.value=value$1??``,ta.style.position=`absolute`,ta.style.opacity=`0`,document.body.appendChild(ta),ta.select(),document.execCommand(`copy`),ta.remove()}function legacyRead(){var _a$2,_b,_c;return(_c=(_b=(_a$2=document==null?void 0:document.getSelection)?.call(document))?.toString())??``}function isAllowed(status){return status===`granted`||status===`prompt`}return{isSupported,text:text$5,copied,copy}}const _global$1=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},globalKey=`__vueuse_ssr_handlers__`,handlers$2=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(key$1,fallback){return handlers$2[key$1]||fallback}function usePreferredDark(options$1){return useMediaQuery(`(prefers-color-scheme: dark)`,options$1)}function guessSerializerType(rawInit){return rawInit==null?`any`:rawInit instanceof Set?`set`:rawInit instanceof Map?`map`:rawInit instanceof Date?`date`:typeof rawInit==`boolean`?`boolean`:typeof rawInit==`string`?`string`:typeof rawInit==`object`?`object`:Number.isNaN(rawInit)?`any`:`number`}const StorageSerializers={boolean:{read:v$1=>v$1===`true`,write:v$1=>String(v$1)},object:{read:v$1=>JSON.parse(v$1),write:v$1=>JSON.stringify(v$1)},number:{read:v$1=>Number.parseFloat(v$1),write:v$1=>String(v$1)},any:{read:v$1=>v$1,write:v$1=>String(v$1)},string:{read:v$1=>v$1,write:v$1=>String(v$1)},map:{read:v$1=>new Map(JSON.parse(v$1)),write:v$1=>JSON.stringify(Array.from(v$1.entries()))},set:{read:v$1=>new Set(JSON.parse(v$1)),write:v$1=>JSON.stringify(Array.from(v$1))},date:{read:v$1=>new Date(v$1),write:v$1=>v$1.toISOString()}},customStorageEventName=`vueuse-storage`;function useStorage(key$1,defaults,storage,options$1={}){var _a$2;let{flush=`pre`,deep=!0,listenToStorageChanges=!0,writeDefaults=!0,mergeDefaults:mergeDefaults$1=!1,shallow,window:window$1=defaultWindow$1,eventFilter,onError=e$3=>{console.error(e$3)},initOnMounted}=options$1,data$10=(shallow?shallowRef:ref)(typeof defaults==`function`?defaults():defaults),keyComputed=computed(()=>toValue$1(key$1));if(!storage)try{storage=getSSRHandler(`getDefaultStorage`,()=>{var _a2;return(_a2=defaultWindow$1)?.localStorage})()}catch(e$3){onError(e$3)}if(!storage)return data$10;let rawInit=toValue$1(defaults),type=guessSerializerType(rawInit),serializer$1=(_a$2=options$1.serializer)??StorageSerializers[type],{pause:pauseWatch,resume:resumeWatch}=watchPausable(data$10,()=>write(data$10.value),{flush,deep,eventFilter});watch(keyComputed,()=>update(),{flush});let firstMounted=!1,onStorageEvent=ev=>{initOnMounted&&!firstMounted||update(ev)},onStorageCustomEvent=ev=>{initOnMounted&&!firstMounted||updateFromCustomEvent(ev)};window$1&&listenToStorageChanges&&(storage instanceof Storage?useEventListener(window$1,`storage`,onStorageEvent,{passive:!0}):useEventListener(window$1,customStorageEventName,onStorageCustomEvent)),initOnMounted?tryOnMounted(()=>{firstMounted=!0,update()}):update();function dispatchWriteEvent(oldValue,newValue){if(window$1){let payload={key:keyComputed.value,oldValue,newValue,storageArea:storage};window$1.dispatchEvent(storage instanceof Storage?new StorageEvent(`storage`,payload):new CustomEvent(customStorageEventName,{detail:payload}))}}function write(v$1){try{let oldValue=storage.getItem(keyComputed.value);if(v$1==null)dispatchWriteEvent(oldValue,null),storage.removeItem(keyComputed.value);else{let serialized=serializer$1.write(v$1);oldValue!==serialized&&(storage.setItem(keyComputed.value,serialized),dispatchWriteEvent(oldValue,serialized))}}catch(e$3){onError(e$3)}}function read(event){let rawValue=event?event.newValue:storage.getItem(keyComputed.value);if(rawValue==null)return writeDefaults&&rawInit!=null&&storage.setItem(keyComputed.value,serializer$1.write(rawInit)),rawInit;if(!event&&mergeDefaults$1){let value$1=serializer$1.read(rawValue);return typeof mergeDefaults$1==`function`?mergeDefaults$1(value$1,rawInit):type===`object`&&!Array.isArray(value$1)?{...rawInit,...value$1}:value$1}else if(typeof rawValue!=`string`)return rawValue;else return serializer$1.read(rawValue)}function update(event){if(!(event&&event.storageArea!==storage)){if(event&&event.key==null){data$10.value=rawInit;return}if(!(event&&event.key!==keyComputed.value)){pauseWatch();try{event?.newValue!==serializer$1.write(data$10.value)&&(data$10.value=read(event))}catch(e$3){onError(e$3)}finally{event?nextTick(resumeWatch):resumeWatch()}}}}function updateFromCustomEvent(event){update(event.detail)}return data$10}const CSS_DISABLE_TRANS=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function useColorMode(options$1={}){let{selector=`html`,attribute=`class`,initialValue=`auto`,window:window$1=defaultWindow$1,storage,storageKey=`vueuse-color-scheme`,listenToStorageChanges=!0,storageRef,emitAuto,disableTransition=!0}=options$1,modes$1={auto:``,light:`light`,dark:`dark`,...options$1.modes||{}},preferredDark=usePreferredDark({window:window$1}),system=computed(()=>preferredDark.value?`dark`:`light`),store=storageRef||(storageKey==null?toRef$1(initialValue):useStorage(storageKey,initialValue,storage,{window:window$1,listenToStorageChanges})),state=computed(()=>store.value===`auto`?system.value:store.value),updateHTMLAttrs=getSSRHandler(`updateHTMLAttrs`,(selector2,attribute2,value$1)=>{let el=typeof selector2==`string`?window$1?.document.querySelector(selector2):unrefElement(selector2);if(!el)return;let classesToAdd=new Set,classesToRemove=new Set,attributeToChange=null;if(attribute2===`class`){let current=value$1.split(/\s/g);Object.values(modes$1).flatMap(i$1=>(i$1||``).split(/\s/g)).filter(Boolean).forEach(v$1=>{current.includes(v$1)?classesToAdd.add(v$1):classesToRemove.add(v$1)})}else attributeToChange={key:attribute2,value:value$1};if(classesToAdd.size===0&&classesToRemove.size===0&&attributeToChange===null)return;let style;disableTransition&&(style=window$1.document.createElement(`style`),style.appendChild(document.createTextNode(CSS_DISABLE_TRANS)),window$1.document.head.appendChild(style));for(let c$4 of classesToAdd)el.classList.add(c$4);for(let c$4 of classesToRemove)el.classList.remove(c$4);attributeToChange&&el.setAttribute(attributeToChange.key,attributeToChange.value),disableTransition&&(window$1.getComputedStyle(style).opacity,document.head.removeChild(style))});function defaultOnChanged(mode){var _a$2;updateHTMLAttrs(selector,attribute,(_a$2=modes$1[mode])??mode)}function onChanged(mode){options$1.onChanged?options$1.onChanged(mode,defaultOnChanged):defaultOnChanged(mode)}watch(state,onChanged,{flush:`post`,immediate:!0}),tryOnMounted(()=>onChanged(state.value));let auto=computed({get(){return emitAuto?store.value:state.value},set(v$1){store.value=v$1}});return Object.assign(auto,{store,system,state})}function useCssVar(prop,target$1,options$1={}){let{window:window$1=defaultWindow$1,initialValue,observe=!1}=options$1,variable=shallowRef(initialValue),elRef=computed(()=>{var _a$2;return unrefElement(target$1)||(_a$2=window$1?.document)?.documentElement});function updateCssVar(){var _a$2;let key$1=toValue$1(prop),el=toValue$1(elRef);if(el&&window$1&&key$1){let value$1=(_a$2=window$1.getComputedStyle(el).getPropertyValue(key$1))?.trim();variable.value=value$1||variable.value||initialValue}}return observe&&useMutationObserver(elRef,updateCssVar,{attributeFilter:[`style`,`class`],window:window$1}),watch([elRef,()=>toValue$1(prop)],(_$1,old)=>{old[0]&&old[1]&&old[0].style.removeProperty(old[1]),updateCssVar()},{immediate:!0}),watch([variable,elRef],([val,el])=>{let raw_prop=toValue$1(prop);el?.style&&raw_prop&&(val==null?el.style.removeProperty(raw_prop):el.style.setProperty(raw_prop,val))},{immediate:!0}),variable}function useDark(options$1={}){let{valueDark=`dark`,valueLight=``}=options$1,mode=useColorMode({...options$1,onChanged:(mode2,defaultHandler)=>{var _a$2;options$1.onChanged?(_a$2=options$1.onChanged)==null||_a$2.call(options$1,mode2===`dark`,defaultHandler,mode2):defaultHandler(mode2)},modes:{dark:valueDark,light:valueLight}}),system=computed(()=>mode.system.value),isDark=computed({get(){return mode.value===`dark`},set(v$1){let modeVal=v$1?`dark`:`light`;system.value===modeVal?mode.value=`auto`:mode.value=modeVal}});return isDark}function useDevicesList(options$1={}){let{navigator:navigator$1=defaultNavigator,requestPermissions=!1,constraints={audio:!0,video:!0},onUpdated:onUpdated$1}=options$1,devices=ref([]),videoInputs=computed(()=>devices.value.filter(i$1=>i$1.kind===`videoinput`)),audioInputs=computed(()=>devices.value.filter(i$1=>i$1.kind===`audioinput`)),audioOutputs=computed(()=>devices.value.filter(i$1=>i$1.kind===`audiooutput`)),isSupported=useSupported(()=>navigator$1&&navigator$1.mediaDevices&&navigator$1.mediaDevices.enumerateDevices),permissionGranted=shallowRef(!1),stream;async function update(){isSupported.value&&(devices.value=await navigator$1.mediaDevices.enumerateDevices(),onUpdated$1?.(devices.value),stream&&(stream.getTracks().forEach(t=>t.stop()),stream=null))}async function ensurePermissions(){let deviceName=constraints.video?`camera`:`microphone`;if(!isSupported.value)return!1;if(permissionGranted.value)return!0;let{state,query}=usePermission(deviceName,{controls:!0});if(await query(),state.value!==`granted`){let granted=!0;try{let allDevices=await navigator$1.mediaDevices.enumerateDevices(),hasCamera=allDevices.some(device=>device.kind===`videoinput`),hasMicrophone=allDevices.some(device=>device.kind===`audioinput`||device.kind===`audiooutput`);constraints.video=hasCamera?constraints.video:!1,constraints.audio=hasMicrophone?constraints.audio:!1,stream=await navigator$1.mediaDevices.getUserMedia(constraints)}catch{stream=null,granted=!1}update(),permissionGranted.value=granted}else permissionGranted.value=!0;return permissionGranted.value}return isSupported.value&&(requestPermissions&&ensurePermissions(),useEventListener(navigator$1.mediaDevices,`devicechange`,update,{passive:!0}),update()),{devices,ensurePermissions,permissionGranted,videoInputs,audioInputs,audioOutputs,isSupported}}function useResizeObserver(target$1,callback,options$1={}){let{window:window$1=defaultWindow$1,...observerOptions}=options$1,observer,isSupported=useSupported(()=>window$1&&`ResizeObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let _targets=toValue$1(target$1);return Array.isArray(_targets)?_targets.map(el=>unrefElement(el)):[unrefElement(_targets)]}),stopWatch=watch(targets,els=>{if(cleanup(),isSupported.value&&window$1){observer=new ResizeObserver(callback);for(let _el of els)_el&&observer.observe(_el,observerOptions)}},{immediate:!0,flush:`post`}),stop$1=()=>{cleanup(),stopWatch()};return tryOnScopeDispose(stop$1),{isSupported,stop:stop$1}}function useElementBounding(target$1,options$1={}){let{reset=!0,windowResize=!0,windowScroll=!0,immediate=!0,updateTiming=`sync`}=options$1,height=shallowRef(0),bottom=shallowRef(0),left=shallowRef(0),right=shallowRef(0),top=shallowRef(0),width=shallowRef(0),x$3=shallowRef(0),y$2=shallowRef(0);function recalculate(){let el=unrefElement(target$1);if(!el){reset&&(height.value=0,bottom.value=0,left.value=0,right.value=0,top.value=0,width.value=0,x$3.value=0,y$2.value=0);return}let rect=el.getBoundingClientRect();height.value=rect.height,bottom.value=rect.bottom,left.value=rect.left,right.value=rect.right,top.value=rect.top,width.value=rect.width,x$3.value=rect.x,y$2.value=rect.y}function update(){updateTiming===`sync`?recalculate():updateTiming===`next-frame`&&requestAnimationFrame(()=>recalculate())}return useResizeObserver(target$1,update),watch(()=>unrefElement(target$1),ele=>!ele&&update()),useMutationObserver(target$1,update,{attributeFilter:[`style`,`class`]}),windowScroll&&useEventListener(`scroll`,update,{capture:!0,passive:!0}),windowResize&&useEventListener(`resize`,update,{passive:!0}),tryOnMounted(()=>{immediate&&update()}),{height,bottom,left,right,top,width,x:x$3,y:y$2,update}}function useIntersectionObserver(target$1,callback,options$1={}){let{root:root$3,rootMargin=`0px`,threshold=0,window:window$1=defaultWindow$1,immediate=!0}=options$1,isSupported=useSupported(()=>window$1&&`IntersectionObserver`in window$1),targets=computed(()=>{let _target$1=toValue$1(target$1);return toArray(_target$1).map(unrefElement).filter(notNullish)}),cleanup=noop$2,isActive=shallowRef(immediate),stopWatch=isSupported.value?watch(()=>[targets.value,unrefElement(root$3),isActive.value],([targets2,root2])=>{if(cleanup(),!isActive.value||!targets2.length)return;let observer=new IntersectionObserver(callback,{root:unrefElement(root2),rootMargin,threshold});targets2.forEach(el=>el&&observer.observe(el)),cleanup=()=>{observer.disconnect(),cleanup=noop$2}},{immediate,flush:`post`}):noop$2,stop$1=()=>{cleanup(),stopWatch(),isActive.value=!1};return tryOnScopeDispose(stop$1),{isSupported,isActive,pause(){cleanup(),isActive.value=!1},resume(){isActive.value=!0},stop:stop$1}}const DEFAULT_OPTIONS={multiple:!0,accept:`*`,reset:!1,directory:!1};function prepareInitialFiles(files){if(!files)return null;if(files instanceof FileList)return files;let dt$3=new DataTransfer;for(let file of files)dt$3.items.add(file);return dt$3.files}function useFileDialog(options$1={}){let{document:document$3=defaultDocument}=options$1,files=ref(prepareInitialFiles(options$1.initialFiles)),{on:onChange,trigger:changeTrigger}=createEventHook(),{on:onCancel,trigger:cancelTrigger}=createEventHook(),input;document$3&&(input=unrefElement(options$1.input)||document$3.createElement(`input`),input.type=`file`,input.onchange=event=>{let result=event.target;files.value=result.files,changeTrigger(files.value)},input.oncancel=()=>{cancelTrigger()});let reset=()=>{files.value=null,input&&input.value&&(input.value=``,changeTrigger(null))},open$1=localOptions=>{if(!input)return;let _options={...DEFAULT_OPTIONS,...options$1,...localOptions};input.multiple=_options.multiple,input.accept=_options.accept,input.webkitdirectory=_options.directory,hasOwn$2(_options,`capture`)&&(input.capture=_options.capture),_options.reset&&reset(),input.click()};return{files:readonly(files),open:open$1,reset,onCancel,onChange}}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(element$3,options$1={}){let{throttle=0,idle=200,onStop=noop$2,onScroll=noop$2,offset:offset$1={left:0,right:0,top:0,bottom:0},observe:_observe={mutation:!1},eventListenerOptions={capture:!1,passive:!0},behavior=`auto`,window:window$1=defaultWindow$1,onError=e$3=>{console.error(e$3)}}=options$1,observe=typeof _observe==`boolean`?{mutation:_observe}:_observe,internalX=shallowRef(0),internalY=shallowRef(0),x$3=computed({get(){return internalX.value},set(x2){scrollTo(x2,void 0)}}),y$2=computed({get(){return internalY.value},set(y2){scrollTo(void 0,y2)}});function scrollTo(_x$1,_y$1){var _a$2,_b,_c,_d;if(!window$1)return;let _element=toValue$1(element$3);if(!_element)return;(_c=_element instanceof Document?window$1.document.body:_element)==null||_c.scrollTo({top:(_a$2=toValue$1(_y$1))??y$2.value,left:(_b=toValue$1(_x$1))??x$3.value,behavior:toValue$1(behavior)});let scrollContainer=(_d=_element?.document)?.documentElement||_element?.documentElement||_element;x$3!=null&&(internalX.value=scrollContainer.scrollLeft),y$2!=null&&(internalY.value=scrollContainer.scrollTop)}let isScrolling=shallowRef(!1),arrivedState=reactive({left:!0,right:!1,top:!0,bottom:!1}),directions=reactive({left:!1,right:!1,top:!1,bottom:!1}),onScrollEnd=e$3=>{isScrolling.value&&(isScrolling.value=!1,directions.left=!1,directions.right=!1,directions.top=!1,directions.bottom=!1,onStop(e$3))},onScrollEndDebounced=useDebounceFn(onScrollEnd,throttle+idle),setArrivedState=target$1=>{var _a$2;if(!window$1)return;let el=(_a$2=target$1?.document)?.documentElement||target$1?.documentElement||unrefElement(target$1),{display,flexDirection,direction}=getComputedStyle(el),directionMultipler=direction===`rtl`?-1:1,scrollLeft=el.scrollLeft;directions.left=scrollLeftinternalX.value;let left=Math.abs(scrollLeft*directionMultipler)<=(offset$1.left||0),right=Math.abs(scrollLeft*directionMultipler)+el.clientWidth>=el.scrollWidth-(offset$1.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS;display===`flex`&&flexDirection===`row-reverse`?(arrivedState.left=right,arrivedState.right=left):(arrivedState.left=left,arrivedState.right=right),internalX.value=scrollLeft;let scrollTop=el.scrollTop;target$1===window$1.document&&!scrollTop&&(scrollTop=window$1.document.body.scrollTop),directions.top=scrollTopinternalY.value;let top=Math.abs(scrollTop)<=(offset$1.top||0),bottom=Math.abs(scrollTop)+el.clientHeight>=el.scrollHeight-(offset$1.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS;display===`flex`&&flexDirection===`column-reverse`?(arrivedState.top=bottom,arrivedState.bottom=top):(arrivedState.top=top,arrivedState.bottom=bottom),internalY.value=scrollTop},onScrollHandler=e$3=>{var _a$2;if(!window$1)return;let eventTarget=(_a$2=e$3.target.documentElement)??e$3.target;setArrivedState(eventTarget),isScrolling.value=!0,onScrollEndDebounced(e$3),onScroll(e$3)};return useEventListener(element$3,`scroll`,throttle?useThrottleFn(onScrollHandler,throttle,!0,!1):onScrollHandler,eventListenerOptions),tryOnMounted(()=>{try{let _element=toValue$1(element$3);if(!_element)return;setArrivedState(_element)}catch(e$3){onError(e$3)}}),observe?.mutation&&element$3!=null&&element$3!==window$1&&element$3!==document&&useMutationObserver(element$3,()=>{let _element=toValue$1(element$3);_element&&setArrivedState(_element)},{attributes:!0,childList:!0,subtree:!0}),useEventListener(element$3,`scrollend`,onScrollEnd,eventListenerOptions),{x:x$3,y:y$2,isScrolling,arrivedState,directions,measure(){let _element=toValue$1(element$3);window$1&&_element&&setArrivedState(_element)}}}function useLocalStorage(key$1,initialValue,options$1={}){let{window:window$1=defaultWindow$1}=options$1;return useStorage(key$1,initialValue,window$1?.localStorage,options$1)}const UseMouseBuiltinExtractors={page:event=>[event.pageX,event.pageY],client:event=>[event.clientX,event.clientY],screen:event=>[event.screenX,event.screenY],movement:event=>event instanceof MouseEvent?[event.movementX,event.movementY]:null};function useMouse(options$1={}){let{type=`page`,touch=!0,resetOnTouchEnds=!1,initialValue={x:0,y:0},window:window$1=defaultWindow$1,target:target$1=window$1,scroll=!0,eventFilter}=options$1,_prevMouseEvent=null,_prevScrollX=0,_prevScrollY=0,x$3=shallowRef(initialValue.x),y$2=shallowRef(initialValue.y),sourceType=shallowRef(null),extractor=typeof type==`function`?type:UseMouseBuiltinExtractors[type],mouseHandler=event=>{let result=extractor(event);_prevMouseEvent=event,result&&([x$3.value,y$2.value]=result,sourceType.value=`mouse`),window$1&&(_prevScrollX=window$1.scrollX,_prevScrollY=window$1.scrollY)},touchHandler=event=>{if(event.touches.length>0){let result=extractor(event.touches[0]);result&&([x$3.value,y$2.value]=result,sourceType.value=`touch`)}},scrollHandler=()=>{if(!_prevMouseEvent||!window$1)return;let pos=extractor(_prevMouseEvent);_prevMouseEvent instanceof MouseEvent&&pos&&(x$3.value=pos[0]+window$1.scrollX-_prevScrollX,y$2.value=pos[1]+window$1.scrollY-_prevScrollY)},reset=()=>{x$3.value=initialValue.x,y$2.value=initialValue.y},mouseHandlerWrapper=eventFilter?event=>eventFilter(()=>mouseHandler(event),{}):event=>mouseHandler(event),touchHandlerWrapper=eventFilter?event=>eventFilter(()=>touchHandler(event),{}):event=>touchHandler(event),scrollHandlerWrapper=eventFilter?()=>eventFilter(()=>scrollHandler(),{}):()=>scrollHandler();if(target$1){let listenerOptions={passive:!0};useEventListener(target$1,[`mousemove`,`dragover`],mouseHandlerWrapper,listenerOptions),touch&&type!==`movement`&&(useEventListener(target$1,[`touchstart`,`touchmove`],touchHandlerWrapper,listenerOptions),resetOnTouchEnds&&useEventListener(target$1,`touchend`,reset,listenerOptions)),scroll&&type===`page`&&useEventListener(window$1,`scroll`,scrollHandlerWrapper,listenerOptions)}return{x:x$3,y:y$2,sourceType}}function useObjectUrl(object){let url=shallowRef(),release=()=>{url.value&&URL.revokeObjectURL(url.value),url.value=void 0};return watch(()=>toValue$1(object),newObject=>{release(),newObject&&(url.value=URL.createObjectURL(newObject))},{immediate:!0}),tryOnScopeDispose(release),readonly(url)}const defaultState={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},keys$1=Object.keys(defaultState);function usePointer(options$1={}){let{target:target$1=defaultWindow$1}=options$1,isInside=shallowRef(!1),state=ref(options$1.initialValue||{});Object.assign(state.value,defaultState,state.value);let handler=event=>{isInside.value=!0,!(options$1.pointerTypes&&!options$1.pointerTypes.includes(event.pointerType))&&(state.value=objectPick(event,keys$1,!1))};if(target$1){let listenerOptions={passive:!0};useEventListener(target$1,[`pointerdown`,`pointermove`,`pointerup`],handler,listenerOptions),useEventListener(target$1,`pointerleave`,()=>isInside.value=!1,listenerOptions)}return{...toRefs$1(state),isInside}}const topVarName=`--vueuse-safe-area-top`,rightVarName=`--vueuse-safe-area-right`,bottomVarName=`--vueuse-safe-area-bottom`,leftVarName=`--vueuse-safe-area-left`;function useScreenSafeArea(){let top=shallowRef(``),right=shallowRef(``),bottom=shallowRef(``),left=shallowRef(``);if(isClient$1){let topCssVar=useCssVar(topVarName),rightCssVar=useCssVar(rightVarName),bottomCssVar=useCssVar(bottomVarName),leftCssVar=useCssVar(leftVarName);topCssVar.value=`env(safe-area-inset-top, 0px)`,rightCssVar.value=`env(safe-area-inset-right, 0px)`,bottomCssVar.value=`env(safe-area-inset-bottom, 0px)`,leftCssVar.value=`env(safe-area-inset-left, 0px)`,tryOnMounted(update),useEventListener(`resize`,useDebounceFn(update),{passive:!0})}function update(){top.value=getValue(topVarName),right.value=getValue(rightVarName),bottom.value=getValue(bottomVarName),left.value=getValue(leftVarName)}return{top,right,bottom,left,update}}function getValue(position$2){return getComputedStyle(document.documentElement).getPropertyValue(position$2)}const DEFAULT_UNITS=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}];function useUserMedia(options$1={}){var _a$2,_b;let enabled$1=shallowRef((_a$2=options$1.enabled)??!1),autoSwitch=shallowRef((_b=options$1.autoSwitch)??!0),constraints=ref(options$1.constraints),{navigator:navigator$1=defaultNavigator}=options$1,isSupported=useSupported(()=>{var _a2;return(_a2=navigator$1?.mediaDevices)?.getUserMedia}),stream=shallowRef();function getDeviceOptions(type){switch(type){case`video`:if(constraints.value)return constraints.value.video||!1;break;case`audio`:if(constraints.value)return constraints.value.audio||!1;break}}async function _start$1(){if(!(!isSupported.value||stream.value))return stream.value=await navigator$1.mediaDevices.getUserMedia({video:getDeviceOptions(`video`),audio:getDeviceOptions(`audio`)}),stream.value}function _stop(){var _a2;(_a2=stream.value)==null||_a2.getTracks().forEach(t=>t.stop()),stream.value=void 0}function stop$1(){_stop(),enabled$1.value=!1}async function start(){return await _start$1(),stream.value&&(enabled$1.value=!0),stream.value}async function restart(){return _stop(),await start()}return watch(enabled$1,v$1=>{v$1?_start$1():_stop()},{immediate:!0}),watch(constraints,()=>{autoSwitch.value&&stream.value&&restart()},{immediate:!0}),tryOnScopeDispose(()=>{stop$1()}),{isSupported,stream,start,stop:stop$1,restart,constraints,enabled:enabled$1,autoSwitch}}function useWebWorker(arg0,workerOptions,options$1){let{window:window$1=defaultWindow$1}=options$1??{},data$10=ref(null),worker=shallowRef(),post=(...args)=>{worker.value&&worker.value.postMessage(...args)},terminate=function(){worker.value&&worker.value.terminate()};return window$1&&(typeof arg0==`string`?worker.value=new Worker(arg0,workerOptions):typeof arg0==`function`?worker.value=arg0():worker.value=arg0,worker.value.onmessage=e$3=>{data$10.value=e$3.data},tryOnScopeDispose(()=>{worker.value&&worker.value.terminate()})),{data:data$10,post,terminate,worker}}function useWindowSize(options$1={}){let{window:window$1=defaultWindow$1,initialWidth=1/0,initialHeight=1/0,listenOrientation=!0,includeScrollbar=!0,type=`inner`}=options$1,width=shallowRef(initialWidth),height=shallowRef(initialHeight),update=()=>{if(window$1)if(type===`outer`)width.value=window$1.outerWidth,height.value=window$1.outerHeight;else if(type===`visual`&&window$1.visualViewport){let{width:visualViewportWidth,height:visualViewportHeight,scale:scale$1}=window$1.visualViewport;width.value=Math.round(visualViewportWidth*scale$1),height.value=Math.round(visualViewportHeight*scale$1)}else includeScrollbar?(width.value=window$1.innerWidth,height.value=window$1.innerHeight):(width.value=window$1.document.documentElement.clientWidth,height.value=window$1.document.documentElement.clientHeight)};update(),tryOnMounted(update);let listenerOptions={passive:!0};if(useEventListener(`resize`,update,listenerOptions),window$1&&type===`visual`&&window$1.visualViewport&&useEventListener(window$1.visualViewport,`resize`,update,listenerOptions),listenOrientation){let matches$1=useMediaQuery(`(orientation: portrait)`);watch(matches$1,()=>update())}return{width,height}}const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<`u`?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<`u`?callback=>window.requestAnimationFrame(callback):callback=>setTimeout(()=>callback(getCurrentTime()),defaultTimestep);function createRenderStep(runNextFrame$1){let toRun=[],toRunNextFrame=[],numToRun=0,isProcessing$1=!1,flushNextFrame=!1,toKeepAlive=new WeakSet,step={schedule:(callback,keepAlive=!1,immediate=!1)=>{let addToCurrentFrame=immediate&&isProcessing$1,buffer$1=addToCurrentFrame?toRun:toRunNextFrame;return keepAlive&&toKeepAlive.add(callback),buffer$1.indexOf(callback)===-1&&(buffer$1.push(callback),addToCurrentFrame&&isProcessing$1&&(numToRun=toRun.length)),callback},cancel:callback=>{let index$1=toRunNextFrame.indexOf(callback);index$1!==-1&&toRunNextFrame.splice(index$1,1),toKeepAlive.delete(callback)},process:frameData=>{if(isProcessing$1){flushNextFrame=!0;return}if(isProcessing$1=!0,[toRun,toRunNextFrame]=[toRunNextFrame,toRun],toRunNextFrame.length=0,numToRun=toRun.length,numToRun)for(let i$1=0;i$1(acc[key$1]=createRenderStep(()=>runNextFrame=!0),acc),{}),sync=stepsOrder.reduce((acc,key$1)=>{let step=steps[key$1];return acc[key$1]=(process$1,keepAlive=!1,immediate=!1)=>(runNextFrame||startLoop(),step.schedule(process$1,keepAlive,immediate)),acc},{}),cancelSync=stepsOrder.reduce((acc,key$1)=>(acc[key$1]=steps[key$1].cancel,acc),{}),flushSync=stepsOrder.reduce((acc,key$1)=>(acc[key$1]=()=>steps[key$1].process(frame),acc),{}),processStep=stepId=>steps[stepId].process(frame),processFrame=timestamp$2=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(timestamp$2-frame.timestamp,maxElapsed),1),frame.timestamp=timestamp$2,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;var es_default=sync;function __rest(s$1,e$3){var t={};for(var p$5 in s$1)Object.prototype.hasOwnProperty.call(s$1,p$5)&&e$3.indexOf(p$5)<0&&(t[p$5]=s$1[p$5]);if(s$1!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i$1=0,p$5=Object.getOwnPropertySymbols(s$1);i$1Math.min(Math.max(v$1,min$1),max$1),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration=800,bounce=.25,velocity=0,mass=1}){let envelope,derivative;warning(duration<=maxDuration*1e3,`Spring duration must be 10 seconds or less`);let dampingRatio=1-bounce;dampingRatio=clamp$2(minDamping,maxDamping,dampingRatio),duration=clamp$2(minDuration,maxDuration,duration/1e3),dampingRatio<1?(envelope=undampedFreq$1=>{let exponentialDecay=undampedFreq$1*dampingRatio,delta=exponentialDecay*duration,a$2=exponentialDecay-velocity,b$3=calcAngularFreq(undampedFreq$1,dampingRatio),c$4=Math.exp(-delta);return safeMin-a$2/b$3*c$4},derivative=undampedFreq$1=>{let exponentialDecay=undampedFreq$1*dampingRatio,delta=exponentialDecay*duration,d$2=delta*velocity+velocity,e$3=dampingRatio**2*undampedFreq$1**2*duration,f$3=Math.exp(-delta),g$2=calcAngularFreq(undampedFreq$1**2,dampingRatio),factor$1=-envelope(undampedFreq$1)+safeMin>0?-1:1;return factor$1*((d$2-e$3)*f$3)/g$2}):(envelope=undampedFreq$1=>{let a$2=Math.exp(-undampedFreq$1*duration),b$3=(undampedFreq$1-velocity)*duration+1;return-safeMin+a$2*b$3},derivative=undampedFreq$1=>{let a$2=Math.exp(-undampedFreq$1*duration),b$3=(velocity-undampedFreq$1)*(duration*duration);return a$2*b$3});let initialGuess=5/duration,undampedFreq=approximateRoot(envelope,derivative,initialGuess);if(duration*=1e3,isNaN(undampedFreq))return{stiffness:100,damping:10,duration};{let stiffness=undampedFreq**2*mass;return{stiffness,damping:dampingRatio*2*Math.sqrt(mass*stiffness),duration}}}const rootIterations=12;function approximateRoot(envelope,derivative,initialGuess){let result=initialGuess;for(let i$1=1;i$1options$1[key$1]!==void 0)}function getSpringOptions(options$1){let springOptions=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},options$1);if(!isSpringType(options$1,physicsKeys)&&isSpringType(options$1,durationKeys)){let derived=findSpring(options$1);springOptions=Object.assign(Object.assign(Object.assign({},springOptions),derived),{velocity:0,mass:1}),springOptions.isResolvedFromDuration=!0}return springOptions}function spring(_a$2){var{from=0,to:to$1=1,restSpeed=2,restDelta}=_a$2,options$1=__rest(_a$2,[`from`,`to`,`restSpeed`,`restDelta`]);let state={done:!1,value:from},{stiffness,damping,mass,velocity,duration,isResolvedFromDuration}=getSpringOptions(options$1),resolveSpring=zero,resolveVelocity=zero;function createSpring(){let initialVelocity=velocity?-(velocity/1e3):0,initialDelta=to$1-from,dampingRatio=damping/(2*Math.sqrt(stiffness*mass)),undampedAngularFreq=Math.sqrt(stiffness/mass)/1e3;if(restDelta===void 0&&(restDelta=Math.min(Math.abs(to$1-from)/100,.4)),dampingRatio<1){let angularFreq=calcAngularFreq(undampedAngularFreq,dampingRatio);resolveSpring=t=>{let envelope=Math.exp(-dampingRatio*undampedAngularFreq*t);return to$1-envelope*((initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)/angularFreq*Math.sin(angularFreq*t)+initialDelta*Math.cos(angularFreq*t))},resolveVelocity=t=>{let envelope=Math.exp(-dampingRatio*undampedAngularFreq*t);return dampingRatio*undampedAngularFreq*envelope*(Math.sin(angularFreq*t)*(initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)/angularFreq+initialDelta*Math.cos(angularFreq*t))-envelope*(Math.cos(angularFreq*t)*(initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)-angularFreq*initialDelta*Math.sin(angularFreq*t))}}else if(dampingRatio===1)resolveSpring=t=>to$1-Math.exp(-undampedAngularFreq*t)*(initialDelta+(initialVelocity+undampedAngularFreq*initialDelta)*t);else{let dampedAngularFreq=undampedAngularFreq*Math.sqrt(dampingRatio*dampingRatio-1);resolveSpring=t=>{let envelope=Math.exp(-dampingRatio*undampedAngularFreq*t),freqForT=Math.min(dampedAngularFreq*t,300);return to$1-envelope*((initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)*Math.sinh(freqForT)+dampedAngularFreq*initialDelta*Math.cosh(freqForT))/dampedAngularFreq}}}return createSpring(),{next:t=>{let current=resolveSpring(t);if(isResolvedFromDuration)state.done=t>=duration;else{let currentVelocity=resolveVelocity(t)*1e3,isBelowVelocityThreshold=Math.abs(currentVelocity)<=restSpeed,isBelowDisplacementThreshold=Math.abs(to$1-current)<=restDelta;state.done=isBelowVelocityThreshold&&isBelowDisplacementThreshold}return state.value=state.done?to$1:current,state},flipTarget:()=>{velocity=-velocity,[from,to$1]=[to$1,from],createSpring()}}}spring.needsInterpolation=(a$2,b$3)=>typeof a$2==`string`||typeof b$3==`string`;const zero=_t$2=>0,progress=(from,to$1,value$1)=>{let toFromDifference=to$1-from;return toFromDifference===0?1:(value$1-from)/toFromDifference},mix=(from,to$1,progress$1)=>-progress$1*from+progress$1*to$1+from,clamp$3=(min$1,max$1)=>v$1=>Math.max(Math.min(v$1,max$1),min$1),sanitize=v$1=>v$1%1?Number(v$1.toFixed(5)):v$1,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[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,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1(v$1){return typeof v$1==`string`}const number={test:v$1=>typeof v$1==`number`,parse:parseFloat,transform:v$1=>v$1},alpha=Object.assign(Object.assign({},number),{transform:clamp$3(0,1)}),scale=Object.assign(Object.assign({},number),{default:1}),createUnitType=unit=>({test:v$1=>isString$1(v$1)&&v$1.endsWith(unit)&&v$1.split(` `).length===1,parse:parseFloat,transform:v$1=>`${v$1}${unit}`}),degrees=createUnitType(`deg`),percent=createUnitType(`%`),px=createUnitType(`px`),vh=createUnitType(`vh`),vw=createUnitType(`vw`),progressPercentage=Object.assign(Object.assign({},percent),{parse:v$1=>percent.parse(v$1)/100,transform:v$1=>percent.transform(v$1*100)}),isColorString=(type,testProp)=>v$1=>!!(isString$1(v$1)&&singleColorRegex.test(v$1)&&v$1.startsWith(type)||testProp&&Object.prototype.hasOwnProperty.call(v$1,testProp)),splitColor=(aName,bName,cName)=>v$1=>{if(!isString$1(v$1))return v$1;let[a$2,b$3,c$4,alpha$1]=v$1.match(floatRegex);return{[aName]:parseFloat(a$2),[bName]:parseFloat(b$3),[cName]:parseFloat(c$4),alpha:alpha$1===void 0?1:parseFloat(alpha$1)}},hsla={test:isColorString(`hsl`,`hue`),parse:splitColor(`hue`,`saturation`,`lightness`),transform:({hue:hue$2,saturation,lightness,alpha:alpha$1=1})=>`hsla(`+Math.round(hue$2)+`, `+percent.transform(sanitize(saturation))+`, `+percent.transform(sanitize(lightness))+`, `+sanitize(alpha.transform(alpha$1))+`)`},clampRgbUnit=clamp$3(0,255),rgbUnit=Object.assign(Object.assign({},number),{transform:v$1=>Math.round(clampRgbUnit(v$1))}),rgba={test:isColorString(`rgb`,`red`),parse:splitColor(`red`,`green`,`blue`),transform:({red,green,blue,alpha:alpha$1=1})=>`rgba(`+rgbUnit.transform(red)+`, `+rgbUnit.transform(green)+`, `+rgbUnit.transform(blue)+`, `+sanitize(alpha.transform(alpha$1))+`)`};function parseHex$1(v$1){let r$2=``,g$2=``,b$3=``,a$2=``;return v$1.length>5?(r$2=v$1.substr(1,2),g$2=v$1.substr(3,2),b$3=v$1.substr(5,2),a$2=v$1.substr(7,2)):(r$2=v$1.substr(1,1),g$2=v$1.substr(2,1),b$3=v$1.substr(3,1),a$2=v$1.substr(4,1),r$2+=r$2,g$2+=g$2,b$3+=b$3,a$2+=a$2),{red:parseInt(r$2,16),green:parseInt(g$2,16),blue:parseInt(b$3,16),alpha:a$2?parseInt(a$2,16)/255:1}}const hex$1={test:isColorString(`#`),parse:parseHex$1,transform:rgba.transform},color={test:v$1=>rgba.test(v$1)||hex$1.test(v$1)||hsla.test(v$1),parse:v$1=>rgba.test(v$1)?rgba.parse(v$1):hsla.test(v$1)?hsla.parse(v$1):hex$1.parse(v$1),transform:v$1=>isString$1(v$1)?v$1:v$1.hasOwnProperty(`red`)?rgba.transform(v$1):hsla.transform(v$1)},colorToken="${c}",numberToken="${n}";function test(v$1){var _a$2,_b,_c,_d;return isNaN(v$1)&&isString$1(v$1)&&((_b=(_a$2=v$1.match(floatRegex))?.length)??0)+((_d=(_c=v$1.match(colorRegex))?.length)??0)>0}function analyse$1(v$1){typeof v$1==`number`&&(v$1=`${v$1}`);let values=[],numColors=0,colors=v$1.match(colorRegex);colors&&(numColors=colors.length,v$1=v$1.replace(colorRegex,colorToken),values.push(...colors.map(color.parse)));let numbers=v$1.match(floatRegex);return numbers&&(v$1=v$1.replace(floatRegex,numberToken),values.push(...numbers.map(number.parse))),{values,numColors,tokenised:v$1}}function parse$3(v$1){return analyse$1(v$1).values}function createTransformer$1(v$1){let{values,numColors,tokenised}=analyse$1(v$1),numValues=values.length;return v$2=>{let output=tokenised;for(let i$1=0;i$1typeof v$1==`number`?0:v$1;function getAnimatableNone$2(v$1){let parsed=parse$3(v$1),transformer=createTransformer$1(v$1);return transformer(parsed.map(convertNumbersToZero))}const complex={test,parse:parse$3,createTransformer:createTransformer$1,getAnimatableNone:getAnimatableNone$2},maxDefaults=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function applyDefaultFilter(v$1){let[name$2,value$1]=v$1.slice(0,-1).split(`(`);if(name$2===`drop-shadow`)return v$1;let[number$3]=value$1.match(floatRegex)||[];if(!number$3)return v$1;let unit=value$1.replace(number$3,``),defaultValue=maxDefaults.has(name$2)?1:0;return number$3!==value$1&&(defaultValue*=100),name$2+`(`+defaultValue+unit+`)`}const functionRegex=/([a-z-]*)\(.*?\)/g,filter=Object.assign(Object.assign({},complex),{getAnimatableNone:v$1=>{let functions=v$1.match(functionRegex);return functions?functions.map(applyDefaultFilter).join(` `):v$1}});function hueToRgb(p$5,q$1,t){return t<0&&(t+=1),t>1&&--t,t<1/6?p$5+(q$1-p$5)*6*t:t<1/2?q$1:t<2/3?p$5+(q$1-p$5)*(2/3-t)*6:p$5}function hslaToRgba({hue:hue$2,saturation,lightness,alpha:alpha$1}){hue$2/=360,saturation/=100,lightness/=100;let red=0,green=0,blue=0;if(!saturation)red=green=blue=lightness;else{let q$1=lightness<.5?lightness*(1+saturation):lightness+saturation-lightness*saturation,p$5=2*lightness-q$1;red=hueToRgb(p$5,q$1,hue$2+1/3),green=hueToRgb(p$5,q$1,hue$2),blue=hueToRgb(p$5,q$1,hue$2-1/3)}return{red:Math.round(red*255),green:Math.round(green*255),blue:Math.round(blue*255),alpha:alpha$1}}const mixLinearColor=(from,to$1,v$1)=>{let fromExpo=from*from,toExpo=to$1*to$1;return Math.sqrt(Math.max(0,v$1*(toExpo-fromExpo)+fromExpo))},colorTypes=[hex$1,rgba,hsla],getColorType=v$1=>colorTypes.find(type=>type.test(v$1)),notAnimatable=color$2=>`'${color$2}' is not an animatable color. Use the equivalent color code instead.`,mixColor=(from,to$1)=>{let fromColorType=getColorType(from),toColorType=getColorType(to$1);invariant(!!fromColorType,notAnimatable(from)),invariant(!!toColorType,notAnimatable(to$1));let fromColor=fromColorType.parse(from),toColor=toColorType.parse(to$1);fromColorType===hsla&&(fromColor=hslaToRgba(fromColor),fromColorType=rgba),toColorType===hsla&&(toColor=hslaToRgba(toColor),toColorType=rgba);let blended=Object.assign({},fromColor);return v$1=>{for(let key$1 in blended)key$1!==`alpha`&&(blended[key$1]=mixLinearColor(fromColor[key$1],toColor[key$1],v$1));return blended.alpha=mix(fromColor.alpha,toColor.alpha,v$1),fromColorType.transform(blended)}},isNum=v$1=>typeof v$1==`number`,combineFunctions=(a$2,b$3)=>v$1=>b$3(a$2(v$1)),pipe=(...transformers)=>transformers.reduce(combineFunctions);function getMixer(origin,target$1){return isNum(origin)?v$1=>mix(origin,target$1,v$1):color.test(origin)?mixColor(origin,target$1):mixComplex(origin,target$1)}const mixArray=(from,to$1)=>{let output=[...from],numValues=output.length,blendValue=from.map((fromThis,i$1)=>getMixer(fromThis,to$1[i$1]));return v$1=>{for(let i$1=0;i$1{let output=Object.assign(Object.assign({},origin),target$1),blendValue={};for(let key$1 in output)origin[key$1]!==void 0&&target$1[key$1]!==void 0&&(blendValue[key$1]=getMixer(origin[key$1],target$1[key$1]));return v$1=>{for(let key$1 in blendValue)output[key$1]=blendValue[key$1](v$1);return output}};function analyse(value$1){let parsed=complex.parse(value$1),numValues=parsed.length,numNumbers=0,numRGB=0,numHSL=0;for(let i$1=0;i$1{let template=complex.createTransformer(target$1),originStats=analyse(origin),targetStats=analyse(target$1),canInterpolate=originStats.numHSL===targetStats.numHSL&&originStats.numRGB===targetStats.numRGB&&originStats.numNumbers>=targetStats.numNumbers;return canInterpolate?pipe(mixArray(originStats.parsed,targetStats.parsed),template):(warning(!0,`Complex values '${origin}' and '${target$1}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),p$5=>`${p$5>0?target$1:origin}`)},mixNumber=(from,to$1)=>p$5=>mix(from,to$1,p$5);function detectMixerFactory(v$1){if(typeof v$1==`number`)return mixNumber;if(typeof v$1==`string`)return color.test(v$1)?mixColor:mixComplex;if(Array.isArray(v$1))return mixArray;if(typeof v$1==`object`)return mixObject}function createMixers(output,ease,customMixer){let mixers=[],mixerFactory=customMixer||detectMixerFactory(output[0]),numMixers=output.length-1;for(let i$1=0;i$1mixer(progress(from,to$1,v$1))}function slowInterpolate(input,mixers){let inputLength=input.length,lastInputIndex=inputLength-1;return v$1=>{let mixerIndex=0,foundMixerIndex=!1;if(v$1<=input[0]?foundMixerIndex=!0:v$1>=input[lastInputIndex]&&(mixerIndex=lastInputIndex-1,foundMixerIndex=!0),!foundMixerIndex){let i$1=1;for(;i$1v$1||i$1===lastInputIndex);i$1++);mixerIndex=i$1-1}let progressInRange=progress(input[mixerIndex],input[mixerIndex+1],v$1);return mixers[mixerIndex](progressInRange)}}function interpolate(input,output,{clamp:isClamp=!0,ease,mixer}={}){let inputLength=input.length;invariant(inputLength===output.length,`Both input and output ranges must be the same length`),invariant(!ease||!Array.isArray(ease)||ease.length===inputLength-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),input[0]>input[inputLength-1]&&(input=[].concat(input),output=[].concat(output),input.reverse(),output.reverse());let mixers=createMixers(output,ease,mixer),interpolator=inputLength===2?fastInterpolate(input,mixers):slowInterpolate(input,mixers);return isClamp?v$1=>interpolator(clamp$2(input[0],input[inputLength-1],v$1)):interpolator}const reverseEasing=easing=>p$5=>1-easing(1-p$5),mirrorEasing=easing=>p$5=>p$5<=.5?easing(2*p$5)/2:(2-easing(2*(1-p$5)))/2,createExpoIn=power=>p$5=>p$5**+power,createBackIn=power=>p$5=>p$5*p$5*((power+1)*p$5-power),createAnticipate=power=>{let backEasing=createBackIn(power);return p$5=>(p$5*=2)<1?.5*backEasing(p$5):.5*(2-2**(-10*(p$5-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=p$5=>p$5,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=p$5=>1-Math.sin(Math.acos(p$5)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=p$5=>{if(p$5===1||p$5===0)return p$5;let p2=p$5*p$5;return p$5p$5<.5?.5*(1-bounceOut(1-p$5*2)):.5*bounceOut(p$5*2-1)+.5;function defaultEasing(values,easing){return values.map(()=>easing||easeInOut).splice(0,values.length-1)}function defaultOffset(values){let numValues=values.length;return values.map((_value,i$1)=>i$1===0?0:i$1/(numValues-1))}function convertOffsetToTimes(offset$1,duration){return offset$1.map(o$1=>o$1*duration)}function keyframes$2({from=0,to:to$1=1,ease,offset:offset$1,duration=300}){let state={done:!1,value:from},values=Array.isArray(to$1)?to$1:[from,to$1],times=convertOffsetToTimes(offset$1&&offset$1.length===values.length?offset$1:defaultOffset(values),duration);function createInterpolator(){return interpolate(times,values,{ease:Array.isArray(ease)?ease:defaultEasing(values,ease)})}let interpolator=createInterpolator();return{next:t=>(state.value=interpolator(t),state.done=t>=duration,state),flipTarget:()=>{values.reverse(),interpolator=createInterpolator()}}}function decay({velocity=0,from=0,power=.8,timeConstant=350,restDelta=.5,modifyTarget}){let state={done:!1,value:from},amplitude=power*velocity,ideal=from+amplitude,target$1=modifyTarget===void 0?ideal:modifyTarget(ideal);return target$1!==ideal&&(amplitude=target$1-from),{next:t=>{let delta=-amplitude*Math.exp(-t/timeConstant);return state.done=!(delta>restDelta||delta<-restDelta),state.value=state.done?target$1:target$1+delta,state},flipTarget:()=>{}}}const types={keyframes:keyframes$2,spring,decay};function detectAnimationFromOptions(config){if(Array.isArray(config.to))return keyframes$2;if(types[config.type])return types[config.type];let keys$3=new Set(Object.keys(config));return keys$3.has(`ease`)||keys$3.has(`duration`)&&!keys$3.has(`dampingRatio`)?keyframes$2:keys$3.has(`dampingRatio`)||keys$3.has(`stiffness`)||keys$3.has(`mass`)||keys$3.has(`damping`)||keys$3.has(`restSpeed`)||keys$3.has(`restDelta`)?spring:keyframes$2}function loopElapsed(elapsed,duration,delay=0){return elapsed-duration-delay}function reverseElapsed(elapsed,duration,delay=0,isForwardPlayback=!0){return isForwardPlayback?loopElapsed(duration+-elapsed,duration,delay):duration-(elapsed-duration)+delay}function hasRepeatDelayElapsed(elapsed,duration,delay,isForwardPlayback){return isForwardPlayback?elapsed>=duration+delay:elapsed<=-delay}const framesync=update=>{let passTimestamp=({delta})=>update(delta);return{start:()=>es_default.update(passTimestamp,!0),stop:()=>cancelSync.update(passTimestamp)}};function animate(_a$2){var _b,_c,{from,autoplay=!0,driver=framesync,elapsed=0,repeat:repeatMax=0,repeatType=`loop`,repeatDelay=0,onPlay,onStop,onComplete,onRepeat,onUpdate}=_a$2,options$1=__rest(_a$2,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:to$1}=options$1,driverControls,repeatCount=0,computedDuration=options$1.duration,latest,isComplete=!1,isForwardPlayback=!0,interpolateFromNumber,animator=detectAnimationFromOptions(options$1);(_c=(_b=animator).needsInterpolation)?.call(_b,from,to$1)&&(interpolateFromNumber=interpolate([0,100],[from,to$1],{clamp:!1}),from=0,to$1=100);let animation=animator(Object.assign(Object.assign({},options$1),{from,to:to$1}));function repeat(){repeatCount++,repeatType===`reverse`?(isForwardPlayback=repeatCount%2==0,elapsed=reverseElapsed(elapsed,computedDuration,repeatDelay,isForwardPlayback)):(elapsed=loopElapsed(elapsed,computedDuration,repeatDelay),repeatType===`mirror`&&animation.flipTarget()),isComplete=!1,onRepeat&&onRepeat()}function complete(){driverControls.stop(),onComplete&&onComplete()}function update(delta){if(isForwardPlayback||(delta=-delta),elapsed+=delta,!isComplete){let state=animation.next(Math.max(0,elapsed));latest=state.value,interpolateFromNumber&&(latest=interpolateFromNumber(latest)),isComplete=isForwardPlayback?state.done:elapsed<=0}onUpdate?.(latest),isComplete&&(repeatCount===0&&(computedDuration??=elapsed),repeatCount{onStop?.(),driverControls.stop()}}}function velocityPerSecond(velocity,frameDuration){return frameDuration?velocity*(1e3/frameDuration):0}function inertia({from=0,velocity=0,min:min$1,max:max$1,power=.8,timeConstant=750,bounceStiffness=500,bounceDamping=10,restDelta=1,modifyTarget,driver,onUpdate,onComplete,onStop}){let currentAnimation;function isOutOfBounds(v$1){return min$1!==void 0&&v$1max$1}function boundaryNearest(v$1){return min$1===void 0?max$1:max$1===void 0||Math.abs(min$1-v$1){var _a$2;onUpdate?.(v$1),(_a$2=options$1.onUpdate)==null||_a$2.call(options$1,v$1)},onComplete,onStop}))}function startSpring(options$1){startAnimation(Object.assign({type:`spring`,stiffness:bounceStiffness,damping:bounceDamping,restDelta},options$1))}if(isOutOfBounds(from))startSpring({from,velocity,to:boundaryNearest(from)});else{let target$1=power*velocity+from;modifyTarget!==void 0&&(target$1=modifyTarget(target$1));let boundary=boundaryNearest(target$1),heading$1=boundary===min$1?-1:1,prev,current,checkBoundary=v$1=>{prev=current,current=v$1,velocity=velocityPerSecond(v$1-prev,getFrameData().delta),(heading$1===1&&v$1>boundary||heading$1===-1&&v$1currentAnimation?.stop()}}const a$1=(a1,a2)=>1-3*a2+3*a1,b$2=(a1,a2)=>3*a2-6*a1,c$3=a1=>3*a1,calcBezier=(t,a1,a2)=>((a$1(a1,a2)*t+b$2(a1,a2))*t+c$3(a1))*t,getSlope=(t,a1,a2)=>3*a$1(a1,a2)*t*t+2*b$2(a1,a2)*t+c$3(a1),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(aX,aA,aB,mX1,mX2){let currentX,currentT,i$1=0;do currentT=aA+(aB-aA)/2,currentX=calcBezier(currentT,mX1,mX2)-aX,currentX>0?aB=currentT:aA=currentT;while(Math.abs(currentX)>subdivisionPrecision&&++i$1=newtonMinSlope?newtonRaphsonIterate(aX,guessForT,mX1,mX2):initialSlope===0?guessForT:binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2)}return t=>t===0||t===1?t:calcBezier(getTForX(t),mY1,mY2)}const __vite_import_meta_env__$1={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_TARGET_HUGGINGFACE_SPACE:`true`},motionState={};var SubscriptionManager$1=class{constructor(){babelHelpers.defineProperty(this,`subscriptions`,new Set)}add(handler){return this.subscriptions.add(handler),()=>this.subscriptions.delete(handler)}notify(a$2,b$3,c$4){if(this.subscriptions.size)for(let handler of this.subscriptions)handler(a$2,b$3,c$4)}clear(){this.subscriptions.clear()}};function isFloat$1(value$1){return!Number.isNaN(Number.parseFloat(value$1))}var MotionValue$1=class{constructor(init){babelHelpers.defineProperty(this,`current`,void 0),babelHelpers.defineProperty(this,`prev`,void 0),babelHelpers.defineProperty(this,`timeDelta`,0),babelHelpers.defineProperty(this,`lastUpdated`,0),babelHelpers.defineProperty(this,`updateSubscribers`,new SubscriptionManager$1),babelHelpers.defineProperty(this,`stopAnimation`,void 0),babelHelpers.defineProperty(this,`canTrackVelocity`,!1),babelHelpers.defineProperty(this,`updateAndNotify`,v$1=>{this.prev=this.current,this.current=v$1;let{delta,timestamp:timestamp$2}=getFrameData();this.lastUpdated!==timestamp$2&&(this.timeDelta=delta,this.lastUpdated=timestamp$2),es_default.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),babelHelpers.defineProperty(this,`scheduleVelocityCheck`,()=>es_default.postRender(this.velocityCheck)),babelHelpers.defineProperty(this,`velocityCheck`,({timestamp:timestamp$2})=>{this.canTrackVelocity||=isFloat$1(this.current),timestamp$2!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=init,this.canTrackVelocity=isFloat$1(this.current)}onChange(subscription){return this.updateSubscribers.add(subscription)}clearListeners(){this.updateSubscribers.clear()}set(v$1){this.updateAndNotify(v$1)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(animation){return this.stop(),new Promise(resolve$1=>{let{stop:stop$1}=animation(resolve$1);this.stopAnimation=stop$1}).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 getMotionValue$1(init){return new MotionValue$1(init)}const{isArray:isArray$4}=Array;function useMotionValues$1(){let motionValues=ref({}),stop$1=keys$3=>{let destroyKey=key$1=>{motionValues.value[key$1]&&(motionValues.value[key$1].stop(),motionValues.value[key$1].destroy(),delete motionValues.value[key$1])};keys$3?isArray$4(keys$3)?keys$3.forEach(destroyKey):destroyKey(keys$3):Object.keys(motionValues.value).forEach(destroyKey)},get=(key$1,from,target$1)=>{if(motionValues.value[key$1])return motionValues.value[key$1];let motionValue=getMotionValue$1(from);return motionValue.onChange(v$1=>target$1[key$1]=v$1),motionValues.value[key$1]=motionValue,motionValue};return tryOnUnmounted(stop$1),{motionValues,get,stop:stop$1}}function isKeyframesTarget$1(v$1){return Array.isArray(v$1)}function underDampedSpring$1(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring$1(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring$1(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?100:30,restDelta:.01,restSpeed:10}}function linearTween$1(){return{type:`keyframes`,ease:`linear`,duration:300}}function keyframes$1(values){return{type:`keyframes`,duration:800,values}}const defaultTransitions$1={default:overDampedSpring$1,x:underDampedSpring$1,y:underDampedSpring$1,z:underDampedSpring$1,rotate:underDampedSpring$1,rotateX:underDampedSpring$1,rotateY:underDampedSpring$1,rotateZ:underDampedSpring$1,scaleX:criticallyDampedSpring$1,scaleY:criticallyDampedSpring$1,scale:criticallyDampedSpring$1,backgroundColor:linearTween$1,color:linearTween$1,opacity:linearTween$1};function getDefaultTransition$1(valueKey,to$1){let transitionFactory;return transitionFactory=isKeyframesTarget$1(to$1)?keyframes$1:defaultTransitions$1[valueKey]||defaultTransitions$1.default,{to:to$1,...transitionFactory(to$1)}}const int$1={...number,transform:Math.round},valueTypes$1={color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int$1,filter,WebkitFilter:filter,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int$1},getValueType$1=key$1=>valueTypes$1[key$1];function getValueAsType$1(value$1,type){return type&&typeof value$1==`number`&&type.transform?type.transform(value$1):value$1}function getAnimatableNone$1(key$1,value$1){let defaultValueType=getValueType$1(key$1);return defaultValueType!==filter&&(defaultValueType=complex),defaultValueType.getAnimatableNone?defaultValueType.getAnimatableNone(value$1):void 0}const easingLookup$1={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction$1(definition$29){if(Array.isArray(definition$29)){let[x1,y1,x2,y2]=definition$29;return cubicBezier(x1,y1,x2,y2)}else if(typeof definition$29==`string`)return easingLookup$1[definition$29];return definition$29}function isEasingArray$1(ease){return Array.isArray(ease)&&typeof ease[0]!=`number`}function isAnimatable$1(key$1,value$1){return key$1===`zIndex`?!1:!!(typeof value$1==`number`||Array.isArray(value$1)||typeof value$1==`string`&&complex.test(value$1)&&!value$1.startsWith(`url(`))}function hydrateKeyframes$1(options$1){return Array.isArray(options$1.to)&&options$1.to[0]===null&&(options$1.to=[...options$1.to],options$1.to[0]=options$1.from),options$1}function convertTransitionToAnimationOptions$1({ease,times,delay,...transition}){let options$1={...transition};return times&&(options$1.offset=times),ease&&(options$1.ease=isEasingArray$1(ease)?ease.map(easingDefinitionToFunction$1):easingDefinitionToFunction$1(ease)),delay&&(options$1.elapsed=-delay),options$1}function getPopmotionAnimationOptions$1(transition,options$1,key$1){return Array.isArray(options$1.to)&&(transition.duration||=800),hydrateKeyframes$1(options$1),isTransitionDefined$1(transition)||(transition={...transition,...getDefaultTransition$1(key$1,options$1.to)}),{...options$1,...convertTransitionToAnimationOptions$1(transition)}}function isTransitionDefined$1({delay,repeat,repeatType,repeatDelay,from,...transition}){return!!Object.keys(transition).length}function getValueTransition$1(transition,key$1){return transition[key$1]||transition.default||transition}function getAnimation$1(key$1,value$1,target$1,transition,onComplete){let valueTransition=getValueTransition$1(transition,key$1),origin=valueTransition.from===null||valueTransition.from===void 0?value$1.get():valueTransition.from,isTargetAnimatable=isAnimatable$1(key$1,target$1);origin===`none`&&isTargetAnimatable&&typeof target$1==`string`&&(origin=getAnimatableNone$1(key$1,target$1));let isOriginAnimatable=isAnimatable$1(key$1,origin);function start(complete){let options$1={from:origin,to:target$1,velocity:transition.velocity?transition.velocity:value$1.getVelocity(),onUpdate:v$1=>value$1.set(v$1)};return valueTransition.type===`inertia`||valueTransition.type===`decay`?inertia({...options$1,...valueTransition}):animate({...getPopmotionAnimationOptions$1(valueTransition,options$1,key$1),onUpdate:v$1=>{options$1.onUpdate(v$1),valueTransition.onUpdate&&valueTransition.onUpdate(v$1)},onComplete:()=>{onComplete&&onComplete(),complete&&complete()}})}function set(complete){return value$1.set(target$1),onComplete&&onComplete(),complete&&complete(),{stop:()=>{}}}return!isOriginAnimatable||!isTargetAnimatable||valueTransition.type===!1?set:start}function useMotionTransitions$1(){let{motionValues,stop:stop$1,get}=useMotionValues$1(),push$1=(key$1,value$1,target$1,transition={},onComplete)=>{let from=target$1[key$1],motionValue=get(key$1,from,target$1);if(transition&&transition.immediate){motionValue.set(value$1);return}let animation=getAnimation$1(key$1,motionValue,value$1,transition,onComplete);motionValue.start(animation)};return{motionValues,stop:stop$1,push:push$1}}function useMotionControls$1(motionProperties,variants={},{motionValues,push:push$1,stop:stop$1}=useMotionTransitions$1()){let _variants=unref(variants),isAnimating=ref(!1);watch(motionValues,newVal=>{isAnimating.value=Object.values(newVal).filter(value$1=>value$1.isAnimating()).length>0},{immediate:!0,deep:!0});let getVariantFromKey=variant=>{if(!_variants||!_variants[variant])throw Error(`The variant ${variant} does not exist.`);return _variants[variant]},apply$2=variant=>{typeof variant==`string`&&(variant=getVariantFromKey(variant));let animations$1=Object.entries(variant).map(([key$1,value$1])=>{if(key$1!==`transition`)return new Promise(resolve$1=>push$1(key$1,value$1,motionProperties,variant.transition||getDefaultTransition$1(key$1,variant[key$1]),resolve$1))}).filter(Boolean);async function waitForComplete(){var _variant$transition,_variant$transition$o;await Promise.all(animations$1),(_variant$transition=variant.transition)==null||(_variant$transition$o=_variant$transition.onComplete)==null||_variant$transition$o.call(_variant$transition)}return Promise.all([waitForComplete()])},set=variant=>{let variantData=isObject(variant)?variant:getVariantFromKey(variant);Object.entries(variantData).forEach(([key$1,value$1])=>{key$1!==`transition`&&push$1(key$1,value$1,motionProperties,{immediate:!0})})},leave=async done=>{let leaveVariant;if(_variants&&(_variants.leave&&(leaveVariant=_variants.leave),!_variants.leave&&_variants.initial&&(leaveVariant=_variants.initial)),!leaveVariant){done();return}await apply$2(leaveVariant),done()};return{isAnimating,apply:apply$2,set,leave,stop:stop$1}}const isBrowser$2=typeof window<`u`,supportsPointerEvents$1=()=>isBrowser$2&&(window.onpointerdown===null||__vite_import_meta_env__$1?.TEST),supportsTouchEvents$1=()=>isBrowser$2&&(window.ontouchstart===null||__vite_import_meta_env__$1?.TEST),supportsMouseEvents$1=()=>isBrowser$2&&(window.onmousedown===null||__vite_import_meta_env__$1?.TEST);function registerEventListeners$1({target:target$1,state,variants,apply:apply$2}){let _variants=unref(variants),hovered=ref(!1),tapped=ref(!1),focused=ref(!1),mutableKeys=computed(()=>{let result=[...Object.keys(state.value||{})];return _variants?(_variants.hovered&&(result=[...result,...Object.keys(_variants.hovered)]),_variants.tapped&&(result=[...result,...Object.keys(_variants.tapped)]),_variants.focused&&(result=[...result,...Object.keys(_variants.focused)]),result):result}),computedProperties=computed(()=>{let result={};for(let key$1 in Object.assign(result,state.value),hovered.value&&_variants.hovered&&Object.assign(result,_variants.hovered),tapped.value&&_variants.tapped&&Object.assign(result,_variants.tapped),focused.value&&_variants.focused&&Object.assign(result,_variants.focused),result)mutableKeys.value.includes(key$1)||delete result[key$1];return result});_variants.hovered&&(useEventListener(target$1,`mouseenter`,()=>hovered.value=!0),useEventListener(target$1,`mouseleave`,()=>{hovered.value=!1,tapped.value=!1})),_variants.tapped&&(supportsMouseEvents$1()&&(useEventListener(target$1,`mousedown`,()=>tapped.value=!0),useEventListener(target$1,`mouseup`,()=>tapped.value=!1)),supportsPointerEvents$1()&&(useEventListener(target$1,`pointerdown`,()=>tapped.value=!0),useEventListener(target$1,`pointerup`,()=>tapped.value=!1)),supportsTouchEvents$1()&&(useEventListener(target$1,`touchstart`,()=>tapped.value=!0),useEventListener(target$1,`touchend`,()=>tapped.value=!1))),_variants.focused&&(useEventListener(target$1,`focus`,()=>focused.value=!0),useEventListener(target$1,`blur`,()=>focused.value=!1)),watch([hovered,tapped,focused],()=>{apply$2(computedProperties.value)})}function registerLifeCycleHooks$1({set,target:target$1,variants,variant}){let _variants=unref(variants);watch(()=>target$1,()=>{_variants&&(_variants.initial&&(set(`initial`),variant.value=`initial`),_variants.enter&&(variant.value=`enter`))},{immediate:!0,flush:`pre`})}function registerVariantsSync$1({state,apply:apply$2}){watch(state,newVal=>{newVal&&apply$2(newVal)},{immediate:!0})}function registerVisibilityHooks$1({target:target$1,variants,variant}){let _variants=unref(variants);_variants&&(_variants.visible||_variants.visibleOnce)&&useIntersectionObserver(target$1,([{isIntersecting}])=>{_variants.visible?isIntersecting?variant.value=`visible`:variant.value=`initial`:_variants.visibleOnce&&(isIntersecting&&variant.value!==`visibleOnce`?variant.value=`visibleOnce`:variant.value||=`initial`)})}function useMotionFeatures$1(instance,options$1={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){options$1.lifeCycleHooks&®isterLifeCycleHooks$1(instance),options$1.syncVariants&®isterVariantsSync$1(instance),options$1.visibilityHooks&®isterVisibilityHooks$1(instance),options$1.eventListeners&®isterEventListeners$1(instance)}function reactiveStyle$1(props={}){let state=reactive({...props}),style=ref({});return watch(state,()=>{let result={};for(let[key$1,value$1]of Object.entries(state)){let valueType=getValueType$1(key$1),valueAsType=getValueAsType$1(value$1,valueType);result[key$1]=valueAsType}style.value=result},{immediate:!0,deep:!0}),{state,style}}function usePermissiveTarget$1(target$1,onTarget){watch(()=>unrefElement(target$1),el=>{el&&onTarget(el)},{immediate:!0})}const translateAlias$1={x:`translateX`,y:`translateY`,z:`translateZ`};function reactiveTransform$1(props={},enableHardwareAcceleration=!0){let state=reactive({...props}),transform$1=ref(``);return watch(state,newVal=>{let result=``,hasHardwareAcceleration=!1;if(enableHardwareAcceleration&&(newVal.x||newVal.y||newVal.z)){let str=[newVal.x||0,newVal.y||0,newVal.z||0].map(val=>getValueAsType$1(val,px)).join(`,`);result+=`translate3d(${str}) `,hasHardwareAcceleration=!0}for(let[key$1,value$1]of Object.entries(newVal)){if(enableHardwareAcceleration&&(key$1===`x`||key$1===`y`||key$1===`z`))continue;let valueType=getValueType$1(key$1),valueAsType=getValueAsType$1(value$1,valueType);result+=`${translateAlias$1[key$1]||key$1}(${valueAsType}) `}enableHardwareAcceleration&&!hasHardwareAcceleration&&(result+=`translateZ(0px) `),transform$1.value=result.trim()},{immediate:!0,deep:!0}),{state,transform:transform$1}}const transformAxes$1=[``,`X`,`Y`,`Z`],order$2=[`perspective`,`translate`,`scale`,`rotate`,`skew`],transformProps$1=[`transformPerspective`,`x`,`y`,`z`];order$2.forEach(operationKey=>{transformAxes$1.forEach(axesKey=>{let key$1=operationKey+axesKey;transformProps$1.push(key$1)})});const transformPropSet$1=new Set(transformProps$1);function isTransformProp$1(key$1){return transformPropSet$1.has(key$1)}const transformOriginProps$1=new Set([`originX`,`originY`,`originZ`]);function isTransformOriginProp$1(key$1){return transformOriginProps$1.has(key$1)}function splitValues$1(variant){let transform$1={},style={};return Object.entries(variant).forEach(([key$1,value$1])=>{isTransformProp$1(key$1)||isTransformOriginProp$1(key$1)?transform$1[key$1]=value$1:style[key$1]=value$1}),{transform:transform$1,style}}function variantToStyle$1(variant){let{transform:_transform,style:_style}=splitValues$1(variant),{transform:transform$1}=reactiveTransform$1(_transform),{style}=reactiveStyle$1(_style);return transform$1.value&&(style.value.transform=transform$1.value),style.value}function useElementStyle$1(target$1,onInit){let _cache$1,_target$1,{state,style}=reactiveStyle$1();return usePermissiveTarget$1(target$1,el=>{_target$1=el;for(let key$1 of Object.keys(valueTypes$1)){if(el.style[key$1]===null||el.style[key$1]===``||isTransformProp$1(key$1)||isTransformOriginProp$1(key$1))continue;state[key$1]=el.style[key$1]}_cache$1&&Object.entries(_cache$1).forEach(([key$1,value$1])=>el.style[key$1]=value$1),onInit&&onInit(state)}),watch(style,newVal=>{if(!_target$1){_cache$1=newVal;return}for(let key$1 in newVal)_target$1.style[key$1]=newVal[key$1]},{immediate:!0}),{style:state}}function parseTransform$1(transform$1){let transforms=transform$1.trim().split(/\) |\)/);if(transforms.length===1)return{};let parseValues=value$1=>value$1.endsWith(`px`)||value$1.endsWith(`deg`)?Number.parseFloat(value$1):Number.isNaN(Number(value$1))?Number(value$1):value$1;return transforms.reduce((acc,transform2)=>{if(!transform2)return acc;let[name$2,transformValue]=transform2.split(`(`),valueArray=transformValue.split(`,`),values=valueArray.map(val=>parseValues(val.endsWith(`)`)?val.replace(`)`,``):val.trim())),value$1=values.length===1?values[0]:values;return{...acc,[name$2]:value$1}},{})}function stateFromTransform$1(state,transform$1){Object.entries(parseTransform$1(transform$1)).forEach(([key$1,value$1])=>{let axes=[`x`,`y`,`z`];if(key$1===`translate3d`){if(value$1===0){axes.forEach(axis=>state[axis]=0);return}value$1.forEach((axisValue,index$1)=>state[axes[index$1]]=axisValue);return}if(value$1=Number.parseFloat(`${value$1}`),key$1===`translateX`){state.x=value$1;return}if(key$1===`translateY`){state.y=value$1;return}if(key$1===`translateZ`){state.z=value$1;return}state[key$1]=value$1})}function useElementTransform$1(target$1,onInit){let _cache$1,_target$1,{state,transform:transform$1}=reactiveTransform$1();return usePermissiveTarget$1(target$1,el=>{_target$1=el,el.style.transform&&stateFromTransform$1(state,el.style.transform),_cache$1&&(el.style.transform=_cache$1),onInit&&onInit(state)}),watch(transform$1,newValue=>{if(!_target$1){_cache$1=newValue;return}_target$1.style.transform=newValue},{immediate:!0}),{transform:state}}function objectEntries$1(obj){return Object.entries(obj)}function useMotionProperties$1(target$1,defaultValues){let motionProperties=reactive({}),apply$2=values=>Object.entries(values).forEach(([key$1,value$1])=>motionProperties[key$1]=value$1),{style}=useElementStyle$1(target$1,apply$2),{transform:transform$1}=useElementTransform$1(target$1,apply$2);return watch(motionProperties,newVal=>{objectEntries$1(newVal).forEach(([key$1,value$1])=>{let target2=isTransformProp$1(key$1)?transform$1:style;target2[key$1]&&target2[key$1]===value$1||(target2[key$1]=value$1)})},{immediate:!0,deep:!0}),usePermissiveTarget$1(target$1,()=>defaultValues&&apply$2(defaultValues)),{motionProperties,style,transform:transform$1}}function useMotionVariants$1(variants={}){let _variants=unref(variants),variant=ref(),state=computed(()=>{if(variant.value)return _variants[variant.value]});return{state,variant}}function useMotion$1(target$1,variants={},options$1){let{motionProperties}=useMotionProperties$1(target$1),{variant,state}=useMotionVariants$1(variants),controls=useMotionControls$1(motionProperties,variants),instance={target:target$1,variant,variants,state,motionProperties,...controls};return useMotionFeatures$1(instance,options$1),instance}const transitionKeys$1=[`delay`,`duration`],directivePropsKeys$1=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...transitionKeys$1];function isTransitionKey(val){return transitionKeys$1.includes(val)}function resolveVariants(node$1,variantsRef){let target$1=node$1.props?node$1.props:node$1.data&&node$1.data.attrs?node$1.data.attrs:{};if(target$1){target$1.variants&&isObject(target$1.variants)&&(variantsRef.value={...variantsRef.value,...target$1.variants});for(let key$1 of directivePropsKeys$1){if(!target$1||!target$1[key$1])continue;if(isTransitionKey(key$1)&&typeof target$1[key$1]==`number`){for(let variantKey of[`enter`,`visible`,`visibleOnce`]){let variantConfig=variantsRef.value[variantKey];if(variantConfig==null)continue;variantConfig.transition??={},variantConfig.transition[key$1]=target$1[key$1]}continue}if(isObject(target$1[key$1])){let prop=target$1[key$1];key$1===`visible-once`&&(key$1=`visibleOnce`),variantsRef.value[key$1]=prop}}}}function directive(variants,isPreset=!1){let register=(el,binding,node$1)=>{let key$1=binding.value&&typeof binding.value==`string`?binding.value:node$1.key;key$1&&motionState[key$1]&&motionState[key$1].stop();let variantsObject=isPreset?structuredClone(toRaw(variants)||{}):variants||{},variantsRef=ref(variantsObject);typeof binding.value==`object`&&(variantsRef.value=binding.value),resolveVariants(node$1,variantsRef);let motionOptions={eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1},motionInstance=useMotion$1(el,variantsRef,motionOptions);el.motionInstance=motionInstance,key$1&&(motionState[key$1]=motionInstance)},mounted=(el,_binding,_node)=>{el.motionInstance&®isterVisibilityHooks$1(el.motionInstance)};return{created:register,mounted,getSSRProps(binding,node$1){let{initial:bindingInitial}=binding.value||node$1&&node$1?.props||{};bindingInitial=unref(bindingInitial);let initial=defu({},variants?.initial||{},bindingInitial||{});if(!initial||Object.keys(initial).length===0)return;let style=variantToStyle$1(initial);return{style}}}}const fade$1={initial:{opacity:0},enter:{opacity:1}},fadeVisible$1={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce$1={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible$1={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce$1={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft$1={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft$1={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft$1={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight$1={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight$1={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight$1={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop$1={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop$1={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop$1={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom$1={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom$1={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom$1={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft$1={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft$1={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft$1={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight$1={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight$1={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight$1={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop$1={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop$1={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop$1={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom$1={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom$1={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom$1={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets$1={__proto__:null,fade:fade$1,fadeVisible:fadeVisible$1,fadeVisibleOnce:fadeVisibleOnce$1,pop:pop$1,popVisible:popVisible$1,popVisibleOnce:popVisibleOnce$1,rollBottom:rollBottom$1,rollLeft:rollLeft$1,rollRight:rollRight$1,rollTop:rollTop$1,rollVisibleBottom:rollVisibleBottom$1,rollVisibleLeft:rollVisibleLeft$1,rollVisibleOnceBottom:rollVisibleOnceBottom$1,rollVisibleOnceLeft:rollVisibleOnceLeft$1,rollVisibleOnceRight:rollVisibleOnceRight$1,rollVisibleOnceTop:rollVisibleOnceTop$1,rollVisibleRight:rollVisibleRight$1,rollVisibleTop:rollVisibleTop$1,slideBottom:slideBottom$1,slideLeft:slideLeft$1,slideRight:slideRight$1,slideTop:slideTop$1,slideVisibleBottom:slideVisibleBottom$1,slideVisibleLeft:slideVisibleLeft$1,slideVisibleOnceBottom:slideVisibleOnceBottom$1,slideVisibleOnceLeft:slideVisibleOnceLeft$1,slideVisibleOnceRight:slideVisibleOnceRight$1,slideVisibleOnceTop:slideVisibleOnceTop$1,slideVisibleRight:slideVisibleRight$1,slideVisibleTop:slideVisibleTop$1};function slugify(str){let a$2=`àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;`,b$3=`aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------`,p$5=new RegExp(a$2.split(``).join(`|`),`g`);return str.toString().replace(/[A-Z]/g,s$1=>`-${s$1}`).toLowerCase().replace(/\s+/g,`-`).replace(p$5,c$4=>b$3.charAt(a$2.indexOf(c$4))).replace(/&/g,`-and-`).replace(/[^\w\-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}const CUSTOM_PRESETS$1=Symbol(``),MotionComponentProps$1={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 isObject$3(val){return Object.prototype.toString.call(val)===`[object Object]`}function clone$1(v$1){if(Array.isArray(v$1))return v$1.map(clone$1);if(isObject$3(v$1)){let res={};for(let key$1 in v$1)res[key$1]=clone$1(v$1[key$1]);return res}return v$1}function setupMotionComponent$1(props){let instances=reactive({}),customPresets=inject(CUSTOM_PRESETS$1,{}),preset=computed(()=>props.preset==null?{}:customPresets!=null&&props.preset in customPresets?structuredClone(toRaw(customPresets)[props.preset]):props.preset in presets$1?structuredClone(presets$1[props.preset]):{}),propsConfig=computed(()=>({initial:props.initial,enter:props.enter,leave:props.leave,visible:props.visible,visibleOnce:props.visibleOnce,hovered:props.hovered,tapped:props.tapped,focused:props.focused}));function applyTransitionHelpers(config,values){for(let transitionKey of[`delay`,`duration`]){if(values[transitionKey]==null)continue;let transitionValueParsed=Number.parseInt(values[transitionKey]);for(let variantKey of[`enter`,`visible`,`visibleOnce`]){let variantConfig=config[variantKey];if(variantConfig==null)continue;variantConfig.transition??={},variantConfig.transition[transitionKey]=transitionValueParsed}}return config}let motionConfig=computed(()=>{let config=defu({},propsConfig.value,preset.value,props.variants||{});return applyTransitionHelpers({...config},props)});function setNodeInstance(node$1,index$1,style){var _node$1$props;node$1.props??={},(_node$1$props=node$1.props).style??(_node$1$props.style={}),node$1.props.style={...node$1.props.style,...style};let elementMotionConfig=applyTransitionHelpers(clone$1(motionConfig.value),node$1.props);return node$1.props.onVnodeMounted=({el})=>{instances[index$1]=useMotion$1(el,elementMotionConfig)},node$1.props.onVnodeUpdated=({el})=>{let styles=variantToStyle$1(instances[index$1].state);for(let[key$1,val]of Object.entries(styles))el.style[key$1]=val},node$1}return{motionConfig,setNodeInstance}}const MotionComponent$1=defineComponent({name:`Motion`,props:{...MotionComponentProps$1,is:{type:[String,Object],default:`div`}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent$1(props);return()=>{let style=variantToStyle$1(motionConfig.value.initial||{}),node$1=h(props.is,void 0,slots);return setNodeInstance(node$1,0,style),node$1}}}),MotionGroupComponent$1=defineComponent({name:`MotionGroup`,props:{...MotionComponentProps$1,is:{type:[String,Object],required:!1}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent$1(props);return()=>{var _slots$default;let style=variantToStyle$1(motionConfig.value.initial||{}),nodes=(_slots$default=slots.default)?.call(slots)||[];for(let i$1=0;i$1activePinia=pinia$1,piniaSymbol=Symbol();function isPlainObject$4(o$1){return o$1&&typeof o$1==`object`&&Object.prototype.toString.call(o$1)===`[object Object]`&&typeof o$1.toJSON!=`function`}var MutationType;(function(MutationType$1){MutationType$1.direct=`direct`,MutationType$1.patchObject=`patch object`,MutationType$1.patchFunction=`patch function`})(MutationType||={});const IS_CLIENT=typeof window<`u`,_global=(()=>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 bom(blob,{autoBom=!1}={}){return autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)?new Blob([``,blob],{type:blob.type}):blob}function download(url,name$2,opts){let xhr=new XMLHttpRequest;xhr.open(`GET`,url),xhr.responseType=`blob`,xhr.onload=function(){saveAs(xhr.response,name$2,opts)},xhr.onerror=function(){console.error(`could not download file`)},xhr.send()}function corsEnabled(url){let xhr=new XMLHttpRequest;xhr.open(`HEAD`,url,!1);try{xhr.send()}catch{}return xhr.status>=200&&xhr.status<=299}function click(node$1){try{node$1.dispatchEvent(new MouseEvent(`click`))}catch{let evt=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});node$1.dispatchEvent(evt)}}const _navigator=typeof navigator==`object`?navigator:{userAgent:``},isMacOSWebView=(()=>/Macintosh/.test(_navigator.userAgent)&&/AppleWebKit/.test(_navigator.userAgent)&&!/Safari/.test(_navigator.userAgent))(),saveAs=IS_CLIENT?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!isMacOSWebView?downloadSaveAs:`msSaveOrOpenBlob`in _navigator?msSaveAs:fileSaverSaveAs:()=>{};function downloadSaveAs(blob,name$2=`download`,opts){let a$2=document.createElement(`a`);a$2.download=name$2,a$2.rel=`noopener`,typeof blob==`string`?(a$2.href=blob,a$2.origin===location.origin?click(a$2):corsEnabled(a$2.href)?download(blob,name$2,opts):(a$2.target=`_blank`,click(a$2))):(a$2.href=URL.createObjectURL(blob),setTimeout(function(){URL.revokeObjectURL(a$2.href)},4e4),setTimeout(function(){click(a$2)},0))}function msSaveAs(blob,name$2=`download`,opts){if(typeof blob==`string`)if(corsEnabled(blob))download(blob,name$2,opts);else{let a$2=document.createElement(`a`);a$2.href=blob,a$2.target=`_blank`,setTimeout(function(){click(a$2)})}else navigator.msSaveOrOpenBlob(bom(blob,opts),name$2)}function fileSaverSaveAs(blob,name$2,opts,popup){if(popup||=open(``,`_blank`),popup&&(popup.document.title=popup.document.body.innerText=`downloading...`),typeof blob==`string`)return download(blob,name$2,opts);let force=blob.type===`application/octet-stream`,isSafari=/constructor/i.test(String(_global.HTMLElement))||`safari`in _global,isChromeIOS=/CriOS\/[\d]+/.test(navigator.userAgent);if((isChromeIOS||force&&isSafari||isMacOSWebView)&&typeof FileReader<`u`){let reader=new FileReader;reader.onloadend=function(){let url=reader.result;if(typeof url!=`string`)throw popup=null,Error(`Wrong reader.result type`);url=isChromeIOS?url:url.replace(/^data:[^;]*;/,`data:attachment/file;`),popup?popup.location.href=url:location.assign(url),popup=null},reader.readAsDataURL(blob)}else{let url=URL.createObjectURL(blob);popup?popup.location.assign(url):location.href=url,popup=null,setTimeout(function(){URL.revokeObjectURL(url)},4e4)}}const{assign:assign$1$1}=Object;function createPinia(){let scope=effectScope(!0),state=scope.run(()=>ref({})),_p=[],toBeInstalled=[],pinia$1=markRaw({install(app){setActivePinia(pinia$1),pinia$1._a=app,app.provide(piniaSymbol,pinia$1),app.config.globalProperties.$pinia=pinia$1,toBeInstalled.forEach(plugin=>_p.push(plugin)),toBeInstalled=[]},use(plugin){return this._a?_p.push(plugin):toBeInstalled.push(plugin),this},_p,_a:null,_e:scope,_s:new Map,state});return pinia$1}const noop$1=()=>{};function addSubscription(subscriptions,callback,detached,onCleanup=noop$1){subscriptions.push(callback);let removeSubscription=()=>{let idx=subscriptions.indexOf(callback);idx>-1&&(subscriptions.splice(idx,1),onCleanup())};return!detached&&getCurrentScope()&&onScopeDispose(removeSubscription),removeSubscription}function triggerSubscriptions(subscriptions,...args){subscriptions.slice().forEach(callback=>{callback(...args)})}const fallbackRunWithContext=fn$5=>fn$5(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(target$1,patchToApply){for(let key$1 in target$1 instanceof Map&&patchToApply instanceof Map?patchToApply.forEach((value$1,key$1)=>target$1.set(key$1,value$1)):target$1 instanceof Set&&patchToApply instanceof Set&&patchToApply.forEach(target$1.add,target$1),patchToApply){if(!patchToApply.hasOwnProperty(key$1))continue;let subPatch=patchToApply[key$1],targetValue=target$1[key$1];isPlainObject$4(targetValue)&&isPlainObject$4(subPatch)&&target$1.hasOwnProperty(key$1)&&!isRef(subPatch)&&!isReactive(subPatch)?target$1[key$1]=mergeReactiveObjects(targetValue,subPatch):target$1[key$1]=subPatch}return target$1}const skipHydrateSymbol=Symbol();function shouldHydrate(obj){return!isPlainObject$4(obj)||!Object.prototype.hasOwnProperty.call(obj,skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(o$1){return!!(isRef(o$1)&&o$1.effect)}function createOptionsStore(id,options$1,pinia$1,hot){let{state,actions,getters}=options$1,initialState=pinia$1.state.value[id],store;function setup(){initialState||(pinia$1.state.value[id]=state?state():{});let localState=toRefs(pinia$1.state.value[id]);return assign$2(localState,actions,Object.keys(getters||{}).reduce((computedGetters,name$2)=>(computedGetters[name$2]=markRaw(computed(()=>{setActivePinia(pinia$1);let store$1=pinia$1._s.get(id);return getters[name$2].call(store$1,store$1)})),computedGetters),{}))}return store=createSetupStore(id,setup,options$1,pinia$1,hot,!0),store}function createSetupStore($id,setup,options$1={},pinia$1,hot,isOptionsStore){let scope,optionsForPlugin=assign$2({actions:{}},options$1),$subscribeOptions={deep:!0},isListening,isSyncListening,subscriptions=[],actionSubscriptions=[],debuggerEvents,initialState=pinia$1.state.value[$id];!isOptionsStore&&!initialState&&(pinia$1.state.value[$id]={});let hotState=ref({}),activeListener;function $patch(partialStateOrMutator){let subscriptionMutation;isListening=isSyncListening=!1,typeof partialStateOrMutator==`function`?(partialStateOrMutator(pinia$1.state.value[$id]),subscriptionMutation={type:MutationType.patchFunction,storeId:$id,events:debuggerEvents}):(mergeReactiveObjects(pinia$1.state.value[$id],partialStateOrMutator),subscriptionMutation={type:MutationType.patchObject,payload:partialStateOrMutator,storeId:$id,events:debuggerEvents});let myListenerId=activeListener=Symbol();nextTick().then(()=>{activeListener===myListenerId&&(isListening=!0)}),isSyncListening=!0,triggerSubscriptions(subscriptions,subscriptionMutation,pinia$1.state.value[$id])}let $reset=isOptionsStore?function(){let{state}=options$1,newState=state?state():{};this.$patch($state=>{assign$2($state,newState)})}:noop$1;function $dispose(){scope.stop(),subscriptions=[],actionSubscriptions=[],pinia$1._s.delete($id)}let action=(fn$5,name$2=``)=>{if(ACTION_MARKER in fn$5)return fn$5[ACTION_NAME]=name$2,fn$5;let wrappedAction=function(){setActivePinia(pinia$1);let args=Array.from(arguments),afterCallbackList=[],onErrorCallbackList=[];function after(callback){afterCallbackList.push(callback)}function onError(callback){onErrorCallbackList.push(callback)}triggerSubscriptions(actionSubscriptions,{args,name:wrappedAction[ACTION_NAME],store,after,onError});let ret;try{ret=fn$5.apply(this&&this.$id===$id?this:store,args)}catch(error){throw triggerSubscriptions(onErrorCallbackList,error),error}return ret instanceof Promise?ret.then(value$1=>(triggerSubscriptions(afterCallbackList,value$1),value$1)).catch(error=>(triggerSubscriptions(onErrorCallbackList,error),Promise.reject(error))):(triggerSubscriptions(afterCallbackList,ret),ret)};return wrappedAction[ACTION_MARKER]=!0,wrappedAction[ACTION_NAME]=name$2,wrappedAction},_hmrPayload=markRaw({actions:{},getters:{},state:[],hotState}),partialStore={_p:pinia$1,$id,$onAction:addSubscription.bind(null,actionSubscriptions),$patch,$reset,$subscribe(callback,options$2={}){let removeSubscription=addSubscription(subscriptions,callback,options$2.detached,()=>stopWatcher()),stopWatcher=scope.run(()=>watch(()=>pinia$1.state.value[$id],state=>{(options$2.flush===`sync`?isSyncListening:isListening)&&callback({storeId:$id,type:MutationType.direct,events:debuggerEvents},state)},assign$2({},$subscribeOptions,options$2)));return removeSubscription},$dispose},store=reactive(partialStore);pinia$1._s.set($id,store);let runWithContext=pinia$1._a&&pinia$1._a.runWithContext||fallbackRunWithContext,setupStore=runWithContext(()=>pinia$1._e.run(()=>(scope=effectScope()).run(()=>setup({action}))));for(let key$1 in setupStore){let prop=setupStore[key$1];if(isRef(prop)&&!isComputed(prop)||isReactive(prop))isOptionsStore||(initialState&&shouldHydrate(prop)&&(isRef(prop)?prop.value=initialState[key$1]:mergeReactiveObjects(prop,initialState[key$1])),pinia$1.state.value[$id][key$1]=prop);else if(typeof prop==`function`){let actionValue=action(prop,key$1);setupStore[key$1]=actionValue,optionsForPlugin.actions[key$1]=prop}}return assign$2(store,setupStore),assign$2(toRaw(store),setupStore),Object.defineProperty(store,`$state`,{get:()=>pinia$1.state.value[$id],set:state=>{$patch($state=>{assign$2($state,state)})}}),pinia$1._p.forEach(extender=>{assign$2(store,scope.run(()=>extender({store,app:pinia$1._a,pinia:pinia$1,options:optionsForPlugin})))}),initialState&&isOptionsStore&&options$1.hydrate&&options$1.hydrate(store.$state,initialState),isListening=!0,isSyncListening=!0,store} +}`;var WebXRDepthSensing=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(renderer$1,depthData,renderState){if(this.texture===null){let texture=new Texture,texProps=renderer$1.properties.get(texture);texProps.__webglTexture=depthData.texture,(depthData.depthNear!==renderState.depthNear||depthData.depthFar!==renderState.depthFar)&&(this.depthNear=depthData.depthNear,this.depthFar=depthData.depthFar),this.texture=texture}}getMesh(cameraXR){if(this.texture!==null&&this.mesh===null){let viewport=cameraXR.cameras[0].viewport,material=new ShaderMaterial({vertexShader:_occlusion_vertex,fragmentShader:_occlusion_fragment,uniforms:{depthColor:{value:this.texture},depthWidth:{value:viewport.z},depthHeight:{value:viewport.w}}});this.mesh=new Mesh(new PlaneGeometry(20,20),material)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},WebXRManager=class extends EventDispatcher{constructor(renderer$1,gl){super();let scope=this,session=null,framebufferScaleFactor=1,referenceSpace=null,referenceSpaceType=`local-floor`,foveation=1,customReferenceSpace=null,pose=null,glBinding=null,glProjLayer=null,glBaseLayer=null,xrFrame=null,depthSensing=new WebXRDepthSensing,attributes=gl.getContextAttributes(),initialRenderTarget=null,newRenderTarget=null,controllers=[],controllerInputSources=[],currentSize=new Vector2,currentPixelRatio=null,cameraL=new PerspectiveCamera;cameraL.viewport=new Vector4;let cameraR=new PerspectiveCamera;cameraR.viewport=new Vector4;let cameras=[cameraL,cameraR],cameraXR=new ArrayCamera,_currentDepthNear=null,_currentDepthFar=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(index$1){let controller=controllers[index$1];return controller===void 0&&(controller=new WebXRController,controllers[index$1]=controller),controller.getTargetRaySpace()},this.getControllerGrip=function(index$1){let controller=controllers[index$1];return controller===void 0&&(controller=new WebXRController,controllers[index$1]=controller),controller.getGripSpace()},this.getHand=function(index$1){let controller=controllers[index$1];return controller===void 0&&(controller=new WebXRController,controllers[index$1]=controller),controller.getHandSpace()};function onSessionEvent(event){let controllerIndex=controllerInputSources.indexOf(event.inputSource);if(controllerIndex===-1)return;let controller=controllers[controllerIndex];controller!==void 0&&(controller.update(event.inputSource,event.frame,customReferenceSpace||referenceSpace),controller.dispatchEvent({type:event.type,data:event.inputSource}))}function onSessionEnd(){session.removeEventListener(`select`,onSessionEvent),session.removeEventListener(`selectstart`,onSessionEvent),session.removeEventListener(`selectend`,onSessionEvent),session.removeEventListener(`squeeze`,onSessionEvent),session.removeEventListener(`squeezestart`,onSessionEvent),session.removeEventListener(`squeezeend`,onSessionEvent),session.removeEventListener(`end`,onSessionEnd),session.removeEventListener(`inputsourceschange`,onInputSourcesChange);for(let i$1=0;i$1=0&&(controllerInputSources[index$1]=null,controllers[index$1].disconnect(inputSource))}for(let i$1=0;i$1=controllerInputSources.length){controllerInputSources.push(inputSource),controllerIndex=i$2;break}else if(controllerInputSources[i$2]===null){controllerInputSources[i$2]=inputSource,controllerIndex=i$2;break}if(controllerIndex===-1)break}let controller=controllers[controllerIndex];controller&&controller.connect(inputSource)}}let cameraLPos=new Vector3,cameraRPos=new Vector3;function setProjectionFromUnion(camera,cameraL$1,cameraR$1){cameraLPos.setFromMatrixPosition(cameraL$1.matrixWorld),cameraRPos.setFromMatrixPosition(cameraR$1.matrixWorld);let ipd=cameraLPos.distanceTo(cameraRPos),projL=cameraL$1.projectionMatrix.elements,projR=cameraR$1.projectionMatrix.elements,near=projL[14]/(projL[10]-1),far=projL[14]/(projL[10]+1),topFov=(projL[9]+1)/projL[5],bottomFov=(projL[9]-1)/projL[5],leftFov=(projL[8]-1)/projL[0],rightFov=(projR[8]+1)/projR[0],left=near*leftFov,right=near*rightFov,zOffset=ipd/(-leftFov+rightFov),xOffset=zOffset*-leftFov;if(cameraL$1.matrixWorld.decompose(camera.position,camera.quaternion,camera.scale),camera.translateX(xOffset),camera.translateZ(zOffset),camera.matrixWorld.compose(camera.position,camera.quaternion,camera.scale),camera.matrixWorldInverse.copy(camera.matrixWorld).invert(),projL[10]===-1)camera.projectionMatrix.copy(cameraL$1.projectionMatrix),camera.projectionMatrixInverse.copy(cameraL$1.projectionMatrixInverse);else{let near2=near+zOffset,far2=far+zOffset,left2=left-xOffset,right2=right+(ipd-xOffset),top2=topFov*far/far2*near2,bottom2=bottomFov*far/far2*near2;camera.projectionMatrix.makePerspective(left2,right2,top2,bottom2,near2,far2),camera.projectionMatrixInverse.copy(camera.projectionMatrix).invert()}}function updateCamera(camera,parent){parent===null?camera.matrixWorld.copy(camera.matrix):camera.matrixWorld.multiplyMatrices(parent.matrixWorld,camera.matrix),camera.matrixWorldInverse.copy(camera.matrixWorld).invert()}this.updateCamera=function(camera){if(session===null)return;let depthNear=camera.near,depthFar=camera.far;depthSensing.texture!==null&&(depthSensing.depthNear>0&&(depthNear=depthSensing.depthNear),depthSensing.depthFar>0&&(depthFar=depthSensing.depthFar)),cameraXR.near=cameraR.near=cameraL.near=depthNear,cameraXR.far=cameraR.far=cameraL.far=depthFar,(_currentDepthNear!==cameraXR.near||_currentDepthFar!==cameraXR.far)&&(session.updateRenderState({depthNear:cameraXR.near,depthFar:cameraXR.far}),_currentDepthNear=cameraXR.near,_currentDepthFar=cameraXR.far),cameraL.layers.mask=camera.layers.mask|2,cameraR.layers.mask=camera.layers.mask|4,cameraXR.layers.mask=cameraL.layers.mask|cameraR.layers.mask;let parent=camera.parent,cameras$1=cameraXR.cameras;updateCamera(cameraXR,parent);for(let i$1=0;i$10&&(uniforms.alphaTest.value=material.alphaTest);let materialProperties=properties.get(material),envMap=materialProperties.envMap,envMapRotation=materialProperties.envMapRotation;envMap&&(uniforms.envMap.value=envMap,_e1.copy(envMapRotation),_e1.x*=-1,_e1.y*=-1,_e1.z*=-1,envMap.isCubeTexture&&envMap.isRenderTargetTexture===!1&&(_e1.y*=-1,_e1.z*=-1),uniforms.envMapRotation.value.setFromMatrix4(_m1.makeRotationFromEuler(_e1)),uniforms.flipEnvMap.value=envMap.isCubeTexture&&envMap.isRenderTargetTexture===!1?-1:1,uniforms.reflectivity.value=material.reflectivity,uniforms.ior.value=material.ior,uniforms.refractionRatio.value=material.refractionRatio),material.lightMap&&(uniforms.lightMap.value=material.lightMap,uniforms.lightMapIntensity.value=material.lightMapIntensity,refreshTransformUniform(material.lightMap,uniforms.lightMapTransform)),material.aoMap&&(uniforms.aoMap.value=material.aoMap,uniforms.aoMapIntensity.value=material.aoMapIntensity,refreshTransformUniform(material.aoMap,uniforms.aoMapTransform))}function refreshUniformsLine(uniforms,material){uniforms.diffuse.value.copy(material.color),uniforms.opacity.value=material.opacity,material.map&&(uniforms.map.value=material.map,refreshTransformUniform(material.map,uniforms.mapTransform))}function refreshUniformsDash(uniforms,material){uniforms.dashSize.value=material.dashSize,uniforms.totalSize.value=material.dashSize+material.gapSize,uniforms.scale.value=material.scale}function refreshUniformsPoints(uniforms,material,pixelRatio,height){uniforms.diffuse.value.copy(material.color),uniforms.opacity.value=material.opacity,uniforms.size.value=material.size*pixelRatio,uniforms.scale.value=height*.5,material.map&&(uniforms.map.value=material.map,refreshTransformUniform(material.map,uniforms.uvTransform)),material.alphaMap&&(uniforms.alphaMap.value=material.alphaMap,refreshTransformUniform(material.alphaMap,uniforms.alphaMapTransform)),material.alphaTest>0&&(uniforms.alphaTest.value=material.alphaTest)}function refreshUniformsSprites(uniforms,material){uniforms.diffuse.value.copy(material.color),uniforms.opacity.value=material.opacity,uniforms.rotation.value=material.rotation,material.map&&(uniforms.map.value=material.map,refreshTransformUniform(material.map,uniforms.mapTransform)),material.alphaMap&&(uniforms.alphaMap.value=material.alphaMap,refreshTransformUniform(material.alphaMap,uniforms.alphaMapTransform)),material.alphaTest>0&&(uniforms.alphaTest.value=material.alphaTest)}function refreshUniformsPhong(uniforms,material){uniforms.specular.value.copy(material.specular),uniforms.shininess.value=Math.max(material.shininess,1e-4)}function refreshUniformsToon(uniforms,material){material.gradientMap&&(uniforms.gradientMap.value=material.gradientMap)}function refreshUniformsStandard(uniforms,material){uniforms.metalness.value=material.metalness,material.metalnessMap&&(uniforms.metalnessMap.value=material.metalnessMap,refreshTransformUniform(material.metalnessMap,uniforms.metalnessMapTransform)),uniforms.roughness.value=material.roughness,material.roughnessMap&&(uniforms.roughnessMap.value=material.roughnessMap,refreshTransformUniform(material.roughnessMap,uniforms.roughnessMapTransform)),material.envMap&&(uniforms.envMapIntensity.value=material.envMapIntensity)}function refreshUniformsPhysical(uniforms,material,transmissionRenderTarget){uniforms.ior.value=material.ior,material.sheen>0&&(uniforms.sheenColor.value.copy(material.sheenColor).multiplyScalar(material.sheen),uniforms.sheenRoughness.value=material.sheenRoughness,material.sheenColorMap&&(uniforms.sheenColorMap.value=material.sheenColorMap,refreshTransformUniform(material.sheenColorMap,uniforms.sheenColorMapTransform)),material.sheenRoughnessMap&&(uniforms.sheenRoughnessMap.value=material.sheenRoughnessMap,refreshTransformUniform(material.sheenRoughnessMap,uniforms.sheenRoughnessMapTransform))),material.clearcoat>0&&(uniforms.clearcoat.value=material.clearcoat,uniforms.clearcoatRoughness.value=material.clearcoatRoughness,material.clearcoatMap&&(uniforms.clearcoatMap.value=material.clearcoatMap,refreshTransformUniform(material.clearcoatMap,uniforms.clearcoatMapTransform)),material.clearcoatRoughnessMap&&(uniforms.clearcoatRoughnessMap.value=material.clearcoatRoughnessMap,refreshTransformUniform(material.clearcoatRoughnessMap,uniforms.clearcoatRoughnessMapTransform)),material.clearcoatNormalMap&&(uniforms.clearcoatNormalMap.value=material.clearcoatNormalMap,refreshTransformUniform(material.clearcoatNormalMap,uniforms.clearcoatNormalMapTransform),uniforms.clearcoatNormalScale.value.copy(material.clearcoatNormalScale),material.side===BackSide&&uniforms.clearcoatNormalScale.value.negate())),material.dispersion>0&&(uniforms.dispersion.value=material.dispersion),material.iridescence>0&&(uniforms.iridescence.value=material.iridescence,uniforms.iridescenceIOR.value=material.iridescenceIOR,uniforms.iridescenceThicknessMinimum.value=material.iridescenceThicknessRange[0],uniforms.iridescenceThicknessMaximum.value=material.iridescenceThicknessRange[1],material.iridescenceMap&&(uniforms.iridescenceMap.value=material.iridescenceMap,refreshTransformUniform(material.iridescenceMap,uniforms.iridescenceMapTransform)),material.iridescenceThicknessMap&&(uniforms.iridescenceThicknessMap.value=material.iridescenceThicknessMap,refreshTransformUniform(material.iridescenceThicknessMap,uniforms.iridescenceThicknessMapTransform))),material.transmission>0&&(uniforms.transmission.value=material.transmission,uniforms.transmissionSamplerMap.value=transmissionRenderTarget.texture,uniforms.transmissionSamplerSize.value.set(transmissionRenderTarget.width,transmissionRenderTarget.height),material.transmissionMap&&(uniforms.transmissionMap.value=material.transmissionMap,refreshTransformUniform(material.transmissionMap,uniforms.transmissionMapTransform)),uniforms.thickness.value=material.thickness,material.thicknessMap&&(uniforms.thicknessMap.value=material.thicknessMap,refreshTransformUniform(material.thicknessMap,uniforms.thicknessMapTransform)),uniforms.attenuationDistance.value=material.attenuationDistance,uniforms.attenuationColor.value.copy(material.attenuationColor)),material.anisotropy>0&&(uniforms.anisotropyVector.value.set(material.anisotropy*Math.cos(material.anisotropyRotation),material.anisotropy*Math.sin(material.anisotropyRotation)),material.anisotropyMap&&(uniforms.anisotropyMap.value=material.anisotropyMap,refreshTransformUniform(material.anisotropyMap,uniforms.anisotropyMapTransform))),uniforms.specularIntensity.value=material.specularIntensity,uniforms.specularColor.value.copy(material.specularColor),material.specularColorMap&&(uniforms.specularColorMap.value=material.specularColorMap,refreshTransformUniform(material.specularColorMap,uniforms.specularColorMapTransform)),material.specularIntensityMap&&(uniforms.specularIntensityMap.value=material.specularIntensityMap,refreshTransformUniform(material.specularIntensityMap,uniforms.specularIntensityMapTransform))}function refreshUniformsMatcap(uniforms,material){material.matcap&&(uniforms.matcap.value=material.matcap)}function refreshUniformsDistance(uniforms,material){let light=properties.get(material).light;uniforms.referencePosition.value.setFromMatrixPosition(light.matrixWorld),uniforms.nearDistance.value=light.shadow.camera.near,uniforms.farDistance.value=light.shadow.camera.far}return{refreshFogUniforms,refreshMaterialUniforms}}function WebGLUniformsGroups(gl,info,capabilities,state){let buffers={},updateList={},allocatedBindingPoints=[],maxBindingPoints=gl.getParameter(gl.MAX_UNIFORM_BUFFER_BINDINGS);function bind(uniformsGroup,program){let webglProgram=program.program;state.uniformBlockBinding(uniformsGroup,webglProgram)}function update(uniformsGroup,program){let buffer$1=buffers[uniformsGroup.id];buffer$1===void 0&&(prepareUniformsGroup(uniformsGroup),buffer$1=createBuffer(uniformsGroup),buffers[uniformsGroup.id]=buffer$1,uniformsGroup.addEventListener(`dispose`,onUniformsGroupsDispose));let webglProgram=program.program;state.updateUBOMapping(uniformsGroup,webglProgram);let frame$1=info.render.frame;updateList[uniformsGroup.id]!==frame$1&&(updateBufferData(uniformsGroup),updateList[uniformsGroup.id]=frame$1)}function createBuffer(uniformsGroup){let bindingPointIndex=allocateBindingPointIndex();uniformsGroup.__bindingPointIndex=bindingPointIndex;let buffer$1=gl.createBuffer(),size$1=uniformsGroup.__size,usage=uniformsGroup.usage;return gl.bindBuffer(gl.UNIFORM_BUFFER,buffer$1),gl.bufferData(gl.UNIFORM_BUFFER,size$1,usage),gl.bindBuffer(gl.UNIFORM_BUFFER,null),gl.bindBufferBase(gl.UNIFORM_BUFFER,bindingPointIndex,buffer$1),buffer$1}function allocateBindingPointIndex(){for(let i$1=0;i$10&&(offset$1+=chunkSize-chunkOffset),uniformsGroup.__size=offset$1,uniformsGroup.__cache={},this}function getUniformSize(value$1){let info$1={boundary:0,storage:0};return typeof value$1==`number`||typeof value$1==`boolean`?(info$1.boundary=4,info$1.storage=4):value$1.isVector2?(info$1.boundary=8,info$1.storage=8):value$1.isVector3||value$1.isColor?(info$1.boundary=16,info$1.storage=12):value$1.isVector4?(info$1.boundary=16,info$1.storage=16):value$1.isMatrix3?(info$1.boundary=48,info$1.storage=48):value$1.isMatrix4?(info$1.boundary=64,info$1.storage=64):value$1.isTexture?console.warn(`THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group.`):console.warn(`THREE.WebGLRenderer: Unsupported uniform value type.`,value$1),info$1}function onUniformsGroupsDispose(event){let uniformsGroup=event.target;uniformsGroup.removeEventListener(`dispose`,onUniformsGroupsDispose);let index$1=allocatedBindingPoints.indexOf(uniformsGroup.__bindingPointIndex);allocatedBindingPoints.splice(index$1,1),gl.deleteBuffer(buffers[uniformsGroup.id]),delete buffers[uniformsGroup.id],delete updateList[uniformsGroup.id]}function dispose$1(){for(let id in buffers)gl.deleteBuffer(buffers[id]);allocatedBindingPoints=[],buffers={},updateList={}}return{bind,update,dispose:dispose$1}}var WebGLRenderer=class{constructor(parameters={}){let{canvas=createCanvasElement(),context:context$1=null,depth=!0,stencil=!1,alpha:alpha$1=!1,antialias=!1,premultipliedAlpha=!0,preserveDrawingBuffer=!1,powerPreference=`default`,failIfMajorPerformanceCaveat=!1,reverseDepthBuffer=!1}=parameters;this.isWebGLRenderer=!0;let _alpha;if(context$1!==null){if(typeof WebGLRenderingContext<`u`&&context$1 instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);_alpha=context$1.getContextAttributes().alpha}else _alpha=alpha$1;let uintClearColor=new Uint32Array(4),intClearColor=new Int32Array(4),currentRenderList=null,currentRenderState=null,renderListStack=[],renderStateStack=[];this.domElement=canvas,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=NoToneMapping,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let _this=this,_isContextLost=!1;this._outputColorSpace=SRGBColorSpace;let _currentActiveCubeFace=0,_currentActiveMipmapLevel=0,_currentRenderTarget=null,_currentMaterialId=-1,_currentCamera=null,_currentViewport=new Vector4,_currentScissor=new Vector4,_currentScissorTest=null,_currentClearColor=new Color(0),_currentClearAlpha=0,_width=canvas.width,_height=canvas.height,_pixelRatio=1,_opaqueSort=null,_transparentSort=null,_viewport=new Vector4(0,0,_width,_height),_scissor=new Vector4(0,0,_width,_height),_scissorTest=!1,_frustum$2=new Frustum,_clippingEnabled=!1,_localClippingEnabled=!1,_currentProjectionMatrix=new Matrix4,_projScreenMatrix$3=new Matrix4,_vector3$1=new Vector3,_vector4=new Vector4,_emptyScene={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},_renderBackground=!1;function getTargetPixelRatio(){return _currentRenderTarget===null?_pixelRatio:1}let _gl=context$1;function getContext$1(contextName,contextAttributes){return canvas.getContext(contextName,contextAttributes)}try{let contextAttributes={alpha:!0,depth,stencil,antialias,premultipliedAlpha,preserveDrawingBuffer,powerPreference,failIfMajorPerformanceCaveat};if(`setAttribute`in canvas&&canvas.setAttribute(`data-engine`,`three.js r${REVISION}`),canvas.addEventListener(`webglcontextlost`,onContextLost,!1),canvas.addEventListener(`webglcontextrestored`,onContextRestore,!1),canvas.addEventListener(`webglcontextcreationerror`,onContextCreationError,!1),_gl===null){let contextName=`webgl2`;if(_gl=getContext$1(contextName,contextAttributes),_gl===null)throw getContext$1(contextName)?Error(`Error creating WebGL context with your selected attributes.`):Error(`Error creating WebGL context.`)}}catch(error){throw console.error(`THREE.WebGLRenderer: `+error.message),error}let extensions,capabilities,state,info,properties,textures,cubemaps,cubeuvmaps,attributes,geometries,objects,programCache,materials,renderLists,renderStates,clipping,shadowMap,background,morphtargets,bufferRenderer,indexedBufferRenderer,utils,bindingStates,uniformsGroups;function initGLContext(){extensions=new WebGLExtensions(_gl),extensions.init(),utils=new WebGLUtils(_gl,extensions),capabilities=new WebGLCapabilities(_gl,extensions,parameters,utils),state=new WebGLState(_gl,extensions),capabilities.reverseDepthBuffer&&reverseDepthBuffer&&state.buffers.depth.setReversed(!0),info=new WebGLInfo(_gl),properties=new WebGLProperties,textures=new WebGLTextures(_gl,extensions,state,properties,capabilities,utils,info),cubemaps=new WebGLCubeMaps(_this),cubeuvmaps=new WebGLCubeUVMaps(_this),attributes=new WebGLAttributes(_gl),bindingStates=new WebGLBindingStates(_gl,attributes),geometries=new WebGLGeometries(_gl,attributes,info,bindingStates),objects=new WebGLObjects(_gl,geometries,attributes,info),morphtargets=new WebGLMorphtargets(_gl,capabilities,textures),clipping=new WebGLClipping(properties),programCache=new WebGLPrograms(_this,cubemaps,cubeuvmaps,extensions,capabilities,bindingStates,clipping),materials=new WebGLMaterials(_this,properties),renderLists=new WebGLRenderLists,renderStates=new WebGLRenderStates(extensions),background=new WebGLBackground(_this,cubemaps,cubeuvmaps,state,objects,_alpha,premultipliedAlpha),shadowMap=new WebGLShadowMap(_this,objects,capabilities),uniformsGroups=new WebGLUniformsGroups(_gl,info,capabilities,state),bufferRenderer=new WebGLBufferRenderer(_gl,extensions,info),indexedBufferRenderer=new WebGLIndexedBufferRenderer(_gl,extensions,info),info.programs=programCache.programs,_this.capabilities=capabilities,_this.extensions=extensions,_this.properties=properties,_this.renderLists=renderLists,_this.shadowMap=shadowMap,_this.state=state,_this.info=info}initGLContext();let xr$1=new WebXRManager(_this,_gl);this.xr=xr$1,this.getContext=function(){return _gl},this.getContextAttributes=function(){return _gl.getContextAttributes()},this.forceContextLoss=function(){let extension$1=extensions.get(`WEBGL_lose_context`);extension$1&&extension$1.loseContext()},this.forceContextRestore=function(){let extension$1=extensions.get(`WEBGL_lose_context`);extension$1&&extension$1.restoreContext()},this.getPixelRatio=function(){return _pixelRatio},this.setPixelRatio=function(value$1){value$1!==void 0&&(_pixelRatio=value$1,this.setSize(_width,_height,!1))},this.getSize=function(target$1){return target$1.set(_width,_height)},this.setSize=function(width,height,updateStyle=!0){if(xr$1.isPresenting){console.warn(`THREE.WebGLRenderer: Can't change size while VR device is presenting.`);return}_width=width,_height=height,canvas.width=Math.floor(width*_pixelRatio),canvas.height=Math.floor(height*_pixelRatio),updateStyle===!0&&(canvas.style.width=width+`px`,canvas.style.height=height+`px`),this.setViewport(0,0,width,height)},this.getDrawingBufferSize=function(target$1){return target$1.set(_width*_pixelRatio,_height*_pixelRatio).floor()},this.setDrawingBufferSize=function(width,height,pixelRatio){_width=width,_height=height,_pixelRatio=pixelRatio,canvas.width=Math.floor(width*pixelRatio),canvas.height=Math.floor(height*pixelRatio),this.setViewport(0,0,width,height)},this.getCurrentViewport=function(target$1){return target$1.copy(_currentViewport)},this.getViewport=function(target$1){return target$1.copy(_viewport)},this.setViewport=function(x$3,y$2,width,height){x$3.isVector4?_viewport.set(x$3.x,x$3.y,x$3.z,x$3.w):_viewport.set(x$3,y$2,width,height),state.viewport(_currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).round())},this.getScissor=function(target$1){return target$1.copy(_scissor)},this.setScissor=function(x$3,y$2,width,height){x$3.isVector4?_scissor.set(x$3.x,x$3.y,x$3.z,x$3.w):_scissor.set(x$3,y$2,width,height),state.scissor(_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).round())},this.getScissorTest=function(){return _scissorTest},this.setScissorTest=function(boolean$1){state.setScissorTest(_scissorTest=boolean$1)},this.setOpaqueSort=function(method){_opaqueSort=method},this.setTransparentSort=function(method){_transparentSort=method},this.getClearColor=function(target$1){return target$1.copy(background.getClearColor())},this.setClearColor=function(){background.setClearColor(...arguments)},this.getClearAlpha=function(){return background.getClearAlpha()},this.setClearAlpha=function(){background.setClearAlpha(...arguments)},this.clear=function(color$2=!0,depth$1=!0,stencil$1=!0){let bits=0;if(color$2){let isIntegerFormat=!1;if(_currentRenderTarget!==null){let targetFormat=_currentRenderTarget.texture.format;isIntegerFormat=targetFormat===RGBAIntegerFormat||targetFormat===RGIntegerFormat||targetFormat===RedIntegerFormat}if(isIntegerFormat){let targetType=_currentRenderTarget.texture.type,isUnsignedType=targetType===UnsignedByteType||targetType===UnsignedIntType||targetType===UnsignedShortType||targetType===UnsignedInt248Type||targetType===UnsignedShort4444Type||targetType===UnsignedShort5551Type,clearColor=background.getClearColor(),a$2=background.getClearAlpha(),r$2=clearColor.r,g$2=clearColor.g,b$3=clearColor.b;isUnsignedType?(uintClearColor[0]=r$2,uintClearColor[1]=g$2,uintClearColor[2]=b$3,uintClearColor[3]=a$2,_gl.clearBufferuiv(_gl.COLOR,0,uintClearColor)):(intClearColor[0]=r$2,intClearColor[1]=g$2,intClearColor[2]=b$3,intClearColor[3]=a$2,_gl.clearBufferiv(_gl.COLOR,0,intClearColor))}else bits|=_gl.COLOR_BUFFER_BIT}depth$1&&(bits|=_gl.DEPTH_BUFFER_BIT),stencil$1&&(bits|=_gl.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),_gl.clear(bits)},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(){canvas.removeEventListener(`webglcontextlost`,onContextLost,!1),canvas.removeEventListener(`webglcontextrestored`,onContextRestore,!1),canvas.removeEventListener(`webglcontextcreationerror`,onContextCreationError,!1),background.dispose(),renderLists.dispose(),renderStates.dispose(),properties.dispose(),cubemaps.dispose(),cubeuvmaps.dispose(),objects.dispose(),bindingStates.dispose(),uniformsGroups.dispose(),programCache.dispose(),xr$1.dispose(),xr$1.removeEventListener(`sessionstart`,onXRSessionStart),xr$1.removeEventListener(`sessionend`,onXRSessionEnd),animation.stop()};function onContextLost(event){event.preventDefault(),console.log(`THREE.WebGLRenderer: Context Lost.`),_isContextLost=!0}function onContextRestore(){console.log(`THREE.WebGLRenderer: Context Restored.`),_isContextLost=!1;let infoAutoReset=info.autoReset,shadowMapEnabled=shadowMap.enabled,shadowMapAutoUpdate=shadowMap.autoUpdate,shadowMapNeedsUpdate=shadowMap.needsUpdate,shadowMapType=shadowMap.type;initGLContext(),info.autoReset=infoAutoReset,shadowMap.enabled=shadowMapEnabled,shadowMap.autoUpdate=shadowMapAutoUpdate,shadowMap.needsUpdate=shadowMapNeedsUpdate,shadowMap.type=shadowMapType}function onContextCreationError(event){console.error(`THREE.WebGLRenderer: A WebGL context could not be created. Reason: `,event.statusMessage)}function onMaterialDispose(event){let material=event.target;material.removeEventListener(`dispose`,onMaterialDispose),deallocateMaterial(material)}function deallocateMaterial(material){releaseMaterialProgramReferences(material),properties.remove(material)}function releaseMaterialProgramReferences(material){let programs=properties.get(material).programs;programs!==void 0&&(programs.forEach(function(program){programCache.releaseProgram(program)}),material.isShaderMaterial&&programCache.releaseShaderCache(material))}this.renderBufferDirect=function(camera,scene,geometry,material,object,group){scene===null&&(scene=_emptyScene);let frontFaceCW=object.isMesh&&object.matrixWorld.determinant()<0,program=setProgram(camera,scene,geometry,material,object);state.setMaterial(material,frontFaceCW);let index$1=geometry.index,rangeFactor=1;if(material.wireframe===!0){if(index$1=geometries.getWireframeAttribute(geometry),index$1===void 0)return;rangeFactor=2}let drawRange=geometry.drawRange,position$2=geometry.attributes.position,drawStart=drawRange.start*rangeFactor,drawEnd=(drawRange.start+drawRange.count)*rangeFactor;group!==null&&(drawStart=Math.max(drawStart,group.start*rangeFactor),drawEnd=Math.min(drawEnd,(group.start+group.count)*rangeFactor)),index$1===null?position$2!=null&&(drawStart=Math.max(drawStart,0),drawEnd=Math.min(drawEnd,position$2.count)):(drawStart=Math.max(drawStart,0),drawEnd=Math.min(drawEnd,index$1.count));let drawCount=drawEnd-drawStart;if(drawCount<0||drawCount===1/0)return;bindingStates.setup(object,material,program,geometry,index$1);let attribute,renderer$1=bufferRenderer;if(index$1!==null&&(attribute=attributes.get(index$1),renderer$1=indexedBufferRenderer,renderer$1.setIndex(attribute)),object.isMesh)material.wireframe===!0?(state.setLineWidth(material.wireframeLinewidth*getTargetPixelRatio()),renderer$1.setMode(_gl.LINES)):renderer$1.setMode(_gl.TRIANGLES);else if(object.isLine){let lineWidth=material.linewidth;lineWidth===void 0&&(lineWidth=1),state.setLineWidth(lineWidth*getTargetPixelRatio()),object.isLineSegments?renderer$1.setMode(_gl.LINES):object.isLineLoop?renderer$1.setMode(_gl.LINE_LOOP):renderer$1.setMode(_gl.LINE_STRIP)}else object.isPoints?renderer$1.setMode(_gl.POINTS):object.isSprite&&renderer$1.setMode(_gl.TRIANGLES);if(object.isBatchedMesh)if(object._multiDrawInstances!==null)warnOnce$1(`THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection.`),renderer$1.renderMultiDrawInstances(object._multiDrawStarts,object._multiDrawCounts,object._multiDrawCount,object._multiDrawInstances);else if(extensions.get(`WEBGL_multi_draw`))renderer$1.renderMultiDraw(object._multiDrawStarts,object._multiDrawCounts,object._multiDrawCount);else{let starts=object._multiDrawStarts,counts=object._multiDrawCounts,drawCount$1=object._multiDrawCount,bytesPerElement=index$1?attributes.get(index$1).bytesPerElement:1,uniforms=properties.get(material).currentProgram.getUniforms();for(let i$1=0;i$1{function checkMaterialsReady(){if(materials$1.forEach(function(material){let materialProperties=properties.get(material),program=materialProperties.currentProgram;program.isReady()&&materials$1.delete(material)}),materials$1.size===0){resolve$1(scene);return}setTimeout(checkMaterialsReady,10)}extensions.get(`KHR_parallel_shader_compile`)===null?setTimeout(checkMaterialsReady,10):checkMaterialsReady()})};let onAnimationFrameCallback=null;function onAnimationFrame(time){onAnimationFrameCallback&&onAnimationFrameCallback(time)}function onXRSessionStart(){animation.stop()}function onXRSessionEnd(){animation.start()}let animation=new WebGLAnimation;animation.setAnimationLoop(onAnimationFrame),typeof self<`u`&&animation.setContext(self),this.setAnimationLoop=function(callback){onAnimationFrameCallback=callback,xr$1.setAnimationLoop(callback),callback===null?animation.stop():animation.start()},xr$1.addEventListener(`sessionstart`,onXRSessionStart),xr$1.addEventListener(`sessionend`,onXRSessionEnd),this.render=function(scene,camera){if(camera!==void 0&&camera.isCamera!==!0){console.error(`THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(_isContextLost===!0)return;if(scene.matrixWorldAutoUpdate===!0&&scene.updateMatrixWorld(),camera.parent===null&&camera.matrixWorldAutoUpdate===!0&&camera.updateMatrixWorld(),xr$1.enabled===!0&&xr$1.isPresenting===!0&&(xr$1.cameraAutoUpdate===!0&&xr$1.updateCamera(camera),camera=xr$1.getCamera()),scene.isScene===!0&&scene.onBeforeRender(_this,scene,camera,_currentRenderTarget),currentRenderState=renderStates.get(scene,renderStateStack.length),currentRenderState.init(camera),renderStateStack.push(currentRenderState),_projScreenMatrix$3.multiplyMatrices(camera.projectionMatrix,camera.matrixWorldInverse),_frustum$2.setFromProjectionMatrix(_projScreenMatrix$3),_localClippingEnabled=this.localClippingEnabled,_clippingEnabled=clipping.init(this.clippingPlanes,_localClippingEnabled),currentRenderList=renderLists.get(scene,renderListStack.length),currentRenderList.init(),renderListStack.push(currentRenderList),xr$1.enabled===!0&&xr$1.isPresenting===!0){let depthSensingMesh=_this.xr.getDepthSensingMesh();depthSensingMesh!==null&&projectObject(depthSensingMesh,camera,-1/0,_this.sortObjects)}projectObject(scene,camera,0,_this.sortObjects),currentRenderList.finish(),_this.sortObjects===!0&¤tRenderList.sort(_opaqueSort,_transparentSort),_renderBackground=xr$1.enabled===!1||xr$1.isPresenting===!1||xr$1.hasDepthSensing()===!1,_renderBackground&&background.addToRenderList(currentRenderList,scene),this.info.render.frame++,_clippingEnabled===!0&&clipping.beginShadows();let shadowsArray=currentRenderState.state.shadowsArray;shadowMap.render(shadowsArray,scene,camera),_clippingEnabled===!0&&clipping.endShadows(),this.info.autoReset===!0&&this.info.reset();let opaqueObjects=currentRenderList.opaque,transmissiveObjects=currentRenderList.transmissive;if(currentRenderState.setupLights(),camera.isArrayCamera){let cameras=camera.cameras;if(transmissiveObjects.length>0)for(let i$1=0,l$1=cameras.length;i$10&&renderTransmissionPass(opaqueObjects,transmissiveObjects,scene,camera),_renderBackground&&background.render(scene),renderScene(currentRenderList,scene,camera);_currentRenderTarget!==null&&_currentActiveMipmapLevel===0&&(textures.updateMultisampleRenderTarget(_currentRenderTarget),textures.updateRenderTargetMipmap(_currentRenderTarget)),scene.isScene===!0&&scene.onAfterRender(_this,scene,camera),bindingStates.resetDefaultState(),_currentMaterialId=-1,_currentCamera=null,renderStateStack.pop(),renderStateStack.length>0?(currentRenderState=renderStateStack[renderStateStack.length-1],_clippingEnabled===!0&&clipping.setGlobalState(_this.clippingPlanes,currentRenderState.state.camera)):currentRenderState=null,renderListStack.pop(),currentRenderList=renderListStack.length>0?renderListStack[renderListStack.length-1]:null};function projectObject(object,camera,groupOrder,sortObjects){if(object.visible===!1)return;let visible=object.layers.test(camera.layers);if(visible){if(object.isGroup)groupOrder=object.renderOrder;else if(object.isLOD)object.autoUpdate===!0&&object.update(camera);else if(object.isLight)currentRenderState.pushLight(object),object.castShadow&¤tRenderState.pushShadow(object);else if(object.isSprite){if(!object.frustumCulled||_frustum$2.intersectsSprite(object)){sortObjects&&_vector4.setFromMatrixPosition(object.matrixWorld).applyMatrix4(_projScreenMatrix$3);let geometry=objects.update(object),material=object.material;material.visible&¤tRenderList.push(object,geometry,material,groupOrder,_vector4.z,null)}}else if((object.isMesh||object.isLine||object.isPoints)&&(!object.frustumCulled||_frustum$2.intersectsObject(object))){let geometry=objects.update(object),material=object.material;if(sortObjects&&(object.boundingSphere===void 0?(geometry.boundingSphere===null&&geometry.computeBoundingSphere(),_vector4.copy(geometry.boundingSphere.center)):(object.boundingSphere===null&&object.computeBoundingSphere(),_vector4.copy(object.boundingSphere.center)),_vector4.applyMatrix4(object.matrixWorld).applyMatrix4(_projScreenMatrix$3)),Array.isArray(material)){let groups=geometry.groups;for(let i$1=0,l$1=groups.length;i$10&&renderObjects(opaqueObjects,scene,camera),transmissiveObjects.length>0&&renderObjects(transmissiveObjects,scene,camera),transparentObjects.length>0&&renderObjects(transparentObjects,scene,camera),state.buffers.depth.setTest(!0),state.buffers.depth.setMask(!0),state.buffers.color.setMask(!0),state.setPolygonOffset(!1)}function renderTransmissionPass(opaqueObjects,transmissiveObjects,scene,camera){let overrideMaterial=scene.isScene===!0?scene.overrideMaterial:null;if(overrideMaterial!==null)return;currentRenderState.state.transmissionRenderTarget[camera.id]===void 0&&(currentRenderState.state.transmissionRenderTarget[camera.id]=new WebGLRenderTarget(1,1,{generateMipmaps:!0,type:extensions.has(`EXT_color_buffer_half_float`)||extensions.has(`EXT_color_buffer_float`)?HalfFloatType:UnsignedByteType,minFilter:LinearMipmapLinearFilter,samples:4,stencilBuffer:stencil,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ColorManagement.workingColorSpace}));let transmissionRenderTarget=currentRenderState.state.transmissionRenderTarget[camera.id],activeViewport=camera.viewport||_currentViewport;transmissionRenderTarget.setSize(activeViewport.z*_this.transmissionResolutionScale,activeViewport.w*_this.transmissionResolutionScale);let currentRenderTarget=_this.getRenderTarget(),currentActiveCubeFace=_this.getActiveCubeFace(),currentActiveMipmapLevel=_this.getActiveMipmapLevel();_this.setRenderTarget(transmissionRenderTarget),_this.getClearColor(_currentClearColor),_currentClearAlpha=_this.getClearAlpha(),_currentClearAlpha<1&&_this.setClearColor(16777215,.5),_this.clear(),_renderBackground&&background.render(scene);let currentToneMapping=_this.toneMapping;_this.toneMapping=NoToneMapping;let currentCameraViewport=camera.viewport;if(camera.viewport!==void 0&&(camera.viewport=void 0),currentRenderState.setupLightsView(camera),_clippingEnabled===!0&&clipping.setGlobalState(_this.clippingPlanes,camera),renderObjects(opaqueObjects,scene,camera),textures.updateMultisampleRenderTarget(transmissionRenderTarget),textures.updateRenderTargetMipmap(transmissionRenderTarget),extensions.has(`WEBGL_multisampled_render_to_texture`)===!1){let renderTargetNeedsUpdate=!1;for(let i$1=0,l$1=transmissiveObjects.length;i$10),morphTargets=!!geometry.morphAttributes.position,morphNormals=!!geometry.morphAttributes.normal,morphColors=!!geometry.morphAttributes.color,toneMapping=NoToneMapping;material.toneMapped&&(_currentRenderTarget===null||_currentRenderTarget.isXRRenderTarget===!0)&&(toneMapping=_this.toneMapping);let morphAttribute=geometry.morphAttributes.position||geometry.morphAttributes.normal||geometry.morphAttributes.color,morphTargetsCount=morphAttribute===void 0?0:morphAttribute.length,materialProperties=properties.get(material),lights=currentRenderState.state.lights;if(_clippingEnabled===!0&&(_localClippingEnabled===!0||camera!==_currentCamera)){let useCache=camera===_currentCamera&&material.id===_currentMaterialId;clipping.setState(material,camera,useCache)}let needsProgramChange=!1;material.version===materialProperties.__version?materialProperties.needsLights&&materialProperties.lightsStateVersion!==lights.state.version?needsProgramChange=!0:materialProperties.outputColorSpace===colorSpace?object.isBatchedMesh&&materialProperties.batching===!1||!object.isBatchedMesh&&materialProperties.batching===!0||object.isBatchedMesh&&materialProperties.batchingColor===!0&&object.colorTexture===null||object.isBatchedMesh&&materialProperties.batchingColor===!1&&object.colorTexture!==null||object.isInstancedMesh&&materialProperties.instancing===!1||!object.isInstancedMesh&&materialProperties.instancing===!0||object.isSkinnedMesh&&materialProperties.skinning===!1||!object.isSkinnedMesh&&materialProperties.skinning===!0||object.isInstancedMesh&&materialProperties.instancingColor===!0&&object.instanceColor===null||object.isInstancedMesh&&materialProperties.instancingColor===!1&&object.instanceColor!==null||object.isInstancedMesh&&materialProperties.instancingMorph===!0&&object.morphTexture===null||object.isInstancedMesh&&materialProperties.instancingMorph===!1&&object.morphTexture!==null?needsProgramChange=!0:materialProperties.envMap===envMap?material.fog===!0&&materialProperties.fog!==fog||materialProperties.numClippingPlanes!==void 0&&(materialProperties.numClippingPlanes!==clipping.numPlanes||materialProperties.numIntersection!==clipping.numIntersection)?needsProgramChange=!0:materialProperties.vertexAlphas===vertexAlphas&&materialProperties.vertexTangents===vertexTangents&&materialProperties.morphTargets===morphTargets&&materialProperties.morphNormals===morphNormals&&materialProperties.morphColors===morphColors&&materialProperties.toneMapping===toneMapping?materialProperties.morphTargetsCount!==morphTargetsCount&&(needsProgramChange=!0):needsProgramChange=!0:needsProgramChange=!0:needsProgramChange=!0:(needsProgramChange=!0,materialProperties.__version=material.version);let program=materialProperties.currentProgram;needsProgramChange===!0&&(program=getProgram(material,scene,object));let refreshProgram=!1,refreshMaterial=!1,refreshLights=!1,p_uniforms=program.getUniforms(),m_uniforms=materialProperties.uniforms;if(state.useProgram(program.program)&&(refreshProgram=!0,refreshMaterial=!0,refreshLights=!0),material.id!==_currentMaterialId&&(_currentMaterialId=material.id,refreshMaterial=!0),refreshProgram||_currentCamera!==camera){let reverseDepthBuffer$1=state.buffers.depth.getReversed();reverseDepthBuffer$1?(_currentProjectionMatrix.copy(camera.projectionMatrix),toNormalizedProjectionMatrix(_currentProjectionMatrix),toReversedProjectionMatrix(_currentProjectionMatrix),p_uniforms.setValue(_gl,`projectionMatrix`,_currentProjectionMatrix)):p_uniforms.setValue(_gl,`projectionMatrix`,camera.projectionMatrix),p_uniforms.setValue(_gl,`viewMatrix`,camera.matrixWorldInverse);let uCamPos=p_uniforms.map.cameraPosition;uCamPos!==void 0&&uCamPos.setValue(_gl,_vector3$1.setFromMatrixPosition(camera.matrixWorld)),capabilities.logarithmicDepthBuffer&&p_uniforms.setValue(_gl,`logDepthBufFC`,2/(Math.log(camera.far+1)/Math.LN2)),(material.isMeshPhongMaterial||material.isMeshToonMaterial||material.isMeshLambertMaterial||material.isMeshBasicMaterial||material.isMeshStandardMaterial||material.isShaderMaterial)&&p_uniforms.setValue(_gl,`isOrthographic`,camera.isOrthographicCamera===!0),_currentCamera!==camera&&(_currentCamera=camera,refreshMaterial=!0,refreshLights=!0)}if(object.isSkinnedMesh){p_uniforms.setOptional(_gl,object,`bindMatrix`),p_uniforms.setOptional(_gl,object,`bindMatrixInverse`);let skeleton=object.skeleton;skeleton&&(skeleton.boneTexture===null&&skeleton.computeBoneTexture(),p_uniforms.setValue(_gl,`boneTexture`,skeleton.boneTexture,textures))}object.isBatchedMesh&&(p_uniforms.setOptional(_gl,object,`batchingTexture`),p_uniforms.setValue(_gl,`batchingTexture`,object._matricesTexture,textures),p_uniforms.setOptional(_gl,object,`batchingIdTexture`),p_uniforms.setValue(_gl,`batchingIdTexture`,object._indirectTexture,textures),p_uniforms.setOptional(_gl,object,`batchingColorTexture`),object._colorsTexture!==null&&p_uniforms.setValue(_gl,`batchingColorTexture`,object._colorsTexture,textures));let morphAttributes=geometry.morphAttributes;if((morphAttributes.position!==void 0||morphAttributes.normal!==void 0||morphAttributes.color!==void 0)&&morphtargets.update(object,geometry,program),(refreshMaterial||materialProperties.receiveShadow!==object.receiveShadow)&&(materialProperties.receiveShadow=object.receiveShadow,p_uniforms.setValue(_gl,`receiveShadow`,object.receiveShadow)),material.isMeshGouraudMaterial&&material.envMap!==null&&(m_uniforms.envMap.value=envMap,m_uniforms.flipEnvMap.value=envMap.isCubeTexture&&envMap.isRenderTargetTexture===!1?-1:1),material.isMeshStandardMaterial&&material.envMap===null&&scene.environment!==null&&(m_uniforms.envMapIntensity.value=scene.environmentIntensity),refreshMaterial&&(p_uniforms.setValue(_gl,`toneMappingExposure`,_this.toneMappingExposure),materialProperties.needsLights&&markUniformsLightsNeedsUpdate(m_uniforms,refreshLights),fog&&material.fog===!0&&materials.refreshFogUniforms(m_uniforms,fog),materials.refreshMaterialUniforms(m_uniforms,material,_pixelRatio,_height,currentRenderState.state.transmissionRenderTarget[camera.id]),WebGLUniforms.upload(_gl,getUniformList(materialProperties),m_uniforms,textures)),material.isShaderMaterial&&material.uniformsNeedUpdate===!0&&(WebGLUniforms.upload(_gl,getUniformList(materialProperties),m_uniforms,textures),material.uniformsNeedUpdate=!1),material.isSpriteMaterial&&p_uniforms.setValue(_gl,`center`,object.center),p_uniforms.setValue(_gl,`modelViewMatrix`,object.modelViewMatrix),p_uniforms.setValue(_gl,`normalMatrix`,object.normalMatrix),p_uniforms.setValue(_gl,`modelMatrix`,object.matrixWorld),material.isShaderMaterial||material.isRawShaderMaterial){let groups=material.uniformsGroups;for(let i$1=0,l$1=groups.length;i$10&&textures.useMultisampledRTT(renderTarget)===!1?properties.get(renderTarget).__webglMultisampledFramebuffer:Array.isArray(__webglFramebuffer)?__webglFramebuffer[activeMipmapLevel]:__webglFramebuffer,_currentViewport.copy(renderTarget.viewport),_currentScissor.copy(renderTarget.scissor),_currentScissorTest=renderTarget.scissorTest}else _currentViewport.copy(_viewport).multiplyScalar(_pixelRatio).floor(),_currentScissor.copy(_scissor).multiplyScalar(_pixelRatio).floor(),_currentScissorTest=_scissorTest;activeMipmapLevel!==0&&(framebuffer=_scratchFrameBuffer);let framebufferBound=state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer);if(framebufferBound&&useDefaultFramebuffer&&state.drawBuffers(renderTarget,framebuffer),state.viewport(_currentViewport),state.scissor(_currentScissor),state.setScissorTest(_currentScissorTest),isCube){let textureProperties=properties.get(renderTarget.texture);_gl.framebufferTexture2D(_gl.FRAMEBUFFER,_gl.COLOR_ATTACHMENT0,_gl.TEXTURE_CUBE_MAP_POSITIVE_X+activeCubeFace,textureProperties.__webglTexture,activeMipmapLevel)}else if(isRenderTarget3D){let textureProperties=properties.get(renderTarget.texture),layer=activeCubeFace;_gl.framebufferTextureLayer(_gl.FRAMEBUFFER,_gl.COLOR_ATTACHMENT0,textureProperties.__webglTexture,activeMipmapLevel,layer)}else if(renderTarget!==null&&activeMipmapLevel!==0){let textureProperties=properties.get(renderTarget.texture);_gl.framebufferTexture2D(_gl.FRAMEBUFFER,_gl.COLOR_ATTACHMENT0,_gl.TEXTURE_2D,textureProperties.__webglTexture,activeMipmapLevel)}_currentMaterialId=-1},this.readRenderTargetPixels=function(renderTarget,x$3,y$2,width,height,buffer$1,activeCubeFaceIndex,textureIndex=0){if(!(renderTarget&&renderTarget.isWebGLRenderTarget)){console.error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);return}let framebuffer=properties.get(renderTarget).__webglFramebuffer;if(renderTarget.isWebGLCubeRenderTarget&&activeCubeFaceIndex!==void 0&&(framebuffer=framebuffer[activeCubeFaceIndex]),framebuffer){state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer);try{let texture=renderTarget.textures[textureIndex],textureFormat=texture.format,textureType=texture.type;if(!capabilities.textureFormatReadable(textureFormat)){console.error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(!capabilities.textureTypeReadable(textureType)){console.error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}x$3>=0&&x$3<=renderTarget.width-width&&y$2>=0&&y$2<=renderTarget.height-height&&(renderTarget.textures.length>1&&_gl.readBuffer(_gl.COLOR_ATTACHMENT0+textureIndex),_gl.readPixels(x$3,y$2,width,height,utils.convert(textureFormat),utils.convert(textureType),buffer$1))}finally{let framebuffer$1=_currentRenderTarget===null?null:properties.get(_currentRenderTarget).__webglFramebuffer;state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer$1)}}},this.readRenderTargetPixelsAsync=async function(renderTarget,x$3,y$2,width,height,buffer$1,activeCubeFaceIndex,textureIndex=0){if(!(renderTarget&&renderTarget.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let framebuffer=properties.get(renderTarget).__webglFramebuffer;if(renderTarget.isWebGLCubeRenderTarget&&activeCubeFaceIndex!==void 0&&(framebuffer=framebuffer[activeCubeFaceIndex]),framebuffer)if(x$3>=0&&x$3<=renderTarget.width-width&&y$2>=0&&y$2<=renderTarget.height-height){state.bindFramebuffer(_gl.FRAMEBUFFER,framebuffer);let texture=renderTarget.textures[textureIndex],textureFormat=texture.format,textureType=texture.type;if(!capabilities.textureFormatReadable(textureFormat))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(!capabilities.textureTypeReadable(textureType))throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let glBuffer=_gl.createBuffer();_gl.bindBuffer(_gl.PIXEL_PACK_BUFFER,glBuffer),_gl.bufferData(_gl.PIXEL_PACK_BUFFER,buffer$1.byteLength,_gl.STREAM_READ),renderTarget.textures.length>1&&_gl.readBuffer(_gl.COLOR_ATTACHMENT0+textureIndex),_gl.readPixels(x$3,y$2,width,height,utils.convert(textureFormat),utils.convert(textureType),0);let currFramebuffer=_currentRenderTarget===null?null:properties.get(_currentRenderTarget).__webglFramebuffer;state.bindFramebuffer(_gl.FRAMEBUFFER,currFramebuffer);let sync$1=_gl.fenceSync(_gl.SYNC_GPU_COMMANDS_COMPLETE,0);return _gl.flush(),await probeAsync(_gl,sync$1,4),_gl.bindBuffer(_gl.PIXEL_PACK_BUFFER,glBuffer),_gl.getBufferSubData(_gl.PIXEL_PACK_BUFFER,0,buffer$1),_gl.deleteBuffer(glBuffer),_gl.deleteSync(sync$1),buffer$1}else throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)},this.copyFramebufferToTexture=function(texture,position$2=null,level=0){let levelScale=2**-level,width=Math.floor(texture.image.width*levelScale),height=Math.floor(texture.image.height*levelScale),x$3=position$2===null?0:position$2.x,y$2=position$2===null?0:position$2.y;textures.setTexture2D(texture,0),_gl.copyTexSubImage2D(_gl.TEXTURE_2D,level,0,0,x$3,y$2,width,height),state.unbindTexture()};let _srcFramebuffer=_gl.createFramebuffer(),_dstFramebuffer=_gl.createFramebuffer();this.copyTextureToTexture=function(srcTexture,dstTexture,srcRegion=null,dstPosition=null,srcLevel=0,dstLevel=null){dstLevel===null&&(srcLevel===0?dstLevel=0:(warnOnce$1(`WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels.`),dstLevel=srcLevel,srcLevel=0));let width,height,depth$1,minX,minY,minZ,dstX,dstY,dstZ,image$1=srcTexture.isCompressedTexture?srcTexture.mipmaps[dstLevel]:srcTexture.image;if(srcRegion!==null)width=srcRegion.max.x-srcRegion.min.x,height=srcRegion.max.y-srcRegion.min.y,depth$1=srcRegion.isBox3?srcRegion.max.z-srcRegion.min.z:1,minX=srcRegion.min.x,minY=srcRegion.min.y,minZ=srcRegion.isBox3?srcRegion.min.z:0;else{let levelScale=2**-srcLevel;width=Math.floor(image$1.width*levelScale),height=Math.floor(image$1.height*levelScale),depth$1=srcTexture.isDataArrayTexture?image$1.depth:srcTexture.isData3DTexture?Math.floor(image$1.depth*levelScale):1,minX=0,minY=0,minZ=0}dstPosition===null?(dstX=0,dstY=0,dstZ=0):(dstX=dstPosition.x,dstY=dstPosition.y,dstZ=dstPosition.z);let glFormat=utils.convert(dstTexture.format),glType=utils.convert(dstTexture.type),glTarget;dstTexture.isData3DTexture?(textures.setTexture3D(dstTexture,0),glTarget=_gl.TEXTURE_3D):dstTexture.isDataArrayTexture||dstTexture.isCompressedArrayTexture?(textures.setTexture2DArray(dstTexture,0),glTarget=_gl.TEXTURE_2D_ARRAY):(textures.setTexture2D(dstTexture,0),glTarget=_gl.TEXTURE_2D),_gl.pixelStorei(_gl.UNPACK_FLIP_Y_WEBGL,dstTexture.flipY),_gl.pixelStorei(_gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,dstTexture.premultiplyAlpha),_gl.pixelStorei(_gl.UNPACK_ALIGNMENT,dstTexture.unpackAlignment);let currentUnpackRowLen=_gl.getParameter(_gl.UNPACK_ROW_LENGTH),currentUnpackImageHeight=_gl.getParameter(_gl.UNPACK_IMAGE_HEIGHT),currentUnpackSkipPixels=_gl.getParameter(_gl.UNPACK_SKIP_PIXELS),currentUnpackSkipRows=_gl.getParameter(_gl.UNPACK_SKIP_ROWS),currentUnpackSkipImages=_gl.getParameter(_gl.UNPACK_SKIP_IMAGES);_gl.pixelStorei(_gl.UNPACK_ROW_LENGTH,image$1.width),_gl.pixelStorei(_gl.UNPACK_IMAGE_HEIGHT,image$1.height),_gl.pixelStorei(_gl.UNPACK_SKIP_PIXELS,minX),_gl.pixelStorei(_gl.UNPACK_SKIP_ROWS,minY),_gl.pixelStorei(_gl.UNPACK_SKIP_IMAGES,minZ);let isSrc3D=srcTexture.isDataArrayTexture||srcTexture.isData3DTexture,isDst3D=dstTexture.isDataArrayTexture||dstTexture.isData3DTexture;if(srcTexture.isDepthTexture){let srcTextureProperties=properties.get(srcTexture),dstTextureProperties=properties.get(dstTexture),srcRenderTargetProperties=properties.get(srcTextureProperties.__renderTarget),dstRenderTargetProperties=properties.get(dstTextureProperties.__renderTarget);state.bindFramebuffer(_gl.READ_FRAMEBUFFER,srcRenderTargetProperties.__webglFramebuffer),state.bindFramebuffer(_gl.DRAW_FRAMEBUFFER,dstRenderTargetProperties.__webglFramebuffer);for(let i$1=0;i$1{fns.delete(fn$5)},clear=()=>{fns.clear()},on$1=fn$5=>{fns.add(fn$5);let offFn=()=>off(fn$5);return tryOnScopeDispose$1(offFn),{off:offFn}},trigger$1=(...args)=>Promise.all(Array.from(fns).map(fn$5=>fn$5(...args)));return{on:on$1,off,trigger:trigger$1,clear}}function createGlobalState(stateFactory){let initialized=!1,state,scope=effectScope(!0);return(...args)=>(initialized||(state=scope.run(()=>stateFactory(...args)),initialized=!0),state)}const localProvidedStateMap$1=new WeakMap,injectLocal$1=(...args)=>{var _a$2;let key$1=args[0],instance=(_a$2=getCurrentInstance())?.proxy;if(instance==null&&!hasInjectionContext())throw Error(`injectLocal must be called in setup`);return instance&&localProvidedStateMap$1.has(instance)&&key$1 in localProvidedStateMap$1.get(instance)?localProvidedStateMap$1.get(instance)[key$1]:inject(...args)};function createSharedComposable(composable){let subscribers=0,state,scope,dispose$1=()=>{--subscribers,scope&&subscribers<=0&&(scope.stop(),state=void 0,scope=void 0)};return(...args)=>(subscribers+=1,scope||(scope=effectScope(!0),state=scope.run(()=>composable(...args))),tryOnScopeDispose$1(dispose$1),state)}const isClient=typeof window<`u`&&typeof document<`u`,isWorker$1=typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,isDef$1=val=>val!==void 0,notNullish$1=val=>val!=null,toString$3=Object.prototype.toString,isObject$4=val=>toString$3.call(val)===`[object Object]`,noop$3=()=>{},isIOS=getIsIOS();function getIsIOS(){var _a$2,_b;return isClient&&(_a$2=window==null?void 0:window.navigator)?.userAgent&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(_b=window==null?void 0:window.navigator)?.maxTouchPoints>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function createFilterWrapper$1(filter$1,fn$5){function wrapper(...args){return new Promise((resolve$1,reject)=>{Promise.resolve(filter$1(()=>fn$5.apply(this,args),{fn:fn$5,thisArg:this,args})).then(resolve$1).catch(reject)})}return wrapper}function debounceFilter$1(ms,options$1={}){let timer,maxTimer,lastRejector=noop$3,_clearTimeout=timer2=>{clearTimeout(timer2),lastRejector(),lastRejector=noop$3},lastInvoker,filter$1=invoke$1=>{let duration=toValue$1(ms),maxDuration$1=toValue$1(options$1.maxWait);return timer&&_clearTimeout(timer),duration<=0||maxDuration$1!==void 0&&maxDuration$1<=0?(maxTimer&&(_clearTimeout(maxTimer),maxTimer=null),Promise.resolve(invoke$1())):new Promise((resolve$1,reject)=>{lastRejector=options$1.rejectOnCancel?reject:resolve$1,lastInvoker=invoke$1,maxDuration$1&&!maxTimer&&(maxTimer=setTimeout(()=>{timer&&_clearTimeout(timer),maxTimer=null,resolve$1(lastInvoker())},maxDuration$1)),timer=setTimeout(()=>{maxTimer&&_clearTimeout(maxTimer),maxTimer=null,resolve$1(invoke$1())},duration)})};return filter$1}function cacheStringFunction$1(fn$5){let cache$1=Object.create(null);return str=>{let hit=cache$1[str];return hit||(cache$1[str]=fn$5(str))}}const hyphenateRE$1=/\B([A-Z])/g,hyphenate$1=cacheStringFunction$1(str=>str.replace(hyphenateRE$1,`-$1`).toLowerCase()),camelizeRE$1=/-(\w)/g,camelize$2=cacheStringFunction$1(str=>str.replace(camelizeRE$1,(_$2,c$4)=>c$4?c$4.toUpperCase():``));function pxValue$1(px$2){return px$2.endsWith(`rem`)?Number.parseFloat(px$2)*16:Number.parseFloat(px$2)}function objectPick$1(obj,keys$3,omitUndefined=!1){return keys$3.reduce((n$2,k$4)=>(k$4 in obj&&(!omitUndefined||obj[k$4]!==void 0)&&(n$2[k$4]=obj[k$4]),n$2),{})}function getLifeCycleTarget$1(target$1){return target$1||getCurrentInstance()}function toArray$1(value$1){return Array.isArray(value$1)?value$1:[value$1]}function useDebounceFn$1(fn$5,ms=200,options$1={}){return createFilterWrapper$1(debounceFilter$1(ms,options$1),fn$5)}function refDebounced$1(value$1,ms=200,options$1={}){let debounced=ref(value$1.value),updater=useDebounceFn$1(()=>{debounced.value=value$1.value},ms,options$1);return watch(value$1,()=>updater()),debounced}function toRefs$2(objectRef,options$1={}){if(!isRef(objectRef))return toRefs(objectRef);let result=Array.isArray(objectRef.value)?Array.from({length:objectRef.value.length}):{};for(let key$1 in objectRef.value)result[key$1]=customRef(()=>({get(){return objectRef.value[key$1]},set(v$1){var _a$2;let replaceRef=(_a$2=toValue$1(options$1.replaceRef))??!0;if(replaceRef)if(Array.isArray(objectRef.value)){let copy=[...objectRef.value];copy[key$1]=v$1,objectRef.value=copy}else{let newObject={...objectRef.value,[key$1]:v$1};Object.setPrototypeOf(newObject,Object.getPrototypeOf(objectRef.value)),objectRef.value=newObject}else objectRef.value[key$1]=v$1}}));return result}const toValue=toValue$1;function tryOnBeforeUnmount(fn$5,target$1){let instance=getLifeCycleTarget$1(target$1);instance&&onBeforeUnmount(fn$5,target$1)}function tryOnMounted$1(fn$5,sync$1=!0,target$1){let instance=getLifeCycleTarget$1();instance?onMounted(fn$5,target$1):sync$1?fn$5():nextTick(fn$5)}function useIntervalFn$1(cb$1,interval=1e3,options$1={}){let{immediate=!0,immediateCallback=!1}=options$1,timer=null,isActive=shallowRef(!1);function clean$3(){timer&&(clearInterval(timer),timer=null)}function pause(){isActive.value=!1,clean$3()}function resume(){let intervalValue=toValue$1(interval);intervalValue<=0||(isActive.value=!0,immediateCallback&&cb$1(),clean$3(),isActive.value&&(timer=setInterval(cb$1,intervalValue)))}if(immediate&&isClient&&resume(),isRef(interval)||typeof interval==`function`){let stopWatch=watch(interval,()=>{isActive.value&&isClient&&resume()});tryOnScopeDispose$1(stopWatch)}return tryOnScopeDispose$1(pause),{isActive,pause,resume}}function watchImmediate$1(source,cb$1,options$1){return watch(source,cb$1,{...options$1,immediate:!0})}const defaultWindow=isClient?window:void 0,defaultDocument$1=isClient?window.document:void 0,defaultNavigator$1=isClient?window.navigator:void 0,defaultLocation$1=isClient?window.location:void 0;function unrefElement$1(elRef){var _a$2;let plain=toValue$1(elRef);return(_a$2=plain?.$el)??plain}function useEventListener$1(...args){let cleanups=[],cleanup=()=>{cleanups.forEach(fn$5=>fn$5()),cleanups.length=0},register=(el,event,listener,options$1)=>(el.addEventListener(event,listener,options$1),()=>el.removeEventListener(event,listener,options$1)),firstParamTargets=computed(()=>{let test$1=toArray$1(toValue$1(args[0])).filter(e$3=>e$3!=null);return test$1.every(e$3=>typeof e$3!=`string`)?test$1:void 0}),stopWatch=watchImmediate$1(()=>{var _a$2,_b;return[(_b=(_a$2=firstParamTargets.value)?.map(e$3=>unrefElement$1(e$3)))??[defaultWindow].filter(e$3=>e$3!=null),toArray$1(toValue$1(firstParamTargets.value?args[1]:args[0])),toArray$1(unref(firstParamTargets.value?args[2]:args[1])),toValue$1(firstParamTargets.value?args[3]:args[2])]},([raw_targets,raw_events,raw_listeners,raw_options])=>{if(cleanup(),!raw_targets?.length||!raw_events?.length||!raw_listeners?.length)return;let optionsClone=isObject$4(raw_options)?{...raw_options}:raw_options;cleanups.push(...raw_targets.flatMap(el=>raw_events.flatMap(event=>raw_listeners.map(listener=>register(el,event,listener,optionsClone)))))},{flush:`post`}),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose$1(cleanup),stop$1}function useMounted(){let isMounted=shallowRef(!1),instance=getCurrentInstance();return instance&&onMounted(()=>{isMounted.value=!0},instance),isMounted}function useSupported$1(callback){let isMounted=useMounted();return computed(()=>(isMounted.value,!!callback()))}function useMutationObserver$1(target$1,callback,options$1={}){let{window:window$1=defaultWindow,...mutationOptions}=options$1,observer,isSupported=useSupported$1(()=>window$1&&`MutationObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let value$1=toValue$1(target$1),items=toArray$1(value$1).map(unrefElement$1).filter(notNullish$1);return new Set(items)}),stopWatch=watch(()=>targets.value,targets2=>{cleanup(),isSupported.value&&targets2.size&&(observer=new MutationObserver(callback),targets2.forEach(el=>observer.observe(el,mutationOptions)))},{immediate:!0,flush:`post`}),takeRecords=()=>observer?.takeRecords(),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose$1(stop$1),{isSupported,stop:stop$1,takeRecords}}function createKeyPredicate(keyFilter){return typeof keyFilter==`function`?keyFilter:typeof keyFilter==`string`?event=>event.key===keyFilter:Array.isArray(keyFilter)?event=>keyFilter.includes(event.key):()=>!0}function onKeyStroke(...args){let key$1,handler,options$1={};args.length===3?(key$1=args[0],handler=args[1],options$1=args[2]):args.length===2?typeof args[1]==`object`?(key$1=!0,handler=args[0],options$1=args[1]):(key$1=args[0],handler=args[1]):(key$1=!0,handler=args[0]);let{target:target$1=defaultWindow,eventName=`keydown`,passive=!1,dedupe=!1}=options$1,predicate=createKeyPredicate(key$1),listener=e$3=>{e$3.repeat&&toValue$1(dedupe)||predicate(e$3)&&handler(e$3)};return useEventListener$1(target$1,eventName,listener,passive)}function useRafFn(fn$5,options$1={}){let{immediate=!0,fpsLimit=void 0,window:window$1=defaultWindow,once=!1}=options$1,isActive=shallowRef(!1),intervalLimit=computed(()=>fpsLimit?1e3/toValue$1(fpsLimit):null),previousFrameTimestamp=0,rafId=null;function loop(timestamp$2){if(!isActive.value||!window$1)return;previousFrameTimestamp||=timestamp$2;let delta=timestamp$2-previousFrameTimestamp;if(intervalLimit.value&&deltawindow$1&&`matchMedia`in window$1&&typeof window$1.matchMedia==`function`),ssrSupport=shallowRef(typeof ssrWidth==`number`),mediaQuery=shallowRef(),matches$1=shallowRef(!1),handler=event=>{matches$1.value=event.matches};return watchEffect(()=>{if(ssrSupport.value){ssrSupport.value=!isSupported.value;let queryStrings=toValue$1(query).split(`,`);matches$1.value=queryStrings.some(queryString=>{let not=queryString.includes(`not all`),minWidth=queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),maxWidth=queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),res=!!(minWidth||maxWidth);return minWidth&&res&&(res=ssrWidth>=pxValue$1(minWidth[1])),maxWidth&&res&&(res=ssrWidth<=pxValue$1(maxWidth[1])),not?!res:res});return}isSupported.value&&(mediaQuery.value=window$1.matchMedia(toValue$1(query)),matches$1.value=mediaQuery.value.matches)}),useEventListener$1(mediaQuery,`change`,handler,{passive:!0}),computed(()=>matches$1.value)}function cloneFnJSON(source){return JSON.parse(JSON.stringify(source))}function useDevicePixelRatio(options$1={}){let{window:window$1=defaultWindow}=options$1,pixelRatio=shallowRef(1),query=useMediaQuery$1(()=>`(resolution: ${pixelRatio.value}dppx)`,options$1),stop$1=noop$3;return window$1&&(stop$1=watchImmediate$1(query,()=>pixelRatio.value=window$1.devicePixelRatio)),{pixelRatio:readonly(pixelRatio),stop:stop$1}}function useResizeObserver$1(target$1,callback,options$1={}){let{window:window$1=defaultWindow,...observerOptions}=options$1,observer,isSupported=useSupported$1(()=>window$1&&`ResizeObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let _targets=toValue$1(target$1);return Array.isArray(_targets)?_targets.map(el=>unrefElement$1(el)):[unrefElement$1(_targets)]}),stopWatch=watch(targets,els=>{if(cleanup(),isSupported.value&&window$1){observer=new ResizeObserver(callback);for(let _el of els)_el&&observer.observe(_el,observerOptions)}},{immediate:!0,flush:`post`}),stop$1=()=>{cleanup(),stopWatch()};return tryOnScopeDispose$1(stop$1),{isSupported,stop:stop$1}}function useElementBounding$1(target$1,options$1={}){let{reset=!0,windowResize=!0,windowScroll=!0,immediate=!0,updateTiming=`sync`}=options$1,height=shallowRef(0),bottom=shallowRef(0),left=shallowRef(0),right=shallowRef(0),top=shallowRef(0),width=shallowRef(0),x$3=shallowRef(0),y$2=shallowRef(0);function recalculate(){let el=unrefElement$1(target$1);if(!el){reset&&(height.value=0,bottom.value=0,left.value=0,right.value=0,top.value=0,width.value=0,x$3.value=0,y$2.value=0);return}let rect=el.getBoundingClientRect();height.value=rect.height,bottom.value=rect.bottom,left.value=rect.left,right.value=rect.right,top.value=rect.top,width.value=rect.width,x$3.value=rect.x,y$2.value=rect.y}function update(){updateTiming===`sync`?recalculate():updateTiming===`next-frame`&&requestAnimationFrame(()=>recalculate())}return useResizeObserver$1(target$1,update),watch(()=>unrefElement$1(target$1),ele=>!ele&&update()),useMutationObserver$1(target$1,update,{attributeFilter:[`style`,`class`]}),windowScroll&&useEventListener$1(`scroll`,update,{capture:!0,passive:!0}),windowResize&&useEventListener$1(`resize`,update,{passive:!0}),tryOnMounted$1(()=>{immediate&&update()}),{height,bottom,left,right,top,width,x:x$3,y:y$2,update}}function useElementSize(target$1,initialSize={width:0,height:0},options$1={}){let{window:window$1=defaultWindow,box=`content-box`}=options$1,isSVG=computed(()=>{var _a$2,_b;return(_b=(_a$2=unrefElement$1(target$1))?.namespaceURI)?.includes(`svg`)}),width=shallowRef(initialSize.width),height=shallowRef(initialSize.height),{stop:stop1}=useResizeObserver$1(target$1,([entry])=>{let boxSize=box===`border-box`?entry.borderBoxSize:box===`content-box`?entry.contentBoxSize:entry.devicePixelContentBoxSize;if(window$1&&isSVG.value){let $elem=unrefElement$1(target$1);if($elem){let rect=$elem.getBoundingClientRect();width.value=rect.width,height.value=rect.height}}else if(boxSize){let formatBoxSize=toArray$1(boxSize);width.value=formatBoxSize.reduce((acc,{inlineSize})=>acc+inlineSize,0),height.value=formatBoxSize.reduce((acc,{blockSize})=>acc+blockSize,0)}else width.value=entry.contentRect.width,height.value=entry.contentRect.height},options$1);tryOnMounted$1(()=>{let ele=unrefElement$1(target$1);ele&&(width.value=`offsetWidth`in ele?ele.offsetWidth:initialSize.width,height.value=`offsetHeight`in ele?ele.offsetHeight:initialSize.height)});let stop2=watch(()=>unrefElement$1(target$1),ele=>{width.value=ele?initialSize.width:0,height.value=ele?initialSize.height:0});function stop$1(){stop1(),stop2()}return{width,height,stop:stop$1}}function useFps(options$1){var _a$2;let fps=shallowRef(0);if(typeof performance>`u`)return fps;let every=(_a$2=options$1?.every)??10,last=performance.now(),ticks=0;return useRafFn(()=>{if(ticks+=1,ticks>=every){let now=performance.now(),diff=now-last;fps.value=Math.round(1e3/(diff/ticks)),last=now,ticks=0}}),fps}function useMemory(options$1={}){let memory=ref(),isSupported=useSupported$1(()=>typeof performance<`u`&&`memory`in performance);if(isSupported.value){let{interval=1e3}=options$1;useIntervalFn$1(()=>{memory.value=performance.memory},interval,{immediate:options$1.immediate,immediateCallback:options$1.immediateCallback})}return{isSupported,memory}}const defaultState$1={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},keys$2=Object.keys(defaultState$1);function usePointer$1(options$1={}){let{target:target$1=defaultWindow}=options$1,isInside=shallowRef(!1),state=ref(options$1.initialValue||{});Object.assign(state.value,defaultState$1,state.value);let handler=event=>{isInside.value=!0,!(options$1.pointerTypes&&!options$1.pointerTypes.includes(event.pointerType))&&(state.value=objectPick$1(event,keys$2,!1))};if(target$1){let listenerOptions={passive:!0};useEventListener$1(target$1,[`pointerdown`,`pointermove`,`pointerup`],handler,listenerOptions),useEventListener$1(target$1,`pointerleave`,()=>isInside.value=!1,listenerOptions)}return{...toRefs$2(state),isInside}}const DEFAULT_UNITS$1=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}];function useVModel(props,key$1,emit$1,options$1={}){var _a$2,_b,_c;let{clone:clone$2=!1,passive=!1,eventName,deep=!1,defaultValue,shouldEmit}=options$1,vm=getCurrentInstance(),_emit=emit$1||vm?.emit||(_a$2=vm?.$emit)?.bind(vm)||(_c=(_b=vm?.proxy)?.$emit)?.bind(vm?.proxy),event=eventName;key$1||=`modelValue`,event||=`update:${key$1.toString()}`;let cloneFn=val=>clone$2?typeof clone$2==`function`?clone$2(val):cloneFnJSON(val):val,getValue$2=()=>isDef$1(props[key$1])?cloneFn(props[key$1]):defaultValue,triggerEmit=value$1=>{shouldEmit?shouldEmit(value$1)&&_emit(event,value$1):_emit(event,value$1)};if(passive){let initialValue=getValue$2(),proxy=ref(initialValue),isUpdating=!1;return watch(()=>props[key$1],v$1=>{isUpdating||(isUpdating=!0,proxy.value=cloneFn(v$1),nextTick(()=>isUpdating=!1))}),watch(proxy,v$1=>{!isUpdating&&(v$1!==props[key$1]||deep)&&triggerEmit(v$1)},{deep}),proxy}else return computed({get(){return getValue$2()},set(value$1){triggerEmit(value$1)}})}function useWindowSize$1(options$1={}){let{window:window$1=defaultWindow,initialWidth=1/0,initialHeight=1/0,listenOrientation=!0,includeScrollbar=!0,type=`inner`}=options$1,width=shallowRef(initialWidth),height=shallowRef(initialHeight),update=()=>{if(window$1)if(type===`outer`)width.value=window$1.outerWidth,height.value=window$1.outerHeight;else if(type===`visual`&&window$1.visualViewport){let{width:visualViewportWidth,height:visualViewportHeight,scale:scale$1}=window$1.visualViewport;width.value=Math.round(visualViewportWidth*scale$1),height.value=Math.round(visualViewportHeight*scale$1)}else includeScrollbar?(width.value=window$1.innerWidth,height.value=window$1.innerHeight):(width.value=window$1.document.documentElement.clientWidth,height.value=window$1.document.documentElement.clientHeight)};update(),tryOnMounted$1(update);let listenerOptions={passive:!0};if(useEventListener$1(`resize`,update,listenerOptions),window$1&&type===`visual`&&window$1.visualViewport&&useEventListener$1(window$1.visualViewport,`resize`,update,listenerOptions),listenOrientation){let matches$1=useMediaQuery$1(`(orientation: portrait)`);watch(matches$1,()=>update())}return{width,height}}var At=Object.defineProperty,xt=(e$3,t,r$2)=>t in e$3?At(e$3,t,{enumerable:!0,configurable:!0,writable:!0,value:r$2}):e$3[t]=r$2,de$2=(e$3,t,r$2)=>xt(e$3,typeof t==`symbol`?t:t+``,r$2);const gr=`@tresjs/core`,hr=`module`,vr=`4.3.6`,yr=`pnpm@10.6.3`,_r=`Declarative ThreeJS using Vue Components`,wr=`Alvaro Saburido (https://github.com/alvarosabu/)`,br=`MIT`,Mr={type:`git`,url:`git+https://github.com/Tresjs/tres.git`},Pr=[`vue`,`3d`,`threejs`,`three`,`threejs-vue`],Cr=!1,Er={".":{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`},"./*":`./*`},Tr=`./dist/tres.js`,Sr=`./dist/tres.js`,Ar=`./dist/index.d.ts`,xr=[`*.d.ts`,`dist`],kr={access:`public`},Lr={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`},Rr={three:`>=0.133`,vue:`>=3.4`},Or={"@alvarosabu/utils":`^3.2.0`,"@vue/devtools-api":`^6.6.3`,"@vueuse/core":`^12.5.0`},Dr={"@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`},jr={name:gr,type:hr,version:vr,packageManager:yr,description:_r,author:wr,license:br,repository:Mr,keywords:Pr,sideEffects:Cr,exports:Er,main:Tr,module:Sr,types:Ar,files:xr,publishConfig:kr,scripts:Lr,peerDependencies:Rr,dependencies:Or,devDependencies:Dr};function Br(e$3){let t={nodes:{},materials:{}};return e$3&&e$3.traverse(r$2=>{r$2.name&&(t.nodes[r$2.name]=r$2),r$2.material&&!t.materials[r$2.material.name]&&(t.materials[r$2.material.name]=r$2.material)}),t}async function Ir(e$3,t,r$2,n$2,o$1){let{logError:l$1}=Q$2(),s$1=new e$3;return o$1&&o$1(s$1),r$2&&r$2(s$1),await new Promise((a$2,c$4)=>{s$1.load(t,i$1=>{let f$3=i$1;f$3.scene&&Object.assign(f$3,Br(f$3.scene)),a$2(f$3)},n$2,i$1=>{l$1(`[useLoader] - Failed to load resource`,i$1),c$4(i$1)})})}var $r=class extends Mesh{constructor(...r$2){super(...r$2),de$2(this,`type`,`HightlightMesh`),de$2(this,`createTime`),this.createTime=Date.now()}onBeforeRender(){let n$2=(Date.now()-this.createTime)/1e3,s$1=1+.07*Math.sin(2.5*n$2);this.scale.set(s$1,s$1,s$1)}};function be$1(e$3){return typeof e$3>`u`}function ke(e$3){return Array.isArray(e$3)}function Hr(e$3){return typeof e$3==`number`}function dt$3(e$3){return typeof e$3==`string`}function Y$1(e$3){return typeof e$3==`function`}function j(e$3){return e$3===Object(e$3)&&!ke(e$3)&&!Y$1(e$3)}function N(e$3){return j(e$3)&&!!e$3.isObject3D}function mt$2(e$3){return j(e$3)&&!!e$3.isColor}function Ur(e$3){return e$3!=null&&(typeof e$3==`string`||typeof e$3==`number`||mt$2(e$3))}function Me$1(e$3){return typeof e$3==`object`&&!!e$3&&`set`in e$3&&typeof e$3.set==`function`}function Fr(e$3){return Me$1(e$3)&&`copy`in e$3&&typeof e$3.copy==`function`}function Wr(e$3){return!!(e$3!=null&&e$3.constructor)}function Ge(e$3){return e$3 instanceof Layers}function Ve(e$3){return j(e$3)&&!!e$3.isCamera}function Nr(e$3){return j(e$3)&&!!e$3.isBufferGeometry}function zr(e$3){return j(e$3)&&!!e$3.isMaterial}function Gr(e$3){return j(e$3)&&!!e$3.isLight}function Vr(e$3){return j(e$3)&&!!e$3.isFog}function Yr(e$3){return j(e$3)&&!!e$3.isScene}function ne(e$3){return N(e$3)||Nr(e$3)||zr(e$3)||Vr(e$3)}function qr(e$3){return j(e$3)&&!!e$3.isPrimitive}const gt$2=(e$3,t)=>{for(let r$2 of Object.keys(t))t[r$2]instanceof Object&&Object.assign(t[r$2],gt$2(e$3[r$2],t[r$2]));return Object.assign(e$3||{},t),e$3},Kr=`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`,Jr=Zr(Kr);function Ye(e$3){return e$3&&e$3.nodeType===1}function he$1(e$3){return e$3.replace(/-([a-z])/g,(t,r$2)=>r$2.toUpperCase())}const Qr=/\B([A-Z])/g;function Xr(e$3){return e$3.replace(Qr,`-$1`).toLowerCase()}function Zr(e$3,t){let r$2=Object.create(null),n$2=e$3.split(`,`);for(let o$1=0;o$1!!r$2[o$1.toLowerCase()]:o$1=>!!r$2[o$1]}const qe=(e$3,t)=>{if(!t)return;let r$2=Array.isArray(t)?t:t.match(/([^[.\]])+/g);return r$2?.reduce((n$2,o$1)=>n$2&&n$2[o$1],e$3)},en=(e$3,t,r$2)=>{let n$2=Array.isArray(t)?t:t.match(/([^[.\]])+/g);n$2&&n$2.reduce((o$1,l$1,s$1)=>(o$1[l$1]===void 0&&(o$1[l$1]={}),s$1===n$2.length-1&&(o$1[l$1]=r$2),o$1[l$1]),e$3)};function ht$2(e$3,t){if(Ye(e$3)&&Ye(t)){let o$1=e$3.attributes,l$1=t.attributes;return o$1.length===l$1.length?Array.from(o$1).every(({name:s$1,value:a$2})=>t.getAttribute(s$1)===a$2):!1}if(e$3===t)return!0;if(typeof e$3!=`object`||!e$3||typeof t!=`object`||!t)return!1;let r$2=Object.keys(e$3),n$2=Object.keys(t);if(r$2.length!==n$2.length)return!1;for(let o$1 of r$2)if(!n$2.includes(o$1)||!ht$2(e$3[o$1],t[o$1]))return!1;return!0}function tn(e$3,t){if(!Array.isArray(e$3)||!Array.isArray(t)||e$3.length!==t.length)return!1;for(let r$2=0;r$2{if(c$4.uuid===t)return c$4;for(let i$1 of c$4.children){let f$3=o$1(i$1);if(f$3)return f$3}},l$1=o$1(e$3);if(!l$1){console.warn(`Object with UUID not found in the scene.`);return}let s$1=l$1;for(let c$4=0;c$4vt$2(o$1)),!(e$3 instanceof Scene)){let o$1=e$3;e$3&&((n$2=e$3.dispose)==null||n$2.call(e$3)),o$1.geometry&&o$1.geometry.dispose(),Array.isArray(o$1.material)?o$1.material.forEach(l$1=>Ke(l$1)):o$1.material&&Ke(o$1.material)}}function ln(e$3,t){let r$2=0;for(let n$2=0;n$2r$2===0?t:t.charAt(0).toUpperCase()+t.slice(1)).join(``)}const Qe=/-\d+$/;function cn(e$3,t,r$2){if(dt$3(r$2)){if(Qe.test(r$2)){let l$1=r$2.replace(Qe,``),{target:s$1,key:a$2}=Pe$1(e$3,l$1);if(!Array.isArray(s$1[a$2])){let c$4=s$1[a$2],i$1=[];i$1.__tresDetach=()=>{i$1.every(f$3=>be$1(f$3))&&(s$1[a$2]=c$4)},s$1[a$2]=i$1}}let{target:n$2,key:o$1}=Pe$1(e$3,r$2);t.__tres.previousAttach=n$2[o$1],n$2[o$1]=J(t)}else t.__tres.previousAttach=r$2(e$3,t)}function un$2(e$3,t,r$2){var n$2,o$1,l$1;if(dt$3(r$2)){let{target:s$1,key:a$2}=Pe$1(e$3,r$2),c$4=t.__tres.previousAttach;c$4===void 0?delete s$1[a$2]:s$1[a$2]=c$4,`__tresDetach`in s$1&&s$1.__tresDetach()}else (o$1=(n$2=t.__tres)?.previousAttach)==null||o$1.call(n$2,e$3,t);(l$1=t.__tres)==null||delete l$1.previousAttach}function z$1(e$3,t,r$2){let n$2=e$3;return n$2.__tres={type:`unknown`,eventCount:0,root:r$2,handlers:{},memoizedProps:{},objects:[],parent:null,previousAttach:null,...t},n$2.__tres.attach||(n$2.isMaterial?n$2.__tres.attach=`material`:n$2.isBufferGeometry?n$2.__tres.attach=`geometry`:n$2.isFog&&(n$2.__tres.attach=`fog`)),n$2}function yt$2(e$3){var r$2;let t=(r$2=e$3?.__tres)?.root;t&&t.render&&t.render.canBeInvalidated.value&&t.invalidate()}function fn$4(e$3,t,r$2){var o$1;if(!Y$1(e$3.setPixelRatio))return;let n$2=0;if(r$2&&ke(r$2)&&r$2.length>=2){let[l$1,s$1]=r$2;n$2=MathUtils.clamp(t,l$1,s$1)}else n$2=Hr(r$2)?r$2:t;n$2!==(o$1=e$3.getPixelRatio)?.call(e$3)&&e$3.setPixelRatio(n$2)}function pn(e$3,t,r$2,n$2,o$1){let l$1=[...t.__tres.objects],s$1=J(t);if(e$3=J(e$3),s$1===e$3)return!0;let a$2=z$1(e$3,t.__tres??{},o$1),c$4=t.parent??t.__tres.parent??null,i$1={...t.__tres.memoizedProps};delete i$1.object;for(let f$3 of l$1)_t$2(f$3,o$1),wt$2(f$3,o$1);s$1.__tres.objects=[],n$2.remove(t);for(let[f$3,v$1]of Object.entries(i$1))n$2.patchProp(a$2,f$3,a$2[f$3],v$1);r$2(e$3),n$2.insert(t,c$4);for(let f$3 of l$1)n$2.insert(f$3,t);return!0}function J(e$3){return qr(e$3)?(e$3.object.__tres=e$3.__tres,e$3.object):e$3}function _t$2(e$3,t){var n$2,o$1,l$1,s$1;let r$2=(n$2=e$3.__tres)?.parent||t.scene.value;e$3.__tres&&(e$3.__tres.parent=null),r$2&&r$2.__tres&&`objects`in r$2.__tres&&ln(r$2.__tres.objects,a$2=>a$2!==e$3),(o$1=e$3.__tres)!=null&&o$1.attach?un$2(r$2,e$3,e$3.__tres.attach):((s$1=(l$1=e$3.parent)?.remove)==null||s$1.call(l$1,J(e$3)),e$3.parent=null)}function wt$2(e$3,t){var r$2;(r$2=e$3.traverse)==null||r$2.call(e$3,n$2=>{var o$1;t.deregisterCamera(n$2),(o$1=t.eventManager)==null||o$1.deregisterPointerMissedObject(n$2)}),t.deregisterCamera(e$3),yt$2(e$3)}async function dn(e$3,t){let r$2=new TextureLoader(t),n$2=o$1=>new Promise((l$1,s$1)=>{r$2.load(o$1,a$2=>l$1(a$2),()=>null,()=>{s$1(Error(`[useTextures] - Failed to load texture`))})});if(rn(e$3)){let o$1=await Promise.all(e$3.map(l$1=>n$2(l$1)));return e$3.length>1?o$1:o$1[0]}else{let{map:o$1,displacementMap:l$1,normalMap:s$1,roughnessMap:a$2,metalnessMap:c$4,aoMap:i$1,alphaMap:f$3,matcap:v$1}=e$3;return{map:o$1?await n$2(o$1):null,displacementMap:l$1?await n$2(l$1):null,normalMap:s$1?await n$2(s$1):null,roughnessMap:a$2?await n$2(a$2):null,metalnessMap:c$4?await n$2(c$4):null,aoMap:i$1?await n$2(i$1):null,alphaMap:f$3?await n$2(f$3):null,matcap:v$1?await n$2(v$1):null}}}const to=defineComponent({__name:`component`,props:{map:{},displacementMap:{},normalMap:{},roughnessMap:{},metalnessMap:{},aoMap:{},alphaMap:{},matcap:{}},async setup(e$3){let t,r$2,n$2=e$3,o$1=([t,r$2]=withAsyncContext(()=>reactive(dn(n$2))),t=await t,r$2(),t);return(l$1,s$1)=>renderSlot(l$1.$slots,`default`,{textures:unref(o$1)})}}),mn=({sizes:e$3})=>{let t=ref([]),r$2=computed(()=>t.value[0]),n$2=s$1=>{let a$2=s$1 instanceof Camera?s$1:t.value.find(i$1=>i$1.uuid===s$1);if(!a$2)return;let c$4=t.value.filter(({uuid:i$1})=>i$1!==a$2.uuid);t.value=[a$2,...c$4]},o$1=(s$1,a$2=!1)=>{if(Ve(s$1)){let c$4=s$1;if(t.value.some(({uuid:i$1})=>i$1===c$4.uuid))return;a$2?n$2(c$4):t.value.push(c$4)}},l$1=s$1=>{if(Ve(s$1)){let a$2=s$1;t.value=t.value.filter(({uuid:c$4})=>c$4!==a$2.uuid)}};return watchEffect(()=>{e$3.aspectRatio.value&&t.value.forEach(s$1=>{!s$1.manual&&(s$1 instanceof PerspectiveCamera||gn(s$1))&&(s$1 instanceof PerspectiveCamera?s$1.aspect=e$3.aspectRatio.value:(s$1.left=e$3.width.value*-.5,s$1.right=e$3.width.value*.5,s$1.top=e$3.height.value*.5,s$1.bottom=e$3.height.value*-.5),s$1.updateProjectionMatrix())})}),onUnmounted(()=>{t.value=[]}),{camera:r$2,cameras:t,registerCamera:o$1,deregisterCamera:l$1,setCameraActive:n$2}};function gn(e$3){return e$3.hasOwnProperty(`isOrthographicCamera`)&&e$3.isOrthographicCamera}const ro=!0,fe$1=`[TresJS ▲ ■ ●] `;function hn(...e$3){typeof e$3[0]==`string`?e$3[0]=fe$1+e$3[0]:e$3.unshift(fe$1),console.error(...e$3)}function vn$2(...e$3){typeof e$3[0]==`string`?e$3[0]=fe$1+e$3[0]:e$3.unshift(fe$1),console.warn(...e$3)}function yn(e$3,t){}function Q$2(){return{logError:hn,logWarning:vn$2,logMessage:yn}}const Ce$2=ref({}),Ee$1=e$3=>Object.assign(Ce$2.value,e$3);function ve(){let e$3=new Map,t=new Set,r$2=0,n$2=!1,o$1=()=>{let i$1=Array.from(e$3.entries()).sort((f$3,v$1)=>{let u$1=f$3[1].priority-v$1[1].priority;return u$1===0?f$3[1].addI-v$1[1].addI:u$1});t.clear(),i$1.forEach(f$3=>t.add(f$3[0]))},l$1=i$1=>{e$3.delete(i$1),t.delete(i$1)};return{on:(i$1,f$3=0)=>{e$3.set(i$1,{priority:f$3,addI:r$2++});let v$1=()=>l$1(i$1);return tryOnScopeDispose$1(v$1),n$2=!0,{off:v$1}},off:l$1,trigger:(...i$1)=>{n$2&&(o$1(),n$2=!1),t.forEach(f$3=>f$3(...i$1))},dispose:()=>{e$3.clear(),t.clear()},get count(){return e$3.size}}}function _n(){let e$3=!0,t=!0,r$2=!1,n$2=new Clock(!1),o$1=ref(n$2.running),l$1=ref(!1),s$1,a$2=MathUtils.generateUUID(),c$4=null,i$1=ve(),f$3=ve(),v$1=ve();S$2();let u$1={};function _$2(M$1){u$1=M$1}function d$2(M$1,x$3,m$2=0){switch(x$3){case`before`:return i$1.on(M$1,m$2);case`render`:return c$4||=M$1,f$3.dispose(),f$3.on(M$1);case`after`:return v$1.on(M$1,m$2)}}function y$2(){t&&(t=!1,S$2(),E$2())}function p$5(){t=!0,S$2(),cancelAnimationFrame(s$1)}function h$3(){r$2=!1,S$2()}function P$1(){r$2=!0,S$2()}function C$3(){l$1.value=!0}function b$3(){l$1.value=!1}function E$2(){if(!e$3){s$1=requestAnimationFrame(E$2);return}let M$1=n$2.getDelta(),x$3=n$2.getElapsedTime(),m$2={camera:unref(u$1.camera),scene:unref(u$1.scene),renderer:unref(u$1.renderer),raycaster:unref(u$1.raycaster),controls:unref(u$1.controls),invalidate:u$1.invalidate,advance:u$1.advance},w$1={delta:M$1,elapsed:x$3,clock:n$2,...m$2};o$1.value&&i$1.trigger(w$1),l$1.value||(f$3.count?f$3.trigger(w$1):c$4&&c$4(w$1)),o$1.value&&v$1.trigger(w$1),s$1=requestAnimationFrame(E$2)}function S$2(){let M$1=!t&&!r$2;n$2.running!==M$1&&(n$2.running?n$2.stop():n$2.start()),o$1.value=n$2.running}return{loopId:a$2,register:(M$1,x$3,m$2)=>d$2(M$1,x$3,m$2),start:y$2,stop:p$5,pause:P$1,resume:h$3,pauseRender:C$3,resumeRender:b$3,isRenderPaused:l$1,isActive:o$1,setContext:_$2,setReady:M$1=>e$3=M$1}}function Le(e$3){let t=0;return e$3.traverse(r$2=>{if(r$2.isMesh&&r$2.geometry&&r$2.type!==`HightlightMesh`){let n$2=r$2.geometry,o$1=n$2.attributes.position.count*3*Float32Array.BYTES_PER_ELEMENT,l$1=n$2.index?n$2.index.count*Uint32Array.BYTES_PER_ELEMENT:0,s$1=n$2.attributes.normal?n$2.attributes.normal.count*3*Float32Array.BYTES_PER_ELEMENT:0,a$2=n$2.attributes.uv?n$2.attributes.uv.count*2*Float32Array.BYTES_PER_ELEMENT:0,c$4=o$1+l$1+s$1+a$2;t+=c$4}}),t}function wn(e$3){return(e$3/1024).toFixed(2)}const bn=Number.parseInt(REVISION.replace(`dev`,``));function Mn(e$3){return e$3 instanceof Color?e$3:Array.isArray(e$3)?new Color(...e$3):new Color(e$3)}const oe$1={realistic:{shadows:!0,physicallyCorrectLights:!0,outputColorSpace:SRGBColorSpace,toneMapping:ACESFilmicToneMapping,toneMappingExposure:3,shadowMap:{enabled:!0,type:PCFSoftShadowMap}},flat:{toneMapping:NoToneMapping,toneMappingExposure:1}};function Pn({canvas:e$3,options:t,contextParts:{sizes:r$2,render:n$2,invalidate:o$1,advance:l$1}}){let s$1=computed(()=>({alpha:toValue(t.alpha)??!0,depth:toValue(t.depth),canvas:unrefElement$1(e$3),context:toValue(t.context),stencil:toValue(t.stencil),antialias:toValue(t.antialias)??!0,precision:toValue(t.precision),powerPreference:toValue(t.powerPreference),premultipliedAlpha:toValue(t.premultipliedAlpha),preserveDrawingBuffer:toValue(t.preserveDrawingBuffer),logarithmicDepthBuffer:toValue(t.logarithmicDepthBuffer),failIfMajorPerformanceCaveat:toValue(t.failIfMajorPerformanceCaveat)})),a$2=shallowRef(new WebGLRenderer(s$1.value));function c$4(){t.renderMode===`on-demand`&&o$1()}watch(s$1,()=>{a$2.value.dispose(),a$2.value=new WebGLRenderer(s$1.value),c$4()}),watch([r$2.width,r$2.height],()=>{a$2.value.setSize(r$2.width.value,r$2.height.value),c$4()},{immediate:!0}),watch(()=>t.clearColor,c$4);let{pixelRatio:i$1}=useDevicePixelRatio(),{logError:f$3}=Q$2(),u$1=(()=>{let d$2=new WebGLRenderer,y$2={shadowMap:{enabled:d$2.shadowMap.enabled,type:d$2.shadowMap.type},toneMapping:d$2.toneMapping,toneMappingExposure:d$2.toneMappingExposure,outputColorSpace:d$2.outputColorSpace};return d$2.dispose(),y$2})(),_$2=toValue(t.renderMode);return _$2===`on-demand`&&o$1(),_$2===`manual`&&setTimeout(()=>{l$1()},100),watchEffect(()=>{let d$2=toValue(t.preset);d$2&&(d$2 in oe$1||f$3(`Renderer Preset must be one of these: ${Object.keys(oe$1).join(`, `)}`),gt$2(a$2.value,oe$1[d$2])),fn$4(a$2.value,i$1.value,toValue(t.dpr)),_$2===`always`&&(n$2.frames.value=Math.max(1,n$2.frames.value));let y$2=(P$1,C$3)=>{let b$3=toValue(P$1),E$2=()=>{if(d$2)return qe(oe$1[d$2],C$3)};if(b$3!==void 0)return b$3;let S$2=E$2();return S$2===void 0?qe(u$1,C$3):S$2},p$5=(P$1,C$3)=>en(a$2.value,C$3,y$2(P$1,C$3));p$5(t.shadows,`shadowMap.enabled`),p$5(t.toneMapping??ACESFilmicToneMapping,`toneMapping`),p$5(t.shadowMapType,`shadowMap.type`),bn<150&&p$5(!t.useLegacyLights,`physicallyCorrectLights`),p$5(t.outputColorSpace,`outputColorSpace`),p$5(t.toneMappingExposure,`toneMappingExposure`);let h$3=y$2(t.clearColor,`clearColor`);h$3&&a$2.value.setClearColor(h$3?Mn(h$3):new Color(0))}),onUnmounted(()=>{a$2.value.dispose(),a$2.value.forceContextLoss()}),{renderer:a$2}}function Cn(e$3,t,r$2=10){let n$2=toValue(e$3)?useWindowSize$1():useElementSize(computed(()=>toValue(t).parentElement)),o$1=readonly(refDebounced$1(n$2.width,r$2)),l$1=readonly(refDebounced$1(n$2.height,r$2)),s$1=computed(()=>o$1.value/l$1.value);return{height:l$1,width:o$1,aspectRatio:s$1}}const En=(e$3,t)=>{let r$2=computed(()=>t.renderer.value.domElement),n$2=shallowRef([]),{x:o$1,y:l$1}=usePointer$1({target:r$2}),s$1=0,{width:a$2,height:c$4,top:i$1,left:f$3}=useElementBounding$1(r$2),v$1=({x:g$2,y:T$1})=>{if(r$2.value)return{x:(g$2-f$3.value)/a$2.value*2-1,y:-((T$1-i$1.value)/c$4.value)*2+1}},u$1=({x:g$2,y:T$1})=>{if(t.camera.value)return t.raycaster.value.setFromCamera(new Vector2(g$2,T$1),t.camera.value),n$2.value=t.raycaster.value.intersectObjects(e$3.value,!0),n$2.value},_$2=g$2=>{let T$1=v$1({x:g$2?.clientX??o$1.value,y:g$2?.clientY??l$1.value});return T$1&&u$1(T$1)||[]},d$2=createEventHook$1(),y$2=createEventHook$1(),p$5=createEventHook$1(),h$3=createEventHook$1(),P$1=createEventHook$1(),C$3=createEventHook$1(),b$3=createEventHook$1(),E$2=createEventHook$1();function S$2(g$2){let T$1={};for(let U in g$2)typeof U!=`function`&&(T$1[U]=g$2[U]);return T$1}let M$1=(g$2,T$1)=>{var Ie,$e$1,He$1;let U=S$2(T$1),re$3=new Vector3(T$1?.clientX,T$1?.clientY,0).unproject((Ie=t.camera)?.value);g$2.trigger({...U,intersections:n$2.value,unprojectedPoint:re$3,ray:($e$1=t.raycaster)?.value.ray,camera:(He$1=t.camera)?.value,sourceEvent:T$1,delta:s$1,stopPropagating:!1})},x$3,m$2=g$2=>{_$2(g$2),M$1(p$5,g$2),x$3=g$2},w$1=()=>{x$3&&m$2(x$3)},k$4,L$1,R$1,B$2=g$2=>{var T$1;k$4=(T$1=n$2.value[0])?.object,s$1=0,L$1=new Vector2(g$2?.clientX??o$1.value,g$2?.clientY??l$1.value),M$1(P$1,g$2)},O$2,G$1=!1,Oe$2=g$2=>{var T$1,U,re$3;g$2 instanceof PointerEvent&&(n$2.value.length===0&&M$1(C$3,g$2),k$4===(T$1=n$2.value[0])?.object&&(R$1=new Vector2(g$2?.clientX??o$1.value,g$2?.clientY??l$1.value),s$1=L$1?.distanceTo(R$1),g$2.button===0?(M$1(d$2,g$2),O$2===(U=n$2.value[0])?.object?G$1=!0:(O$2=(re$3=n$2.value[0])?.object,G$1=!1)):g$2.button===2&&M$1(b$3,g$2)),M$1(h$3,g$2))},De=g$2=>{G$1&&(M$1(y$2,g$2),O$2=void 0,G$1=!1)},je=g$2=>M$1(p$5,g$2),Be$2=g$2=>M$1(E$2,g$2);return r$2.value.addEventListener(`pointerup`,Oe$2),r$2.value.addEventListener(`pointerdown`,B$2),r$2.value.addEventListener(`pointermove`,m$2),r$2.value.addEventListener(`pointerleave`,je),r$2.value.addEventListener(`dblclick`,De),r$2.value.addEventListener(`wheel`,Be$2),onUnmounted(()=>{r$2!=null&&r$2.value&&(r$2.value.removeEventListener(`pointerup`,Oe$2),r$2.value.removeEventListener(`pointerdown`,B$2),r$2.value.removeEventListener(`pointermove`,m$2),r$2.value.removeEventListener(`pointerleave`,je),r$2.value.removeEventListener(`dblclick`,De),r$2.value.removeEventListener(`wheel`,Be$2))}),{intersects:n$2,onClick:g$2=>d$2.on(g$2).off,onDblClick:g$2=>y$2.on(g$2).off,onContextMenu:g$2=>b$3.on(g$2).off,onPointerMove:g$2=>p$5.on(g$2).off,onPointerUp:g$2=>h$3.on(g$2).off,onPointerDown:g$2=>P$1.on(g$2).off,onPointerMissed:g$2=>C$3.on(g$2).off,onWheel:g$2=>E$2.on(g$2).off,forceUpdate:w$1}};function ye(e$3,t){if(Array.isArray(e$3))for(let r$2 of e$3)r$2(t);typeof e$3==`function`&&e$3(t)}function Tn(e$3,t,r$2){var x$3;let n$2=shallowRef(),o$1=shallowRef();e$3&&(n$2.value=e$3),t&&(o$1.value=t);let l$1=m$2=>{var w$1;return(w$1=m$2.__tres)?.eventCount>0},s$1=m$2=>{var w$1;return(w$1=m$2.children)?.some(k$4=>s$1(k$4))||l$1(m$2)},a$2=shallowRef(((x$3=n$2.value)?.children).filter(s$1)||[]);function c$4(m$2,w$1){let k$4=[],L$1=()=>w$1.stopPropagating=!0;w$1.stopPropagation=L$1;for(let R$1 of w$1?.intersections){if(w$1.stopPropagating)return;w$1={...w$1,...R$1};let{object:B$2}=R$1;w$1.eventObject=B$2,ye(B$2[m$2],w$1),k$4.push(B$2);let O$2=B$2.parent;for(;O$2!==null&&!w$1.stopPropagating&&!k$4.includes(O$2);)w$1.eventObject=O$2,ye(O$2[m$2],w$1),k$4.push(O$2),O$2=O$2.parent;let G$1=Xr(m$2.slice(2));r$2(G$1,{intersection:R$1,event:w$1})}}let{onClick:i$1,onDblClick:f$3,onContextMenu:v$1,onPointerMove:u$1,onPointerDown:_$2,onPointerUp:d$2,onPointerMissed:y$2,onWheel:p$5,forceUpdate:h$3}=En(a$2,t);d$2(m$2=>c$4(`onPointerUp`,m$2)),_$2(m$2=>c$4(`onPointerDown`,m$2)),i$1(m$2=>c$4(`onClick`,m$2)),f$3(m$2=>c$4(`onDoubleClick`,m$2)),v$1(m$2=>c$4(`onContextMenu`,m$2)),p$5(m$2=>c$4(`onWheel`,m$2));let P$1=[];u$1(m$2=>{let w$1=m$2.intersections.map(({object:L$1})=>L$1),k$4=m$2.intersections;P$1.forEach(({object:L$1})=>{w$1.includes(L$1)||(m$2.intersections=P$1,c$4(`onPointerLeave`,m$2),c$4(`onPointerOut`,m$2))}),m$2.intersections=k$4,m$2.intersections.forEach(({object:L$1})=>{P$1.includes(L$1)||(c$4(`onPointerEnter`,m$2),c$4(`onPointerOver`,m$2))}),c$4(`onPointerMove`,m$2),P$1=m$2.intersections});let C$3=[];y$2(m$2=>{let w$1=()=>m$2.stopPropagating=!0;m$2.stopPropagation=w$1,C$3.forEach(k$4=>{m$2.stopPropagating||(m$2.eventObject=k$4,ye(k$4.onPointerMissed,m$2))}),r$2(`pointer-missed`,{event:m$2})});function b$3(m$2){ne(m$2)&&N(m$2)&&a$2.value.push(m$2)}function E$2(m$2){if(ne(m$2)&&N(m$2)){let w$1=a$2.value.indexOf(m$2);w$1>-1&&a$2.value.splice(w$1,1)}}function S$2(m$2){ne(m$2)&&N(m$2)&&m$2.onPointerMissed&&C$3.push(m$2)}function M$1(m$2){if(ne(m$2)&&N(m$2)){let w$1=C$3.indexOf(m$2);w$1>-1&&C$3.splice(w$1,1)}}return t.eventManager={forceUpdate:h$3,registerObject:b$3,deregisterObject:E$2,registerPointerMissedObject:S$2,deregisterPointerMissedObject:M$1},{forceUpdate:h$3,registerObject:b$3,deregisterObject:E$2,registerPointerMissedObject:S$2,deregisterPointerMissedObject:M$1}}function Sn(e$3,t,r$2=100){r$2=r$2<=0?100:r$2;let n$2=createEventHook$1(),o$1=new Set,l$1=!1,s$1=!1,a$2=null;function c$4(){a$2&&clearTimeout(a$2),!s$1&&!l$1&&e$3()?(n$2.trigger(t),o$1.forEach(u$1=>u$1()),o$1.clear(),l$1=!0):!s$1&&!l$1&&(a$2=setTimeout(c$4,r$2))}function i$1(){s$1=!0,a$2&&clearTimeout(a$2)}c$4();let f$3=(u$1,..._$2)=>{u$1(..._$2)};return{on:u$1=>{if(l$1)return f$3(u$1,t),{off:()=>{}};{let _$2=n$2.on(u$1);return o$1.add(_$2.off),n$2.on(u$1)}},off:n$2.off,trigger:n$2.trigger,clear:n$2.clear,cancel:i$1}}const ee$2=new WeakMap;function bt$2(e$3){if(e$3||=pe$1(),ee$2.has(e$3))return ee$2.get(e$3);let t=100,r$2=Date.now(),l$1=Sn(()=>{if(Date.now()-r$2>=t)return!0;{let s$1=e$3.renderer.value,a$2=s$1?.domElement||{width:0,height:0};return!!(s$1&&a$2.width>0&&a$2.height>0)}},e$3);return ee$2.set(e$3,l$1),l$1}function An({scene:e$3,canvas:t,windowSize:r$2,rendererOptions:n$2,emit:o$1}){let l$1=shallowRef(e$3),s$1=Cn(r$2,t),{camera:a$2,cameras:c$4,registerCamera:i$1,deregisterCamera:f$3,setCameraActive:v$1}=mn({sizes:s$1}),u$1={mode:ref(n$2.renderMode||`always`),priority:ref(0),frames:ref(0),maxFrames:60,canBeInvalidated:computed(()=>u$1.mode.value===`on-demand`&&u$1.frames.value===0)};function _$2(R$1=1){n$2.renderMode===`on-demand`&&(u$1.frames.value=Math.min(u$1.maxFrames,u$1.frames.value+R$1))}function d$2(){n$2.renderMode===`manual`&&(u$1.frames.value=1)}let{renderer:y$2}=Pn({canvas:t,options:n$2,contextParts:{sizes:s$1,render:u$1,invalidate:_$2,advance:d$2}}),p$5={sizes:s$1,scene:l$1,camera:a$2,cameras:readonly(c$4),renderer:y$2,raycaster:shallowRef(new Raycaster),controls:ref(null),perf:{maxFrames:160,fps:{value:0,accumulator:[]},memory:{currentMem:0,allocatedMem:0,accumulator:[]}},render:u$1,advance:d$2,extend:Ee$1,invalidate:_$2,registerCamera:i$1,setCameraActive:v$1,deregisterCamera:f$3,loop:_n()};provide(`useTres`,p$5),p$5.scene.value.__tres={root:p$5},p$5.loop.register(()=>{a$2.value&&u$1.frames.value>0&&(y$2.value.render(e$3,a$2.value),o$1(`render`,p$5.renderer.value)),u$1.priority.value=0,u$1.mode.value===`always`?u$1.frames.value=1:u$1.frames.value=Math.max(0,u$1.frames.value-1)},`render`);let{on:h$3,cancel:P$1}=bt$2(p$5);p$5.loop.setReady(!1),p$5.loop.start(),h$3(()=>{o$1(`ready`,p$5),p$5.loop.setReady(!0),Tn(e$3,p$5,o$1)}),onUnmounted(()=>{P$1(),p$5.loop.stop()});let C$3=100,b$3=useFps({every:C$3}),{isSupported:E$2,memory:S$2}=useMemory({interval:C$3}),M$1=160,x$3=performance.now(),m$2=({timestamp:R$1})=>{p$5.scene.value&&(p$5.perf.memory.allocatedMem=Le(p$5.scene.value)),R$1-x$3>=C$3&&(x$3=R$1,p$5.perf.fps.accumulator.push(b$3.value),p$5.perf.fps.accumulator.length>M$1&&p$5.perf.fps.accumulator.shift(),p$5.perf.fps.value=b$3.value,E$2.value&&S$2.value&&(p$5.perf.memory.accumulator.push(S$2.value.usedJSHeapSize/1024/1024),p$5.perf.memory.accumulator.length>M$1&&p$5.perf.memory.accumulator.shift(),p$5.perf.memory.currentMem=p$5.perf.memory.accumulator.reduce((B$2,O$2)=>B$2+O$2,0)/p$5.perf.memory.accumulator.length))},w$1=0,k$4=1,{pause:L$1}=useRafFn(({delta:R$1})=>{window.__TRES__DEVTOOLS__&&(m$2({timestamp:performance.now()}),w$1+=R$1,w$1>=k$4&&(window.__TRES__DEVTOOLS__.cb(p$5),w$1=0))},{immediate:!0});return onUnmounted(()=>{L$1()}),p$5}function pe$1(){let e$3=inject(`useTres`);if(!e$3)throw Error(`useTresContext must be used together with useTresContextProvider`);return e$3}const so=pe$1;function io(){let{camera:e$3,scene:t,renderer:r$2,loop:n$2,raycaster:o$1,controls:l$1,invalidate:s$1,advance:a$2}=pe$1();n$2.setContext({camera:e$3,scene:t,renderer:r$2,raycaster:o$1,controls:l$1,invalidate:s$1,advance:a$2});function c$4(v$1,u$1=0){return n$2.register(v$1,`before`,u$1)}function i$1(v$1){return n$2.register(v$1,`render`)}function f$3(v$1,u$1=0){return n$2.register(v$1,`after`,u$1)}return{pause:n$2.pause,resume:n$2.resume,pauseRender:n$2.pauseRender,resumeRender:n$2.resumeRender,isActive:n$2.isActive,onBeforeRender:c$4,render:i$1,onAfterRender:f$3}}const Mt$1=createEventHook$1(),Pt$2=createEventHook$1(),Re=createEventHook$1(),te$1=new Clock;let le$1=0,ce$1=0;const{pause:xn,resume:Xe,isActive:kn}=useRafFn(()=>{Mt$1.trigger({delta:le$1,elapsed:ce$1,clock:te$1}),Pt$2.trigger({delta:le$1,elapsed:ce$1,clock:te$1}),Re.trigger({delta:le$1,elapsed:ce$1,clock:te$1})},{immediate:!1});Re.on(()=>{le$1=te$1.getDelta(),ce$1=te$1.getElapsedTime()});function Ln(e$3,t={},r$2={}){let n$2=e$3,o$1=a$2=>{n$2=a$2},l$1=new Proxy({},{}),s$1={has(a$2,c$4){return c$4 in t||c$4 in n$2},get(a$2,c$4,i$1){return c$4 in t?t[c$4](n$2):n$2[c$4]},set(a$2,c$4,i$1){return r$2[c$4]?r$2[c$4](i$1,n$2,l$1,o$1):n$2[c$4]=i$1,!0}};return l$1=new Proxy({},s$1),l$1}const{logError:et$1}=Q$2(),tt$1=[`onClick`,`onContextMenu`,`onPointerMove`,`onPointerEnter`,`onPointerLeave`,`onPointerOver`,`onPointerOut`,`onDoubleClick`,`onPointerDown`,`onPointerUp`,`onPointerCancel`,`onPointerMissed`,`onLostPointerCapture`,`onWheel`],Rn=e$3=>{let t=e$3.scene.value;function r$2(i$1,f$3,v$1,u$1){if(u$1||={},u$1.args||=[],i$1===`template`||Jr(i$1))return null;let _$2=i$1.replace(`Tres`,``),d$2;if(i$1===`primitive`){(!j(u$1.object)||isRef(u$1.object))&&et$1(`Tres primitives need an 'object' prop, whose value is an object or shallowRef`),_$2=u$1.object.type;let y$2={};d$2=Ln(u$1.object,{object:h$3=>h$3,isPrimitive:()=>!0,__tres:()=>y$2},{object:(h$3,P$1,C$3,b$3)=>{pn(h$3,C$3,b$3,{patchProp:l$1,remove:o$1,insert:n$2},e$3)},__tres:h$3=>{Object.assign(y$2,h$3)}})}else{let y$2=Ce$2.value[_$2];y$2||et$1(`${_$2} is not defined on the THREE namespace. Use extend to add it to the catalog.`),d$2=new y$2(...u$1.args)}return d$2?(d$2.isCamera&&(u$1!=null&&u$1.position||d$2.position.set(3,3,3),u$1!=null&&u$1.lookAt||d$2.lookAt(0,0,0)),d$2=z$1(d$2,{...d$2.__tres,type:_$2,memoizedProps:u$1,eventCount:0,primitive:i$1===`primitive`,attach:u$1.attach},e$3),d$2):null}function n$2(i$1,f$3){var _$2,d$2,y$2;if(!i$1)return;f$3||=t;let v$1=i$1.__tres?i$1:z$1(i$1,{},e$3),u$1=f$3.__tres?f$3:z$1(f$3,{},e$3);i$1=J(v$1),f$3=J(u$1),i$1.__tres&&(_$2=i$1.__tres)?.eventCount>0&&((d$2=e$3.eventManager)==null||d$2.registerObject(i$1)),e$3.registerCamera(i$1),(y$2=e$3.eventManager)==null||y$2.registerPointerMissedObject(i$1),v$1.__tres.attach?cn(u$1,v$1,v$1.__tres.attach):N(i$1)&&N(u$1)&&(u$1.add(i$1),i$1.dispatchEvent({type:`added`})),v$1.__tres.parent=u$1,u$1.__tres.objects&&!u$1.__tres.objects.includes(v$1)&&u$1.__tres.objects.push(v$1)}function o$1(i$1,f$3){var d$2,y$2,p$5,h$3;if(!i$1)return;i$1!=null&&i$1.__tres&&(d$2=i$1.__tres)?.eventCount>0&&((y$2=e$3.eventManager)==null||y$2.deregisterObject(i$1)),f$3=be$1(f$3)?`default`:f$3;let v$1=(p$5=i$1.__tres)?.dispose;be$1(v$1)||(f$3=v$1===null?!1:v$1);let u$1=(h$3=i$1.__tres)?.primitive,_$2=f$3===`default`?!u$1:!!f$3;if(i$1.__tres&&`objects`in i$1.__tres&&[...i$1.__tres.objects].forEach(P$1=>o$1(P$1,f$3)),_$2&&i$1.children&&[...i$1.children].forEach(P$1=>o$1(P$1,f$3)),_t$2(i$1,e$3),wt$2(i$1,e$3),_$2&&!Yr(i$1)){if(Y$1(f$3))f$3(i$1);else if(Y$1(i$1.dispose))try{i$1.dispose()}catch{}}`__tres`in i$1&&delete i$1.__tres}function l$1(i$1,f$3,v$1,u$1){var P$1,C$3;if(!i$1)return;let _$2=i$1,d$2=f$3;if(i$1.__tres&&(i$1.__tres.memoizedProps[f$3]=u$1),f$3===`attach`){let b$3=(P$1=i$1.__tres)?.parent||i$1.parent;o$1(i$1),z$1(i$1,{attach:u$1},e$3),b$3&&n$2(i$1,b$3);return}if(f$3===`dispose`){i$1.__tres||(i$1=z$1(i$1,{},e$3)),i$1.__tres.dispose=u$1;return}if(N(i$1)&&d$2===`blocks-pointer-events`){u$1||u$1===``?i$1[d$2]=u$1:delete i$1[d$2];return}tt$1.includes(f$3)&&i$1.__tres&&(i$1.__tres.eventCount+=1);let y$2=he$1(d$2),p$5=_$2?.[y$2];if(d$2===`args`){let b$3=i$1,E$2=v$1??[],S$2=u$1??[],M$1=(C$3=i$1.__tres)?.type||i$1.type;M$1&&E$2.length&&!tn(E$2,S$2)&&(_$2=Object.assign(b$3,new Ce$2.value[M$1](...u$1)));return}if(_$2.type===`BufferGeometry`){if(d$2===`args`)return;_$2.setAttribute(he$1(d$2),new BufferAttribute(...u$1));return}if(d$2.includes(`-`)&&p$5===void 0){p$5=_$2;for(let b$3 of d$2.split(`-`))y$2=d$2=he$1(b$3),_$2=p$5,p$5=p$5?.[d$2]}let h$3=u$1;if(h$3===``&&(h$3=!0),Y$1(p$5)){tt$1.includes(f$3)||(ke(h$3)?i$1[y$2](...h$3):i$1[y$2](h$3)),y$2.startsWith(`on`)&&Y$1(h$3)&&(_$2[y$2]=h$3);return}Ge(p$5)&&Ge(h$3)?p$5.mask=h$3.mask:mt$2(p$5)&&Ur(h$3)?p$5.set(h$3):Fr(p$5)&&Wr(h$3)&&p$5.constructor===h$3.constructor?p$5.copy(h$3):Me$1(p$5)&&Array.isArray(h$3)?`fromArray`in p$5&&typeof p$5.fromArray==`function`?p$5.fromArray(h$3):p$5.set(...h$3):Me$1(p$5)&&typeof h$3==`number`?`setScalar`in p$5&&typeof p$5.setScalar==`function`?p$5.setScalar(h$3):p$5.set(h$3):_$2[y$2]=h$3,yt$2(i$1)}function s$1(i$1){var f$3;return(f$3=i$1?.__tres)?.parent||null}function a$2(i$1){let f$3=z$1(new Object3D,{type:`Comment`},e$3);return f$3.name=i$1,f$3}function c$4(i$1){var _$2;let f$3=s$1(i$1),v$1=(_$2=f$3?.__tres)?.objects||[],u$1=v$1.indexOf(i$1);return u$1<0||u$1>=v$1.length-1?null:v$1[u$1+1]}return{insert:n$2,remove:o$1,createElement:r$2,patchProp:l$1,parentNode:s$1,createText:()=>void 0,createComment:a$2,setText:()=>void 0,setElementText:()=>void 0,nextSibling:c$4,querySelector:()=>void 0,setScopeId:()=>void 0,cloneNode:()=>void 0,insertStaticContent:()=>void 0}};function On(){return Ct$1().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ct$1(){return typeof navigator<`u`&&typeof window<`u`?window:typeof globalThis<`u`?globalThis:{}}const Dn=typeof Proxy==`function`,jn=`devtools-plugin:setup`,Bn=`plugin:settings:set`;let V,Te$2;function In(){var e$3;return V!==void 0||(typeof window<`u`&&window.performance?(V=!0,Te$2=window.performance):typeof globalThis<`u`&&(e$3=globalThis.perf_hooks)!=null&&e$3.performance?(V=!0,Te$2=globalThis.perf_hooks.performance):V=!1),V}function $n(){return In()?Te$2.now():Date.now()}var Hn=class{constructor(t,r$2){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r$2;let n$2={};if(t.settings)for(let s$1 in t.settings){let a$2=t.settings[s$1];n$2[s$1]=a$2.defaultValue}let o$1=`__vue-devtools-plugin-settings__${t.id}`,l$1=Object.assign({},n$2);try{let s$1=localStorage.getItem(o$1),a$2=JSON.parse(s$1);Object.assign(l$1,a$2)}catch{}this.fallbacks={getSettings(){return l$1},setSettings(s$1){try{localStorage.setItem(o$1,JSON.stringify(s$1))}catch{}l$1=s$1},now(){return $n()}},r$2&&r$2.on(Bn,(s$1,a$2)=>{s$1===this.plugin.id&&this.fallbacks.setSettings(a$2)}),this.proxiedOn=new Proxy({},{get:(s$1,a$2)=>this.target?this.target.on[a$2]:(...c$4)=>{this.onQueue.push({method:a$2,args:c$4})}}),this.proxiedTarget=new Proxy({},{get:(s$1,a$2)=>this.target?this.target[a$2]:a$2===`on`?this.proxiedOn:Object.keys(this.fallbacks).includes(a$2)?(...c$4)=>(this.targetQueue.push({method:a$2,args:c$4,resolve:()=>{}}),this.fallbacks[a$2](...c$4)):(...c$4)=>new Promise(i$1=>{this.targetQueue.push({method:a$2,args:c$4,resolve:i$1})})})}async setRealTarget(t){this.target=t;for(let r$2 of this.onQueue)this.target.on[r$2.method](...r$2.args);for(let r$2 of this.targetQueue)r$2.resolve(await this.target[r$2.method](...r$2.args))}};function Un(e$3,t){let r$2=e$3,n$2=Ct$1(),o$1=On(),l$1=Dn&&r$2.enableEarlyProxy;if(o$1&&(n$2.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l$1))o$1.emit(jn,e$3,t);else{let s$1=l$1?new Hn(r$2,o$1):null;(n$2.__VUE_DEVTOOLS_PLUGINS__=n$2.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r$2,setupFn:t,proxy:s$1}),s$1&&t(s$1.proxiedTarget)}}function Fn(e$3,t){let r$2=`▲ ■ ●${e$3}`;typeof rt$2==`function`?rt$2(r$2,t):console.log(r$2)}function rt$2(e$3,t){throw Error(e$3+t)}const Et$1=e$3=>{let t={id:e$3.uuid,label:e$3.type,children:[],tags:[]};e$3.name!==``&&t.tags.push({label:e$3.name,textColor:5750629,backgroundColor:15793395});let r$2=Le(e$3);return r$2>0&&t.tags.push({label:`${wn(r$2)} KB`,textColor:15707189,backgroundColor:16775644,tooltip:`Memory usage`}),e$3.type.includes(`Light`)&&(Gr(e$3)&&t.tags.push({label:`${e$3.intensity}`,textColor:9738662,backgroundColor:16316922,tooltip:`Intensity`}),t.tags.push({label:`#${new Color(e$3.color).getHexString()}`,textColor:9738662,backgroundColor:16316922,tooltip:`Color`})),e$3.type.includes(`Camera`)&&(t.tags.push({label:`${e$3.fov}°`,textColor:9738662,backgroundColor:16316922,tooltip:`Field of view`}),t.tags.push({label:`x: ${Math.round(e$3.position.x)} y: ${Math.round(e$3.position.y)} z: ${Math.round(e$3.position.z)}`,textColor:9738662,backgroundColor:16316922,tooltip:`Position`})),t};function Tt$2(e$3,t,r$2=``){e$3.children.forEach(n$2=>{if(n$2.type===`HightlightMesh`||r$2&&!n$2.type.includes(r$2)&&!n$2.name.includes(r$2))return;let o$1=Et$1(n$2);t.children.push(o$1),Tt$2(n$2,o$1,r$2)})}const Wn=[],X$1=`tres:inspector`,Nn=reactive({sceneGraph:null});function zn(e$3,t){Un({id:`dev.esm.tres`,label:`TresJS 🪐`,logo:`https://raw.githubusercontent.com/Tresjs/tres/main/public/favicon.svg`,packageName:`tresjs`,homepage:`https://tresjs.org`,componentStateTypes:Wn,app:e$3},r$2=>{typeof r$2.now!=`function`&&Fn(`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.`),r$2.addInspector({id:X$1,label:`TresJS 🪐`,icon:`account_tree`,treeFilterPlaceholder:`Search instances`}),setInterval(()=>{r$2.sendInspectorTree(X$1)},1e3),setInterval(()=>{r$2.notifyComponentUpdate()},5e3),r$2.on.getInspectorTree(l$1=>{if(l$1.inspectorId===X$1){let s$1=Et$1(t.scene.value);Tt$2(t.scene.value,s$1,l$1.filter),Nn.sceneGraph=s$1,l$1.rootNodes=[s$1]}});let n$2=null,o$1=null;r$2.on.getInspectorState(l$1=>{var s$1;if(l$1.inspectorId===X$1){let[a$2]=t.scene.value.getObjectsByProperty(`uuid`,l$1.nodeId);if(!a$2)return;if(o$1&&n$2&&n$2.parent&&o$1.remove(n$2),a$2.isMesh){let c$4=on(a$2);a$2.add(c$4),n$2=c$4,o$1=a$2}l$1.state={object:Object.entries(a$2).map(([c$4,i$1])=>c$4===`children`?{key:c$4,value:i$1.filter(f$3=>f$3.type!==`HightlightMesh`)}:{key:c$4,value:i$1,editable:!0}).filter(({key:c$4})=>c$4!==`parent`)},a$2.isScene&&(l$1.state={...l$1.state,state:[{key:`Scene Info`,value:{objects:a$2.children.length,memory:Le(a$2),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:(s$1=t.renderer.value.info.programs)?.map(c$4=>({...c$4,programName:c$4.name}))||[]}]})}}),r$2.on.editInspectorState(l$1=>{l$1.inspectorId===X$1&&nn(t.scene.value,l$1.nodeId,l$1.path,l$1.state.value)})})}const Gn=[`data-scene`,`data-tres`],Vn=defineComponent({__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$3,{expose:t,emit:r$2}){let n$2=e$3,o$1=r$2,l$1=useSlots(),s$1=ref(),a$2=shallowRef(new Scene),c$4=getCurrentInstance();Ee$1(three_module_exports);let i$1=(d$2,y$2=!1)=>defineComponent({setup(){var C$3;let p$5=(C$3=getCurrentInstance())?.appContext;p$5&&(p$5.app=c$4?.appContext.app);let h$3={};function P$1(b$3){b$3&&(b$3.parent&&P$1(b$3.parent),b$3.provides&&Object.assign(h$3,b$3.provides))}return c$4!=null&&c$4.parent&&n$2.enableProvideBridge&&(P$1(c$4.parent),Reflect.ownKeys(h$3).forEach(b$3=>{provide(b$3,h$3[b$3])})),provide(`useTres`,d$2),provide(`extend`,Ee$1),typeof window<`u`&&zn(p$5?.app,d$2),()=>h(Fragment,null,y$2?[]:l$1.default())}}),f$3=(d$2,y$2=!1)=>{let p$5=i$1(d$2,y$2),{render:h$3}=createRenderer(Rn(d$2));h$3(h(p$5),a$2.value)},v$1=(d$2,y$2=!1)=>{vt$2(d$2.scene.value),y$2&&(d$2.renderer.value.dispose(),d$2.renderer.value.renderLists.dispose(),d$2.renderer.value.forceContextLoss()),a$2.value.__tres={root:d$2}},u$1=shallowRef(null);t({context:u$1,dispose:()=>v$1(u$1.value,!0)});let _$2=()=>{v$1(u$1.value),f$3(u$1.value,!0)};return onMounted(()=>{let d$2=s$1;u$1.value=An({scene:a$2.value,canvas:d$2,windowSize:n$2.windowSize??!1,rendererOptions:n$2,emit:o$1});let{registerCamera:y$2,camera:p$5,cameras:h$3,deregisterCamera:P$1}=u$1.value;f$3(u$1.value);let C$3=()=>{let b$3=new PerspectiveCamera(45,window.innerWidth/window.innerHeight,.1,1e3);b$3.position.set(3,3,3),b$3.lookAt(0,0,0),y$2(b$3);let E$2=watchEffect(()=>{h$3.value.length>=2&&(b$3.removeFromParent(),P$1(b$3),E$2?.())})};watch(()=>n$2.camera,(b$3,E$2)=>{b$3&&y$2(b$3),E$2&&(E$2.removeFromParent(),P$1(E$2))},{immediate:!0}),p$5.value||C$3()}),onUnmounted(_$2),(d$2,y$2)=>(openBlock(),createElementBlock(`canvas`,{ref_key:`canvas`,ref:s$1,"data-scene":a$2.value.uuid,class:normalizeClass(d$2.$attrs.class),"data-tres":`tresjs ${unref(jr).version}`,style:normalizeStyle({display:`block`,width:`100%`,height:`100%`,position:d$2.windowSize?`fixed`:`relative`,top:0,left:0,pointerEvents:`auto`,touchAction:`none`,...d$2.$attrs.style})},null,14,Gn))}}),Yn=[`TresCanvas`,`TresLeches`,`TresScene`],co={template:{compilerOptions:{isCustomElement:e$3=>e$3.startsWith(`Tres`)&&!Yn.includes(e$3)||e$3===`primitive`}}},{logWarning:qn}=Q$2();var St$2=class extends Line{constructor(t,r$2){let n$2=[1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],o$1=new BufferGeometry;o$1.setAttribute(`position`,new Float32BufferAttribute(n$2,3)),o$1.computeBoundingSphere();let l$1=new LineBasicMaterial({fog:!1});super(o$1,l$1),this.light=t,this.color=r$2,this.type=`RectAreaLightHelper`;let s$1=[1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],a$2=new BufferGeometry;a$2.setAttribute(`position`,new Float32BufferAttribute(s$1,3)),a$2.computeBoundingSphere(),this.add(new Mesh(a$2,new MeshBasicMaterial({side:BackSide,fog:!1})))}updateMatrixWorld(){if(this.scale.set(.5*this.light.width,.5*this.light.height,1),this.color!==void 0)this.material.color.set(this.color),this.children[0].material.color.set(this.color);else{this.material.color.copy(this.light.color).multiplyScalar(this.light.intensity);let t=this.material.color,r$2=Math.max(t.r,t.g,t.b);r$2>1&&t.multiplyScalar(1/r$2),this.children[0].material.color.copy(this.material.color)}this.matrixWorld.extractRotation(this.light.matrixWorld).scale(this.scale).copyPosition(this.light.matrixWorld),this.children[0].matrixWorld.copy(this.matrixWorld)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}};const{logWarning:nt$1}=Q$2();let se,F$1;const Kn={DirectionalLight:DirectionalLightHelper,PointLight:PointLightHelper,SpotLight:SpotLightHelper,HemisphereLight:HemisphereLightHelper,RectAreaLight:St$2},fo={mounted:e$3=>{if(!e$3.isLight){nt$1(`${e$3.type} is not a light`);return}se=Kn[e$3.type],e$3.parent.add(new se(e$3,1,e$3.color.getHex()))},updated:e$3=>{F$1=e$3.parent.children.find(t=>t instanceof se),!(F$1 instanceof St$2)&&F$1.update()},unmounted:e$3=>{if(!e$3.isLight){nt$1(`${e$3.type} is not a light`);return}F$1=e$3.parent.children.find(t=>t instanceof se),F$1&&F$1.dispose&&F$1.dispose(),e$3.parent&&e$3.parent.remove(F$1)}},po={mounted:(e$3,t)=>{if(t.arg){console.log(`v-log:${t.arg}`,e$3[t.arg]);return}console.log(`v-log`,e$3)}},mo={install(e$3){e$3.component(`TresCanvas`,Vn)}};var require_nprogress=__commonJSMin((exports,module)=>{(function(root$3,factory){typeof define==`function`&&define.amd?define(factory):typeof exports==`object`?module.exports=factory():root$3.NProgress=factory()})(void 0,function(){var NProgress$1={};NProgress$1.version=`0.2.0`;var Settings=NProgress$1.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:`
`};NProgress$1.configure=function(options$1){var key$1,value$1;for(key$1 in options$1)value$1=options$1[key$1],value$1!==void 0&&options$1.hasOwnProperty(key$1)&&(Settings[key$1]=value$1);return this},NProgress$1.status=null,NProgress$1.set=function(n$2){var started=NProgress$1.isStarted();n$2=clamp$7(n$2,Settings.minimum,1),NProgress$1.status=n$2===1?null:n$2;var progress$1=NProgress$1.render(!started),bar=progress$1.querySelector(Settings.barSelector),speed=Settings.speed,ease=Settings.easing;return progress$1.offsetWidth,queue$1(function(next){Settings.positionUsing===``&&(Settings.positionUsing=NProgress$1.getPositioningCSS()),css(bar,barPositionCSS(n$2,speed,ease)),n$2===1?(css(progress$1,{transition:`none`,opacity:1}),progress$1.offsetWidth,setTimeout(function(){css(progress$1,{transition:`all `+speed+`ms linear`,opacity:0}),setTimeout(function(){NProgress$1.remove(),next()},speed)},speed)):setTimeout(next,speed)}),this},NProgress$1.isStarted=function(){return typeof NProgress$1.status==`number`},NProgress$1.start=function(){NProgress$1.status||NProgress$1.set(0);var work=function(){setTimeout(function(){NProgress$1.status&&(NProgress$1.trickle(),work())},Settings.trickleSpeed)};return Settings.trickle&&work(),this},NProgress$1.done=function(force){return!force&&!NProgress$1.status?this:NProgress$1.inc(.3+.5*Math.random()).set(1)},NProgress$1.inc=function(amount){var n$2=NProgress$1.status;return n$2?(typeof amount!=`number`&&(amount=(1-n$2)*clamp$7(Math.random()*n$2,.1,.95)),n$2=clamp$7(n$2+amount,0,.994),NProgress$1.set(n$2)):NProgress$1.start()},NProgress$1.trickle=function(){return NProgress$1.inc(Math.random()*Settings.trickleRate)},function(){var initial=0,current=0;NProgress$1.promise=function($promise){return!$promise||$promise.state()===`resolved`?this:(current===0&&NProgress$1.start(),initial++,current++,$promise.always(function(){current--,current===0?(initial=0,NProgress$1.done()):NProgress$1.set((initial-current)/initial)}),this)}}(),NProgress$1.render=function(fromStart){if(NProgress$1.isRendered())return document.getElementById(`nprogress`);addClass(document.documentElement,`nprogress-busy`);var progress$1=document.createElement(`div`);progress$1.id=`nprogress`,progress$1.innerHTML=Settings.template;var bar=progress$1.querySelector(Settings.barSelector),perc=fromStart?`-100`:toBarPerc(NProgress$1.status||0),parent=document.querySelector(Settings.parent),spinner;return css(bar,{transition:`all 0 linear`,transform:`translate3d(`+perc+`%,0,0)`}),Settings.showSpinner||(spinner=progress$1.querySelector(Settings.spinnerSelector),spinner&&removeElement(spinner)),parent!=document.body&&addClass(parent,`nprogress-custom-parent`),parent.appendChild(progress$1),progress$1},NProgress$1.remove=function(){removeClass(document.documentElement,`nprogress-busy`),removeClass(document.querySelector(Settings.parent),`nprogress-custom-parent`);var progress$1=document.getElementById(`nprogress`);progress$1&&removeElement(progress$1)},NProgress$1.isRendered=function(){return!!document.getElementById(`nprogress`)},NProgress$1.getPositioningCSS=function(){var bodyStyle=document.body.style,vendorPrefix=`WebkitTransform`in bodyStyle?`Webkit`:`MozTransform`in bodyStyle?`Moz`:`msTransform`in bodyStyle?`ms`:`OTransform`in bodyStyle?`O`:``;return vendorPrefix+`Perspective`in bodyStyle?`translate3d`:vendorPrefix+`Transform`in bodyStyle?`translate`:`margin`};function clamp$7(n$2,min$1,max$1){return n$2max$1?max$1:n$2}function toBarPerc(n$2){return(-1+n$2)*100}function barPositionCSS(n$2,speed,ease){var barCSS;return barCSS=Settings.positionUsing===`translate3d`?{transform:`translate3d(`+toBarPerc(n$2)+`%,0,0)`}:Settings.positionUsing===`translate`?{transform:`translate(`+toBarPerc(n$2)+`%,0)`}:{"margin-left":toBarPerc(n$2)+`%`},barCSS.transition=`all `+speed+`ms `+ease,barCSS}var queue$1=function(){var pending=[];function next(){var fn$5=pending.shift();fn$5&&fn$5(next)}return function(fn$5){pending.push(fn$5),pending.length==1&&next()}}(),css=function(){var cssPrefixes=[`Webkit`,`O`,`Moz`,`ms`],cssProps={};function camelCase(string$2){return string$2.replace(/^-ms-/,`ms-`).replace(/-([\da-z])/gi,function(match,letter){return letter.toUpperCase()})}function getVendorProp(name$2){var style=document.body.style;if(name$2 in style)return name$2;for(var i$1=cssPrefixes.length,capName=name$2.charAt(0).toUpperCase()+name$2.slice(1),vendorName;i$1--;)if(vendorName=cssPrefixes[i$1]+capName,vendorName in style)return vendorName;return name$2}function getStyleProp(name$2){return name$2=camelCase(name$2),cssProps[name$2]||(cssProps[name$2]=getVendorProp(name$2))}function applyCss(element$3,prop,value$1){prop=getStyleProp(prop),element$3.style[prop]=value$1}return function(element$3,properties){var args=arguments,prop,value$1;if(args.length==2)for(prop in properties)value$1=properties[prop],value$1!==void 0&&properties.hasOwnProperty(prop)&&applyCss(element$3,prop,value$1);else applyCss(element$3,args[1],args[2])}}();function hasClass(element$3,name$2){var list$2=typeof element$3==`string`?element$3:classList(element$3);return list$2.indexOf(` `+name$2+` `)>=0}function addClass(element$3,name$2){var oldList=classList(element$3),newList=oldList+name$2;hasClass(oldList,name$2)||(element$3.className=newList.substring(1))}function removeClass(element$3,name$2){var oldList=classList(element$3),newList;hasClass(element$3,name$2)&&(newList=oldList.replace(` `+name$2+` `,` `),element$3.className=newList.substring(1,newList.length-1))}function classList(element$3){return(` `+(element$3.className||``)+` `).replace(/\s+/gi,` `)}function removeElement(element$3){element$3&&element$3.parentNode&&element$3.parentNode.removeChild(element$3)}return NProgress$1})});const parents=new Set,coords=new WeakMap,siblings$1=new WeakMap,animations=new WeakMap,intersections=new WeakMap,intervals=new WeakMap,options=new WeakMap,debounces=new WeakMap,enabled=new WeakSet;let root$2,scrollX=0,scrollY=0;const TGT=`__aa_tgt`,DEL=`__aa_del`,NEW=`__aa_new`,handleMutations=mutations$1=>{let elements=getElements(mutations$1);elements&&elements.forEach(el=>animate$1(el))},handleResizes=entries=>{entries.forEach(entry=>{entry.target===root$2&&updateAllPos(),coords.has(entry.target)&&updatePos(entry.target)})};function observePosition(el){let oldObserver=intersections.get(el);oldObserver?.disconnect();let rect=coords.get(el),invocations=0,buffer$1=5;rect||(rect=getCoords(el),coords.set(el,rect));let{offsetWidth,offsetHeight}=root$2,rootMargins=[rect.top-buffer$1,offsetWidth-(rect.left+buffer$1+rect.width),offsetHeight-(rect.top+buffer$1+rect.height),rect.left-buffer$1],rootMargin=rootMargins.map(px$2=>`${-1*Math.floor(px$2)}px`).join(` `),observer=new IntersectionObserver(()=>{++invocations>1&&updatePos(el)},{root:root$2,threshold:1,rootMargin});observer.observe(el),intersections.set(el,observer)}function updatePos(el){clearTimeout(debounces.get(el));let optionsOrPlugin=getOptions(el),delay=isPlugin(optionsOrPlugin)?500:optionsOrPlugin.duration;debounces.set(el,setTimeout(async()=>{let currentAnimation=animations.get(el);try{await currentAnimation?.finished,coords.set(el,getCoords(el)),observePosition(el)}catch{}},delay))}function updateAllPos(){clearTimeout(debounces.get(root$2)),debounces.set(root$2,setTimeout(()=>{parents.forEach(parent=>forEach(parent,el=>lowPriority(()=>updatePos(el))))},100))}function poll(el){setTimeout(()=>{intervals.set(el,setInterval(()=>lowPriority(updatePos.bind(null,el)),2e3))},Math.round(2e3*Math.random()))}function lowPriority(callback){typeof requestIdleCallback==`function`?requestIdleCallback(()=>callback()):requestAnimationFrame(()=>callback())}let mutations,resize;const supportedBrowser=typeof window<`u`&&`ResizeObserver`in window;supportedBrowser&&(root$2=document.documentElement,mutations=new MutationObserver(handleMutations),resize=new ResizeObserver(handleResizes),window.addEventListener(`scroll`,()=>{scrollY=window.scrollY,scrollX=window.scrollX}),resize.observe(root$2));function getElements(mutations$1){let observedNodes=mutations$1.reduce((nodes,mutation)=>[...nodes,...Array.from(mutation.addedNodes),...Array.from(mutation.removedNodes)],[]),onlyCommentNodesObserved=observedNodes.every(node$1=>node$1.nodeName===`#comment`);return onlyCommentNodesObserved?!1:mutations$1.reduce((elements,mutation)=>{if(elements===!1)return!1;if(mutation.target instanceof Element){if(target(mutation.target),!elements.has(mutation.target)){elements.add(mutation.target);for(let i$1=0;i$1callback(parent,options.has(parent)));for(let i$1=0;i$1callback(child,options.has(child)))}}function getPluginTuple(pluginReturn){return Array.isArray(pluginReturn)?pluginReturn:[pluginReturn]}function isPlugin(config){return typeof config==`function`}function remain(el){let oldCoords=coords.get(el),newCoords=getCoords(el);if(!isEnabled(el))return coords.set(el,newCoords);let animation;if(!oldCoords)return;let pluginOrOptions=getOptions(el);if(typeof pluginOrOptions!=`function`){let deltaX=oldCoords.left-newCoords.left,deltaY=oldCoords.top-newCoords.top,[widthFrom,widthTo,heightFrom,heightTo]=getTransitionSizes(el,oldCoords,newCoords),start={transform:`translate(${deltaX}px, ${deltaY}px)`},end={transform:`translate(0, 0)`};widthFrom!==widthTo&&(start.width=`${widthFrom}px`,end.width=`${widthTo}px`),heightFrom!==heightTo&&(start.height=`${heightFrom}px`,end.height=`${heightTo}px`),animation=el.animate([start,end],{duration:pluginOrOptions.duration,easing:pluginOrOptions.easing})}else{let[keyframes$3]=getPluginTuple(pluginOrOptions(el,`remain`,oldCoords,newCoords));animation=new Animation(keyframes$3),animation.play()}animations.set(el,animation),coords.set(el,newCoords),animation.addEventListener(`finish`,updatePos.bind(null,el))}function add(el){NEW in el&&delete el[NEW];let newCoords=getCoords(el);coords.set(el,newCoords);let pluginOrOptions=getOptions(el);if(!isEnabled(el))return;let animation;if(typeof pluginOrOptions!=`function`)animation=el.animate([{transform:`scale(.98)`,opacity:0},{transform:`scale(0.98)`,opacity:0,offset:.5},{transform:`scale(1)`,opacity:1}],{duration:pluginOrOptions.duration*1.5,easing:`ease-in`});else{let[keyframes$3]=getPluginTuple(pluginOrOptions(el,`add`,newCoords));animation=new Animation(keyframes$3),animation.play()}animations.set(el,animation),animation.addEventListener(`finish`,updatePos.bind(null,el))}function cleanUp(el,styles){var _a$2;el.remove(),coords.delete(el),siblings$1.delete(el),animations.delete(el),(_a$2=intersections.get(el))==null||_a$2.disconnect(),setTimeout(()=>{if(DEL in el&&delete el[DEL],Object.defineProperty(el,NEW,{value:!0,configurable:!0}),styles&&el instanceof HTMLElement)for(let style in styles)el.style[style]=``},0)}function remove(el){var _a$2;if(!siblings$1.has(el)||!coords.has(el))return;let[prev,next]=siblings$1.get(el);Object.defineProperty(el,DEL,{value:!0,configurable:!0});let finalX=window.scrollX,finalY=window.scrollY;if(next&&next.parentNode&&next.parentNode instanceof Element?next.parentNode.insertBefore(el,next):prev&&prev.parentNode?prev.parentNode.appendChild(el):(_a$2=getTarget(el))==null||_a$2.appendChild(el),!isEnabled(el))return cleanUp(el);let[top,left,width,height]=deletePosition(el),optionsOrPlugin=getOptions(el),oldCoords=coords.get(el);(finalX!==scrollX||finalY!==scrollY)&&adjustScroll(el,finalX,finalY,optionsOrPlugin);let animation,styleReset={position:`absolute`,top:`${top}px`,left:`${left}px`,width:`${width}px`,height:`${height}px`,margin:`0`,pointerEvents:`none`,transformOrigin:`center`,zIndex:`100`};if(!isPlugin(optionsOrPlugin))Object.assign(el.style,styleReset),animation=el.animate([{transform:`scale(1)`,opacity:1},{transform:`scale(.98)`,opacity:0}],{duration:optionsOrPlugin.duration,easing:`ease-out`});else{let[keyframes$3,options$1]=getPluginTuple(optionsOrPlugin(el,`remove`,oldCoords));options$1?.styleReset!==!1&&(styleReset=options$1?.styleReset||styleReset,Object.assign(el.style,styleReset)),animation=new Animation(keyframes$3),animation.play()}animations.set(el,animation),animation.addEventListener(`finish`,cleanUp.bind(null,el,styleReset))}function adjustScroll(el,finalX,finalY,optionsOrPlugin){let scrollDeltaX=scrollX-finalX,scrollDeltaY=scrollY-finalY,scrollBefore=document.documentElement.style.scrollBehavior,scrollBehavior=getComputedStyle(root$2).scrollBehavior;if(scrollBehavior===`smooth`&&(document.documentElement.style.scrollBehavior=`auto`),window.scrollTo(window.scrollX+scrollDeltaX,window.scrollY+scrollDeltaY),!el.parentElement)return;let parent=el.parentElement,lastHeight=parent.clientHeight,lastWidth=parent.clientWidth,startScroll=performance.now();function smoothScroll(){requestAnimationFrame(()=>{if(!isPlugin(optionsOrPlugin)){let deltaY=lastHeight-parent.clientHeight,deltaX=lastWidth-parent.clientWidth;startScroll+optionsOrPlugin.duration>performance.now()?(window.scrollTo({left:window.scrollX-deltaX,top:window.scrollY-deltaY}),lastHeight=parent.clientHeight,lastWidth=parent.clientWidth,smoothScroll()):document.documentElement.style.scrollBehavior=scrollBefore}})}smoothScroll()}function deletePosition(el){let oldCoords=coords.get(el),[width,,height]=getTransitionSizes(el,oldCoords,getCoords(el)),offsetParent=el.parentElement;for(;offsetParent&&(getComputedStyle(offsetParent).position===`static`||offsetParent instanceof HTMLBodyElement);)offsetParent=offsetParent.parentElement;offsetParent||=document.body;let parentStyles=getComputedStyle(offsetParent),parentCoords=coords.get(offsetParent)||getCoords(offsetParent),top=Math.round(oldCoords.top-parentCoords.top)-raw$2(parentStyles.borderTopWidth),left=Math.round(oldCoords.left-parentCoords.left)-raw$2(parentStyles.borderLeftWidth);return[top,left,width,height]}function autoAnimate(el,config={}){if(mutations&&resize){let mediaQuery=window.matchMedia(`(prefers-reduced-motion: reduce)`),isDisabledDueToReduceMotion=mediaQuery.matches&&!isPlugin(config)&&!config.disrespectUserMotionPreference;isDisabledDueToReduceMotion||(enabled.add(el),getComputedStyle(el).position===`static`&&Object.assign(el.style,{position:`relative`}),forEach(el,updatePos,poll,element$3=>resize?.observe(element$3)),isPlugin(config)?options.set(el,config):options.set(el,{duration:250,easing:`ease-in-out`,...config}),mutations.observe(el,{childList:!0}),parents.add(el))}return Object.freeze({parent:el,enable:()=>{enabled.add(el)},disable:()=>{enabled.delete(el)},isEnabled:()=>enabled.has(el)})}const vAutoAnimate={mounted:(el,binding)=>{autoAnimate(el,binding.value||{})},getSSRProps:()=>({})},vAutoAnimate$1=vAutoAnimate,autoAnimatePlugin={install(app){app.directive(`auto-animate`,vAutoAnimate$1)}};function isPlainObject$5(value$1){if(typeof value$1!=`object`||!value$1)return!1;let prototype=Object.getPrototypeOf(value$1);return prototype!==null&&prototype!==Object.prototype&&Object.getPrototypeOf(prototype)!==null||Symbol.iterator in value$1?!1:Symbol.toStringTag in value$1?Object.prototype.toString.call(value$1)===`[object Module]`:!0}function _defu(baseObject,defaults,namespace=`.`,merger){if(!isPlainObject$5(defaults))return _defu(baseObject,{},namespace,merger);let object=Object.assign({},defaults);for(let key$1 in baseObject){if(key$1===`__proto__`||key$1===`constructor`)continue;let value$1=baseObject[key$1];if(value$1==null||merger&&merger(object,key$1,value$1,namespace))continue;Array.isArray(value$1)&&Array.isArray(object[key$1])?object[key$1]=[...value$1,...object[key$1]]:isPlainObject$5(value$1)&&isPlainObject$5(object[key$1])?object[key$1]=_defu(value$1,object[key$1],(namespace?`${namespace}.`:``)+key$1.toString(),merger):object[key$1]=value$1}return object}function createDefu(merger){return(...arguments_)=>arguments_.reduce((p$5,c$4)=>_defu(p$5,c$4,``,merger),{})}const defu=createDefu(),defuFn=createDefu((object,key$1,currentValue)=>{if(object[key$1]!==void 0&&typeof currentValue==`function`)return object[key$1]=currentValue(object[key$1]),!0}),defuArrayFn=createDefu((object,key$1,currentValue)=>{if(Array.isArray(object[key$1])&&typeof currentValue==`function`)return object[key$1]=currentValue(object[key$1]),!0});function tryOnScopeDispose(fn$5){return getCurrentScope()?(onScopeDispose(fn$5),!0):!1}function createEventHook(){let fns=new Set,off=fn$5=>{fns.delete(fn$5)},clear=()=>{fns.clear()},on$1=fn$5=>{fns.add(fn$5);let offFn=()=>off(fn$5);return tryOnScopeDispose(offFn),{off:offFn}},trigger$1=(...args)=>Promise.all(Array.from(fns).map(fn$5=>fn$5(...args)));return{on:on$1,off,trigger:trigger$1,clear}}const localProvidedStateMap=new WeakMap,injectLocal=(...args)=>{var _a$2;let key$1=args[0],instance=(_a$2=getCurrentInstance())?.proxy;if(instance==null&&!hasInjectionContext())throw Error(`injectLocal must be called in setup`);return instance&&localProvidedStateMap.has(instance)&&key$1 in localProvidedStateMap.get(instance)?localProvidedStateMap.get(instance)[key$1]:inject(...args)},isClient$1=typeof window<`u`&&typeof document<`u`,isWorker=typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,notNullish=val=>val!=null,toString$2=Object.prototype.toString,isObject=val=>toString$2.call(val)===`[object Object]`,noop$2=()=>{},hasOwn$2=(val,key$1)=>Object.prototype.hasOwnProperty.call(val,key$1);function toRef$1(...args){if(args.length!==1)return toRef(...args);let r$2=args[0];return typeof r$2==`function`?readonly(customRef(()=>({get:r$2,set:noop$2}))):ref(r$2)}function createFilterWrapper(filter$1,fn$5){function wrapper(...args){return new Promise((resolve$1,reject)=>{Promise.resolve(filter$1(()=>fn$5.apply(this,args),{fn:fn$5,thisArg:this,args})).then(resolve$1).catch(reject)})}return wrapper}const bypassFilter=invoke$1=>invoke$1();function debounceFilter(ms,options$1={}){let timer,maxTimer,lastRejector=noop$2,_clearTimeout=timer2=>{clearTimeout(timer2),lastRejector(),lastRejector=noop$2},lastInvoker,filter$1=invoke$1=>{let duration=toValue$1(ms),maxDuration$1=toValue$1(options$1.maxWait);return timer&&_clearTimeout(timer),duration<=0||maxDuration$1!==void 0&&maxDuration$1<=0?(maxTimer&&(_clearTimeout(maxTimer),maxTimer=void 0),Promise.resolve(invoke$1())):new Promise((resolve$1,reject)=>{lastRejector=options$1.rejectOnCancel?reject:resolve$1,lastInvoker=invoke$1,maxDuration$1&&!maxTimer&&(maxTimer=setTimeout(()=>{timer&&_clearTimeout(timer),maxTimer=void 0,resolve$1(lastInvoker())},maxDuration$1)),timer=setTimeout(()=>{maxTimer&&_clearTimeout(maxTimer),maxTimer=void 0,resolve$1(invoke$1())},duration)})};return filter$1}function throttleFilter(...args){let lastExec=0,timer,isLeading=!0,lastRejector=noop$2,lastValue,ms,trailing,leading,rejectOnCancel;!isRef(args[0])&&typeof args[0]==`object`?{delay:ms,trailing=!0,leading=!0,rejectOnCancel=!1}=args[0]:[ms,trailing=!0,leading=!0,rejectOnCancel=!1]=args;let clear=()=>{timer&&(clearTimeout(timer),timer=void 0,lastRejector(),lastRejector=noop$2)},filter$1=_invoke=>{let duration=toValue$1(ms),elapsed=Date.now()-lastExec,invoke$1=()=>lastValue=_invoke();return clear(),duration<=0?(lastExec=Date.now(),invoke$1()):(elapsed>duration&&(leading||!isLeading)?(lastExec=Date.now(),invoke$1()):trailing&&(lastValue=new Promise((resolve$1,reject)=>{lastRejector=rejectOnCancel?reject:resolve$1,timer=setTimeout(()=>{lastExec=Date.now(),isLeading=!0,resolve$1(invoke$1()),clear()},Math.max(0,duration-elapsed))})),!leading&&!timer&&(timer=setTimeout(()=>isLeading=!0,duration)),isLeading=!1,lastValue)};return filter$1}function pausableFilter(extendFilter=bypassFilter,options$1={}){let{initialState=`active`}=options$1,isActive=toRef$1(initialState===`active`);function pause(){isActive.value=!1}function resume(){isActive.value=!0}let eventFilter=(...args)=>{isActive.value&&extendFilter(...args)};return{isActive:readonly(isActive),pause,resume,eventFilter}}function promiseTimeout(ms,throwOnTimeout=!1,reason=`Timeout`){return new Promise((resolve$1,reject)=>{throwOnTimeout?setTimeout(()=>reject(reason),ms):setTimeout(resolve$1,ms)})}function createSingletonPromise(fn$5){let _promise;function wrapper(){return _promise||=fn$5(),_promise}return wrapper.reset=async()=>{let _prev=_promise;_promise=void 0,_prev&&await _prev},wrapper}function increaseWithUnit(target$1,delta){var _a$2;if(typeof target$1==`number`)return target$1+delta;let value$1=(_a$2=target$1.match(/^-?\d+\.?\d*/))?.[0]||``,unit=target$1.slice(value$1.length),result=Number.parseFloat(value$1)+delta;return Number.isNaN(result)?target$1:result+unit}function pxValue(px$2){return px$2.endsWith(`rem`)?Number.parseFloat(px$2)*16:Number.parseFloat(px$2)}function objectPick(obj,keys$3,omitUndefined=!1){return keys$3.reduce((n$2,k$4)=>(k$4 in obj&&(!omitUndefined||obj[k$4]!==void 0)&&(n$2[k$4]=obj[k$4]),n$2),{})}function toArray(value$1){return Array.isArray(value$1)?value$1:[value$1]}function cacheStringFunction(fn$5){let cache$1=Object.create(null);return str=>{let hit=cache$1[str];return hit||(cache$1[str]=fn$5(str))}}const hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(str=>str.replace(hyphenateRE,`-$1`).toLowerCase()),camelizeRE=/-(\w)/g,camelize$1=cacheStringFunction(str=>str.replace(camelizeRE,(_$2,c$4)=>c$4?c$4.toUpperCase():``));function getLifeCycleTarget(target$1){return target$1||getCurrentInstance()}function useDebounceFn(fn$5,ms=200,options$1={}){return createFilterWrapper(debounceFilter(ms,options$1),fn$5)}function refDebounced(value$1,ms=200,options$1={}){let debounced=ref(toValue$1(value$1)),updater=useDebounceFn(()=>{debounced.value=value$1.value},ms,options$1);return watch(value$1,()=>updater()),shallowReadonly(debounced)}function useThrottleFn(fn$5,ms=200,trailing=!1,leading=!0,rejectOnCancel=!1){return createFilterWrapper(throttleFilter(ms,trailing,leading,rejectOnCancel),fn$5)}function refThrottled(value$1,delay=200,trailing=!0,leading=!0){if(delay<=0)return value$1;let throttled=ref(toValue$1(value$1)),updater=useThrottleFn(()=>{throttled.value=value$1.value},delay,trailing,leading);return watch(value$1,()=>updater()),throttled}function watchWithFilter(source,cb$1,options$1={}){let{eventFilter=bypassFilter,...watchOptions}=options$1;return watch(source,createFilterWrapper(eventFilter,cb$1),watchOptions)}function watchPausable(source,cb$1,options$1={}){let{eventFilter:filter$1,initialState=`active`,...watchOptions}=options$1,{eventFilter,pause,resume,isActive}=pausableFilter(filter$1,{initialState}),stop$1=watchWithFilter(source,cb$1,{...watchOptions,eventFilter});return{stop:stop$1,pause,resume,isActive}}function toRefs$1(objectRef,options$1={}){if(!isRef(objectRef))return toRefs(objectRef);let result=Array.isArray(objectRef.value)?Array.from({length:objectRef.value.length}):{};for(let key$1 in objectRef.value)result[key$1]=customRef(()=>({get(){return objectRef.value[key$1]},set(v$1){var _a$2;let replaceRef=(_a$2=toValue$1(options$1.replaceRef))??!0;if(replaceRef)if(Array.isArray(objectRef.value)){let copy=[...objectRef.value];copy[key$1]=v$1,objectRef.value=copy}else{let newObject={...objectRef.value,[key$1]:v$1};Object.setPrototypeOf(newObject,Object.getPrototypeOf(objectRef.value)),objectRef.value=newObject}else objectRef.value[key$1]=v$1}}));return result}function tryOnMounted(fn$5,sync$1=!0,target$1){let instance=getLifeCycleTarget(target$1);instance?onMounted(fn$5,target$1):sync$1?fn$5():nextTick(fn$5)}function tryOnUnmounted(fn$5,target$1){let instance=getLifeCycleTarget(target$1);instance&&onUnmounted(fn$5,target$1)}function createUntil(r$2,isNot=!1){function toMatch(condition,{flush=`sync`,deep=!1,timeout,throwOnTimeout}={}){let stop$1=null,watcher=new Promise(resolve$1=>{stop$1=watch(r$2,v$1=>{condition(v$1)!==isNot&&(stop$1?stop$1():nextTick(()=>stop$1?.()),resolve$1(v$1))},{flush,deep,immediate:!0})}),promises=[watcher];return timeout!=null&&promises.push(promiseTimeout(timeout,throwOnTimeout).then(()=>toValue$1(r$2)).finally(()=>stop$1?.())),Promise.race(promises)}function toBe(value$1,options$1){if(!isRef(value$1))return toMatch(v$1=>v$1===value$1,options$1);let{flush=`sync`,deep=!1,timeout,throwOnTimeout}=options$1??{},stop$1=null,watcher=new Promise(resolve$1=>{stop$1=watch([r$2,value$1],([v1,v2])=>{isNot!==(v1===v2)&&(stop$1?stop$1():nextTick(()=>stop$1?.()),resolve$1(v1))},{flush,deep,immediate:!0})}),promises=[watcher];return timeout!=null&&promises.push(promiseTimeout(timeout,throwOnTimeout).then(()=>toValue$1(r$2)).finally(()=>(stop$1?.(),toValue$1(r$2)))),Promise.race(promises)}function toBeTruthy(options$1){return toMatch(v$1=>!!v$1,options$1)}function toBeNull(options$1){return toBe(null,options$1)}function toBeUndefined(options$1){return toBe(void 0,options$1)}function toBeNaN(options$1){return toMatch(Number.isNaN,options$1)}function toContains(value$1,options$1){return toMatch(v$1=>{let array=Array.from(v$1);return array.includes(value$1)||array.includes(toValue$1(value$1))},options$1)}function changed(options$1){return changedTimes(1,options$1)}function changedTimes(n$2=1,options$1){let count$1=-1;return toMatch(()=>(count$1+=1,count$1>=n$2),options$1)}if(Array.isArray(toValue$1(r$2))){let instance={toMatch,toContains,changed,changedTimes,get not(){return createUntil(r$2,!isNot)}};return instance}else{let instance={toMatch,toBe,toBeTruthy,toBeNull,toBeNaN,toBeUndefined,changed,changedTimes,get not(){return createUntil(r$2,!isNot)}};return instance}}function until(r$2){return createUntil(r$2)}function useTimeoutFn(cb$1,interval,options$1={}){let{immediate=!0,immediateCallback=!1}=options$1,isPending=shallowRef(!1),timer;function clear(){timer&&(clearTimeout(timer),timer=void 0)}function stop$1(){isPending.value=!1,clear()}function start(...args){immediateCallback&&cb$1(),clear(),isPending.value=!0,timer=setTimeout(()=>{isPending.value=!1,timer=void 0,cb$1(...args)},toValue$1(interval))}return immediate&&(isPending.value=!0,isClient$1&&start()),tryOnScopeDispose(stop$1),{isPending:shallowReadonly(isPending),start,stop:stop$1}}function watchDebounced(source,cb$1,options$1={}){let{debounce=0,maxWait=void 0,...watchOptions}=options$1;return watchWithFilter(source,cb$1,{...watchOptions,eventFilter:debounceFilter(debounce,{maxWait})})}function watchImmediate(source,cb$1,options$1){return watch(source,cb$1,{...options$1,immediate:!0})}function computedAsync(evaluationCallback,initialState,optionsOrRef){let options$1;options$1=isRef(optionsOrRef)?{evaluating:optionsOrRef}:optionsOrRef||{};let{lazy=!1,flush=`pre`,evaluating=void 0,shallow=!0,onError=noop$2}=options$1,started=shallowRef(!lazy),current=shallow?shallowRef(initialState):ref(initialState),counter=0;return watchEffect(async onInvalidate=>{if(!started.value)return;counter++;let counterAtBeginning=counter,hasFinished=!1;evaluating&&Promise.resolve().then(()=>{evaluating.value=!0});try{let result=await evaluationCallback(cancelCallback=>{onInvalidate(()=>{evaluating&&(evaluating.value=!1),hasFinished||cancelCallback()})});counterAtBeginning===counter&&(current.value=result)}catch(e$3){onError(e$3)}finally{evaluating&&counterAtBeginning===counter&&(evaluating.value=!1),hasFinished=!0}},{flush}),lazy?computed(()=>(started.value=!0,current.value)):current}const defaultWindow$1=isClient$1?window:void 0,defaultDocument=isClient$1?window.document:void 0,defaultNavigator=isClient$1?window.navigator:void 0,defaultLocation=isClient$1?window.location:void 0;function unrefElement(elRef){var _a$2;let plain=toValue$1(elRef);return(_a$2=plain?.$el)??plain}function useEventListener(...args){let cleanups=[],cleanup=()=>{cleanups.forEach(fn$5=>fn$5()),cleanups.length=0},register=(el,event,listener,options$1)=>(el.addEventListener(event,listener,options$1),()=>el.removeEventListener(event,listener,options$1)),firstParamTargets=computed(()=>{let test$1=toArray(toValue$1(args[0])).filter(e$3=>e$3!=null);return test$1.every(e$3=>typeof e$3!=`string`)?test$1:void 0}),stopWatch=watchImmediate(()=>{var _a$2,_b;return[(_b=(_a$2=firstParamTargets.value)?.map(e$3=>unrefElement(e$3)))??[defaultWindow$1].filter(e$3=>e$3!=null),toArray(toValue$1(firstParamTargets.value?args[1]:args[0])),toArray(unref(firstParamTargets.value?args[2]:args[1])),toValue$1(firstParamTargets.value?args[3]:args[2])]},([raw_targets,raw_events,raw_listeners,raw_options])=>{if(cleanup(),!raw_targets?.length||!raw_events?.length||!raw_listeners?.length)return;let optionsClone=isObject(raw_options)?{...raw_options}:raw_options;cleanups.push(...raw_targets.flatMap(el=>raw_events.flatMap(event=>raw_listeners.map(listener=>register(el,event,listener,optionsClone)))))},{flush:`post`}),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose(cleanup),stop$1}function useMounted$1(){let isMounted=shallowRef(!1),instance=getCurrentInstance();return instance&&onMounted(()=>{isMounted.value=!0},instance),isMounted}function useSupported(callback){let isMounted=useMounted$1();return computed(()=>(isMounted.value,!!callback()))}function useMutationObserver(target$1,callback,options$1={}){let{window:window$1=defaultWindow$1,...mutationOptions}=options$1,observer,isSupported=useSupported(()=>window$1&&`MutationObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let value$1=toValue$1(target$1),items=toArray(value$1).map(unrefElement).filter(notNullish);return new Set(items)}),stopWatch=watch(()=>targets.value,targets2=>{cleanup(),isSupported.value&&targets2.size&&(observer=new MutationObserver(callback),targets2.forEach(el=>observer.observe(el,mutationOptions)))},{immediate:!0,flush:`post`}),takeRecords=()=>observer?.takeRecords(),stop$1=()=>{stopWatch(),cleanup()};return tryOnScopeDispose(stop$1),{isSupported,stop:stop$1,takeRecords}}const ssrWidthSymbol=Symbol(`vueuse-ssr-width`);function useSSRWidth(){let ssrWidth=hasInjectionContext()?injectLocal(ssrWidthSymbol,null):null;return typeof ssrWidth==`number`?ssrWidth:void 0}function useMediaQuery(query,options$1={}){let{window:window$1=defaultWindow$1,ssrWidth=useSSRWidth()}=options$1,isSupported=useSupported(()=>window$1&&`matchMedia`in window$1&&typeof window$1.matchMedia==`function`),ssrSupport=shallowRef(typeof ssrWidth==`number`),mediaQuery=shallowRef(),matches$1=shallowRef(!1),handler=event=>{matches$1.value=event.matches};return watchEffect(()=>{if(ssrSupport.value){ssrSupport.value=!isSupported.value;let queryStrings=toValue$1(query).split(`,`);matches$1.value=queryStrings.some(queryString=>{let not=queryString.includes(`not all`),minWidth=queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),maxWidth=queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),res=!!(minWidth||maxWidth);return minWidth&&res&&(res=ssrWidth>=pxValue(minWidth[1])),maxWidth&&res&&(res=ssrWidth<=pxValue(maxWidth[1])),not?!res:res});return}isSupported.value&&(mediaQuery.value=window$1.matchMedia(toValue$1(query)),matches$1.value=mediaQuery.value.matches)}),useEventListener(mediaQuery,`change`,handler,{passive:!0}),computed(()=>matches$1.value)}const breakpointsTailwind={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function useBreakpoints(breakpoints,options$1={}){function getValue$2(k$4,delta){let v$1=toValue$1(breakpoints[toValue$1(k$4)]);return delta!=null&&(v$1=increaseWithUnit(v$1,delta)),typeof v$1==`number`&&(v$1=`${v$1}px`),v$1}let{window:window$1=defaultWindow$1,strategy=`min-width`,ssrWidth=useSSRWidth()}=options$1,ssrSupport=typeof ssrWidth==`number`,mounted=ssrSupport?shallowRef(!1):{value:!0};ssrSupport&&tryOnMounted(()=>mounted.value=!!window$1);function match(query,size$1){return!mounted.value&&ssrSupport?query===`min`?ssrWidth>=pxValue(size$1):ssrWidth<=pxValue(size$1):window$1?window$1.matchMedia(`(${query}-width: ${size$1})`).matches:!1}let greaterOrEqual=k$4=>useMediaQuery(()=>`(min-width: ${getValue$2(k$4)})`,options$1),smallerOrEqual=k$4=>useMediaQuery(()=>`(max-width: ${getValue$2(k$4)})`,options$1),shortcutMethods=Object.keys(breakpoints).reduce((shortcuts,k$4)=>(Object.defineProperty(shortcuts,k$4,{get:()=>strategy===`min-width`?greaterOrEqual(k$4):smallerOrEqual(k$4),enumerable:!0,configurable:!0}),shortcuts),{});function current(){let points=Object.keys(breakpoints).map(k$4=>[k$4,shortcutMethods[k$4],pxValue(getValue$2(k$4))]).sort((a$2,b$3)=>a$2[2]-b$3[2]);return computed(()=>points.filter(([,v$1])=>v$1.value).map(([k$4])=>k$4))}return Object.assign(shortcutMethods,{greaterOrEqual,smallerOrEqual,greater(k$4){return useMediaQuery(()=>`(min-width: ${getValue$2(k$4,.1)})`,options$1)},smaller(k$4){return useMediaQuery(()=>`(max-width: ${getValue$2(k$4,-.1)})`,options$1)},between(a$2,b$3){return useMediaQuery(()=>`(min-width: ${getValue$2(a$2)}) and (max-width: ${getValue$2(b$3,-.1)})`,options$1)},isGreater(k$4){return match(`min`,getValue$2(k$4,.1))},isGreaterOrEqual(k$4){return match(`min`,getValue$2(k$4))},isSmaller(k$4){return match(`max`,getValue$2(k$4,-.1))},isSmallerOrEqual(k$4){return match(`max`,getValue$2(k$4))},isInBetween(a$2,b$3){return match(`min`,getValue$2(a$2))&&match(`max`,getValue$2(b$3,-.1))},current,active(){let bps=current();return computed(()=>bps.value.length===0?``:bps.value.at(strategy===`min-width`?-1:0))}})}function usePermission(permissionDesc,options$1={}){let{controls=!1,navigator:navigator$1=defaultNavigator}=options$1,isSupported=useSupported(()=>navigator$1&&`permissions`in navigator$1),permissionStatus=shallowRef(),desc=typeof permissionDesc==`string`?{name:permissionDesc}:permissionDesc,state=shallowRef(),update=()=>{var _a$2,_b;state.value=(_b=(_a$2=permissionStatus.value)?.state)??`prompt`};useEventListener(permissionStatus,`change`,update,{passive:!0});let query=createSingletonPromise(async()=>{if(isSupported.value){if(!permissionStatus.value)try{permissionStatus.value=await navigator$1.permissions.query(desc)}catch{permissionStatus.value=void 0}finally{update()}if(controls)return toRaw(permissionStatus.value)}});return query(),controls?{state,isSupported,query}:state}function useClipboard(options$1={}){let{navigator:navigator$1=defaultNavigator,read=!1,source,copiedDuring=1500,legacy=!1}=options$1,isClipboardApiSupported=useSupported(()=>navigator$1&&`clipboard`in navigator$1),permissionRead=usePermission(`clipboard-read`),permissionWrite=usePermission(`clipboard-write`),isSupported=computed(()=>isClipboardApiSupported.value||legacy),text$5=shallowRef(``),copied=shallowRef(!1),timeout=useTimeoutFn(()=>copied.value=!1,copiedDuring,{immediate:!1});async function updateText(){let useLegacy=!(isClipboardApiSupported.value&&isAllowed(permissionRead.value));if(!useLegacy)try{text$5.value=await navigator$1.clipboard.readText()}catch{useLegacy=!0}useLegacy&&(text$5.value=legacyRead())}isSupported.value&&read&&useEventListener([`copy`,`cut`],updateText,{passive:!0});async function copy(value$1=toValue$1(source)){if(isSupported.value&&value$1!=null){let useLegacy=!(isClipboardApiSupported.value&&isAllowed(permissionWrite.value));if(!useLegacy)try{await navigator$1.clipboard.writeText(value$1)}catch{useLegacy=!0}useLegacy&&legacyCopy(value$1),text$5.value=value$1,copied.value=!0,timeout.start()}}function legacyCopy(value$1){let ta=document.createElement(`textarea`);ta.value=value$1??``,ta.style.position=`absolute`,ta.style.opacity=`0`,document.body.appendChild(ta),ta.select(),document.execCommand(`copy`),ta.remove()}function legacyRead(){var _a$2,_b,_c;return(_c=(_b=(_a$2=document==null?void 0:document.getSelection)?.call(document))?.toString())??``}function isAllowed(status){return status===`granted`||status===`prompt`}return{isSupported,text:text$5,copied,copy}}const _global$1=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},globalKey=`__vueuse_ssr_handlers__`,handlers$2=getHandlers();function getHandlers(){return globalKey in _global$1||(_global$1[globalKey]=_global$1[globalKey]||{}),_global$1[globalKey]}function getSSRHandler(key$1,fallback){return handlers$2[key$1]||fallback}function usePreferredDark(options$1){return useMediaQuery(`(prefers-color-scheme: dark)`,options$1)}function guessSerializerType(rawInit){return rawInit==null?`any`:rawInit instanceof Set?`set`:rawInit instanceof Map?`map`:rawInit instanceof Date?`date`:typeof rawInit==`boolean`?`boolean`:typeof rawInit==`string`?`string`:typeof rawInit==`object`?`object`:Number.isNaN(rawInit)?`any`:`number`}const StorageSerializers={boolean:{read:v$1=>v$1===`true`,write:v$1=>String(v$1)},object:{read:v$1=>JSON.parse(v$1),write:v$1=>JSON.stringify(v$1)},number:{read:v$1=>Number.parseFloat(v$1),write:v$1=>String(v$1)},any:{read:v$1=>v$1,write:v$1=>String(v$1)},string:{read:v$1=>v$1,write:v$1=>String(v$1)},map:{read:v$1=>new Map(JSON.parse(v$1)),write:v$1=>JSON.stringify(Array.from(v$1.entries()))},set:{read:v$1=>new Set(JSON.parse(v$1)),write:v$1=>JSON.stringify(Array.from(v$1))},date:{read:v$1=>new Date(v$1),write:v$1=>v$1.toISOString()}},customStorageEventName=`vueuse-storage`;function useStorage(key$1,defaults,storage,options$1={}){var _a$2;let{flush=`pre`,deep=!0,listenToStorageChanges=!0,writeDefaults=!0,mergeDefaults:mergeDefaults$1=!1,shallow,window:window$1=defaultWindow$1,eventFilter,onError=e$3=>{console.error(e$3)},initOnMounted}=options$1,data$10=(shallow?shallowRef:ref)(typeof defaults==`function`?defaults():defaults),keyComputed=computed(()=>toValue$1(key$1));if(!storage)try{storage=getSSRHandler(`getDefaultStorage`,()=>{var _a2;return(_a2=defaultWindow$1)?.localStorage})()}catch(e$3){onError(e$3)}if(!storage)return data$10;let rawInit=toValue$1(defaults),type=guessSerializerType(rawInit),serializer$1=(_a$2=options$1.serializer)??StorageSerializers[type],{pause:pauseWatch,resume:resumeWatch}=watchPausable(data$10,()=>write(data$10.value),{flush,deep,eventFilter});watch(keyComputed,()=>update(),{flush});let firstMounted=!1,onStorageEvent=ev=>{initOnMounted&&!firstMounted||update(ev)},onStorageCustomEvent=ev=>{initOnMounted&&!firstMounted||updateFromCustomEvent(ev)};window$1&&listenToStorageChanges&&(storage instanceof Storage?useEventListener(window$1,`storage`,onStorageEvent,{passive:!0}):useEventListener(window$1,customStorageEventName,onStorageCustomEvent)),initOnMounted?tryOnMounted(()=>{firstMounted=!0,update()}):update();function dispatchWriteEvent(oldValue,newValue){if(window$1){let payload={key:keyComputed.value,oldValue,newValue,storageArea:storage};window$1.dispatchEvent(storage instanceof Storage?new StorageEvent(`storage`,payload):new CustomEvent(customStorageEventName,{detail:payload}))}}function write(v$1){try{let oldValue=storage.getItem(keyComputed.value);if(v$1==null)dispatchWriteEvent(oldValue,null),storage.removeItem(keyComputed.value);else{let serialized=serializer$1.write(v$1);oldValue!==serialized&&(storage.setItem(keyComputed.value,serialized),dispatchWriteEvent(oldValue,serialized))}}catch(e$3){onError(e$3)}}function read(event){let rawValue=event?event.newValue:storage.getItem(keyComputed.value);if(rawValue==null)return writeDefaults&&rawInit!=null&&storage.setItem(keyComputed.value,serializer$1.write(rawInit)),rawInit;if(!event&&mergeDefaults$1){let value$1=serializer$1.read(rawValue);return typeof mergeDefaults$1==`function`?mergeDefaults$1(value$1,rawInit):type===`object`&&!Array.isArray(value$1)?{...rawInit,...value$1}:value$1}else if(typeof rawValue!=`string`)return rawValue;else return serializer$1.read(rawValue)}function update(event){if(!(event&&event.storageArea!==storage)){if(event&&event.key==null){data$10.value=rawInit;return}if(!(event&&event.key!==keyComputed.value)){pauseWatch();try{event?.newValue!==serializer$1.write(data$10.value)&&(data$10.value=read(event))}catch(e$3){onError(e$3)}finally{event?nextTick(resumeWatch):resumeWatch()}}}}function updateFromCustomEvent(event){update(event.detail)}return data$10}const CSS_DISABLE_TRANS=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function useColorMode(options$1={}){let{selector=`html`,attribute=`class`,initialValue=`auto`,window:window$1=defaultWindow$1,storage,storageKey=`vueuse-color-scheme`,listenToStorageChanges=!0,storageRef,emitAuto,disableTransition=!0}=options$1,modes$1={auto:``,light:`light`,dark:`dark`,...options$1.modes||{}},preferredDark=usePreferredDark({window:window$1}),system=computed(()=>preferredDark.value?`dark`:`light`),store=storageRef||(storageKey==null?toRef$1(initialValue):useStorage(storageKey,initialValue,storage,{window:window$1,listenToStorageChanges})),state=computed(()=>store.value===`auto`?system.value:store.value),updateHTMLAttrs=getSSRHandler(`updateHTMLAttrs`,(selector2,attribute2,value$1)=>{let el=typeof selector2==`string`?window$1?.document.querySelector(selector2):unrefElement(selector2);if(!el)return;let classesToAdd=new Set,classesToRemove=new Set,attributeToChange=null;if(attribute2===`class`){let current=value$1.split(/\s/g);Object.values(modes$1).flatMap(i$1=>(i$1||``).split(/\s/g)).filter(Boolean).forEach(v$1=>{current.includes(v$1)?classesToAdd.add(v$1):classesToRemove.add(v$1)})}else attributeToChange={key:attribute2,value:value$1};if(classesToAdd.size===0&&classesToRemove.size===0&&attributeToChange===null)return;let style;disableTransition&&(style=window$1.document.createElement(`style`),style.appendChild(document.createTextNode(CSS_DISABLE_TRANS)),window$1.document.head.appendChild(style));for(let c$4 of classesToAdd)el.classList.add(c$4);for(let c$4 of classesToRemove)el.classList.remove(c$4);attributeToChange&&el.setAttribute(attributeToChange.key,attributeToChange.value),disableTransition&&(window$1.getComputedStyle(style).opacity,document.head.removeChild(style))});function defaultOnChanged(mode){var _a$2;updateHTMLAttrs(selector,attribute,(_a$2=modes$1[mode])??mode)}function onChanged(mode){options$1.onChanged?options$1.onChanged(mode,defaultOnChanged):defaultOnChanged(mode)}watch(state,onChanged,{flush:`post`,immediate:!0}),tryOnMounted(()=>onChanged(state.value));let auto=computed({get(){return emitAuto?store.value:state.value},set(v$1){store.value=v$1}});return Object.assign(auto,{store,system,state})}function useCssVar(prop,target$1,options$1={}){let{window:window$1=defaultWindow$1,initialValue,observe=!1}=options$1,variable=shallowRef(initialValue),elRef=computed(()=>{var _a$2;return unrefElement(target$1)||(_a$2=window$1?.document)?.documentElement});function updateCssVar(){var _a$2;let key$1=toValue$1(prop),el=toValue$1(elRef);if(el&&window$1&&key$1){let value$1=(_a$2=window$1.getComputedStyle(el).getPropertyValue(key$1))?.trim();variable.value=value$1||variable.value||initialValue}}return observe&&useMutationObserver(elRef,updateCssVar,{attributeFilter:[`style`,`class`],window:window$1}),watch([elRef,()=>toValue$1(prop)],(_$2,old)=>{old[0]&&old[1]&&old[0].style.removeProperty(old[1]),updateCssVar()},{immediate:!0}),watch([variable,elRef],([val,el])=>{let raw_prop=toValue$1(prop);el?.style&&raw_prop&&(val==null?el.style.removeProperty(raw_prop):el.style.setProperty(raw_prop,val))},{immediate:!0}),variable}function useDark(options$1={}){let{valueDark=`dark`,valueLight=``}=options$1,mode=useColorMode({...options$1,onChanged:(mode2,defaultHandler)=>{var _a$2;options$1.onChanged?(_a$2=options$1.onChanged)==null||_a$2.call(options$1,mode2===`dark`,defaultHandler,mode2):defaultHandler(mode2)},modes:{dark:valueDark,light:valueLight}}),system=computed(()=>mode.system.value),isDark=computed({get(){return mode.value===`dark`},set(v$1){let modeVal=v$1?`dark`:`light`;system.value===modeVal?mode.value=`auto`:mode.value=modeVal}});return isDark}function useDevicesList(options$1={}){let{navigator:navigator$1=defaultNavigator,requestPermissions=!1,constraints={audio:!0,video:!0},onUpdated:onUpdated$1}=options$1,devices=ref([]),videoInputs=computed(()=>devices.value.filter(i$1=>i$1.kind===`videoinput`)),audioInputs=computed(()=>devices.value.filter(i$1=>i$1.kind===`audioinput`)),audioOutputs=computed(()=>devices.value.filter(i$1=>i$1.kind===`audiooutput`)),isSupported=useSupported(()=>navigator$1&&navigator$1.mediaDevices&&navigator$1.mediaDevices.enumerateDevices),permissionGranted=shallowRef(!1),stream;async function update(){isSupported.value&&(devices.value=await navigator$1.mediaDevices.enumerateDevices(),onUpdated$1?.(devices.value),stream&&(stream.getTracks().forEach(t=>t.stop()),stream=null))}async function ensurePermissions(){let deviceName=constraints.video?`camera`:`microphone`;if(!isSupported.value)return!1;if(permissionGranted.value)return!0;let{state,query}=usePermission(deviceName,{controls:!0});if(await query(),state.value!==`granted`){let granted=!0;try{let allDevices=await navigator$1.mediaDevices.enumerateDevices(),hasCamera=allDevices.some(device=>device.kind===`videoinput`),hasMicrophone=allDevices.some(device=>device.kind===`audioinput`||device.kind===`audiooutput`);constraints.video=hasCamera?constraints.video:!1,constraints.audio=hasMicrophone?constraints.audio:!1,stream=await navigator$1.mediaDevices.getUserMedia(constraints)}catch{stream=null,granted=!1}update(),permissionGranted.value=granted}else permissionGranted.value=!0;return permissionGranted.value}return isSupported.value&&(requestPermissions&&ensurePermissions(),useEventListener(navigator$1.mediaDevices,`devicechange`,update,{passive:!0}),update()),{devices,ensurePermissions,permissionGranted,videoInputs,audioInputs,audioOutputs,isSupported}}function useResizeObserver(target$1,callback,options$1={}){let{window:window$1=defaultWindow$1,...observerOptions}=options$1,observer,isSupported=useSupported(()=>window$1&&`ResizeObserver`in window$1),cleanup=()=>{observer&&(observer.disconnect(),observer=void 0)},targets=computed(()=>{let _targets=toValue$1(target$1);return Array.isArray(_targets)?_targets.map(el=>unrefElement(el)):[unrefElement(_targets)]}),stopWatch=watch(targets,els=>{if(cleanup(),isSupported.value&&window$1){observer=new ResizeObserver(callback);for(let _el of els)_el&&observer.observe(_el,observerOptions)}},{immediate:!0,flush:`post`}),stop$1=()=>{cleanup(),stopWatch()};return tryOnScopeDispose(stop$1),{isSupported,stop:stop$1}}function useElementBounding(target$1,options$1={}){let{reset=!0,windowResize=!0,windowScroll=!0,immediate=!0,updateTiming=`sync`}=options$1,height=shallowRef(0),bottom=shallowRef(0),left=shallowRef(0),right=shallowRef(0),top=shallowRef(0),width=shallowRef(0),x$3=shallowRef(0),y$2=shallowRef(0);function recalculate(){let el=unrefElement(target$1);if(!el){reset&&(height.value=0,bottom.value=0,left.value=0,right.value=0,top.value=0,width.value=0,x$3.value=0,y$2.value=0);return}let rect=el.getBoundingClientRect();height.value=rect.height,bottom.value=rect.bottom,left.value=rect.left,right.value=rect.right,top.value=rect.top,width.value=rect.width,x$3.value=rect.x,y$2.value=rect.y}function update(){updateTiming===`sync`?recalculate():updateTiming===`next-frame`&&requestAnimationFrame(()=>recalculate())}return useResizeObserver(target$1,update),watch(()=>unrefElement(target$1),ele=>!ele&&update()),useMutationObserver(target$1,update,{attributeFilter:[`style`,`class`]}),windowScroll&&useEventListener(`scroll`,update,{capture:!0,passive:!0}),windowResize&&useEventListener(`resize`,update,{passive:!0}),tryOnMounted(()=>{immediate&&update()}),{height,bottom,left,right,top,width,x:x$3,y:y$2,update}}function useIntersectionObserver(target$1,callback,options$1={}){let{root:root$3,rootMargin=`0px`,threshold=0,window:window$1=defaultWindow$1,immediate=!0}=options$1,isSupported=useSupported(()=>window$1&&`IntersectionObserver`in window$1),targets=computed(()=>{let _target$1=toValue$1(target$1);return toArray(_target$1).map(unrefElement).filter(notNullish)}),cleanup=noop$2,isActive=shallowRef(immediate),stopWatch=isSupported.value?watch(()=>[targets.value,unrefElement(root$3),isActive.value],([targets2,root2])=>{if(cleanup(),!isActive.value||!targets2.length)return;let observer=new IntersectionObserver(callback,{root:unrefElement(root2),rootMargin,threshold});targets2.forEach(el=>el&&observer.observe(el)),cleanup=()=>{observer.disconnect(),cleanup=noop$2}},{immediate,flush:`post`}):noop$2,stop$1=()=>{cleanup(),stopWatch(),isActive.value=!1};return tryOnScopeDispose(stop$1),{isSupported,isActive,pause(){cleanup(),isActive.value=!1},resume(){isActive.value=!0},stop:stop$1}}const DEFAULT_OPTIONS={multiple:!0,accept:`*`,reset:!1,directory:!1};function prepareInitialFiles(files){if(!files)return null;if(files instanceof FileList)return files;let dt$4=new DataTransfer;for(let file of files)dt$4.items.add(file);return dt$4.files}function useFileDialog(options$1={}){let{document:document$3=defaultDocument}=options$1,files=ref(prepareInitialFiles(options$1.initialFiles)),{on:onChange,trigger:changeTrigger}=createEventHook(),{on:onCancel,trigger:cancelTrigger}=createEventHook(),input;document$3&&(input=unrefElement(options$1.input)||document$3.createElement(`input`),input.type=`file`,input.onchange=event=>{let result=event.target;files.value=result.files,changeTrigger(files.value)},input.oncancel=()=>{cancelTrigger()});let reset=()=>{files.value=null,input&&input.value&&(input.value=``,changeTrigger(null))},open$1=localOptions=>{if(!input)return;let _options={...DEFAULT_OPTIONS,...options$1,...localOptions};input.multiple=_options.multiple,input.accept=_options.accept,input.webkitdirectory=_options.directory,hasOwn$2(_options,`capture`)&&(input.capture=_options.capture),_options.reset&&reset(),input.click()};return{files:readonly(files),open:open$1,reset,onCancel,onChange}}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(element$3,options$1={}){let{throttle=0,idle=200,onStop=noop$2,onScroll=noop$2,offset:offset$1={left:0,right:0,top:0,bottom:0},observe:_observe={mutation:!1},eventListenerOptions={capture:!1,passive:!0},behavior=`auto`,window:window$1=defaultWindow$1,onError=e$3=>{console.error(e$3)}}=options$1,observe=typeof _observe==`boolean`?{mutation:_observe}:_observe,internalX=shallowRef(0),internalY=shallowRef(0),x$3=computed({get(){return internalX.value},set(x2){scrollTo(x2,void 0)}}),y$2=computed({get(){return internalY.value},set(y2){scrollTo(void 0,y2)}});function scrollTo(_x$1,_y$1){var _a$2,_b,_c,_d;if(!window$1)return;let _element=toValue$1(element$3);if(!_element)return;(_c=_element instanceof Document?window$1.document.body:_element)==null||_c.scrollTo({top:(_a$2=toValue$1(_y$1))??y$2.value,left:(_b=toValue$1(_x$1))??x$3.value,behavior:toValue$1(behavior)});let scrollContainer=(_d=_element?.document)?.documentElement||_element?.documentElement||_element;x$3!=null&&(internalX.value=scrollContainer.scrollLeft),y$2!=null&&(internalY.value=scrollContainer.scrollTop)}let isScrolling=shallowRef(!1),arrivedState=reactive({left:!0,right:!1,top:!0,bottom:!1}),directions=reactive({left:!1,right:!1,top:!1,bottom:!1}),onScrollEnd=e$3=>{isScrolling.value&&(isScrolling.value=!1,directions.left=!1,directions.right=!1,directions.top=!1,directions.bottom=!1,onStop(e$3))},onScrollEndDebounced=useDebounceFn(onScrollEnd,throttle+idle),setArrivedState=target$1=>{var _a$2;if(!window$1)return;let el=(_a$2=target$1?.document)?.documentElement||target$1?.documentElement||unrefElement(target$1),{display,flexDirection,direction}=getComputedStyle(el),directionMultipler=direction===`rtl`?-1:1,scrollLeft=el.scrollLeft;directions.left=scrollLeftinternalX.value;let left=Math.abs(scrollLeft*directionMultipler)<=(offset$1.left||0),right=Math.abs(scrollLeft*directionMultipler)+el.clientWidth>=el.scrollWidth-(offset$1.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS;display===`flex`&&flexDirection===`row-reverse`?(arrivedState.left=right,arrivedState.right=left):(arrivedState.left=left,arrivedState.right=right),internalX.value=scrollLeft;let scrollTop=el.scrollTop;target$1===window$1.document&&!scrollTop&&(scrollTop=window$1.document.body.scrollTop),directions.top=scrollTopinternalY.value;let top=Math.abs(scrollTop)<=(offset$1.top||0),bottom=Math.abs(scrollTop)+el.clientHeight>=el.scrollHeight-(offset$1.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS;display===`flex`&&flexDirection===`column-reverse`?(arrivedState.top=bottom,arrivedState.bottom=top):(arrivedState.top=top,arrivedState.bottom=bottom),internalY.value=scrollTop},onScrollHandler=e$3=>{var _a$2;if(!window$1)return;let eventTarget=(_a$2=e$3.target.documentElement)??e$3.target;setArrivedState(eventTarget),isScrolling.value=!0,onScrollEndDebounced(e$3),onScroll(e$3)};return useEventListener(element$3,`scroll`,throttle?useThrottleFn(onScrollHandler,throttle,!0,!1):onScrollHandler,eventListenerOptions),tryOnMounted(()=>{try{let _element=toValue$1(element$3);if(!_element)return;setArrivedState(_element)}catch(e$3){onError(e$3)}}),observe?.mutation&&element$3!=null&&element$3!==window$1&&element$3!==document&&useMutationObserver(element$3,()=>{let _element=toValue$1(element$3);_element&&setArrivedState(_element)},{attributes:!0,childList:!0,subtree:!0}),useEventListener(element$3,`scrollend`,onScrollEnd,eventListenerOptions),{x:x$3,y:y$2,isScrolling,arrivedState,directions,measure(){let _element=toValue$1(element$3);window$1&&_element&&setArrivedState(_element)}}}function useLocalStorage(key$1,initialValue,options$1={}){let{window:window$1=defaultWindow$1}=options$1;return useStorage(key$1,initialValue,window$1?.localStorage,options$1)}const UseMouseBuiltinExtractors={page:event=>[event.pageX,event.pageY],client:event=>[event.clientX,event.clientY],screen:event=>[event.screenX,event.screenY],movement:event=>event instanceof MouseEvent?[event.movementX,event.movementY]:null};function useMouse(options$1={}){let{type=`page`,touch=!0,resetOnTouchEnds=!1,initialValue={x:0,y:0},window:window$1=defaultWindow$1,target:target$1=window$1,scroll=!0,eventFilter}=options$1,_prevMouseEvent=null,_prevScrollX=0,_prevScrollY=0,x$3=shallowRef(initialValue.x),y$2=shallowRef(initialValue.y),sourceType=shallowRef(null),extractor=typeof type==`function`?type:UseMouseBuiltinExtractors[type],mouseHandler=event=>{let result=extractor(event);_prevMouseEvent=event,result&&([x$3.value,y$2.value]=result,sourceType.value=`mouse`),window$1&&(_prevScrollX=window$1.scrollX,_prevScrollY=window$1.scrollY)},touchHandler=event=>{if(event.touches.length>0){let result=extractor(event.touches[0]);result&&([x$3.value,y$2.value]=result,sourceType.value=`touch`)}},scrollHandler=()=>{if(!_prevMouseEvent||!window$1)return;let pos=extractor(_prevMouseEvent);_prevMouseEvent instanceof MouseEvent&&pos&&(x$3.value=pos[0]+window$1.scrollX-_prevScrollX,y$2.value=pos[1]+window$1.scrollY-_prevScrollY)},reset=()=>{x$3.value=initialValue.x,y$2.value=initialValue.y},mouseHandlerWrapper=eventFilter?event=>eventFilter(()=>mouseHandler(event),{}):event=>mouseHandler(event),touchHandlerWrapper=eventFilter?event=>eventFilter(()=>touchHandler(event),{}):event=>touchHandler(event),scrollHandlerWrapper=eventFilter?()=>eventFilter(()=>scrollHandler(),{}):()=>scrollHandler();if(target$1){let listenerOptions={passive:!0};useEventListener(target$1,[`mousemove`,`dragover`],mouseHandlerWrapper,listenerOptions),touch&&type!==`movement`&&(useEventListener(target$1,[`touchstart`,`touchmove`],touchHandlerWrapper,listenerOptions),resetOnTouchEnds&&useEventListener(target$1,`touchend`,reset,listenerOptions)),scroll&&type===`page`&&useEventListener(window$1,`scroll`,scrollHandlerWrapper,listenerOptions)}return{x:x$3,y:y$2,sourceType}}function useObjectUrl(object){let url=shallowRef(),release=()=>{url.value&&URL.revokeObjectURL(url.value),url.value=void 0};return watch(()=>toValue$1(object),newObject=>{release(),newObject&&(url.value=URL.createObjectURL(newObject))},{immediate:!0}),tryOnScopeDispose(release),readonly(url)}const defaultState={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},keys$1=Object.keys(defaultState);function usePointer(options$1={}){let{target:target$1=defaultWindow$1}=options$1,isInside=shallowRef(!1),state=ref(options$1.initialValue||{});Object.assign(state.value,defaultState,state.value);let handler=event=>{isInside.value=!0,!(options$1.pointerTypes&&!options$1.pointerTypes.includes(event.pointerType))&&(state.value=objectPick(event,keys$1,!1))};if(target$1){let listenerOptions={passive:!0};useEventListener(target$1,[`pointerdown`,`pointermove`,`pointerup`],handler,listenerOptions),useEventListener(target$1,`pointerleave`,()=>isInside.value=!1,listenerOptions)}return{...toRefs$1(state),isInside}}const topVarName=`--vueuse-safe-area-top`,rightVarName=`--vueuse-safe-area-right`,bottomVarName=`--vueuse-safe-area-bottom`,leftVarName=`--vueuse-safe-area-left`;function useScreenSafeArea(){let top=shallowRef(``),right=shallowRef(``),bottom=shallowRef(``),left=shallowRef(``);if(isClient$1){let topCssVar=useCssVar(topVarName),rightCssVar=useCssVar(rightVarName),bottomCssVar=useCssVar(bottomVarName),leftCssVar=useCssVar(leftVarName);topCssVar.value=`env(safe-area-inset-top, 0px)`,rightCssVar.value=`env(safe-area-inset-right, 0px)`,bottomCssVar.value=`env(safe-area-inset-bottom, 0px)`,leftCssVar.value=`env(safe-area-inset-left, 0px)`,tryOnMounted(update),useEventListener(`resize`,useDebounceFn(update),{passive:!0})}function update(){top.value=getValue(topVarName),right.value=getValue(rightVarName),bottom.value=getValue(bottomVarName),left.value=getValue(leftVarName)}return{top,right,bottom,left,update}}function getValue(position$2){return getComputedStyle(document.documentElement).getPropertyValue(position$2)}const DEFAULT_UNITS=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}];function useUserMedia(options$1={}){var _a$2,_b;let enabled$1=shallowRef((_a$2=options$1.enabled)??!1),autoSwitch=shallowRef((_b=options$1.autoSwitch)??!0),constraints=ref(options$1.constraints),{navigator:navigator$1=defaultNavigator}=options$1,isSupported=useSupported(()=>{var _a2;return(_a2=navigator$1?.mediaDevices)?.getUserMedia}),stream=shallowRef();function getDeviceOptions(type){switch(type){case`video`:if(constraints.value)return constraints.value.video||!1;break;case`audio`:if(constraints.value)return constraints.value.audio||!1;break}}async function _start$1(){if(!(!isSupported.value||stream.value))return stream.value=await navigator$1.mediaDevices.getUserMedia({video:getDeviceOptions(`video`),audio:getDeviceOptions(`audio`)}),stream.value}function _stop(){var _a2;(_a2=stream.value)==null||_a2.getTracks().forEach(t=>t.stop()),stream.value=void 0}function stop$1(){_stop(),enabled$1.value=!1}async function start(){return await _start$1(),stream.value&&(enabled$1.value=!0),stream.value}async function restart(){return _stop(),await start()}return watch(enabled$1,v$1=>{v$1?_start$1():_stop()},{immediate:!0}),watch(constraints,()=>{autoSwitch.value&&stream.value&&restart()},{immediate:!0}),tryOnScopeDispose(()=>{stop$1()}),{isSupported,stream,start,stop:stop$1,restart,constraints,enabled:enabled$1,autoSwitch}}function useWebWorker(arg0,workerOptions,options$1){let{window:window$1=defaultWindow$1}=options$1??{},data$10=ref(null),worker=shallowRef(),post=(...args)=>{worker.value&&worker.value.postMessage(...args)},terminate=function(){worker.value&&worker.value.terminate()};return window$1&&(typeof arg0==`string`?worker.value=new Worker(arg0,workerOptions):typeof arg0==`function`?worker.value=arg0():worker.value=arg0,worker.value.onmessage=e$3=>{data$10.value=e$3.data},tryOnScopeDispose(()=>{worker.value&&worker.value.terminate()})),{data:data$10,post,terminate,worker}}function useWindowSize(options$1={}){let{window:window$1=defaultWindow$1,initialWidth=1/0,initialHeight=1/0,listenOrientation=!0,includeScrollbar=!0,type=`inner`}=options$1,width=shallowRef(initialWidth),height=shallowRef(initialHeight),update=()=>{if(window$1)if(type===`outer`)width.value=window$1.outerWidth,height.value=window$1.outerHeight;else if(type===`visual`&&window$1.visualViewport){let{width:visualViewportWidth,height:visualViewportHeight,scale:scale$1}=window$1.visualViewport;width.value=Math.round(visualViewportWidth*scale$1),height.value=Math.round(visualViewportHeight*scale$1)}else includeScrollbar?(width.value=window$1.innerWidth,height.value=window$1.innerHeight):(width.value=window$1.document.documentElement.clientWidth,height.value=window$1.document.documentElement.clientHeight)};update(),tryOnMounted(update);let listenerOptions={passive:!0};if(useEventListener(`resize`,update,listenerOptions),window$1&&type===`visual`&&window$1.visualViewport&&useEventListener(window$1.visualViewport,`resize`,update,listenerOptions),listenOrientation){let matches$1=useMediaQuery(`(orientation: portrait)`);watch(matches$1,()=>update())}return{width,height}}const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<`u`?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<`u`?callback=>window.requestAnimationFrame(callback):callback=>setTimeout(()=>callback(getCurrentTime()),defaultTimestep);function createRenderStep(runNextFrame$1){let toRun=[],toRunNextFrame=[],numToRun=0,isProcessing$1=!1,flushNextFrame=!1,toKeepAlive=new WeakSet,step={schedule:(callback,keepAlive=!1,immediate=!1)=>{let addToCurrentFrame=immediate&&isProcessing$1,buffer$1=addToCurrentFrame?toRun:toRunNextFrame;return keepAlive&&toKeepAlive.add(callback),buffer$1.indexOf(callback)===-1&&(buffer$1.push(callback),addToCurrentFrame&&isProcessing$1&&(numToRun=toRun.length)),callback},cancel:callback=>{let index$1=toRunNextFrame.indexOf(callback);index$1!==-1&&toRunNextFrame.splice(index$1,1),toKeepAlive.delete(callback)},process:frameData=>{if(isProcessing$1){flushNextFrame=!0;return}if(isProcessing$1=!0,[toRun,toRunNextFrame]=[toRunNextFrame,toRun],toRunNextFrame.length=0,numToRun=toRun.length,numToRun)for(let i$1=0;i$1(acc[key$1]=createRenderStep(()=>runNextFrame=!0),acc),{}),sync=stepsOrder.reduce((acc,key$1)=>{let step=steps[key$1];return acc[key$1]=(process$1,keepAlive=!1,immediate=!1)=>(runNextFrame||startLoop(),step.schedule(process$1,keepAlive,immediate)),acc},{}),cancelSync=stepsOrder.reduce((acc,key$1)=>(acc[key$1]=steps[key$1].cancel,acc),{}),flushSync=stepsOrder.reduce((acc,key$1)=>(acc[key$1]=()=>steps[key$1].process(frame),acc),{}),processStep=stepId=>steps[stepId].process(frame),processFrame=timestamp$2=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(timestamp$2-frame.timestamp,maxElapsed),1),frame.timestamp=timestamp$2,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;var es_default=sync;function __rest(s$1,e$3){var t={};for(var p$5 in s$1)Object.prototype.hasOwnProperty.call(s$1,p$5)&&e$3.indexOf(p$5)<0&&(t[p$5]=s$1[p$5]);if(s$1!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i$1=0,p$5=Object.getOwnPropertySymbols(s$1);i$1Math.min(Math.max(v$1,min$1),max$1),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration=800,bounce=.25,velocity=0,mass=1}){let envelope,derivative;warning(duration<=maxDuration*1e3,`Spring duration must be 10 seconds or less`);let dampingRatio=1-bounce;dampingRatio=clamp$2(minDamping,maxDamping,dampingRatio),duration=clamp$2(minDuration,maxDuration,duration/1e3),dampingRatio<1?(envelope=undampedFreq$1=>{let exponentialDecay=undampedFreq$1*dampingRatio,delta=exponentialDecay*duration,a$2=exponentialDecay-velocity,b$3=calcAngularFreq(undampedFreq$1,dampingRatio),c$4=Math.exp(-delta);return safeMin-a$2/b$3*c$4},derivative=undampedFreq$1=>{let exponentialDecay=undampedFreq$1*dampingRatio,delta=exponentialDecay*duration,d$2=delta*velocity+velocity,e$3=dampingRatio**2*undampedFreq$1**2*duration,f$3=Math.exp(-delta),g$2=calcAngularFreq(undampedFreq$1**2,dampingRatio),factor$1=-envelope(undampedFreq$1)+safeMin>0?-1:1;return factor$1*((d$2-e$3)*f$3)/g$2}):(envelope=undampedFreq$1=>{let a$2=Math.exp(-undampedFreq$1*duration),b$3=(undampedFreq$1-velocity)*duration+1;return-safeMin+a$2*b$3},derivative=undampedFreq$1=>{let a$2=Math.exp(-undampedFreq$1*duration),b$3=(velocity-undampedFreq$1)*(duration*duration);return a$2*b$3});let initialGuess=5/duration,undampedFreq=approximateRoot(envelope,derivative,initialGuess);if(duration*=1e3,isNaN(undampedFreq))return{stiffness:100,damping:10,duration};{let stiffness=undampedFreq**2*mass;return{stiffness,damping:dampingRatio*2*Math.sqrt(mass*stiffness),duration}}}const rootIterations=12;function approximateRoot(envelope,derivative,initialGuess){let result=initialGuess;for(let i$1=1;i$1options$1[key$1]!==void 0)}function getSpringOptions(options$1){let springOptions=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},options$1);if(!isSpringType(options$1,physicsKeys)&&isSpringType(options$1,durationKeys)){let derived=findSpring(options$1);springOptions=Object.assign(Object.assign(Object.assign({},springOptions),derived),{velocity:0,mass:1}),springOptions.isResolvedFromDuration=!0}return springOptions}function spring(_a$2){var{from=0,to:to$1=1,restSpeed=2,restDelta}=_a$2,options$1=__rest(_a$2,[`from`,`to`,`restSpeed`,`restDelta`]);let state={done:!1,value:from},{stiffness,damping,mass,velocity,duration,isResolvedFromDuration}=getSpringOptions(options$1),resolveSpring=zero,resolveVelocity=zero;function createSpring(){let initialVelocity=velocity?-(velocity/1e3):0,initialDelta=to$1-from,dampingRatio=damping/(2*Math.sqrt(stiffness*mass)),undampedAngularFreq=Math.sqrt(stiffness/mass)/1e3;if(restDelta===void 0&&(restDelta=Math.min(Math.abs(to$1-from)/100,.4)),dampingRatio<1){let angularFreq=calcAngularFreq(undampedAngularFreq,dampingRatio);resolveSpring=t=>{let envelope=Math.exp(-dampingRatio*undampedAngularFreq*t);return to$1-envelope*((initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)/angularFreq*Math.sin(angularFreq*t)+initialDelta*Math.cos(angularFreq*t))},resolveVelocity=t=>{let envelope=Math.exp(-dampingRatio*undampedAngularFreq*t);return dampingRatio*undampedAngularFreq*envelope*(Math.sin(angularFreq*t)*(initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)/angularFreq+initialDelta*Math.cos(angularFreq*t))-envelope*(Math.cos(angularFreq*t)*(initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)-angularFreq*initialDelta*Math.sin(angularFreq*t))}}else if(dampingRatio===1)resolveSpring=t=>to$1-Math.exp(-undampedAngularFreq*t)*(initialDelta+(initialVelocity+undampedAngularFreq*initialDelta)*t);else{let dampedAngularFreq=undampedAngularFreq*Math.sqrt(dampingRatio*dampingRatio-1);resolveSpring=t=>{let envelope=Math.exp(-dampingRatio*undampedAngularFreq*t),freqForT=Math.min(dampedAngularFreq*t,300);return to$1-envelope*((initialVelocity+dampingRatio*undampedAngularFreq*initialDelta)*Math.sinh(freqForT)+dampedAngularFreq*initialDelta*Math.cosh(freqForT))/dampedAngularFreq}}}return createSpring(),{next:t=>{let current=resolveSpring(t);if(isResolvedFromDuration)state.done=t>=duration;else{let currentVelocity=resolveVelocity(t)*1e3,isBelowVelocityThreshold=Math.abs(currentVelocity)<=restSpeed,isBelowDisplacementThreshold=Math.abs(to$1-current)<=restDelta;state.done=isBelowVelocityThreshold&&isBelowDisplacementThreshold}return state.value=state.done?to$1:current,state},flipTarget:()=>{velocity=-velocity,[from,to$1]=[to$1,from],createSpring()}}}spring.needsInterpolation=(a$2,b$3)=>typeof a$2==`string`||typeof b$3==`string`;const zero=_t$3=>0,progress=(from,to$1,value$1)=>{let toFromDifference=to$1-from;return toFromDifference===0?1:(value$1-from)/toFromDifference},mix=(from,to$1,progress$1)=>-progress$1*from+progress$1*to$1+from,clamp$3=(min$1,max$1)=>v$1=>Math.max(Math.min(v$1,max$1),min$1),sanitize=v$1=>v$1%1?Number(v$1.toFixed(5)):v$1,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[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,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1(v$1){return typeof v$1==`string`}const number={test:v$1=>typeof v$1==`number`,parse:parseFloat,transform:v$1=>v$1},alpha=Object.assign(Object.assign({},number),{transform:clamp$3(0,1)}),scale=Object.assign(Object.assign({},number),{default:1}),createUnitType=unit=>({test:v$1=>isString$1(v$1)&&v$1.endsWith(unit)&&v$1.split(` `).length===1,parse:parseFloat,transform:v$1=>`${v$1}${unit}`}),degrees=createUnitType(`deg`),percent=createUnitType(`%`),px=createUnitType(`px`),vh=createUnitType(`vh`),vw=createUnitType(`vw`),progressPercentage=Object.assign(Object.assign({},percent),{parse:v$1=>percent.parse(v$1)/100,transform:v$1=>percent.transform(v$1*100)}),isColorString=(type,testProp)=>v$1=>!!(isString$1(v$1)&&singleColorRegex.test(v$1)&&v$1.startsWith(type)||testProp&&Object.prototype.hasOwnProperty.call(v$1,testProp)),splitColor=(aName,bName,cName)=>v$1=>{if(!isString$1(v$1))return v$1;let[a$2,b$3,c$4,alpha$1]=v$1.match(floatRegex);return{[aName]:parseFloat(a$2),[bName]:parseFloat(b$3),[cName]:parseFloat(c$4),alpha:alpha$1===void 0?1:parseFloat(alpha$1)}},hsla={test:isColorString(`hsl`,`hue`),parse:splitColor(`hue`,`saturation`,`lightness`),transform:({hue:hue$2,saturation,lightness,alpha:alpha$1=1})=>`hsla(`+Math.round(hue$2)+`, `+percent.transform(sanitize(saturation))+`, `+percent.transform(sanitize(lightness))+`, `+sanitize(alpha.transform(alpha$1))+`)`},clampRgbUnit=clamp$3(0,255),rgbUnit=Object.assign(Object.assign({},number),{transform:v$1=>Math.round(clampRgbUnit(v$1))}),rgba={test:isColorString(`rgb`,`red`),parse:splitColor(`red`,`green`,`blue`),transform:({red,green,blue,alpha:alpha$1=1})=>`rgba(`+rgbUnit.transform(red)+`, `+rgbUnit.transform(green)+`, `+rgbUnit.transform(blue)+`, `+sanitize(alpha.transform(alpha$1))+`)`};function parseHex$1(v$1){let r$2=``,g$2=``,b$3=``,a$2=``;return v$1.length>5?(r$2=v$1.substr(1,2),g$2=v$1.substr(3,2),b$3=v$1.substr(5,2),a$2=v$1.substr(7,2)):(r$2=v$1.substr(1,1),g$2=v$1.substr(2,1),b$3=v$1.substr(3,1),a$2=v$1.substr(4,1),r$2+=r$2,g$2+=g$2,b$3+=b$3,a$2+=a$2),{red:parseInt(r$2,16),green:parseInt(g$2,16),blue:parseInt(b$3,16),alpha:a$2?parseInt(a$2,16)/255:1}}const hex$1={test:isColorString(`#`),parse:parseHex$1,transform:rgba.transform},color={test:v$1=>rgba.test(v$1)||hex$1.test(v$1)||hsla.test(v$1),parse:v$1=>rgba.test(v$1)?rgba.parse(v$1):hsla.test(v$1)?hsla.parse(v$1):hex$1.parse(v$1),transform:v$1=>isString$1(v$1)?v$1:v$1.hasOwnProperty(`red`)?rgba.transform(v$1):hsla.transform(v$1)},colorToken="${c}",numberToken="${n}";function test(v$1){var _a$2,_b,_c,_d;return isNaN(v$1)&&isString$1(v$1)&&((_b=(_a$2=v$1.match(floatRegex))?.length)??0)+((_d=(_c=v$1.match(colorRegex))?.length)??0)>0}function analyse$1(v$1){typeof v$1==`number`&&(v$1=`${v$1}`);let values=[],numColors=0,colors=v$1.match(colorRegex);colors&&(numColors=colors.length,v$1=v$1.replace(colorRegex,colorToken),values.push(...colors.map(color.parse)));let numbers=v$1.match(floatRegex);return numbers&&(v$1=v$1.replace(floatRegex,numberToken),values.push(...numbers.map(number.parse))),{values,numColors,tokenised:v$1}}function parse$3(v$1){return analyse$1(v$1).values}function createTransformer$1(v$1){let{values,numColors,tokenised}=analyse$1(v$1),numValues=values.length;return v$2=>{let output=tokenised;for(let i$1=0;i$1typeof v$1==`number`?0:v$1;function getAnimatableNone$2(v$1){let parsed=parse$3(v$1),transformer=createTransformer$1(v$1);return transformer(parsed.map(convertNumbersToZero))}const complex={test,parse:parse$3,createTransformer:createTransformer$1,getAnimatableNone:getAnimatableNone$2},maxDefaults=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function applyDefaultFilter(v$1){let[name$2,value$1]=v$1.slice(0,-1).split(`(`);if(name$2===`drop-shadow`)return v$1;let[number$3]=value$1.match(floatRegex)||[];if(!number$3)return v$1;let unit=value$1.replace(number$3,``),defaultValue=maxDefaults.has(name$2)?1:0;return number$3!==value$1&&(defaultValue*=100),name$2+`(`+defaultValue+unit+`)`}const functionRegex=/([a-z-]*)\(.*?\)/g,filter=Object.assign(Object.assign({},complex),{getAnimatableNone:v$1=>{let functions=v$1.match(functionRegex);return functions?functions.map(applyDefaultFilter).join(` `):v$1}});function hueToRgb(p$5,q$1,t){return t<0&&(t+=1),t>1&&--t,t<1/6?p$5+(q$1-p$5)*6*t:t<1/2?q$1:t<2/3?p$5+(q$1-p$5)*(2/3-t)*6:p$5}function hslaToRgba({hue:hue$2,saturation,lightness,alpha:alpha$1}){hue$2/=360,saturation/=100,lightness/=100;let red=0,green=0,blue=0;if(!saturation)red=green=blue=lightness;else{let q$1=lightness<.5?lightness*(1+saturation):lightness+saturation-lightness*saturation,p$5=2*lightness-q$1;red=hueToRgb(p$5,q$1,hue$2+1/3),green=hueToRgb(p$5,q$1,hue$2),blue=hueToRgb(p$5,q$1,hue$2-1/3)}return{red:Math.round(red*255),green:Math.round(green*255),blue:Math.round(blue*255),alpha:alpha$1}}const mixLinearColor=(from,to$1,v$1)=>{let fromExpo=from*from,toExpo=to$1*to$1;return Math.sqrt(Math.max(0,v$1*(toExpo-fromExpo)+fromExpo))},colorTypes=[hex$1,rgba,hsla],getColorType=v$1=>colorTypes.find(type=>type.test(v$1)),notAnimatable=color$2=>`'${color$2}' is not an animatable color. Use the equivalent color code instead.`,mixColor=(from,to$1)=>{let fromColorType=getColorType(from),toColorType=getColorType(to$1);invariant(!!fromColorType,notAnimatable(from)),invariant(!!toColorType,notAnimatable(to$1));let fromColor=fromColorType.parse(from),toColor=toColorType.parse(to$1);fromColorType===hsla&&(fromColor=hslaToRgba(fromColor),fromColorType=rgba),toColorType===hsla&&(toColor=hslaToRgba(toColor),toColorType=rgba);let blended=Object.assign({},fromColor);return v$1=>{for(let key$1 in blended)key$1!==`alpha`&&(blended[key$1]=mixLinearColor(fromColor[key$1],toColor[key$1],v$1));return blended.alpha=mix(fromColor.alpha,toColor.alpha,v$1),fromColorType.transform(blended)}},isNum=v$1=>typeof v$1==`number`,combineFunctions=(a$2,b$3)=>v$1=>b$3(a$2(v$1)),pipe=(...transformers)=>transformers.reduce(combineFunctions);function getMixer(origin,target$1){return isNum(origin)?v$1=>mix(origin,target$1,v$1):color.test(origin)?mixColor(origin,target$1):mixComplex(origin,target$1)}const mixArray=(from,to$1)=>{let output=[...from],numValues=output.length,blendValue=from.map((fromThis,i$1)=>getMixer(fromThis,to$1[i$1]));return v$1=>{for(let i$1=0;i$1{let output=Object.assign(Object.assign({},origin),target$1),blendValue={};for(let key$1 in output)origin[key$1]!==void 0&&target$1[key$1]!==void 0&&(blendValue[key$1]=getMixer(origin[key$1],target$1[key$1]));return v$1=>{for(let key$1 in blendValue)output[key$1]=blendValue[key$1](v$1);return output}};function analyse(value$1){let parsed=complex.parse(value$1),numValues=parsed.length,numNumbers=0,numRGB=0,numHSL=0;for(let i$1=0;i$1{let template=complex.createTransformer(target$1),originStats=analyse(origin),targetStats=analyse(target$1),canInterpolate=originStats.numHSL===targetStats.numHSL&&originStats.numRGB===targetStats.numRGB&&originStats.numNumbers>=targetStats.numNumbers;return canInterpolate?pipe(mixArray(originStats.parsed,targetStats.parsed),template):(warning(!0,`Complex values '${origin}' and '${target$1}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),p$5=>`${p$5>0?target$1:origin}`)},mixNumber=(from,to$1)=>p$5=>mix(from,to$1,p$5);function detectMixerFactory(v$1){if(typeof v$1==`number`)return mixNumber;if(typeof v$1==`string`)return color.test(v$1)?mixColor:mixComplex;if(Array.isArray(v$1))return mixArray;if(typeof v$1==`object`)return mixObject}function createMixers(output,ease,customMixer){let mixers=[],mixerFactory=customMixer||detectMixerFactory(output[0]),numMixers=output.length-1;for(let i$1=0;i$1mixer(progress(from,to$1,v$1))}function slowInterpolate(input,mixers){let inputLength=input.length,lastInputIndex=inputLength-1;return v$1=>{let mixerIndex=0,foundMixerIndex=!1;if(v$1<=input[0]?foundMixerIndex=!0:v$1>=input[lastInputIndex]&&(mixerIndex=lastInputIndex-1,foundMixerIndex=!0),!foundMixerIndex){let i$1=1;for(;i$1v$1||i$1===lastInputIndex);i$1++);mixerIndex=i$1-1}let progressInRange=progress(input[mixerIndex],input[mixerIndex+1],v$1);return mixers[mixerIndex](progressInRange)}}function interpolate(input,output,{clamp:isClamp=!0,ease,mixer}={}){let inputLength=input.length;invariant(inputLength===output.length,`Both input and output ranges must be the same length`),invariant(!ease||!Array.isArray(ease)||ease.length===inputLength-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),input[0]>input[inputLength-1]&&(input=[].concat(input),output=[].concat(output),input.reverse(),output.reverse());let mixers=createMixers(output,ease,mixer),interpolator=inputLength===2?fastInterpolate(input,mixers):slowInterpolate(input,mixers);return isClamp?v$1=>interpolator(clamp$2(input[0],input[inputLength-1],v$1)):interpolator}const reverseEasing=easing=>p$5=>1-easing(1-p$5),mirrorEasing=easing=>p$5=>p$5<=.5?easing(2*p$5)/2:(2-easing(2*(1-p$5)))/2,createExpoIn=power=>p$5=>p$5**+power,createBackIn=power=>p$5=>p$5*p$5*((power+1)*p$5-power),createAnticipate=power=>{let backEasing=createBackIn(power);return p$5=>(p$5*=2)<1?.5*backEasing(p$5):.5*(2-2**(-10*(p$5-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=p$5=>p$5,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=p$5=>1-Math.sin(Math.acos(p$5)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=p$5=>{if(p$5===1||p$5===0)return p$5;let p2=p$5*p$5;return p$5p$5<.5?.5*(1-bounceOut(1-p$5*2)):.5*bounceOut(p$5*2-1)+.5;function defaultEasing(values,easing){return values.map(()=>easing||easeInOut).splice(0,values.length-1)}function defaultOffset(values){let numValues=values.length;return values.map((_value,i$1)=>i$1===0?0:i$1/(numValues-1))}function convertOffsetToTimes(offset$1,duration){return offset$1.map(o$1=>o$1*duration)}function keyframes$2({from=0,to:to$1=1,ease,offset:offset$1,duration=300}){let state={done:!1,value:from},values=Array.isArray(to$1)?to$1:[from,to$1],times=convertOffsetToTimes(offset$1&&offset$1.length===values.length?offset$1:defaultOffset(values),duration);function createInterpolator(){return interpolate(times,values,{ease:Array.isArray(ease)?ease:defaultEasing(values,ease)})}let interpolator=createInterpolator();return{next:t=>(state.value=interpolator(t),state.done=t>=duration,state),flipTarget:()=>{values.reverse(),interpolator=createInterpolator()}}}function decay({velocity=0,from=0,power=.8,timeConstant=350,restDelta=.5,modifyTarget}){let state={done:!1,value:from},amplitude=power*velocity,ideal=from+amplitude,target$1=modifyTarget===void 0?ideal:modifyTarget(ideal);return target$1!==ideal&&(amplitude=target$1-from),{next:t=>{let delta=-amplitude*Math.exp(-t/timeConstant);return state.done=!(delta>restDelta||delta<-restDelta),state.value=state.done?target$1:target$1+delta,state},flipTarget:()=>{}}}const types={keyframes:keyframes$2,spring,decay};function detectAnimationFromOptions(config){if(Array.isArray(config.to))return keyframes$2;if(types[config.type])return types[config.type];let keys$3=new Set(Object.keys(config));return keys$3.has(`ease`)||keys$3.has(`duration`)&&!keys$3.has(`dampingRatio`)?keyframes$2:keys$3.has(`dampingRatio`)||keys$3.has(`stiffness`)||keys$3.has(`mass`)||keys$3.has(`damping`)||keys$3.has(`restSpeed`)||keys$3.has(`restDelta`)?spring:keyframes$2}function loopElapsed(elapsed,duration,delay=0){return elapsed-duration-delay}function reverseElapsed(elapsed,duration,delay=0,isForwardPlayback=!0){return isForwardPlayback?loopElapsed(duration+-elapsed,duration,delay):duration-(elapsed-duration)+delay}function hasRepeatDelayElapsed(elapsed,duration,delay,isForwardPlayback){return isForwardPlayback?elapsed>=duration+delay:elapsed<=-delay}const framesync=update=>{let passTimestamp=({delta})=>update(delta);return{start:()=>es_default.update(passTimestamp,!0),stop:()=>cancelSync.update(passTimestamp)}};function animate(_a$2){var _b,_c,{from,autoplay=!0,driver=framesync,elapsed=0,repeat:repeatMax=0,repeatType=`loop`,repeatDelay=0,onPlay,onStop,onComplete,onRepeat,onUpdate}=_a$2,options$1=__rest(_a$2,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:to$1}=options$1,driverControls,repeatCount=0,computedDuration=options$1.duration,latest,isComplete=!1,isForwardPlayback=!0,interpolateFromNumber,animator=detectAnimationFromOptions(options$1);(_c=(_b=animator).needsInterpolation)?.call(_b,from,to$1)&&(interpolateFromNumber=interpolate([0,100],[from,to$1],{clamp:!1}),from=0,to$1=100);let animation=animator(Object.assign(Object.assign({},options$1),{from,to:to$1}));function repeat(){repeatCount++,repeatType===`reverse`?(isForwardPlayback=repeatCount%2==0,elapsed=reverseElapsed(elapsed,computedDuration,repeatDelay,isForwardPlayback)):(elapsed=loopElapsed(elapsed,computedDuration,repeatDelay),repeatType===`mirror`&&animation.flipTarget()),isComplete=!1,onRepeat&&onRepeat()}function complete(){driverControls.stop(),onComplete&&onComplete()}function update(delta){if(isForwardPlayback||(delta=-delta),elapsed+=delta,!isComplete){let state=animation.next(Math.max(0,elapsed));latest=state.value,interpolateFromNumber&&(latest=interpolateFromNumber(latest)),isComplete=isForwardPlayback?state.done:elapsed<=0}onUpdate?.(latest),isComplete&&(repeatCount===0&&(computedDuration??=elapsed),repeatCount{onStop?.(),driverControls.stop()}}}function velocityPerSecond(velocity,frameDuration){return frameDuration?velocity*(1e3/frameDuration):0}function inertia({from=0,velocity=0,min:min$1,max:max$1,power=.8,timeConstant=750,bounceStiffness=500,bounceDamping=10,restDelta=1,modifyTarget,driver,onUpdate,onComplete,onStop}){let currentAnimation;function isOutOfBounds(v$1){return min$1!==void 0&&v$1max$1}function boundaryNearest(v$1){return min$1===void 0?max$1:max$1===void 0||Math.abs(min$1-v$1){var _a$2;onUpdate?.(v$1),(_a$2=options$1.onUpdate)==null||_a$2.call(options$1,v$1)},onComplete,onStop}))}function startSpring(options$1){startAnimation(Object.assign({type:`spring`,stiffness:bounceStiffness,damping:bounceDamping,restDelta},options$1))}if(isOutOfBounds(from))startSpring({from,velocity,to:boundaryNearest(from)});else{let target$1=power*velocity+from;modifyTarget!==void 0&&(target$1=modifyTarget(target$1));let boundary=boundaryNearest(target$1),heading$1=boundary===min$1?-1:1,prev,current,checkBoundary=v$1=>{prev=current,current=v$1,velocity=velocityPerSecond(v$1-prev,getFrameData().delta),(heading$1===1&&v$1>boundary||heading$1===-1&&v$1currentAnimation?.stop()}}const a$1=(a1,a2)=>1-3*a2+3*a1,b$2=(a1,a2)=>3*a2-6*a1,c$3=a1=>3*a1,calcBezier=(t,a1,a2)=>((a$1(a1,a2)*t+b$2(a1,a2))*t+c$3(a1))*t,getSlope=(t,a1,a2)=>3*a$1(a1,a2)*t*t+2*b$2(a1,a2)*t+c$3(a1),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(aX,aA,aB,mX1,mX2){let currentX,currentT,i$1=0;do currentT=aA+(aB-aA)/2,currentX=calcBezier(currentT,mX1,mX2)-aX,currentX>0?aB=currentT:aA=currentT;while(Math.abs(currentX)>subdivisionPrecision&&++i$1=newtonMinSlope?newtonRaphsonIterate(aX,guessForT,mX1,mX2):initialSlope===0?guessForT:binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2)}return t=>t===0||t===1?t:calcBezier(getTForX(t),mY1,mY2)}const __vite_import_meta_env__$1={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_TARGET_HUGGINGFACE_SPACE:`true`},motionState={};var SubscriptionManager$1=class{constructor(){babelHelpers.defineProperty(this,`subscriptions`,new Set)}add(handler){return this.subscriptions.add(handler),()=>this.subscriptions.delete(handler)}notify(a$2,b$3,c$4){if(this.subscriptions.size)for(let handler of this.subscriptions)handler(a$2,b$3,c$4)}clear(){this.subscriptions.clear()}};function isFloat$1(value$1){return!Number.isNaN(Number.parseFloat(value$1))}var MotionValue$1=class{constructor(init){babelHelpers.defineProperty(this,`current`,void 0),babelHelpers.defineProperty(this,`prev`,void 0),babelHelpers.defineProperty(this,`timeDelta`,0),babelHelpers.defineProperty(this,`lastUpdated`,0),babelHelpers.defineProperty(this,`updateSubscribers`,new SubscriptionManager$1),babelHelpers.defineProperty(this,`stopAnimation`,void 0),babelHelpers.defineProperty(this,`canTrackVelocity`,!1),babelHelpers.defineProperty(this,`updateAndNotify`,v$1=>{this.prev=this.current,this.current=v$1;let{delta,timestamp:timestamp$2}=getFrameData();this.lastUpdated!==timestamp$2&&(this.timeDelta=delta,this.lastUpdated=timestamp$2),es_default.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),babelHelpers.defineProperty(this,`scheduleVelocityCheck`,()=>es_default.postRender(this.velocityCheck)),babelHelpers.defineProperty(this,`velocityCheck`,({timestamp:timestamp$2})=>{this.canTrackVelocity||=isFloat$1(this.current),timestamp$2!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=init,this.canTrackVelocity=isFloat$1(this.current)}onChange(subscription){return this.updateSubscribers.add(subscription)}clearListeners(){this.updateSubscribers.clear()}set(v$1){this.updateAndNotify(v$1)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(animation){return this.stop(),new Promise(resolve$1=>{let{stop:stop$1}=animation(resolve$1);this.stopAnimation=stop$1}).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 getMotionValue$1(init){return new MotionValue$1(init)}const{isArray:isArray$4}=Array;function useMotionValues$1(){let motionValues=ref({}),stop$1=keys$3=>{let destroyKey=key$1=>{motionValues.value[key$1]&&(motionValues.value[key$1].stop(),motionValues.value[key$1].destroy(),delete motionValues.value[key$1])};keys$3?isArray$4(keys$3)?keys$3.forEach(destroyKey):destroyKey(keys$3):Object.keys(motionValues.value).forEach(destroyKey)},get=(key$1,from,target$1)=>{if(motionValues.value[key$1])return motionValues.value[key$1];let motionValue=getMotionValue$1(from);return motionValue.onChange(v$1=>target$1[key$1]=v$1),motionValues.value[key$1]=motionValue,motionValue};return tryOnUnmounted(stop$1),{motionValues,get,stop:stop$1}}function isKeyframesTarget$1(v$1){return Array.isArray(v$1)}function underDampedSpring$1(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring$1(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring$1(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?100:30,restDelta:.01,restSpeed:10}}function linearTween$1(){return{type:`keyframes`,ease:`linear`,duration:300}}function keyframes$1(values){return{type:`keyframes`,duration:800,values}}const defaultTransitions$1={default:overDampedSpring$1,x:underDampedSpring$1,y:underDampedSpring$1,z:underDampedSpring$1,rotate:underDampedSpring$1,rotateX:underDampedSpring$1,rotateY:underDampedSpring$1,rotateZ:underDampedSpring$1,scaleX:criticallyDampedSpring$1,scaleY:criticallyDampedSpring$1,scale:criticallyDampedSpring$1,backgroundColor:linearTween$1,color:linearTween$1,opacity:linearTween$1};function getDefaultTransition$1(valueKey,to$1){let transitionFactory;return transitionFactory=isKeyframesTarget$1(to$1)?keyframes$1:defaultTransitions$1[valueKey]||defaultTransitions$1.default,{to:to$1,...transitionFactory(to$1)}}const int$1={...number,transform:Math.round},valueTypes$1={color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int$1,filter,WebkitFilter:filter,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int$1},getValueType$1=key$1=>valueTypes$1[key$1];function getValueAsType$1(value$1,type){return type&&typeof value$1==`number`&&type.transform?type.transform(value$1):value$1}function getAnimatableNone$1(key$1,value$1){let defaultValueType=getValueType$1(key$1);return defaultValueType!==filter&&(defaultValueType=complex),defaultValueType.getAnimatableNone?defaultValueType.getAnimatableNone(value$1):void 0}const easingLookup$1={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction$1(definition$29){if(Array.isArray(definition$29)){let[x1,y1,x2,y2]=definition$29;return cubicBezier(x1,y1,x2,y2)}else if(typeof definition$29==`string`)return easingLookup$1[definition$29];return definition$29}function isEasingArray$1(ease){return Array.isArray(ease)&&typeof ease[0]!=`number`}function isAnimatable$1(key$1,value$1){return key$1===`zIndex`?!1:!!(typeof value$1==`number`||Array.isArray(value$1)||typeof value$1==`string`&&complex.test(value$1)&&!value$1.startsWith(`url(`))}function hydrateKeyframes$1(options$1){return Array.isArray(options$1.to)&&options$1.to[0]===null&&(options$1.to=[...options$1.to],options$1.to[0]=options$1.from),options$1}function convertTransitionToAnimationOptions$1({ease,times,delay,...transition}){let options$1={...transition};return times&&(options$1.offset=times),ease&&(options$1.ease=isEasingArray$1(ease)?ease.map(easingDefinitionToFunction$1):easingDefinitionToFunction$1(ease)),delay&&(options$1.elapsed=-delay),options$1}function getPopmotionAnimationOptions$1(transition,options$1,key$1){return Array.isArray(options$1.to)&&(transition.duration||=800),hydrateKeyframes$1(options$1),isTransitionDefined$1(transition)||(transition={...transition,...getDefaultTransition$1(key$1,options$1.to)}),{...options$1,...convertTransitionToAnimationOptions$1(transition)}}function isTransitionDefined$1({delay,repeat,repeatType,repeatDelay,from,...transition}){return!!Object.keys(transition).length}function getValueTransition$1(transition,key$1){return transition[key$1]||transition.default||transition}function getAnimation$1(key$1,value$1,target$1,transition,onComplete){let valueTransition=getValueTransition$1(transition,key$1),origin=valueTransition.from===null||valueTransition.from===void 0?value$1.get():valueTransition.from,isTargetAnimatable=isAnimatable$1(key$1,target$1);origin===`none`&&isTargetAnimatable&&typeof target$1==`string`&&(origin=getAnimatableNone$1(key$1,target$1));let isOriginAnimatable=isAnimatable$1(key$1,origin);function start(complete){let options$1={from:origin,to:target$1,velocity:transition.velocity?transition.velocity:value$1.getVelocity(),onUpdate:v$1=>value$1.set(v$1)};return valueTransition.type===`inertia`||valueTransition.type===`decay`?inertia({...options$1,...valueTransition}):animate({...getPopmotionAnimationOptions$1(valueTransition,options$1,key$1),onUpdate:v$1=>{options$1.onUpdate(v$1),valueTransition.onUpdate&&valueTransition.onUpdate(v$1)},onComplete:()=>{onComplete&&onComplete(),complete&&complete()}})}function set(complete){return value$1.set(target$1),onComplete&&onComplete(),complete&&complete(),{stop:()=>{}}}return!isOriginAnimatable||!isTargetAnimatable||valueTransition.type===!1?set:start}function useMotionTransitions$1(){let{motionValues,stop:stop$1,get}=useMotionValues$1(),push$1=(key$1,value$1,target$1,transition={},onComplete)=>{let from=target$1[key$1],motionValue=get(key$1,from,target$1);if(transition&&transition.immediate){motionValue.set(value$1);return}let animation=getAnimation$1(key$1,motionValue,value$1,transition,onComplete);motionValue.start(animation)};return{motionValues,stop:stop$1,push:push$1}}function useMotionControls$1(motionProperties,variants={},{motionValues,push:push$1,stop:stop$1}=useMotionTransitions$1()){let _variants=unref(variants),isAnimating=ref(!1);watch(motionValues,newVal=>{isAnimating.value=Object.values(newVal).filter(value$1=>value$1.isAnimating()).length>0},{immediate:!0,deep:!0});let getVariantFromKey=variant=>{if(!_variants||!_variants[variant])throw Error(`The variant ${variant} does not exist.`);return _variants[variant]},apply$2=variant=>{typeof variant==`string`&&(variant=getVariantFromKey(variant));let animations$1=Object.entries(variant).map(([key$1,value$1])=>{if(key$1!==`transition`)return new Promise(resolve$1=>push$1(key$1,value$1,motionProperties,variant.transition||getDefaultTransition$1(key$1,variant[key$1]),resolve$1))}).filter(Boolean);async function waitForComplete(){var _variant$transition,_variant$transition$o;await Promise.all(animations$1),(_variant$transition=variant.transition)==null||(_variant$transition$o=_variant$transition.onComplete)==null||_variant$transition$o.call(_variant$transition)}return Promise.all([waitForComplete()])},set=variant=>{let variantData=isObject(variant)?variant:getVariantFromKey(variant);Object.entries(variantData).forEach(([key$1,value$1])=>{key$1!==`transition`&&push$1(key$1,value$1,motionProperties,{immediate:!0})})},leave=async done=>{let leaveVariant;if(_variants&&(_variants.leave&&(leaveVariant=_variants.leave),!_variants.leave&&_variants.initial&&(leaveVariant=_variants.initial)),!leaveVariant){done();return}await apply$2(leaveVariant),done()};return{isAnimating,apply:apply$2,set,leave,stop:stop$1}}const isBrowser$2=typeof window<`u`,supportsPointerEvents$1=()=>isBrowser$2&&(window.onpointerdown===null||__vite_import_meta_env__$1?.TEST),supportsTouchEvents$1=()=>isBrowser$2&&(window.ontouchstart===null||__vite_import_meta_env__$1?.TEST),supportsMouseEvents$1=()=>isBrowser$2&&(window.onmousedown===null||__vite_import_meta_env__$1?.TEST);function registerEventListeners$1({target:target$1,state,variants,apply:apply$2}){let _variants=unref(variants),hovered=ref(!1),tapped=ref(!1),focused=ref(!1),mutableKeys=computed(()=>{let result=[...Object.keys(state.value||{})];return _variants?(_variants.hovered&&(result=[...result,...Object.keys(_variants.hovered)]),_variants.tapped&&(result=[...result,...Object.keys(_variants.tapped)]),_variants.focused&&(result=[...result,...Object.keys(_variants.focused)]),result):result}),computedProperties=computed(()=>{let result={};for(let key$1 in Object.assign(result,state.value),hovered.value&&_variants.hovered&&Object.assign(result,_variants.hovered),tapped.value&&_variants.tapped&&Object.assign(result,_variants.tapped),focused.value&&_variants.focused&&Object.assign(result,_variants.focused),result)mutableKeys.value.includes(key$1)||delete result[key$1];return result});_variants.hovered&&(useEventListener(target$1,`mouseenter`,()=>hovered.value=!0),useEventListener(target$1,`mouseleave`,()=>{hovered.value=!1,tapped.value=!1})),_variants.tapped&&(supportsMouseEvents$1()&&(useEventListener(target$1,`mousedown`,()=>tapped.value=!0),useEventListener(target$1,`mouseup`,()=>tapped.value=!1)),supportsPointerEvents$1()&&(useEventListener(target$1,`pointerdown`,()=>tapped.value=!0),useEventListener(target$1,`pointerup`,()=>tapped.value=!1)),supportsTouchEvents$1()&&(useEventListener(target$1,`touchstart`,()=>tapped.value=!0),useEventListener(target$1,`touchend`,()=>tapped.value=!1))),_variants.focused&&(useEventListener(target$1,`focus`,()=>focused.value=!0),useEventListener(target$1,`blur`,()=>focused.value=!1)),watch([hovered,tapped,focused],()=>{apply$2(computedProperties.value)})}function registerLifeCycleHooks$1({set,target:target$1,variants,variant}){let _variants=unref(variants);watch(()=>target$1,()=>{_variants&&(_variants.initial&&(set(`initial`),variant.value=`initial`),_variants.enter&&(variant.value=`enter`))},{immediate:!0,flush:`pre`})}function registerVariantsSync$1({state,apply:apply$2}){watch(state,newVal=>{newVal&&apply$2(newVal)},{immediate:!0})}function registerVisibilityHooks$1({target:target$1,variants,variant}){let _variants=unref(variants);_variants&&(_variants.visible||_variants.visibleOnce)&&useIntersectionObserver(target$1,([{isIntersecting}])=>{_variants.visible?isIntersecting?variant.value=`visible`:variant.value=`initial`:_variants.visibleOnce&&(isIntersecting&&variant.value!==`visibleOnce`?variant.value=`visibleOnce`:variant.value||=`initial`)})}function useMotionFeatures$1(instance,options$1={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){options$1.lifeCycleHooks&®isterLifeCycleHooks$1(instance),options$1.syncVariants&®isterVariantsSync$1(instance),options$1.visibilityHooks&®isterVisibilityHooks$1(instance),options$1.eventListeners&®isterEventListeners$1(instance)}function reactiveStyle$1(props={}){let state=reactive({...props}),style=ref({});return watch(state,()=>{let result={};for(let[key$1,value$1]of Object.entries(state)){let valueType=getValueType$1(key$1),valueAsType=getValueAsType$1(value$1,valueType);result[key$1]=valueAsType}style.value=result},{immediate:!0,deep:!0}),{state,style}}function usePermissiveTarget$1(target$1,onTarget){watch(()=>unrefElement(target$1),el=>{el&&onTarget(el)},{immediate:!0})}const translateAlias$1={x:`translateX`,y:`translateY`,z:`translateZ`};function reactiveTransform$1(props={},enableHardwareAcceleration=!0){let state=reactive({...props}),transform$1=ref(``);return watch(state,newVal=>{let result=``,hasHardwareAcceleration=!1;if(enableHardwareAcceleration&&(newVal.x||newVal.y||newVal.z)){let str=[newVal.x||0,newVal.y||0,newVal.z||0].map(val=>getValueAsType$1(val,px)).join(`,`);result+=`translate3d(${str}) `,hasHardwareAcceleration=!0}for(let[key$1,value$1]of Object.entries(newVal)){if(enableHardwareAcceleration&&(key$1===`x`||key$1===`y`||key$1===`z`))continue;let valueType=getValueType$1(key$1),valueAsType=getValueAsType$1(value$1,valueType);result+=`${translateAlias$1[key$1]||key$1}(${valueAsType}) `}enableHardwareAcceleration&&!hasHardwareAcceleration&&(result+=`translateZ(0px) `),transform$1.value=result.trim()},{immediate:!0,deep:!0}),{state,transform:transform$1}}const transformAxes$1=[``,`X`,`Y`,`Z`],order$2=[`perspective`,`translate`,`scale`,`rotate`,`skew`],transformProps$1=[`transformPerspective`,`x`,`y`,`z`];order$2.forEach(operationKey=>{transformAxes$1.forEach(axesKey=>{let key$1=operationKey+axesKey;transformProps$1.push(key$1)})});const transformPropSet$1=new Set(transformProps$1);function isTransformProp$1(key$1){return transformPropSet$1.has(key$1)}const transformOriginProps$1=new Set([`originX`,`originY`,`originZ`]);function isTransformOriginProp$1(key$1){return transformOriginProps$1.has(key$1)}function splitValues$1(variant){let transform$1={},style={};return Object.entries(variant).forEach(([key$1,value$1])=>{isTransformProp$1(key$1)||isTransformOriginProp$1(key$1)?transform$1[key$1]=value$1:style[key$1]=value$1}),{transform:transform$1,style}}function variantToStyle$1(variant){let{transform:_transform,style:_style}=splitValues$1(variant),{transform:transform$1}=reactiveTransform$1(_transform),{style}=reactiveStyle$1(_style);return transform$1.value&&(style.value.transform=transform$1.value),style.value}function useElementStyle$1(target$1,onInit){let _cache$1,_target$1,{state,style}=reactiveStyle$1();return usePermissiveTarget$1(target$1,el=>{_target$1=el;for(let key$1 of Object.keys(valueTypes$1)){if(el.style[key$1]===null||el.style[key$1]===``||isTransformProp$1(key$1)||isTransformOriginProp$1(key$1))continue;state[key$1]=el.style[key$1]}_cache$1&&Object.entries(_cache$1).forEach(([key$1,value$1])=>el.style[key$1]=value$1),onInit&&onInit(state)}),watch(style,newVal=>{if(!_target$1){_cache$1=newVal;return}for(let key$1 in newVal)_target$1.style[key$1]=newVal[key$1]},{immediate:!0}),{style:state}}function parseTransform$1(transform$1){let transforms=transform$1.trim().split(/\) |\)/);if(transforms.length===1)return{};let parseValues=value$1=>value$1.endsWith(`px`)||value$1.endsWith(`deg`)?Number.parseFloat(value$1):Number.isNaN(Number(value$1))?Number(value$1):value$1;return transforms.reduce((acc,transform2)=>{if(!transform2)return acc;let[name$2,transformValue]=transform2.split(`(`),valueArray=transformValue.split(`,`),values=valueArray.map(val=>parseValues(val.endsWith(`)`)?val.replace(`)`,``):val.trim())),value$1=values.length===1?values[0]:values;return{...acc,[name$2]:value$1}},{})}function stateFromTransform$1(state,transform$1){Object.entries(parseTransform$1(transform$1)).forEach(([key$1,value$1])=>{let axes=[`x`,`y`,`z`];if(key$1===`translate3d`){if(value$1===0){axes.forEach(axis=>state[axis]=0);return}value$1.forEach((axisValue,index$1)=>state[axes[index$1]]=axisValue);return}if(value$1=Number.parseFloat(`${value$1}`),key$1===`translateX`){state.x=value$1;return}if(key$1===`translateY`){state.y=value$1;return}if(key$1===`translateZ`){state.z=value$1;return}state[key$1]=value$1})}function useElementTransform$1(target$1,onInit){let _cache$1,_target$1,{state,transform:transform$1}=reactiveTransform$1();return usePermissiveTarget$1(target$1,el=>{_target$1=el,el.style.transform&&stateFromTransform$1(state,el.style.transform),_cache$1&&(el.style.transform=_cache$1),onInit&&onInit(state)}),watch(transform$1,newValue=>{if(!_target$1){_cache$1=newValue;return}_target$1.style.transform=newValue},{immediate:!0}),{transform:state}}function objectEntries$1(obj){return Object.entries(obj)}function useMotionProperties$1(target$1,defaultValues){let motionProperties=reactive({}),apply$2=values=>Object.entries(values).forEach(([key$1,value$1])=>motionProperties[key$1]=value$1),{style}=useElementStyle$1(target$1,apply$2),{transform:transform$1}=useElementTransform$1(target$1,apply$2);return watch(motionProperties,newVal=>{objectEntries$1(newVal).forEach(([key$1,value$1])=>{let target2=isTransformProp$1(key$1)?transform$1:style;target2[key$1]&&target2[key$1]===value$1||(target2[key$1]=value$1)})},{immediate:!0,deep:!0}),usePermissiveTarget$1(target$1,()=>defaultValues&&apply$2(defaultValues)),{motionProperties,style,transform:transform$1}}function useMotionVariants$1(variants={}){let _variants=unref(variants),variant=ref(),state=computed(()=>{if(variant.value)return _variants[variant.value]});return{state,variant}}function useMotion$1(target$1,variants={},options$1){let{motionProperties}=useMotionProperties$1(target$1),{variant,state}=useMotionVariants$1(variants),controls=useMotionControls$1(motionProperties,variants),instance={target:target$1,variant,variants,state,motionProperties,...controls};return useMotionFeatures$1(instance,options$1),instance}const transitionKeys$1=[`delay`,`duration`],directivePropsKeys$1=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...transitionKeys$1];function isTransitionKey(val){return transitionKeys$1.includes(val)}function resolveVariants(node$1,variantsRef){let target$1=node$1.props?node$1.props:node$1.data&&node$1.data.attrs?node$1.data.attrs:{};if(target$1){target$1.variants&&isObject(target$1.variants)&&(variantsRef.value={...variantsRef.value,...target$1.variants});for(let key$1 of directivePropsKeys$1){if(!target$1||!target$1[key$1])continue;if(isTransitionKey(key$1)&&typeof target$1[key$1]==`number`){for(let variantKey of[`enter`,`visible`,`visibleOnce`]){let variantConfig=variantsRef.value[variantKey];if(variantConfig==null)continue;variantConfig.transition??={},variantConfig.transition[key$1]=target$1[key$1]}continue}if(isObject(target$1[key$1])){let prop=target$1[key$1];key$1===`visible-once`&&(key$1=`visibleOnce`),variantsRef.value[key$1]=prop}}}}function directive(variants,isPreset=!1){let register=(el,binding,node$1)=>{let key$1=binding.value&&typeof binding.value==`string`?binding.value:node$1.key;key$1&&motionState[key$1]&&motionState[key$1].stop();let variantsObject=isPreset?structuredClone(toRaw(variants)||{}):variants||{},variantsRef=ref(variantsObject);typeof binding.value==`object`&&(variantsRef.value=binding.value),resolveVariants(node$1,variantsRef);let motionOptions={eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1},motionInstance=useMotion$1(el,variantsRef,motionOptions);el.motionInstance=motionInstance,key$1&&(motionState[key$1]=motionInstance)},mounted=(el,_binding,_node)=>{el.motionInstance&®isterVisibilityHooks$1(el.motionInstance)};return{created:register,mounted,getSSRProps(binding,node$1){let{initial:bindingInitial}=binding.value||node$1&&node$1?.props||{};bindingInitial=unref(bindingInitial);let initial=defu({},variants?.initial||{},bindingInitial||{});if(!initial||Object.keys(initial).length===0)return;let style=variantToStyle$1(initial);return{style}}}}const fade$1={initial:{opacity:0},enter:{opacity:1}},fadeVisible$1={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce$1={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible$1={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce$1={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft$1={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft$1={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft$1={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight$1={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight$1={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight$1={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop$1={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop$1={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop$1={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom$1={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom$1={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom$1={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft$1={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft$1={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft$1={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight$1={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight$1={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight$1={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop$1={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop$1={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop$1={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom$1={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom$1={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom$1={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets$1={__proto__:null,fade:fade$1,fadeVisible:fadeVisible$1,fadeVisibleOnce:fadeVisibleOnce$1,pop:pop$1,popVisible:popVisible$1,popVisibleOnce:popVisibleOnce$1,rollBottom:rollBottom$1,rollLeft:rollLeft$1,rollRight:rollRight$1,rollTop:rollTop$1,rollVisibleBottom:rollVisibleBottom$1,rollVisibleLeft:rollVisibleLeft$1,rollVisibleOnceBottom:rollVisibleOnceBottom$1,rollVisibleOnceLeft:rollVisibleOnceLeft$1,rollVisibleOnceRight:rollVisibleOnceRight$1,rollVisibleOnceTop:rollVisibleOnceTop$1,rollVisibleRight:rollVisibleRight$1,rollVisibleTop:rollVisibleTop$1,slideBottom:slideBottom$1,slideLeft:slideLeft$1,slideRight:slideRight$1,slideTop:slideTop$1,slideVisibleBottom:slideVisibleBottom$1,slideVisibleLeft:slideVisibleLeft$1,slideVisibleOnceBottom:slideVisibleOnceBottom$1,slideVisibleOnceLeft:slideVisibleOnceLeft$1,slideVisibleOnceRight:slideVisibleOnceRight$1,slideVisibleOnceTop:slideVisibleOnceTop$1,slideVisibleRight:slideVisibleRight$1,slideVisibleTop:slideVisibleTop$1};function slugify(str){let a$2=`àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;`,b$3=`aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------`,p$5=new RegExp(a$2.split(``).join(`|`),`g`);return str.toString().replace(/[A-Z]/g,s$1=>`-${s$1}`).toLowerCase().replace(/\s+/g,`-`).replace(p$5,c$4=>b$3.charAt(a$2.indexOf(c$4))).replace(/&/g,`-and-`).replace(/[^\w\-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}const CUSTOM_PRESETS$1=Symbol(``),MotionComponentProps$1={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 isObject$3(val){return Object.prototype.toString.call(val)===`[object Object]`}function clone$1(v$1){if(Array.isArray(v$1))return v$1.map(clone$1);if(isObject$3(v$1)){let res={};for(let key$1 in v$1)res[key$1]=clone$1(v$1[key$1]);return res}return v$1}function setupMotionComponent$1(props){let instances=reactive({}),customPresets=inject(CUSTOM_PRESETS$1,{}),preset=computed(()=>props.preset==null?{}:customPresets!=null&&props.preset in customPresets?structuredClone(toRaw(customPresets)[props.preset]):props.preset in presets$1?structuredClone(presets$1[props.preset]):{}),propsConfig=computed(()=>({initial:props.initial,enter:props.enter,leave:props.leave,visible:props.visible,visibleOnce:props.visibleOnce,hovered:props.hovered,tapped:props.tapped,focused:props.focused}));function applyTransitionHelpers(config,values){for(let transitionKey of[`delay`,`duration`]){if(values[transitionKey]==null)continue;let transitionValueParsed=Number.parseInt(values[transitionKey]);for(let variantKey of[`enter`,`visible`,`visibleOnce`]){let variantConfig=config[variantKey];if(variantConfig==null)continue;variantConfig.transition??={},variantConfig.transition[transitionKey]=transitionValueParsed}}return config}let motionConfig=computed(()=>{let config=defu({},propsConfig.value,preset.value,props.variants||{});return applyTransitionHelpers({...config},props)});function setNodeInstance(node$1,index$1,style){var _node$1$props;node$1.props??={},(_node$1$props=node$1.props).style??(_node$1$props.style={}),node$1.props.style={...node$1.props.style,...style};let elementMotionConfig=applyTransitionHelpers(clone$1(motionConfig.value),node$1.props);return node$1.props.onVnodeMounted=({el})=>{instances[index$1]=useMotion$1(el,elementMotionConfig)},node$1.props.onVnodeUpdated=({el})=>{let styles=variantToStyle$1(instances[index$1].state);for(let[key$1,val]of Object.entries(styles))el.style[key$1]=val},node$1}return{motionConfig,setNodeInstance}}const MotionComponent$1=defineComponent({name:`Motion`,props:{...MotionComponentProps$1,is:{type:[String,Object],default:`div`}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent$1(props);return()=>{let style=variantToStyle$1(motionConfig.value.initial||{}),node$1=h(props.is,void 0,slots);return setNodeInstance(node$1,0,style),node$1}}}),MotionGroupComponent$1=defineComponent({name:`MotionGroup`,props:{...MotionComponentProps$1,is:{type:[String,Object],required:!1}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent$1(props);return()=>{var _slots$default;let style=variantToStyle$1(motionConfig.value.initial||{}),nodes=(_slots$default=slots.default)?.call(slots)||[];for(let i$1=0;i$1activePinia=pinia$1,piniaSymbol=Symbol();function isPlainObject$4(o$1){return o$1&&typeof o$1==`object`&&Object.prototype.toString.call(o$1)===`[object Object]`&&typeof o$1.toJSON!=`function`}var MutationType;(function(MutationType$1){MutationType$1.direct=`direct`,MutationType$1.patchObject=`patch object`,MutationType$1.patchFunction=`patch function`})(MutationType||={});const IS_CLIENT=typeof window<`u`,_global=(()=>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 bom(blob,{autoBom=!1}={}){return autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)?new Blob([``,blob],{type:blob.type}):blob}function download(url,name$2,opts){let xhr=new XMLHttpRequest;xhr.open(`GET`,url),xhr.responseType=`blob`,xhr.onload=function(){saveAs(xhr.response,name$2,opts)},xhr.onerror=function(){console.error(`could not download file`)},xhr.send()}function corsEnabled(url){let xhr=new XMLHttpRequest;xhr.open(`HEAD`,url,!1);try{xhr.send()}catch{}return xhr.status>=200&&xhr.status<=299}function click(node$1){try{node$1.dispatchEvent(new MouseEvent(`click`))}catch{let evt=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});node$1.dispatchEvent(evt)}}const _navigator=typeof navigator==`object`?navigator:{userAgent:``},isMacOSWebView=(()=>/Macintosh/.test(_navigator.userAgent)&&/AppleWebKit/.test(_navigator.userAgent)&&!/Safari/.test(_navigator.userAgent))(),saveAs=IS_CLIENT?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!isMacOSWebView?downloadSaveAs:`msSaveOrOpenBlob`in _navigator?msSaveAs:fileSaverSaveAs:()=>{};function downloadSaveAs(blob,name$2=`download`,opts){let a$2=document.createElement(`a`);a$2.download=name$2,a$2.rel=`noopener`,typeof blob==`string`?(a$2.href=blob,a$2.origin===location.origin?click(a$2):corsEnabled(a$2.href)?download(blob,name$2,opts):(a$2.target=`_blank`,click(a$2))):(a$2.href=URL.createObjectURL(blob),setTimeout(function(){URL.revokeObjectURL(a$2.href)},4e4),setTimeout(function(){click(a$2)},0))}function msSaveAs(blob,name$2=`download`,opts){if(typeof blob==`string`)if(corsEnabled(blob))download(blob,name$2,opts);else{let a$2=document.createElement(`a`);a$2.href=blob,a$2.target=`_blank`,setTimeout(function(){click(a$2)})}else navigator.msSaveOrOpenBlob(bom(blob,opts),name$2)}function fileSaverSaveAs(blob,name$2,opts,popup){if(popup||=open(``,`_blank`),popup&&(popup.document.title=popup.document.body.innerText=`downloading...`),typeof blob==`string`)return download(blob,name$2,opts);let force=blob.type===`application/octet-stream`,isSafari=/constructor/i.test(String(_global.HTMLElement))||`safari`in _global,isChromeIOS=/CriOS\/[\d]+/.test(navigator.userAgent);if((isChromeIOS||force&&isSafari||isMacOSWebView)&&typeof FileReader<`u`){let reader=new FileReader;reader.onloadend=function(){let url=reader.result;if(typeof url!=`string`)throw popup=null,Error(`Wrong reader.result type`);url=isChromeIOS?url:url.replace(/^data:[^;]*;/,`data:attachment/file;`),popup?popup.location.href=url:location.assign(url),popup=null},reader.readAsDataURL(blob)}else{let url=URL.createObjectURL(blob);popup?popup.location.assign(url):location.href=url,popup=null,setTimeout(function(){URL.revokeObjectURL(url)},4e4)}}const{assign:assign$1$1}=Object;function createPinia(){let scope=effectScope(!0),state=scope.run(()=>ref({})),_p=[],toBeInstalled=[],pinia$1=markRaw({install(app){setActivePinia(pinia$1),pinia$1._a=app,app.provide(piniaSymbol,pinia$1),app.config.globalProperties.$pinia=pinia$1,toBeInstalled.forEach(plugin=>_p.push(plugin)),toBeInstalled=[]},use(plugin){return this._a?_p.push(plugin):toBeInstalled.push(plugin),this},_p,_a:null,_e:scope,_s:new Map,state});return pinia$1}const noop$1=()=>{};function addSubscription(subscriptions,callback,detached,onCleanup=noop$1){subscriptions.push(callback);let removeSubscription=()=>{let idx=subscriptions.indexOf(callback);idx>-1&&(subscriptions.splice(idx,1),onCleanup())};return!detached&&getCurrentScope()&&onScopeDispose(removeSubscription),removeSubscription}function triggerSubscriptions(subscriptions,...args){subscriptions.slice().forEach(callback=>{callback(...args)})}const fallbackRunWithContext=fn$5=>fn$5(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(target$1,patchToApply){for(let key$1 in target$1 instanceof Map&&patchToApply instanceof Map?patchToApply.forEach((value$1,key$1)=>target$1.set(key$1,value$1)):target$1 instanceof Set&&patchToApply instanceof Set&&patchToApply.forEach(target$1.add,target$1),patchToApply){if(!patchToApply.hasOwnProperty(key$1))continue;let subPatch=patchToApply[key$1],targetValue=target$1[key$1];isPlainObject$4(targetValue)&&isPlainObject$4(subPatch)&&target$1.hasOwnProperty(key$1)&&!isRef(subPatch)&&!isReactive(subPatch)?target$1[key$1]=mergeReactiveObjects(targetValue,subPatch):target$1[key$1]=subPatch}return target$1}const skipHydrateSymbol=Symbol();function shouldHydrate(obj){return!isPlainObject$4(obj)||!Object.prototype.hasOwnProperty.call(obj,skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(o$1){return!!(isRef(o$1)&&o$1.effect)}function createOptionsStore(id,options$1,pinia$1,hot){let{state,actions,getters}=options$1,initialState=pinia$1.state.value[id],store;function setup(){initialState||(pinia$1.state.value[id]=state?state():{});let localState=toRefs(pinia$1.state.value[id]);return assign$2(localState,actions,Object.keys(getters||{}).reduce((computedGetters,name$2)=>(computedGetters[name$2]=markRaw(computed(()=>{setActivePinia(pinia$1);let store$1=pinia$1._s.get(id);return getters[name$2].call(store$1,store$1)})),computedGetters),{}))}return store=createSetupStore(id,setup,options$1,pinia$1,hot,!0),store}function createSetupStore($id,setup,options$1={},pinia$1,hot,isOptionsStore){let scope,optionsForPlugin=assign$2({actions:{}},options$1),$subscribeOptions={deep:!0},isListening,isSyncListening,subscriptions=[],actionSubscriptions=[],debuggerEvents,initialState=pinia$1.state.value[$id];!isOptionsStore&&!initialState&&(pinia$1.state.value[$id]={});let hotState=ref({}),activeListener;function $patch(partialStateOrMutator){let subscriptionMutation;isListening=isSyncListening=!1,typeof partialStateOrMutator==`function`?(partialStateOrMutator(pinia$1.state.value[$id]),subscriptionMutation={type:MutationType.patchFunction,storeId:$id,events:debuggerEvents}):(mergeReactiveObjects(pinia$1.state.value[$id],partialStateOrMutator),subscriptionMutation={type:MutationType.patchObject,payload:partialStateOrMutator,storeId:$id,events:debuggerEvents});let myListenerId=activeListener=Symbol();nextTick().then(()=>{activeListener===myListenerId&&(isListening=!0)}),isSyncListening=!0,triggerSubscriptions(subscriptions,subscriptionMutation,pinia$1.state.value[$id])}let $reset=isOptionsStore?function(){let{state}=options$1,newState=state?state():{};this.$patch($state=>{assign$2($state,newState)})}:noop$1;function $dispose(){scope.stop(),subscriptions=[],actionSubscriptions=[],pinia$1._s.delete($id)}let action=(fn$5,name$2=``)=>{if(ACTION_MARKER in fn$5)return fn$5[ACTION_NAME]=name$2,fn$5;let wrappedAction=function(){setActivePinia(pinia$1);let args=Array.from(arguments),afterCallbackList=[],onErrorCallbackList=[];function after(callback){afterCallbackList.push(callback)}function onError(callback){onErrorCallbackList.push(callback)}triggerSubscriptions(actionSubscriptions,{args,name:wrappedAction[ACTION_NAME],store,after,onError});let ret;try{ret=fn$5.apply(this&&this.$id===$id?this:store,args)}catch(error){throw triggerSubscriptions(onErrorCallbackList,error),error}return ret instanceof Promise?ret.then(value$1=>(triggerSubscriptions(afterCallbackList,value$1),value$1)).catch(error=>(triggerSubscriptions(onErrorCallbackList,error),Promise.reject(error))):(triggerSubscriptions(afterCallbackList,ret),ret)};return wrappedAction[ACTION_MARKER]=!0,wrappedAction[ACTION_NAME]=name$2,wrappedAction},_hmrPayload=markRaw({actions:{},getters:{},state:[],hotState}),partialStore={_p:pinia$1,$id,$onAction:addSubscription.bind(null,actionSubscriptions),$patch,$reset,$subscribe(callback,options$2={}){let removeSubscription=addSubscription(subscriptions,callback,options$2.detached,()=>stopWatcher()),stopWatcher=scope.run(()=>watch(()=>pinia$1.state.value[$id],state=>{(options$2.flush===`sync`?isSyncListening:isListening)&&callback({storeId:$id,type:MutationType.direct,events:debuggerEvents},state)},assign$2({},$subscribeOptions,options$2)));return removeSubscription},$dispose},store=reactive(partialStore);pinia$1._s.set($id,store);let runWithContext=pinia$1._a&&pinia$1._a.runWithContext||fallbackRunWithContext,setupStore=runWithContext(()=>pinia$1._e.run(()=>(scope=effectScope()).run(()=>setup({action}))));for(let key$1 in setupStore){let prop=setupStore[key$1];if(isRef(prop)&&!isComputed(prop)||isReactive(prop))isOptionsStore||(initialState&&shouldHydrate(prop)&&(isRef(prop)?prop.value=initialState[key$1]:mergeReactiveObjects(prop,initialState[key$1])),pinia$1.state.value[$id][key$1]=prop);else if(typeof prop==`function`){let actionValue=action(prop,key$1);setupStore[key$1]=actionValue,optionsForPlugin.actions[key$1]=prop}}return assign$2(store,setupStore),assign$2(toRaw(store),setupStore),Object.defineProperty(store,`$state`,{get:()=>pinia$1.state.value[$id],set:state=>{$patch($state=>{assign$2($state,state)})}}),pinia$1._p.forEach(extender=>{assign$2(store,scope.run(()=>extender({store,app:pinia$1._a,pinia:pinia$1,options:optionsForPlugin})))}),initialState&&isOptionsStore&&options$1.hydrate&&options$1.hydrate(store.$state,initialState),isListening=!0,isSyncListening=!0,store} /*! #__NO_SIDE_EFFECTS__ */ -function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof setup==`function`;options$1=isSetupStore?setupOptions:setup;function useStore(pinia$1,hot){let hasContext=hasInjectionContext();pinia$1||=hasContext?inject(piniaSymbol,null):null,pinia$1&&setActivePinia(pinia$1),pinia$1=activePinia,pinia$1._s.has(id)||(isSetupStore?createSetupStore(id,setup,options$1,pinia$1):createOptionsStore(id,options$1,pinia$1));let store=pinia$1._s.get(id);return store}return useStore.$id=id,useStore}function storeToRefs(store){let rawStore=toRaw(store),refs={};for(let key$1 in rawStore){let value$1=rawStore[key$1];value$1.effect?refs[key$1]=computed({get:()=>store[key$1],set(value$2){store[key$1]=value$2}}):(isRef(value$1)||isReactive(value$1))&&(refs[key$1]=toRef(store,key$1))}return refs}const scriptRel=`modulepreload`,assetsURL=function(dep){return`/`+dep},seen={},__vitePreload=function(baseModule,deps,importerUrl){let promise=Promise.resolve();if(deps&&deps.length>0){let allSettled2=function(promises){return Promise.all(promises.map(p$5=>Promise.resolve(p$5).then(value$1=>({status:`fulfilled`,value:value$1}),reason=>({status:`rejected`,reason}))))},links=document.getElementsByTagName(`link`),cspNonceMeta=document.querySelector(`meta[property=csp-nonce]`),cspNonce=cspNonceMeta?.nonce||cspNonceMeta?.getAttribute(`nonce`);promise=allSettled2(deps.map(dep=>{if(dep=assetsURL(dep,importerUrl),dep in seen)return;seen[dep]=!0;let isCss=dep.endsWith(`.css`),cssSelector=isCss?`[rel="stylesheet"]`:``,isBaseRelative=!!importerUrl;if(isBaseRelative)for(let i$1=links.length-1;i$1>=0;i$1--){let link2=links[i$1];if(link2.href===dep&&(!isCss||link2.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${dep}"]${cssSelector}`))return;let link$1=document.createElement(`link`);if(link$1.rel=isCss?`stylesheet`:scriptRel,isCss||(link$1.as=`script`),link$1.crossOrigin=``,link$1.href=dep,cspNonce&&link$1.setAttribute(`nonce`,cspNonce),document.head.appendChild(link$1),isCss)return new Promise((res,rej)=>{link$1.addEventListener(`load`,res),link$1.addEventListener(`error`,()=>rej(Error(`Unable to preload CSS for ${dep}`)))})}))}function handlePreloadError(err){let e$3=new Event(`vite:preloadError`,{cancelable:!0});if(e$3.payload=err,window.dispatchEvent(e$3),!e$3.defaultPrevented)throw err}return promise.then(res=>{for(let item of res||[]){if(item.status!==`rejected`)continue;handlePreloadError(item.reason)}return baseModule().catch(handlePreloadError)})},setupLayouts=routes$1=>{let layouts={},modules=Object.assign({"/src/layouts/default.vue":()=>__vitePreload(()=>import(`./default-CWmzHQKB.js`),__vite__mapDeps([0,1,2])),"/src/layouts/home.vue":()=>__vitePreload(()=>import(`./home-viOrQmVG.js`),[]),"/src/layouts/plain.vue":()=>__vitePreload(()=>import(`./plain-OS_H60vi.js`),[]),"/src/layouts/settings.vue":()=>__vitePreload(()=>import(`./settings-CHo_K_ph.js`),__vite__mapDeps([3,1,2])),"/src/layouts/stage.vue":()=>__vitePreload(()=>import(`./stage-C-_T8paA.js`),[])});Object.entries(modules).forEach(([name$2,module$1])=>{let key$1=name$2.replace(`/src/layouts/`,``).replace(`.vue`,``);layouts[key$1]=module$1});function deepSetupLayout(routes$2,top=!0){return routes$2.map(route=>{var _route$children,_route$meta3,_route$meta4;if((_route$children=route.children)?.length>0&&(route.children=deepSetupLayout(route.children,!1)),top){var _route$children2,_route$meta,_route$meta2;let skipLayout=!route.component&&(_route$children2=route.children)?.find(r$2=>{var _r$2$meta;return(r$2.path===``||r$2.path===`/`)&&(_r$2$meta=r$2.meta)?.isLayout});if(skipLayout)return route;if((_route$meta=route.meta)?.layout!==!1)return{path:route.path,component:layouts[(_route$meta2=route.meta)?.layout||`default`],children:route.path===`/`?[route]:[{...route,path:``}],meta:{isLayout:!0}}}return(_route$meta3=route.meta)?.layout?{path:route.path,component:layouts[(_route$meta4=route.meta)?.layout],children:[{...route,path:``}],meta:{isLayout:!0}}:route})}return deepSetupLayout(routes$1)},isBrowser$1=typeof document<`u`;function isRouteComponent(component){return typeof component==`object`||`displayName`in component||`props`in component||`__vccOpts`in component}function isESModule(obj){return obj.__esModule||obj[Symbol.toStringTag]===`Module`||obj.default&&isRouteComponent(obj.default)}const assign$1=Object.assign;function applyToParams(fn$5,params){let newParams={};for(let key$1 in params){let value$1=params[key$1];newParams[key$1]=isArray$3(value$1)?value$1.map(fn$5):fn$5(value$1)}return newParams}const noop=()=>{},isArray$3=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(text$5){return encodeURI(``+text$5).replace(ENC_PIPE_RE,`|`).replace(ENC_BRACKET_OPEN_RE,`[`).replace(ENC_BRACKET_CLOSE_RE,`]`)}function encodeHash(text$5){return commonEncode(text$5).replace(ENC_CURLY_OPEN_RE,`{`).replace(ENC_CURLY_CLOSE_RE,`}`).replace(ENC_CARET_RE,`^`)}function encodeQueryValue(text$5){return commonEncode(text$5).replace(PLUS_RE,`%2B`).replace(ENC_SPACE_RE,`+`).replace(HASH_RE,`%23`).replace(AMPERSAND_RE,`%26`).replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,`{`).replace(ENC_CURLY_CLOSE_RE,`}`).replace(ENC_CARET_RE,`^`)}function encodeQueryKey(text$5){return encodeQueryValue(text$5).replace(EQUAL_RE,`%3D`)}function encodePath(text$5){return commonEncode(text$5).replace(HASH_RE,`%23`).replace(IM_RE,`%3F`)}function encodeParam(text$5){return text$5==null?``:encodePath(text$5).replace(SLASH_RE,`%2F`)}function decode$1(text$5){try{return decodeURIComponent(``+text$5)}catch{}return``+text$5}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=path=>path.replace(TRAILING_SLASH_RE,``);function parseURL(parseQuery$1,location$1,currentLocation=`/`){let path,query={},searchString=``,hash=``,hashPos=location$1.indexOf(`#`),searchPos=location$1.indexOf(`?`);return hashPos=0&&(searchPos=-1),searchPos>-1&&(path=location$1.slice(0,searchPos),searchString=location$1.slice(searchPos+1,hashPos>-1?hashPos:location$1.length),query=parseQuery$1(searchString)),hashPos>-1&&(path||=location$1.slice(0,hashPos),hash=location$1.slice(hashPos,location$1.length)),path=resolveRelativePath(path??location$1,currentLocation),{fullPath:path+(searchString&&`?`)+searchString+hash,path,query,hash:decode$1(hash)}}function stringifyURL(stringifyQuery$1,location$1){let query=location$1.query?stringifyQuery$1(location$1.query):``;return location$1.path+(query&&`?`)+query+(location$1.hash||``)}function stripBase(pathname,base){return!base||!pathname.toLowerCase().startsWith(base.toLowerCase())?pathname:pathname.slice(base.length)||`/`}function isSameRouteLocation(stringifyQuery$1,a$2,b$3){let aLastIndex=a$2.matched.length-1,bLastIndex=b$3.matched.length-1;return aLastIndex>-1&&aLastIndex===bLastIndex&&isSameRouteRecord(a$2.matched[aLastIndex],b$3.matched[bLastIndex])&&isSameRouteLocationParams(a$2.params,b$3.params)&&stringifyQuery$1(a$2.query)===stringifyQuery$1(b$3.query)&&a$2.hash===b$3.hash}function isSameRouteRecord(a$2,b$3){return(a$2.aliasOf||a$2)===(b$3.aliasOf||b$3)}function isSameRouteLocationParams(a$2,b$3){if(Object.keys(a$2).length!==Object.keys(b$3).length)return!1;for(let key$1 in a$2)if(!isSameRouteLocationParamsValue(a$2[key$1],b$3[key$1]))return!1;return!0}function isSameRouteLocationParamsValue(a$2,b$3){return isArray$3(a$2)?isEquivalentArray(a$2,b$3):isArray$3(b$3)?isEquivalentArray(b$3,a$2):a$2===b$3}function isEquivalentArray(a$2,b$3){return isArray$3(b$3)?a$2.length===b$3.length&&a$2.every((value$1,i$1)=>value$1===b$3[i$1]):a$2.length===1&&a$2[0]===b$3}function resolveRelativePath(to$1,from){if(to$1.startsWith(`/`))return to$1;if(!to$1)return from;let fromSegments=from.split(`/`),toSegments=to$1.split(`/`),lastToSegment=toSegments[toSegments.length-1];(lastToSegment===`..`||lastToSegment===`.`)&&toSegments.push(``);let position$2=fromSegments.length-1,toPosition,segment;for(toPosition=0;toPosition1&&position$2--;else break;return fromSegments.slice(0,position$2).join(`/`)+`/`+toSegments.slice(toPosition).join(`/`)}const START_LOCATION_NORMALIZED={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(NavigationType$1){NavigationType$1.pop=`pop`,NavigationType$1.push=`push`})(NavigationType||={});var NavigationDirection;(function(NavigationDirection$1){NavigationDirection$1.back=`back`,NavigationDirection$1.forward=`forward`,NavigationDirection$1.unknown=``})(NavigationDirection||={});function normalizeBase(base){if(!base)if(isBrowser$1){let baseEl=document.querySelector(`base`);base=baseEl&&baseEl.getAttribute(`href`)||`/`,base=base.replace(/^\w+:\/\/[^\/]+/,``)}else base=`/`;return base[0]!==`/`&&base[0]!==`#`&&(base=`/`+base),removeTrailingSlash(base)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(base,location$1){return base.replace(BEFORE_HASH_RE,`#`)+location$1}function getElementPosition(el,offset$1){let docRect=document.documentElement.getBoundingClientRect(),elRect=el.getBoundingClientRect();return{behavior:offset$1.behavior,left:elRect.left-docRect.left-(offset$1.left||0),top:elRect.top-docRect.top-(offset$1.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(position$2){let scrollToOptions;if(`el`in position$2){let positionEl=position$2.el,isIdSelector=typeof positionEl==`string`&&positionEl.startsWith(`#`),el=typeof positionEl==`string`?isIdSelector?document.getElementById(positionEl.slice(1)):document.querySelector(positionEl):positionEl;if(!el)return;scrollToOptions=getElementPosition(el,position$2)}else scrollToOptions=position$2;`scrollBehavior`in document.documentElement.style?window.scrollTo(scrollToOptions):window.scrollTo(scrollToOptions.left==null?window.scrollX:scrollToOptions.left,scrollToOptions.top==null?window.scrollY:scrollToOptions.top)}function getScrollKey(path,delta){let position$2=history.state?history.state.position-delta:-1;return position$2+path}const scrollPositions=new Map;function saveScrollPosition(key$1,scrollPosition){scrollPositions.set(key$1,scrollPosition)}function getSavedScrollPosition(key$1){let scroll=scrollPositions.get(key$1);return scrollPositions.delete(key$1),scroll}let createBaseLocation=()=>location.protocol+`//`+location.host;function createCurrentLocation(base,location$1){let{pathname,search:search$1,hash}=location$1,hashPos=base.indexOf(`#`);if(hashPos>-1){let slicePos=hash.includes(base.slice(hashPos))?base.slice(hashPos).length:1,pathFromHash=hash.slice(slicePos);return pathFromHash[0]!==`/`&&(pathFromHash=`/`+pathFromHash),stripBase(pathFromHash,``)}let path=stripBase(pathname,base);return path+search$1+hash}function useHistoryListeners(base,historyState,currentLocation,replace){let listeners=[],teardowns=[],pauseState=null,popStateHandler=({state})=>{let to$1=createCurrentLocation(base,location),from=currentLocation.value,fromState=historyState.value,delta=0;if(state){if(currentLocation.value=to$1,historyState.value=state,pauseState&&pauseState===from){pauseState=null;return}delta=fromState?state.position-fromState.position:0}else replace(to$1);listeners.forEach(listener=>{listener(currentLocation.value,from,{delta,type:NavigationType.pop,direction:delta?delta>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function pauseListeners(){pauseState=currentLocation.value}function listen(callback){listeners.push(callback);let teardown=()=>{let index$1=listeners.indexOf(callback);index$1>-1&&listeners.splice(index$1,1)};return teardowns.push(teardown),teardown}function beforeUnloadListener(){let{history:history$1}=window;history$1.state&&history$1.replaceState(assign$1({},history$1.state,{scroll:computeScrollPosition()}),``)}function destroy(){for(let teardown of teardowns)teardown();teardowns=[],window.removeEventListener(`popstate`,popStateHandler),window.removeEventListener(`beforeunload`,beforeUnloadListener)}return window.addEventListener(`popstate`,popStateHandler),window.addEventListener(`beforeunload`,beforeUnloadListener,{passive:!0}),{pauseListeners,listen,destroy}}function buildState(back,current,forward,replaced=!1,computeScroll=!1){return{back,current,forward,replaced,position:window.history.length,scroll:computeScroll?computeScrollPosition():null}}function useHistoryStateNavigation(base){let{history:history$1,location:location$1}=window,currentLocation={value:createCurrentLocation(base,location$1)},historyState={value:history$1.state};historyState.value||changeLocation(currentLocation.value,{back:null,current:currentLocation.value,forward:null,position:history$1.length-1,replaced:!0,scroll:null},!0);function changeLocation(to$1,state,replace$1){let hashIndex=base.indexOf(`#`),url=hashIndex>-1?(location$1.host&&document.querySelector(`base`)?base:base.slice(hashIndex))+to$1:createBaseLocation()+base+to$1;try{history$1[replace$1?`replaceState`:`pushState`](state,``,url),historyState.value=state}catch(err){console.error(err),location$1[replace$1?`replace`:`assign`](url)}}function replace(to$1,data$10){let state=assign$1({},history$1.state,buildState(historyState.value.back,to$1,historyState.value.forward,!0),data$10,{position:historyState.value.position});changeLocation(to$1,state,!0),currentLocation.value=to$1}function push$1(to$1,data$10){let currentState=assign$1({},historyState.value,history$1.state,{forward:to$1,scroll:computeScrollPosition()});changeLocation(currentState.current,currentState,!0);let state=assign$1({},buildState(currentLocation.value,to$1,null),{position:currentState.position+1},data$10);changeLocation(to$1,state,!1),currentLocation.value=to$1}return{location:currentLocation,state:historyState,push:push$1,replace}}function createWebHistory(base){base=normalizeBase(base);let historyNavigation=useHistoryStateNavigation(base),historyListeners=useHistoryListeners(base,historyNavigation.state,historyNavigation.location,historyNavigation.replace);function go(delta,triggerListeners=!0){triggerListeners||historyListeners.pauseListeners(),history.go(delta)}let routerHistory=assign$1({location:``,base,go,createHref:createHref.bind(null,base)},historyNavigation,historyListeners);return Object.defineProperty(routerHistory,`location`,{enumerable:!0,get:()=>historyNavigation.location.value}),Object.defineProperty(routerHistory,`state`,{enumerable:!0,get:()=>historyNavigation.state.value}),routerHistory}function createWebHashHistory(base){return base=location.host?base||location.pathname+location.search:``,base.includes(`#`)||(base+=`#`),createWebHistory(base)}function isRouteLocation(route){return typeof route==`string`||route&&typeof route==`object`}function isRouteName(name$2){return typeof name$2==`string`||typeof name$2==`symbol`}const NavigationFailureSymbol=Symbol(``);var NavigationFailureType;(function(NavigationFailureType$1){NavigationFailureType$1[NavigationFailureType$1.aborted=4]=`aborted`,NavigationFailureType$1[NavigationFailureType$1.cancelled=8]=`cancelled`,NavigationFailureType$1[NavigationFailureType$1.duplicated=16]=`duplicated`})(NavigationFailureType||={});function createRouterError(type,params){return assign$1(Error(),{type,[NavigationFailureSymbol]:!0},params)}function isNavigationFailure(error,type){return error instanceof Error&&NavigationFailureSymbol in error&&(type==null||!!(error.type&type))}const BASE_PARAM_PATTERN=`[^/]+?`,BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(segments,extraOptions){let options$1=assign$1({},BASE_PATH_PARSER_OPTIONS,extraOptions),score=[],pattern=options$1.start?`^`:``,keys$3=[];for(let segment of segments){let segmentScores=segment.length?[]:[90];options$1.strict&&!segment.length&&(pattern+=`/`);for(let tokenIndex=0;tokenIndexb$3.length?b$3.length===1&&b$3[0]===80?1:-1:0}function comparePathParserScore(a$2,b$3){let i$1=0,aScore=a$2.score,bScore=b$3.score;for(;i$10&&last[last.length-1]<0}const ROOT_TOKEN={type:0,value:``},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(path){if(!path)return[[]];if(path===`/`)return[[ROOT_TOKEN]];if(!path.startsWith(`/`))throw Error(`Invalid path "${path}"`);function crash(message$1){throw Error(`ERR (${state})/"${buffer$1}": ${message$1}`)}let state=0,previousState=state,tokens=[],segment;function finalizeSegment(){segment&&tokens.push(segment),segment=[]}let i$1=0,char,buffer$1=``,customRe=``;function consumeBuffer(){buffer$1&&(state===0?segment.push({type:0,value:buffer$1}):state===1||state===2||state===3?(segment.length>1&&(char===`*`||char===`+`)&&crash(`A repeatable param (${buffer$1}) must be alone in its segment. eg: '/:ids+.`),segment.push({type:1,value:buffer$1,regexp:customRe,repeatable:char===`*`||char===`+`,optional:char===`*`||char===`?`})):crash(`Invalid state to consume buffer`),buffer$1=``)}function addCharToBuffer(){buffer$1+=char}for(;i$1{removeRoute(originalMatcher)}:noop}function removeRoute(matcherRef){if(isRouteName(matcherRef)){let matcher=matcherMap.get(matcherRef);matcher&&(matcherMap.delete(matcherRef),matchers.splice(matchers.indexOf(matcher),1),matcher.children.forEach(removeRoute),matcher.alias.forEach(removeRoute))}else{let index$1=matchers.indexOf(matcherRef);index$1>-1&&(matchers.splice(index$1,1),matcherRef.record.name&&matcherMap.delete(matcherRef.record.name),matcherRef.children.forEach(removeRoute),matcherRef.alias.forEach(removeRoute))}}function getRoutes(){return matchers}function insertMatcher(matcher){let index$1=findInsertionIndex(matcher,matchers);matchers.splice(index$1,0,matcher),matcher.record.name&&!isAliasRecord(matcher)&&matcherMap.set(matcher.record.name,matcher)}function resolve$1(location$1,currentLocation){let matcher,params={},path,name$2;if(`name`in location$1&&location$1.name){if(matcher=matcherMap.get(location$1.name),!matcher)throw createRouterError(1,{location:location$1});name$2=matcher.record.name,params=assign$1(paramsFromLocation(currentLocation.params,matcher.keys.filter(k$4=>!k$4.optional).concat(matcher.parent?matcher.parent.keys.filter(k$4=>k$4.optional):[]).map(k$4=>k$4.name)),location$1.params&¶msFromLocation(location$1.params,matcher.keys.map(k$4=>k$4.name))),path=matcher.stringify(params)}else if(location$1.path!=null)path=location$1.path,matcher=matchers.find(m$2=>m$2.re.test(path)),matcher&&(params=matcher.parse(path),name$2=matcher.record.name);else{if(matcher=currentLocation.name?matcherMap.get(currentLocation.name):matchers.find(m$2=>m$2.re.test(currentLocation.path)),!matcher)throw createRouterError(1,{location:location$1,currentLocation});name$2=matcher.record.name,params=assign$1({},currentLocation.params,location$1.params),path=matcher.stringify(params)}let matched=[],parentMatcher=matcher;for(;parentMatcher;)matched.unshift(parentMatcher.record),parentMatcher=parentMatcher.parent;return{name:name$2,path,params,matched,meta:mergeMetaFields(matched)}}routes$1.forEach(route=>addRoute(route));function clearRoutes(){matchers.length=0,matcherMap.clear()}return{addRoute,resolve:resolve$1,removeRoute,clearRoutes,getRoutes,getRecordMatcher}}function paramsFromLocation(params,keys$3){let newParams={};for(let key$1 of keys$3)key$1 in params&&(newParams[key$1]=params[key$1]);return newParams}function normalizeRouteRecord(record){let normalized={path:record.path,redirect:record.redirect,name:record.name,meta:record.meta||{},aliasOf:record.aliasOf,beforeEnter:record.beforeEnter,props:normalizeRecordProps(record),children:record.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in record?record.components||null:record.component&&{default:record.component}};return Object.defineProperty(normalized,`mods`,{value:{}}),normalized}function normalizeRecordProps(record){let propsObject={},props=record.props||!1;if(`component`in record)propsObject.default=props;else for(let name$2 in record.components)propsObject[name$2]=typeof props==`object`?props[name$2]:props;return propsObject}function isAliasRecord(record){for(;record;){if(record.record.aliasOf)return!0;record=record.parent}return!1}function mergeMetaFields(matched){return matched.reduce((meta,record)=>assign$1(meta,record.meta),{})}function mergeOptions(defaults,partialOptions){let options$1={};for(let key$1 in defaults)options$1[key$1]=key$1 in partialOptions?partialOptions[key$1]:defaults[key$1];return options$1}function findInsertionIndex(matcher,matchers){let lower=0,upper=matchers.length;for(;lower!==upper;){let mid=lower+upper>>1,sortOrder=comparePathParserScore(matcher,matchers[mid]);sortOrder<0?upper=mid:lower=mid+1}let insertionAncestor=getInsertionAncestor(matcher);return insertionAncestor&&(upper=matchers.lastIndexOf(insertionAncestor,upper-1)),upper}function getInsertionAncestor(matcher){let ancestor=matcher;for(;ancestor=ancestor.parent;)if(isMatchable(ancestor)&&comparePathParserScore(matcher,ancestor)===0)return ancestor}function isMatchable({record}){return!!(record.name||record.components&&Object.keys(record.components).length||record.redirect)}function parseQuery(search$1){let query={};if(search$1===``||search$1===`?`)return query;let hasLeadingIM=search$1[0]===`?`,searchParams=(hasLeadingIM?search$1.slice(1):search$1).split(`&`);for(let i$1=0;i$1v$1&&encodeQueryValue(v$1)):[value$1&&encodeQueryValue(value$1)];values.forEach(value$2=>{value$2!==void 0&&(search$1+=(search$1.length?`&`:``)+key$1,value$2!=null&&(search$1+=`=`+value$2))})}return search$1}function normalizeQuery(query){let normalizedQuery={};for(let key$1 in query){let value$1=query[key$1];value$1!==void 0&&(normalizedQuery[key$1]=isArray$3(value$1)?value$1.map(v$1=>v$1==null?null:``+v$1):value$1==null?value$1:``+value$1)}return normalizedQuery}const matchedRouteKey=Symbol(``),viewDepthKey=Symbol(``),routerKey=Symbol(``),routeLocationKey=Symbol(``),routerViewLocationKey=Symbol(``);function useCallbacks(){let handlers$3=[];function add$1(handler){return handlers$3.push(handler),()=>{let i$1=handlers$3.indexOf(handler);i$1>-1&&handlers$3.splice(i$1,1)}}function reset(){handlers$3=[]}return{add:add$1,list:()=>handlers$3.slice(),reset}}function guardToPromiseFn(guard,to$1,from,record,name$2,runWithContext=fn$5=>fn$5()){let enterCallbackArray=record&&(record.enterCallbacks[name$2]=record.enterCallbacks[name$2]||[]);return()=>new Promise((resolve$1,reject)=>{let next=valid$1=>{valid$1===!1?reject(createRouterError(4,{from,to:to$1})):valid$1 instanceof Error?reject(valid$1):isRouteLocation(valid$1)?reject(createRouterError(2,{from:to$1,to:valid$1})):(enterCallbackArray&&record.enterCallbacks[name$2]===enterCallbackArray&&typeof valid$1==`function`&&enterCallbackArray.push(valid$1),resolve$1())},guardReturn=runWithContext(()=>guard.call(record&&record.instances[name$2],to$1,from,next)),guardCall=Promise.resolve(guardReturn);guard.length<3&&(guardCall=guardCall.then(next)),guardCall.catch(err=>reject(err))})}function extractComponentsGuards(matched,guardType,to$1,from,runWithContext=fn$5=>fn$5()){let guards=[];for(let record of matched)for(let name$2 in record.components){let rawComponent=record.components[name$2];if(guardType!==`beforeRouteEnter`&&!record.instances[name$2])continue;if(isRouteComponent(rawComponent)){let options$1=rawComponent.__vccOpts||rawComponent,guard=options$1[guardType];guard&&guards.push(guardToPromiseFn(guard,to$1,from,record,name$2,runWithContext))}else{let componentPromise=rawComponent();guards.push(()=>componentPromise.then(resolved=>{if(!resolved)throw Error(`Couldn't resolve component "${name$2}" at "${record.path}"`);let resolvedComponent=isESModule(resolved)?resolved.default:resolved;record.mods[name$2]=resolved,record.components[name$2]=resolvedComponent;let options$1=resolvedComponent.__vccOpts||resolvedComponent,guard=options$1[guardType];return guard&&guardToPromiseFn(guard,to$1,from,record,name$2,runWithContext)()}))}}return guards}function useLink(props){let router$1=inject(routerKey),currentRoute=inject(routeLocationKey),hasPrevious=!1,previousTo=null,route=computed(()=>{let to$1=unref(props.to);return router$1.resolve(to$1)}),activeRecordIndex=computed(()=>{let{matched}=route.value,{length}=matched,routeMatched=matched[length-1],currentMatched=currentRoute.matched;if(!routeMatched||!currentMatched.length)return-1;let index$1=currentMatched.findIndex(isSameRouteRecord.bind(null,routeMatched));if(index$1>-1)return index$1;let parentRecordPath=getOriginalPath(matched[length-2]);return length>1&&getOriginalPath(routeMatched)===parentRecordPath&¤tMatched[currentMatched.length-1].path!==parentRecordPath?currentMatched.findIndex(isSameRouteRecord.bind(null,matched[length-2])):index$1}),isActive=computed(()=>activeRecordIndex.value>-1&&includesParams(currentRoute.params,route.value.params)),isExactActive=computed(()=>activeRecordIndex.value>-1&&activeRecordIndex.value===currentRoute.matched.length-1&&isSameRouteLocationParams(currentRoute.params,route.value.params));function navigate(e$3={}){if(guardEvent(e$3)){let p$5=router$1[unref(props.replace)?`replace`:`push`](unref(props.to)).catch(noop);return props.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>p$5),p$5}return Promise.resolve()}return{route,href:computed(()=>route.value.href),isActive,isExactActive,navigate}}function preferSingleVNode(vnodes){return vnodes.length===1?vnodes[0]:vnodes}const RouterLinkImpl=defineComponent({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,setup(props,{slots}){let link$1=reactive(useLink(props)),{options:options$1}=inject(routerKey),elClass=computed(()=>({[getLinkClass(props.activeClass,options$1.linkActiveClass,`router-link-active`)]:link$1.isActive,[getLinkClass(props.exactActiveClass,options$1.linkExactActiveClass,`router-link-exact-active`)]:link$1.isExactActive}));return()=>{let children=slots.default&&preferSingleVNode(slots.default(link$1));return props.custom?children:h(`a`,{"aria-current":link$1.isExactActive?props.ariaCurrentValue:null,href:link$1.href,onClick:link$1.navigate,class:elClass.value},children)}}}),RouterLink=RouterLinkImpl;function guardEvent(e$3){if(!(e$3.metaKey||e$3.altKey||e$3.ctrlKey||e$3.shiftKey)&&!e$3.defaultPrevented&&!(e$3.button!==void 0&&e$3.button!==0)){if(e$3.currentTarget&&e$3.currentTarget.getAttribute){let target$1=e$3.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(target$1))return}return e$3.preventDefault&&e$3.preventDefault(),!0}}function includesParams(outer,inner){for(let key$1 in inner){let innerValue=inner[key$1],outerValue=outer[key$1];if(typeof innerValue==`string`){if(innerValue!==outerValue)return!1}else if(!isArray$3(outerValue)||outerValue.length!==innerValue.length||innerValue.some((value$1,i$1)=>value$1!==outerValue[i$1]))return!1}return!0}function getOriginalPath(record){return record?record.aliasOf?record.aliasOf.path:record.path:``}const getLinkClass=(propClass,globalClass,defaultClass)=>propClass??globalClass??defaultClass,RouterViewImpl=defineComponent({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(props,{attrs,slots}){let injectedRoute=inject(routerViewLocationKey),routeToDisplay=computed(()=>props.route||injectedRoute.value),injectedDepth=inject(viewDepthKey,0),depth=computed(()=>{let initialDepth=unref(injectedDepth),{matched}=routeToDisplay.value,matchedRoute;for(;(matchedRoute=matched[initialDepth])&&!matchedRoute.components;)initialDepth++;return initialDepth}),matchedRouteRef=computed(()=>routeToDisplay.value.matched[depth.value]);provide(viewDepthKey,computed(()=>depth.value+1)),provide(matchedRouteKey,matchedRouteRef),provide(routerViewLocationKey,routeToDisplay);let viewRef=ref();return watch(()=>[viewRef.value,matchedRouteRef.value,props.name],([instance,to$1,name$2],[oldInstance,from,oldName])=>{to$1&&(to$1.instances[name$2]=instance,from&&from!==to$1&&instance&&instance===oldInstance&&(to$1.leaveGuards.size||(to$1.leaveGuards=from.leaveGuards),to$1.updateGuards.size||(to$1.updateGuards=from.updateGuards))),instance&&to$1&&(!from||!isSameRouteRecord(to$1,from)||!oldInstance)&&(to$1.enterCallbacks[name$2]||[]).forEach(callback=>callback(instance))},{flush:`post`}),()=>{let route=routeToDisplay.value,currentName=props.name,matchedRoute=matchedRouteRef.value,ViewComponent=matchedRoute&&matchedRoute.components[currentName];if(!ViewComponent)return normalizeSlot(slots.default,{Component:ViewComponent,route});let routePropsOption=matchedRoute.props[currentName],routeProps=routePropsOption?routePropsOption===!0?route.params:typeof routePropsOption==`function`?routePropsOption(route):routePropsOption:null,onVnodeUnmounted=vnode=>{vnode.component.isUnmounted&&(matchedRoute.instances[currentName]=null)},component=h(ViewComponent,assign$1({},routeProps,attrs,{onVnodeUnmounted,ref:viewRef}));return normalizeSlot(slots.default,{Component:component,route})||component}}});function normalizeSlot(slot,data$10){if(!slot)return null;let slotContent=slot(data$10);return slotContent.length===1?slotContent[0]:slotContent}const RouterView=RouterViewImpl;function createRouter(options$1){let matcher=createRouterMatcher(options$1.routes,options$1),parseQuery$1=options$1.parseQuery||parseQuery,stringifyQuery$1=options$1.stringifyQuery||stringifyQuery,routerHistory=options$1.history,beforeGuards=useCallbacks(),beforeResolveGuards=useCallbacks(),afterGuards=useCallbacks(),currentRoute=shallowRef(START_LOCATION_NORMALIZED),pendingLocation=START_LOCATION_NORMALIZED;isBrowser$1&&options$1.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let normalizeParams=applyToParams.bind(null,paramValue=>``+paramValue),encodeParams=applyToParams.bind(null,encodeParam),decodeParams=applyToParams.bind(null,decode$1);function addRoute(parentOrRoute,route){let parent,record;return isRouteName(parentOrRoute)?(parent=matcher.getRecordMatcher(parentOrRoute),record=route):record=parentOrRoute,matcher.addRoute(record,parent)}function removeRoute(name$2){let recordMatcher=matcher.getRecordMatcher(name$2);recordMatcher&&matcher.removeRoute(recordMatcher)}function getRoutes(){return matcher.getRoutes().map(routeMatcher=>routeMatcher.record)}function hasRoute(name$2){return!!matcher.getRecordMatcher(name$2)}function resolve$1(rawLocation,currentLocation){if(currentLocation=assign$1({},currentLocation||currentRoute.value),typeof rawLocation==`string`){let locationNormalized=parseURL(parseQuery$1,rawLocation,currentLocation.path),matchedRoute$1=matcher.resolve({path:locationNormalized.path},currentLocation),href$1=routerHistory.createHref(locationNormalized.fullPath);return assign$1(locationNormalized,matchedRoute$1,{params:decodeParams(matchedRoute$1.params),hash:decode$1(locationNormalized.hash),redirectedFrom:void 0,href:href$1})}let matcherLocation;if(rawLocation.path!=null)matcherLocation=assign$1({},rawLocation,{path:parseURL(parseQuery$1,rawLocation.path,currentLocation.path).path});else{let targetParams=assign$1({},rawLocation.params);for(let key$1 in targetParams)targetParams[key$1]??delete targetParams[key$1];matcherLocation=assign$1({},rawLocation,{params:encodeParams(targetParams)}),currentLocation.params=encodeParams(currentLocation.params)}let matchedRoute=matcher.resolve(matcherLocation,currentLocation),hash=rawLocation.hash||``;matchedRoute.params=normalizeParams(decodeParams(matchedRoute.params));let fullPath=stringifyURL(stringifyQuery$1,assign$1({},rawLocation,{hash:encodeHash(hash),path:matchedRoute.path})),href=routerHistory.createHref(fullPath);return assign$1({fullPath,hash,query:stringifyQuery$1===stringifyQuery?normalizeQuery(rawLocation.query):rawLocation.query||{}},matchedRoute,{redirectedFrom:void 0,href})}function locationAsObject(to$1){return typeof to$1==`string`?parseURL(parseQuery$1,to$1,currentRoute.value.path):assign$1({},to$1)}function checkCanceledNavigation(to$1,from){if(pendingLocation!==to$1)return createRouterError(8,{from,to:to$1})}function push$1(to$1){return pushWithRedirect(to$1)}function replace(to$1){return push$1(assign$1(locationAsObject(to$1),{replace:!0}))}function handleRedirectRecord(to$1){let lastMatched=to$1.matched[to$1.matched.length-1];if(lastMatched&&lastMatched.redirect){let{redirect}=lastMatched,newTargetLocation=typeof redirect==`function`?redirect(to$1):redirect;return typeof newTargetLocation==`string`&&(newTargetLocation=newTargetLocation.includes(`?`)||newTargetLocation.includes(`#`)?newTargetLocation=locationAsObject(newTargetLocation):{path:newTargetLocation},newTargetLocation.params={}),assign$1({query:to$1.query,hash:to$1.hash,params:newTargetLocation.path==null?to$1.params:{}},newTargetLocation)}}function pushWithRedirect(to$1,redirectedFrom){let targetLocation=pendingLocation=resolve$1(to$1),from=currentRoute.value,data$10=to$1.state,force=to$1.force,replace$1=to$1.replace===!0,shouldRedirect=handleRedirectRecord(targetLocation);if(shouldRedirect)return pushWithRedirect(assign$1(locationAsObject(shouldRedirect),{state:typeof shouldRedirect==`object`?assign$1({},data$10,shouldRedirect.state):data$10,force,replace:replace$1}),redirectedFrom||targetLocation);let toLocation=targetLocation;toLocation.redirectedFrom=redirectedFrom;let failure;return!force&&isSameRouteLocation(stringifyQuery$1,from,targetLocation)&&(failure=createRouterError(16,{to:toLocation,from}),handleScroll(from,from,!0,!1)),(failure?Promise.resolve(failure):navigate(toLocation,from)).catch(error=>isNavigationFailure(error)?isNavigationFailure(error,2)?error:markAsReady(error):triggerError(error,toLocation,from)).then(failure$1=>{if(failure$1){if(isNavigationFailure(failure$1,2))return pushWithRedirect(assign$1({replace:replace$1},locationAsObject(failure$1.to),{state:typeof failure$1.to==`object`?assign$1({},data$10,failure$1.to.state):data$10,force}),redirectedFrom||toLocation)}else failure$1=finalizeNavigation(toLocation,from,!0,replace$1,data$10);return triggerAfterEach(toLocation,from,failure$1),failure$1})}function checkCanceledNavigationAndReject(to$1,from){let error=checkCanceledNavigation(to$1,from);return error?Promise.reject(error):Promise.resolve()}function runWithContext(fn$5){let app=installedApps.values().next().value;return app&&typeof app.runWithContext==`function`?app.runWithContext(fn$5):fn$5()}function navigate(to$1,from){let guards,[leavingRecords,updatingRecords,enteringRecords]=extractChangingRecords(to$1,from);guards=extractComponentsGuards(leavingRecords.reverse(),`beforeRouteLeave`,to$1,from);for(let record of leavingRecords)record.leaveGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to$1,from))});let canceledNavigationCheck=checkCanceledNavigationAndReject.bind(null,to$1,from);return guards.push(canceledNavigationCheck),runGuardQueue(guards).then(()=>{guards=[];for(let guard of beforeGuards.list())guards.push(guardToPromiseFn(guard,to$1,from));return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).then(()=>{guards=extractComponentsGuards(updatingRecords,`beforeRouteUpdate`,to$1,from);for(let record of updatingRecords)record.updateGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to$1,from))});return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).then(()=>{guards=[];for(let record of enteringRecords)if(record.beforeEnter)if(isArray$3(record.beforeEnter))for(let beforeEnter of record.beforeEnter)guards.push(guardToPromiseFn(beforeEnter,to$1,from));else guards.push(guardToPromiseFn(record.beforeEnter,to$1,from));return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).then(()=>(to$1.matched.forEach(record=>record.enterCallbacks={}),guards=extractComponentsGuards(enteringRecords,`beforeRouteEnter`,to$1,from,runWithContext),guards.push(canceledNavigationCheck),runGuardQueue(guards))).then(()=>{guards=[];for(let guard of beforeResolveGuards.list())guards.push(guardToPromiseFn(guard,to$1,from));return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).catch(err=>isNavigationFailure(err,8)?err:Promise.reject(err))}function triggerAfterEach(to$1,from,failure){afterGuards.list().forEach(guard=>runWithContext(()=>guard(to$1,from,failure)))}function finalizeNavigation(toLocation,from,isPush,replace$1,data$10){let error=checkCanceledNavigation(toLocation,from);if(error)return error;let isFirstNavigation=from===START_LOCATION_NORMALIZED,state=isBrowser$1?history.state:{};isPush&&(replace$1||isFirstNavigation?routerHistory.replace(toLocation.fullPath,assign$1({scroll:isFirstNavigation&&state&&state.scroll},data$10)):routerHistory.push(toLocation.fullPath,data$10)),currentRoute.value=toLocation,handleScroll(toLocation,from,isPush,isFirstNavigation),markAsReady()}let removeHistoryListener;function setupListeners(){removeHistoryListener||=routerHistory.listen((to$1,_from,info)=>{if(!router$1.listening)return;let toLocation=resolve$1(to$1),shouldRedirect=handleRedirectRecord(toLocation);if(shouldRedirect){pushWithRedirect(assign$1(shouldRedirect,{replace:!0,force:!0}),toLocation).catch(noop);return}pendingLocation=toLocation;let from=currentRoute.value;isBrowser$1&&saveScrollPosition(getScrollKey(from.fullPath,info.delta),computeScrollPosition()),navigate(toLocation,from).catch(error=>isNavigationFailure(error,12)?error:isNavigationFailure(error,2)?(pushWithRedirect(assign$1(locationAsObject(error.to),{force:!0}),toLocation).then(failure=>{isNavigationFailure(failure,20)&&!info.delta&&info.type===NavigationType.pop&&routerHistory.go(-1,!1)}).catch(noop),Promise.reject()):(info.delta&&routerHistory.go(-info.delta,!1),triggerError(error,toLocation,from))).then(failure=>{failure||=finalizeNavigation(toLocation,from,!1),failure&&(info.delta&&!isNavigationFailure(failure,8)?routerHistory.go(-info.delta,!1):info.type===NavigationType.pop&&isNavigationFailure(failure,20)&&routerHistory.go(-1,!1)),triggerAfterEach(toLocation,from,failure)}).catch(noop)})}let readyHandlers=useCallbacks(),errorListeners=useCallbacks(),ready;function triggerError(error,to$1,from){markAsReady(error);let list$2=errorListeners.list();return list$2.length?list$2.forEach(handler=>handler(error,to$1,from)):console.error(error),Promise.reject(error)}function isReady(){return ready&¤tRoute.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((resolve$2,reject)=>{readyHandlers.add([resolve$2,reject])})}function markAsReady(err){return ready||(ready=!err,setupListeners(),readyHandlers.list().forEach(([resolve$2,reject])=>err?reject(err):resolve$2()),readyHandlers.reset()),err}function handleScroll(to$1,from,isPush,isFirstNavigation){let{scrollBehavior}=options$1;if(!isBrowser$1||!scrollBehavior)return Promise.resolve();let scrollPosition=!isPush&&getSavedScrollPosition(getScrollKey(to$1.fullPath,0))||(isFirstNavigation||!isPush)&&history.state&&history.state.scroll||null;return nextTick().then(()=>scrollBehavior(to$1,from,scrollPosition)).then(position$2=>position$2&&scrollToPosition(position$2)).catch(err=>triggerError(err,to$1,from))}let go=delta=>routerHistory.go(delta),started,installedApps=new Set,router$1={currentRoute,listening:!0,addRoute,removeRoute,clearRoutes:matcher.clearRoutes,hasRoute,getRoutes,resolve:resolve$1,options:options$1,push:push$1,replace,go,back:()=>go(-1),forward:()=>go(1),beforeEach:beforeGuards.add,beforeResolve:beforeResolveGuards.add,afterEach:afterGuards.add,onError:errorListeners.add,isReady,install(app){let router$2=this;app.component(`RouterLink`,RouterLink),app.component(`RouterView`,RouterView),app.config.globalProperties.$router=router$2,Object.defineProperty(app.config.globalProperties,`$route`,{enumerable:!0,get:()=>unref(currentRoute)}),isBrowser$1&&!started&¤tRoute.value===START_LOCATION_NORMALIZED&&(started=!0,push$1(routerHistory.location).catch(err=>{}));let reactiveRoute={};for(let key$1 in START_LOCATION_NORMALIZED)Object.defineProperty(reactiveRoute,key$1,{get:()=>currentRoute.value[key$1],enumerable:!0});app.provide(routerKey,router$2),app.provide(routeLocationKey,shallowReactive(reactiveRoute)),app.provide(routerViewLocationKey,currentRoute);let unmountApp=app.unmount;installedApps.add(app),app.unmount=function(){installedApps.delete(app),installedApps.size<1&&(pendingLocation=START_LOCATION_NORMALIZED,removeHistoryListener&&removeHistoryListener(),removeHistoryListener=null,currentRoute.value=START_LOCATION_NORMALIZED,started=!1,ready=!1),unmountApp()}}};function runGuardQueue(guards){return guards.reduce((promise,guard)=>promise.then(()=>runWithContext(guard)),Promise.resolve())}return router$1}function extractChangingRecords(to$1,from){let leavingRecords=[],updatingRecords=[],enteringRecords=[],len=Math.max(from.matched.length,to$1.matched.length);for(let i$1=0;i$1isSameRouteRecord(record,recordFrom))?updatingRecords.push(recordFrom):leavingRecords.push(recordFrom));let recordTo=to$1.matched[i$1];recordTo&&(from.matched.find(record=>isSameRouteRecord(record,recordTo))||enteringRecords.push(recordTo))}return[leavingRecords,updatingRecords,enteringRecords]}function useRouter(){return inject(routerKey)}function useRoute(_name){return inject(routeLocationKey)}const routes=[{path:`/`,name:`/`,component:()=>__vitePreload(()=>import(`./pages-BxzHyUxX.js`),__vite__mapDeps([4,5,1,2,6,7,8,9,10,11])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}},{path:`/:all(.*)`,name:`/[...all]`,component:()=>__vitePreload(()=>import(`./_...all_-C9auE9ag.js`),[])},{path:`/audio`,name:`/audio`,component:()=>__vitePreload(()=>import(`./audio-jEsbv24W.js`),[])},{path:`/devtools`,children:[{path:`audio-record`,name:`/devtools/audio-record`,component:()=>__vitePreload(()=>import(`./audio-record-DhsmVZ7n.js`),[])},{path:`background-remove`,name:`/devtools/background-remove`,component:()=>__vitePreload(()=>import(`./background-remove-Dg22U2A0.js`),__vite__mapDeps([12,13,14]))},{path:`chat`,name:`/devtools/chat`,component:()=>__vitePreload(()=>import(`./chat-DRs1BdUm.js`),[])},{path:`gesture-circle`,name:`/devtools/gesture-circle`,component:()=>__vitePreload(()=>import(`./gesture-circle-B7owgJTt.js`),__vite__mapDeps([15,5])),meta:{layout:`plain`}},{path:`image`,name:`/devtools/image`,component:()=>__vitePreload(()=>import(`./image-C0gexLey.js`),__vite__mapDeps([16,17]))},{path:`polaroid`,name:`/devtools/polaroid`,component:()=>__vitePreload(()=>import(`./polaroid-o7t1kfW1.js`),__vite__mapDeps([18,9,10,11]))},{path:`vibrant`,name:`/devtools/vibrant`,component:()=>__vitePreload(()=>import(`./vibrant-Yy0Aq07d.js`),__vite__mapDeps([19,20,14]))}]},{path:`/queue`,name:`/queue`,component:()=>__vitePreload(()=>import(`./queue-D2GbAcmy.js`),[])},{path:`/settings`,children:[{path:``,name:`/settings/`,component:()=>__vitePreload(()=>import(`./settings-C52F13cz.js`),__vite__mapDeps([21,5,22])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`airi-card`,children:[{path:``,name:`/settings/airi-card/`,component:()=>__vitePreload(()=>import(`./airi-card-Cq1KvPR6.js`),__vite__mapDeps([23,5,24,25,26,27,28,29,30,14])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`components`,children:[{path:`CardCreate`,name:`/settings/airi-card/components/CardCreate`,component:()=>__vitePreload(()=>import(`./CardCreate-BTJxDbUa.js`),__vite__mapDeps([31,24]))},{path:`CardCreationDialog`,name:`/settings/airi-card/components/CardCreationDialog`,component:()=>__vitePreload(()=>import(`./CardCreationDialog-tFZ-suF6.js`),__vite__mapDeps([32,25,26,27]))},{path:`CardDetailDialog`,name:`/settings/airi-card/components/CardDetailDialog`,component:()=>__vitePreload(()=>import(`./CardDetailDialog-CMawK2d5.js`),__vite__mapDeps([33,28,29,26]))},{path:`CardListItem`,name:`/settings/airi-card/components/CardListItem`,component:()=>__vitePreload(()=>import(`./CardListItem-CX1YhwU5.js`),__vite__mapDeps([34,30]))},{path:`DeleteCardDialog`,name:`/settings/airi-card/components/DeleteCardDialog`,component:()=>__vitePreload(()=>import(`./DeleteCardDialog-DlOw911D.js`),__vite__mapDeps([35,29,26]))}]}]},{path:`appearance`,children:[{path:``,name:`/settings/appearance/`,component:()=>__vitePreload(()=>import(`./appearance-DAKX2aiN.js`),__vite__mapDeps([36,5])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`color-scheme`,name:`/settings/appearance/color-scheme`,component:()=>__vitePreload(()=>import(`./color-scheme-C0RXcpWc.js`),__vite__mapDeps([37,5,38,26,39])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`developer`,name:`/settings/appearance/developer`,component:()=>__vitePreload(()=>import(`./developer-Bru_GAJj.js`),__vite__mapDeps([40,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`general`,name:`/settings/appearance/general`,component:()=>__vitePreload(()=>import(`./general-BXJrx6sY.js`),__vite__mapDeps([41,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`memory`,children:[{path:``,name:`/settings/memory/`,component:()=>__vitePreload(()=>import(`./memory-iAJK3z1U.js`),__vite__mapDeps([42,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`models`,children:[{path:``,name:`/settings/models/`,component:()=>__vitePreload(()=>import(`./models-ASp2XmSL.js`),__vite__mapDeps([43,5,22,38,26,44,9,10,11,20,45])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]},{path:`modules`,children:[{path:``,name:`/settings/modules/`,component:()=>__vitePreload(()=>import(`./modules-BhV9g4Py.js`),__vite__mapDeps([46,5,22,44])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`consciousness`,name:`/settings/modules/consciousness`,component:()=>__vitePreload(()=>import(`./consciousness-C1NFF9FB.js`),__vite__mapDeps([47,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`hearing`,name:`/settings/modules/hearing`,component:()=>__vitePreload(()=>import(`./hearing-D9BWMp_9.js`),__vite__mapDeps([48,5,13])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-long-term`,name:`/settings/modules/memory-long-term`,component:()=>__vitePreload(()=>import(`./memory-long-term-Bu5ixdIq.js`),__vite__mapDeps([49,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-short-term`,name:`/settings/modules/memory-short-term`,component:()=>__vitePreload(()=>import(`./memory-short-term-Bu3lNcVG.js`),__vite__mapDeps([50,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`speech`,name:`/settings/modules/speech`,component:()=>__vitePreload(()=>import(`./speech-BN_3U8Ip.js`),__vite__mapDeps([51,5,7,52])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`providers`,children:[{path:``,name:`/settings/providers/`,component:()=>__vitePreload(()=>import(`./providers-DcD3geRY.js`),__vite__mapDeps([53,5,22,44])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`alibaba-cloud-model-studio`,name:`/settings/providers/alibaba-cloud-model-studio`,component:()=>__vitePreload(()=>import(`./alibaba-cloud-model-studio-Db-MOtVa.js`),__vite__mapDeps([54,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`anthropic`,name:`/settings/providers/anthropic`,component:()=>__vitePreload(()=>import(`./anthropic-BtJ5gSRl.js`),__vite__mapDeps([55,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`cloudflare-workers-ai`,name:`/settings/providers/cloudflare-workers-ai`,component:()=>__vitePreload(()=>import(`./cloudflare-workers-ai-CGpUoWxl.js`),__vite__mapDeps([56,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`deepseek`,name:`/settings/providers/deepseek`,component:()=>__vitePreload(()=>import(`./deepseek-DybRLjlw.js`),__vite__mapDeps([57,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`elevenlabs`,name:`/settings/providers/elevenlabs`,component:()=>__vitePreload(()=>import(`./elevenlabs-Dn_js3QH.js`),__vite__mapDeps([58,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`featherless-ai`,name:`/settings/providers/featherless-ai`,component:()=>__vitePreload(()=>import(`./featherless-ai-C8B7oLSw.js`),__vite__mapDeps([59,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`fireworks-ai`,name:`/settings/providers/fireworks-ai`,component:()=>__vitePreload(()=>import(`./fireworks-ai-Lz68hytB.js`),__vite__mapDeps([60,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`google-generative-ai`,name:`/settings/providers/google-generative-ai`,component:()=>__vitePreload(()=>import(`./google-generative-ai-Illmbd4Q.js`),__vite__mapDeps([61,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`microsoft-speech`,name:`/settings/providers/microsoft-speech`,component:()=>__vitePreload(()=>import(`./microsoft-speech-D706G4ZN.js`),__vite__mapDeps([62,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`mistral-ai`,name:`/settings/providers/mistral-ai`,component:()=>__vitePreload(()=>import(`./mistral-ai-DR6LajT7.js`),__vite__mapDeps([63,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`moonshot-ai`,name:`/settings/providers/moonshot-ai`,component:()=>__vitePreload(()=>import(`./moonshot-ai-CW9PC7OE.js`),__vite__mapDeps([64,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`novita-ai`,name:`/settings/providers/novita-ai`,component:()=>__vitePreload(()=>import(`./novita-ai-L_HGMG0y.js`),__vite__mapDeps([65,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`ollama`,name:`/settings/providers/ollama`,component:()=>__vitePreload(()=>import(`./ollama-6p5KD4E8.js`),__vite__mapDeps([66,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai`,name:`/settings/providers/openai`,component:()=>__vitePreload(()=>import(`./openai-CPclLmM4.js`),__vite__mapDeps([67,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-speech`,name:`/settings/providers/openai-audio-speech`,component:()=>__vitePreload(()=>import(`./openai-audio-speech-DPa2LzMP.js`),__vite__mapDeps([68,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-transcription`,name:`/settings/providers/openai-audio-transcription`,component:()=>__vitePreload(()=>import(`./openai-audio-transcription-CtpPb_sH.js`),__vite__mapDeps([69,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openrouter-ai`,name:`/settings/providers/openrouter-ai`,component:()=>__vitePreload(()=>import(`./openrouter-ai-Dh0T_owf.js`),__vite__mapDeps([70,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2`,name:`/settings/providers/player2`,component:()=>__vitePreload(()=>import(`./player2-5lgdBGK0.js`),__vite__mapDeps([71,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2-speech`,name:`/settings/providers/player2-speech`,component:()=>__vitePreload(()=>import(`./player2-speech-DKo80HA-.js`),__vite__mapDeps([72,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`together-ai`,name:`/settings/providers/together-ai`,component:()=>__vitePreload(()=>import(`./together-ai-u2udRYui.js`),__vite__mapDeps([73,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`volcengine`,name:`/settings/providers/volcengine`,component:()=>__vitePreload(()=>import(`./volcengine-BQAYMb7Z.js`),__vite__mapDeps([74,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`xai`,name:`/settings/providers/xai`,component:()=>__vitePreload(()=>import(`./xai-9v9Zeav4.js`),__vite__mapDeps([75,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`scene`,children:[{path:``,name:`/settings/scene/`,component:()=>__vitePreload(()=>import(`./scene-B5jmLrrn.js`),__vite__mapDeps([76,5,22,44])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]}]},{path:`/stage`,children:[{path:``,name:`/stage/`,component:()=>__vitePreload(()=>import(`./stage-YpeihAa8.js`),__vite__mapDeps([77,5,1,2,6,7,8,9,10,11])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}}]},{path:`/test`,children:[{path:`filter-message`,name:`/test/filter-message`,component:()=>__vitePreload(()=>import(`./filter-message-BYIiopdJ.js`),__vite__mapDeps([78,7,52]))},{path:`queues`,children:[{path:`delays`,name:`/test/queues/delays`,component:()=>__vitePreload(()=>import(`./delays-D0IW07bA.js`),__vite__mapDeps([79,7,52]))},{path:`emotions`,name:`/test/queues/emotions`,component:()=>__vitePreload(()=>import(`./emotions-BBR1pGN_.js`),__vite__mapDeps([80,7,52]))},{path:`messages`,name:`/test/queues/messages`,component:()=>__vitePreload(()=>import(`./messages-BuYm6ihz.js`),__vite__mapDeps([81,7,52]))}]}]}],sides=[`top`,`right`,`bottom`,`left`],alignments=[`start`,`end`],placements=sides.reduce((acc,side)=>acc.concat(side,side+`-`+alignments[0],side+`-`+alignments[1]),[]),min=Math.min,max=Math.max,round$1=Math.round,floor=Math.floor,createCoords=v$1=>({x:v$1,y:v$1}),oppositeSideMap={left:`right`,right:`left`,bottom:`top`,top:`bottom`},oppositeAlignmentMap={start:`end`,end:`start`};function clamp$1(start,value$1,end){return max(start,min(value$1,end))}function evaluate(value$1,param){return typeof value$1==`function`?value$1(param):value$1}function getSide(placement){return placement.split(`-`)[0]}function getAlignment(placement){return placement.split(`-`)[1]}function getOppositeAxis(axis){return axis===`x`?`y`:`x`}function getAxisLength(axis){return axis===`y`?`height`:`width`}function getSideAxis(placement){return[`top`,`bottom`].includes(getSide(placement))?`y`:`x`}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement))}function getAlignmentSides(placement,rects,rtl){rtl===void 0&&(rtl=!1);let alignment=getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis),mainAlignmentSide=alignmentAxis===`x`?alignment===(rtl?`end`:`start`)?`right`:`left`:alignment===`start`?`bottom`:`top`;return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}function getExpandedPlacements(placement){let oppositePlacement=getOppositePlacement(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)]}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,alignment=>oppositeAlignmentMap[alignment])}function getSideList(side,isStart,rtl){let lr=[`left`,`right`],rl=[`right`,`left`],tb=[`top`,`bottom`],bt$2=[`bottom`,`top`];switch(side){case`top`:case`bottom`:return rtl?isStart?rl:lr:isStart?lr:rl;case`left`:case`right`:return isStart?tb:bt$2;default:return[]}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){let alignment=getAlignment(placement),list$2=getSideList(getSide(placement),direction===`start`,rtl);return alignment&&(list$2=list$2.map(side=>side+`-`+alignment),flipAlignment&&(list$2=list$2.concat(list$2.map(getOppositeAlignmentPlacement)))),list$2}function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,side=>oppositeSideMap[side])}function expandPaddingObject(padding){return{top:0,right:0,bottom:0,left:0,...padding}}function getPaddingObject(padding){return typeof padding==`number`?{top:padding,right:padding,bottom:padding,left:padding}:expandPaddingObject(padding)}function rectToClientRect(rect){let{x:x$3,y:y$2,width,height}=rect;return{width,height,top:y$2,left:x$3,right:x$3+width,bottom:y$2+height,x:x$3,y:y$2}}function computeCoordsFromPlacement(_ref,placement,rtl){let{reference,floating}=_ref,sideAxis=getSideAxis(placement),alignmentAxis=getAlignmentAxis(placement),alignLength=getAxisLength(alignmentAxis),side=getSide(placement),isVertical=sideAxis===`y`,commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2,coords$1;switch(side){case`top`:coords$1={x:commonX,y:reference.y-floating.height};break;case`bottom`:coords$1={x:commonX,y:reference.y+reference.height};break;case`right`:coords$1={x:reference.x+reference.width,y:commonY};break;case`left`:coords$1={x:reference.x-floating.width,y:commonY};break;default:coords$1={x:reference.x,y:reference.y}}switch(getAlignment(placement)){case`start`:coords$1[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case`end`:coords$1[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break}return coords$1}const computePosition=async(reference,floating,config)=>{let{placement=`bottom`,strategy=`absolute`,middleware=[],platform}=config,validMiddleware=middleware.filter(Boolean),rtl=await(platform.isRTL==null?void 0:platform.isRTL(floating)),rects=await platform.getElementRects({reference,floating,strategy}),{x:x$3,y:y$2}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,middlewareData={},resetCount=0;for(let i$1=0;i$1({name:`arrow`,options:options$1,async fn(state){let{x:x$3,y:y$2,placement,rects,platform,elements,middlewareData}=state,{element:element$3,padding=0}=evaluate(options$1,state)||{};if(element$3==null)return{};let paddingObject=getPaddingObject(padding),coords$1={x:x$3,y:y$2},axis=getAlignmentAxis(placement),length=getAxisLength(axis),arrowDimensions=await platform.getDimensions(element$3),isYAxis=axis===`y`,minProp=isYAxis?`top`:`left`,maxProp=isYAxis?`bottom`:`right`,clientProp=isYAxis?`clientHeight`:`clientWidth`,endDiff=rects.reference[length]+rects.reference[axis]-coords$1[axis]-rects.floating[length],startDiff=coords$1[axis]-rects.reference[axis],arrowOffsetParent=await(platform.getOffsetParent==null?void 0:platform.getOffsetParent(element$3)),clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;(!clientSize||!await(platform.isElement==null?void 0:platform.isElement(arrowOffsetParent)))&&(clientSize=elements.floating[clientProp]||rects.floating[length]);let centerToReference=endDiff/2-startDiff/2,largestPossiblePadding=clientSize/2-arrowDimensions[length]/2-1,minPadding=min(paddingObject[minProp],largestPossiblePadding),maxPadding=min(paddingObject[maxProp],largestPossiblePadding),min$1=minPadding,max$1=clientSize-arrowDimensions[length]-maxPadding,center=clientSize/2-arrowDimensions[length]/2+centerToReference,offset$1=clamp$1(min$1,center,max$1),shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset$1&&rects.reference[length]/2-(centergetAlignment(placement)===alignment),...allowedPlacements.filter(placement=>getAlignment(placement)!==alignment)]:allowedPlacements.filter(placement=>getSide(placement)===placement);return allowedPlacementsSortedByAlignment.filter(placement=>alignment?getAlignment(placement)===alignment||(autoAlignment?getOppositeAlignmentPlacement(placement)!==placement:!1):!0)}const autoPlacement=function(options$1){return options$1===void 0&&(options$1={}),{name:`autoPlacement`,options:options$1,async fn(state){var _middlewareData$autoP,_middlewareData$autoP2,_placementsThatFitOnE;let{rects,middlewareData,placement,platform,elements}=state,{crossAxis=!1,alignment,allowedPlacements=placements,autoAlignment=!0,...detectOverflowOptions}=evaluate(options$1,state),placements$1=alignment!==void 0||allowedPlacements===placements?getPlacementList(alignment||null,autoAlignment,allowedPlacements):allowedPlacements,overflow=await detectOverflow(state,detectOverflowOptions),currentIndex=(_middlewareData$autoP=middlewareData.autoPlacement)?.index||0,currentPlacement=placements$1[currentIndex];if(currentPlacement==null)return{};let alignmentSides=getAlignmentSides(currentPlacement,rects,await(platform.isRTL==null?void 0:platform.isRTL(elements.floating)));if(placement!==currentPlacement)return{reset:{placement:placements$1[0]}};let currentOverflows=[overflow[getSide(currentPlacement)],overflow[alignmentSides[0]],overflow[alignmentSides[1]]],allOverflows=[...(_middlewareData$autoP2=middlewareData.autoPlacement)?.overflows||[],{placement:currentPlacement,overflows:currentOverflows}],nextPlacement=placements$1[currentIndex+1];if(nextPlacement)return{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:nextPlacement}};let placementsSortedByMostSpace=allOverflows.map(d$2=>{let alignment$1=getAlignment(d$2.placement);return[d$2.placement,alignment$1&&crossAxis?d$2.overflows.slice(0,2).reduce((acc,v$1)=>acc+v$1,0):d$2.overflows[0],d$2.overflows]}).sort((a$2,b$3)=>a$2[1]-b$3[1]),placementsThatFitOnEachSide=placementsSortedByMostSpace.filter(d$2=>d$2[2].slice(0,getAlignment(d$2[0])?2:3).every(v$1=>v$1<=0)),resetPlacement=(_placementsThatFitOnE=placementsThatFitOnEachSide[0])?.[0]||placementsSortedByMostSpace[0][0];return resetPlacement===placement?{}:{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:resetPlacement}}}}},flip=function(options$1){return options$1===void 0&&(options$1={}),{name:`flip`,options:options$1,async fn(state){var _middlewareData$arrow,_middlewareData$flip;let{placement,middlewareData,rects,initialPlacement,platform,elements}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0,fallbackPlacements:specifiedFallbackPlacements,fallbackStrategy=`bestFit`,fallbackAxisSideDirection=`none`,flipAlignment=!0,...detectOverflowOptions}=evaluate(options$1,state);if((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)return{};let side=getSide(placement),initialSideAxis=getSideAxis(initialPlacement),isBasePlacement=getSide(initialPlacement)===initialPlacement,rtl=await(platform.isRTL==null?void 0:platform.isRTL(elements.floating)),fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement(initialPlacement)]:getExpandedPlacements(initialPlacement)),hasFallbackAxisSideDirection=fallbackAxisSideDirection!==`none`;!specifiedFallbackPlacements&&hasFallbackAxisSideDirection&&fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl));let placements$1=[initialPlacement,...fallbackPlacements],overflow=await detectOverflow(state,detectOverflowOptions),overflows=[],overflowsData=(_middlewareData$flip=middlewareData.flip)?.overflows||[];if(checkMainAxis&&overflows.push(overflow[side]),checkCrossAxis){let sides$1=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides$1[0]],overflow[sides$1[1]])}if(overflowsData=[...overflowsData,{placement,overflows}],!overflows.every(side$1=>side$1<=0)){var _middlewareData$flip2,_overflowsData$filter;let nextIndex=((_middlewareData$flip2=middlewareData.flip)?.index||0)+1,nextPlacement=placements$1[nextIndex];if(nextPlacement)return{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}};let resetPlacement=(_overflowsData$filter=overflowsData.filter(d$2=>d$2.overflows[0]<=0).sort((a$2,b$3)=>a$2.overflows[1]-b$3.overflows[1])[0])?.placement;if(!resetPlacement)switch(fallbackStrategy){case`bestFit`:{var _overflowsData$filter2;let placement$1=(_overflowsData$filter2=overflowsData.filter(d$2=>{if(hasFallbackAxisSideDirection){let currentSideAxis=getSideAxis(d$2.placement);return currentSideAxis===initialSideAxis||currentSideAxis===`y`}return!0}).map(d$2=>[d$2.placement,d$2.overflows.filter(overflow$1=>overflow$1>0).reduce((acc,overflow$1)=>acc+overflow$1,0)]).sort((a$2,b$3)=>a$2[1]-b$3[1])[0])?.[0];placement$1&&(resetPlacement=placement$1);break}case`initialPlacement`:resetPlacement=initialPlacement;break}if(placement!==resetPlacement)return{reset:{placement:resetPlacement}}}return{}}}};function getSideOffsets(overflow,rect){return{top:overflow.top-rect.height,right:overflow.right-rect.width,bottom:overflow.bottom-rect.height,left:overflow.left-rect.width}}function isAnySideFullyClipped(overflow){return sides.some(side=>overflow[side]>=0)}const hide=function(options$1){return options$1===void 0&&(options$1={}),{name:`hide`,options:options$1,async fn(state){let{rects}=state,{strategy=`referenceHidden`,...detectOverflowOptions}=evaluate(options$1,state);switch(strategy){case`referenceHidden`:{let overflow=await detectOverflow(state,{...detectOverflowOptions,elementContext:`reference`}),offsets=getSideOffsets(overflow,rects.reference);return{data:{referenceHiddenOffsets:offsets,referenceHidden:isAnySideFullyClipped(offsets)}}}case`escaped`:{let overflow=await detectOverflow(state,{...detectOverflowOptions,altBoundary:!0}),offsets=getSideOffsets(overflow,rects.floating);return{data:{escapedOffsets:offsets,escaped:isAnySideFullyClipped(offsets)}}}default:return{}}}}};async function convertValueToCoords(state,options$1){let{placement,platform,elements}=state,rtl=await(platform.isRTL==null?void 0:platform.isRTL(elements.floating)),side=getSide(placement),alignment=getAlignment(placement),isVertical=getSideAxis(placement)===`y`,mainAxisMulti=[`left`,`top`].includes(side)?-1:1,crossAxisMulti=rtl&&isVertical?-1:1,rawValue=evaluate(options$1,state),{mainAxis,crossAxis,alignmentAxis}=typeof rawValue==`number`?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:rawValue.mainAxis||0,crossAxis:rawValue.crossAxis||0,alignmentAxis:rawValue.alignmentAxis};return alignment&&typeof alignmentAxis==`number`&&(crossAxis=alignment===`end`?alignmentAxis*-1:alignmentAxis),isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}const offset=function(options$1){return options$1===void 0&&(options$1=0),{name:`offset`,options:options$1,async fn(state){var _middlewareData$offse,_middlewareData$arrow;let{x:x$3,y:y$2,placement,middlewareData}=state,diffCoords=await convertValueToCoords(state,options$1);return placement===(_middlewareData$offse=middlewareData.offset)?.placement&&(_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset?{}:{x:x$3+diffCoords.x,y:y$2+diffCoords.y,data:{...diffCoords,placement}}}}},shift=function(options$1){return options$1===void 0&&(options$1={}),{name:`shift`,options:options$1,async fn(state){let{x:x$3,y:y$2,placement}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!1,limiter={fn:_ref=>{let{x:x$4,y:y$3}=_ref;return{x:x$4,y:y$3}}},...detectOverflowOptions}=evaluate(options$1,state),coords$1={x:x$3,y:y$2},overflow=await detectOverflow(state,detectOverflowOptions),crossAxis=getSideAxis(getSide(placement)),mainAxis=getOppositeAxis(crossAxis),mainAxisCoord=coords$1[mainAxis],crossAxisCoord=coords$1[crossAxis];if(checkMainAxis){let minSide=mainAxis===`y`?`top`:`left`,maxSide=mainAxis===`y`?`bottom`:`right`,min$1=mainAxisCoord+overflow[minSide],max$1=mainAxisCoord-overflow[maxSide];mainAxisCoord=clamp$1(min$1,mainAxisCoord,max$1)}if(checkCrossAxis){let minSide=crossAxis===`y`?`top`:`left`,maxSide=crossAxis===`y`?`bottom`:`right`,min$1=crossAxisCoord+overflow[minSide],max$1=crossAxisCoord-overflow[maxSide];crossAxisCoord=clamp$1(min$1,crossAxisCoord,max$1)}let limitedCoords=limiter.fn({...state,[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord});return{...limitedCoords,data:{x:limitedCoords.x-x$3,y:limitedCoords.y-y$2,enabled:{[mainAxis]:checkMainAxis,[crossAxis]:checkCrossAxis}}}}}},limitShift=function(options$1){return options$1===void 0&&(options$1={}),{options:options$1,fn(state){let{x:x$3,y:y$2,placement,rects,middlewareData}=state,{offset:offset$1=0,mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0}=evaluate(options$1,state),coords$1={x:x$3,y:y$2},crossAxis=getSideAxis(placement),mainAxis=getOppositeAxis(crossAxis),mainAxisCoord=coords$1[mainAxis],crossAxisCoord=coords$1[crossAxis],rawOffset=evaluate(offset$1,state),computedOffset=typeof rawOffset==`number`?{mainAxis:rawOffset,crossAxis:0}:{mainAxis:0,crossAxis:0,...rawOffset};if(checkMainAxis){let len=mainAxis===`y`?`height`:`width`,limitMin=rects.reference[mainAxis]-rects.floating[len]+computedOffset.mainAxis,limitMax=rects.reference[mainAxis]+rects.reference[len]-computedOffset.mainAxis;mainAxisCoordlimitMax&&(mainAxisCoord=limitMax)}if(checkCrossAxis){var _middlewareData$offse,_middlewareData$offse2;let len=mainAxis===`y`?`width`:`height`,isOriginSide=[`top`,`left`].includes(getSide(placement)),limitMin=rects.reference[crossAxis]-rects.floating[len]+(isOriginSide&&(_middlewareData$offse=middlewareData.offset)?.[crossAxis]||0)+(isOriginSide?0:computedOffset.crossAxis),limitMax=rects.reference[crossAxis]+rects.reference[len]+(isOriginSide?0:(_middlewareData$offse2=middlewareData.offset)?.[crossAxis]||0)-(isOriginSide?computedOffset.crossAxis:0);crossAxisCoordlimitMax&&(crossAxisCoord=limitMax)}return{[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord}}}},size=function(options$1){return options$1===void 0&&(options$1={}),{name:`size`,options:options$1,async fn(state){var _state$middlewareData,_state$middlewareData2;let{placement,rects,platform,elements}=state,{apply:apply$2=()=>{},...detectOverflowOptions}=evaluate(options$1,state),overflow=await detectOverflow(state,detectOverflowOptions),side=getSide(placement),alignment=getAlignment(placement),isYAxis=getSideAxis(placement)===`y`,{width,height}=rects.floating,heightSide,widthSide;side===`top`||side===`bottom`?(heightSide=side,widthSide=alignment===(await(platform.isRTL==null?void 0:platform.isRTL(elements.floating))?`start`:`end`)?`left`:`right`):(widthSide=side,heightSide=alignment===`end`?`top`:`bottom`);let maximumClippingHeight=height-overflow.top-overflow.bottom,maximumClippingWidth=width-overflow.left-overflow.right,overflowAvailableHeight=min(height-overflow[heightSide],maximumClippingHeight),overflowAvailableWidth=min(width-overflow[widthSide],maximumClippingWidth),noShift=!state.middlewareData.shift,availableHeight=overflowAvailableHeight,availableWidth=overflowAvailableWidth;if((_state$middlewareData=state.middlewareData.shift)!=null&&_state$middlewareData.enabled.x&&(availableWidth=maximumClippingWidth),(_state$middlewareData2=state.middlewareData.shift)!=null&&_state$middlewareData2.enabled.y&&(availableHeight=maximumClippingHeight),noShift&&!alignment){let xMin=max(overflow.left,0),xMax=max(overflow.right,0),yMin=max(overflow.top,0),yMax=max(overflow.bottom,0);isYAxis?availableWidth=width-2*(xMin!==0||xMax!==0?xMin+xMax:max(overflow.left,overflow.right)):availableHeight=height-2*(yMin!==0||yMax!==0?yMin+yMax:max(overflow.top,overflow.bottom))}await apply$2({...state,availableWidth,availableHeight});let nextDimensions=await platform.getDimensions(elements.floating);return width!==nextDimensions.width||height!==nextDimensions.height?{reset:{rects:!0}}:{}}}};function renderSlotFragments(children){return children?children.flatMap(child=>child.type===Fragment?renderSlotFragments(child.children):[child]):[]}const Slot=defineComponent({name:`PrimitiveSlot`,inheritAttrs:!1,setup(_$1,{attrs,slots}){return()=>{var _firstNonCommentChild;if(!slots.default)return null;let children=renderSlotFragments(slots.default()),firstNonCommentChildrenIndex=children.findIndex(child=>child.type!==Comment);if(firstNonCommentChildrenIndex===-1)return children;let firstNonCommentChildren=children[firstNonCommentChildrenIndex];(_firstNonCommentChild=firstNonCommentChildren.props)==null||delete _firstNonCommentChild.ref;let mergedProps=firstNonCommentChildren.props?mergeProps(attrs,firstNonCommentChildren.props):attrs,cloned=cloneVNode({...firstNonCommentChildren,props:{}},mergedProps);return children.length===1?cloned:(children[firstNonCommentChildrenIndex]=cloned,children)}}}),SELF_CLOSING_TAGS=[`area`,`img`,`input`],Primitive=defineComponent({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(props,{attrs,slots}){let asTag=props.asChild?`template`:props.as;return typeof asTag==`string`&&SELF_CLOSING_TAGS.includes(asTag)?()=>h(asTag,attrs):asTag===`template`?()=>h(Slot,attrs,{default:slots.default}):()=>h(props.as,attrs,{default:slots.default})}}),_sfc_main$9=defineComponent({__name:`VisuallyHidden`,props:{feature:{default:`focusable`},asChild:{type:Boolean},as:{default:`span`}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{as:_ctx.as,"as-child":_ctx.asChild,"aria-hidden":_ctx.feature===`focusable`?`true`:void 0,"data-hidden":_ctx.feature===`fully-hidden`?``:void 0,tabindex:_ctx.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:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}});function createContext(providerComponentName,contextName){let symbolDescription=typeof providerComponentName==`string`&&!contextName?`${providerComponentName}Context`:contextName,injectionKey=Symbol(symbolDescription),injectContext=fallback=>{let context$1=inject(injectionKey,fallback);if(context$1||context$1===null)return context$1;throw Error(`Injection \`${injectionKey.toString()}\` not found. Component must be used within ${Array.isArray(providerComponentName)?`one of the following components: ${providerComponentName.join(`, `)}`:`\`${providerComponentName}\``}`)},provideContext=contextValue=>(provide(injectionKey,contextValue),contextValue);return[injectContext,provideContext]}const[injectConfigProviderContext,provideConfigProviderContext]=createContext(`ConfigProvider`);function useForwardExpose(){let instance=getCurrentInstance(),currentRef=ref(),currentElement=computed(()=>{var _currentRef$value,_currentRef$value2;return[`#text`,`#comment`].includes((_currentRef$value=currentRef.value)?.$el.nodeName)?(_currentRef$value2=currentRef.value)?.$el.nextElementSibling:unrefElement$1(currentRef)}),localExpose=Object.assign({},instance.exposed),ret={};for(let key$1 in instance.props)Object.defineProperty(ret,key$1,{enumerable:!0,configurable:!0,get:()=>instance.props[key$1]});if(Object.keys(localExpose).length>0)for(let key$1 in localExpose)Object.defineProperty(ret,key$1,{enumerable:!0,configurable:!0,get:()=>localExpose[key$1]});Object.defineProperty(ret,`$el`,{enumerable:!0,configurable:!0,get:()=>instance.vnode.el}),instance.exposed=ret;function forwardRef(ref2){currentRef.value=ref2,ref2&&(Object.defineProperty(ret,`$el`,{enumerable:!0,configurable:!0,get:()=>ref2 instanceof Element?ref2:ref2.$el}),instance.exposed=ret)}return{forwardRef,currentRef,currentElement}}let count=0;function useId(deterministicId,prefix=`reka`){if(deterministicId)return deterministicId;let configProviderContext=injectConfigProviderContext({useId:void 0});return Object.hasOwn(vue_runtime_esm_bundler_exports,`useId`)?`${prefix}-${useId$1?.()}`:configProviderContext.useId?`${prefix}-${configProviderContext.useId()}`:`${prefix}-${++count}`}function useStateMachine(initialState,machine){let state=ref(initialState);function reducer(event){let nextState=machine[state.value][event];return nextState??state.value}let dispatch=event=>{state.value=reducer(event)};return{state,dispatch}}function usePresence(present,node$1){var _node$1$value;let stylesRef=ref({}),prevAnimationNameRef=ref(`none`),prevPresentRef=ref(present),initialState=present.value?`mounted`:`unmounted`,timeoutId,ownerWindow=(_node$1$value=node$1.value)?.ownerDocument.defaultView??defaultWindow,{state,dispatch}=useStateMachine(initialState,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),dispatchCustomEvent=name$2=>{if(isClient){var _node$1$value2;let customEvent=new CustomEvent(name$2,{bubbles:!1,cancelable:!1});(_node$1$value2=node$1.value)?.dispatchEvent(customEvent)}};watch(present,async(currentPresent,prevPresent)=>{let hasPresentChanged=prevPresent!==currentPresent;if(await nextTick(),hasPresentChanged){var _stylesRef$value;let prevAnimationName=prevAnimationNameRef.value,currentAnimationName=getAnimationName(node$1.value);if(currentPresent)dispatch(`MOUNT`),dispatchCustomEvent(`enter`),currentAnimationName===`none`&&dispatchCustomEvent(`after-enter`);else if(currentAnimationName===`none`||currentAnimationName===`undefined`||(_stylesRef$value=stylesRef.value)?.display===`none`)dispatch(`UNMOUNT`),dispatchCustomEvent(`leave`),dispatchCustomEvent(`after-leave`);else{let isAnimating=prevAnimationName!==currentAnimationName;prevPresent&&isAnimating?(dispatch(`ANIMATION_OUT`),dispatchCustomEvent(`leave`)):(dispatch(`UNMOUNT`),dispatchCustomEvent(`after-leave`))}}},{immediate:!0});let handleAnimationEnd=event=>{let currentAnimationName=getAnimationName(node$1.value),isCurrentAnimation=currentAnimationName.includes(event.animationName),directionName=state.value===`mounted`?`enter`:`leave`;if(event.target===node$1.value&&isCurrentAnimation&&(dispatchCustomEvent(`after-${directionName}`),dispatch(`ANIMATION_END`),!prevPresentRef.value)){let currentFillMode=node$1.value.style.animationFillMode;node$1.value.style.animationFillMode=`forwards`,timeoutId=ownerWindow?.setTimeout(()=>{var _node$1$value3;(_node$1$value3=node$1.value)?.style.animationFillMode===`forwards`&&(node$1.value.style.animationFillMode=currentFillMode)})}event.target===node$1.value&¤tAnimationName===`none`&&dispatch(`ANIMATION_END`)},handleAnimationStart=event=>{event.target===node$1.value&&(prevAnimationNameRef.value=getAnimationName(node$1.value))},watcher=watch(node$1,(newNode,oldNode)=>{newNode?(stylesRef.value=getComputedStyle(newNode),newNode.addEventListener(`animationstart`,handleAnimationStart),newNode.addEventListener(`animationcancel`,handleAnimationEnd),newNode.addEventListener(`animationend`,handleAnimationEnd)):(dispatch(`ANIMATION_END`),timeoutId!==void 0&&ownerWindow?.clearTimeout(timeoutId),oldNode?.removeEventListener(`animationstart`,handleAnimationStart),oldNode?.removeEventListener(`animationcancel`,handleAnimationEnd),oldNode?.removeEventListener(`animationend`,handleAnimationEnd))},{immediate:!0}),stateWatcher=watch(state,()=>{let currentAnimationName=getAnimationName(node$1.value);prevAnimationNameRef.value=state.value===`mounted`?currentAnimationName:`none`});onUnmounted(()=>{watcher(),stateWatcher()});let isPresent=computed(()=>[`mounted`,`unmountSuspended`].includes(state.value));return{isPresent}}function getAnimationName(node$1){return node$1&&getComputedStyle(node$1).animationName||`none`}const Presence=defineComponent({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(props,{slots,expose}){let{present,forceMount}=toRefs(props),node$1=ref(),{isPresent}=usePresence(present,node$1);expose({present:isPresent});let children=slots.default({present:isPresent.value});children=renderSlotFragments(children||[]);let instance=getCurrentInstance();if(children&&children?.length>1){var _instance$parent;let componentName=!(instance==null||(_instance$parent=instance.parent)==null)&&_instance$parent.type.name?`<${instance.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${componentName}\` 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(line=>` - ${line}`).join(` +function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof setup==`function`;options$1=isSetupStore?setupOptions:setup;function useStore(pinia$1,hot){let hasContext=hasInjectionContext();pinia$1||=hasContext?inject(piniaSymbol,null):null,pinia$1&&setActivePinia(pinia$1),pinia$1=activePinia,pinia$1._s.has(id)||(isSetupStore?createSetupStore(id,setup,options$1,pinia$1):createOptionsStore(id,options$1,pinia$1));let store=pinia$1._s.get(id);return store}return useStore.$id=id,useStore}function storeToRefs(store){let rawStore=toRaw(store),refs={};for(let key$1 in rawStore){let value$1=rawStore[key$1];value$1.effect?refs[key$1]=computed({get:()=>store[key$1],set(value$2){store[key$1]=value$2}}):(isRef(value$1)||isReactive(value$1))&&(refs[key$1]=toRef(store,key$1))}return refs}const scriptRel=`modulepreload`,assetsURL=function(dep){return`/`+dep},seen={},__vitePreload=function(baseModule,deps,importerUrl){let promise=Promise.resolve();if(deps&&deps.length>0){let allSettled2=function(promises){return Promise.all(promises.map(p$5=>Promise.resolve(p$5).then(value$1=>({status:`fulfilled`,value:value$1}),reason=>({status:`rejected`,reason}))))},links=document.getElementsByTagName(`link`),cspNonceMeta=document.querySelector(`meta[property=csp-nonce]`),cspNonce=cspNonceMeta?.nonce||cspNonceMeta?.getAttribute(`nonce`);promise=allSettled2(deps.map(dep=>{if(dep=assetsURL(dep,importerUrl),dep in seen)return;seen[dep]=!0;let isCss=dep.endsWith(`.css`),cssSelector=isCss?`[rel="stylesheet"]`:``,isBaseRelative=!!importerUrl;if(isBaseRelative)for(let i$1=links.length-1;i$1>=0;i$1--){let link2=links[i$1];if(link2.href===dep&&(!isCss||link2.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${dep}"]${cssSelector}`))return;let link$1=document.createElement(`link`);if(link$1.rel=isCss?`stylesheet`:scriptRel,isCss||(link$1.as=`script`),link$1.crossOrigin=``,link$1.href=dep,cspNonce&&link$1.setAttribute(`nonce`,cspNonce),document.head.appendChild(link$1),isCss)return new Promise((res,rej)=>{link$1.addEventListener(`load`,res),link$1.addEventListener(`error`,()=>rej(Error(`Unable to preload CSS for ${dep}`)))})}))}function handlePreloadError(err){let e$3=new Event(`vite:preloadError`,{cancelable:!0});if(e$3.payload=err,window.dispatchEvent(e$3),!e$3.defaultPrevented)throw err}return promise.then(res=>{for(let item of res||[]){if(item.status!==`rejected`)continue;handlePreloadError(item.reason)}return baseModule().catch(handlePreloadError)})},setupLayouts=routes$1=>{let layouts={},modules=Object.assign({"/src/layouts/default.vue":()=>__vitePreload(()=>import(`./default-0mJyAaQN.js`),__vite__mapDeps([0,1,2])),"/src/layouts/home.vue":()=>__vitePreload(()=>import(`./home-yc6BAt_u.js`),[]),"/src/layouts/plain.vue":()=>__vitePreload(()=>import(`./plain-Dja5DZnF.js`),[]),"/src/layouts/settings.vue":()=>__vitePreload(()=>import(`./settings-Bod_1WHj.js`),__vite__mapDeps([3,1,2])),"/src/layouts/stage.vue":()=>__vitePreload(()=>import(`./stage-DxrieaHP.js`),[])});Object.entries(modules).forEach(([name$2,module$1])=>{let key$1=name$2.replace(`/src/layouts/`,``).replace(`.vue`,``);layouts[key$1]=module$1});function deepSetupLayout(routes$2,top=!0){return routes$2.map(route=>{var _route$children,_route$meta3,_route$meta4;if((_route$children=route.children)?.length>0&&(route.children=deepSetupLayout(route.children,!1)),top){var _route$children2,_route$meta,_route$meta2;let skipLayout=!route.component&&(_route$children2=route.children)?.find(r$2=>{var _r$2$meta;return(r$2.path===``||r$2.path===`/`)&&(_r$2$meta=r$2.meta)?.isLayout});if(skipLayout)return route;if((_route$meta=route.meta)?.layout!==!1)return{path:route.path,component:layouts[(_route$meta2=route.meta)?.layout||`default`],children:route.path===`/`?[route]:[{...route,path:``}],meta:{isLayout:!0}}}return(_route$meta3=route.meta)?.layout?{path:route.path,component:layouts[(_route$meta4=route.meta)?.layout],children:[{...route,path:``}],meta:{isLayout:!0}}:route})}return deepSetupLayout(routes$1)},isBrowser$1=typeof document<`u`;function isRouteComponent(component){return typeof component==`object`||`displayName`in component||`props`in component||`__vccOpts`in component}function isESModule(obj){return obj.__esModule||obj[Symbol.toStringTag]===`Module`||obj.default&&isRouteComponent(obj.default)}const assign$1=Object.assign;function applyToParams(fn$5,params){let newParams={};for(let key$1 in params){let value$1=params[key$1];newParams[key$1]=isArray$3(value$1)?value$1.map(fn$5):fn$5(value$1)}return newParams}const noop=()=>{},isArray$3=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(text$5){return encodeURI(``+text$5).replace(ENC_PIPE_RE,`|`).replace(ENC_BRACKET_OPEN_RE,`[`).replace(ENC_BRACKET_CLOSE_RE,`]`)}function encodeHash(text$5){return commonEncode(text$5).replace(ENC_CURLY_OPEN_RE,`{`).replace(ENC_CURLY_CLOSE_RE,`}`).replace(ENC_CARET_RE,`^`)}function encodeQueryValue(text$5){return commonEncode(text$5).replace(PLUS_RE,`%2B`).replace(ENC_SPACE_RE,`+`).replace(HASH_RE,`%23`).replace(AMPERSAND_RE,`%26`).replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,`{`).replace(ENC_CURLY_CLOSE_RE,`}`).replace(ENC_CARET_RE,`^`)}function encodeQueryKey(text$5){return encodeQueryValue(text$5).replace(EQUAL_RE,`%3D`)}function encodePath(text$5){return commonEncode(text$5).replace(HASH_RE,`%23`).replace(IM_RE,`%3F`)}function encodeParam(text$5){return text$5==null?``:encodePath(text$5).replace(SLASH_RE,`%2F`)}function decode$1(text$5){try{return decodeURIComponent(``+text$5)}catch{}return``+text$5}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=path=>path.replace(TRAILING_SLASH_RE,``);function parseURL(parseQuery$1,location$1,currentLocation=`/`){let path,query={},searchString=``,hash=``,hashPos=location$1.indexOf(`#`),searchPos=location$1.indexOf(`?`);return hashPos=0&&(searchPos=-1),searchPos>-1&&(path=location$1.slice(0,searchPos),searchString=location$1.slice(searchPos+1,hashPos>-1?hashPos:location$1.length),query=parseQuery$1(searchString)),hashPos>-1&&(path||=location$1.slice(0,hashPos),hash=location$1.slice(hashPos,location$1.length)),path=resolveRelativePath(path??location$1,currentLocation),{fullPath:path+(searchString&&`?`)+searchString+hash,path,query,hash:decode$1(hash)}}function stringifyURL(stringifyQuery$1,location$1){let query=location$1.query?stringifyQuery$1(location$1.query):``;return location$1.path+(query&&`?`)+query+(location$1.hash||``)}function stripBase(pathname,base){return!base||!pathname.toLowerCase().startsWith(base.toLowerCase())?pathname:pathname.slice(base.length)||`/`}function isSameRouteLocation(stringifyQuery$1,a$2,b$3){let aLastIndex=a$2.matched.length-1,bLastIndex=b$3.matched.length-1;return aLastIndex>-1&&aLastIndex===bLastIndex&&isSameRouteRecord(a$2.matched[aLastIndex],b$3.matched[bLastIndex])&&isSameRouteLocationParams(a$2.params,b$3.params)&&stringifyQuery$1(a$2.query)===stringifyQuery$1(b$3.query)&&a$2.hash===b$3.hash}function isSameRouteRecord(a$2,b$3){return(a$2.aliasOf||a$2)===(b$3.aliasOf||b$3)}function isSameRouteLocationParams(a$2,b$3){if(Object.keys(a$2).length!==Object.keys(b$3).length)return!1;for(let key$1 in a$2)if(!isSameRouteLocationParamsValue(a$2[key$1],b$3[key$1]))return!1;return!0}function isSameRouteLocationParamsValue(a$2,b$3){return isArray$3(a$2)?isEquivalentArray(a$2,b$3):isArray$3(b$3)?isEquivalentArray(b$3,a$2):a$2===b$3}function isEquivalentArray(a$2,b$3){return isArray$3(b$3)?a$2.length===b$3.length&&a$2.every((value$1,i$1)=>value$1===b$3[i$1]):a$2.length===1&&a$2[0]===b$3}function resolveRelativePath(to$1,from){if(to$1.startsWith(`/`))return to$1;if(!to$1)return from;let fromSegments=from.split(`/`),toSegments=to$1.split(`/`),lastToSegment=toSegments[toSegments.length-1];(lastToSegment===`..`||lastToSegment===`.`)&&toSegments.push(``);let position$2=fromSegments.length-1,toPosition,segment;for(toPosition=0;toPosition1&&position$2--;else break;return fromSegments.slice(0,position$2).join(`/`)+`/`+toSegments.slice(toPosition).join(`/`)}const START_LOCATION_NORMALIZED={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(NavigationType$1){NavigationType$1.pop=`pop`,NavigationType$1.push=`push`})(NavigationType||={});var NavigationDirection;(function(NavigationDirection$1){NavigationDirection$1.back=`back`,NavigationDirection$1.forward=`forward`,NavigationDirection$1.unknown=``})(NavigationDirection||={});function normalizeBase(base){if(!base)if(isBrowser$1){let baseEl=document.querySelector(`base`);base=baseEl&&baseEl.getAttribute(`href`)||`/`,base=base.replace(/^\w+:\/\/[^\/]+/,``)}else base=`/`;return base[0]!==`/`&&base[0]!==`#`&&(base=`/`+base),removeTrailingSlash(base)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(base,location$1){return base.replace(BEFORE_HASH_RE,`#`)+location$1}function getElementPosition(el,offset$1){let docRect=document.documentElement.getBoundingClientRect(),elRect=el.getBoundingClientRect();return{behavior:offset$1.behavior,left:elRect.left-docRect.left-(offset$1.left||0),top:elRect.top-docRect.top-(offset$1.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(position$2){let scrollToOptions;if(`el`in position$2){let positionEl=position$2.el,isIdSelector=typeof positionEl==`string`&&positionEl.startsWith(`#`),el=typeof positionEl==`string`?isIdSelector?document.getElementById(positionEl.slice(1)):document.querySelector(positionEl):positionEl;if(!el)return;scrollToOptions=getElementPosition(el,position$2)}else scrollToOptions=position$2;`scrollBehavior`in document.documentElement.style?window.scrollTo(scrollToOptions):window.scrollTo(scrollToOptions.left==null?window.scrollX:scrollToOptions.left,scrollToOptions.top==null?window.scrollY:scrollToOptions.top)}function getScrollKey(path,delta){let position$2=history.state?history.state.position-delta:-1;return position$2+path}const scrollPositions=new Map;function saveScrollPosition(key$1,scrollPosition){scrollPositions.set(key$1,scrollPosition)}function getSavedScrollPosition(key$1){let scroll=scrollPositions.get(key$1);return scrollPositions.delete(key$1),scroll}let createBaseLocation=()=>location.protocol+`//`+location.host;function createCurrentLocation(base,location$1){let{pathname,search:search$1,hash}=location$1,hashPos=base.indexOf(`#`);if(hashPos>-1){let slicePos=hash.includes(base.slice(hashPos))?base.slice(hashPos).length:1,pathFromHash=hash.slice(slicePos);return pathFromHash[0]!==`/`&&(pathFromHash=`/`+pathFromHash),stripBase(pathFromHash,``)}let path=stripBase(pathname,base);return path+search$1+hash}function useHistoryListeners(base,historyState,currentLocation,replace){let listeners=[],teardowns=[],pauseState=null,popStateHandler=({state})=>{let to$1=createCurrentLocation(base,location),from=currentLocation.value,fromState=historyState.value,delta=0;if(state){if(currentLocation.value=to$1,historyState.value=state,pauseState&&pauseState===from){pauseState=null;return}delta=fromState?state.position-fromState.position:0}else replace(to$1);listeners.forEach(listener=>{listener(currentLocation.value,from,{delta,type:NavigationType.pop,direction:delta?delta>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function pauseListeners(){pauseState=currentLocation.value}function listen(callback){listeners.push(callback);let teardown=()=>{let index$1=listeners.indexOf(callback);index$1>-1&&listeners.splice(index$1,1)};return teardowns.push(teardown),teardown}function beforeUnloadListener(){let{history:history$1}=window;history$1.state&&history$1.replaceState(assign$1({},history$1.state,{scroll:computeScrollPosition()}),``)}function destroy(){for(let teardown of teardowns)teardown();teardowns=[],window.removeEventListener(`popstate`,popStateHandler),window.removeEventListener(`beforeunload`,beforeUnloadListener)}return window.addEventListener(`popstate`,popStateHandler),window.addEventListener(`beforeunload`,beforeUnloadListener,{passive:!0}),{pauseListeners,listen,destroy}}function buildState(back,current,forward,replaced=!1,computeScroll=!1){return{back,current,forward,replaced,position:window.history.length,scroll:computeScroll?computeScrollPosition():null}}function useHistoryStateNavigation(base){let{history:history$1,location:location$1}=window,currentLocation={value:createCurrentLocation(base,location$1)},historyState={value:history$1.state};historyState.value||changeLocation(currentLocation.value,{back:null,current:currentLocation.value,forward:null,position:history$1.length-1,replaced:!0,scroll:null},!0);function changeLocation(to$1,state,replace$1){let hashIndex=base.indexOf(`#`),url=hashIndex>-1?(location$1.host&&document.querySelector(`base`)?base:base.slice(hashIndex))+to$1:createBaseLocation()+base+to$1;try{history$1[replace$1?`replaceState`:`pushState`](state,``,url),historyState.value=state}catch(err){console.error(err),location$1[replace$1?`replace`:`assign`](url)}}function replace(to$1,data$10){let state=assign$1({},history$1.state,buildState(historyState.value.back,to$1,historyState.value.forward,!0),data$10,{position:historyState.value.position});changeLocation(to$1,state,!0),currentLocation.value=to$1}function push$1(to$1,data$10){let currentState=assign$1({},historyState.value,history$1.state,{forward:to$1,scroll:computeScrollPosition()});changeLocation(currentState.current,currentState,!0);let state=assign$1({},buildState(currentLocation.value,to$1,null),{position:currentState.position+1},data$10);changeLocation(to$1,state,!1),currentLocation.value=to$1}return{location:currentLocation,state:historyState,push:push$1,replace}}function createWebHistory(base){base=normalizeBase(base);let historyNavigation=useHistoryStateNavigation(base),historyListeners=useHistoryListeners(base,historyNavigation.state,historyNavigation.location,historyNavigation.replace);function go(delta,triggerListeners=!0){triggerListeners||historyListeners.pauseListeners(),history.go(delta)}let routerHistory=assign$1({location:``,base,go,createHref:createHref.bind(null,base)},historyNavigation,historyListeners);return Object.defineProperty(routerHistory,`location`,{enumerable:!0,get:()=>historyNavigation.location.value}),Object.defineProperty(routerHistory,`state`,{enumerable:!0,get:()=>historyNavigation.state.value}),routerHistory}function createWebHashHistory(base){return base=location.host?base||location.pathname+location.search:``,base.includes(`#`)||(base+=`#`),createWebHistory(base)}function isRouteLocation(route){return typeof route==`string`||route&&typeof route==`object`}function isRouteName(name$2){return typeof name$2==`string`||typeof name$2==`symbol`}const NavigationFailureSymbol=Symbol(``);var NavigationFailureType;(function(NavigationFailureType$1){NavigationFailureType$1[NavigationFailureType$1.aborted=4]=`aborted`,NavigationFailureType$1[NavigationFailureType$1.cancelled=8]=`cancelled`,NavigationFailureType$1[NavigationFailureType$1.duplicated=16]=`duplicated`})(NavigationFailureType||={});function createRouterError(type,params){return assign$1(Error(),{type,[NavigationFailureSymbol]:!0},params)}function isNavigationFailure(error,type){return error instanceof Error&&NavigationFailureSymbol in error&&(type==null||!!(error.type&type))}const BASE_PARAM_PATTERN=`[^/]+?`,BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(segments,extraOptions){let options$1=assign$1({},BASE_PATH_PARSER_OPTIONS,extraOptions),score=[],pattern=options$1.start?`^`:``,keys$3=[];for(let segment of segments){let segmentScores=segment.length?[]:[90];options$1.strict&&!segment.length&&(pattern+=`/`);for(let tokenIndex=0;tokenIndexb$3.length?b$3.length===1&&b$3[0]===80?1:-1:0}function comparePathParserScore(a$2,b$3){let i$1=0,aScore=a$2.score,bScore=b$3.score;for(;i$10&&last[last.length-1]<0}const ROOT_TOKEN={type:0,value:``},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(path){if(!path)return[[]];if(path===`/`)return[[ROOT_TOKEN]];if(!path.startsWith(`/`))throw Error(`Invalid path "${path}"`);function crash(message$1){throw Error(`ERR (${state})/"${buffer$1}": ${message$1}`)}let state=0,previousState=state,tokens=[],segment;function finalizeSegment(){segment&&tokens.push(segment),segment=[]}let i$1=0,char,buffer$1=``,customRe=``;function consumeBuffer(){buffer$1&&(state===0?segment.push({type:0,value:buffer$1}):state===1||state===2||state===3?(segment.length>1&&(char===`*`||char===`+`)&&crash(`A repeatable param (${buffer$1}) must be alone in its segment. eg: '/:ids+.`),segment.push({type:1,value:buffer$1,regexp:customRe,repeatable:char===`*`||char===`+`,optional:char===`*`||char===`?`})):crash(`Invalid state to consume buffer`),buffer$1=``)}function addCharToBuffer(){buffer$1+=char}for(;i$1{removeRoute(originalMatcher)}:noop}function removeRoute(matcherRef){if(isRouteName(matcherRef)){let matcher=matcherMap.get(matcherRef);matcher&&(matcherMap.delete(matcherRef),matchers.splice(matchers.indexOf(matcher),1),matcher.children.forEach(removeRoute),matcher.alias.forEach(removeRoute))}else{let index$1=matchers.indexOf(matcherRef);index$1>-1&&(matchers.splice(index$1,1),matcherRef.record.name&&matcherMap.delete(matcherRef.record.name),matcherRef.children.forEach(removeRoute),matcherRef.alias.forEach(removeRoute))}}function getRoutes(){return matchers}function insertMatcher(matcher){let index$1=findInsertionIndex(matcher,matchers);matchers.splice(index$1,0,matcher),matcher.record.name&&!isAliasRecord(matcher)&&matcherMap.set(matcher.record.name,matcher)}function resolve$1(location$1,currentLocation){let matcher,params={},path,name$2;if(`name`in location$1&&location$1.name){if(matcher=matcherMap.get(location$1.name),!matcher)throw createRouterError(1,{location:location$1});name$2=matcher.record.name,params=assign$1(paramsFromLocation(currentLocation.params,matcher.keys.filter(k$4=>!k$4.optional).concat(matcher.parent?matcher.parent.keys.filter(k$4=>k$4.optional):[]).map(k$4=>k$4.name)),location$1.params&¶msFromLocation(location$1.params,matcher.keys.map(k$4=>k$4.name))),path=matcher.stringify(params)}else if(location$1.path!=null)path=location$1.path,matcher=matchers.find(m$2=>m$2.re.test(path)),matcher&&(params=matcher.parse(path),name$2=matcher.record.name);else{if(matcher=currentLocation.name?matcherMap.get(currentLocation.name):matchers.find(m$2=>m$2.re.test(currentLocation.path)),!matcher)throw createRouterError(1,{location:location$1,currentLocation});name$2=matcher.record.name,params=assign$1({},currentLocation.params,location$1.params),path=matcher.stringify(params)}let matched=[],parentMatcher=matcher;for(;parentMatcher;)matched.unshift(parentMatcher.record),parentMatcher=parentMatcher.parent;return{name:name$2,path,params,matched,meta:mergeMetaFields(matched)}}routes$1.forEach(route=>addRoute(route));function clearRoutes(){matchers.length=0,matcherMap.clear()}return{addRoute,resolve:resolve$1,removeRoute,clearRoutes,getRoutes,getRecordMatcher}}function paramsFromLocation(params,keys$3){let newParams={};for(let key$1 of keys$3)key$1 in params&&(newParams[key$1]=params[key$1]);return newParams}function normalizeRouteRecord(record){let normalized={path:record.path,redirect:record.redirect,name:record.name,meta:record.meta||{},aliasOf:record.aliasOf,beforeEnter:record.beforeEnter,props:normalizeRecordProps(record),children:record.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in record?record.components||null:record.component&&{default:record.component}};return Object.defineProperty(normalized,`mods`,{value:{}}),normalized}function normalizeRecordProps(record){let propsObject={},props=record.props||!1;if(`component`in record)propsObject.default=props;else for(let name$2 in record.components)propsObject[name$2]=typeof props==`object`?props[name$2]:props;return propsObject}function isAliasRecord(record){for(;record;){if(record.record.aliasOf)return!0;record=record.parent}return!1}function mergeMetaFields(matched){return matched.reduce((meta,record)=>assign$1(meta,record.meta),{})}function mergeOptions(defaults,partialOptions){let options$1={};for(let key$1 in defaults)options$1[key$1]=key$1 in partialOptions?partialOptions[key$1]:defaults[key$1];return options$1}function findInsertionIndex(matcher,matchers){let lower=0,upper=matchers.length;for(;lower!==upper;){let mid=lower+upper>>1,sortOrder=comparePathParserScore(matcher,matchers[mid]);sortOrder<0?upper=mid:lower=mid+1}let insertionAncestor=getInsertionAncestor(matcher);return insertionAncestor&&(upper=matchers.lastIndexOf(insertionAncestor,upper-1)),upper}function getInsertionAncestor(matcher){let ancestor=matcher;for(;ancestor=ancestor.parent;)if(isMatchable(ancestor)&&comparePathParserScore(matcher,ancestor)===0)return ancestor}function isMatchable({record}){return!!(record.name||record.components&&Object.keys(record.components).length||record.redirect)}function parseQuery(search$1){let query={};if(search$1===``||search$1===`?`)return query;let hasLeadingIM=search$1[0]===`?`,searchParams=(hasLeadingIM?search$1.slice(1):search$1).split(`&`);for(let i$1=0;i$1v$1&&encodeQueryValue(v$1)):[value$1&&encodeQueryValue(value$1)];values.forEach(value$2=>{value$2!==void 0&&(search$1+=(search$1.length?`&`:``)+key$1,value$2!=null&&(search$1+=`=`+value$2))})}return search$1}function normalizeQuery(query){let normalizedQuery={};for(let key$1 in query){let value$1=query[key$1];value$1!==void 0&&(normalizedQuery[key$1]=isArray$3(value$1)?value$1.map(v$1=>v$1==null?null:``+v$1):value$1==null?value$1:``+value$1)}return normalizedQuery}const matchedRouteKey=Symbol(``),viewDepthKey=Symbol(``),routerKey=Symbol(``),routeLocationKey=Symbol(``),routerViewLocationKey=Symbol(``);function useCallbacks(){let handlers$3=[];function add$1(handler){return handlers$3.push(handler),()=>{let i$1=handlers$3.indexOf(handler);i$1>-1&&handlers$3.splice(i$1,1)}}function reset(){handlers$3=[]}return{add:add$1,list:()=>handlers$3.slice(),reset}}function guardToPromiseFn(guard,to$1,from,record,name$2,runWithContext=fn$5=>fn$5()){let enterCallbackArray=record&&(record.enterCallbacks[name$2]=record.enterCallbacks[name$2]||[]);return()=>new Promise((resolve$1,reject)=>{let next=valid$1=>{valid$1===!1?reject(createRouterError(4,{from,to:to$1})):valid$1 instanceof Error?reject(valid$1):isRouteLocation(valid$1)?reject(createRouterError(2,{from:to$1,to:valid$1})):(enterCallbackArray&&record.enterCallbacks[name$2]===enterCallbackArray&&typeof valid$1==`function`&&enterCallbackArray.push(valid$1),resolve$1())},guardReturn=runWithContext(()=>guard.call(record&&record.instances[name$2],to$1,from,next)),guardCall=Promise.resolve(guardReturn);guard.length<3&&(guardCall=guardCall.then(next)),guardCall.catch(err=>reject(err))})}function extractComponentsGuards(matched,guardType,to$1,from,runWithContext=fn$5=>fn$5()){let guards=[];for(let record of matched)for(let name$2 in record.components){let rawComponent=record.components[name$2];if(guardType!==`beforeRouteEnter`&&!record.instances[name$2])continue;if(isRouteComponent(rawComponent)){let options$1=rawComponent.__vccOpts||rawComponent,guard=options$1[guardType];guard&&guards.push(guardToPromiseFn(guard,to$1,from,record,name$2,runWithContext))}else{let componentPromise=rawComponent();guards.push(()=>componentPromise.then(resolved=>{if(!resolved)throw Error(`Couldn't resolve component "${name$2}" at "${record.path}"`);let resolvedComponent=isESModule(resolved)?resolved.default:resolved;record.mods[name$2]=resolved,record.components[name$2]=resolvedComponent;let options$1=resolvedComponent.__vccOpts||resolvedComponent,guard=options$1[guardType];return guard&&guardToPromiseFn(guard,to$1,from,record,name$2,runWithContext)()}))}}return guards}function useLink(props){let router$1=inject(routerKey),currentRoute=inject(routeLocationKey),hasPrevious=!1,previousTo=null,route=computed(()=>{let to$1=unref(props.to);return router$1.resolve(to$1)}),activeRecordIndex=computed(()=>{let{matched}=route.value,{length}=matched,routeMatched=matched[length-1],currentMatched=currentRoute.matched;if(!routeMatched||!currentMatched.length)return-1;let index$1=currentMatched.findIndex(isSameRouteRecord.bind(null,routeMatched));if(index$1>-1)return index$1;let parentRecordPath=getOriginalPath(matched[length-2]);return length>1&&getOriginalPath(routeMatched)===parentRecordPath&¤tMatched[currentMatched.length-1].path!==parentRecordPath?currentMatched.findIndex(isSameRouteRecord.bind(null,matched[length-2])):index$1}),isActive=computed(()=>activeRecordIndex.value>-1&&includesParams(currentRoute.params,route.value.params)),isExactActive=computed(()=>activeRecordIndex.value>-1&&activeRecordIndex.value===currentRoute.matched.length-1&&isSameRouteLocationParams(currentRoute.params,route.value.params));function navigate(e$3={}){if(guardEvent(e$3)){let p$5=router$1[unref(props.replace)?`replace`:`push`](unref(props.to)).catch(noop);return props.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>p$5),p$5}return Promise.resolve()}return{route,href:computed(()=>route.value.href),isActive,isExactActive,navigate}}function preferSingleVNode(vnodes){return vnodes.length===1?vnodes[0]:vnodes}const RouterLinkImpl=defineComponent({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,setup(props,{slots}){let link$1=reactive(useLink(props)),{options:options$1}=inject(routerKey),elClass=computed(()=>({[getLinkClass(props.activeClass,options$1.linkActiveClass,`router-link-active`)]:link$1.isActive,[getLinkClass(props.exactActiveClass,options$1.linkExactActiveClass,`router-link-exact-active`)]:link$1.isExactActive}));return()=>{let children=slots.default&&preferSingleVNode(slots.default(link$1));return props.custom?children:h(`a`,{"aria-current":link$1.isExactActive?props.ariaCurrentValue:null,href:link$1.href,onClick:link$1.navigate,class:elClass.value},children)}}}),RouterLink=RouterLinkImpl;function guardEvent(e$3){if(!(e$3.metaKey||e$3.altKey||e$3.ctrlKey||e$3.shiftKey)&&!e$3.defaultPrevented&&!(e$3.button!==void 0&&e$3.button!==0)){if(e$3.currentTarget&&e$3.currentTarget.getAttribute){let target$1=e$3.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(target$1))return}return e$3.preventDefault&&e$3.preventDefault(),!0}}function includesParams(outer,inner){for(let key$1 in inner){let innerValue=inner[key$1],outerValue=outer[key$1];if(typeof innerValue==`string`){if(innerValue!==outerValue)return!1}else if(!isArray$3(outerValue)||outerValue.length!==innerValue.length||innerValue.some((value$1,i$1)=>value$1!==outerValue[i$1]))return!1}return!0}function getOriginalPath(record){return record?record.aliasOf?record.aliasOf.path:record.path:``}const getLinkClass=(propClass,globalClass,defaultClass)=>propClass??globalClass??defaultClass,RouterViewImpl=defineComponent({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(props,{attrs,slots}){let injectedRoute=inject(routerViewLocationKey),routeToDisplay=computed(()=>props.route||injectedRoute.value),injectedDepth=inject(viewDepthKey,0),depth=computed(()=>{let initialDepth=unref(injectedDepth),{matched}=routeToDisplay.value,matchedRoute;for(;(matchedRoute=matched[initialDepth])&&!matchedRoute.components;)initialDepth++;return initialDepth}),matchedRouteRef=computed(()=>routeToDisplay.value.matched[depth.value]);provide(viewDepthKey,computed(()=>depth.value+1)),provide(matchedRouteKey,matchedRouteRef),provide(routerViewLocationKey,routeToDisplay);let viewRef=ref();return watch(()=>[viewRef.value,matchedRouteRef.value,props.name],([instance,to$1,name$2],[oldInstance,from,oldName])=>{to$1&&(to$1.instances[name$2]=instance,from&&from!==to$1&&instance&&instance===oldInstance&&(to$1.leaveGuards.size||(to$1.leaveGuards=from.leaveGuards),to$1.updateGuards.size||(to$1.updateGuards=from.updateGuards))),instance&&to$1&&(!from||!isSameRouteRecord(to$1,from)||!oldInstance)&&(to$1.enterCallbacks[name$2]||[]).forEach(callback=>callback(instance))},{flush:`post`}),()=>{let route=routeToDisplay.value,currentName=props.name,matchedRoute=matchedRouteRef.value,ViewComponent=matchedRoute&&matchedRoute.components[currentName];if(!ViewComponent)return normalizeSlot(slots.default,{Component:ViewComponent,route});let routePropsOption=matchedRoute.props[currentName],routeProps=routePropsOption?routePropsOption===!0?route.params:typeof routePropsOption==`function`?routePropsOption(route):routePropsOption:null,onVnodeUnmounted=vnode=>{vnode.component.isUnmounted&&(matchedRoute.instances[currentName]=null)},component=h(ViewComponent,assign$1({},routeProps,attrs,{onVnodeUnmounted,ref:viewRef}));return normalizeSlot(slots.default,{Component:component,route})||component}}});function normalizeSlot(slot,data$10){if(!slot)return null;let slotContent=slot(data$10);return slotContent.length===1?slotContent[0]:slotContent}const RouterView=RouterViewImpl;function createRouter(options$1){let matcher=createRouterMatcher(options$1.routes,options$1),parseQuery$1=options$1.parseQuery||parseQuery,stringifyQuery$1=options$1.stringifyQuery||stringifyQuery,routerHistory=options$1.history,beforeGuards=useCallbacks(),beforeResolveGuards=useCallbacks(),afterGuards=useCallbacks(),currentRoute=shallowRef(START_LOCATION_NORMALIZED),pendingLocation=START_LOCATION_NORMALIZED;isBrowser$1&&options$1.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let normalizeParams=applyToParams.bind(null,paramValue=>``+paramValue),encodeParams=applyToParams.bind(null,encodeParam),decodeParams=applyToParams.bind(null,decode$1);function addRoute(parentOrRoute,route){let parent,record;return isRouteName(parentOrRoute)?(parent=matcher.getRecordMatcher(parentOrRoute),record=route):record=parentOrRoute,matcher.addRoute(record,parent)}function removeRoute(name$2){let recordMatcher=matcher.getRecordMatcher(name$2);recordMatcher&&matcher.removeRoute(recordMatcher)}function getRoutes(){return matcher.getRoutes().map(routeMatcher=>routeMatcher.record)}function hasRoute(name$2){return!!matcher.getRecordMatcher(name$2)}function resolve$1(rawLocation,currentLocation){if(currentLocation=assign$1({},currentLocation||currentRoute.value),typeof rawLocation==`string`){let locationNormalized=parseURL(parseQuery$1,rawLocation,currentLocation.path),matchedRoute$1=matcher.resolve({path:locationNormalized.path},currentLocation),href$1=routerHistory.createHref(locationNormalized.fullPath);return assign$1(locationNormalized,matchedRoute$1,{params:decodeParams(matchedRoute$1.params),hash:decode$1(locationNormalized.hash),redirectedFrom:void 0,href:href$1})}let matcherLocation;if(rawLocation.path!=null)matcherLocation=assign$1({},rawLocation,{path:parseURL(parseQuery$1,rawLocation.path,currentLocation.path).path});else{let targetParams=assign$1({},rawLocation.params);for(let key$1 in targetParams)targetParams[key$1]??delete targetParams[key$1];matcherLocation=assign$1({},rawLocation,{params:encodeParams(targetParams)}),currentLocation.params=encodeParams(currentLocation.params)}let matchedRoute=matcher.resolve(matcherLocation,currentLocation),hash=rawLocation.hash||``;matchedRoute.params=normalizeParams(decodeParams(matchedRoute.params));let fullPath=stringifyURL(stringifyQuery$1,assign$1({},rawLocation,{hash:encodeHash(hash),path:matchedRoute.path})),href=routerHistory.createHref(fullPath);return assign$1({fullPath,hash,query:stringifyQuery$1===stringifyQuery?normalizeQuery(rawLocation.query):rawLocation.query||{}},matchedRoute,{redirectedFrom:void 0,href})}function locationAsObject(to$1){return typeof to$1==`string`?parseURL(parseQuery$1,to$1,currentRoute.value.path):assign$1({},to$1)}function checkCanceledNavigation(to$1,from){if(pendingLocation!==to$1)return createRouterError(8,{from,to:to$1})}function push$1(to$1){return pushWithRedirect(to$1)}function replace(to$1){return push$1(assign$1(locationAsObject(to$1),{replace:!0}))}function handleRedirectRecord(to$1){let lastMatched=to$1.matched[to$1.matched.length-1];if(lastMatched&&lastMatched.redirect){let{redirect}=lastMatched,newTargetLocation=typeof redirect==`function`?redirect(to$1):redirect;return typeof newTargetLocation==`string`&&(newTargetLocation=newTargetLocation.includes(`?`)||newTargetLocation.includes(`#`)?newTargetLocation=locationAsObject(newTargetLocation):{path:newTargetLocation},newTargetLocation.params={}),assign$1({query:to$1.query,hash:to$1.hash,params:newTargetLocation.path==null?to$1.params:{}},newTargetLocation)}}function pushWithRedirect(to$1,redirectedFrom){let targetLocation=pendingLocation=resolve$1(to$1),from=currentRoute.value,data$10=to$1.state,force=to$1.force,replace$1=to$1.replace===!0,shouldRedirect=handleRedirectRecord(targetLocation);if(shouldRedirect)return pushWithRedirect(assign$1(locationAsObject(shouldRedirect),{state:typeof shouldRedirect==`object`?assign$1({},data$10,shouldRedirect.state):data$10,force,replace:replace$1}),redirectedFrom||targetLocation);let toLocation=targetLocation;toLocation.redirectedFrom=redirectedFrom;let failure;return!force&&isSameRouteLocation(stringifyQuery$1,from,targetLocation)&&(failure=createRouterError(16,{to:toLocation,from}),handleScroll(from,from,!0,!1)),(failure?Promise.resolve(failure):navigate(toLocation,from)).catch(error=>isNavigationFailure(error)?isNavigationFailure(error,2)?error:markAsReady(error):triggerError(error,toLocation,from)).then(failure$1=>{if(failure$1){if(isNavigationFailure(failure$1,2))return pushWithRedirect(assign$1({replace:replace$1},locationAsObject(failure$1.to),{state:typeof failure$1.to==`object`?assign$1({},data$10,failure$1.to.state):data$10,force}),redirectedFrom||toLocation)}else failure$1=finalizeNavigation(toLocation,from,!0,replace$1,data$10);return triggerAfterEach(toLocation,from,failure$1),failure$1})}function checkCanceledNavigationAndReject(to$1,from){let error=checkCanceledNavigation(to$1,from);return error?Promise.reject(error):Promise.resolve()}function runWithContext(fn$5){let app=installedApps.values().next().value;return app&&typeof app.runWithContext==`function`?app.runWithContext(fn$5):fn$5()}function navigate(to$1,from){let guards,[leavingRecords,updatingRecords,enteringRecords]=extractChangingRecords(to$1,from);guards=extractComponentsGuards(leavingRecords.reverse(),`beforeRouteLeave`,to$1,from);for(let record of leavingRecords)record.leaveGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to$1,from))});let canceledNavigationCheck=checkCanceledNavigationAndReject.bind(null,to$1,from);return guards.push(canceledNavigationCheck),runGuardQueue(guards).then(()=>{guards=[];for(let guard of beforeGuards.list())guards.push(guardToPromiseFn(guard,to$1,from));return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).then(()=>{guards=extractComponentsGuards(updatingRecords,`beforeRouteUpdate`,to$1,from);for(let record of updatingRecords)record.updateGuards.forEach(guard=>{guards.push(guardToPromiseFn(guard,to$1,from))});return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).then(()=>{guards=[];for(let record of enteringRecords)if(record.beforeEnter)if(isArray$3(record.beforeEnter))for(let beforeEnter of record.beforeEnter)guards.push(guardToPromiseFn(beforeEnter,to$1,from));else guards.push(guardToPromiseFn(record.beforeEnter,to$1,from));return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).then(()=>(to$1.matched.forEach(record=>record.enterCallbacks={}),guards=extractComponentsGuards(enteringRecords,`beforeRouteEnter`,to$1,from,runWithContext),guards.push(canceledNavigationCheck),runGuardQueue(guards))).then(()=>{guards=[];for(let guard of beforeResolveGuards.list())guards.push(guardToPromiseFn(guard,to$1,from));return guards.push(canceledNavigationCheck),runGuardQueue(guards)}).catch(err=>isNavigationFailure(err,8)?err:Promise.reject(err))}function triggerAfterEach(to$1,from,failure){afterGuards.list().forEach(guard=>runWithContext(()=>guard(to$1,from,failure)))}function finalizeNavigation(toLocation,from,isPush,replace$1,data$10){let error=checkCanceledNavigation(toLocation,from);if(error)return error;let isFirstNavigation=from===START_LOCATION_NORMALIZED,state=isBrowser$1?history.state:{};isPush&&(replace$1||isFirstNavigation?routerHistory.replace(toLocation.fullPath,assign$1({scroll:isFirstNavigation&&state&&state.scroll},data$10)):routerHistory.push(toLocation.fullPath,data$10)),currentRoute.value=toLocation,handleScroll(toLocation,from,isPush,isFirstNavigation),markAsReady()}let removeHistoryListener;function setupListeners(){removeHistoryListener||=routerHistory.listen((to$1,_from,info)=>{if(!router$1.listening)return;let toLocation=resolve$1(to$1),shouldRedirect=handleRedirectRecord(toLocation);if(shouldRedirect){pushWithRedirect(assign$1(shouldRedirect,{replace:!0,force:!0}),toLocation).catch(noop);return}pendingLocation=toLocation;let from=currentRoute.value;isBrowser$1&&saveScrollPosition(getScrollKey(from.fullPath,info.delta),computeScrollPosition()),navigate(toLocation,from).catch(error=>isNavigationFailure(error,12)?error:isNavigationFailure(error,2)?(pushWithRedirect(assign$1(locationAsObject(error.to),{force:!0}),toLocation).then(failure=>{isNavigationFailure(failure,20)&&!info.delta&&info.type===NavigationType.pop&&routerHistory.go(-1,!1)}).catch(noop),Promise.reject()):(info.delta&&routerHistory.go(-info.delta,!1),triggerError(error,toLocation,from))).then(failure=>{failure||=finalizeNavigation(toLocation,from,!1),failure&&(info.delta&&!isNavigationFailure(failure,8)?routerHistory.go(-info.delta,!1):info.type===NavigationType.pop&&isNavigationFailure(failure,20)&&routerHistory.go(-1,!1)),triggerAfterEach(toLocation,from,failure)}).catch(noop)})}let readyHandlers=useCallbacks(),errorListeners=useCallbacks(),ready;function triggerError(error,to$1,from){markAsReady(error);let list$2=errorListeners.list();return list$2.length?list$2.forEach(handler=>handler(error,to$1,from)):console.error(error),Promise.reject(error)}function isReady(){return ready&¤tRoute.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((resolve$2,reject)=>{readyHandlers.add([resolve$2,reject])})}function markAsReady(err){return ready||(ready=!err,setupListeners(),readyHandlers.list().forEach(([resolve$2,reject])=>err?reject(err):resolve$2()),readyHandlers.reset()),err}function handleScroll(to$1,from,isPush,isFirstNavigation){let{scrollBehavior}=options$1;if(!isBrowser$1||!scrollBehavior)return Promise.resolve();let scrollPosition=!isPush&&getSavedScrollPosition(getScrollKey(to$1.fullPath,0))||(isFirstNavigation||!isPush)&&history.state&&history.state.scroll||null;return nextTick().then(()=>scrollBehavior(to$1,from,scrollPosition)).then(position$2=>position$2&&scrollToPosition(position$2)).catch(err=>triggerError(err,to$1,from))}let go=delta=>routerHistory.go(delta),started,installedApps=new Set,router$1={currentRoute,listening:!0,addRoute,removeRoute,clearRoutes:matcher.clearRoutes,hasRoute,getRoutes,resolve:resolve$1,options:options$1,push:push$1,replace,go,back:()=>go(-1),forward:()=>go(1),beforeEach:beforeGuards.add,beforeResolve:beforeResolveGuards.add,afterEach:afterGuards.add,onError:errorListeners.add,isReady,install(app){let router$2=this;app.component(`RouterLink`,RouterLink),app.component(`RouterView`,RouterView),app.config.globalProperties.$router=router$2,Object.defineProperty(app.config.globalProperties,`$route`,{enumerable:!0,get:()=>unref(currentRoute)}),isBrowser$1&&!started&¤tRoute.value===START_LOCATION_NORMALIZED&&(started=!0,push$1(routerHistory.location).catch(err=>{}));let reactiveRoute={};for(let key$1 in START_LOCATION_NORMALIZED)Object.defineProperty(reactiveRoute,key$1,{get:()=>currentRoute.value[key$1],enumerable:!0});app.provide(routerKey,router$2),app.provide(routeLocationKey,shallowReactive(reactiveRoute)),app.provide(routerViewLocationKey,currentRoute);let unmountApp=app.unmount;installedApps.add(app),app.unmount=function(){installedApps.delete(app),installedApps.size<1&&(pendingLocation=START_LOCATION_NORMALIZED,removeHistoryListener&&removeHistoryListener(),removeHistoryListener=null,currentRoute.value=START_LOCATION_NORMALIZED,started=!1,ready=!1),unmountApp()}}};function runGuardQueue(guards){return guards.reduce((promise,guard)=>promise.then(()=>runWithContext(guard)),Promise.resolve())}return router$1}function extractChangingRecords(to$1,from){let leavingRecords=[],updatingRecords=[],enteringRecords=[],len=Math.max(from.matched.length,to$1.matched.length);for(let i$1=0;i$1isSameRouteRecord(record,recordFrom))?updatingRecords.push(recordFrom):leavingRecords.push(recordFrom));let recordTo=to$1.matched[i$1];recordTo&&(from.matched.find(record=>isSameRouteRecord(record,recordTo))||enteringRecords.push(recordTo))}return[leavingRecords,updatingRecords,enteringRecords]}function useRouter(){return inject(routerKey)}function useRoute(_name){return inject(routeLocationKey)}const routes=[{path:`/`,name:`/`,component:()=>__vitePreload(()=>import(`./pages-B_XiJ3Wi.js`),__vite__mapDeps([4,5,1,2,6,7,8,9,10,11])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}},{path:`/:all(.*)`,name:`/[...all]`,component:()=>__vitePreload(()=>import(`./_...all_-VklDrsU-.js`),[])},{path:`/audio`,name:`/audio`,component:()=>__vitePreload(()=>import(`./audio-D_Dl7cMi.js`),[])},{path:`/devtools`,children:[{path:`audio-record`,name:`/devtools/audio-record`,component:()=>__vitePreload(()=>import(`./audio-record-B6N8fWma.js`),[])},{path:`background-remove`,name:`/devtools/background-remove`,component:()=>__vitePreload(()=>import(`./background-remove-612OSbeu.js`),__vite__mapDeps([12,13,14]))},{path:`chat`,name:`/devtools/chat`,component:()=>__vitePreload(()=>import(`./chat-BdNjFz1N.js`),[])},{path:`gesture-circle`,name:`/devtools/gesture-circle`,component:()=>__vitePreload(()=>import(`./gesture-circle-DCCP1PVe.js`),__vite__mapDeps([15,5])),meta:{layout:`plain`}},{path:`image`,name:`/devtools/image`,component:()=>__vitePreload(()=>import(`./image-CAayhVhY.js`),__vite__mapDeps([16,17]))},{path:`polaroid`,name:`/devtools/polaroid`,component:()=>__vitePreload(()=>import(`./polaroid-ClXFWlFr.js`),__vite__mapDeps([18,9,10,11]))},{path:`vibrant`,name:`/devtools/vibrant`,component:()=>__vitePreload(()=>import(`./vibrant-pmbYNvM6.js`),__vite__mapDeps([19,20,14]))}]},{path:`/queue`,name:`/queue`,component:()=>__vitePreload(()=>import(`./queue-C-YzWg-G.js`),[])},{path:`/settings`,children:[{path:``,name:`/settings/`,component:()=>__vitePreload(()=>import(`./settings-B6QGUj0K.js`),__vite__mapDeps([21,5,22])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`airi-card`,children:[{path:``,name:`/settings/airi-card/`,component:()=>__vitePreload(()=>import(`./airi-card-CIQghUKu.js`),__vite__mapDeps([23,5,24,25,26,27,28,29,30,14])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`components`,children:[{path:`CardCreate`,name:`/settings/airi-card/components/CardCreate`,component:()=>__vitePreload(()=>import(`./CardCreate-_WmCZI0F.js`),__vite__mapDeps([31,24]))},{path:`CardCreationDialog`,name:`/settings/airi-card/components/CardCreationDialog`,component:()=>__vitePreload(()=>import(`./CardCreationDialog-BeDyQku3.js`),__vite__mapDeps([32,25,26,27]))},{path:`CardDetailDialog`,name:`/settings/airi-card/components/CardDetailDialog`,component:()=>__vitePreload(()=>import(`./CardDetailDialog-DS3Wn753.js`),__vite__mapDeps([33,28,29,26]))},{path:`CardListItem`,name:`/settings/airi-card/components/CardListItem`,component:()=>__vitePreload(()=>import(`./CardListItem-HblUJ8mm.js`),__vite__mapDeps([34,30]))},{path:`DeleteCardDialog`,name:`/settings/airi-card/components/DeleteCardDialog`,component:()=>__vitePreload(()=>import(`./DeleteCardDialog-BU_LHgTA.js`),__vite__mapDeps([35,29,26]))}]}]},{path:`appearance`,children:[{path:``,name:`/settings/appearance/`,component:()=>__vitePreload(()=>import(`./appearance-nnrTPNaJ.js`),__vite__mapDeps([36,5])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`color-scheme`,name:`/settings/appearance/color-scheme`,component:()=>__vitePreload(()=>import(`./color-scheme-CRBG9uYh.js`),__vite__mapDeps([37,5,38,26,39])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`developer`,name:`/settings/appearance/developer`,component:()=>__vitePreload(()=>import(`./developer-B3mC2s_x.js`),__vite__mapDeps([40,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`general`,name:`/settings/appearance/general`,component:()=>__vitePreload(()=>import(`./general-MWxAYrT-.js`),__vite__mapDeps([41,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`memory`,children:[{path:``,name:`/settings/memory/`,component:()=>__vitePreload(()=>import(`./memory-BUvt7DgX.js`),__vite__mapDeps([42,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`models`,children:[{path:``,name:`/settings/models/`,component:()=>__vitePreload(()=>import(`./models-CFsgoKO6.js`),__vite__mapDeps([43,5,22,38,26,44,9,10,11,20,45])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]},{path:`modules`,children:[{path:``,name:`/settings/modules/`,component:()=>__vitePreload(()=>import(`./modules-9avIG6iD.js`),__vite__mapDeps([46,5,22,44])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`consciousness`,name:`/settings/modules/consciousness`,component:()=>__vitePreload(()=>import(`./consciousness-DKxM8jWu.js`),__vite__mapDeps([47,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`hearing`,name:`/settings/modules/hearing`,component:()=>__vitePreload(()=>import(`./hearing-CRj71d-D.js`),__vite__mapDeps([48,5,13])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-long-term`,name:`/settings/modules/memory-long-term`,component:()=>__vitePreload(()=>import(`./memory-long-term-DGbK0bay.js`),__vite__mapDeps([49,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`memory-short-term`,name:`/settings/modules/memory-short-term`,component:()=>__vitePreload(()=>import(`./memory-short-term-MnudAItY.js`),__vite__mapDeps([50,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`speech`,name:`/settings/modules/speech`,component:()=>__vitePreload(()=>import(`./speech-CgPaoQOI.js`),__vite__mapDeps([51,5,7,52])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`providers`,children:[{path:``,name:`/settings/providers/`,component:()=>__vitePreload(()=>import(`./providers-DEM9Tm1c.js`),__vite__mapDeps([53,5,22,44])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}},{path:`alibaba-cloud-model-studio`,name:`/settings/providers/alibaba-cloud-model-studio`,component:()=>__vitePreload(()=>import(`./alibaba-cloud-model-studio-CigdA2eh.js`),__vite__mapDeps([54,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`anthropic`,name:`/settings/providers/anthropic`,component:()=>__vitePreload(()=>import(`./anthropic-C1-YVtDu.js`),__vite__mapDeps([55,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`cloudflare-workers-ai`,name:`/settings/providers/cloudflare-workers-ai`,component:()=>__vitePreload(()=>import(`./cloudflare-workers-ai-9dIfUy-z.js`),__vite__mapDeps([56,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`deepseek`,name:`/settings/providers/deepseek`,component:()=>__vitePreload(()=>import(`./deepseek-C9ey36GY.js`),__vite__mapDeps([57,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`elevenlabs`,name:`/settings/providers/elevenlabs`,component:()=>__vitePreload(()=>import(`./elevenlabs-Svidxf1r.js`),__vite__mapDeps([58,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`featherless-ai`,name:`/settings/providers/featherless-ai`,component:()=>__vitePreload(()=>import(`./featherless-ai-DF2K1yKk.js`),__vite__mapDeps([59,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`fireworks-ai`,name:`/settings/providers/fireworks-ai`,component:()=>__vitePreload(()=>import(`./fireworks-ai-CKsopCss.js`),__vite__mapDeps([60,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`google-generative-ai`,name:`/settings/providers/google-generative-ai`,component:()=>__vitePreload(()=>import(`./google-generative-ai-5ZQ3g8vz.js`),__vite__mapDeps([61,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`microsoft-speech`,name:`/settings/providers/microsoft-speech`,component:()=>__vitePreload(()=>import(`./microsoft-speech-DWy-RkN7.js`),__vite__mapDeps([62,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`mistral-ai`,name:`/settings/providers/mistral-ai`,component:()=>__vitePreload(()=>import(`./mistral-ai-DoJfmKbx.js`),__vite__mapDeps([63,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`moonshot-ai`,name:`/settings/providers/moonshot-ai`,component:()=>__vitePreload(()=>import(`./moonshot-ai-Cau_K86f.js`),__vite__mapDeps([64,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`novita-ai`,name:`/settings/providers/novita-ai`,component:()=>__vitePreload(()=>import(`./novita-ai-D9JggVed.js`),__vite__mapDeps([65,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`ollama`,name:`/settings/providers/ollama`,component:()=>__vitePreload(()=>import(`./ollama-D8ZG0VwN.js`),__vite__mapDeps([66,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai`,name:`/settings/providers/openai`,component:()=>__vitePreload(()=>import(`./openai-BwGLKk9I.js`),__vite__mapDeps([67,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-speech`,name:`/settings/providers/openai-audio-speech`,component:()=>__vitePreload(()=>import(`./openai-audio-speech-DU29tEDJ.js`),__vite__mapDeps([68,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openai-audio-transcription`,name:`/settings/providers/openai-audio-transcription`,component:()=>__vitePreload(()=>import(`./openai-audio-transcription-EptmXPAp.js`),__vite__mapDeps([69,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`openrouter-ai`,name:`/settings/providers/openrouter-ai`,component:()=>__vitePreload(()=>import(`./openrouter-ai-BK1ttAnA.js`),__vite__mapDeps([70,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2`,name:`/settings/providers/player2`,component:()=>__vitePreload(()=>import(`./player2-CVCTsITQ.js`),__vite__mapDeps([71,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`player2-speech`,name:`/settings/providers/player2-speech`,component:()=>__vitePreload(()=>import(`./player2-speech-omvRzl7n.js`),__vite__mapDeps([72,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`together-ai`,name:`/settings/providers/together-ai`,component:()=>__vitePreload(()=>import(`./together-ai-BsZHvE5t.js`),__vite__mapDeps([73,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`volcengine`,name:`/settings/providers/volcengine`,component:()=>__vitePreload(()=>import(`./volcengine-4CqtHmsk.js`),__vite__mapDeps([74,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}},{path:`xai`,name:`/settings/providers/xai`,component:()=>__vitePreload(()=>import(`./xai-DIVtUzH3.js`),__vite__mapDeps([75,5])),meta:{layout:`settings`,stageTransition:{name:`slide`}}}]},{path:`scene`,children:[{path:``,name:`/settings/scene/`,component:()=>__vitePreload(()=>import(`./scene-Cu9Mso0l.js`),__vite__mapDeps([76,5,22,44])),meta:{layout:`settings`,stageTransition:{name:`slide`,pageSpecificAvailable:!0}}}]}]},{path:`/stage`,children:[{path:``,name:`/stage/`,component:()=>__vitePreload(()=>import(`./stage-B_hSnz5Y.js`),__vite__mapDeps([77,5,1,2,6,7,8,9,10,11])),meta:{layout:`stage`,stageTransition:{name:`bubble-wave-out`}}}]},{path:`/test`,children:[{path:`filter-message`,name:`/test/filter-message`,component:()=>__vitePreload(()=>import(`./filter-message-CFDl3g_d.js`),__vite__mapDeps([78,7,52]))},{path:`queues`,children:[{path:`delays`,name:`/test/queues/delays`,component:()=>__vitePreload(()=>import(`./delays-CHbcnvO4.js`),__vite__mapDeps([79,7,52]))},{path:`emotions`,name:`/test/queues/emotions`,component:()=>__vitePreload(()=>import(`./emotions-5q0BUTGM.js`),__vite__mapDeps([80,7,52]))},{path:`messages`,name:`/test/queues/messages`,component:()=>__vitePreload(()=>import(`./messages-FIemZxGj.js`),__vite__mapDeps([81,7,52]))}]}]}],sides=[`top`,`right`,`bottom`,`left`],alignments=[`start`,`end`],placements=sides.reduce((acc,side)=>acc.concat(side,side+`-`+alignments[0],side+`-`+alignments[1]),[]),min=Math.min,max=Math.max,round$1=Math.round,floor=Math.floor,createCoords=v$1=>({x:v$1,y:v$1}),oppositeSideMap={left:`right`,right:`left`,bottom:`top`,top:`bottom`},oppositeAlignmentMap={start:`end`,end:`start`};function clamp$1(start,value$1,end){return max(start,min(value$1,end))}function evaluate(value$1,param){return typeof value$1==`function`?value$1(param):value$1}function getSide(placement){return placement.split(`-`)[0]}function getAlignment(placement){return placement.split(`-`)[1]}function getOppositeAxis(axis){return axis===`x`?`y`:`x`}function getAxisLength(axis){return axis===`y`?`height`:`width`}function getSideAxis(placement){return[`top`,`bottom`].includes(getSide(placement))?`y`:`x`}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement))}function getAlignmentSides(placement,rects,rtl){rtl===void 0&&(rtl=!1);let alignment=getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis),mainAlignmentSide=alignmentAxis===`x`?alignment===(rtl?`end`:`start`)?`right`:`left`:alignment===`start`?`bottom`:`top`;return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}function getExpandedPlacements(placement){let oppositePlacement=getOppositePlacement(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)]}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,alignment=>oppositeAlignmentMap[alignment])}function getSideList(side,isStart,rtl){let lr=[`left`,`right`],rl=[`right`,`left`],tb=[`top`,`bottom`],bt$3=[`bottom`,`top`];switch(side){case`top`:case`bottom`:return rtl?isStart?rl:lr:isStart?lr:rl;case`left`:case`right`:return isStart?tb:bt$3;default:return[]}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){let alignment=getAlignment(placement),list$2=getSideList(getSide(placement),direction===`start`,rtl);return alignment&&(list$2=list$2.map(side=>side+`-`+alignment),flipAlignment&&(list$2=list$2.concat(list$2.map(getOppositeAlignmentPlacement)))),list$2}function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,side=>oppositeSideMap[side])}function expandPaddingObject(padding){return{top:0,right:0,bottom:0,left:0,...padding}}function getPaddingObject(padding){return typeof padding==`number`?{top:padding,right:padding,bottom:padding,left:padding}:expandPaddingObject(padding)}function rectToClientRect(rect){let{x:x$3,y:y$2,width,height}=rect;return{width,height,top:y$2,left:x$3,right:x$3+width,bottom:y$2+height,x:x$3,y:y$2}}function computeCoordsFromPlacement(_ref,placement,rtl){let{reference,floating}=_ref,sideAxis=getSideAxis(placement),alignmentAxis=getAlignmentAxis(placement),alignLength=getAxisLength(alignmentAxis),side=getSide(placement),isVertical=sideAxis===`y`,commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2,coords$1;switch(side){case`top`:coords$1={x:commonX,y:reference.y-floating.height};break;case`bottom`:coords$1={x:commonX,y:reference.y+reference.height};break;case`right`:coords$1={x:reference.x+reference.width,y:commonY};break;case`left`:coords$1={x:reference.x-floating.width,y:commonY};break;default:coords$1={x:reference.x,y:reference.y}}switch(getAlignment(placement)){case`start`:coords$1[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case`end`:coords$1[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break}return coords$1}const computePosition=async(reference,floating,config)=>{let{placement=`bottom`,strategy=`absolute`,middleware=[],platform}=config,validMiddleware=middleware.filter(Boolean),rtl=await(platform.isRTL==null?void 0:platform.isRTL(floating)),rects=await platform.getElementRects({reference,floating,strategy}),{x:x$3,y:y$2}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,middlewareData={},resetCount=0;for(let i$1=0;i$1({name:`arrow`,options:options$1,async fn(state){let{x:x$3,y:y$2,placement,rects,platform,elements,middlewareData}=state,{element:element$3,padding=0}=evaluate(options$1,state)||{};if(element$3==null)return{};let paddingObject=getPaddingObject(padding),coords$1={x:x$3,y:y$2},axis=getAlignmentAxis(placement),length=getAxisLength(axis),arrowDimensions=await platform.getDimensions(element$3),isYAxis=axis===`y`,minProp=isYAxis?`top`:`left`,maxProp=isYAxis?`bottom`:`right`,clientProp=isYAxis?`clientHeight`:`clientWidth`,endDiff=rects.reference[length]+rects.reference[axis]-coords$1[axis]-rects.floating[length],startDiff=coords$1[axis]-rects.reference[axis],arrowOffsetParent=await(platform.getOffsetParent==null?void 0:platform.getOffsetParent(element$3)),clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;(!clientSize||!await(platform.isElement==null?void 0:platform.isElement(arrowOffsetParent)))&&(clientSize=elements.floating[clientProp]||rects.floating[length]);let centerToReference=endDiff/2-startDiff/2,largestPossiblePadding=clientSize/2-arrowDimensions[length]/2-1,minPadding=min(paddingObject[minProp],largestPossiblePadding),maxPadding=min(paddingObject[maxProp],largestPossiblePadding),min$1=minPadding,max$1=clientSize-arrowDimensions[length]-maxPadding,center=clientSize/2-arrowDimensions[length]/2+centerToReference,offset$1=clamp$1(min$1,center,max$1),shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset$1&&rects.reference[length]/2-(centergetAlignment(placement)===alignment),...allowedPlacements.filter(placement=>getAlignment(placement)!==alignment)]:allowedPlacements.filter(placement=>getSide(placement)===placement);return allowedPlacementsSortedByAlignment.filter(placement=>alignment?getAlignment(placement)===alignment||(autoAlignment?getOppositeAlignmentPlacement(placement)!==placement:!1):!0)}const autoPlacement=function(options$1){return options$1===void 0&&(options$1={}),{name:`autoPlacement`,options:options$1,async fn(state){var _middlewareData$autoP,_middlewareData$autoP2,_placementsThatFitOnE;let{rects,middlewareData,placement,platform,elements}=state,{crossAxis=!1,alignment,allowedPlacements=placements,autoAlignment=!0,...detectOverflowOptions}=evaluate(options$1,state),placements$1=alignment!==void 0||allowedPlacements===placements?getPlacementList(alignment||null,autoAlignment,allowedPlacements):allowedPlacements,overflow=await detectOverflow(state,detectOverflowOptions),currentIndex=(_middlewareData$autoP=middlewareData.autoPlacement)?.index||0,currentPlacement=placements$1[currentIndex];if(currentPlacement==null)return{};let alignmentSides=getAlignmentSides(currentPlacement,rects,await(platform.isRTL==null?void 0:platform.isRTL(elements.floating)));if(placement!==currentPlacement)return{reset:{placement:placements$1[0]}};let currentOverflows=[overflow[getSide(currentPlacement)],overflow[alignmentSides[0]],overflow[alignmentSides[1]]],allOverflows=[...(_middlewareData$autoP2=middlewareData.autoPlacement)?.overflows||[],{placement:currentPlacement,overflows:currentOverflows}],nextPlacement=placements$1[currentIndex+1];if(nextPlacement)return{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:nextPlacement}};let placementsSortedByMostSpace=allOverflows.map(d$2=>{let alignment$1=getAlignment(d$2.placement);return[d$2.placement,alignment$1&&crossAxis?d$2.overflows.slice(0,2).reduce((acc,v$1)=>acc+v$1,0):d$2.overflows[0],d$2.overflows]}).sort((a$2,b$3)=>a$2[1]-b$3[1]),placementsThatFitOnEachSide=placementsSortedByMostSpace.filter(d$2=>d$2[2].slice(0,getAlignment(d$2[0])?2:3).every(v$1=>v$1<=0)),resetPlacement=(_placementsThatFitOnE=placementsThatFitOnEachSide[0])?.[0]||placementsSortedByMostSpace[0][0];return resetPlacement===placement?{}:{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:resetPlacement}}}}},flip=function(options$1){return options$1===void 0&&(options$1={}),{name:`flip`,options:options$1,async fn(state){var _middlewareData$arrow,_middlewareData$flip;let{placement,middlewareData,rects,initialPlacement,platform,elements}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0,fallbackPlacements:specifiedFallbackPlacements,fallbackStrategy=`bestFit`,fallbackAxisSideDirection=`none`,flipAlignment=!0,...detectOverflowOptions}=evaluate(options$1,state);if((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)return{};let side=getSide(placement),initialSideAxis=getSideAxis(initialPlacement),isBasePlacement=getSide(initialPlacement)===initialPlacement,rtl=await(platform.isRTL==null?void 0:platform.isRTL(elements.floating)),fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement(initialPlacement)]:getExpandedPlacements(initialPlacement)),hasFallbackAxisSideDirection=fallbackAxisSideDirection!==`none`;!specifiedFallbackPlacements&&hasFallbackAxisSideDirection&&fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl));let placements$1=[initialPlacement,...fallbackPlacements],overflow=await detectOverflow(state,detectOverflowOptions),overflows=[],overflowsData=(_middlewareData$flip=middlewareData.flip)?.overflows||[];if(checkMainAxis&&overflows.push(overflow[side]),checkCrossAxis){let sides$1=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides$1[0]],overflow[sides$1[1]])}if(overflowsData=[...overflowsData,{placement,overflows}],!overflows.every(side$1=>side$1<=0)){var _middlewareData$flip2,_overflowsData$filter;let nextIndex=((_middlewareData$flip2=middlewareData.flip)?.index||0)+1,nextPlacement=placements$1[nextIndex];if(nextPlacement)return{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}};let resetPlacement=(_overflowsData$filter=overflowsData.filter(d$2=>d$2.overflows[0]<=0).sort((a$2,b$3)=>a$2.overflows[1]-b$3.overflows[1])[0])?.placement;if(!resetPlacement)switch(fallbackStrategy){case`bestFit`:{var _overflowsData$filter2;let placement$1=(_overflowsData$filter2=overflowsData.filter(d$2=>{if(hasFallbackAxisSideDirection){let currentSideAxis=getSideAxis(d$2.placement);return currentSideAxis===initialSideAxis||currentSideAxis===`y`}return!0}).map(d$2=>[d$2.placement,d$2.overflows.filter(overflow$1=>overflow$1>0).reduce((acc,overflow$1)=>acc+overflow$1,0)]).sort((a$2,b$3)=>a$2[1]-b$3[1])[0])?.[0];placement$1&&(resetPlacement=placement$1);break}case`initialPlacement`:resetPlacement=initialPlacement;break}if(placement!==resetPlacement)return{reset:{placement:resetPlacement}}}return{}}}};function getSideOffsets(overflow,rect){return{top:overflow.top-rect.height,right:overflow.right-rect.width,bottom:overflow.bottom-rect.height,left:overflow.left-rect.width}}function isAnySideFullyClipped(overflow){return sides.some(side=>overflow[side]>=0)}const hide=function(options$1){return options$1===void 0&&(options$1={}),{name:`hide`,options:options$1,async fn(state){let{rects}=state,{strategy=`referenceHidden`,...detectOverflowOptions}=evaluate(options$1,state);switch(strategy){case`referenceHidden`:{let overflow=await detectOverflow(state,{...detectOverflowOptions,elementContext:`reference`}),offsets=getSideOffsets(overflow,rects.reference);return{data:{referenceHiddenOffsets:offsets,referenceHidden:isAnySideFullyClipped(offsets)}}}case`escaped`:{let overflow=await detectOverflow(state,{...detectOverflowOptions,altBoundary:!0}),offsets=getSideOffsets(overflow,rects.floating);return{data:{escapedOffsets:offsets,escaped:isAnySideFullyClipped(offsets)}}}default:return{}}}}};async function convertValueToCoords(state,options$1){let{placement,platform,elements}=state,rtl=await(platform.isRTL==null?void 0:platform.isRTL(elements.floating)),side=getSide(placement),alignment=getAlignment(placement),isVertical=getSideAxis(placement)===`y`,mainAxisMulti=[`left`,`top`].includes(side)?-1:1,crossAxisMulti=rtl&&isVertical?-1:1,rawValue=evaluate(options$1,state),{mainAxis,crossAxis,alignmentAxis}=typeof rawValue==`number`?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:rawValue.mainAxis||0,crossAxis:rawValue.crossAxis||0,alignmentAxis:rawValue.alignmentAxis};return alignment&&typeof alignmentAxis==`number`&&(crossAxis=alignment===`end`?alignmentAxis*-1:alignmentAxis),isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}const offset=function(options$1){return options$1===void 0&&(options$1=0),{name:`offset`,options:options$1,async fn(state){var _middlewareData$offse,_middlewareData$arrow;let{x:x$3,y:y$2,placement,middlewareData}=state,diffCoords=await convertValueToCoords(state,options$1);return placement===(_middlewareData$offse=middlewareData.offset)?.placement&&(_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset?{}:{x:x$3+diffCoords.x,y:y$2+diffCoords.y,data:{...diffCoords,placement}}}}},shift=function(options$1){return options$1===void 0&&(options$1={}),{name:`shift`,options:options$1,async fn(state){let{x:x$3,y:y$2,placement}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!1,limiter={fn:_ref=>{let{x:x$4,y:y$3}=_ref;return{x:x$4,y:y$3}}},...detectOverflowOptions}=evaluate(options$1,state),coords$1={x:x$3,y:y$2},overflow=await detectOverflow(state,detectOverflowOptions),crossAxis=getSideAxis(getSide(placement)),mainAxis=getOppositeAxis(crossAxis),mainAxisCoord=coords$1[mainAxis],crossAxisCoord=coords$1[crossAxis];if(checkMainAxis){let minSide=mainAxis===`y`?`top`:`left`,maxSide=mainAxis===`y`?`bottom`:`right`,min$1=mainAxisCoord+overflow[minSide],max$1=mainAxisCoord-overflow[maxSide];mainAxisCoord=clamp$1(min$1,mainAxisCoord,max$1)}if(checkCrossAxis){let minSide=crossAxis===`y`?`top`:`left`,maxSide=crossAxis===`y`?`bottom`:`right`,min$1=crossAxisCoord+overflow[minSide],max$1=crossAxisCoord-overflow[maxSide];crossAxisCoord=clamp$1(min$1,crossAxisCoord,max$1)}let limitedCoords=limiter.fn({...state,[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord});return{...limitedCoords,data:{x:limitedCoords.x-x$3,y:limitedCoords.y-y$2,enabled:{[mainAxis]:checkMainAxis,[crossAxis]:checkCrossAxis}}}}}},limitShift=function(options$1){return options$1===void 0&&(options$1={}),{options:options$1,fn(state){let{x:x$3,y:y$2,placement,rects,middlewareData}=state,{offset:offset$1=0,mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0}=evaluate(options$1,state),coords$1={x:x$3,y:y$2},crossAxis=getSideAxis(placement),mainAxis=getOppositeAxis(crossAxis),mainAxisCoord=coords$1[mainAxis],crossAxisCoord=coords$1[crossAxis],rawOffset=evaluate(offset$1,state),computedOffset=typeof rawOffset==`number`?{mainAxis:rawOffset,crossAxis:0}:{mainAxis:0,crossAxis:0,...rawOffset};if(checkMainAxis){let len=mainAxis===`y`?`height`:`width`,limitMin=rects.reference[mainAxis]-rects.floating[len]+computedOffset.mainAxis,limitMax=rects.reference[mainAxis]+rects.reference[len]-computedOffset.mainAxis;mainAxisCoordlimitMax&&(mainAxisCoord=limitMax)}if(checkCrossAxis){var _middlewareData$offse,_middlewareData$offse2;let len=mainAxis===`y`?`width`:`height`,isOriginSide=[`top`,`left`].includes(getSide(placement)),limitMin=rects.reference[crossAxis]-rects.floating[len]+(isOriginSide&&(_middlewareData$offse=middlewareData.offset)?.[crossAxis]||0)+(isOriginSide?0:computedOffset.crossAxis),limitMax=rects.reference[crossAxis]+rects.reference[len]+(isOriginSide?0:(_middlewareData$offse2=middlewareData.offset)?.[crossAxis]||0)-(isOriginSide?computedOffset.crossAxis:0);crossAxisCoordlimitMax&&(crossAxisCoord=limitMax)}return{[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord}}}},size=function(options$1){return options$1===void 0&&(options$1={}),{name:`size`,options:options$1,async fn(state){var _state$middlewareData,_state$middlewareData2;let{placement,rects,platform,elements}=state,{apply:apply$2=()=>{},...detectOverflowOptions}=evaluate(options$1,state),overflow=await detectOverflow(state,detectOverflowOptions),side=getSide(placement),alignment=getAlignment(placement),isYAxis=getSideAxis(placement)===`y`,{width,height}=rects.floating,heightSide,widthSide;side===`top`||side===`bottom`?(heightSide=side,widthSide=alignment===(await(platform.isRTL==null?void 0:platform.isRTL(elements.floating))?`start`:`end`)?`left`:`right`):(widthSide=side,heightSide=alignment===`end`?`top`:`bottom`);let maximumClippingHeight=height-overflow.top-overflow.bottom,maximumClippingWidth=width-overflow.left-overflow.right,overflowAvailableHeight=min(height-overflow[heightSide],maximumClippingHeight),overflowAvailableWidth=min(width-overflow[widthSide],maximumClippingWidth),noShift=!state.middlewareData.shift,availableHeight=overflowAvailableHeight,availableWidth=overflowAvailableWidth;if((_state$middlewareData=state.middlewareData.shift)!=null&&_state$middlewareData.enabled.x&&(availableWidth=maximumClippingWidth),(_state$middlewareData2=state.middlewareData.shift)!=null&&_state$middlewareData2.enabled.y&&(availableHeight=maximumClippingHeight),noShift&&!alignment){let xMin=max(overflow.left,0),xMax=max(overflow.right,0),yMin=max(overflow.top,0),yMax=max(overflow.bottom,0);isYAxis?availableWidth=width-2*(xMin!==0||xMax!==0?xMin+xMax:max(overflow.left,overflow.right)):availableHeight=height-2*(yMin!==0||yMax!==0?yMin+yMax:max(overflow.top,overflow.bottom))}await apply$2({...state,availableWidth,availableHeight});let nextDimensions=await platform.getDimensions(elements.floating);return width!==nextDimensions.width||height!==nextDimensions.height?{reset:{rects:!0}}:{}}}};function renderSlotFragments(children){return children?children.flatMap(child=>child.type===Fragment?renderSlotFragments(child.children):[child]):[]}const Slot=defineComponent({name:`PrimitiveSlot`,inheritAttrs:!1,setup(_$2,{attrs,slots}){return()=>{var _firstNonCommentChild;if(!slots.default)return null;let children=renderSlotFragments(slots.default()),firstNonCommentChildrenIndex=children.findIndex(child=>child.type!==Comment);if(firstNonCommentChildrenIndex===-1)return children;let firstNonCommentChildren=children[firstNonCommentChildrenIndex];(_firstNonCommentChild=firstNonCommentChildren.props)==null||delete _firstNonCommentChild.ref;let mergedProps=firstNonCommentChildren.props?mergeProps(attrs,firstNonCommentChildren.props):attrs,cloned=cloneVNode({...firstNonCommentChildren,props:{}},mergedProps);return children.length===1?cloned:(children[firstNonCommentChildrenIndex]=cloned,children)}}}),SELF_CLOSING_TAGS=[`area`,`img`,`input`],Primitive=defineComponent({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(props,{attrs,slots}){let asTag=props.asChild?`template`:props.as;return typeof asTag==`string`&&SELF_CLOSING_TAGS.includes(asTag)?()=>h(asTag,attrs):asTag===`template`?()=>h(Slot,attrs,{default:slots.default}):()=>h(props.as,attrs,{default:slots.default})}}),_sfc_main$13=defineComponent({__name:`VisuallyHidden`,props:{feature:{default:`focusable`},asChild:{type:Boolean},as:{default:`span`}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{as:_ctx.as,"as-child":_ctx.asChild,"aria-hidden":_ctx.feature===`focusable`?`true`:void 0,"data-hidden":_ctx.feature===`fully-hidden`?``:void 0,tabindex:_ctx.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:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}});function createContext(providerComponentName,contextName){let symbolDescription=typeof providerComponentName==`string`&&!contextName?`${providerComponentName}Context`:contextName,injectionKey=Symbol(symbolDescription),injectContext=fallback=>{let context$1=inject(injectionKey,fallback);if(context$1||context$1===null)return context$1;throw Error(`Injection \`${injectionKey.toString()}\` not found. Component must be used within ${Array.isArray(providerComponentName)?`one of the following components: ${providerComponentName.join(`, `)}`:`\`${providerComponentName}\``}`)},provideContext=contextValue=>(provide(injectionKey,contextValue),contextValue);return[injectContext,provideContext]}const[injectConfigProviderContext,provideConfigProviderContext]=createContext(`ConfigProvider`);function useForwardExpose(){let instance=getCurrentInstance(),currentRef=ref(),currentElement=computed(()=>{var _currentRef$value,_currentRef$value2;return[`#text`,`#comment`].includes((_currentRef$value=currentRef.value)?.$el.nodeName)?(_currentRef$value2=currentRef.value)?.$el.nextElementSibling:unrefElement$1(currentRef)}),localExpose=Object.assign({},instance.exposed),ret={};for(let key$1 in instance.props)Object.defineProperty(ret,key$1,{enumerable:!0,configurable:!0,get:()=>instance.props[key$1]});if(Object.keys(localExpose).length>0)for(let key$1 in localExpose)Object.defineProperty(ret,key$1,{enumerable:!0,configurable:!0,get:()=>localExpose[key$1]});Object.defineProperty(ret,`$el`,{enumerable:!0,configurable:!0,get:()=>instance.vnode.el}),instance.exposed=ret;function forwardRef(ref2){currentRef.value=ref2,ref2&&(Object.defineProperty(ret,`$el`,{enumerable:!0,configurable:!0,get:()=>ref2 instanceof Element?ref2:ref2.$el}),instance.exposed=ret)}return{forwardRef,currentRef,currentElement}}let count=0;function useId(deterministicId,prefix=`reka`){if(deterministicId)return deterministicId;let configProviderContext=injectConfigProviderContext({useId:void 0});return Object.hasOwn(vue_runtime_esm_bundler_exports,`useId`)?`${prefix}-${useId$1?.()}`:configProviderContext.useId?`${prefix}-${configProviderContext.useId()}`:`${prefix}-${++count}`}function useStateMachine(initialState,machine){let state=ref(initialState);function reducer(event){let nextState=machine[state.value][event];return nextState??state.value}let dispatch=event=>{state.value=reducer(event)};return{state,dispatch}}function usePresence(present,node$1){var _node$1$value;let stylesRef=ref({}),prevAnimationNameRef=ref(`none`),prevPresentRef=ref(present),initialState=present.value?`mounted`:`unmounted`,timeoutId,ownerWindow=(_node$1$value=node$1.value)?.ownerDocument.defaultView??defaultWindow,{state,dispatch}=useStateMachine(initialState,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),dispatchCustomEvent=name$2=>{if(isClient){var _node$1$value2;let customEvent=new CustomEvent(name$2,{bubbles:!1,cancelable:!1});(_node$1$value2=node$1.value)?.dispatchEvent(customEvent)}};watch(present,async(currentPresent,prevPresent)=>{let hasPresentChanged=prevPresent!==currentPresent;if(await nextTick(),hasPresentChanged){var _stylesRef$value;let prevAnimationName=prevAnimationNameRef.value,currentAnimationName=getAnimationName(node$1.value);if(currentPresent)dispatch(`MOUNT`),dispatchCustomEvent(`enter`),currentAnimationName===`none`&&dispatchCustomEvent(`after-enter`);else if(currentAnimationName===`none`||currentAnimationName===`undefined`||(_stylesRef$value=stylesRef.value)?.display===`none`)dispatch(`UNMOUNT`),dispatchCustomEvent(`leave`),dispatchCustomEvent(`after-leave`);else{let isAnimating=prevAnimationName!==currentAnimationName;prevPresent&&isAnimating?(dispatch(`ANIMATION_OUT`),dispatchCustomEvent(`leave`)):(dispatch(`UNMOUNT`),dispatchCustomEvent(`after-leave`))}}},{immediate:!0});let handleAnimationEnd=event=>{let currentAnimationName=getAnimationName(node$1.value),isCurrentAnimation=currentAnimationName.includes(event.animationName),directionName=state.value===`mounted`?`enter`:`leave`;if(event.target===node$1.value&&isCurrentAnimation&&(dispatchCustomEvent(`after-${directionName}`),dispatch(`ANIMATION_END`),!prevPresentRef.value)){let currentFillMode=node$1.value.style.animationFillMode;node$1.value.style.animationFillMode=`forwards`,timeoutId=ownerWindow?.setTimeout(()=>{var _node$1$value3;(_node$1$value3=node$1.value)?.style.animationFillMode===`forwards`&&(node$1.value.style.animationFillMode=currentFillMode)})}event.target===node$1.value&¤tAnimationName===`none`&&dispatch(`ANIMATION_END`)},handleAnimationStart=event=>{event.target===node$1.value&&(prevAnimationNameRef.value=getAnimationName(node$1.value))},watcher=watch(node$1,(newNode,oldNode)=>{newNode?(stylesRef.value=getComputedStyle(newNode),newNode.addEventListener(`animationstart`,handleAnimationStart),newNode.addEventListener(`animationcancel`,handleAnimationEnd),newNode.addEventListener(`animationend`,handleAnimationEnd)):(dispatch(`ANIMATION_END`),timeoutId!==void 0&&ownerWindow?.clearTimeout(timeoutId),oldNode?.removeEventListener(`animationstart`,handleAnimationStart),oldNode?.removeEventListener(`animationcancel`,handleAnimationEnd),oldNode?.removeEventListener(`animationend`,handleAnimationEnd))},{immediate:!0}),stateWatcher=watch(state,()=>{let currentAnimationName=getAnimationName(node$1.value);prevAnimationNameRef.value=state.value===`mounted`?currentAnimationName:`none`});onUnmounted(()=>{watcher(),stateWatcher()});let isPresent=computed(()=>[`mounted`,`unmountSuspended`].includes(state.value));return{isPresent}}function getAnimationName(node$1){return node$1&&getComputedStyle(node$1).animationName||`none`}const Presence=defineComponent({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(props,{slots,expose}){let{present,forceMount}=toRefs(props),node$1=ref(),{isPresent}=usePresence(present,node$1);expose({present:isPresent});let children=slots.default({present:isPresent.value});children=renderSlotFragments(children||[]);let instance=getCurrentInstance();if(children&&children?.length>1){var _instance$parent;let componentName=!(instance==null||(_instance$parent=instance.parent)==null)&&_instance$parent.type.name?`<${instance.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${componentName}\` 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(line=>` - ${line}`).join(` `)].join(` -`))}return()=>forceMount.value||present.value||isPresent.value?h(slots.default({present:isPresent.value})[0],{ref:v$1=>{let el=unrefElement$1(v$1);return el?.hasAttribute===void 0||(el?.hasAttribute(`data-reka-popper-content-wrapper`)?node$1.value=el.firstElementChild:node$1.value=el),el}}):null}}),[injectDialogRootContext,provideDialogRootContext]=createContext(`DialogRoot`),_sfc_main$3=defineComponent({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,open$1=useVModel(props,`open`,emit$1,{defaultValue:props.defaultOpen,passive:props.open===void 0}),triggerElement=ref(),contentElement=ref(),{modal}=toRefs(props);return provideDialogRootContext({open:open$1,modal,openModal:()=>{open$1.value=!0},onOpenChange:value$1=>{open$1.value=value$1},onOpenToggle:()=>{open$1.value=!open$1.value},contentId:``,titleId:``,descriptionId:``,triggerElement,contentElement}),(_ctx,_cache$1)=>renderSlot(_ctx.$slots,`default`,{open:unref(open$1),close:()=>open$1.value=!1})}});function useEmitAsProps(emit$1){let vm=getCurrentInstance(),events=vm?.type.emits,result={};return events?.length||console.warn(`No emitted event found. Please check component: ${vm?.type.__name}`),events?.forEach(ev=>{result[toHandlerKey(camelize(ev))]=(...arg)=>emit$1(ev,...arg)}),result}function getActiveElement(){let activeElement=document.activeElement;if(activeElement==null)return null;for(;activeElement!=null&&activeElement.shadowRoot!=null&&activeElement.shadowRoot.activeElement!=null;)activeElement=activeElement.shadowRoot.activeElement;return activeElement}const SELECTION_KEYS=[`Enter`,` `],FIRST_KEYS=[`ArrowDown`,`PageUp`,`Home`],LAST_KEYS=[`ArrowUp`,`PageDown`,`End`],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],SUB_OPEN_KEYS={ltr:[...SELECTION_KEYS,`ArrowRight`],rtl:[...SELECTION_KEYS,`ArrowLeft`]};function getOpenState(open$1){return open$1?`open`:`closed`}const useFocusStackState=createGlobalState(()=>{let stack$1=ref([]);return stack$1});function createFocusScopesStack(){let stack$1=useFocusStackState();return{add(focusScope){let activeFocusScope=stack$1.value[0];focusScope!==activeFocusScope&&activeFocusScope?.pause(),stack$1.value=arrayRemove(stack$1.value,focusScope),stack$1.value.unshift(focusScope)},remove(focusScope){var _stack$1$value$;stack$1.value=arrayRemove(stack$1.value,focusScope),(_stack$1$value$=stack$1.value[0])?.resume()}}}function arrayRemove(array,item){let updatedArray=[...array],index$1=updatedArray.indexOf(item);return index$1!==-1&&updatedArray.splice(index$1,1),updatedArray}function removeLinks(items){return items.filter(item=>item.tagName!==`A`)}const AUTOFOCUS_ON_MOUNT=`focusScope.autoFocusOnMount`,AUTOFOCUS_ON_UNMOUNT=`focusScope.autoFocusOnUnmount`,EVENT_OPTIONS={bubbles:!1,cancelable:!0};function focusFirst(candidates,{select=!1}={}){let previouslyFocusedElement=getActiveElement();for(let candidate of candidates)if(focus(candidate,{select}),getActiveElement()!==previouslyFocusedElement)return!0}function getTabbableEdges(container){let candidates=getTabbableCandidates(container),first=findVisible(candidates,container),last=findVisible(candidates.reverse(),container);return[first,last]}function getTabbableCandidates(container){let nodes=[],walker=document.createTreeWalker(container,NodeFilter.SHOW_ELEMENT,{acceptNode:node$1=>{let isHiddenInput=node$1.tagName===`INPUT`&&node$1.type===`hidden`;return node$1.disabled||node$1.hidden||isHiddenInput?NodeFilter.FILTER_SKIP:node$1.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;walker.nextNode();)nodes.push(walker.currentNode);return nodes}function findVisible(elements,container){for(let element$3 of elements)if(!isHidden(element$3,{upTo:container}))return element$3}function isHidden(node$1,{upTo}){if(getComputedStyle(node$1).visibility===`hidden`)return!0;for(;node$1;){if(upTo!==void 0&&node$1===upTo)return!1;if(getComputedStyle(node$1).display===`none`)return!0;node$1=node$1.parentElement}return!1}function isSelectableInput(element$3){return element$3 instanceof HTMLInputElement&&`select`in element$3}function focus(element$3,{select=!1}={}){if(element$3&&element$3.focus){let previouslyFocusedElement=getActiveElement();element$3.focus({preventScroll:!0}),element$3!==previouslyFocusedElement&&isSelectableInput(element$3)&&select&&element$3.select()}}const _sfc_main$14=defineComponent({__name:`FocusScope`,props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,{currentRef,currentElement}=useForwardExpose(),lastFocusedElementRef=ref(null),focusScopesStack=createFocusScopesStack(),focusScope=reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});watchEffect(cleanupFn=>{if(!isClient)return;let container=currentElement.value;if(!props.trapped)return;function handleFocusIn(event){if(focusScope.paused||!container)return;let target$1=event.target;container.contains(target$1)?lastFocusedElementRef.value=target$1:focus(lastFocusedElementRef.value,{select:!0})}function handleFocusOut(event){if(focusScope.paused||!container)return;let relatedTarget=event.relatedTarget;relatedTarget!==null&&(container.contains(relatedTarget)||focus(lastFocusedElementRef.value,{select:!0}))}function handleMutations$1(mutations$1){let isLastFocusedElementExist=container.contains(lastFocusedElementRef.value);isLastFocusedElementExist||focus(container)}document.addEventListener(`focusin`,handleFocusIn),document.addEventListener(`focusout`,handleFocusOut);let mutationObserver=new MutationObserver(handleMutations$1);container&&mutationObserver.observe(container,{childList:!0,subtree:!0}),cleanupFn(()=>{document.removeEventListener(`focusin`,handleFocusIn),document.removeEventListener(`focusout`,handleFocusOut),mutationObserver.disconnect()})}),watchEffect(async cleanupFn=>{let container=currentElement.value;if(await nextTick(),!container)return;focusScopesStack.add(focusScope);let previouslyFocusedElement=getActiveElement(),hasFocusedCandidate=container.contains(previouslyFocusedElement);if(!hasFocusedCandidate){let mountEvent=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_MOUNT,ev=>emits(`mountAutoFocus`,ev)),container.dispatchEvent(mountEvent),mountEvent.defaultPrevented||(focusFirst(removeLinks(getTabbableCandidates(container)),{select:!0}),getActiveElement()===previouslyFocusedElement&&focus(container))}cleanupFn(()=>{container.removeEventListener(AUTOFOCUS_ON_MOUNT,ev=>emits(`mountAutoFocus`,ev));let unmountEvent=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS),unmountEventHandler=ev=>{emits(`unmountAutoFocus`,ev)};container.addEventListener(AUTOFOCUS_ON_UNMOUNT,unmountEventHandler),container.dispatchEvent(unmountEvent),setTimeout(()=>{unmountEvent.defaultPrevented||focus(previouslyFocusedElement??document.body,{select:!0}),container.removeEventListener(AUTOFOCUS_ON_UNMOUNT,unmountEventHandler),focusScopesStack.remove(focusScope)},0)})});function handleKeyDown(event){if(!props.loop&&!props.trapped||focusScope.paused)return;let isTabKey=event.key===`Tab`&&!event.altKey&&!event.ctrlKey&&!event.metaKey,focusedElement=getActiveElement();if(isTabKey&&focusedElement){let container=event.currentTarget,[first,last]=getTabbableEdges(container),hasTabbableElementsInside=first&&last;hasTabbableElementsInside?!event.shiftKey&&focusedElement===last?(event.preventDefault(),props.loop&&focus(first,{select:!0})):event.shiftKey&&focusedElement===first&&(event.preventDefault(),props.loop&&focus(last,{select:!0})):focusedElement===container&&event.preventDefault()}}return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{ref_key:`currentRef`,ref:currentRef,tabindex:`-1`,"as-child":_ctx.asChild,as:_ctx.as,onKeydown:handleKeyDown},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}});function handleAndDispatchCustomEvent(name$2,handler,detail){let target$1=detail.originalEvent.target,event=new CustomEvent(name$2,{bubbles:!1,cancelable:!0,detail});handler&&target$1.addEventListener(name$2,handler,{once:!0}),target$1.dispatchEvent(event)}const POINTER_DOWN_OUTSIDE=`dismissableLayer.pointerDownOutside`,FOCUS_OUTSIDE=`dismissableLayer.focusOutside`;function isLayerExist(layerElement,targetElement){let targetLayer=targetElement.closest(`[data-dismissable-layer]`),mainLayer=layerElement.dataset.dismissableLayer===``?layerElement:layerElement.querySelector(`[data-dismissable-layer]`),nodeList=Array.from(layerElement.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(targetLayer&&(mainLayer===targetLayer||nodeList.indexOf(mainLayer){});return watchEffect(cleanupFn=>{if(!isClient||!toValue$1(enabled$1))return;let handlePointerDown=async event=>{let target$1=event.target;if(!(!element$3?.value||!target$1)){if(isLayerExist(element$3.value,target$1)){isPointerInsideDOMTree.value=!1;return}if(event.target&&!isPointerInsideDOMTree.value){let handleAndDispatchPointerDownOutsideEvent=function(){handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE,onPointerDownOutside,eventDetail)},eventDetail={originalEvent:event};event.pointerType===`touch`?(ownerDocument.removeEventListener(`click`,handleClickRef.value),handleClickRef.value=handleAndDispatchPointerDownOutsideEvent,ownerDocument.addEventListener(`click`,handleClickRef.value,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else ownerDocument.removeEventListener(`click`,handleClickRef.value);isPointerInsideDOMTree.value=!1}},timerId=window.setTimeout(()=>{ownerDocument.addEventListener(`pointerdown`,handlePointerDown)},0);cleanupFn(()=>{window.clearTimeout(timerId),ownerDocument.removeEventListener(`pointerdown`,handlePointerDown),ownerDocument.removeEventListener(`click`,handleClickRef.value)})}),{onPointerDownCapture:()=>{toValue$1(enabled$1)&&(isPointerInsideDOMTree.value=!0)}}}function useFocusOutside(onFocusOutside,element$3,enabled$1=!0){var _element$3$value2,_globalThis3;let ownerDocument=(element$3==null||(_element$3$value2=element$3.value)==null?void 0:_element$3$value2.ownerDocument)??(_globalThis3=globalThis)?.document,isFocusInsideDOMTree=ref(!1);return watchEffect(cleanupFn=>{if(!isClient||!toValue$1(enabled$1))return;let handleFocus=async event=>{if(!element$3?.value)return;await nextTick(),await nextTick();let target$1=event.target;if(!(!element$3.value||!target$1||isLayerExist(element$3.value,target$1))&&event.target&&!isFocusInsideDOMTree.value){let eventDetail={originalEvent:event};handleAndDispatchCustomEvent(FOCUS_OUTSIDE,onFocusOutside,eventDetail)}};ownerDocument.addEventListener(`focusin`,handleFocus),cleanupFn(()=>ownerDocument.removeEventListener(`focusin`,handleFocus))}),{onFocusCapture:()=>{toValue$1(enabled$1)&&(isFocusInsideDOMTree.value=!0)},onBlurCapture:()=>{toValue$1(enabled$1)&&(isFocusInsideDOMTree.value=!1)}}}const context=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_sfc_main$15=defineComponent({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,{forwardRef,currentElement:layerElement}=useForwardExpose(),ownerDocument=computed(()=>{var _layerElement$value;return(_layerElement$value=layerElement.value)?.ownerDocument??globalThis.document}),layers=computed(()=>context.layersRoot),index$1=computed(()=>layerElement.value?Array.from(layers.value).indexOf(layerElement.value):-1),isBodyPointerEventsDisabled=computed(()=>context.layersWithOutsidePointerEventsDisabled.size>0),isPointerEventsEnabled=computed(()=>{let localLayers=Array.from(layers.value),[highestLayerWithOutsidePointerEventsDisabled]=[...context.layersWithOutsidePointerEventsDisabled].slice(-1),highestLayerWithOutsidePointerEventsDisabledIndex=localLayers.indexOf(highestLayerWithOutsidePointerEventsDisabled);return index$1.value>=highestLayerWithOutsidePointerEventsDisabledIndex}),pointerDownOutside=usePointerDownOutside(async event=>{let isPointerDownOnBranch=[...context.branches].some(branch=>branch?.contains(event.target));!isPointerEventsEnabled.value||isPointerDownOnBranch||(emits(`pointerDownOutside`,event),emits(`interactOutside`,event),await nextTick(),event.defaultPrevented||emits(`dismiss`))},layerElement),focusOutside=useFocusOutside(event=>{let isFocusInBranch=[...context.branches].some(branch=>branch?.contains(event.target));isFocusInBranch||(emits(`focusOutside`,event),emits(`interactOutside`,event),event.defaultPrevented||emits(`dismiss`))},layerElement);onKeyStroke(`Escape`,event=>{let isHighestLayer=index$1.value===layers.value.size-1;isHighestLayer&&(emits(`escapeKeyDown`,event),event.defaultPrevented||emits(`dismiss`))});let originalBodyPointerEvents;return watchEffect(cleanupFn=>{layerElement.value&&(props.disableOutsidePointerEvents&&(context.layersWithOutsidePointerEventsDisabled.size===0&&(originalBodyPointerEvents=ownerDocument.value.body.style.pointerEvents,ownerDocument.value.body.style.pointerEvents=`none`),context.layersWithOutsidePointerEventsDisabled.add(layerElement.value)),layers.value.add(layerElement.value),cleanupFn(()=>{props.disableOutsidePointerEvents&&context.layersWithOutsidePointerEventsDisabled.size===1&&(ownerDocument.value.body.style.pointerEvents=originalBodyPointerEvents)}))}),watchEffect(cleanupFn=>{cleanupFn(()=>{layerElement.value&&(layers.value.delete(layerElement.value),context.layersWithOutsidePointerEventsDisabled.delete(layerElement.value))})}),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{ref:unref(forwardRef),"as-child":_ctx.asChild,as:_ctx.as,"data-dismissable-layer":``,style:normalizeStyle({pointerEvents:isBodyPointerEventsDisabled.value?isPointerEventsEnabled.value?`auto`:`none`:void 0}),onFocusCapture:unref(focusOutside).onFocusCapture,onBlurCapture:unref(focusOutside).onBlurCapture,onPointerdownCapture:unref(pointerDownOutside).onPointerDownCapture},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),_sfc_main$13=defineComponent({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,rootContext=injectDialogRootContext(),{forwardRef,currentElement:contentElement}=useForwardExpose();return rootContext.titleId||=useId(void 0,`reka-dialog-title`),rootContext.descriptionId||=useId(void 0,`reka-dialog-description`),onMounted(()=>{rootContext.contentElement=contentElement,getActiveElement()!==document.body&&(rootContext.triggerElement.value=getActiveElement())}),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$14),{"as-child":``,loop:``,trapped:props.trapFocus,onMountAutoFocus:_cache$1[5]||=$event=>emits(`openAutoFocus`,$event),onUnmountAutoFocus:_cache$1[6]||=$event=>emits(`closeAutoFocus`,$event)},{default:withCtx(()=>[createVNode(unref(_sfc_main$15),mergeProps({id:unref(rootContext).contentId,ref:unref(forwardRef),as:_ctx.as,"as-child":_ctx.asChild,"disable-outside-pointer-events":_ctx.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":unref(rootContext).descriptionId,"aria-labelledby":unref(rootContext).titleId,"data-state":unref(getOpenState)(unref(rootContext).open.value)},_ctx.$attrs,{onDismiss:_cache$1[0]||=$event=>unref(rootContext).onOpenChange(!1),onEscapeKeyDown:_cache$1[1]||=$event=>emits(`escapeKeyDown`,$event),onFocusOutside:_cache$1[2]||=$event=>emits(`focusOutside`,$event),onInteractOutside:_cache$1[3]||=$event=>emits(`interactOutside`,$event),onPointerDownOutside:_cache$1[4]||=$event=>emits(`pointerDownOutside`,$event)}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`]))}});var getDefaultParent=function(originalTarget){if(typeof document>`u`)return null;var sampleTarget=Array.isArray(originalTarget)?originalTarget[0]:originalTarget;return sampleTarget.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(node$1){return node$1&&(node$1.host||unwrapHost(node$1.parentNode))},correctTargets=function(parent,targets){return targets.map(function(target$1){if(parent.contains(target$1))return target$1;var correctedTarget=unwrapHost(target$1);return correctedTarget&&parent.contains(correctedTarget)?correctedTarget:(console.error(`aria-hidden`,target$1,`in not contained inside`,parent,`. Doing nothing`),null)}).filter(function(x$3){return!!x$3})},applyAttributeToOthers=function(originalTarget,parentNode,markerName,controlAttribute){var targets=correctTargets(parentNode,Array.isArray(originalTarget)?originalTarget:[originalTarget]);markerMap[markerName]||(markerMap[markerName]=new WeakMap);var markerCounter=markerMap[markerName],hiddenNodes=[],elementsToKeep=new Set,elementsToStop=new Set(targets),keep=function(el){!el||elementsToKeep.has(el)||(elementsToKeep.add(el),keep(el.parentNode))};targets.forEach(keep);var deep=function(parent){!parent||elementsToStop.has(parent)||Array.prototype.forEach.call(parent.children,function(node$1){if(elementsToKeep.has(node$1))deep(node$1);else try{var attr=node$1.getAttribute(controlAttribute),alreadyHidden=attr!==null&&attr!==`false`,counterValue=(counterMap.get(node$1)||0)+1,markerValue=(markerCounter.get(node$1)||0)+1;counterMap.set(node$1,counterValue),markerCounter.set(node$1,markerValue),hiddenNodes.push(node$1),counterValue===1&&alreadyHidden&&uncontrolledNodes.set(node$1,!0),markerValue===1&&node$1.setAttribute(markerName,`true`),alreadyHidden||node$1.setAttribute(controlAttribute,`true`)}catch(e$3){console.error(`aria-hidden: cannot operate on `,node$1,e$3)}})};return deep(parentNode),elementsToKeep.clear(),lockCount++,function(){hiddenNodes.forEach(function(node$1){var counterValue=counterMap.get(node$1)-1,markerValue=markerCounter.get(node$1)-1;counterMap.set(node$1,counterValue),markerCounter.set(node$1,markerValue),counterValue||(uncontrolledNodes.has(node$1)||node$1.removeAttribute(controlAttribute),uncontrolledNodes.delete(node$1)),markerValue||node$1.removeAttribute(markerName)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(originalTarget,parentNode,markerName){markerName===void 0&&(markerName=`data-aria-hidden`);var targets=Array.from(Array.isArray(originalTarget)?originalTarget:[originalTarget]),activeParentNode=parentNode||getDefaultParent(originalTarget);return activeParentNode?(targets.push.apply(targets,Array.from(activeParentNode.querySelectorAll(`[aria-live]`))),applyAttributeToOthers(targets,activeParentNode,markerName,`aria-hidden`)):function(){return null}};function useHideOthers(target$1){let undo;watch(()=>unrefElement$1(target$1),el=>{el?undo=hideOthers(el):undo&&undo()}),onUnmounted(()=>{undo&&undo()})}const _sfc_main$11=defineComponent({__name:`DialogContentModal`,props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,rootContext=injectDialogRootContext(),emitsAsProps=useEmitAsProps(emits),{forwardRef,currentElement}=useForwardExpose();return useHideOthers(currentElement),(_ctx,_cache$1)=>(openBlock(),createBlock(_sfc_main$13,mergeProps({...props,...unref(emitsAsProps)},{ref:unref(forwardRef),"trap-focus":unref(rootContext).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:_cache$1[0]||=event=>{if(!event.defaultPrevented){var _unref$triggerElement;event.preventDefault(),(_unref$triggerElement=unref(rootContext).triggerElement.value)?.focus()}},onPointerDownOutside:_cache$1[1]||=event=>{let originalEvent=event.detail.originalEvent,ctrlLeftClick=originalEvent.button===0&&originalEvent.ctrlKey===!0,isRightClick=originalEvent.button===2||ctrlLeftClick;isRightClick&&event.preventDefault()},onFocusOutside:_cache$1[2]||=event=>{event.preventDefault()}}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),_sfc_main$12=defineComponent({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,emitsAsProps=useEmitAsProps(emits);useForwardExpose();let rootContext=injectDialogRootContext(),hasInteractedOutsideRef=ref(!1),hasPointerDownOutsideRef=ref(!1);return(_ctx,_cache$1)=>(openBlock(),createBlock(_sfc_main$13,mergeProps({...props,...unref(emitsAsProps)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:_cache$1[0]||=event=>{if(!event.defaultPrevented){var _unref$triggerElement2;hasInteractedOutsideRef.value||(_unref$triggerElement2=unref(rootContext).triggerElement.value)?.focus(),event.preventDefault()}hasInteractedOutsideRef.value=!1,hasPointerDownOutsideRef.value=!1},onInteractOutside:_cache$1[1]||=event=>{var _unref$triggerElement3;event.defaultPrevented||(hasInteractedOutsideRef.value=!0,event.detail.originalEvent.type===`pointerdown`&&(hasPointerDownOutsideRef.value=!0));let target$1=event.target,targetIsTrigger=(_unref$triggerElement3=unref(rootContext).triggerElement.value)?.contains(target$1);targetIsTrigger&&event.preventDefault(),event.detail.originalEvent.type===`focusin`&&hasPointerDownOutsideRef.value&&event.preventDefault()}}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16))}}),_sfc_main=defineComponent({__name:`DialogContent`,props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,rootContext=injectDialogRootContext(),emitsAsProps=useEmitAsProps(emits),{forwardRef}=useForwardExpose();return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Presence),{present:_ctx.forceMount||unref(rootContext).open.value},{default:withCtx(()=>[unref(rootContext).modal.value?(openBlock(),createBlock(_sfc_main$11,mergeProps({key:0,ref:unref(forwardRef)},{...props,...unref(emitsAsProps),..._ctx.$attrs}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16)):(openBlock(),createBlock(_sfc_main$12,mergeProps({key:1,ref:unref(forwardRef)},{...props,...unref(emitsAsProps),..._ctx.$attrs}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),useBodyLockStackCount=createSharedComposable(()=>{let map=ref(new Map),initialOverflow=ref(),locked=computed(()=>{for(let value$1 of map.value.values())if(value$1)return!0;return!1}),context$1=injectConfigProviderContext({scrollBody:ref(!0)}),stopTouchMoveListener=null,resetBodyStyle=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=initialOverflow.value??``,isIOS&&stopTouchMoveListener?.(),initialOverflow.value=void 0};return watch(locked,(val,oldVal)=>{var _context$1$scrollBody;if(!isClient)return;if(!val){oldVal&&resetBodyStyle();return}initialOverflow.value===void 0&&(initialOverflow.value=document.body.style.overflow);let verticalScrollbarWidth=window.innerWidth-document.documentElement.clientWidth,defaultConfig={padding:verticalScrollbarWidth,margin:0},config=(_context$1$scrollBody=context$1.scrollBody)?.value?typeof context$1.scrollBody.value==`object`?defu({padding:context$1.scrollBody.value.padding===!0?verticalScrollbarWidth:context$1.scrollBody.value.padding,margin:context$1.scrollBody.value.margin===!0?verticalScrollbarWidth:context$1.scrollBody.value.margin},defaultConfig):defaultConfig:{padding:0,margin:0};verticalScrollbarWidth>0&&(document.body.style.paddingRight=typeof config.padding==`number`?`${config.padding}px`:String(config.padding),document.body.style.marginRight=typeof config.margin==`number`?`${config.margin}px`:String(config.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${verticalScrollbarWidth}px`),document.body.style.overflow=`hidden`),isIOS&&(stopTouchMoveListener=useEventListener$1(document,`touchmove`,e$3=>preventDefault(e$3),{passive:!1})),nextTick(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})},{immediate:!0,flush:`sync`}),map});function useBodyScrollLock(initialState){let id=Math.random().toString(36).substring(2,7),map=useBodyLockStackCount();map.value.set(id,initialState??!1);let locked=computed({get:()=>map.value.get(id)??!1,set:value$1=>map.value.set(id,value$1)});return tryOnBeforeUnmount(()=>{map.value.delete(id)}),locked}function checkOverflowScroll(ele){let style=window.getComputedStyle(ele);if(style.overflowX===`scroll`||style.overflowY===`scroll`||style.overflowX===`auto`&&ele.clientWidth1?!0:(e$3.preventDefault&&e$3.cancelable&&e$3.preventDefault(),!1)}const _sfc_main$10=defineComponent({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean},as:{}},setup(__props){let rootContext=injectDialogRootContext();return useBodyScrollLock(!0),useForwardExpose(),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{as:_ctx.as,"as-child":_ctx.asChild,"data-state":unref(rootContext).open.value?`open`:`closed`,style:{"pointer-events":`auto`}},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),_sfc_main$1=defineComponent({__name:`DialogOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(__props){let rootContext=injectDialogRootContext(),{forwardRef}=useForwardExpose();return(_ctx,_cache$1)=>{var _unref;return(_unref=unref(rootContext))?.modal.value?(openBlock(),createBlock(unref(Presence),{key:0,present:_ctx.forceMount||unref(rootContext).open.value},{default:withCtx(()=>[createVNode(_sfc_main$10,mergeProps(_ctx.$attrs,{ref:unref(forwardRef),as:_ctx.as,"as-child":_ctx.asChild}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3},8,[`present`])):createCommentVNode(``,!0)}}}),_sfc_main$7=defineComponent({__name:`Teleport`,props:{to:{default:`body`},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(__props){let isMounted=useMounted();return(_ctx,_cache$1)=>unref(isMounted)||_ctx.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:_ctx.to,disabled:_ctx.disabled,defer:_ctx.defer},[renderSlot(_ctx.$slots,`default`)],8,[`to`,`disabled`,`defer`])):createCommentVNode(``,!0)}});function usePrimitiveElement(){let primitiveElement=ref(),currentElement=computed(()=>{var _primitiveElement$val,_primitiveElement$val2;return[`#text`,`#comment`].includes((_primitiveElement$val=primitiveElement.value)?.$el.nodeName)?(_primitiveElement$val2=primitiveElement.value)?.$el.nextElementSibling:unrefElement$1(primitiveElement)});return{primitiveElement,currentElement}}function useFormControl(el){return computed(()=>{var _unrefElement$;return toValue(el)?!!(_unrefElement$=unrefElement$1(el))?.closest(`form`):!0})}const _sfc_main$8=defineComponent({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:`fully-hidden`}},setup(__props){let props=__props,{primitiveElement,currentElement}=usePrimitiveElement(),valueState=computed(()=>props.checked??props.value);return watch(valueState,(cur,prev)=>{if(!currentElement.value)return;let input=currentElement.value,inputProto=window.HTMLInputElement.prototype,descriptor=Object.getOwnPropertyDescriptor(inputProto,`value`),setValue=descriptor.set;if(setValue&&cur!==prev){let inputEvent=new Event(`input`,{bubbles:!0}),changeEvent=new Event(`change`,{bubbles:!0});setValue.call(input,cur),input.dispatchEvent(inputEvent),input.dispatchEvent(changeEvent)}}),(_ctx,_cache$1)=>(openBlock(),createBlock(_sfc_main$9,mergeProps({ref_key:`primitiveElement`,ref:primitiveElement},{...props,..._ctx.$attrs},{as:`input`}),null,16))}}),_sfc_main$6=defineComponent({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:`fully-hidden`}},setup(__props){let props=__props,isFormArrayEmptyAndRequired=computed(()=>typeof props.value==`object`&&Array.isArray(props.value)&&props.value.length===0&&props.required),parsedValue=computed(()=>typeof props.value==`string`||typeof props.value==`number`||typeof props.value==`boolean`?[{name:props.name,value:props.value}]:typeof props.value==`object`&&Array.isArray(props.value)?props.value.flatMap((obj,index$1)=>typeof obj==`object`?Object.entries(obj).map(([key$1,value$1])=>({name:`[${props.name}][${index$1}][${key$1}]`,value:value$1})):{name:`[${props.name}][${index$1}]`,value:obj}):props.value!==null&&typeof props.value==`object`&&!Array.isArray(props.value)?Object.entries(props.value).map(([key$1,value$1])=>({name:`[${props.name}][${key$1}]`,value:value$1})):[]);return(_ctx,_cache$1)=>isFormArrayEmptyAndRequired.value?(openBlock(),createBlock(_sfc_main$8,mergeProps({key:_ctx.name},{...props,..._ctx.$attrs},{name:_ctx.name,value:_ctx.value}),null,16,[`name`,`value`])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(parsedValue.value,parsed=>(openBlock(),createBlock(_sfc_main$8,mergeProps({key:parsed.name,ref_for:!0},{...props,..._ctx.$attrs},{name:parsed.name,value:parsed.value}),null,16,[`name`,`value`]))),128))}}),_sfc_main$2=defineComponent({__name:`DialogPortal`,props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(__props){let props=__props;return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$7),normalizeProps(guardReactiveProps(props)),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16))}}),[injectSwitchRootContext,provideSwitchRootContext]=createContext(`SwitchRoot`),_sfc_main$4=defineComponent({__name:`SwitchRoot`,props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean},id:{},value:{default:`on`},asChild:{type:Boolean},as:{default:`button`},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,{disabled}=toRefs(props),modelValue=useVModel(props,`modelValue`,emit$1,{defaultValue:props.defaultValue,passive:props.modelValue===void 0});function toggleCheck(){disabled.value||(modelValue.value=!modelValue.value)}let{forwardRef,currentElement}=useForwardExpose(),isFormControl=useFormControl(currentElement),ariaLabel=computed(()=>{var _document$querySelect;return props.id&¤tElement.value?(_document$querySelect=document.querySelector(`[for="${props.id}"]`))?.innerText:void 0});return provideSwitchRootContext({modelValue,toggleCheck,disabled}),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),mergeProps(_ctx.$attrs,{id:_ctx.id,ref:unref(forwardRef),role:`switch`,type:_ctx.as===`button`?`button`:void 0,value:_ctx.value,"aria-label":_ctx.$attrs[`aria-label`]||ariaLabel.value,"aria-checked":unref(modelValue),"aria-required":_ctx.required,"data-state":unref(modelValue)?`checked`:`unchecked`,"data-disabled":unref(disabled)?``:void 0,"as-child":_ctx.asChild,as:_ctx.as,disabled:unref(disabled),onClick:toggleCheck,onKeydown:withKeys(withModifiers(toggleCheck,[`prevent`]),[`enter`])}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`,{modelValue:unref(modelValue)}),unref(isFormControl)&&_ctx.name?(openBlock(),createBlock(unref(_sfc_main$6),{key:0,type:`checkbox`,name:_ctx.name,disabled:unref(disabled),required:_ctx.required,value:_ctx.value,checked:!!unref(modelValue)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):createCommentVNode(``,!0)]),_:3},16,[`id`,`type`,`value`,`aria-label`,`aria-checked`,`aria-required`,`data-state`,`data-disabled`,`as-child`,`as`,`disabled`,`onKeydown`]))}}),_sfc_main$5=defineComponent({__name:`SwitchThumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(__props){let rootContext=injectSwitchRootContext();return useForwardExpose(),(_ctx,_cache$1)=>{var _unref$modelValue;return openBlock(),createBlock(unref(Primitive),{"data-state":(_unref$modelValue=unref(rootContext).modelValue)?.value?`checked`:`unchecked`,"data-disabled":unref(rootContext).disabled.value?``:void 0,"as-child":_ctx.asChild,as:_ctx.as},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`data-state`,`data-disabled`,`as-child`,`as`])}}});function calculateVolumeWithLinearNormalize(analyser){let dataBuffer=new Uint8Array(analyser.frequencyBinCount);analyser.getByteFrequencyData(dataBuffer);let volumeVector=[];for(let i$1=0;i$1<700;i$1+=80)volumeVector.push(dataBuffer[i$1]);let volumeSum=dataBuffer.map(v$1=>v$1**1.2).map(v$1=>v$1*1.2).reduce((acc,cur)=>acc+cur,0);return volumeSum/dataBuffer.length/100}function calculateVolumeWithMinMaxNormalize(analyser){let dataBuffer=new Uint8Array(analyser.frequencyBinCount);analyser.getByteFrequencyData(dataBuffer);let volumeVector=[];for(let i$1=0;i$1<700;i$1+=80)volumeVector.push(dataBuffer[i$1]);let amplifiedVolumeVector=dataBuffer.map(v$1=>v$1**1.5),min$1=Math.min(...amplifiedVolumeVector),max$1=Math.max(...amplifiedVolumeVector),range=max$1-min$1,normalizedVolumeVector;normalizedVolumeVector=range===0?amplifiedVolumeVector.map(()=>0):amplifiedVolumeVector.map(v$1=>(v$1-min$1)/range);let volumeSum=normalizedVolumeVector.reduce((acc,cur)=>acc+cur,0);return volumeSum/dataBuffer.length}function calculateVolume(analyser,mode=`linear`){switch(mode){case`linear`:return calculateVolumeWithLinearNormalize(analyser);case`minmax`:return calculateVolumeWithMinMaxNormalize(analyser)}}const useAudioContext=defineStore(`AudioContext`,()=>{let audioContext=new AudioContext;return{audioContext,calculateVolume}}),useSpeakingStore=defineStore(`SpeakingStore`,()=>{let nowSpeakingAvatarBorderOpacityMin=30,nowSpeakingAvatarBorderOpacityMax=100,mouthOpenSize=ref(0),nowSpeaking=ref(!1),nowSpeakingAvatarBorderOpacity=computed(()=>nowSpeaking.value?(nowSpeakingAvatarBorderOpacityMin+(nowSpeakingAvatarBorderOpacityMax-nowSpeakingAvatarBorderOpacityMin)*mouthOpenSize.value)/100:nowSpeakingAvatarBorderOpacityMin);return{mouthOpenSize,nowSpeaking,nowSpeakingAvatarBorderOpacity}});async function*readableStreamToAsyncIterator(res,func){let reader=res.getReader();try{for(;;){let{done,value:value$1}=await reader.read();if(done)return;yield func(value$1)}}finally{reader.releaseLock()}}const isPlainObject$3=value$1=>value$1!=null&&Object.getPrototypeOf(value$1)===Object.prototype,merge$2=(defaults,user)=>{let merged={...defaults};if(!user)return merged;for(let[key$1,value$1]of Object.entries(user)){if(value$1===void 0)continue;if(isPlainObject$3(merged[key$1])&&isPlainObject$3(value$1)){merged[key$1]=merge$2(merged[key$1],value$1);continue}merged[key$1]=value$1}return merged},sleep$1=async delay=>new Promise(resolve$1=>setTimeout(resolve$1,delay));var States=function(States$1){return States$1.Literal=`literal`,States$1.Special=`special`,States$1}(States||{});function peek(array,index$1,offset$1){return index$1+offset$1<0||index$1+offset$1>=array.length-1?``:array[index$1+offset$1]}function useLlmmarkerParser(options$1){let state=States.Literal,buffer$1=``;return{async consume(textPart){for(let i$1=0;i$1`?(current+=peek(textPart,i$1,1),newState=States.Literal,i$1++):current===`<`?newState=States.Special:current===`>`&&(newState=States.Literal),state===States.Literal&&newState===States.Special){if(buffer$1!==``){var _options$1$onLiteral;await(_options$1$onLiteral=options$1.onLiteral)?.call(options$1,buffer$1),buffer$1=``}}else if(state===States.Special&&newState===States.Literal&&buffer$1!==``){var _options$1$onSpecial;buffer$1+=current,await(_options$1$onSpecial=options$1.onSpecial)?.call(options$1,buffer$1),buffer$1=``}if(state===States.Literal&&newState===States.Literal){var _options$1$onLiteral2;await(_options$1$onLiteral2=options$1.onLiteral)?.call(options$1,current),buffer$1=``}else state===States.Special&&newState===States.Literal?buffer$1=``:buffer$1+=current;state=newState}},async end(){if(buffer$1!==``){var _options$1$onLiteral3,_options$1$onSpecial2;state===States.Literal?await(_options$1$onLiteral3=options$1.onLiteral)?.call(options$1,buffer$1):buffer$1.endsWith(`|>`)&&await(_options$1$onSpecial2=options$1.onSpecial)?.call(options$1,buffer$1)}}}}const htmlVoidElements=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];var Schema=class{constructor(property,normal,space$1){this.normal=normal,this.property=property,space$1&&(this.space=space$1)}};Schema.prototype.normal={},Schema.prototype.property={},Schema.prototype.space=void 0;function merge$3(definitions,space$1){let property={},normal={};for(let definition$29 of definitions)Object.assign(property,definition$29.property),Object.assign(normal,definition$29.normal);return new Schema(property,normal,space$1)}function normalize$1(value$1){return value$1.toLowerCase()}var Info=class{constructor(property,attribute){this.attribute=attribute,this.property=property}};Info.prototype.attribute=``,Info.prototype.booleanish=!1,Info.prototype.boolean=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.commaSeparated=!1,Info.prototype.defined=!1,Info.prototype.mustUseProperty=!1,Info.prototype.number=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.property=``,Info.prototype.spaceSeparated=!1,Info.prototype.space=void 0;var types_exports={};__export(types_exports,{boolean:()=>boolean,booleanish:()=>booleanish,commaOrSpaceSeparated:()=>commaOrSpaceSeparated,commaSeparated:()=>commaSeparated,number:()=>number$2,overloadedBoolean:()=>overloadedBoolean,spaceSeparated:()=>spaceSeparated});let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number$2=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const checks=Object.keys(types_exports);var DefinedInfo=class extends Info{constructor(property,attribute,mask,space$1){let index$1=-1;if(super(property,attribute),mark$1(this,`space`,space$1),typeof mask==`number`)for(;++index$14&&normal.slice(0,4)===`data`&&valid.test(value$1)){if(value$1.charAt(4)===`-`){let rest=value$1.slice(5).replace(dash,camelcase);property=`data`+rest.charAt(0).toUpperCase()+rest.slice(1)}else{let rest=value$1.slice(4);if(!dash.test(rest)){let dashes=rest.replace(cap,kebab);dashes.charAt(0)!==`-`&&(dashes=`-`+dashes),value$1=`data`+dashes}}Type=DefinedInfo}return new Type(property,value$1)}function kebab($0){return`-`+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}const html$1=merge$3([aria,html$4,xlink,xmlns,xml],`html`),svg=merge$3([aria,svg$1,xlink,xmlns,xml],`svg`),own$7={}.hasOwnProperty;function zwitch(key$1,options$1){let settings=options$1||{};function one$3(value$1,...parameters){let fn$5=one$3.invalid,handlers$3=one$3.handlers;if(value$1&&own$7.call(value$1,key$1)){let id=String(value$1[key$1]);fn$5=own$7.call(handlers$3,id)?handlers$3[id]:one$3.unknown}if(fn$5)return fn$5.call(this,value$1,...parameters)}return one$3.handlers=settings.handlers||{},one$3.invalid=settings.invalid,one$3.unknown=settings.unknown,one$3}const defaultSubsetRegex=/["&'<>`]/g,surrogatePairsRegex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,controlCharactersRegex=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,regexEscapeRegex=/[|\\{}()[\]^$+*?.]/g,subsetToRegexCache=new WeakMap;function core(value$1,options$1){if(value$1=value$1.replace(options$1.subset?charactersToExpressionCached(options$1.subset):defaultSubsetRegex,basic),options$1.subset||options$1.escapeOnly)return value$1;return value$1.replace(surrogatePairsRegex,surrogate).replace(controlCharactersRegex,basic);function surrogate(pair,index$1,all$3){return options$1.format((pair.charCodeAt(0)-55296)*1024+pair.charCodeAt(1)-56320+65536,all$3.charCodeAt(index$1+2),options$1)}function basic(character,index$1,all$3){return options$1.format(character.charCodeAt(0),all$3.charCodeAt(index$1+1),options$1)}}function charactersToExpressionCached(subset$4){let cached=subsetToRegexCache.get(subset$4);return cached||(cached=charactersToExpression(subset$4),subsetToRegexCache.set(subset$4,cached)),cached}function charactersToExpression(subset$4){let groups=[],index$1=-1;for(;++index$1`,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:`€`},dangerous=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],own$6={}.hasOwnProperty,characters={};let key;for(key in characterEntitiesHtml4)own$6.call(characterEntitiesHtml4,key)&&(characters[characterEntitiesHtml4[key]]=key);const notAlphanumericRegex=/[^\dA-Za-z]/;function toNamed(code$1,next,omit,attribute){let character=String.fromCharCode(code$1);if(own$6.call(characters,character)){let name$2=characters[character],value$1=`&`+name$2;return omit&&characterEntitiesLegacy.includes(name$2)&&!dangerous.includes(name$2)&&(!attribute||next&&next!==61&¬AlphanumericRegex.test(String.fromCharCode(next)))?value$1:value$1+`;`}return``}function formatSmart(code$1,next,options$1){let numeric=toHexadecimal(code$1,next,options$1.omitOptionalSemicolons),named$1;if((options$1.useNamedReferences||options$1.useShortestReferences)&&(named$1=toNamed(code$1,next,options$1.omitOptionalSemicolons,options$1.attribute)),(options$1.useShortestReferences||!named$1)&&options$1.useShortestReferences){let decimal=toDecimal(code$1,next,options$1.omitOptionalSemicolons);decimal.length|^->||--!>|`],commentEntitySubset=[`<`,`>`];function comment$1(node$1,_1,_2,state){return state.settings.bogusComments?``:``;function encode($0){return stringifyEntities($0,Object.assign({},state.settings.characterReferences,{subset:commentEntitySubset}))}}function doctype$1(_1,_2,_3,state){return``}function ccount(value$1,character){let source=String(value$1);if(typeof character!=`string`)throw TypeError(`Expected character`);let count$1=0,index$1=source.indexOf(character);for(;index$1!==-1;)count$1++,index$1=source.indexOf(character,index$1+character.length);return count$1}function stringify(values,options$1){let settings=options$1||{},input=values[values.length-1]===``?[...values,``]:values;return input.join((settings.padRight?` `:``)+`,`+(settings.padLeft===!1?``:` `)).trim()}function stringify$1(values){return values.join(` `).trim()}const re$1=/[ \t\n\f\r]/g;function whitespace(thing){return typeof thing==`object`?thing.type===`text`?empty$1(thing.value):!1:empty$1(thing)}function empty$1(value$1){return value$1.replace(re$1,``)===``}const siblingAfter=siblings(1),siblingBefore=siblings(-1),emptyChildren$1=[];function siblings(increment$1){return sibling;function sibling(parent,index$1,includeWhitespace){let siblings$2=parent?parent.children:emptyChildren$1,offset$1=(index$1||0)+increment$1,next=siblings$2[offset$1];if(!includeWhitespace)for(;next&&whitespace(next);)offset$1+=increment$1,next=siblings$2[offset$1];return next}}const own$5={}.hasOwnProperty;function omission(handlers$3){return omit;function omit(node$1,index$1,parent){return own$5.call(handlers$3,node$1.tagName)&&handlers$3[node$1.tagName](node$1,index$1,parent)}}const closing=omission({body:body$1,caption:headOrColgroupOrCaption,colgroup:headOrColgroupOrCaption,dd,dt:dt$1,head:headOrColgroupOrCaption,html:html$3,li,optgroup,option,p:p$3,rp:rubyElement,rt:rubyElement,tbody:tbody$1,td:cells,tfoot,th:cells,thead,tr});function headOrColgroupOrCaption(_$1,index$1,parent){let next=siblingAfter(parent,index$1,!0);return!next||next.type!==`comment`&&!(next.type===`text`&&whitespace(next.value.charAt(0)))}function html$3(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type!==`comment`}function body$1(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type!==`comment`}function p$3(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return next?next.type===`element`&&(next.tagName===`address`||next.tagName===`article`||next.tagName===`aside`||next.tagName===`blockquote`||next.tagName===`details`||next.tagName===`div`||next.tagName===`dl`||next.tagName===`fieldset`||next.tagName===`figcaption`||next.tagName===`figure`||next.tagName===`footer`||next.tagName===`form`||next.tagName===`h1`||next.tagName===`h2`||next.tagName===`h3`||next.tagName===`h4`||next.tagName===`h5`||next.tagName===`h6`||next.tagName===`header`||next.tagName===`hgroup`||next.tagName===`hr`||next.tagName===`main`||next.tagName===`menu`||next.tagName===`nav`||next.tagName===`ol`||next.tagName===`p`||next.tagName===`pre`||next.tagName===`section`||next.tagName===`table`||next.tagName===`ul`):!parent||!(parent.type===`element`&&(parent.tagName===`a`||parent.tagName===`audio`||parent.tagName===`del`||parent.tagName===`ins`||parent.tagName===`map`||parent.tagName===`noscript`||parent.tagName===`video`))}function li(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&next.tagName===`li`}function dt$1(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!!(next&&next.type===`element`&&(next.tagName===`dt`||next.tagName===`dd`))}function dd(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`dt`||next.tagName===`dd`)}function rubyElement(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`rp`||next.tagName===`rt`)}function optgroup(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&next.tagName===`optgroup`}function option(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`option`||next.tagName===`optgroup`)}function thead(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!!(next&&next.type===`element`&&(next.tagName===`tbody`||next.tagName===`tfoot`))}function tbody$1(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`tbody`||next.tagName===`tfoot`)}function tfoot(_$1,index$1,parent){return!siblingAfter(parent,index$1)}function tr(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&next.tagName===`tr`}function cells(_$1,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`td`||next.tagName===`th`)}const opening=omission({body,colgroup,head,html:html$2,tbody});function html$2(node$1){let head$1=siblingAfter(node$1,-1);return!head$1||head$1.type!==`comment`}function head(node$1){let seen$1=new Set;for(let child$1 of node$1.children)if(child$1.type===`element`&&(child$1.tagName===`base`||child$1.tagName===`title`)){if(seen$1.has(child$1.tagName))return!1;seen$1.add(child$1.tagName)}let child=node$1.children[0];return!child||child.type===`element`}function body(node$1){let head$1=siblingAfter(node$1,-1,!0);return!head$1||head$1.type!==`comment`&&!(head$1.type===`text`&&whitespace(head$1.value.charAt(0)))&&!(head$1.type===`element`&&(head$1.tagName===`meta`||head$1.tagName===`link`||head$1.tagName===`script`||head$1.tagName===`style`||head$1.tagName===`template`))}function colgroup(node$1,index$1,parent){let previous$1=siblingBefore(parent,index$1),head$1=siblingAfter(node$1,-1,!0);return parent&&previous$1&&previous$1.type===`element`&&previous$1.tagName===`colgroup`&&closing(previous$1,parent.children.indexOf(previous$1),parent)?!1:!!(head$1&&head$1.type===`element`&&head$1.tagName===`col`)}function tbody(node$1,index$1,parent){let previous$1=siblingBefore(parent,index$1),head$1=siblingAfter(node$1,-1);return parent&&previous$1&&previous$1.type===`element`&&(previous$1.tagName===`thead`||previous$1.tagName===`tbody`)&&closing(previous$1,parent.children.indexOf(previous$1),parent)?!1:!!(head$1&&head$1.type===`element`&&head$1.tagName===`tr`)}const constants={name:[[` +`))}return()=>forceMount.value||present.value||isPresent.value?h(slots.default({present:isPresent.value})[0],{ref:v$1=>{let el=unrefElement$1(v$1);return el?.hasAttribute===void 0||(el?.hasAttribute(`data-reka-popper-content-wrapper`)?node$1.value=el.firstElementChild:node$1.value=el),el}}):null}}),[injectDialogRootContext,provideDialogRootContext]=createContext(`DialogRoot`),_sfc_main$3=defineComponent({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,open$1=useVModel(props,`open`,emit$1,{defaultValue:props.defaultOpen,passive:props.open===void 0}),triggerElement=ref(),contentElement=ref(),{modal}=toRefs(props);return provideDialogRootContext({open:open$1,modal,openModal:()=>{open$1.value=!0},onOpenChange:value$1=>{open$1.value=value$1},onOpenToggle:()=>{open$1.value=!open$1.value},contentId:``,titleId:``,descriptionId:``,triggerElement,contentElement}),(_ctx,_cache$1)=>renderSlot(_ctx.$slots,`default`,{open:unref(open$1),close:()=>open$1.value=!1})}});function useEmitAsProps(emit$1){let vm=getCurrentInstance(),events=vm?.type.emits,result={};return events?.length||console.warn(`No emitted event found. Please check component: ${vm?.type.__name}`),events?.forEach(ev=>{result[toHandlerKey(camelize(ev))]=(...arg)=>emit$1(ev,...arg)}),result}function getActiveElement(){let activeElement=document.activeElement;if(activeElement==null)return null;for(;activeElement!=null&&activeElement.shadowRoot!=null&&activeElement.shadowRoot.activeElement!=null;)activeElement=activeElement.shadowRoot.activeElement;return activeElement}const SELECTION_KEYS=[`Enter`,` `],FIRST_KEYS=[`ArrowDown`,`PageUp`,`Home`],LAST_KEYS=[`ArrowUp`,`PageDown`,`End`],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],SUB_OPEN_KEYS={ltr:[...SELECTION_KEYS,`ArrowRight`],rtl:[...SELECTION_KEYS,`ArrowLeft`]};function getOpenState(open$1){return open$1?`open`:`closed`}const useFocusStackState=createGlobalState(()=>{let stack$1=ref([]);return stack$1});function createFocusScopesStack(){let stack$1=useFocusStackState();return{add(focusScope){let activeFocusScope=stack$1.value[0];focusScope!==activeFocusScope&&activeFocusScope?.pause(),stack$1.value=arrayRemove(stack$1.value,focusScope),stack$1.value.unshift(focusScope)},remove(focusScope){var _stack$1$value$;stack$1.value=arrayRemove(stack$1.value,focusScope),(_stack$1$value$=stack$1.value[0])?.resume()}}}function arrayRemove(array,item){let updatedArray=[...array],index$1=updatedArray.indexOf(item);return index$1!==-1&&updatedArray.splice(index$1,1),updatedArray}function removeLinks(items){return items.filter(item=>item.tagName!==`A`)}const AUTOFOCUS_ON_MOUNT=`focusScope.autoFocusOnMount`,AUTOFOCUS_ON_UNMOUNT=`focusScope.autoFocusOnUnmount`,EVENT_OPTIONS={bubbles:!1,cancelable:!0};function focusFirst(candidates,{select=!1}={}){let previouslyFocusedElement=getActiveElement();for(let candidate of candidates)if(focus(candidate,{select}),getActiveElement()!==previouslyFocusedElement)return!0}function getTabbableEdges(container){let candidates=getTabbableCandidates(container),first=findVisible(candidates,container),last=findVisible(candidates.reverse(),container);return[first,last]}function getTabbableCandidates(container){let nodes=[],walker=document.createTreeWalker(container,NodeFilter.SHOW_ELEMENT,{acceptNode:node$1=>{let isHiddenInput=node$1.tagName===`INPUT`&&node$1.type===`hidden`;return node$1.disabled||node$1.hidden||isHiddenInput?NodeFilter.FILTER_SKIP:node$1.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;walker.nextNode();)nodes.push(walker.currentNode);return nodes}function findVisible(elements,container){for(let element$3 of elements)if(!isHidden(element$3,{upTo:container}))return element$3}function isHidden(node$1,{upTo}){if(getComputedStyle(node$1).visibility===`hidden`)return!0;for(;node$1;){if(upTo!==void 0&&node$1===upTo)return!1;if(getComputedStyle(node$1).display===`none`)return!0;node$1=node$1.parentElement}return!1}function isSelectableInput(element$3){return element$3 instanceof HTMLInputElement&&`select`in element$3}function focus(element$3,{select=!1}={}){if(element$3&&element$3.focus){let previouslyFocusedElement=getActiveElement();element$3.focus({preventScroll:!0}),element$3!==previouslyFocusedElement&&isSelectableInput(element$3)&&select&&element$3.select()}}const _sfc_main$18=defineComponent({__name:`FocusScope`,props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,{currentRef,currentElement}=useForwardExpose(),lastFocusedElementRef=ref(null),focusScopesStack=createFocusScopesStack(),focusScope=reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});watchEffect(cleanupFn=>{if(!isClient)return;let container=currentElement.value;if(!props.trapped)return;function handleFocusIn(event){if(focusScope.paused||!container)return;let target$1=event.target;container.contains(target$1)?lastFocusedElementRef.value=target$1:focus(lastFocusedElementRef.value,{select:!0})}function handleFocusOut(event){if(focusScope.paused||!container)return;let relatedTarget=event.relatedTarget;relatedTarget!==null&&(container.contains(relatedTarget)||focus(lastFocusedElementRef.value,{select:!0}))}function handleMutations$1(mutations$1){let isLastFocusedElementExist=container.contains(lastFocusedElementRef.value);isLastFocusedElementExist||focus(container)}document.addEventListener(`focusin`,handleFocusIn),document.addEventListener(`focusout`,handleFocusOut);let mutationObserver=new MutationObserver(handleMutations$1);container&&mutationObserver.observe(container,{childList:!0,subtree:!0}),cleanupFn(()=>{document.removeEventListener(`focusin`,handleFocusIn),document.removeEventListener(`focusout`,handleFocusOut),mutationObserver.disconnect()})}),watchEffect(async cleanupFn=>{let container=currentElement.value;if(await nextTick(),!container)return;focusScopesStack.add(focusScope);let previouslyFocusedElement=getActiveElement(),hasFocusedCandidate=container.contains(previouslyFocusedElement);if(!hasFocusedCandidate){let mountEvent=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS);container.addEventListener(AUTOFOCUS_ON_MOUNT,ev=>emits(`mountAutoFocus`,ev)),container.dispatchEvent(mountEvent),mountEvent.defaultPrevented||(focusFirst(removeLinks(getTabbableCandidates(container)),{select:!0}),getActiveElement()===previouslyFocusedElement&&focus(container))}cleanupFn(()=>{container.removeEventListener(AUTOFOCUS_ON_MOUNT,ev=>emits(`mountAutoFocus`,ev));let unmountEvent=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS),unmountEventHandler=ev=>{emits(`unmountAutoFocus`,ev)};container.addEventListener(AUTOFOCUS_ON_UNMOUNT,unmountEventHandler),container.dispatchEvent(unmountEvent),setTimeout(()=>{unmountEvent.defaultPrevented||focus(previouslyFocusedElement??document.body,{select:!0}),container.removeEventListener(AUTOFOCUS_ON_UNMOUNT,unmountEventHandler),focusScopesStack.remove(focusScope)},0)})});function handleKeyDown(event){if(!props.loop&&!props.trapped||focusScope.paused)return;let isTabKey=event.key===`Tab`&&!event.altKey&&!event.ctrlKey&&!event.metaKey,focusedElement=getActiveElement();if(isTabKey&&focusedElement){let container=event.currentTarget,[first,last]=getTabbableEdges(container),hasTabbableElementsInside=first&&last;hasTabbableElementsInside?!event.shiftKey&&focusedElement===last?(event.preventDefault(),props.loop&&focus(first,{select:!0})):event.shiftKey&&focusedElement===first&&(event.preventDefault(),props.loop&&focus(last,{select:!0})):focusedElement===container&&event.preventDefault()}}return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{ref_key:`currentRef`,ref:currentRef,tabindex:`-1`,"as-child":_ctx.asChild,as:_ctx.as,onKeydown:handleKeyDown},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}});function handleAndDispatchCustomEvent(name$2,handler,detail){let target$1=detail.originalEvent.target,event=new CustomEvent(name$2,{bubbles:!1,cancelable:!0,detail});handler&&target$1.addEventListener(name$2,handler,{once:!0}),target$1.dispatchEvent(event)}const POINTER_DOWN_OUTSIDE=`dismissableLayer.pointerDownOutside`,FOCUS_OUTSIDE=`dismissableLayer.focusOutside`;function isLayerExist(layerElement,targetElement){let targetLayer=targetElement.closest(`[data-dismissable-layer]`),mainLayer=layerElement.dataset.dismissableLayer===``?layerElement:layerElement.querySelector(`[data-dismissable-layer]`),nodeList=Array.from(layerElement.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(targetLayer&&(mainLayer===targetLayer||nodeList.indexOf(mainLayer){});return watchEffect(cleanupFn=>{if(!isClient||!toValue$1(enabled$1))return;let handlePointerDown=async event=>{let target$1=event.target;if(!(!element$3?.value||!target$1)){if(isLayerExist(element$3.value,target$1)){isPointerInsideDOMTree.value=!1;return}if(event.target&&!isPointerInsideDOMTree.value){let handleAndDispatchPointerDownOutsideEvent=function(){handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE,onPointerDownOutside,eventDetail)},eventDetail={originalEvent:event};event.pointerType===`touch`?(ownerDocument.removeEventListener(`click`,handleClickRef.value),handleClickRef.value=handleAndDispatchPointerDownOutsideEvent,ownerDocument.addEventListener(`click`,handleClickRef.value,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else ownerDocument.removeEventListener(`click`,handleClickRef.value);isPointerInsideDOMTree.value=!1}},timerId=window.setTimeout(()=>{ownerDocument.addEventListener(`pointerdown`,handlePointerDown)},0);cleanupFn(()=>{window.clearTimeout(timerId),ownerDocument.removeEventListener(`pointerdown`,handlePointerDown),ownerDocument.removeEventListener(`click`,handleClickRef.value)})}),{onPointerDownCapture:()=>{toValue$1(enabled$1)&&(isPointerInsideDOMTree.value=!0)}}}function useFocusOutside(onFocusOutside,element$3,enabled$1=!0){var _element$3$value2,_globalThis3;let ownerDocument=(element$3==null||(_element$3$value2=element$3.value)==null?void 0:_element$3$value2.ownerDocument)??(_globalThis3=globalThis)?.document,isFocusInsideDOMTree=ref(!1);return watchEffect(cleanupFn=>{if(!isClient||!toValue$1(enabled$1))return;let handleFocus=async event=>{if(!element$3?.value)return;await nextTick(),await nextTick();let target$1=event.target;if(!(!element$3.value||!target$1||isLayerExist(element$3.value,target$1))&&event.target&&!isFocusInsideDOMTree.value){let eventDetail={originalEvent:event};handleAndDispatchCustomEvent(FOCUS_OUTSIDE,onFocusOutside,eventDetail)}};ownerDocument.addEventListener(`focusin`,handleFocus),cleanupFn(()=>ownerDocument.removeEventListener(`focusin`,handleFocus))}),{onFocusCapture:()=>{toValue$1(enabled$1)&&(isFocusInsideDOMTree.value=!0)},onBlurCapture:()=>{toValue$1(enabled$1)&&(isFocusInsideDOMTree.value=!1)}}}const context=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_sfc_main$19=defineComponent({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,{forwardRef,currentElement:layerElement}=useForwardExpose(),ownerDocument=computed(()=>{var _layerElement$value;return(_layerElement$value=layerElement.value)?.ownerDocument??globalThis.document}),layers=computed(()=>context.layersRoot),index$1=computed(()=>layerElement.value?Array.from(layers.value).indexOf(layerElement.value):-1),isBodyPointerEventsDisabled=computed(()=>context.layersWithOutsidePointerEventsDisabled.size>0),isPointerEventsEnabled=computed(()=>{let localLayers=Array.from(layers.value),[highestLayerWithOutsidePointerEventsDisabled]=[...context.layersWithOutsidePointerEventsDisabled].slice(-1),highestLayerWithOutsidePointerEventsDisabledIndex=localLayers.indexOf(highestLayerWithOutsidePointerEventsDisabled);return index$1.value>=highestLayerWithOutsidePointerEventsDisabledIndex}),pointerDownOutside=usePointerDownOutside(async event=>{let isPointerDownOnBranch=[...context.branches].some(branch=>branch?.contains(event.target));!isPointerEventsEnabled.value||isPointerDownOnBranch||(emits(`pointerDownOutside`,event),emits(`interactOutside`,event),await nextTick(),event.defaultPrevented||emits(`dismiss`))},layerElement),focusOutside=useFocusOutside(event=>{let isFocusInBranch=[...context.branches].some(branch=>branch?.contains(event.target));isFocusInBranch||(emits(`focusOutside`,event),emits(`interactOutside`,event),event.defaultPrevented||emits(`dismiss`))},layerElement);onKeyStroke(`Escape`,event=>{let isHighestLayer=index$1.value===layers.value.size-1;isHighestLayer&&(emits(`escapeKeyDown`,event),event.defaultPrevented||emits(`dismiss`))});let originalBodyPointerEvents;return watchEffect(cleanupFn=>{layerElement.value&&(props.disableOutsidePointerEvents&&(context.layersWithOutsidePointerEventsDisabled.size===0&&(originalBodyPointerEvents=ownerDocument.value.body.style.pointerEvents,ownerDocument.value.body.style.pointerEvents=`none`),context.layersWithOutsidePointerEventsDisabled.add(layerElement.value)),layers.value.add(layerElement.value),cleanupFn(()=>{props.disableOutsidePointerEvents&&context.layersWithOutsidePointerEventsDisabled.size===1&&(ownerDocument.value.body.style.pointerEvents=originalBodyPointerEvents)}))}),watchEffect(cleanupFn=>{cleanupFn(()=>{layerElement.value&&(layers.value.delete(layerElement.value),context.layersWithOutsidePointerEventsDisabled.delete(layerElement.value))})}),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{ref:unref(forwardRef),"as-child":_ctx.asChild,as:_ctx.as,"data-dismissable-layer":``,style:normalizeStyle({pointerEvents:isBodyPointerEventsDisabled.value?isPointerEventsEnabled.value?`auto`:`none`:void 0}),onFocusCapture:unref(focusOutside).onFocusCapture,onBlurCapture:unref(focusOutside).onBlurCapture,onPointerdownCapture:unref(pointerDownOutside).onPointerDownCapture},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),_sfc_main$17=defineComponent({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,rootContext=injectDialogRootContext(),{forwardRef,currentElement:contentElement}=useForwardExpose();return rootContext.titleId||=useId(void 0,`reka-dialog-title`),rootContext.descriptionId||=useId(void 0,`reka-dialog-description`),onMounted(()=>{rootContext.contentElement=contentElement,getActiveElement()!==document.body&&(rootContext.triggerElement.value=getActiveElement())}),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$18),{"as-child":``,loop:``,trapped:props.trapFocus,onMountAutoFocus:_cache$1[5]||=$event=>emits(`openAutoFocus`,$event),onUnmountAutoFocus:_cache$1[6]||=$event=>emits(`closeAutoFocus`,$event)},{default:withCtx(()=>[createVNode(unref(_sfc_main$19),mergeProps({id:unref(rootContext).contentId,ref:unref(forwardRef),as:_ctx.as,"as-child":_ctx.asChild,"disable-outside-pointer-events":_ctx.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":unref(rootContext).descriptionId,"aria-labelledby":unref(rootContext).titleId,"data-state":unref(getOpenState)(unref(rootContext).open.value)},_ctx.$attrs,{onDismiss:_cache$1[0]||=$event=>unref(rootContext).onOpenChange(!1),onEscapeKeyDown:_cache$1[1]||=$event=>emits(`escapeKeyDown`,$event),onFocusOutside:_cache$1[2]||=$event=>emits(`focusOutside`,$event),onInteractOutside:_cache$1[3]||=$event=>emits(`interactOutside`,$event),onPointerDownOutside:_cache$1[4]||=$event=>emits(`pointerDownOutside`,$event)}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`]))}});var getDefaultParent=function(originalTarget){if(typeof document>`u`)return null;var sampleTarget=Array.isArray(originalTarget)?originalTarget[0]:originalTarget;return sampleTarget.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(node$1){return node$1&&(node$1.host||unwrapHost(node$1.parentNode))},correctTargets=function(parent,targets){return targets.map(function(target$1){if(parent.contains(target$1))return target$1;var correctedTarget=unwrapHost(target$1);return correctedTarget&&parent.contains(correctedTarget)?correctedTarget:(console.error(`aria-hidden`,target$1,`in not contained inside`,parent,`. Doing nothing`),null)}).filter(function(x$3){return!!x$3})},applyAttributeToOthers=function(originalTarget,parentNode,markerName,controlAttribute){var targets=correctTargets(parentNode,Array.isArray(originalTarget)?originalTarget:[originalTarget]);markerMap[markerName]||(markerMap[markerName]=new WeakMap);var markerCounter=markerMap[markerName],hiddenNodes=[],elementsToKeep=new Set,elementsToStop=new Set(targets),keep=function(el){!el||elementsToKeep.has(el)||(elementsToKeep.add(el),keep(el.parentNode))};targets.forEach(keep);var deep=function(parent){!parent||elementsToStop.has(parent)||Array.prototype.forEach.call(parent.children,function(node$1){if(elementsToKeep.has(node$1))deep(node$1);else try{var attr=node$1.getAttribute(controlAttribute),alreadyHidden=attr!==null&&attr!==`false`,counterValue=(counterMap.get(node$1)||0)+1,markerValue=(markerCounter.get(node$1)||0)+1;counterMap.set(node$1,counterValue),markerCounter.set(node$1,markerValue),hiddenNodes.push(node$1),counterValue===1&&alreadyHidden&&uncontrolledNodes.set(node$1,!0),markerValue===1&&node$1.setAttribute(markerName,`true`),alreadyHidden||node$1.setAttribute(controlAttribute,`true`)}catch(e$3){console.error(`aria-hidden: cannot operate on `,node$1,e$3)}})};return deep(parentNode),elementsToKeep.clear(),lockCount++,function(){hiddenNodes.forEach(function(node$1){var counterValue=counterMap.get(node$1)-1,markerValue=markerCounter.get(node$1)-1;counterMap.set(node$1,counterValue),markerCounter.set(node$1,markerValue),counterValue||(uncontrolledNodes.has(node$1)||node$1.removeAttribute(controlAttribute),uncontrolledNodes.delete(node$1)),markerValue||node$1.removeAttribute(markerName)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(originalTarget,parentNode,markerName){markerName===void 0&&(markerName=`data-aria-hidden`);var targets=Array.from(Array.isArray(originalTarget)?originalTarget:[originalTarget]),activeParentNode=parentNode||getDefaultParent(originalTarget);return activeParentNode?(targets.push.apply(targets,Array.from(activeParentNode.querySelectorAll(`[aria-live]`))),applyAttributeToOthers(targets,activeParentNode,markerName,`aria-hidden`)):function(){return null}};function useHideOthers(target$1){let undo;watch(()=>unrefElement$1(target$1),el=>{el?undo=hideOthers(el):undo&&undo()}),onUnmounted(()=>{undo&&undo()})}const _sfc_main$15=defineComponent({__name:`DialogContentModal`,props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,rootContext=injectDialogRootContext(),emitsAsProps=useEmitAsProps(emits),{forwardRef,currentElement}=useForwardExpose();return useHideOthers(currentElement),(_ctx,_cache$1)=>(openBlock(),createBlock(_sfc_main$17,mergeProps({...props,...unref(emitsAsProps)},{ref:unref(forwardRef),"trap-focus":unref(rootContext).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:_cache$1[0]||=event=>{if(!event.defaultPrevented){var _unref$triggerElement;event.preventDefault(),(_unref$triggerElement=unref(rootContext).triggerElement.value)?.focus()}},onPointerDownOutside:_cache$1[1]||=event=>{let originalEvent=event.detail.originalEvent,ctrlLeftClick=originalEvent.button===0&&originalEvent.ctrlKey===!0,isRightClick=originalEvent.button===2||ctrlLeftClick;isRightClick&&event.preventDefault()},onFocusOutside:_cache$1[2]||=event=>{event.preventDefault()}}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),_sfc_main$16=defineComponent({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,emitsAsProps=useEmitAsProps(emits);useForwardExpose();let rootContext=injectDialogRootContext(),hasInteractedOutsideRef=ref(!1),hasPointerDownOutsideRef=ref(!1);return(_ctx,_cache$1)=>(openBlock(),createBlock(_sfc_main$17,mergeProps({...props,...unref(emitsAsProps)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:_cache$1[0]||=event=>{if(!event.defaultPrevented){var _unref$triggerElement2;hasInteractedOutsideRef.value||(_unref$triggerElement2=unref(rootContext).triggerElement.value)?.focus(),event.preventDefault()}hasInteractedOutsideRef.value=!1,hasPointerDownOutsideRef.value=!1},onInteractOutside:_cache$1[1]||=event=>{var _unref$triggerElement3;event.defaultPrevented||(hasInteractedOutsideRef.value=!0,event.detail.originalEvent.type===`pointerdown`&&(hasPointerDownOutsideRef.value=!0));let target$1=event.target,targetIsTrigger=(_unref$triggerElement3=unref(rootContext).triggerElement.value)?.contains(target$1);targetIsTrigger&&event.preventDefault(),event.detail.originalEvent.type===`focusin`&&hasPointerDownOutsideRef.value&&event.preventDefault()}}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16))}}),_sfc_main=defineComponent({__name:`DialogContent`,props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(__props,{emit:__emit}){let props=__props,emits=__emit,rootContext=injectDialogRootContext(),emitsAsProps=useEmitAsProps(emits),{forwardRef}=useForwardExpose();return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Presence),{present:_ctx.forceMount||unref(rootContext).open.value},{default:withCtx(()=>[unref(rootContext).modal.value?(openBlock(),createBlock(_sfc_main$15,mergeProps({key:0,ref:unref(forwardRef)},{...props,...unref(emitsAsProps),..._ctx.$attrs}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16)):(openBlock(),createBlock(_sfc_main$16,mergeProps({key:1,ref:unref(forwardRef)},{...props,...unref(emitsAsProps),..._ctx.$attrs}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),useBodyLockStackCount=createSharedComposable(()=>{let map=ref(new Map),initialOverflow=ref(),locked=computed(()=>{for(let value$1 of map.value.values())if(value$1)return!0;return!1}),context$1=injectConfigProviderContext({scrollBody:ref(!0)}),stopTouchMoveListener=null,resetBodyStyle=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=initialOverflow.value??``,isIOS&&stopTouchMoveListener?.(),initialOverflow.value=void 0};return watch(locked,(val,oldVal)=>{var _context$1$scrollBody;if(!isClient)return;if(!val){oldVal&&resetBodyStyle();return}initialOverflow.value===void 0&&(initialOverflow.value=document.body.style.overflow);let verticalScrollbarWidth=window.innerWidth-document.documentElement.clientWidth,defaultConfig={padding:verticalScrollbarWidth,margin:0},config=(_context$1$scrollBody=context$1.scrollBody)?.value?typeof context$1.scrollBody.value==`object`?defu({padding:context$1.scrollBody.value.padding===!0?verticalScrollbarWidth:context$1.scrollBody.value.padding,margin:context$1.scrollBody.value.margin===!0?verticalScrollbarWidth:context$1.scrollBody.value.margin},defaultConfig):defaultConfig:{padding:0,margin:0};verticalScrollbarWidth>0&&(document.body.style.paddingRight=typeof config.padding==`number`?`${config.padding}px`:String(config.padding),document.body.style.marginRight=typeof config.margin==`number`?`${config.margin}px`:String(config.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${verticalScrollbarWidth}px`),document.body.style.overflow=`hidden`),isIOS&&(stopTouchMoveListener=useEventListener$1(document,`touchmove`,e$3=>preventDefault(e$3),{passive:!1})),nextTick(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})},{immediate:!0,flush:`sync`}),map});function useBodyScrollLock(initialState){let id=Math.random().toString(36).substring(2,7),map=useBodyLockStackCount();map.value.set(id,initialState??!1);let locked=computed({get:()=>map.value.get(id)??!1,set:value$1=>map.value.set(id,value$1)});return tryOnBeforeUnmount(()=>{map.value.delete(id)}),locked}function checkOverflowScroll(ele){let style=window.getComputedStyle(ele);if(style.overflowX===`scroll`||style.overflowY===`scroll`||style.overflowX===`auto`&&ele.clientWidth1?!0:(e$3.preventDefault&&e$3.cancelable&&e$3.preventDefault(),!1)}const _sfc_main$14=defineComponent({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean},as:{}},setup(__props){let rootContext=injectDialogRootContext();return useBodyScrollLock(!0),useForwardExpose(),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),{as:_ctx.as,"as-child":_ctx.asChild,"data-state":unref(rootContext).open.value?`open`:`closed`,style:{"pointer-events":`auto`}},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),_sfc_main$1=defineComponent({__name:`DialogOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(__props){let rootContext=injectDialogRootContext(),{forwardRef}=useForwardExpose();return(_ctx,_cache$1)=>{var _unref;return(_unref=unref(rootContext))?.modal.value?(openBlock(),createBlock(unref(Presence),{key:0,present:_ctx.forceMount||unref(rootContext).open.value},{default:withCtx(()=>[createVNode(_sfc_main$14,mergeProps(_ctx.$attrs,{ref:unref(forwardRef),as:_ctx.as,"as-child":_ctx.asChild}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3},8,[`present`])):createCommentVNode(``,!0)}}}),_sfc_main$11=defineComponent({__name:`Teleport`,props:{to:{default:`body`},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(__props){let isMounted=useMounted();return(_ctx,_cache$1)=>unref(isMounted)||_ctx.forceMount?(openBlock(),createBlock(Teleport,{key:0,to:_ctx.to,disabled:_ctx.disabled,defer:_ctx.defer},[renderSlot(_ctx.$slots,`default`)],8,[`to`,`disabled`,`defer`])):createCommentVNode(``,!0)}});function useForwardProps(props){let vm=getCurrentInstance(),defaultProps=Object.keys(vm?.type.props??{}).reduce((prev,curr)=>{let defaultValue=(vm?.type.props[curr]).default;return defaultValue!==void 0&&(prev[curr]=defaultValue),prev},{}),refProps=toRef(props);return computed(()=>{let preservedProps={},assignedProps=vm?.vnode.props??{};return Object.keys(assignedProps).forEach(key$1=>{preservedProps[camelize(key$1)]=assignedProps[key$1]}),Object.keys({...defaultProps,...preservedProps}).reduce((prev,curr)=>(refProps.value[curr]!==void 0&&(prev[curr]=refProps.value[curr]),prev),{})})}function useForwardPropsEmits(props,emit$1){let parsedProps=useForwardProps(props),emitsAsProps=emit$1?useEmitAsProps(emit$1):{};return computed(()=>({...parsedProps.value,...emitsAsProps}))}function usePrimitiveElement(){let primitiveElement=ref(),currentElement=computed(()=>{var _primitiveElement$val,_primitiveElement$val2;return[`#text`,`#comment`].includes((_primitiveElement$val=primitiveElement.value)?.$el.nodeName)?(_primitiveElement$val2=primitiveElement.value)?.$el.nextElementSibling:unrefElement$1(primitiveElement)});return{primitiveElement,currentElement}}function useFormControl(el){return computed(()=>{var _unrefElement$;return toValue(el)?!!(_unrefElement$=unrefElement$1(el))?.closest(`form`):!0})}const _sfc_main$12=defineComponent({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:`fully-hidden`}},setup(__props){let props=__props,{primitiveElement,currentElement}=usePrimitiveElement(),valueState=computed(()=>props.checked??props.value);return watch(valueState,(cur,prev)=>{if(!currentElement.value)return;let input=currentElement.value,inputProto=window.HTMLInputElement.prototype,descriptor=Object.getOwnPropertyDescriptor(inputProto,`value`),setValue=descriptor.set;if(setValue&&cur!==prev){let inputEvent=new Event(`input`,{bubbles:!0}),changeEvent=new Event(`change`,{bubbles:!0});setValue.call(input,cur),input.dispatchEvent(inputEvent),input.dispatchEvent(changeEvent)}}),(_ctx,_cache$1)=>(openBlock(),createBlock(_sfc_main$13,mergeProps({ref_key:`primitiveElement`,ref:primitiveElement},{...props,..._ctx.$attrs},{as:`input`}),null,16))}}),_sfc_main$10=defineComponent({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:`fully-hidden`}},setup(__props){let props=__props,isFormArrayEmptyAndRequired=computed(()=>typeof props.value==`object`&&Array.isArray(props.value)&&props.value.length===0&&props.required),parsedValue=computed(()=>typeof props.value==`string`||typeof props.value==`number`||typeof props.value==`boolean`?[{name:props.name,value:props.value}]:typeof props.value==`object`&&Array.isArray(props.value)?props.value.flatMap((obj,index$1)=>typeof obj==`object`?Object.entries(obj).map(([key$1,value$1])=>({name:`[${props.name}][${index$1}][${key$1}]`,value:value$1})):{name:`[${props.name}][${index$1}]`,value:obj}):props.value!==null&&typeof props.value==`object`&&!Array.isArray(props.value)?Object.entries(props.value).map(([key$1,value$1])=>({name:`[${props.name}][${key$1}]`,value:value$1})):[]);return(_ctx,_cache$1)=>isFormArrayEmptyAndRequired.value?(openBlock(),createBlock(_sfc_main$12,mergeProps({key:_ctx.name},{...props,..._ctx.$attrs},{name:_ctx.name,value:_ctx.value}),null,16,[`name`,`value`])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(parsedValue.value,parsed=>(openBlock(),createBlock(_sfc_main$12,mergeProps({key:parsed.name,ref_for:!0},{...props,..._ctx.$attrs},{name:parsed.name,value:parsed.value}),null,16,[`name`,`value`]))),128))}}),_sfc_main$2=defineComponent({__name:`DialogPortal`,props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(__props){let props=__props;return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$11),normalizeProps(guardReactiveProps(props)),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},16))}}),[injectSwitchRootContext,provideSwitchRootContext]=createContext(`SwitchRoot`),_sfc_main$4=defineComponent({__name:`SwitchRoot`,props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean},id:{},value:{default:`on`},asChild:{type:Boolean},as:{default:`button`},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,{disabled}=toRefs(props),modelValue=useVModel(props,`modelValue`,emit$1,{defaultValue:props.defaultValue,passive:props.modelValue===void 0});function toggleCheck(){disabled.value||(modelValue.value=!modelValue.value)}let{forwardRef,currentElement}=useForwardExpose(),isFormControl=useFormControl(currentElement),ariaLabel=computed(()=>{var _document$querySelect;return props.id&¤tElement.value?(_document$querySelect=document.querySelector(`[for="${props.id}"]`))?.innerText:void 0});return provideSwitchRootContext({modelValue,toggleCheck,disabled}),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(Primitive),mergeProps(_ctx.$attrs,{id:_ctx.id,ref:unref(forwardRef),role:`switch`,type:_ctx.as===`button`?`button`:void 0,value:_ctx.value,"aria-label":_ctx.$attrs[`aria-label`]||ariaLabel.value,"aria-checked":unref(modelValue),"aria-required":_ctx.required,"data-state":unref(modelValue)?`checked`:`unchecked`,"data-disabled":unref(disabled)?``:void 0,"as-child":_ctx.asChild,as:_ctx.as,disabled:unref(disabled),onClick:toggleCheck,onKeydown:withKeys(withModifiers(toggleCheck,[`prevent`]),[`enter`])}),{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`,{modelValue:unref(modelValue)}),unref(isFormControl)&&_ctx.name?(openBlock(),createBlock(unref(_sfc_main$10),{key:0,type:`checkbox`,name:_ctx.name,disabled:unref(disabled),required:_ctx.required,value:_ctx.value,checked:!!unref(modelValue)},null,8,[`name`,`disabled`,`required`,`value`,`checked`])):createCommentVNode(``,!0)]),_:3},16,[`id`,`type`,`value`,`aria-label`,`aria-checked`,`aria-required`,`data-state`,`data-disabled`,`as-child`,`as`,`disabled`,`onKeydown`]))}}),_sfc_main$5=defineComponent({__name:`SwitchThumb`,props:{asChild:{type:Boolean},as:{default:`span`}},setup(__props){let rootContext=injectSwitchRootContext();return useForwardExpose(),(_ctx,_cache$1)=>{var _unref$modelValue;return openBlock(),createBlock(unref(Primitive),{"data-state":(_unref$modelValue=unref(rootContext).modelValue)?.value?`checked`:`unchecked`,"data-disabled":unref(rootContext).disabled.value?``:void 0,"as-child":_ctx.asChild,as:_ctx.as},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`data-state`,`data-disabled`,`as-child`,`as`])}}});(function(){"use strict";var t;try{if(typeof document<`u`){var a$2=document.createElement(`style`);a$2.nonce=(t=document.head.querySelector(`meta[property=csp-nonce]`))?.content,a$2.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(a$2)}}catch(r$2){console.error(`vite-plugin-css-injected-by-js`,r$2)}})();const rt$1=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const ut$1=e$3=>typeof e$3<`u`;function st$1(e$3){return JSON.parse(JSON.stringify(e$3))}function $e(e$3,n$2,s$1,i$1={}){var t,w$1,d$2;let{clone:v$1=!1,passive:D$1=!1,eventName:$$1,deep:T$1=!1,defaultValue:r$2,shouldEmit:l$1}=i$1,h$3=getCurrentInstance(),m$2=s$1||h$3?.emit||(t=h$3?.$emit)?.bind(h$3)||(d$2=(w$1=h$3?.proxy)?.$emit)?.bind(h$3?.proxy),u$1=$$1;n$2||=`modelValue`,u$1||=`update:${n$2.toString()}`;let L$1=a$2=>v$1?typeof v$1==`function`?v$1(a$2):st$1(a$2):a$2,H$2=()=>ut$1(e$3[n$2])?L$1(e$3[n$2]):r$2,p$5=a$2=>{l$1?l$1(a$2)&&m$2(u$1,a$2):m$2(u$1,a$2)};if(D$1){let a$2=H$2(),c$4=ref(a$2),f$3=!1;return watch(()=>e$3[n$2],y$2=>{f$3||(f$3=!0,c$4.value=L$1(y$2),nextTick(()=>f$3=!1))}),watch(c$4,y$2=>{!f$3&&(y$2!==e$3[n$2]||T$1)&&p$5(y$2)},{deep:T$1}),c$4}else return computed({get(){return H$2()},set(a$2){p$5(a$2)}})}const[ee$1,ct$1]=createContext(`DrawerRoot`),Ee=new WeakMap;function C$2(e$3,n$2,s$1=!1){if(!e$3||!(e$3 instanceof HTMLElement)||!n$2)return;let i$1={};Object.entries(n$2).forEach(([t,w$1])=>{if(t.startsWith(`--`)){e$3.style.setProperty(t,w$1);return}i$1[t]=e$3.style[t],e$3.style[t]=w$1}),!s$1&&Ee.set(e$3,i$1)}function dt$2(e$3,n$2){if(!e$3||!(e$3 instanceof HTMLElement))return;let s$1=Ee.get(e$3);s$1&&Object.entries(s$1).forEach(([i$1,t])=>{e$3.style[i$1]=t})}function ie$1(e$3,n$2){let s$1=window.getComputedStyle(e$3),i$1=s$1.transform||s$1.webkitTransform||s$1.mozTransform,t=i$1.match(/^matrix3d\((.+)\)$/);return t?Number.parseFloat(t[1].split(`, `)[_$1(n$2)?13:12]):(t=i$1.match(/^matrix\((.+)\)$/),t?Number.parseFloat(t[1].split(`, `)[_$1(n$2)?5:4]):null)}function vt$1(e$3){return 8*(Math.log(e$3+1)-2)}function _$1(e$3){switch(e$3){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e$3}}function de$1(e$3,n$2){if(!e$3)return()=>{};let s$1=e$3.style.cssText;return Object.assign(e$3.style,n$2),()=>{e$3.style.cssText=s$1}}function ft$1(...e$3){return(...n$2)=>{for(let s$1 of e$3)typeof s$1==`function`&&s$1(...n$2)}}const O$1={DURATION:.5,EASE:[.32,.72,0,1]},_e$1=.4,pt$1=.25,gt$1=100,Be$1=8,re$2=16,Ce$1=26,Oe$1=`vaul-dragging`;function mt$1({activeSnapPoint:e$3,snapPoints:n$2,drawerRef:s$1,overlayRef:i$1,fadeFromIndex:t,onSnapPointChange:w$1,direction:d$2}){let v$1=ref(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function D$1(){v$1.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}onMounted(()=>{typeof window<`u`&&window.addEventListener(`resize`,D$1)}),onBeforeUnmount(()=>{typeof window<`u`&&window.removeEventListener(`resize`,D$1)});let $$1=computed(()=>(n$2.value&&e$3.value===n$2.value[n$2.value.length-1])??null),T$1=computed(()=>n$2.value&&n$2.value.length>0&&(t?.value||t?.value===0)&&!Number.isNaN(t?.value)&&n$2.value[t?.value??-1]===e$3.value||!n$2.value),r$2=computed(()=>{var p$5;return(p$5=n$2.value)?.findIndex(a$2=>a$2===e$3.value)??null}),l$1=computed(()=>{var p$5;return(p$5=n$2.value)?.map(a$2=>{let c$4=typeof a$2==`string`,f$3=0;if(c$4&&(f$3=Number.parseInt(a$2,10)),_$1(d$2.value)){let P$1=c$4?f$3:v$1.value?a$2*v$1.value.innerHeight:0;return v$1.value?d$2.value===`bottom`?v$1.value.innerHeight-P$1:-v$1.value.innerHeight+P$1:P$1}let y$2=c$4?f$3:v$1.value?a$2*v$1.value.innerWidth:0;return v$1.value?d$2.value===`right`?v$1.value.innerWidth-y$2:-v$1.value.innerWidth+y$2:y$2})??[]}),h$3=computed(()=>{var p$5;return r$2.value===null?null:(p$5=l$1.value)?.[r$2.value]}),m$2=p$5=>{var c$4,f$3,y$2,P$1;let a$2=(c$4=l$1.value)?.findIndex(x$3=>x$3===p$5)??null;nextTick(()=>{var x$3;w$1(a$2,l$1.value),C$2((x$3=s$1.value)?.$el,{transition:`transform ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`,transform:_$1(d$2.value)?`translate3d(0, ${p$5}px, 0)`:`translate3d(${p$5}px, 0, 0)`})}),l$1.value&&a$2!==l$1.value.length-1&&a$2!==t?.value?C$2((f$3=i$1.value)?.$el,{transition:`opacity ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`,opacity:`0`}):C$2((y$2=i$1.value)?.$el,{transition:`opacity ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`,opacity:`1`}),e$3.value=a$2===null?null:(P$1=n$2.value)?.[a$2]??null};watch([e$3,l$1,n$2],()=>{var p$5;if(e$3.value){let a$2=(p$5=n$2.value)?.findIndex(c$4=>c$4===e$3.value)??-1;l$1.value&&a$2!==-1&&typeof l$1.value[a$2]==`number`&&m$2(l$1.value[a$2])}},{immediate:!0});function u$1({draggedDistance:p$5,closeDrawer:a$2,velocity:c$4,dismissible:f$3}){var j$1,G$1,z$2;if(t.value===void 0)return;let y$2=d$2.value===`bottom`||d$2.value===`right`?(h$3.value??0)-p$5:(h$3.value??0)+p$5,P$1=r$2.value===t.value-1,x$3=r$2.value===0,W$1=p$5>0;if(P$1&&C$2((j$1=i$1.value)?.$el,{transition:`opacity ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`}),c$4>2&&!W$1){f$3?a$2():m$2(l$1.value[0]);return}if(c$4>2&&W$1&&l$1&&n$2.value){m$2(l$1.value[n$2.value.length-1]);return}let te$2=(G$1=l$1.value)?.reduce((M$1,g$2)=>typeof M$1!=`number`||typeof g$2!=`number`?M$1:Math.abs(g$2-y$2)_e$1&&Math.abs(p$5)0&&$$1){m$2(l$1.value[((z$2=n$2.value)?.length??0)-1]);return}if(x$3&&M$1<0&&f$3&&a$2(),r$2.value===null)return;m$2(l$1.value[r$2.value+M$1]);return}m$2(te$2)}function L$1({draggedDistance:p$5}){var c$4;if(h$3.value===null)return;let a$2=d$2.value===`bottom`||d$2.value===`right`?h$3.value-p$5:h$3.value+p$5;(d$2.value===`bottom`||d$2.value===`right`)&&a$2l$1.value[l$1.value.length-1]||C$2((c$4=s$1.value)?.$el,{transform:_$1(d$2.value)?`translate3d(0, ${a$2}px, 0)`:`translate3d(${a$2}px, 0, 0)`})}function H$2(p$5,a$2){if(!n$2.value||typeof r$2.value!=`number`||!l$1.value||t.value===void 0)return null;let c$4=r$2.value===t.value-1;if(r$2.value>=t.value&&a$2)return 0;if(c$4&&!a$2)return 1;if(!T$1.value&&!c$4)return null;let y$2=c$4?r$2.value+1:r$2.value-1,P$1=c$4?l$1.value[y$2]-l$1.value[y$2-1]:l$1.value[y$2+1]-l$1.value[y$2],x$3=p$5/Math.abs(P$1);return c$4?1-x$3:x$3}return{isLastSnapPoint:$$1,shouldFade:T$1,getPercentageDragged:H$2,activeSnapPointIndex:r$2,onRelease:u$1,onDrag:L$1,snapPointsOffset:l$1}}function Te$1(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let Q$1=null;function wt$1(e$3){let{isOpen:n$2,modal:s$1,nested:i$1,hasBeenOpened:t,preventScrollRestoration:w$1,noBodyStyles:d$2}=e$3,v$1=ref(typeof window<`u`?window.location.href:``),D$1=ref(0);function $$1(){if(Te$1()&&Q$1===null&&n$2.value&&!d$2.value){Q$1={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:r$2,innerHeight:l$1}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-D$1.value}px`,left:`${-r$2}px`,right:`0px`,height:`auto`}),setTimeout(()=>{requestAnimationFrame(()=>{let h$3=l$1-window.innerHeight;h$3&&D$1.value>=l$1&&(document.body.style.top=`-${D$1.value+h$3}px`)})},300)}}function T$1(){if(Te$1()&&Q$1!==null&&!d$2.value){let r$2=-Number.parseInt(document.body.style.top,10),l$1=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,Q$1),window.requestAnimationFrame(()=>{if(w$1.value&&v$1.value!==window.location.href){v$1.value=window.location.href;return}window.scrollTo(l$1,r$2)}),Q$1=null}}return onMounted(()=>{function r$2(){D$1.value=window.scrollY}r$2(),window.addEventListener(`scroll`,r$2),onUnmounted(()=>{window.removeEventListener(`scroll`,r$2)})}),watch([n$2,t,v$1],()=>{i$1.value||!t.value||(n$2.value?(window.matchMedia(`(display-mode: standalone)`).matches||$$1(),s$1.value||setTimeout(()=>{T$1()},500)):T$1())}),{restorePositionSetting:T$1}}function ht$1(e$3,n$2){return e$3&&e$3.value?e$3:n$2}function yt$1(e$3){let{emitDrag:n$2,emitRelease:s$1,emitClose:i$1,emitOpenChange:t,open:w$1,dismissible:d$2,nested:v$1,modal:D$1,shouldScaleBackground:$$1,setBackgroundColorOnScale:T$1,scrollLockTimeout:r$2,closeThreshold:l$1,activeSnapPoint:h$3,fadeFromIndex:m$2,direction:u$1,noBodyStyles:L$1,handleOnly:H$2,preventScrollRestoration:p$5}=e$3,a$2=ref(w$1.value??!1),c$4=ref(!1),f$3=ref(!1),y$2=ref(!1),P$1=ref(null),x$3=ref(null),W$1=ref(null),te$2=ref(null),V$1=ref(null),j$1=ref(!1),G$1=ref(null),z$2=ref(0),M$1=ref(!1);ref(0);let g$2=ref(null);ref(0);let pe$2=computed(()=>{var o$1;return(o$1=g$2.value)?.$el.getBoundingClientRect().height||0}),U=ht$1(e$3.snapPoints,ref(void 0)),Ne$1=computed(()=>{var o$1;return U&&((o$1=U.value)?.length??0)>0}),Ae$1=ref(null),{activeSnapPointIndex:ge$1,onRelease:xe,snapPointsOffset:He$1,onDrag:Ue,shouldFade:me$1,getPercentageDragged:Le$1}=mt$1({snapPoints:U,activeSnapPoint:h$3,drawerRef:g$2,fadeFromIndex:m$2,overlayRef:P$1,onSnapPointChange:Me$2,direction:u$1});function Me$2(o$1,R$1){U.value&&o$1===R$1.length-1&&(x$3.value=new Date)}wt$1({isOpen:a$2,modal:D$1,nested:v$1,hasBeenOpened:c$4,noBodyStyles:L$1,preventScrollRestoration:p$5});function ne$1(){return(window.innerWidth-Ce$1)/window.innerWidth}function we$1(o$1,R$1){var k$4;if(!o$1)return!1;let b$3=o$1,B$2=(k$4=window.getSelection())?.toString(),E$2=g$2.value?ie$1(g$2.value.$el,u$1.value):null,A$1=new Date;if(b$3.hasAttribute(`data-vaul-no-drag`)||b$3.closest(`[data-vaul-no-drag]`))return!1;if(u$1.value===`right`||u$1.value===`left`)return!0;if(x$3.value&&A$1.getTime()-x$3.value.getTime()<500)return!1;if(E$2!==null&&(u$1.value===`bottom`?E$2>0:E$2<0))return!0;if(B$2&&B$2.length>0)return!1;if(V$1.value&&A$1.getTime()-V$1.value.getTime()b$3.clientHeight){if(b$3.scrollTop!==0)return V$1.value=new Date,!1;if(b$3.getAttribute(`role`)===`dialog`)return!0}b$3=b$3.parentNode}return!0}function ke$1(o$1){!d$2.value&&!U.value||g$2.value&&!g$2.value.$el.contains(o$1.target)||(f$3.value=!0,W$1.value=new Date,o$1.target.setPointerCapture(o$1.pointerId),z$2.value=_$1(u$1.value)?o$1.clientY:o$1.clientX)}function Ie(o$1){var R$1,b$3,B$2,E$2,A$1,k$4;if(g$2.value&&f$3.value){let X$2=u$1.value===`bottom`||u$1.value===`right`?1:-1,ae$1=(z$2.value-(_$1(u$1.value)?o$1.clientY:o$1.clientX))*X$2,le$2=ae$1>0,ye$1=U.value&&!d$2.value&&!le$2;if(ye$1&&ge$1.value===0)return;let ce$2=Math.abs(ae$1),Se$1=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`),q$1=ce$2/pe$2.value,De=Le$1(ce$2,le$2);if(De!==null&&(q$1=De),ye$1&&q$1>=1||!j$1.value&&!we$1(o$1.target,le$2))return;if((R$1=g$2?.value)==null||R$1.$el.classList.add(Oe$1),j$1.value=!0,C$2((b$3=g$2.value)?.$el,{transition:`none`}),C$2((B$2=P$1.value)?.$el,{transition:`none`}),U.value&&Ue({draggedDistance:ae$1}),le$2&&!U.value){let Y$2=vt$1(ae$1),oe$2=Math.min(Y$2*-1,0)*X$2;C$2((E$2=g$2.value)?.$el,{transform:_$1(u$1.value)?`translate3d(0, ${oe$2}px, 0)`:`translate3d(${oe$2}px, 0, 0)`});return}let qe$1=1-q$1;if((me$1.value||m$2.value&&ge$1.value===m$2.value-1)&&(n$2(q$1),C$2((A$1=P$1.value)?.$el,{opacity:`${qe$1}`,transition:`none`},!0)),Se$1&&P$1.value&&$$1.value){let Y$2=Math.min(ne$1()+q$1*(1-ne$1()),1),oe$2=8-q$1*8,be$2=Math.max(0,14-q$1*14);C$2(Se$1,{borderRadius:`${oe$2}px`,transform:_$1(u$1.value)?`scale(${Y$2}) translate3d(0, ${be$2}px, 0)`:`scale(${Y$2}) translate3d(${be$2}px, 0, 0)`,transition:`none`},!0)}if(!U.value){let Y$2=ce$2*X$2;C$2((k$4=g$2.value)?.$el,{transform:_$1(u$1.value)?`translate3d(0, ${Y$2}px, 0)`:`translate3d(${Y$2}px, 0, 0)`})}}}function he$2(){var b$3;if(!g$2.value)return;let o$1=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`),R$1=ie$1(g$2.value.$el,u$1.value);C$2(g$2.value.$el,{transform:`translate3d(0, 0, 0)`,transition:`transform ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`}),C$2((b$3=P$1.value)?.$el,{transition:`opacity ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`,opacity:`1`}),$$1.value&&R$1&&R$1>0&&a$2.value&&C$2(o$1,{borderRadius:`${Be$1}px`,overflow:`hidden`,..._$1(u$1.value)?{transform:`scale(${ne$1()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${ne$1()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${O$1.DURATION}s`,transitionTimingFunction:`cubic-bezier(${O$1.EASE.join(`,`)})`},!0)}function K$1(o$1){g$2.value&&(i$1(),o$1||(a$2.value=!1),window.setTimeout(()=>{U.value&&(h$3.value=U.value[0])},O$1.DURATION*1e3))}watchEffect(()=>{if(!a$2.value&&$$1.value&&rt$1){let o$1=setTimeout(()=>{dt$2(document.body)},200);return()=>clearTimeout(o$1)}}),watch(w$1,()=>{a$2.value=w$1.value,w$1.value||K$1()});function We(o$1){if(!f$3.value||!g$2.value)return;g$2.value.$el.classList.remove(Oe$1),j$1.value=!1,f$3.value=!1,te$2.value=new Date;let R$1=ie$1(g$2.value.$el,u$1.value);if(!we$1(o$1.target,!1)||!R$1||Number.isNaN(R$1)||W$1.value===null)return;let b$3=te$2.value.getTime()-W$1.value.getTime(),B$2=z$2.value-(_$1(u$1.value)?o$1.clientY:o$1.clientX),E$2=Math.abs(B$2)/b$3;if(E$2>.05&&(y$2.value=!0,window.setTimeout(()=>{y$2.value=!1},200)),U.value){let k$4=u$1.value===`bottom`||u$1.value===`right`?1:-1;xe({draggedDistance:B$2*k$4,closeDrawer:K$1,velocity:E$2,dismissible:d$2.value}),s$1(!0);return}if(u$1.value===`bottom`||u$1.value===`right`?B$2>0:B$2<0){he$2(),s$1(!0);return}if(E$2>_e$1){K$1(),s$1(!1);return}let A$1=Math.min(g$2.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(R$1>=A$1*l$1.value){K$1(),s$1(!1);return}s$1(!0),he$2()}watch(a$2,o$1=>{o$1&&(x$3.value=new Date),t(o$1)},{immediate:!0});function Ve$1(o$1){var B$2,E$2;let R$1=o$1?(window.innerWidth-re$2)/window.innerWidth:1,b$3=o$1?-16:0;G$1.value&&window.clearTimeout(G$1.value),C$2((B$2=g$2.value)?.$el,{transition:`transform ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`,transform:`scale(${R$1}) translate3d(0, ${b$3}px, 0)`}),!o$1&&(E$2=g$2.value)!=null&&E$2.$el&&(G$1.value=window.setTimeout(()=>{var k$4,X$2;let A$1=ie$1((k$4=g$2.value)?.$el,u$1.value);C$2((X$2=g$2.value)?.$el,{transition:`none`,transform:_$1(u$1.value)?`translate3d(0, ${A$1}px, 0)`:`translate3d(${A$1}px, 0, 0)`})},500))}function je(o$1){var A$1;if(o$1<0)return;let R$1=_$1(u$1.value)?window.innerHeight:window.innerWidth,b$3=(R$1-re$2)/R$1,B$2=b$3+o$1*(1-b$3),E$2=-16+o$1*re$2;C$2((A$1=g$2.value)?.$el,{transform:_$1(u$1.value)?`scale(${B$2}) translate3d(0, ${E$2}px, 0)`:`scale(${B$2}) translate3d(${E$2}px, 0, 0)`,transition:`none`})}function ze$1(o$1){var E$2;let R$1=_$1(u$1.value)?window.innerHeight:window.innerWidth,b$3=o$1?(R$1-re$2)/R$1:1,B$2=o$1?-16:0;o$1&&C$2((E$2=g$2.value)?.$el,{transition:`transform ${O$1.DURATION}s cubic-bezier(${O$1.EASE.join(`,`)})`,transform:_$1(u$1.value)?`scale(${b$3}) translate3d(0, ${B$2}px, 0)`:`scale(${b$3}) translate3d(${B$2}px, 0, 0)`})}return{open:w$1,isOpen:a$2,modal:D$1,keyboardIsOpen:M$1,hasBeenOpened:c$4,drawerRef:g$2,drawerHeightRef:pe$2,overlayRef:P$1,handleRef:Ae$1,isDragging:f$3,dragStartTime:W$1,isAllowedToDrag:j$1,snapPoints:U,activeSnapPoint:h$3,hasSnapPoints:Ne$1,pointerStart:z$2,dismissible:d$2,snapPointsOffset:He$1,direction:u$1,shouldFade:me$1,fadeFromIndex:m$2,shouldScaleBackground:$$1,setBackgroundColorOnScale:T$1,onPress:ke$1,onDrag:Ie,onRelease:We,closeDrawer:K$1,onNestedDrag:je,onNestedRelease:ze$1,onNestedOpenChange:Ve$1,emitClose:i$1,emitDrag:n$2,emitRelease:s$1,emitOpenChange:t,nested:v$1,handleOnly:H$2,noBodyStyles:L$1}}const St=defineComponent({__name:`DrawerRoot`,props:{activeSnapPoint:{default:void 0},closeThreshold:{default:pt$1},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:gt$1},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$3,{expose:n$2,emit:s$1}){let i$1=e$3,t=s$1;useSlots();let w$1=computed(()=>i$1.fadeFromIndex??(i$1.snapPoints&&i$1.snapPoints.length-1)),d$2=$e(i$1,`open`,t,{defaultValue:i$1.defaultOpen,passive:i$1.open===void 0}),v$1=$e(i$1,`activeSnapPoint`,t,{passive:i$1.activeSnapPoint===void 0}),D$1={emitDrag:m$2=>t(`drag`,m$2),emitRelease:m$2=>t(`release`,m$2),emitClose:()=>t(`close`),emitOpenChange:m$2=>{t(`update:open`,m$2),setTimeout(()=>{t(`animationEnd`,m$2)},O$1.DURATION*1e3)}},{closeDrawer:$$1,hasBeenOpened:T$1,modal:r$2,isOpen:l$1}=ct$1(yt$1({...D$1,...toRefs(i$1),activeSnapPoint:v$1,fadeFromIndex:w$1,open:d$2}));function h$3(m$2){if(d$2.value!==void 0){D$1.emitOpenChange(m$2);return}l$1.value=m$2,m$2?T$1.value=!0:$$1()}return n$2({open:l$1}),(m$2,u$1)=>(openBlock(),createBlock(unref(_sfc_main$3),{open:unref(l$1),modal:unref(r$2),"onUpdate:open":h$3},{default:withCtx(()=>[renderSlot(m$2.$slots,`default`,{open:unref(l$1)})]),_:3},8,[`open`,`modal`]))}}),_t$1=defineComponent({__name:`DrawerRootNested`,props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean},setBackgroundColorOnScale:{type:Boolean},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean},preventScrollRestoration:{type:Boolean},snapPoints:{},fadeFromIndex:{}},emits:[`drag`,`release`,`close`,`update:open`,`update:activeSnapPoint`,`animationEnd`],setup(e$3,{emit:n$2}){let s$1=e$3,i$1=n$2,{onNestedDrag:t,onNestedOpenChange:w$1,onNestedRelease:d$2}=ee$1();function v$1(){w$1(!1)}function D$1(r$2){t(r$2)}function $$1(r$2){r$2&&w$1(r$2),i$1(`update:open`,r$2)}let T$1=useForwardPropsEmits(s$1,i$1);return(r$2,l$1)=>(openBlock(),createBlock(St,mergeProps(unref(T$1),{nested:``,onClose:v$1,onDrag:D$1,onRelease:unref(d$2),"onUpdate:open":$$1}),{default:withCtx(()=>[renderSlot(r$2.$slots,`default`)]),_:3},16,[`onRelease`]))}}),Bt=defineComponent({__name:`DrawerOverlay`,setup(e$3){let{overlayRef:n$2,hasSnapPoints:s$1,isOpen:i$1,shouldFade:t}=ee$1();return(w$1,d$2)=>(openBlock(),createBlock(unref(_sfc_main$1),{ref_key:`overlayRef`,ref:n$2,"data-vaul-overlay":``,"data-vaul-snap-points":unref(i$1)&&unref(s$1)?`true`:`false`,"data-vaul-snap-points-overlay":unref(i$1)&&unref(t)?`true`:`false`},null,8,[`data-vaul-snap-points`,`data-vaul-snap-points-overlay`]))}}),Dt$1=()=>()=>{};function bt$1(){let{direction:e$3,isOpen:n$2,shouldScaleBackground:s$1,setBackgroundColorOnScale:i$1,noBodyStyles:t}=ee$1(),w$1=ref(null),d$2=ref(document.body.style.backgroundColor);function v$1(){return(window.innerWidth-Ce$1)/window.innerWidth}watchEffect(D$1=>{if(n$2.value&&s$1.value){w$1.value&&clearTimeout(w$1.value);let $$1=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!$$1)return;ft$1(i$1.value&&!t.value?de$1(document.body,{background:`black`}):Dt$1,de$1($$1,{transformOrigin:_$1(e$3.value)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${O$1.DURATION}s`,transitionTimingFunction:`cubic-bezier(${O$1.EASE.join(`,`)})`}));let T$1=de$1($$1,{borderRadius:`${Be$1}px`,overflow:`hidden`,..._$1(e$3.value)?{transform:`scale(${v$1()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${v$1()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});D$1(()=>{T$1(),w$1.value=window.setTimeout(()=>{d$2.value?document.body.style.background=d$2.value:document.body.style.removeProperty(`background`)},O$1.DURATION*1e3)})}},{flush:`pre`})}const Ct=defineComponent({__name:`DrawerContent`,setup(e$3){let{open:n$2,isOpen:s$1,snapPointsOffset:i$1,hasSnapPoints:t,drawerRef:w$1,onPress:d$2,onDrag:v$1,onRelease:D$1,modal:$$1,emitOpenChange:T$1,dismissible:r$2,keyboardIsOpen:l$1,closeDrawer:h$3,direction:m$2,handleOnly:u$1}=ee$1();bt$1();let L$1=ref(!1),H$2=computed(()=>i$1.value&&i$1.value.length>0?`${i$1.value[0]}px`:`0`);function p$5(f$3){if(!$$1.value||f$3.defaultPrevented){f$3.preventDefault();return}l$1.value&&=!1,r$2.value?T$1(!1):f$3.preventDefault()}function a$2(f$3){u$1.value||d$2(f$3)}function c$4(f$3){u$1.value||v$1(f$3)}return watchEffect(()=>{t.value&&window.requestAnimationFrame(()=>{L$1.value=!0})}),(f$3,y$2)=>(openBlock(),createBlock(unref(_sfc_main),{ref_key:`drawerRef`,ref:w$1,"data-vaul-drawer":``,"data-vaul-drawer-direction":unref(m$2),"data-vaul-delayed-snap-points":L$1.value?`true`:`false`,"data-vaul-snap-points":unref(s$1)&&unref(t)?`true`:`false`,style:normalizeStyle({"--snap-point-height":H$2.value}),onPointerdown:a$2,onPointermove:c$4,onPointerup:unref(D$1),onPointerDownOutside:p$5,onOpenAutoFocus:y$2[0]||=withModifiers(()=>{},[`prevent`]),onEscapeKeyDown:y$2[1]||=P$1=>{unref(r$2)||P$1.preventDefault()}},{default:withCtx(()=>[renderSlot(f$3.$slots,`default`)]),_:3},8,[`data-vaul-drawer-direction`,`data-vaul-delayed-snap-points`,`data-vaul-snap-points`,`style`,`onPointerup`]))}}),$t$1=[`data-vaul-drawer-visible`],Ot$1={"data-vaul-handle-hitarea":``,"aria-hidden":`true`},Tt$1=250,Pt$1=120,Nt=defineComponent({__name:`DrawerHandle`,props:{preventCycle:{type:Boolean,default:!1}},setup(e$3){let n$2=e$3,{onPress:s$1,onDrag:i$1,handleRef:t,handleOnly:w$1,isOpen:d$2,snapPoints:v$1,activeSnapPoint:D$1,isDragging:$$1,dismissible:T$1,closeDrawer:r$2}=ee$1(),l$1=ref(null),h$3=ref(!1);function m$2(){if(h$3.value){H$2();return}window.setTimeout(()=>{u$1()},Pt$1)}function u$1(){if($$1.value||n$2.preventCycle||h$3.value){H$2();return}if(H$2(),!v$1.value||v$1.value.length===0){T$1.value||r$2();return}let c$4=D$1.value===v$1.value[v$1.value.length-1];if(c$4&&T$1.value){r$2();return}let f$3=v$1.value.findIndex(P$1=>P$1===D$1.value);if(f$3===-1)return;let y$2=c$4?0:f$3+1;D$1.value=v$1.value[y$2]}function L$1(){l$1.value=window.setTimeout(()=>{h$3.value=!0},Tt$1)}function H$2(){l$1.value&&window.clearTimeout(l$1.value),h$3.value=!1}function p$5(c$4){w$1.value&&s$1(c$4),L$1()}function a$2(c$4){w$1.value&&i$1(c$4)}return(c$4,f$3)=>(openBlock(),createElementBlock(`div`,{ref_key:`handleRef`,ref:t,"data-vaul-drawer-visible":unref(d$2)?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,onClick:m$2,onPointercancel:H$2,onPointerdown:p$5,onPointermove:a$2},[createBaseVNode(`span`,Ot$1,[renderSlot(c$4.$slots,`default`)])],40,$t$1))}});function calculateVolumeWithLinearNormalize(analyser){let dataBuffer=new Uint8Array(analyser.frequencyBinCount);analyser.getByteFrequencyData(dataBuffer);let volumeVector=[];for(let i$1=0;i$1<700;i$1+=80)volumeVector.push(dataBuffer[i$1]);let volumeSum=dataBuffer.map(v$1=>v$1**1.2).map(v$1=>v$1*1.2).reduce((acc,cur)=>acc+cur,0);return volumeSum/dataBuffer.length/100}function calculateVolumeWithMinMaxNormalize(analyser){let dataBuffer=new Uint8Array(analyser.frequencyBinCount);analyser.getByteFrequencyData(dataBuffer);let volumeVector=[];for(let i$1=0;i$1<700;i$1+=80)volumeVector.push(dataBuffer[i$1]);let amplifiedVolumeVector=dataBuffer.map(v$1=>v$1**1.5),min$1=Math.min(...amplifiedVolumeVector),max$1=Math.max(...amplifiedVolumeVector),range=max$1-min$1,normalizedVolumeVector;normalizedVolumeVector=range===0?amplifiedVolumeVector.map(()=>0):amplifiedVolumeVector.map(v$1=>(v$1-min$1)/range);let volumeSum=normalizedVolumeVector.reduce((acc,cur)=>acc+cur,0);return volumeSum/dataBuffer.length}function calculateVolume(analyser,mode=`linear`){switch(mode){case`linear`:return calculateVolumeWithLinearNormalize(analyser);case`minmax`:return calculateVolumeWithMinMaxNormalize(analyser)}}const useAudioContext=defineStore(`AudioContext`,()=>{let audioContext=new AudioContext;return{audioContext,calculateVolume}}),useSpeakingStore=defineStore(`SpeakingStore`,()=>{let nowSpeakingAvatarBorderOpacityMin=30,nowSpeakingAvatarBorderOpacityMax=100,mouthOpenSize=ref(0),nowSpeaking=ref(!1),nowSpeakingAvatarBorderOpacity=computed(()=>nowSpeaking.value?(nowSpeakingAvatarBorderOpacityMin+(nowSpeakingAvatarBorderOpacityMax-nowSpeakingAvatarBorderOpacityMin)*mouthOpenSize.value)/100:nowSpeakingAvatarBorderOpacityMin);return{mouthOpenSize,nowSpeaking,nowSpeakingAvatarBorderOpacity}});async function*readableStreamToAsyncIterator(res,func){let reader=res.getReader();try{for(;;){let{done,value:value$1}=await reader.read();if(done)return;yield func(value$1)}}finally{reader.releaseLock()}}const isPlainObject$3=value$1=>value$1!=null&&Object.getPrototypeOf(value$1)===Object.prototype,merge$2=(defaults,user)=>{let merged={...defaults};if(!user)return merged;for(let[key$1,value$1]of Object.entries(user)){if(value$1===void 0)continue;if(isPlainObject$3(merged[key$1])&&isPlainObject$3(value$1)){merged[key$1]=merge$2(merged[key$1],value$1);continue}merged[key$1]=value$1}return merged},sleep$1=async delay=>new Promise(resolve$1=>setTimeout(resolve$1,delay));var States=function(States$1){return States$1.Literal=`literal`,States$1.Special=`special`,States$1}(States||{});function peek(array,index$1,offset$1){return index$1+offset$1<0||index$1+offset$1>=array.length-1?``:array[index$1+offset$1]}function useLlmmarkerParser(options$1){let state=States.Literal,buffer$1=``;return{async consume(textPart){for(let i$1=0;i$1`?(current+=peek(textPart,i$1,1),newState=States.Literal,i$1++):current===`<`?newState=States.Special:current===`>`&&(newState=States.Literal),state===States.Literal&&newState===States.Special){if(buffer$1!==``){var _options$1$onLiteral;await(_options$1$onLiteral=options$1.onLiteral)?.call(options$1,buffer$1),buffer$1=``}}else if(state===States.Special&&newState===States.Literal&&buffer$1!==``){var _options$1$onSpecial;buffer$1+=current,await(_options$1$onSpecial=options$1.onSpecial)?.call(options$1,buffer$1),buffer$1=``}if(state===States.Literal&&newState===States.Literal){var _options$1$onLiteral2;await(_options$1$onLiteral2=options$1.onLiteral)?.call(options$1,current),buffer$1=``}else state===States.Special&&newState===States.Literal?buffer$1=``:buffer$1+=current;state=newState}},async end(){if(buffer$1!==``){var _options$1$onLiteral3,_options$1$onSpecial2;state===States.Literal?await(_options$1$onLiteral3=options$1.onLiteral)?.call(options$1,buffer$1):buffer$1.endsWith(`|>`)&&await(_options$1$onSpecial2=options$1.onSpecial)?.call(options$1,buffer$1)}}}}const htmlVoidElements=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`];var Schema=class{constructor(property,normal,space$1){this.normal=normal,this.property=property,space$1&&(this.space=space$1)}};Schema.prototype.normal={},Schema.prototype.property={},Schema.prototype.space=void 0;function merge$3(definitions,space$1){let property={},normal={};for(let definition$29 of definitions)Object.assign(property,definition$29.property),Object.assign(normal,definition$29.normal);return new Schema(property,normal,space$1)}function normalize$1(value$1){return value$1.toLowerCase()}var Info=class{constructor(property,attribute){this.attribute=attribute,this.property=property}};Info.prototype.attribute=``,Info.prototype.booleanish=!1,Info.prototype.boolean=!1,Info.prototype.commaOrSpaceSeparated=!1,Info.prototype.commaSeparated=!1,Info.prototype.defined=!1,Info.prototype.mustUseProperty=!1,Info.prototype.number=!1,Info.prototype.overloadedBoolean=!1,Info.prototype.property=``,Info.prototype.spaceSeparated=!1,Info.prototype.space=void 0;var types_exports={};__export(types_exports,{boolean:()=>boolean,booleanish:()=>booleanish,commaOrSpaceSeparated:()=>commaOrSpaceSeparated,commaSeparated:()=>commaSeparated,number:()=>number$2,overloadedBoolean:()=>overloadedBoolean,spaceSeparated:()=>spaceSeparated});let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number$2=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const checks=Object.keys(types_exports);var DefinedInfo=class extends Info{constructor(property,attribute,mask,space$1){let index$1=-1;if(super(property,attribute),mark$1(this,`space`,space$1),typeof mask==`number`)for(;++index$14&&normal.slice(0,4)===`data`&&valid.test(value$1)){if(value$1.charAt(4)===`-`){let rest=value$1.slice(5).replace(dash,camelcase);property=`data`+rest.charAt(0).toUpperCase()+rest.slice(1)}else{let rest=value$1.slice(4);if(!dash.test(rest)){let dashes=rest.replace(cap,kebab);dashes.charAt(0)!==`-`&&(dashes=`-`+dashes),value$1=`data`+dashes}}Type=DefinedInfo}return new Type(property,value$1)}function kebab($0){return`-`+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}const html$1=merge$3([aria,html$4,xlink,xmlns,xml],`html`),svg=merge$3([aria,svg$1,xlink,xmlns,xml],`svg`),own$7={}.hasOwnProperty;function zwitch(key$1,options$1){let settings=options$1||{};function one$3(value$1,...parameters){let fn$5=one$3.invalid,handlers$3=one$3.handlers;if(value$1&&own$7.call(value$1,key$1)){let id=String(value$1[key$1]);fn$5=own$7.call(handlers$3,id)?handlers$3[id]:one$3.unknown}if(fn$5)return fn$5.call(this,value$1,...parameters)}return one$3.handlers=settings.handlers||{},one$3.invalid=settings.invalid,one$3.unknown=settings.unknown,one$3}const defaultSubsetRegex=/["&'<>`]/g,surrogatePairsRegex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,controlCharactersRegex=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,regexEscapeRegex=/[|\\{}()[\]^$+*?.]/g,subsetToRegexCache=new WeakMap;function core(value$1,options$1){if(value$1=value$1.replace(options$1.subset?charactersToExpressionCached(options$1.subset):defaultSubsetRegex,basic),options$1.subset||options$1.escapeOnly)return value$1;return value$1.replace(surrogatePairsRegex,surrogate).replace(controlCharactersRegex,basic);function surrogate(pair,index$1,all$3){return options$1.format((pair.charCodeAt(0)-55296)*1024+pair.charCodeAt(1)-56320+65536,all$3.charCodeAt(index$1+2),options$1)}function basic(character,index$1,all$3){return options$1.format(character.charCodeAt(0),all$3.charCodeAt(index$1+1),options$1)}}function charactersToExpressionCached(subset$4){let cached=subsetToRegexCache.get(subset$4);return cached||(cached=charactersToExpression(subset$4),subsetToRegexCache.set(subset$4,cached)),cached}function charactersToExpression(subset$4){let groups=[],index$1=-1;for(;++index$1`,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:`€`},dangerous=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],own$6={}.hasOwnProperty,characters={};let key;for(key in characterEntitiesHtml4)own$6.call(characterEntitiesHtml4,key)&&(characters[characterEntitiesHtml4[key]]=key);const notAlphanumericRegex=/[^\dA-Za-z]/;function toNamed(code$1,next,omit,attribute){let character=String.fromCharCode(code$1);if(own$6.call(characters,character)){let name$2=characters[character],value$1=`&`+name$2;return omit&&characterEntitiesLegacy.includes(name$2)&&!dangerous.includes(name$2)&&(!attribute||next&&next!==61&¬AlphanumericRegex.test(String.fromCharCode(next)))?value$1:value$1+`;`}return``}function formatSmart(code$1,next,options$1){let numeric=toHexadecimal(code$1,next,options$1.omitOptionalSemicolons),named$1;if((options$1.useNamedReferences||options$1.useShortestReferences)&&(named$1=toNamed(code$1,next,options$1.omitOptionalSemicolons,options$1.attribute)),(options$1.useShortestReferences||!named$1)&&options$1.useShortestReferences){let decimal=toDecimal(code$1,next,options$1.omitOptionalSemicolons);decimal.length|^->||--!>|`],commentEntitySubset=[`<`,`>`];function comment$1(node$1,_1,_2,state){return state.settings.bogusComments?``:``;function encode($0){return stringifyEntities($0,Object.assign({},state.settings.characterReferences,{subset:commentEntitySubset}))}}function doctype$1(_1,_2,_3,state){return``}function ccount(value$1,character){let source=String(value$1);if(typeof character!=`string`)throw TypeError(`Expected character`);let count$1=0,index$1=source.indexOf(character);for(;index$1!==-1;)count$1++,index$1=source.indexOf(character,index$1+character.length);return count$1}function stringify(values,options$1){let settings=options$1||{},input=values[values.length-1]===``?[...values,``]:values;return input.join((settings.padRight?` `:``)+`,`+(settings.padLeft===!1?``:` `)).trim()}function stringify$1(values){return values.join(` `).trim()}const re$1=/[ \t\n\f\r]/g;function whitespace(thing){return typeof thing==`object`?thing.type===`text`?empty$1(thing.value):!1:empty$1(thing)}function empty$1(value$1){return value$1.replace(re$1,``)===``}const siblingAfter=siblings(1),siblingBefore=siblings(-1),emptyChildren$1=[];function siblings(increment$1){return sibling;function sibling(parent,index$1,includeWhitespace){let siblings$2=parent?parent.children:emptyChildren$1,offset$1=(index$1||0)+increment$1,next=siblings$2[offset$1];if(!includeWhitespace)for(;next&&whitespace(next);)offset$1+=increment$1,next=siblings$2[offset$1];return next}}const own$5={}.hasOwnProperty;function omission(handlers$3){return omit;function omit(node$1,index$1,parent){return own$5.call(handlers$3,node$1.tagName)&&handlers$3[node$1.tagName](node$1,index$1,parent)}}const closing=omission({body:body$1,caption:headOrColgroupOrCaption,colgroup:headOrColgroupOrCaption,dd,dt:dt$1,head:headOrColgroupOrCaption,html:html$3,li,optgroup,option,p:p$3,rp:rubyElement,rt:rubyElement,tbody:tbody$1,td:cells,tfoot,th:cells,thead,tr});function headOrColgroupOrCaption(_$2,index$1,parent){let next=siblingAfter(parent,index$1,!0);return!next||next.type!==`comment`&&!(next.type===`text`&&whitespace(next.value.charAt(0)))}function html$3(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type!==`comment`}function body$1(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type!==`comment`}function p$3(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return next?next.type===`element`&&(next.tagName===`address`||next.tagName===`article`||next.tagName===`aside`||next.tagName===`blockquote`||next.tagName===`details`||next.tagName===`div`||next.tagName===`dl`||next.tagName===`fieldset`||next.tagName===`figcaption`||next.tagName===`figure`||next.tagName===`footer`||next.tagName===`form`||next.tagName===`h1`||next.tagName===`h2`||next.tagName===`h3`||next.tagName===`h4`||next.tagName===`h5`||next.tagName===`h6`||next.tagName===`header`||next.tagName===`hgroup`||next.tagName===`hr`||next.tagName===`main`||next.tagName===`menu`||next.tagName===`nav`||next.tagName===`ol`||next.tagName===`p`||next.tagName===`pre`||next.tagName===`section`||next.tagName===`table`||next.tagName===`ul`):!parent||!(parent.type===`element`&&(parent.tagName===`a`||parent.tagName===`audio`||parent.tagName===`del`||parent.tagName===`ins`||parent.tagName===`map`||parent.tagName===`noscript`||parent.tagName===`video`))}function li(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&next.tagName===`li`}function dt$1(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!!(next&&next.type===`element`&&(next.tagName===`dt`||next.tagName===`dd`))}function dd(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`dt`||next.tagName===`dd`)}function rubyElement(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`rp`||next.tagName===`rt`)}function optgroup(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&next.tagName===`optgroup`}function option(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`option`||next.tagName===`optgroup`)}function thead(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!!(next&&next.type===`element`&&(next.tagName===`tbody`||next.tagName===`tfoot`))}function tbody$1(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`tbody`||next.tagName===`tfoot`)}function tfoot(_$2,index$1,parent){return!siblingAfter(parent,index$1)}function tr(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&next.tagName===`tr`}function cells(_$2,index$1,parent){let next=siblingAfter(parent,index$1);return!next||next.type===`element`&&(next.tagName===`td`||next.tagName===`th`)}const opening=omission({body,colgroup,head,html:html$2,tbody});function html$2(node$1){let head$1=siblingAfter(node$1,-1);return!head$1||head$1.type!==`comment`}function head(node$1){let seen$1=new Set;for(let child$1 of node$1.children)if(child$1.type===`element`&&(child$1.tagName===`base`||child$1.tagName===`title`)){if(seen$1.has(child$1.tagName))return!1;seen$1.add(child$1.tagName)}let child=node$1.children[0];return!child||child.type===`element`}function body(node$1){let head$1=siblingAfter(node$1,-1,!0);return!head$1||head$1.type!==`comment`&&!(head$1.type===`text`&&whitespace(head$1.value.charAt(0)))&&!(head$1.type===`element`&&(head$1.tagName===`meta`||head$1.tagName===`link`||head$1.tagName===`script`||head$1.tagName===`style`||head$1.tagName===`template`))}function colgroup(node$1,index$1,parent){let previous$1=siblingBefore(parent,index$1),head$1=siblingAfter(node$1,-1,!0);return parent&&previous$1&&previous$1.type===`element`&&previous$1.tagName===`colgroup`&&closing(previous$1,parent.children.indexOf(previous$1),parent)?!1:!!(head$1&&head$1.type===`element`&&head$1.tagName===`col`)}function tbody(node$1,index$1,parent){let previous$1=siblingBefore(parent,index$1),head$1=siblingAfter(node$1,-1);return parent&&previous$1&&previous$1.type===`element`&&(previous$1.tagName===`thead`||previous$1.tagName===`tbody`)&&closing(previous$1,parent.children.indexOf(previous$1),parent)?!1:!!(head$1&&head$1.type===`element`&&head$1.tagName===`tr`)}const constants={name:[[` \f\r &/=>`.split(``),` \f\r "&'/=>\``.split(``)],[`\0 \f\r "&'/<=>`.split(``),`\0 @@ -3845,13 +3845,13 @@ function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof se \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 element$2(node$1,index$1,parent,state){let schema=state.schema,omit=schema.space===`svg`?!1:state.settings.omitOptionalTags,selfClosing=schema.space===`svg`?state.settings.closeEmptyElements:state.settings.voids.includes(node$1.tagName.toLowerCase()),parts=[],last;schema.space===`html`&&node$1.tagName===`svg`&&(state.schema=svg);let attributes=serializeAttributes(state,node$1.properties),content$2=state.all(schema.space===`html`&&node$1.tagName===`template`?node$1.content:node$1);return state.schema=schema,content$2&&(selfClosing=!1),(attributes||!omit||!opening(node$1,index$1,parent))&&(parts.push(`<`,node$1.tagName,attributes?` `+attributes:``),selfClosing&&(schema.space===`svg`||state.settings.closeSelfClosing)&&(last=attributes.charAt(attributes.length-1),(!state.settings.tightSelfClosing||last===`/`||last&&last!==`"`&&last!==`'`)&&parts.push(` `),parts.push(`/`)),parts.push(`>`)),parts.push(content$2),!selfClosing&&(!omit||!closing(node$1,index$1,parent))&&parts.push(``),parts.join(``)}function serializeAttributes(state,properties){let values=[],index$1=-1,key$1;if(properties){for(key$1 in properties)if(properties[key$1]!==null&&properties[key$1]!==void 0){let value$1=serializeAttribute(state,key$1,properties[key$1]);value$1&&values.push(value$1)}}for(;++index$1ccount(value$1,state.alternative)&&(quote=state.alternative),result=quote+stringifyEntities(value$1,Object.assign({},state.settings.characterReferences,{subset:(quote===`'`?constants.single:constants.double)[x$3][y$2],attribute:!0}))+quote),name$2+(result&&`=`+result))}const textEntitySubset=[`<`,`&`];function text$4(node$1,_$1,parent,state){return parent&&parent.type===`element`&&(parent.tagName===`script`||parent.tagName===`style`)?node$1.value:stringifyEntities(node$1.value,Object.assign({},state.settings.characterReferences,{subset:textEntitySubset}))}function raw$1(node$1,index$1,parent,state){return state.settings.allowDangerousHtml?node$1.value:text$4(node$1,index$1,parent,state)}function root$1(node$1,_1,_2,state){return state.all(node$1)}const handle=zwitch(`type`,{invalid,unknown,handlers:{comment:comment$1,doctype:doctype$1,element:element$2,raw:raw$1,root:root$1,text:text$4}});function invalid(node$1){throw Error("Expected node, not `"+node$1+"`")}function unknown(node_){let node$1=node_;throw Error("Cannot compile unknown node `"+node$1.type+"`")}const emptyOptions$2={},emptyCharacterReferences={},emptyChildren=[];function toHtml(tree,options$1){let options_=options$1||emptyOptions$2,quote=options_.quote||`"`,alternative=quote===`"`?`'`:`"`;if(quote!==`"`&"e!==`'`)throw Error("Invalid quote `"+quote+"`, expected `'` or `\"`");let state={one:one$2,all:all$2,settings:{omitOptionalTags:options_.omitOptionalTags||!1,allowParseErrors:options_.allowParseErrors||!1,allowDangerousCharacters:options_.allowDangerousCharacters||!1,quoteSmart:options_.quoteSmart||!1,preferUnquoted:options_.preferUnquoted||!1,tightAttributes:options_.tightAttributes||!1,upperDoctype:options_.upperDoctype||!1,tightDoctype:options_.tightDoctype||!1,bogusComments:options_.bogusComments||!1,tightCommaSeparatedLists:options_.tightCommaSeparatedLists||!1,tightSelfClosing:options_.tightSelfClosing||!1,collapseEmptyAttributes:options_.collapseEmptyAttributes||!1,allowDangerousHtml:options_.allowDangerousHtml||!1,voids:options_.voids||htmlVoidElements,characterReferences:options_.characterReferences||emptyCharacterReferences,closeSelfClosing:options_.closeSelfClosing||!1,closeEmptyElements:options_.closeEmptyElements||!1},schema:options_.space===`svg`?svg:html$1,quote,alternative};return state.one(Array.isArray(tree)?{type:`root`,children:tree}:tree,void 0,void 0)}function one$2(node$1,index$1,parent){return handle(node$1,index$1,parent,this)}function all$2(parent){let results=[],children=parent&&parent.children||emptyChildren,index$1=-1;for(;++index$1end?0:end+start:start>end?end:start,remove$2=remove$2>0?remove$2:0,items.length<1e4)parameters=Array.from(items),parameters.unshift(start,remove$2),list$2.splice(...parameters);else for(remove$2&&list$2.splice(start,remove$2);chunkStart0?(splice(list$2,list$2.length,0,items),list$2):items}const hasOwnProperty$1={}.hasOwnProperty;function combineExtensions(extensions){let all$3={},index$1=-1;for(;++index$113&&code$1<32||code$1>126&&code$1<160||code$1>55295&&code$1<57344||code$1>64975&&code$1<65008||(code$1&65535)==65535||(code$1&65535)==65534||code$1>1114111?`�`:String.fromCodePoint(code$1)}function normalizeIdentifier(value$1){return value$1.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(code$1){return code$1!==null&&(code$1<32||code$1===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(code$1){return code$1!==null&&code$1<-2}function markdownLineEndingOrSpace(code$1){return code$1!==null&&(code$1<0||code$1===32)}function markdownSpace(code$1){return code$1===-2||code$1===-1||code$1===32}const unicodePunctuation=regexCheck(/\p{P}|\p{S}/u),unicodeWhitespace=regexCheck(/\s/);function regexCheck(regex){return check$1;function check$1(code$1){return code$1!==null&&code$1>-1&®ex.test(String.fromCharCode(code$1))}}function normalizeUri(value$1){let result=[],index$1=-1,start=0,skip=0;for(;++index$155295&&code$1<57344){let next=value$1.charCodeAt(index$1+1);code$1<56320&&next>56319&&next<57344?(replace=String.fromCharCode(code$1,next),skip=1):replace=`�`}else replace=String.fromCharCode(code$1);replace&&(result.push(value$1.slice(start,index$1),encodeURIComponent(replace)),start=index$1+skip+1,replace=``),skip&&(index$1+=skip,skip=0)}return result.join(``)+value$1.slice(start)}function factorySpace(effects,ok$2,type,max$1){let limit=max$1?max$1-1:1/0,size$1=0;return start;function start(code$1){return markdownSpace(code$1)?(effects.enter(type),prefix(code$1)):ok$2(code$1)}function prefix(code$1){return markdownSpace(code$1)&&size$1++lineStartOffset))return;let indexBeforeExits=self$1.events.length,indexBeforeFlow=indexBeforeExits,seen$1,point$3;for(;indexBeforeFlow--;)if(self$1.events[indexBeforeFlow][0]===`exit`&&self$1.events[indexBeforeFlow][1].type===`chunkFlow`){if(seen$1){point$3=self$1.events[indexBeforeFlow][1].end;break}seen$1=!0}for(exitContainers(continued),index$1=indexBeforeExits;index$1size$1;){let entry=stack$1[index$1];self$1.containerState=entry[1],entry[0].exit.call(self$1,effects)}stack$1.length=size$1}function closeFlow(){childFlow.write([null]),childToken=void 0,childFlow=void 0,self$1.containerState._closeFlow=void 0}}function tokenizeContainer(effects,ok$2,nok){return factorySpace(effects,effects.attempt(this.parser.constructs.document,ok$2,nok),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function classifyCharacter(code$1){if(code$1===null||markdownLineEndingOrSpace(code$1)||unicodeWhitespace(code$1))return 1;if(unicodePunctuation(code$1))return 2}function resolveAll(constructs$1,events,context$1){let called=[],index$1=-1;for(;++index$11&&events[index$1][1].end.offset-events[index$1][1].start.offset>1?2:1;let start={...events[open$1][1].end},end={...events[index$1][1].start};movePoint(start,-use),movePoint(end,use),openingSequence={type:use>1?`strongSequence`:`emphasisSequence`,start,end:{...events[open$1][1].end}},closingSequence={type:use>1?`strongSequence`:`emphasisSequence`,start:{...events[index$1][1].start},end},text$5={type:use>1?`strongText`:`emphasisText`,start:{...events[open$1][1].end},end:{...events[index$1][1].start}},group={type:use>1?`strong`:`emphasis`,start:{...openingSequence.start},end:{...closingSequence.end}},events[open$1][1].end={...openingSequence.start},events[index$1][1].start={...closingSequence.end},nextEvents=[],events[open$1][1].end.offset-events[open$1][1].start.offset&&(nextEvents=push(nextEvents,[[`enter`,events[open$1][1],context$1],[`exit`,events[open$1][1],context$1]])),nextEvents=push(nextEvents,[[`enter`,group,context$1],[`enter`,openingSequence,context$1],[`exit`,openingSequence,context$1],[`enter`,text$5,context$1]]),nextEvents=push(nextEvents,resolveAll(context$1.parser.constructs.insideSpan.null,events.slice(open$1+1,index$1),context$1)),nextEvents=push(nextEvents,[[`exit`,text$5,context$1],[`enter`,closingSequence,context$1],[`exit`,closingSequence,context$1],[`exit`,group,context$1]]),events[index$1][1].end.offset-events[index$1][1].start.offset?(offset$1=2,nextEvents=push(nextEvents,[[`enter`,events[index$1][1],context$1],[`exit`,events[index$1][1],context$1]])):offset$1=0,splice(events,open$1-1,index$1-open$1+3,nextEvents),index$1=open$1+nextEvents.length-offset$1-2;break}}for(index$1=-1;++index$10&&markdownSpace(code$1)?factorySpace(effects,beforeContentChunk,`linePrefix`,initialPrefix+1)(code$1):beforeContentChunk(code$1)}function beforeContentChunk(code$1){return code$1===null||markdownLineEnding(code$1)?effects.check(nonLazyContinuation,atNonLazyBreak,after)(code$1):(effects.enter(`codeFlowValue`),contentChunk(code$1))}function contentChunk(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`codeFlowValue`),beforeContentChunk(code$1)):(effects.consume(code$1),contentChunk)}function after(code$1){return effects.exit(`codeFenced`),ok$2(code$1)}function tokenizeCloseStart(effects$1,ok$3,nok$1){let size$1=0;return startBefore;function startBefore(code$1){return effects$1.enter(`lineEnding`),effects$1.consume(code$1),effects$1.exit(`lineEnding`),start$1}function start$1(code$1){return effects$1.enter(`codeFencedFence`),markdownSpace(code$1)?factorySpace(effects$1,beforeSequenceClose,`linePrefix`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(code$1):beforeSequenceClose(code$1)}function beforeSequenceClose(code$1){return code$1===marker?(effects$1.enter(`codeFencedFenceSequence`),sequenceClose(code$1)):nok$1(code$1)}function sequenceClose(code$1){return code$1===marker?(size$1++,effects$1.consume(code$1),sequenceClose):size$1>=sizeOpen?(effects$1.exit(`codeFencedFenceSequence`),markdownSpace(code$1)?factorySpace(effects$1,sequenceCloseAfter,`whitespace`)(code$1):sequenceCloseAfter(code$1)):nok$1(code$1)}function sequenceCloseAfter(code$1){return code$1===null||markdownLineEnding(code$1)?(effects$1.exit(`codeFencedFence`),ok$3(code$1)):nok$1(code$1)}}}function tokenizeNonLazyContinuation(effects,ok$2,nok){let self$1=this;return start;function start(code$1){return code$1===null?nok(code$1):(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),lineStart)}function lineStart(code$1){return self$1.parser.lazy[self$1.now().line]?nok(code$1):ok$2(code$1)}}const codeIndented={name:`codeIndented`,tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(effects,ok$2,nok){let self$1=this;return start;function start(code$1){return effects.enter(`codeIndented`),factorySpace(effects,afterPrefix,`linePrefix`,5)(code$1)}function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return tail&&tail[1].type===`linePrefix`&&tail[2].sliceSerialize(tail[1],!0).length>=4?atBreak(code$1):nok(code$1)}function atBreak(code$1){return code$1===null?after(code$1):markdownLineEnding(code$1)?effects.attempt(furtherStart,atBreak,after)(code$1):(effects.enter(`codeFlowValue`),inside(code$1))}function inside(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`codeFlowValue`),atBreak(code$1)):(effects.consume(code$1),inside)}function after(code$1){return effects.exit(`codeIndented`),ok$2(code$1)}}function tokenizeFurtherStart(effects,ok$2,nok){let self$1=this;return furtherStart$1;function furtherStart$1(code$1){return self$1.parser.lazy[self$1.now().line]?nok(code$1):markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),furtherStart$1):factorySpace(effects,afterPrefix,`linePrefix`,5)(code$1)}function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return tail&&tail[1].type===`linePrefix`&&tail[2].sliceSerialize(tail[1],!0).length>=4?ok$2(code$1):markdownLineEnding(code$1)?furtherStart$1(code$1):nok(code$1)}}const codeText={name:`codeText`,previous,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(events){let tailExitIndex=events.length-4,headEnterIndex=3,index$1,enter;if((events[headEnterIndex][1].type===`lineEnding`||events[headEnterIndex][1].type===`space`)&&(events[tailExitIndex][1].type===`lineEnding`||events[tailExitIndex][1].type===`space`)){for(index$1=headEnterIndex;++index$1=this.left.length+this.right.length)throw RangeError("Cannot access index `"+index$1+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return index$1this.left.length)return this.right.slice(this.right.length-stop$1+this.left.length,this.right.length-start+this.left.length).reverse();let list$2=this.left.slice(start);return list$2.push(...this.right.slice(this.right.length-stop$1+this.left.length).reverse()),list$2}splice(start,deleteCount,items){let count$1=deleteCount||0;this.setCursor(Math.trunc(start));let removed=this.right.splice(this.right.length-count$1,1/0);return items&&chunkedPush(this.left,items),removed.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(item){this.setCursor(1/0),this.left.push(item)}pushMany(items){this.setCursor(1/0),chunkedPush(this.left,items)}unshift(item){this.setCursor(0),this.right.push(item)}unshiftMany(items){this.setCursor(0),chunkedPush(this.right,items.reverse())}setCursor(n$2){if(!(n$2===this.left.length||n$2>this.left.length&&this.right.length===0||n$2<0&&this.left.length===0))if(n$2=4?ok$2(code$1):effects.interrupt(self$1.parser.constructs.flow,nok,ok$2)(code$1)}}function factoryDestination(effects,ok$2,nok,type,literalType$1,literalMarkerType,rawType,stringType$1,max$1){let limit=max$1||1/0,balance=0;return start;function start(code$1){return code$1===60?(effects.enter(type),effects.enter(literalType$1),effects.enter(literalMarkerType),effects.consume(code$1),effects.exit(literalMarkerType),enclosedBefore):code$1===null||code$1===32||code$1===41||asciiControl(code$1)?nok(code$1):(effects.enter(type),effects.enter(rawType),effects.enter(stringType$1),effects.enter(`chunkString`,{contentType:`string`}),raw$3(code$1))}function enclosedBefore(code$1){return code$1===62?(effects.enter(literalMarkerType),effects.consume(code$1),effects.exit(literalMarkerType),effects.exit(literalType$1),effects.exit(type),ok$2):(effects.enter(stringType$1),effects.enter(`chunkString`,{contentType:`string`}),enclosed(code$1))}function enclosed(code$1){return code$1===62?(effects.exit(`chunkString`),effects.exit(stringType$1),enclosedBefore(code$1)):code$1===null||code$1===60||markdownLineEnding(code$1)?nok(code$1):(effects.consume(code$1),code$1===92?enclosedEscape:enclosed)}function enclosedEscape(code$1){return code$1===60||code$1===62||code$1===92?(effects.consume(code$1),enclosed):enclosed(code$1)}function raw$3(code$1){return!balance&&(code$1===null||code$1===41||markdownLineEndingOrSpace(code$1))?(effects.exit(`chunkString`),effects.exit(stringType$1),effects.exit(rawType),effects.exit(type),ok$2(code$1)):balance999||code$1===null||code$1===91||code$1===93&&!seen$1||code$1===94&&!size$1&&`_hiddenFootnoteSupport`in self$1.parser.constructs?nok(code$1):code$1===93?(effects.exit(stringType$1),effects.enter(markerType),effects.consume(code$1),effects.exit(markerType),effects.exit(type),ok$2):markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),atBreak):(effects.enter(`chunkString`,{contentType:`string`}),labelInside(code$1))}function labelInside(code$1){return code$1===null||code$1===91||code$1===93||markdownLineEnding(code$1)||size$1++>999?(effects.exit(`chunkString`),atBreak(code$1)):(effects.consume(code$1),seen$1||=!markdownSpace(code$1),code$1===92?labelEscape:labelInside)}function labelEscape(code$1){return code$1===91||code$1===92||code$1===93?(effects.consume(code$1),size$1++,labelInside):labelInside(code$1)}}function factoryTitle(effects,ok$2,nok,type,markerType,stringType$1){let marker;return start;function start(code$1){return code$1===34||code$1===39||code$1===40?(effects.enter(type),effects.enter(markerType),effects.consume(code$1),effects.exit(markerType),marker=code$1===40?41:code$1,begin):nok(code$1)}function begin(code$1){return code$1===marker?(effects.enter(markerType),effects.consume(code$1),effects.exit(markerType),effects.exit(type),ok$2):(effects.enter(stringType$1),atBreak(code$1))}function atBreak(code$1){return code$1===marker?(effects.exit(stringType$1),begin(marker)):code$1===null?nok(code$1):markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),factorySpace(effects,atBreak,`linePrefix`)):(effects.enter(`chunkString`,{contentType:`string`}),inside(code$1))}function inside(code$1){return code$1===marker||code$1===null||markdownLineEnding(code$1)?(effects.exit(`chunkString`),atBreak(code$1)):(effects.consume(code$1),code$1===92?escape$1:inside)}function escape$1(code$1){return code$1===marker||code$1===92?(effects.consume(code$1),inside):inside(code$1)}}function factoryWhitespace(effects,ok$2){let seen$1;return start;function start(code$1){return markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),seen$1=!0,start):markdownSpace(code$1)?factorySpace(effects,start,seen$1?`linePrefix`:`lineSuffix`)(code$1):ok$2(code$1)}}const definition$28={name:`definition`,tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(effects,ok$2,nok){let self$1=this,identifier;return start;function start(code$1){return effects.enter(`definition`),before(code$1)}function before(code$1){return factoryLabel.call(self$1,effects,labelAfter,nok,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(code$1)}function labelAfter(code$1){return identifier=normalizeIdentifier(self$1.sliceSerialize(self$1.events[self$1.events.length-1][1]).slice(1,-1)),code$1===58?(effects.enter(`definitionMarker`),effects.consume(code$1),effects.exit(`definitionMarker`),markerAfter):nok(code$1)}function markerAfter(code$1){return markdownLineEndingOrSpace(code$1)?factoryWhitespace(effects,destinationBefore)(code$1):destinationBefore(code$1)}function destinationBefore(code$1){return factoryDestination(effects,destinationAfter,nok,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(code$1)}function destinationAfter(code$1){return effects.attempt(titleBefore,after,after)(code$1)}function after(code$1){return markdownSpace(code$1)?factorySpace(effects,afterWhitespace,`whitespace`)(code$1):afterWhitespace(code$1)}function afterWhitespace(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`definition`),self$1.parser.defined.push(identifier),ok$2(code$1)):nok(code$1)}}function tokenizeTitleBefore(effects,ok$2,nok){return titleBefore$1;function titleBefore$1(code$1){return markdownLineEndingOrSpace(code$1)?factoryWhitespace(effects,beforeMarker)(code$1):nok(code$1)}function beforeMarker(code$1){return factoryTitle(effects,titleAfter,nok,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(code$1)}function titleAfter(code$1){return markdownSpace(code$1)?factorySpace(effects,titleAfterOptionalWhitespace,`whitespace`)(code$1):titleAfterOptionalWhitespace(code$1)}function titleAfterOptionalWhitespace(code$1){return code$1===null||markdownLineEnding(code$1)?ok$2(code$1):nok(code$1)}}const hardBreakEscape={name:`hardBreakEscape`,tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(effects,ok$2,nok){return start;function start(code$1){return effects.enter(`hardBreakEscape`),effects.consume(code$1),after}function after(code$1){return markdownLineEnding(code$1)?(effects.exit(`hardBreakEscape`),ok$2(code$1)):nok(code$1)}}const headingAtx={name:`headingAtx`,resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(events,context$1){let contentEnd=events.length-2,contentStart=3,content$2,text$5;return events[contentStart][1].type===`whitespace`&&(contentStart+=2),contentEnd-2>contentStart&&events[contentEnd][1].type===`whitespace`&&(contentEnd-=2),events[contentEnd][1].type===`atxHeadingSequence`&&(contentStart===contentEnd-1||contentEnd-4>contentStart&&events[contentEnd-2][1].type===`whitespace`)&&(contentEnd-=contentStart+1===contentEnd?2:4),contentEnd>contentStart&&(content$2={type:`atxHeadingText`,start:events[contentStart][1].start,end:events[contentEnd][1].end},text$5={type:`chunkText`,start:events[contentStart][1].start,end:events[contentEnd][1].end,contentType:`text`},splice(events,contentStart,contentEnd-contentStart+1,[[`enter`,content$2,context$1],[`enter`,text$5,context$1],[`exit`,text$5,context$1],[`exit`,content$2,context$1]])),events}function tokenizeHeadingAtx(effects,ok$2,nok){let size$1=0;return start;function start(code$1){return effects.enter(`atxHeading`),before(code$1)}function before(code$1){return effects.enter(`atxHeadingSequence`),sequenceOpen(code$1)}function sequenceOpen(code$1){return code$1===35&&size$1++<6?(effects.consume(code$1),sequenceOpen):code$1===null||markdownLineEndingOrSpace(code$1)?(effects.exit(`atxHeadingSequence`),atBreak(code$1)):nok(code$1)}function atBreak(code$1){return code$1===35?(effects.enter(`atxHeadingSequence`),sequenceFurther(code$1)):code$1===null||markdownLineEnding(code$1)?(effects.exit(`atxHeading`),ok$2(code$1)):markdownSpace(code$1)?factorySpace(effects,atBreak,`whitespace`)(code$1):(effects.enter(`atxHeadingText`),data$10(code$1))}function sequenceFurther(code$1){return code$1===35?(effects.consume(code$1),sequenceFurther):(effects.exit(`atxHeadingSequence`),atBreak(code$1))}function data$10(code$1){return code$1===null||code$1===35||markdownLineEndingOrSpace(code$1)?(effects.exit(`atxHeadingText`),atBreak(code$1)):(effects.consume(code$1),data$10)}}const htmlBlockNames=`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(`.`),htmlRawNames=[`pre`,`script`,`style`,`textarea`],htmlFlow={concrete:!0,name:`htmlFlow`,resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(events){let index$1=events.length;for(;index$1--&&!(events[index$1][0]===`enter`&&events[index$1][1].type===`htmlFlow`););return index$1>1&&events[index$1-2][1].type===`linePrefix`&&(events[index$1][1].start=events[index$1-2][1].start,events[index$1+1][1].start=events[index$1-2][1].start,events.splice(index$1-2,2)),events}function tokenizeHtmlFlow(effects,ok$2,nok){let self$1=this,marker,closingTag,buffer$1,index$1,markerB;return start;function start(code$1){return before(code$1)}function before(code$1){return effects.enter(`htmlFlow`),effects.enter(`htmlFlowData`),effects.consume(code$1),open$1}function open$1(code$1){return code$1===33?(effects.consume(code$1),declarationOpen):code$1===47?(effects.consume(code$1),closingTag=!0,tagCloseStart):code$1===63?(effects.consume(code$1),marker=3,self$1.interrupt?ok$2:continuationDeclarationInside):asciiAlpha(code$1)?(effects.consume(code$1),buffer$1=String.fromCharCode(code$1),tagName):nok(code$1)}function declarationOpen(code$1){return code$1===45?(effects.consume(code$1),marker=2,commentOpenInside):code$1===91?(effects.consume(code$1),marker=5,index$1=0,cdataOpenInside):asciiAlpha(code$1)?(effects.consume(code$1),marker=4,self$1.interrupt?ok$2:continuationDeclarationInside):nok(code$1)}function commentOpenInside(code$1){return code$1===45?(effects.consume(code$1),self$1.interrupt?ok$2:continuationDeclarationInside):nok(code$1)}function cdataOpenInside(code$1){let value$1=`CDATA[`;return code$1===value$1.charCodeAt(index$1++)?(effects.consume(code$1),index$1===value$1.length?self$1.interrupt?ok$2:continuation:cdataOpenInside):nok(code$1)}function tagCloseStart(code$1){return asciiAlpha(code$1)?(effects.consume(code$1),buffer$1=String.fromCharCode(code$1),tagName):nok(code$1)}function tagName(code$1){if(code$1===null||code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)){let slash=code$1===47,name$2=buffer$1.toLowerCase();return!slash&&!closingTag&&htmlRawNames.includes(name$2)?(marker=1,self$1.interrupt?ok$2(code$1):continuation(code$1)):htmlBlockNames.includes(buffer$1.toLowerCase())?(marker=6,slash?(effects.consume(code$1),basicSelfClosing):self$1.interrupt?ok$2(code$1):continuation(code$1)):(marker=7,self$1.interrupt&&!self$1.parser.lazy[self$1.now().line]?nok(code$1):closingTag?completeClosingTagAfter(code$1):completeAttributeNameBefore(code$1))}return code$1===45||asciiAlphanumeric(code$1)?(effects.consume(code$1),buffer$1+=String.fromCharCode(code$1),tagName):nok(code$1)}function basicSelfClosing(code$1){return code$1===62?(effects.consume(code$1),self$1.interrupt?ok$2:continuation):nok(code$1)}function completeClosingTagAfter(code$1){return markdownSpace(code$1)?(effects.consume(code$1),completeClosingTagAfter):completeEnd(code$1)}function completeAttributeNameBefore(code$1){return code$1===47?(effects.consume(code$1),completeEnd):code$1===58||code$1===95||asciiAlpha(code$1)?(effects.consume(code$1),completeAttributeName):markdownSpace(code$1)?(effects.consume(code$1),completeAttributeNameBefore):completeEnd(code$1)}function completeAttributeName(code$1){return code$1===45||code$1===46||code$1===58||code$1===95||asciiAlphanumeric(code$1)?(effects.consume(code$1),completeAttributeName):completeAttributeNameAfter(code$1)}function completeAttributeNameAfter(code$1){return code$1===61?(effects.consume(code$1),completeAttributeValueBefore):markdownSpace(code$1)?(effects.consume(code$1),completeAttributeNameAfter):completeAttributeNameBefore(code$1)}function completeAttributeValueBefore(code$1){return code$1===null||code$1===60||code$1===61||code$1===62||code$1===96?nok(code$1):code$1===34||code$1===39?(effects.consume(code$1),markerB=code$1,completeAttributeValueQuoted):markdownSpace(code$1)?(effects.consume(code$1),completeAttributeValueBefore):completeAttributeValueUnquoted(code$1)}function completeAttributeValueQuoted(code$1){return code$1===markerB?(effects.consume(code$1),markerB=null,completeAttributeValueQuotedAfter):code$1===null||markdownLineEnding(code$1)?nok(code$1):(effects.consume(code$1),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(code$1){return code$1===null||code$1===34||code$1===39||code$1===47||code$1===60||code$1===61||code$1===62||code$1===96||markdownLineEndingOrSpace(code$1)?completeAttributeNameAfter(code$1):(effects.consume(code$1),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(code$1){return code$1===47||code$1===62||markdownSpace(code$1)?completeAttributeNameBefore(code$1):nok(code$1)}function completeEnd(code$1){return code$1===62?(effects.consume(code$1),completeAfter):nok(code$1)}function completeAfter(code$1){return code$1===null||markdownLineEnding(code$1)?continuation(code$1):markdownSpace(code$1)?(effects.consume(code$1),completeAfter):nok(code$1)}function continuation(code$1){return code$1===45&&marker===2?(effects.consume(code$1),continuationCommentInside):code$1===60&&marker===1?(effects.consume(code$1),continuationRawTagOpen):code$1===62&&marker===4?(effects.consume(code$1),continuationClose):code$1===63&&marker===3?(effects.consume(code$1),continuationDeclarationInside):code$1===93&&marker===5?(effects.consume(code$1),continuationCdataInside):markdownLineEnding(code$1)&&(marker===6||marker===7)?(effects.exit(`htmlFlowData`),effects.check(blankLineBefore,continuationAfter,continuationStart)(code$1)):code$1===null||markdownLineEnding(code$1)?(effects.exit(`htmlFlowData`),continuationStart(code$1)):(effects.consume(code$1),continuation)}function continuationStart(code$1){return effects.check(nonLazyContinuationStart,continuationStartNonLazy,continuationAfter)(code$1)}function continuationStartNonLazy(code$1){return effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),continuationBefore}function continuationBefore(code$1){return code$1===null||markdownLineEnding(code$1)?continuationStart(code$1):(effects.enter(`htmlFlowData`),continuation(code$1))}function continuationCommentInside(code$1){return code$1===45?(effects.consume(code$1),continuationDeclarationInside):continuation(code$1)}function continuationRawTagOpen(code$1){return code$1===47?(effects.consume(code$1),buffer$1=``,continuationRawEndTag):continuation(code$1)}function continuationRawEndTag(code$1){if(code$1===62){let name$2=buffer$1.toLowerCase();return htmlRawNames.includes(name$2)?(effects.consume(code$1),continuationClose):continuation(code$1)}return asciiAlpha(code$1)&&buffer$1.length<8?(effects.consume(code$1),buffer$1+=String.fromCharCode(code$1),continuationRawEndTag):continuation(code$1)}function continuationCdataInside(code$1){return code$1===93?(effects.consume(code$1),continuationDeclarationInside):continuation(code$1)}function continuationDeclarationInside(code$1){return code$1===62?(effects.consume(code$1),continuationClose):code$1===45&&marker===2?(effects.consume(code$1),continuationDeclarationInside):continuation(code$1)}function continuationClose(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`htmlFlowData`),continuationAfter(code$1)):(effects.consume(code$1),continuationClose)}function continuationAfter(code$1){return effects.exit(`htmlFlow`),ok$2(code$1)}}function tokenizeNonLazyContinuationStart(effects,ok$2,nok){let self$1=this;return start;function start(code$1){return markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),after):nok(code$1)}function after(code$1){return self$1.parser.lazy[self$1.now().line]?nok(code$1):ok$2(code$1)}}function tokenizeBlankLineBefore(effects,ok$2,nok){return start;function start(code$1){return effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),effects.attempt(blankLine,ok$2,nok)}}const htmlText={name:`htmlText`,tokenize:tokenizeHtmlText};function tokenizeHtmlText(effects,ok$2,nok){let self$1=this,marker,index$1,returnState;return start;function start(code$1){return effects.enter(`htmlText`),effects.enter(`htmlTextData`),effects.consume(code$1),open$1}function open$1(code$1){return code$1===33?(effects.consume(code$1),declarationOpen):code$1===47?(effects.consume(code$1),tagCloseStart):code$1===63?(effects.consume(code$1),instruction$1):asciiAlpha(code$1)?(effects.consume(code$1),tagOpen):nok(code$1)}function declarationOpen(code$1){return code$1===45?(effects.consume(code$1),commentOpenInside):code$1===91?(effects.consume(code$1),index$1=0,cdataOpenInside):asciiAlpha(code$1)?(effects.consume(code$1),declaration):nok(code$1)}function commentOpenInside(code$1){return code$1===45?(effects.consume(code$1),commentEnd):nok(code$1)}function comment$2(code$1){return code$1===null?nok(code$1):code$1===45?(effects.consume(code$1),commentClose):markdownLineEnding(code$1)?(returnState=comment$2,lineEndingBefore(code$1)):(effects.consume(code$1),comment$2)}function commentClose(code$1){return code$1===45?(effects.consume(code$1),commentEnd):comment$2(code$1)}function commentEnd(code$1){return code$1===62?end(code$1):code$1===45?commentClose(code$1):comment$2(code$1)}function cdataOpenInside(code$1){let value$1=`CDATA[`;return code$1===value$1.charCodeAt(index$1++)?(effects.consume(code$1),index$1===value$1.length?cdata$1:cdataOpenInside):nok(code$1)}function cdata$1(code$1){return code$1===null?nok(code$1):code$1===93?(effects.consume(code$1),cdataClose):markdownLineEnding(code$1)?(returnState=cdata$1,lineEndingBefore(code$1)):(effects.consume(code$1),cdata$1)}function cdataClose(code$1){return code$1===93?(effects.consume(code$1),cdataEnd):cdata$1(code$1)}function cdataEnd(code$1){return code$1===62?end(code$1):code$1===93?(effects.consume(code$1),cdataEnd):cdata$1(code$1)}function declaration(code$1){return code$1===null||code$1===62?end(code$1):markdownLineEnding(code$1)?(returnState=declaration,lineEndingBefore(code$1)):(effects.consume(code$1),declaration)}function instruction$1(code$1){return code$1===null?nok(code$1):code$1===63?(effects.consume(code$1),instructionClose):markdownLineEnding(code$1)?(returnState=instruction$1,lineEndingBefore(code$1)):(effects.consume(code$1),instruction$1)}function instructionClose(code$1){return code$1===62?end(code$1):instruction$1(code$1)}function tagCloseStart(code$1){return asciiAlpha(code$1)?(effects.consume(code$1),tagClose):nok(code$1)}function tagClose(code$1){return code$1===45||asciiAlphanumeric(code$1)?(effects.consume(code$1),tagClose):tagCloseBetween(code$1)}function tagCloseBetween(code$1){return markdownLineEnding(code$1)?(returnState=tagCloseBetween,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagCloseBetween):end(code$1)}function tagOpen(code$1){return code$1===45||asciiAlphanumeric(code$1)?(effects.consume(code$1),tagOpen):code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)?tagOpenBetween(code$1):nok(code$1)}function tagOpenBetween(code$1){return code$1===47?(effects.consume(code$1),end):code$1===58||code$1===95||asciiAlpha(code$1)?(effects.consume(code$1),tagOpenAttributeName):markdownLineEnding(code$1)?(returnState=tagOpenBetween,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagOpenBetween):end(code$1)}function tagOpenAttributeName(code$1){return code$1===45||code$1===46||code$1===58||code$1===95||asciiAlphanumeric(code$1)?(effects.consume(code$1),tagOpenAttributeName):tagOpenAttributeNameAfter(code$1)}function tagOpenAttributeNameAfter(code$1){return code$1===61?(effects.consume(code$1),tagOpenAttributeValueBefore):markdownLineEnding(code$1)?(returnState=tagOpenAttributeNameAfter,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagOpenAttributeNameAfter):tagOpenBetween(code$1)}function tagOpenAttributeValueBefore(code$1){return code$1===null||code$1===60||code$1===61||code$1===62||code$1===96?nok(code$1):code$1===34||code$1===39?(effects.consume(code$1),marker=code$1,tagOpenAttributeValueQuoted):markdownLineEnding(code$1)?(returnState=tagOpenAttributeValueBefore,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagOpenAttributeValueBefore):(effects.consume(code$1),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(code$1){return code$1===marker?(effects.consume(code$1),marker=void 0,tagOpenAttributeValueQuotedAfter):code$1===null?nok(code$1):markdownLineEnding(code$1)?(returnState=tagOpenAttributeValueQuoted,lineEndingBefore(code$1)):(effects.consume(code$1),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueUnquoted(code$1){return code$1===null||code$1===34||code$1===39||code$1===60||code$1===61||code$1===96?nok(code$1):code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)?tagOpenBetween(code$1):(effects.consume(code$1),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuotedAfter(code$1){return code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)?tagOpenBetween(code$1):nok(code$1)}function end(code$1){return code$1===62?(effects.consume(code$1),effects.exit(`htmlTextData`),effects.exit(`htmlText`),ok$2):nok(code$1)}function lineEndingBefore(code$1){return effects.exit(`htmlTextData`),effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),lineEndingAfter}function lineEndingAfter(code$1){return markdownSpace(code$1)?factorySpace(effects,lineEndingAfterPrefix,`linePrefix`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(code$1):lineEndingAfterPrefix(code$1)}function lineEndingAfterPrefix(code$1){return effects.enter(`htmlTextData`),returnState(code$1)}}const labelEnd={name:`labelEnd`,resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(events){let index$1=-1,newEvents=[];for(;++index$1=3&&(code$1===null||markdownLineEnding(code$1))?(effects.exit(`thematicBreak`),ok$2(code$1)):nok(code$1)}function sequence(code$1){return code$1===marker?(effects.consume(code$1),size$1++,sequence):(effects.exit(`thematicBreakSequence`),markdownSpace(code$1)?factorySpace(effects,atBreak,`whitespace`)(code$1):atBreak(code$1))}}const list$1={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:`list`,tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent};function tokenizeListStart(effects,ok$2,nok){let self$1=this,tail=self$1.events[self$1.events.length-1],initialSize=tail&&tail[1].type===`linePrefix`?tail[2].sliceSerialize(tail[1],!0).length:0,size$1=0;return start;function start(code$1){let kind=self$1.containerState.type||(code$1===42||code$1===43||code$1===45?`listUnordered`:`listOrdered`);if(kind===`listUnordered`?!self$1.containerState.marker||code$1===self$1.containerState.marker:asciiDigit(code$1)){if(self$1.containerState.type||(self$1.containerState.type=kind,effects.enter(kind,{_container:!0})),kind===`listUnordered`)return effects.enter(`listItemPrefix`),code$1===42||code$1===45?effects.check(thematicBreak$1,nok,atMarker)(code$1):atMarker(code$1);if(!self$1.interrupt||code$1===49)return effects.enter(`listItemPrefix`),effects.enter(`listItemValue`),inside(code$1)}return nok(code$1)}function inside(code$1){return asciiDigit(code$1)&&++size$1<10?(effects.consume(code$1),inside):(!self$1.interrupt||size$1<2)&&(self$1.containerState.marker?code$1===self$1.containerState.marker:code$1===41||code$1===46)?(effects.exit(`listItemValue`),atMarker(code$1)):nok(code$1)}function atMarker(code$1){return effects.enter(`listItemMarker`),effects.consume(code$1),effects.exit(`listItemMarker`),self$1.containerState.marker=self$1.containerState.marker||code$1,effects.check(blankLine,self$1.interrupt?nok:onBlank,effects.attempt(listItemPrefixWhitespaceConstruct,endOfPrefix,otherPrefix))}function onBlank(code$1){return self$1.containerState.initialBlankLine=!0,initialSize++,endOfPrefix(code$1)}function otherPrefix(code$1){return markdownSpace(code$1)?(effects.enter(`listItemPrefixWhitespace`),effects.consume(code$1),effects.exit(`listItemPrefixWhitespace`),endOfPrefix):nok(code$1)}function endOfPrefix(code$1){return self$1.containerState.size=initialSize+self$1.sliceSerialize(effects.exit(`listItemPrefix`),!0).length,ok$2(code$1)}}function tokenizeListContinuation(effects,ok$2,nok){let self$1=this;return self$1.containerState._closeFlow=void 0,effects.check(blankLine,onBlank,notBlank);function onBlank(code$1){return self$1.containerState.furtherBlankLines=self$1.containerState.furtherBlankLines||self$1.containerState.initialBlankLine,factorySpace(effects,ok$2,`listItemIndent`,self$1.containerState.size+1)(code$1)}function notBlank(code$1){return self$1.containerState.furtherBlankLines||!markdownSpace(code$1)?(self$1.containerState.furtherBlankLines=void 0,self$1.containerState.initialBlankLine=void 0,notInCurrentItem(code$1)):(self$1.containerState.furtherBlankLines=void 0,self$1.containerState.initialBlankLine=void 0,effects.attempt(indentConstruct,ok$2,notInCurrentItem)(code$1))}function notInCurrentItem(code$1){return self$1.containerState._closeFlow=!0,self$1.interrupt=void 0,factorySpace(effects,effects.attempt(list$1,ok$2,nok),`linePrefix`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(code$1)}}function tokenizeIndent(effects,ok$2,nok){let self$1=this;return factorySpace(effects,afterPrefix,`listItemIndent`,self$1.containerState.size+1);function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return tail&&tail[1].type===`listItemIndent`&&tail[2].sliceSerialize(tail[1],!0).length===self$1.containerState.size?ok$2(code$1):nok(code$1)}}function tokenizeListEnd(effects){effects.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(effects,ok$2,nok){let self$1=this;return factorySpace(effects,afterPrefix,`listItemPrefixWhitespace`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return!markdownSpace(code$1)&&tail&&tail[1].type===`listItemPrefixWhitespace`?ok$2(code$1):nok(code$1)}}const setextUnderline={name:`setextUnderline`,resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(events,context$1){let index$1=events.length,content$2,text$5,definition$29;for(;index$1--;)if(events[index$1][0]===`enter`){if(events[index$1][1].type===`content`){content$2=index$1;break}events[index$1][1].type===`paragraph`&&(text$5=index$1)}else events[index$1][1].type===`content`&&events.splice(index$1,1),!definition$29&&events[index$1][1].type===`definition`&&(definition$29=index$1);let heading$1={type:`setextHeading`,start:{...events[text$5][1].start},end:{...events[events.length-1][1].end}};return events[text$5][1].type=`setextHeadingText`,definition$29?(events.splice(text$5,0,[`enter`,heading$1,context$1]),events.splice(definition$29+1,0,[`exit`,events[content$2][1],context$1]),events[content$2][1].end={...events[definition$29][1].end}):events[content$2][1]=heading$1,events.push([`exit`,heading$1,context$1]),events}function tokenizeSetextUnderline(effects,ok$2,nok){let self$1=this,marker;return start;function start(code$1){let index$1=self$1.events.length,paragraph$1;for(;index$1--;)if(self$1.events[index$1][1].type!==`lineEnding`&&self$1.events[index$1][1].type!==`linePrefix`&&self$1.events[index$1][1].type!==`content`){paragraph$1=self$1.events[index$1][1].type===`paragraph`;break}return!self$1.parser.lazy[self$1.now().line]&&(self$1.interrupt||paragraph$1)?(effects.enter(`setextHeadingLine`),marker=code$1,before(code$1)):nok(code$1)}function before(code$1){return effects.enter(`setextHeadingLineSequence`),inside(code$1)}function inside(code$1){return code$1===marker?(effects.consume(code$1),inside):(effects.exit(`setextHeadingLineSequence`),markdownSpace(code$1)?factorySpace(effects,after,`lineSuffix`)(code$1):after(code$1))}function after(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`setextHeadingLine`),ok$2(code$1)):nok(code$1)}}const flow={tokenize:initializeFlow};function initializeFlow(effects){let self$1=this,initial=effects.attempt(blankLine,atBlankEnding,effects.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(effects,effects.attempt(this.parser.constructs.flow,afterConstruct,effects.attempt(content$1,afterConstruct)),`linePrefix`)));return initial;function atBlankEnding(code$1){if(code$1===null){effects.consume(code$1);return}return effects.enter(`lineEndingBlank`),effects.consume(code$1),effects.exit(`lineEndingBlank`),self$1.currentConstruct=void 0,initial}function afterConstruct(code$1){if(code$1===null){effects.consume(code$1);return}return effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),self$1.currentConstruct=void 0,initial}}const resolver={resolveAll:createResolver()},string=initializeFactory(`string`),text$2=initializeFactory(`text`);function initializeFactory(field){return{resolveAll:createResolver(field===`text`?resolveAllLineSuffixes:void 0),tokenize:initializeText};function initializeText(effects){let self$1=this,constructs$1=this.parser.constructs[field],text$5=effects.attempt(constructs$1,start,notText);return start;function start(code$1){return atBreak(code$1)?text$5(code$1):notText(code$1)}function notText(code$1){if(code$1===null){effects.consume(code$1);return}return effects.enter(`data`),effects.consume(code$1),data$10}function data$10(code$1){return atBreak(code$1)?(effects.exit(`data`),text$5(code$1)):(effects.consume(code$1),data$10)}function atBreak(code$1){if(code$1===null)return!0;let list$2=constructs$1[code$1],index$1=-1;if(list$2)for(;++index$1attentionMarkers,contentInitial:()=>contentInitial,disable:()=>disable,document:()=>document$2,flow:()=>flow$1,flowInitial:()=>flowInitial,insideSpan:()=>insideSpan,string:()=>string$1,text:()=>text$3});const document$2={42:list$1,43:list$1,45:list$1,48:list$1,49:list$1,50:list$1,51:list$1,52:list$1,53:list$1,54:list$1,55:list$1,56:list$1,57:list$1,62:blockQuote},contentInitial={91:definition$28},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow$1={35:headingAtx,42:thematicBreak$1,45:[setextUnderline,thematicBreak$1],60:htmlFlow,61:setextUnderline,95:thematicBreak$1,96:codeFenced,126:codeFenced},string$1={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]};function createTokenizer$1(parser,initialize,from){let point$3={_bufferIndex:-1,_index:0,line:from&&from.line||1,column:from&&from.column||1,offset:from&&from.offset||0},columnStart={},resolveAllConstructs=[],chunks=[],stack$1=[],consumed=!0,effects={attempt:constructFactory(onsuccessfulconstruct),check:constructFactory(onsuccessfulcheck),consume,enter,exit:exit$1,interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},context$1={code:null,containerState:{},defineSkip,events:[],now,parser,previous:null,sliceSerialize,sliceStream,write},state=initialize.tokenize.call(context$1,effects),expectedCode;return initialize.resolveAll&&resolveAllConstructs.push(initialize),context$1;function write(slice){return chunks=push(chunks,slice),main(),chunks[chunks.length-1]===null?(addResult(initialize,0),context$1.events=resolveAll(resolveAllConstructs,context$1.events,context$1),context$1.events):[]}function sliceSerialize(token,expandTabs){return serializeChunks(sliceStream(token),expandTabs)}function sliceStream(token){return sliceChunks(chunks,token)}function now(){let{_bufferIndex,_index,line,column,offset:offset$1}=point$3;return{_bufferIndex,_index,line,column,offset:offset$1}}function defineSkip(value$1){columnStart[value$1.line]=value$1.column,accountForPotentialSkip()}function main(){let chunkIndex;for(;point$3._index-1){let head$1=view[0];typeof head$1==`string`?view[0]=head$1.slice(startBufferIndex):view.shift()}endBufferIndex>0&&view.push(chunks[endIndex].slice(0,endBufferIndex))}return view}function serializeChunks(chunks,expandTabs){let index$1=-1,result=[],atTab;for(;++index$1\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function element$2(node$1,index$1,parent,state){let schema=state.schema,omit=schema.space===`svg`?!1:state.settings.omitOptionalTags,selfClosing=schema.space===`svg`?state.settings.closeEmptyElements:state.settings.voids.includes(node$1.tagName.toLowerCase()),parts=[],last;schema.space===`html`&&node$1.tagName===`svg`&&(state.schema=svg);let attributes=serializeAttributes(state,node$1.properties),content$2=state.all(schema.space===`html`&&node$1.tagName===`template`?node$1.content:node$1);return state.schema=schema,content$2&&(selfClosing=!1),(attributes||!omit||!opening(node$1,index$1,parent))&&(parts.push(`<`,node$1.tagName,attributes?` `+attributes:``),selfClosing&&(schema.space===`svg`||state.settings.closeSelfClosing)&&(last=attributes.charAt(attributes.length-1),(!state.settings.tightSelfClosing||last===`/`||last&&last!==`"`&&last!==`'`)&&parts.push(` `),parts.push(`/`)),parts.push(`>`)),parts.push(content$2),!selfClosing&&(!omit||!closing(node$1,index$1,parent))&&parts.push(``),parts.join(``)}function serializeAttributes(state,properties){let values=[],index$1=-1,key$1;if(properties){for(key$1 in properties)if(properties[key$1]!==null&&properties[key$1]!==void 0){let value$1=serializeAttribute(state,key$1,properties[key$1]);value$1&&values.push(value$1)}}for(;++index$1ccount(value$1,state.alternative)&&(quote=state.alternative),result=quote+stringifyEntities(value$1,Object.assign({},state.settings.characterReferences,{subset:(quote===`'`?constants.single:constants.double)[x$3][y$2],attribute:!0}))+quote),name$2+(result&&`=`+result))}const textEntitySubset=[`<`,`&`];function text$4(node$1,_$2,parent,state){return parent&&parent.type===`element`&&(parent.tagName===`script`||parent.tagName===`style`)?node$1.value:stringifyEntities(node$1.value,Object.assign({},state.settings.characterReferences,{subset:textEntitySubset}))}function raw$1(node$1,index$1,parent,state){return state.settings.allowDangerousHtml?node$1.value:text$4(node$1,index$1,parent,state)}function root$1(node$1,_1,_2,state){return state.all(node$1)}const handle=zwitch(`type`,{invalid,unknown,handlers:{comment:comment$1,doctype:doctype$1,element:element$2,raw:raw$1,root:root$1,text:text$4}});function invalid(node$1){throw Error("Expected node, not `"+node$1+"`")}function unknown(node_){let node$1=node_;throw Error("Cannot compile unknown node `"+node$1.type+"`")}const emptyOptions$2={},emptyCharacterReferences={},emptyChildren=[];function toHtml(tree,options$1){let options_=options$1||emptyOptions$2,quote=options_.quote||`"`,alternative=quote===`"`?`'`:`"`;if(quote!==`"`&"e!==`'`)throw Error("Invalid quote `"+quote+"`, expected `'` or `\"`");let state={one:one$2,all:all$2,settings:{omitOptionalTags:options_.omitOptionalTags||!1,allowParseErrors:options_.allowParseErrors||!1,allowDangerousCharacters:options_.allowDangerousCharacters||!1,quoteSmart:options_.quoteSmart||!1,preferUnquoted:options_.preferUnquoted||!1,tightAttributes:options_.tightAttributes||!1,upperDoctype:options_.upperDoctype||!1,tightDoctype:options_.tightDoctype||!1,bogusComments:options_.bogusComments||!1,tightCommaSeparatedLists:options_.tightCommaSeparatedLists||!1,tightSelfClosing:options_.tightSelfClosing||!1,collapseEmptyAttributes:options_.collapseEmptyAttributes||!1,allowDangerousHtml:options_.allowDangerousHtml||!1,voids:options_.voids||htmlVoidElements,characterReferences:options_.characterReferences||emptyCharacterReferences,closeSelfClosing:options_.closeSelfClosing||!1,closeEmptyElements:options_.closeEmptyElements||!1},schema:options_.space===`svg`?svg:html$1,quote,alternative};return state.one(Array.isArray(tree)?{type:`root`,children:tree}:tree,void 0,void 0)}function one$2(node$1,index$1,parent){return handle(node$1,index$1,parent,this)}function all$2(parent){let results=[],children=parent&&parent.children||emptyChildren,index$1=-1;for(;++index$1end?0:end+start:start>end?end:start,remove$2=remove$2>0?remove$2:0,items.length<1e4)parameters=Array.from(items),parameters.unshift(start,remove$2),list$2.splice(...parameters);else for(remove$2&&list$2.splice(start,remove$2);chunkStart0?(splice(list$2,list$2.length,0,items),list$2):items}const hasOwnProperty$1={}.hasOwnProperty;function combineExtensions(extensions){let all$3={},index$1=-1;for(;++index$113&&code$1<32||code$1>126&&code$1<160||code$1>55295&&code$1<57344||code$1>64975&&code$1<65008||(code$1&65535)==65535||(code$1&65535)==65534||code$1>1114111?`�`:String.fromCodePoint(code$1)}function normalizeIdentifier(value$1){return value$1.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(code$1){return code$1!==null&&(code$1<32||code$1===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(code$1){return code$1!==null&&code$1<-2}function markdownLineEndingOrSpace(code$1){return code$1!==null&&(code$1<0||code$1===32)}function markdownSpace(code$1){return code$1===-2||code$1===-1||code$1===32}const unicodePunctuation=regexCheck(/\p{P}|\p{S}/u),unicodeWhitespace=regexCheck(/\s/);function regexCheck(regex){return check$1;function check$1(code$1){return code$1!==null&&code$1>-1&®ex.test(String.fromCharCode(code$1))}}function normalizeUri(value$1){let result=[],index$1=-1,start=0,skip=0;for(;++index$155295&&code$1<57344){let next=value$1.charCodeAt(index$1+1);code$1<56320&&next>56319&&next<57344?(replace=String.fromCharCode(code$1,next),skip=1):replace=`�`}else replace=String.fromCharCode(code$1);replace&&(result.push(value$1.slice(start,index$1),encodeURIComponent(replace)),start=index$1+skip+1,replace=``),skip&&(index$1+=skip,skip=0)}return result.join(``)+value$1.slice(start)}function factorySpace(effects,ok$2,type,max$1){let limit=max$1?max$1-1:1/0,size$1=0;return start;function start(code$1){return markdownSpace(code$1)?(effects.enter(type),prefix(code$1)):ok$2(code$1)}function prefix(code$1){return markdownSpace(code$1)&&size$1++lineStartOffset))return;let indexBeforeExits=self$1.events.length,indexBeforeFlow=indexBeforeExits,seen$1,point$3;for(;indexBeforeFlow--;)if(self$1.events[indexBeforeFlow][0]===`exit`&&self$1.events[indexBeforeFlow][1].type===`chunkFlow`){if(seen$1){point$3=self$1.events[indexBeforeFlow][1].end;break}seen$1=!0}for(exitContainers(continued),index$1=indexBeforeExits;index$1size$1;){let entry=stack$1[index$1];self$1.containerState=entry[1],entry[0].exit.call(self$1,effects)}stack$1.length=size$1}function closeFlow(){childFlow.write([null]),childToken=void 0,childFlow=void 0,self$1.containerState._closeFlow=void 0}}function tokenizeContainer(effects,ok$2,nok){return factorySpace(effects,effects.attempt(this.parser.constructs.document,ok$2,nok),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function classifyCharacter(code$1){if(code$1===null||markdownLineEndingOrSpace(code$1)||unicodeWhitespace(code$1))return 1;if(unicodePunctuation(code$1))return 2}function resolveAll(constructs$1,events,context$1){let called=[],index$1=-1;for(;++index$11&&events[index$1][1].end.offset-events[index$1][1].start.offset>1?2:1;let start={...events[open$1][1].end},end={...events[index$1][1].start};movePoint(start,-use),movePoint(end,use),openingSequence={type:use>1?`strongSequence`:`emphasisSequence`,start,end:{...events[open$1][1].end}},closingSequence={type:use>1?`strongSequence`:`emphasisSequence`,start:{...events[index$1][1].start},end},text$5={type:use>1?`strongText`:`emphasisText`,start:{...events[open$1][1].end},end:{...events[index$1][1].start}},group={type:use>1?`strong`:`emphasis`,start:{...openingSequence.start},end:{...closingSequence.end}},events[open$1][1].end={...openingSequence.start},events[index$1][1].start={...closingSequence.end},nextEvents=[],events[open$1][1].end.offset-events[open$1][1].start.offset&&(nextEvents=push(nextEvents,[[`enter`,events[open$1][1],context$1],[`exit`,events[open$1][1],context$1]])),nextEvents=push(nextEvents,[[`enter`,group,context$1],[`enter`,openingSequence,context$1],[`exit`,openingSequence,context$1],[`enter`,text$5,context$1]]),nextEvents=push(nextEvents,resolveAll(context$1.parser.constructs.insideSpan.null,events.slice(open$1+1,index$1),context$1)),nextEvents=push(nextEvents,[[`exit`,text$5,context$1],[`enter`,closingSequence,context$1],[`exit`,closingSequence,context$1],[`exit`,group,context$1]]),events[index$1][1].end.offset-events[index$1][1].start.offset?(offset$1=2,nextEvents=push(nextEvents,[[`enter`,events[index$1][1],context$1],[`exit`,events[index$1][1],context$1]])):offset$1=0,splice(events,open$1-1,index$1-open$1+3,nextEvents),index$1=open$1+nextEvents.length-offset$1-2;break}}for(index$1=-1;++index$10&&markdownSpace(code$1)?factorySpace(effects,beforeContentChunk,`linePrefix`,initialPrefix+1)(code$1):beforeContentChunk(code$1)}function beforeContentChunk(code$1){return code$1===null||markdownLineEnding(code$1)?effects.check(nonLazyContinuation,atNonLazyBreak,after)(code$1):(effects.enter(`codeFlowValue`),contentChunk(code$1))}function contentChunk(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`codeFlowValue`),beforeContentChunk(code$1)):(effects.consume(code$1),contentChunk)}function after(code$1){return effects.exit(`codeFenced`),ok$2(code$1)}function tokenizeCloseStart(effects$1,ok$3,nok$1){let size$1=0;return startBefore;function startBefore(code$1){return effects$1.enter(`lineEnding`),effects$1.consume(code$1),effects$1.exit(`lineEnding`),start$1}function start$1(code$1){return effects$1.enter(`codeFencedFence`),markdownSpace(code$1)?factorySpace(effects$1,beforeSequenceClose,`linePrefix`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(code$1):beforeSequenceClose(code$1)}function beforeSequenceClose(code$1){return code$1===marker?(effects$1.enter(`codeFencedFenceSequence`),sequenceClose(code$1)):nok$1(code$1)}function sequenceClose(code$1){return code$1===marker?(size$1++,effects$1.consume(code$1),sequenceClose):size$1>=sizeOpen?(effects$1.exit(`codeFencedFenceSequence`),markdownSpace(code$1)?factorySpace(effects$1,sequenceCloseAfter,`whitespace`)(code$1):sequenceCloseAfter(code$1)):nok$1(code$1)}function sequenceCloseAfter(code$1){return code$1===null||markdownLineEnding(code$1)?(effects$1.exit(`codeFencedFence`),ok$3(code$1)):nok$1(code$1)}}}function tokenizeNonLazyContinuation(effects,ok$2,nok){let self$1=this;return start;function start(code$1){return code$1===null?nok(code$1):(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),lineStart)}function lineStart(code$1){return self$1.parser.lazy[self$1.now().line]?nok(code$1):ok$2(code$1)}}const codeIndented={name:`codeIndented`,tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(effects,ok$2,nok){let self$1=this;return start;function start(code$1){return effects.enter(`codeIndented`),factorySpace(effects,afterPrefix,`linePrefix`,5)(code$1)}function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return tail&&tail[1].type===`linePrefix`&&tail[2].sliceSerialize(tail[1],!0).length>=4?atBreak(code$1):nok(code$1)}function atBreak(code$1){return code$1===null?after(code$1):markdownLineEnding(code$1)?effects.attempt(furtherStart,atBreak,after)(code$1):(effects.enter(`codeFlowValue`),inside(code$1))}function inside(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`codeFlowValue`),atBreak(code$1)):(effects.consume(code$1),inside)}function after(code$1){return effects.exit(`codeIndented`),ok$2(code$1)}}function tokenizeFurtherStart(effects,ok$2,nok){let self$1=this;return furtherStart$1;function furtherStart$1(code$1){return self$1.parser.lazy[self$1.now().line]?nok(code$1):markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),furtherStart$1):factorySpace(effects,afterPrefix,`linePrefix`,5)(code$1)}function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return tail&&tail[1].type===`linePrefix`&&tail[2].sliceSerialize(tail[1],!0).length>=4?ok$2(code$1):markdownLineEnding(code$1)?furtherStart$1(code$1):nok(code$1)}}const codeText={name:`codeText`,previous,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(events){let tailExitIndex=events.length-4,headEnterIndex=3,index$1,enter;if((events[headEnterIndex][1].type===`lineEnding`||events[headEnterIndex][1].type===`space`)&&(events[tailExitIndex][1].type===`lineEnding`||events[tailExitIndex][1].type===`space`)){for(index$1=headEnterIndex;++index$1=this.left.length+this.right.length)throw RangeError("Cannot access index `"+index$1+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return index$1this.left.length)return this.right.slice(this.right.length-stop$1+this.left.length,this.right.length-start+this.left.length).reverse();let list$2=this.left.slice(start);return list$2.push(...this.right.slice(this.right.length-stop$1+this.left.length).reverse()),list$2}splice(start,deleteCount,items){let count$1=deleteCount||0;this.setCursor(Math.trunc(start));let removed=this.right.splice(this.right.length-count$1,1/0);return items&&chunkedPush(this.left,items),removed.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(item){this.setCursor(1/0),this.left.push(item)}pushMany(items){this.setCursor(1/0),chunkedPush(this.left,items)}unshift(item){this.setCursor(0),this.right.push(item)}unshiftMany(items){this.setCursor(0),chunkedPush(this.right,items.reverse())}setCursor(n$2){if(!(n$2===this.left.length||n$2>this.left.length&&this.right.length===0||n$2<0&&this.left.length===0))if(n$2=4?ok$2(code$1):effects.interrupt(self$1.parser.constructs.flow,nok,ok$2)(code$1)}}function factoryDestination(effects,ok$2,nok,type,literalType$1,literalMarkerType,rawType,stringType$1,max$1){let limit=max$1||1/0,balance=0;return start;function start(code$1){return code$1===60?(effects.enter(type),effects.enter(literalType$1),effects.enter(literalMarkerType),effects.consume(code$1),effects.exit(literalMarkerType),enclosedBefore):code$1===null||code$1===32||code$1===41||asciiControl(code$1)?nok(code$1):(effects.enter(type),effects.enter(rawType),effects.enter(stringType$1),effects.enter(`chunkString`,{contentType:`string`}),raw$3(code$1))}function enclosedBefore(code$1){return code$1===62?(effects.enter(literalMarkerType),effects.consume(code$1),effects.exit(literalMarkerType),effects.exit(literalType$1),effects.exit(type),ok$2):(effects.enter(stringType$1),effects.enter(`chunkString`,{contentType:`string`}),enclosed(code$1))}function enclosed(code$1){return code$1===62?(effects.exit(`chunkString`),effects.exit(stringType$1),enclosedBefore(code$1)):code$1===null||code$1===60||markdownLineEnding(code$1)?nok(code$1):(effects.consume(code$1),code$1===92?enclosedEscape:enclosed)}function enclosedEscape(code$1){return code$1===60||code$1===62||code$1===92?(effects.consume(code$1),enclosed):enclosed(code$1)}function raw$3(code$1){return!balance&&(code$1===null||code$1===41||markdownLineEndingOrSpace(code$1))?(effects.exit(`chunkString`),effects.exit(stringType$1),effects.exit(rawType),effects.exit(type),ok$2(code$1)):balance999||code$1===null||code$1===91||code$1===93&&!seen$1||code$1===94&&!size$1&&`_hiddenFootnoteSupport`in self$1.parser.constructs?nok(code$1):code$1===93?(effects.exit(stringType$1),effects.enter(markerType),effects.consume(code$1),effects.exit(markerType),effects.exit(type),ok$2):markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),atBreak):(effects.enter(`chunkString`,{contentType:`string`}),labelInside(code$1))}function labelInside(code$1){return code$1===null||code$1===91||code$1===93||markdownLineEnding(code$1)||size$1++>999?(effects.exit(`chunkString`),atBreak(code$1)):(effects.consume(code$1),seen$1||=!markdownSpace(code$1),code$1===92?labelEscape:labelInside)}function labelEscape(code$1){return code$1===91||code$1===92||code$1===93?(effects.consume(code$1),size$1++,labelInside):labelInside(code$1)}}function factoryTitle(effects,ok$2,nok,type,markerType,stringType$1){let marker;return start;function start(code$1){return code$1===34||code$1===39||code$1===40?(effects.enter(type),effects.enter(markerType),effects.consume(code$1),effects.exit(markerType),marker=code$1===40?41:code$1,begin):nok(code$1)}function begin(code$1){return code$1===marker?(effects.enter(markerType),effects.consume(code$1),effects.exit(markerType),effects.exit(type),ok$2):(effects.enter(stringType$1),atBreak(code$1))}function atBreak(code$1){return code$1===marker?(effects.exit(stringType$1),begin(marker)):code$1===null?nok(code$1):markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),factorySpace(effects,atBreak,`linePrefix`)):(effects.enter(`chunkString`,{contentType:`string`}),inside(code$1))}function inside(code$1){return code$1===marker||code$1===null||markdownLineEnding(code$1)?(effects.exit(`chunkString`),atBreak(code$1)):(effects.consume(code$1),code$1===92?escape$1:inside)}function escape$1(code$1){return code$1===marker||code$1===92?(effects.consume(code$1),inside):inside(code$1)}}function factoryWhitespace(effects,ok$2){let seen$1;return start;function start(code$1){return markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),seen$1=!0,start):markdownSpace(code$1)?factorySpace(effects,start,seen$1?`linePrefix`:`lineSuffix`)(code$1):ok$2(code$1)}}const definition$28={name:`definition`,tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(effects,ok$2,nok){let self$1=this,identifier;return start;function start(code$1){return effects.enter(`definition`),before(code$1)}function before(code$1){return factoryLabel.call(self$1,effects,labelAfter,nok,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(code$1)}function labelAfter(code$1){return identifier=normalizeIdentifier(self$1.sliceSerialize(self$1.events[self$1.events.length-1][1]).slice(1,-1)),code$1===58?(effects.enter(`definitionMarker`),effects.consume(code$1),effects.exit(`definitionMarker`),markerAfter):nok(code$1)}function markerAfter(code$1){return markdownLineEndingOrSpace(code$1)?factoryWhitespace(effects,destinationBefore)(code$1):destinationBefore(code$1)}function destinationBefore(code$1){return factoryDestination(effects,destinationAfter,nok,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(code$1)}function destinationAfter(code$1){return effects.attempt(titleBefore,after,after)(code$1)}function after(code$1){return markdownSpace(code$1)?factorySpace(effects,afterWhitespace,`whitespace`)(code$1):afterWhitespace(code$1)}function afterWhitespace(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`definition`),self$1.parser.defined.push(identifier),ok$2(code$1)):nok(code$1)}}function tokenizeTitleBefore(effects,ok$2,nok){return titleBefore$1;function titleBefore$1(code$1){return markdownLineEndingOrSpace(code$1)?factoryWhitespace(effects,beforeMarker)(code$1):nok(code$1)}function beforeMarker(code$1){return factoryTitle(effects,titleAfter,nok,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(code$1)}function titleAfter(code$1){return markdownSpace(code$1)?factorySpace(effects,titleAfterOptionalWhitespace,`whitespace`)(code$1):titleAfterOptionalWhitespace(code$1)}function titleAfterOptionalWhitespace(code$1){return code$1===null||markdownLineEnding(code$1)?ok$2(code$1):nok(code$1)}}const hardBreakEscape={name:`hardBreakEscape`,tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(effects,ok$2,nok){return start;function start(code$1){return effects.enter(`hardBreakEscape`),effects.consume(code$1),after}function after(code$1){return markdownLineEnding(code$1)?(effects.exit(`hardBreakEscape`),ok$2(code$1)):nok(code$1)}}const headingAtx={name:`headingAtx`,resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(events,context$1){let contentEnd=events.length-2,contentStart=3,content$2,text$5;return events[contentStart][1].type===`whitespace`&&(contentStart+=2),contentEnd-2>contentStart&&events[contentEnd][1].type===`whitespace`&&(contentEnd-=2),events[contentEnd][1].type===`atxHeadingSequence`&&(contentStart===contentEnd-1||contentEnd-4>contentStart&&events[contentEnd-2][1].type===`whitespace`)&&(contentEnd-=contentStart+1===contentEnd?2:4),contentEnd>contentStart&&(content$2={type:`atxHeadingText`,start:events[contentStart][1].start,end:events[contentEnd][1].end},text$5={type:`chunkText`,start:events[contentStart][1].start,end:events[contentEnd][1].end,contentType:`text`},splice(events,contentStart,contentEnd-contentStart+1,[[`enter`,content$2,context$1],[`enter`,text$5,context$1],[`exit`,text$5,context$1],[`exit`,content$2,context$1]])),events}function tokenizeHeadingAtx(effects,ok$2,nok){let size$1=0;return start;function start(code$1){return effects.enter(`atxHeading`),before(code$1)}function before(code$1){return effects.enter(`atxHeadingSequence`),sequenceOpen(code$1)}function sequenceOpen(code$1){return code$1===35&&size$1++<6?(effects.consume(code$1),sequenceOpen):code$1===null||markdownLineEndingOrSpace(code$1)?(effects.exit(`atxHeadingSequence`),atBreak(code$1)):nok(code$1)}function atBreak(code$1){return code$1===35?(effects.enter(`atxHeadingSequence`),sequenceFurther(code$1)):code$1===null||markdownLineEnding(code$1)?(effects.exit(`atxHeading`),ok$2(code$1)):markdownSpace(code$1)?factorySpace(effects,atBreak,`whitespace`)(code$1):(effects.enter(`atxHeadingText`),data$10(code$1))}function sequenceFurther(code$1){return code$1===35?(effects.consume(code$1),sequenceFurther):(effects.exit(`atxHeadingSequence`),atBreak(code$1))}function data$10(code$1){return code$1===null||code$1===35||markdownLineEndingOrSpace(code$1)?(effects.exit(`atxHeadingText`),atBreak(code$1)):(effects.consume(code$1),data$10)}}const htmlBlockNames=`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(`.`),htmlRawNames=[`pre`,`script`,`style`,`textarea`],htmlFlow={concrete:!0,name:`htmlFlow`,resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(events){let index$1=events.length;for(;index$1--&&!(events[index$1][0]===`enter`&&events[index$1][1].type===`htmlFlow`););return index$1>1&&events[index$1-2][1].type===`linePrefix`&&(events[index$1][1].start=events[index$1-2][1].start,events[index$1+1][1].start=events[index$1-2][1].start,events.splice(index$1-2,2)),events}function tokenizeHtmlFlow(effects,ok$2,nok){let self$1=this,marker,closingTag,buffer$1,index$1,markerB;return start;function start(code$1){return before(code$1)}function before(code$1){return effects.enter(`htmlFlow`),effects.enter(`htmlFlowData`),effects.consume(code$1),open$1}function open$1(code$1){return code$1===33?(effects.consume(code$1),declarationOpen):code$1===47?(effects.consume(code$1),closingTag=!0,tagCloseStart):code$1===63?(effects.consume(code$1),marker=3,self$1.interrupt?ok$2:continuationDeclarationInside):asciiAlpha(code$1)?(effects.consume(code$1),buffer$1=String.fromCharCode(code$1),tagName):nok(code$1)}function declarationOpen(code$1){return code$1===45?(effects.consume(code$1),marker=2,commentOpenInside):code$1===91?(effects.consume(code$1),marker=5,index$1=0,cdataOpenInside):asciiAlpha(code$1)?(effects.consume(code$1),marker=4,self$1.interrupt?ok$2:continuationDeclarationInside):nok(code$1)}function commentOpenInside(code$1){return code$1===45?(effects.consume(code$1),self$1.interrupt?ok$2:continuationDeclarationInside):nok(code$1)}function cdataOpenInside(code$1){let value$1=`CDATA[`;return code$1===value$1.charCodeAt(index$1++)?(effects.consume(code$1),index$1===value$1.length?self$1.interrupt?ok$2:continuation:cdataOpenInside):nok(code$1)}function tagCloseStart(code$1){return asciiAlpha(code$1)?(effects.consume(code$1),buffer$1=String.fromCharCode(code$1),tagName):nok(code$1)}function tagName(code$1){if(code$1===null||code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)){let slash=code$1===47,name$2=buffer$1.toLowerCase();return!slash&&!closingTag&&htmlRawNames.includes(name$2)?(marker=1,self$1.interrupt?ok$2(code$1):continuation(code$1)):htmlBlockNames.includes(buffer$1.toLowerCase())?(marker=6,slash?(effects.consume(code$1),basicSelfClosing):self$1.interrupt?ok$2(code$1):continuation(code$1)):(marker=7,self$1.interrupt&&!self$1.parser.lazy[self$1.now().line]?nok(code$1):closingTag?completeClosingTagAfter(code$1):completeAttributeNameBefore(code$1))}return code$1===45||asciiAlphanumeric(code$1)?(effects.consume(code$1),buffer$1+=String.fromCharCode(code$1),tagName):nok(code$1)}function basicSelfClosing(code$1){return code$1===62?(effects.consume(code$1),self$1.interrupt?ok$2:continuation):nok(code$1)}function completeClosingTagAfter(code$1){return markdownSpace(code$1)?(effects.consume(code$1),completeClosingTagAfter):completeEnd(code$1)}function completeAttributeNameBefore(code$1){return code$1===47?(effects.consume(code$1),completeEnd):code$1===58||code$1===95||asciiAlpha(code$1)?(effects.consume(code$1),completeAttributeName):markdownSpace(code$1)?(effects.consume(code$1),completeAttributeNameBefore):completeEnd(code$1)}function completeAttributeName(code$1){return code$1===45||code$1===46||code$1===58||code$1===95||asciiAlphanumeric(code$1)?(effects.consume(code$1),completeAttributeName):completeAttributeNameAfter(code$1)}function completeAttributeNameAfter(code$1){return code$1===61?(effects.consume(code$1),completeAttributeValueBefore):markdownSpace(code$1)?(effects.consume(code$1),completeAttributeNameAfter):completeAttributeNameBefore(code$1)}function completeAttributeValueBefore(code$1){return code$1===null||code$1===60||code$1===61||code$1===62||code$1===96?nok(code$1):code$1===34||code$1===39?(effects.consume(code$1),markerB=code$1,completeAttributeValueQuoted):markdownSpace(code$1)?(effects.consume(code$1),completeAttributeValueBefore):completeAttributeValueUnquoted(code$1)}function completeAttributeValueQuoted(code$1){return code$1===markerB?(effects.consume(code$1),markerB=null,completeAttributeValueQuotedAfter):code$1===null||markdownLineEnding(code$1)?nok(code$1):(effects.consume(code$1),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(code$1){return code$1===null||code$1===34||code$1===39||code$1===47||code$1===60||code$1===61||code$1===62||code$1===96||markdownLineEndingOrSpace(code$1)?completeAttributeNameAfter(code$1):(effects.consume(code$1),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(code$1){return code$1===47||code$1===62||markdownSpace(code$1)?completeAttributeNameBefore(code$1):nok(code$1)}function completeEnd(code$1){return code$1===62?(effects.consume(code$1),completeAfter):nok(code$1)}function completeAfter(code$1){return code$1===null||markdownLineEnding(code$1)?continuation(code$1):markdownSpace(code$1)?(effects.consume(code$1),completeAfter):nok(code$1)}function continuation(code$1){return code$1===45&&marker===2?(effects.consume(code$1),continuationCommentInside):code$1===60&&marker===1?(effects.consume(code$1),continuationRawTagOpen):code$1===62&&marker===4?(effects.consume(code$1),continuationClose):code$1===63&&marker===3?(effects.consume(code$1),continuationDeclarationInside):code$1===93&&marker===5?(effects.consume(code$1),continuationCdataInside):markdownLineEnding(code$1)&&(marker===6||marker===7)?(effects.exit(`htmlFlowData`),effects.check(blankLineBefore,continuationAfter,continuationStart)(code$1)):code$1===null||markdownLineEnding(code$1)?(effects.exit(`htmlFlowData`),continuationStart(code$1)):(effects.consume(code$1),continuation)}function continuationStart(code$1){return effects.check(nonLazyContinuationStart,continuationStartNonLazy,continuationAfter)(code$1)}function continuationStartNonLazy(code$1){return effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),continuationBefore}function continuationBefore(code$1){return code$1===null||markdownLineEnding(code$1)?continuationStart(code$1):(effects.enter(`htmlFlowData`),continuation(code$1))}function continuationCommentInside(code$1){return code$1===45?(effects.consume(code$1),continuationDeclarationInside):continuation(code$1)}function continuationRawTagOpen(code$1){return code$1===47?(effects.consume(code$1),buffer$1=``,continuationRawEndTag):continuation(code$1)}function continuationRawEndTag(code$1){if(code$1===62){let name$2=buffer$1.toLowerCase();return htmlRawNames.includes(name$2)?(effects.consume(code$1),continuationClose):continuation(code$1)}return asciiAlpha(code$1)&&buffer$1.length<8?(effects.consume(code$1),buffer$1+=String.fromCharCode(code$1),continuationRawEndTag):continuation(code$1)}function continuationCdataInside(code$1){return code$1===93?(effects.consume(code$1),continuationDeclarationInside):continuation(code$1)}function continuationDeclarationInside(code$1){return code$1===62?(effects.consume(code$1),continuationClose):code$1===45&&marker===2?(effects.consume(code$1),continuationDeclarationInside):continuation(code$1)}function continuationClose(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`htmlFlowData`),continuationAfter(code$1)):(effects.consume(code$1),continuationClose)}function continuationAfter(code$1){return effects.exit(`htmlFlow`),ok$2(code$1)}}function tokenizeNonLazyContinuationStart(effects,ok$2,nok){let self$1=this;return start;function start(code$1){return markdownLineEnding(code$1)?(effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),after):nok(code$1)}function after(code$1){return self$1.parser.lazy[self$1.now().line]?nok(code$1):ok$2(code$1)}}function tokenizeBlankLineBefore(effects,ok$2,nok){return start;function start(code$1){return effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),effects.attempt(blankLine,ok$2,nok)}}const htmlText={name:`htmlText`,tokenize:tokenizeHtmlText};function tokenizeHtmlText(effects,ok$2,nok){let self$1=this,marker,index$1,returnState;return start;function start(code$1){return effects.enter(`htmlText`),effects.enter(`htmlTextData`),effects.consume(code$1),open$1}function open$1(code$1){return code$1===33?(effects.consume(code$1),declarationOpen):code$1===47?(effects.consume(code$1),tagCloseStart):code$1===63?(effects.consume(code$1),instruction$1):asciiAlpha(code$1)?(effects.consume(code$1),tagOpen):nok(code$1)}function declarationOpen(code$1){return code$1===45?(effects.consume(code$1),commentOpenInside):code$1===91?(effects.consume(code$1),index$1=0,cdataOpenInside):asciiAlpha(code$1)?(effects.consume(code$1),declaration):nok(code$1)}function commentOpenInside(code$1){return code$1===45?(effects.consume(code$1),commentEnd):nok(code$1)}function comment$2(code$1){return code$1===null?nok(code$1):code$1===45?(effects.consume(code$1),commentClose):markdownLineEnding(code$1)?(returnState=comment$2,lineEndingBefore(code$1)):(effects.consume(code$1),comment$2)}function commentClose(code$1){return code$1===45?(effects.consume(code$1),commentEnd):comment$2(code$1)}function commentEnd(code$1){return code$1===62?end(code$1):code$1===45?commentClose(code$1):comment$2(code$1)}function cdataOpenInside(code$1){let value$1=`CDATA[`;return code$1===value$1.charCodeAt(index$1++)?(effects.consume(code$1),index$1===value$1.length?cdata$1:cdataOpenInside):nok(code$1)}function cdata$1(code$1){return code$1===null?nok(code$1):code$1===93?(effects.consume(code$1),cdataClose):markdownLineEnding(code$1)?(returnState=cdata$1,lineEndingBefore(code$1)):(effects.consume(code$1),cdata$1)}function cdataClose(code$1){return code$1===93?(effects.consume(code$1),cdataEnd):cdata$1(code$1)}function cdataEnd(code$1){return code$1===62?end(code$1):code$1===93?(effects.consume(code$1),cdataEnd):cdata$1(code$1)}function declaration(code$1){return code$1===null||code$1===62?end(code$1):markdownLineEnding(code$1)?(returnState=declaration,lineEndingBefore(code$1)):(effects.consume(code$1),declaration)}function instruction$1(code$1){return code$1===null?nok(code$1):code$1===63?(effects.consume(code$1),instructionClose):markdownLineEnding(code$1)?(returnState=instruction$1,lineEndingBefore(code$1)):(effects.consume(code$1),instruction$1)}function instructionClose(code$1){return code$1===62?end(code$1):instruction$1(code$1)}function tagCloseStart(code$1){return asciiAlpha(code$1)?(effects.consume(code$1),tagClose):nok(code$1)}function tagClose(code$1){return code$1===45||asciiAlphanumeric(code$1)?(effects.consume(code$1),tagClose):tagCloseBetween(code$1)}function tagCloseBetween(code$1){return markdownLineEnding(code$1)?(returnState=tagCloseBetween,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagCloseBetween):end(code$1)}function tagOpen(code$1){return code$1===45||asciiAlphanumeric(code$1)?(effects.consume(code$1),tagOpen):code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)?tagOpenBetween(code$1):nok(code$1)}function tagOpenBetween(code$1){return code$1===47?(effects.consume(code$1),end):code$1===58||code$1===95||asciiAlpha(code$1)?(effects.consume(code$1),tagOpenAttributeName):markdownLineEnding(code$1)?(returnState=tagOpenBetween,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagOpenBetween):end(code$1)}function tagOpenAttributeName(code$1){return code$1===45||code$1===46||code$1===58||code$1===95||asciiAlphanumeric(code$1)?(effects.consume(code$1),tagOpenAttributeName):tagOpenAttributeNameAfter(code$1)}function tagOpenAttributeNameAfter(code$1){return code$1===61?(effects.consume(code$1),tagOpenAttributeValueBefore):markdownLineEnding(code$1)?(returnState=tagOpenAttributeNameAfter,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagOpenAttributeNameAfter):tagOpenBetween(code$1)}function tagOpenAttributeValueBefore(code$1){return code$1===null||code$1===60||code$1===61||code$1===62||code$1===96?nok(code$1):code$1===34||code$1===39?(effects.consume(code$1),marker=code$1,tagOpenAttributeValueQuoted):markdownLineEnding(code$1)?(returnState=tagOpenAttributeValueBefore,lineEndingBefore(code$1)):markdownSpace(code$1)?(effects.consume(code$1),tagOpenAttributeValueBefore):(effects.consume(code$1),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuoted(code$1){return code$1===marker?(effects.consume(code$1),marker=void 0,tagOpenAttributeValueQuotedAfter):code$1===null?nok(code$1):markdownLineEnding(code$1)?(returnState=tagOpenAttributeValueQuoted,lineEndingBefore(code$1)):(effects.consume(code$1),tagOpenAttributeValueQuoted)}function tagOpenAttributeValueUnquoted(code$1){return code$1===null||code$1===34||code$1===39||code$1===60||code$1===61||code$1===96?nok(code$1):code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)?tagOpenBetween(code$1):(effects.consume(code$1),tagOpenAttributeValueUnquoted)}function tagOpenAttributeValueQuotedAfter(code$1){return code$1===47||code$1===62||markdownLineEndingOrSpace(code$1)?tagOpenBetween(code$1):nok(code$1)}function end(code$1){return code$1===62?(effects.consume(code$1),effects.exit(`htmlTextData`),effects.exit(`htmlText`),ok$2):nok(code$1)}function lineEndingBefore(code$1){return effects.exit(`htmlTextData`),effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),lineEndingAfter}function lineEndingAfter(code$1){return markdownSpace(code$1)?factorySpace(effects,lineEndingAfterPrefix,`linePrefix`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(code$1):lineEndingAfterPrefix(code$1)}function lineEndingAfterPrefix(code$1){return effects.enter(`htmlTextData`),returnState(code$1)}}const labelEnd={name:`labelEnd`,resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(events){let index$1=-1,newEvents=[];for(;++index$1=3&&(code$1===null||markdownLineEnding(code$1))?(effects.exit(`thematicBreak`),ok$2(code$1)):nok(code$1)}function sequence(code$1){return code$1===marker?(effects.consume(code$1),size$1++,sequence):(effects.exit(`thematicBreakSequence`),markdownSpace(code$1)?factorySpace(effects,atBreak,`whitespace`)(code$1):atBreak(code$1))}}const list$1={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:`list`,tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent};function tokenizeListStart(effects,ok$2,nok){let self$1=this,tail=self$1.events[self$1.events.length-1],initialSize=tail&&tail[1].type===`linePrefix`?tail[2].sliceSerialize(tail[1],!0).length:0,size$1=0;return start;function start(code$1){let kind=self$1.containerState.type||(code$1===42||code$1===43||code$1===45?`listUnordered`:`listOrdered`);if(kind===`listUnordered`?!self$1.containerState.marker||code$1===self$1.containerState.marker:asciiDigit(code$1)){if(self$1.containerState.type||(self$1.containerState.type=kind,effects.enter(kind,{_container:!0})),kind===`listUnordered`)return effects.enter(`listItemPrefix`),code$1===42||code$1===45?effects.check(thematicBreak$1,nok,atMarker)(code$1):atMarker(code$1);if(!self$1.interrupt||code$1===49)return effects.enter(`listItemPrefix`),effects.enter(`listItemValue`),inside(code$1)}return nok(code$1)}function inside(code$1){return asciiDigit(code$1)&&++size$1<10?(effects.consume(code$1),inside):(!self$1.interrupt||size$1<2)&&(self$1.containerState.marker?code$1===self$1.containerState.marker:code$1===41||code$1===46)?(effects.exit(`listItemValue`),atMarker(code$1)):nok(code$1)}function atMarker(code$1){return effects.enter(`listItemMarker`),effects.consume(code$1),effects.exit(`listItemMarker`),self$1.containerState.marker=self$1.containerState.marker||code$1,effects.check(blankLine,self$1.interrupt?nok:onBlank,effects.attempt(listItemPrefixWhitespaceConstruct,endOfPrefix,otherPrefix))}function onBlank(code$1){return self$1.containerState.initialBlankLine=!0,initialSize++,endOfPrefix(code$1)}function otherPrefix(code$1){return markdownSpace(code$1)?(effects.enter(`listItemPrefixWhitespace`),effects.consume(code$1),effects.exit(`listItemPrefixWhitespace`),endOfPrefix):nok(code$1)}function endOfPrefix(code$1){return self$1.containerState.size=initialSize+self$1.sliceSerialize(effects.exit(`listItemPrefix`),!0).length,ok$2(code$1)}}function tokenizeListContinuation(effects,ok$2,nok){let self$1=this;return self$1.containerState._closeFlow=void 0,effects.check(blankLine,onBlank,notBlank);function onBlank(code$1){return self$1.containerState.furtherBlankLines=self$1.containerState.furtherBlankLines||self$1.containerState.initialBlankLine,factorySpace(effects,ok$2,`listItemIndent`,self$1.containerState.size+1)(code$1)}function notBlank(code$1){return self$1.containerState.furtherBlankLines||!markdownSpace(code$1)?(self$1.containerState.furtherBlankLines=void 0,self$1.containerState.initialBlankLine=void 0,notInCurrentItem(code$1)):(self$1.containerState.furtherBlankLines=void 0,self$1.containerState.initialBlankLine=void 0,effects.attempt(indentConstruct,ok$2,notInCurrentItem)(code$1))}function notInCurrentItem(code$1){return self$1.containerState._closeFlow=!0,self$1.interrupt=void 0,factorySpace(effects,effects.attempt(list$1,ok$2,nok),`linePrefix`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(code$1)}}function tokenizeIndent(effects,ok$2,nok){let self$1=this;return factorySpace(effects,afterPrefix,`listItemIndent`,self$1.containerState.size+1);function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return tail&&tail[1].type===`listItemIndent`&&tail[2].sliceSerialize(tail[1],!0).length===self$1.containerState.size?ok$2(code$1):nok(code$1)}}function tokenizeListEnd(effects){effects.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(effects,ok$2,nok){let self$1=this;return factorySpace(effects,afterPrefix,`listItemPrefixWhitespace`,self$1.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function afterPrefix(code$1){let tail=self$1.events[self$1.events.length-1];return!markdownSpace(code$1)&&tail&&tail[1].type===`listItemPrefixWhitespace`?ok$2(code$1):nok(code$1)}}const setextUnderline={name:`setextUnderline`,resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(events,context$1){let index$1=events.length,content$2,text$5,definition$29;for(;index$1--;)if(events[index$1][0]===`enter`){if(events[index$1][1].type===`content`){content$2=index$1;break}events[index$1][1].type===`paragraph`&&(text$5=index$1)}else events[index$1][1].type===`content`&&events.splice(index$1,1),!definition$29&&events[index$1][1].type===`definition`&&(definition$29=index$1);let heading$1={type:`setextHeading`,start:{...events[text$5][1].start},end:{...events[events.length-1][1].end}};return events[text$5][1].type=`setextHeadingText`,definition$29?(events.splice(text$5,0,[`enter`,heading$1,context$1]),events.splice(definition$29+1,0,[`exit`,events[content$2][1],context$1]),events[content$2][1].end={...events[definition$29][1].end}):events[content$2][1]=heading$1,events.push([`exit`,heading$1,context$1]),events}function tokenizeSetextUnderline(effects,ok$2,nok){let self$1=this,marker;return start;function start(code$1){let index$1=self$1.events.length,paragraph$1;for(;index$1--;)if(self$1.events[index$1][1].type!==`lineEnding`&&self$1.events[index$1][1].type!==`linePrefix`&&self$1.events[index$1][1].type!==`content`){paragraph$1=self$1.events[index$1][1].type===`paragraph`;break}return!self$1.parser.lazy[self$1.now().line]&&(self$1.interrupt||paragraph$1)?(effects.enter(`setextHeadingLine`),marker=code$1,before(code$1)):nok(code$1)}function before(code$1){return effects.enter(`setextHeadingLineSequence`),inside(code$1)}function inside(code$1){return code$1===marker?(effects.consume(code$1),inside):(effects.exit(`setextHeadingLineSequence`),markdownSpace(code$1)?factorySpace(effects,after,`lineSuffix`)(code$1):after(code$1))}function after(code$1){return code$1===null||markdownLineEnding(code$1)?(effects.exit(`setextHeadingLine`),ok$2(code$1)):nok(code$1)}}const flow={tokenize:initializeFlow};function initializeFlow(effects){let self$1=this,initial=effects.attempt(blankLine,atBlankEnding,effects.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(effects,effects.attempt(this.parser.constructs.flow,afterConstruct,effects.attempt(content$1,afterConstruct)),`linePrefix`)));return initial;function atBlankEnding(code$1){if(code$1===null){effects.consume(code$1);return}return effects.enter(`lineEndingBlank`),effects.consume(code$1),effects.exit(`lineEndingBlank`),self$1.currentConstruct=void 0,initial}function afterConstruct(code$1){if(code$1===null){effects.consume(code$1);return}return effects.enter(`lineEnding`),effects.consume(code$1),effects.exit(`lineEnding`),self$1.currentConstruct=void 0,initial}}const resolver={resolveAll:createResolver()},string=initializeFactory(`string`),text$2=initializeFactory(`text`);function initializeFactory(field){return{resolveAll:createResolver(field===`text`?resolveAllLineSuffixes:void 0),tokenize:initializeText};function initializeText(effects){let self$1=this,constructs$1=this.parser.constructs[field],text$5=effects.attempt(constructs$1,start,notText);return start;function start(code$1){return atBreak(code$1)?text$5(code$1):notText(code$1)}function notText(code$1){if(code$1===null){effects.consume(code$1);return}return effects.enter(`data`),effects.consume(code$1),data$10}function data$10(code$1){return atBreak(code$1)?(effects.exit(`data`),text$5(code$1)):(effects.consume(code$1),data$10)}function atBreak(code$1){if(code$1===null)return!0;let list$2=constructs$1[code$1],index$1=-1;if(list$2)for(;++index$1attentionMarkers,contentInitial:()=>contentInitial,disable:()=>disable,document:()=>document$2,flow:()=>flow$1,flowInitial:()=>flowInitial,insideSpan:()=>insideSpan,string:()=>string$1,text:()=>text$3});const document$2={42:list$1,43:list$1,45:list$1,48:list$1,49:list$1,50:list$1,51:list$1,52:list$1,53:list$1,54:list$1,55:list$1,56:list$1,57:list$1,62:blockQuote},contentInitial={91:definition$28},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow$1={35:headingAtx,42:thematicBreak$1,45:[setextUnderline,thematicBreak$1],60:htmlFlow,61:setextUnderline,95:thematicBreak$1,96:codeFenced,126:codeFenced},string$1={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]};function createTokenizer$1(parser,initialize,from){let point$3={_bufferIndex:-1,_index:0,line:from&&from.line||1,column:from&&from.column||1,offset:from&&from.offset||0},columnStart={},resolveAllConstructs=[],chunks=[],stack$1=[],consumed=!0,effects={attempt:constructFactory(onsuccessfulconstruct),check:constructFactory(onsuccessfulcheck),consume,enter,exit:exit$1,interrupt:constructFactory(onsuccessfulcheck,{interrupt:!0})},context$1={code:null,containerState:{},defineSkip,events:[],now,parser,previous:null,sliceSerialize,sliceStream,write},state=initialize.tokenize.call(context$1,effects),expectedCode;return initialize.resolveAll&&resolveAllConstructs.push(initialize),context$1;function write(slice){return chunks=push(chunks,slice),main(),chunks[chunks.length-1]===null?(addResult(initialize,0),context$1.events=resolveAll(resolveAllConstructs,context$1.events,context$1),context$1.events):[]}function sliceSerialize(token,expandTabs){return serializeChunks(sliceStream(token),expandTabs)}function sliceStream(token){return sliceChunks(chunks,token)}function now(){let{_bufferIndex,_index,line,column,offset:offset$1}=point$3;return{_bufferIndex,_index,line,column,offset:offset$1}}function defineSkip(value$1){columnStart[value$1.line]=value$1.column,accountForPotentialSkip()}function main(){let chunkIndex;for(;point$3._index-1){let head$1=view[0];typeof head$1==`string`?view[0]=head$1.slice(startBufferIndex):view.shift()}endBufferIndex>0&&view.push(chunks[endIndex].slice(0,endBufferIndex))}return view}function serializeChunks(chunks,expandTabs){let index$1=-1,result=[],atTab;for(;++index$10){let tail=context$1.tokenStack[context$1.tokenStack.length-1],handler=tail[1]||defaultOnError$1;handler.call(context$1,void 0,tail[0])}for(tree.position={start:point$1(events.length>0?events[0][1].start:{line:1,column:1,offset:0}),end:point$1(events.length>0?events[events.length-2][1].end:{line:1,column:1,offset:0})},index$1=-1;++index$11?`-`+reuseCounter:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(counter)}]};state.patch(node$1,link$1);let sup={type:`element`,tagName:`sup`,properties:{},children:[link$1]};return state.patch(node$1,sup),state.applyData(node$1,sup)}function heading(state,node$1){let result={type:`element`,tagName:`h`+node$1.depth,properties:{},children:state.all(node$1)};return state.patch(node$1,result),state.applyData(node$1,result)}function html(state,node$1){if(state.options.allowDangerousHtml){let result={type:`raw`,value:node$1.value};return state.patch(node$1,result),state.applyData(node$1,result)}}function revert(state,node$1){let subtype=node$1.referenceType,suffix=`]`;if(subtype===`collapsed`?suffix+=`[]`:subtype===`full`&&(suffix+=`[`+(node$1.label||node$1.identifier)+`]`),node$1.type===`imageReference`)return[{type:`text`,value:`![`+node$1.alt+suffix}];let contents=state.all(node$1),head$1=contents[0];head$1&&head$1.type===`text`?head$1.value=`[`+head$1.value:contents.unshift({type:`text`,value:`[`});let tail=contents[contents.length-1];return tail&&tail.type===`text`?tail.value+=suffix:contents.push({type:`text`,value:suffix}),contents}function imageReference(state,node$1){let id=String(node$1.identifier).toUpperCase(),definition$29=state.definitionById.get(id);if(!definition$29)return revert(state,node$1);let properties={src:normalizeUri(definition$29.url||``),alt:node$1.alt};definition$29.title!==null&&definition$29.title!==void 0&&(properties.title=definition$29.title);let result={type:`element`,tagName:`img`,properties,children:[]};return state.patch(node$1,result),state.applyData(node$1,result)}function image(state,node$1){let properties={src:normalizeUri(node$1.url)};node$1.alt!==null&&node$1.alt!==void 0&&(properties.alt=node$1.alt),node$1.title!==null&&node$1.title!==void 0&&(properties.title=node$1.title);let result={type:`element`,tagName:`img`,properties,children:[]};return state.patch(node$1,result),state.applyData(node$1,result)}function inlineCode(state,node$1){let text$5={type:`text`,value:node$1.value.replace(/\r?\n|\r/g,` `)};state.patch(node$1,text$5);let result={type:`element`,tagName:`code`,properties:{},children:[text$5]};return state.patch(node$1,result),state.applyData(node$1,result)}function linkReference(state,node$1){let id=String(node$1.identifier).toUpperCase(),definition$29=state.definitionById.get(id);if(!definition$29)return revert(state,node$1);let properties={href:normalizeUri(definition$29.url||``)};definition$29.title!==null&&definition$29.title!==void 0&&(properties.title=definition$29.title);let result={type:`element`,tagName:`a`,properties,children:state.all(node$1)};return state.patch(node$1,result),state.applyData(node$1,result)}function link(state,node$1){let properties={href:normalizeUri(node$1.url)};node$1.title!==null&&node$1.title!==void 0&&(properties.title=node$1.title);let result={type:`element`,tagName:`a`,properties,children:state.all(node$1)};return state.patch(node$1,result),state.applyData(node$1,result)}function listItem(state,node$1,parent){let results=state.all(node$1),loose=parent?listLoose(parent):listItemLoose(node$1),properties={},children=[];if(typeof node$1.checked==`boolean`){let head$1=results[0],paragraph$1;head$1&&head$1.type===`element`&&head$1.tagName===`p`?paragraph$1=head$1:(paragraph$1={type:`element`,tagName:`p`,properties:{},children:[]},results.unshift(paragraph$1)),paragraph$1.children.length>0&¶graph$1.children.unshift({type:`text`,value:` `}),paragraph$1.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:node$1.checked,disabled:!0},children:[]}),properties.className=[`task-list-item`]}let index$1=-1;for(;++index$11}function list(state,node$1){let properties={},results=state.all(node$1),index$1=-1;for(typeof node$1.start==`number`&&node$1.start!==1&&(properties.start=node$1.start);++index$10&&typeof point$4.column==`number`&&point$4.column>0)return{line:point$4.line,column:point$4.column,offset:typeof point$4.offset==`number`&&point$4.offset>-1?point$4.offset:void 0}}}function position(node$1){let start=pointStart(node$1),end=pointEnd(node$1);if(start&&end)return{start,end}}function table(state,node$1){let rows=state.all(node$1),firstRow=rows.shift(),tableContent=[];if(firstRow){let head$1={type:`element`,tagName:`thead`,properties:{},children:state.wrap([firstRow],!0)};state.patch(node$1.children[0],head$1),tableContent.push(head$1)}if(rows.length>0){let body$2={type:`element`,tagName:`tbody`,properties:{},children:state.wrap(rows,!0)},start=pointStart(node$1.children[1]),end=pointEnd(node$1.children[node$1.children.length-1]);start&&end&&(body$2.position={start,end}),tableContent.push(body$2)}let result={type:`element`,tagName:`table`,properties:{},children:state.wrap(tableContent,!0)};return state.patch(node$1,result),state.applyData(node$1,result)}function tableRow(state,node$1,parent){let siblings$2=parent?parent.children:void 0,rowIndex=siblings$2?siblings$2.indexOf(node$1):1,tagName=rowIndex===0?`th`:`td`,align=parent&&parent.type===`table`?parent.align:void 0,length=align?align.length:node$1.children.length,cellIndex=-1,cells$1=[];for(;++cellIndex0,!0),match[0]),last=match.index+match[0].length,match=search$1.exec(source);return lines.push(trimLine(source.slice(last),last>0,!1)),lines.join(``)}function trimLine(value$1,start,end){let startIndex=0,endIndex=value$1.length;if(start){let code$1=value$1.codePointAt(startIndex);for(;code$1===tab||code$1===space;)startIndex++,code$1=value$1.codePointAt(startIndex)}if(end){let code$1=value$1.codePointAt(endIndex-1);for(;code$1===tab||code$1===space;)endIndex--,code$1=value$1.codePointAt(endIndex-1)}return endIndex>startIndex?value$1.slice(startIndex,endIndex):``}function text$1(state,node$1){let result={type:`text`,value:trimLines(String(node$1.value))};return state.patch(node$1,result),state.applyData(node$1,result)}function thematicBreak(state,node$1){let result={type:`element`,tagName:`hr`,properties:{},children:[]};return state.patch(node$1,result),state.applyData(node$1,result)}const handlers$1={blockquote,break:hardBreak,code,delete:strikethrough,emphasis,footnoteReference,heading,html,imageReference,image,inlineCode,linkReference,link,listItem,list,paragraph,root,strong,table,tableCell,tableRow,text:text$1,thematicBreak,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}function ok(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env$1=typeof self==`object`?self:globalThis,deserializer=($$1,_$1)=>{let as=(out,index$1)=>($$1.set(index$1,out),out),unpair=index$1=>{if($$1.has(index$1))return $$1.get(index$1);let[type,value$1]=_$1[index$1];switch(type){case PRIMITIVE:case VOID:return as(value$1,index$1);case ARRAY:{let arr=as([],index$1);for(let index$2 of value$1)arr.push(unpair(index$2));return arr}case OBJECT:{let object=as({},index$1);for(let[key$1,index$2]of value$1)object[unpair(key$1)]=unpair(index$2);return object}case DATE:return as(new Date(value$1),index$1);case REGEXP:{let{source,flags}=value$1;return as(new RegExp(source,flags),index$1)}case MAP:{let map=as(new Map,index$1);for(let[key$1,index$2]of value$1)map.set(unpair(key$1),unpair(index$2));return map}case SET:{let set=as(new Set,index$1);for(let index$2 of value$1)set.add(unpair(index$2));return set}case ERROR:{let{name:name$2,message:message$1}=value$1;return as(new env$1[name$2](message$1),index$1)}case BIGINT:return as(BigInt(value$1),index$1);case`BigInt`:return as(Object(BigInt(value$1)),index$1)}return as(new env$1[type](value$1),index$1)};return unpair},deserialize=serialized=>deserializer(new Map,serialized)(0),EMPTY=``,{toString}={},{keys}=Object,typeOf=value$1=>{let type=typeof value$1;if(type!==`object`||!value$1)return[PRIMITIVE,type];let asString=toString.call(value$1).slice(8,-1);switch(asString){case`Array`:return[ARRAY,EMPTY];case`Object`:return[OBJECT,EMPTY];case`Date`:return[DATE,EMPTY];case`RegExp`:return[REGEXP,EMPTY];case`Map`:return[MAP,EMPTY];case`Set`:return[SET,EMPTY]}return asString.includes(`Array`)?[ARRAY,asString]:asString.includes(`Error`)?[ERROR,asString]:[OBJECT,asString]},shouldSkip=([TYPE,type])=>TYPE===PRIMITIVE&&(type===`function`||type===`symbol`),serializer=(strict,json,$$1,_$1)=>{let as=(out,value$1)=>{let index$1=_$1.push(out)-1;return $$1.set(value$1,index$1),index$1},pair=value$1=>{if($$1.has(value$1))return $$1.get(value$1);let[TYPE,type]=typeOf(value$1);switch(TYPE){case PRIMITIVE:{let entry=value$1;switch(type){case`bigint`:TYPE=BIGINT,entry=value$1.toString();break;case`function`:case`symbol`:if(strict)throw TypeError(`unable to serialize `+type);entry=null;break;case`undefined`:return as([VOID],value$1)}return as([TYPE,entry],value$1)}case ARRAY:{if(type)return as([type,[...value$1]],value$1);let arr=[],index$1=as([TYPE,arr],value$1);for(let entry of value$1)arr.push(pair(entry));return index$1}case OBJECT:{if(type)switch(type){case`BigInt`:return as([type,value$1.toString()],value$1);case`Boolean`:case`Number`:case`String`:return as([type,value$1.valueOf()],value$1)}if(json&&`toJSON`in value$1)return pair(value$1.toJSON());let entries=[],index$1=as([TYPE,entries],value$1);for(let key$1 of keys(value$1))(strict||!shouldSkip(typeOf(value$1[key$1])))&&entries.push([pair(key$1),pair(value$1[key$1])]);return index$1}case DATE:return as([TYPE,value$1.toISOString()],value$1);case REGEXP:{let{source,flags}=value$1;return as([TYPE,{source,flags}],value$1)}case MAP:{let entries=[],index$1=as([TYPE,entries],value$1);for(let[key$1,entry]of value$1)(strict||!(shouldSkip(typeOf(key$1))||shouldSkip(typeOf(entry))))&&entries.push([pair(key$1),pair(entry)]);return index$1}case SET:{let entries=[],index$1=as([TYPE,entries],value$1);for(let entry of value$1)(strict||!shouldSkip(typeOf(entry)))&&entries.push(pair(entry));return index$1}}let{message:message$1}=value$1;return as([TYPE,{name:type,message:message$1}],value$1)};return pair},serialize=(value$1,{json,lossy}={})=>{let _$1=[];return serializer(!(json||lossy),!!json,new Map,_$1)(value$1),_$1};var esm_default=typeof structuredClone==`function`?(any,options$1)=>options$1&&(`json`in options$1||`lossy`in options$1)?deserialize(serialize(any,options$1)):structuredClone(any):(any,options$1)=>deserialize(serialize(any,options$1));function defaultFootnoteBackContent(_$1,rereferenceIndex){let result=[{type:`text`,value:`↩`}];return rereferenceIndex>1&&result.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(rereferenceIndex)}]}),result}function defaultFootnoteBackLabel(referenceIndex,rereferenceIndex){return`Back to reference `+(referenceIndex+1)+(rereferenceIndex>1?`-`+rereferenceIndex:``)}function footer(state){let clobberPrefix=typeof state.options.clobberPrefix==`string`?state.options.clobberPrefix:`user-content-`,footnoteBackContent=state.options.footnoteBackContent||defaultFootnoteBackContent,footnoteBackLabel=state.options.footnoteBackLabel||defaultFootnoteBackLabel,footnoteLabel=state.options.footnoteLabel||`Footnotes`,footnoteLabelTagName=state.options.footnoteLabelTagName||`h2`,footnoteLabelProperties=state.options.footnoteLabelProperties||{className:[`sr-only`]},listItems=[],referenceIndex=-1;for(;++referenceIndex0&&backReferences.push({type:`text`,value:` `});let children=typeof footnoteBackContent==`string`?footnoteBackContent:footnoteBackContent(referenceIndex,rereferenceIndex);typeof children==`string`&&(children={type:`text`,value:children}),backReferences.push({type:`element`,tagName:`a`,properties:{href:`#`+clobberPrefix+`fnref-`+safeId+(rereferenceIndex>1?`-`+rereferenceIndex:``),dataFootnoteBackref:``,ariaLabel:typeof footnoteBackLabel==`string`?footnoteBackLabel:footnoteBackLabel(referenceIndex,rereferenceIndex),className:[`data-footnote-backref`]},children:Array.isArray(children)?children:[children]})}let tail=content$2[content$2.length-1];if(tail&&tail.type===`element`&&tail.tagName===`p`){let tailTail=tail.children[tail.children.length-1];tailTail&&tailTail.type===`text`?tailTail.value+=` `:tail.children.push({type:`text`,value:` `}),tail.children.push(...backReferences)}else content$2.push(...backReferences);let listItem$1={type:`element`,tagName:`li`,properties:{id:clobberPrefix+`fn-`+safeId},children:state.wrap(content$2,!0)};state.patch(definition$29,listItem$1),listItems.push(listItem$1)}if(listItems.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:footnoteLabelTagName,properties:{...esm_default(footnoteLabelProperties),id:`footnote-label`},children:[{type:`text`,value:footnoteLabel}]},{type:`text`,value:` +`});let result={type:`element`,tagName:`li`,properties,children};return state.patch(node$1,result),state.applyData(node$1,result)}function listLoose(node$1){let loose=!1;if(node$1.type===`list`){loose=node$1.spread||!1;let children=node$1.children,index$1=-1;for(;!loose&&++index$11}function list(state,node$1){let properties={},results=state.all(node$1),index$1=-1;for(typeof node$1.start==`number`&&node$1.start!==1&&(properties.start=node$1.start);++index$10&&typeof point$4.column==`number`&&point$4.column>0)return{line:point$4.line,column:point$4.column,offset:typeof point$4.offset==`number`&&point$4.offset>-1?point$4.offset:void 0}}}function position(node$1){let start=pointStart(node$1),end=pointEnd(node$1);if(start&&end)return{start,end}}function table(state,node$1){let rows=state.all(node$1),firstRow=rows.shift(),tableContent=[];if(firstRow){let head$1={type:`element`,tagName:`thead`,properties:{},children:state.wrap([firstRow],!0)};state.patch(node$1.children[0],head$1),tableContent.push(head$1)}if(rows.length>0){let body$2={type:`element`,tagName:`tbody`,properties:{},children:state.wrap(rows,!0)},start=pointStart(node$1.children[1]),end=pointEnd(node$1.children[node$1.children.length-1]);start&&end&&(body$2.position={start,end}),tableContent.push(body$2)}let result={type:`element`,tagName:`table`,properties:{},children:state.wrap(tableContent,!0)};return state.patch(node$1,result),state.applyData(node$1,result)}function tableRow(state,node$1,parent){let siblings$2=parent?parent.children:void 0,rowIndex=siblings$2?siblings$2.indexOf(node$1):1,tagName=rowIndex===0?`th`:`td`,align=parent&&parent.type===`table`?parent.align:void 0,length=align?align.length:node$1.children.length,cellIndex=-1,cells$1=[];for(;++cellIndex0,!0),match[0]),last=match.index+match[0].length,match=search$1.exec(source);return lines.push(trimLine(source.slice(last),last>0,!1)),lines.join(``)}function trimLine(value$1,start,end){let startIndex=0,endIndex=value$1.length;if(start){let code$1=value$1.codePointAt(startIndex);for(;code$1===tab||code$1===space;)startIndex++,code$1=value$1.codePointAt(startIndex)}if(end){let code$1=value$1.codePointAt(endIndex-1);for(;code$1===tab||code$1===space;)endIndex--,code$1=value$1.codePointAt(endIndex-1)}return endIndex>startIndex?value$1.slice(startIndex,endIndex):``}function text$1(state,node$1){let result={type:`text`,value:trimLines(String(node$1.value))};return state.patch(node$1,result),state.applyData(node$1,result)}function thematicBreak(state,node$1){let result={type:`element`,tagName:`hr`,properties:{},children:[]};return state.patch(node$1,result),state.applyData(node$1,result)}const handlers$1={blockquote,break:hardBreak,code,delete:strikethrough,emphasis,footnoteReference,heading,html,imageReference,image,inlineCode,linkReference,link,listItem,list,paragraph,root,strong,table,tableCell,tableRow,text:text$1,thematicBreak,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}function ok(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env$1=typeof self==`object`?self:globalThis,deserializer=($$1,_$2)=>{let as=(out,index$1)=>($$1.set(index$1,out),out),unpair=index$1=>{if($$1.has(index$1))return $$1.get(index$1);let[type,value$1]=_$2[index$1];switch(type){case PRIMITIVE:case VOID:return as(value$1,index$1);case ARRAY:{let arr=as([],index$1);for(let index$2 of value$1)arr.push(unpair(index$2));return arr}case OBJECT:{let object=as({},index$1);for(let[key$1,index$2]of value$1)object[unpair(key$1)]=unpair(index$2);return object}case DATE:return as(new Date(value$1),index$1);case REGEXP:{let{source,flags}=value$1;return as(new RegExp(source,flags),index$1)}case MAP:{let map=as(new Map,index$1);for(let[key$1,index$2]of value$1)map.set(unpair(key$1),unpair(index$2));return map}case SET:{let set=as(new Set,index$1);for(let index$2 of value$1)set.add(unpair(index$2));return set}case ERROR:{let{name:name$2,message:message$1}=value$1;return as(new env$1[name$2](message$1),index$1)}case BIGINT:return as(BigInt(value$1),index$1);case`BigInt`:return as(Object(BigInt(value$1)),index$1)}return as(new env$1[type](value$1),index$1)};return unpair},deserialize=serialized=>deserializer(new Map,serialized)(0),EMPTY=``,{toString}={},{keys}=Object,typeOf=value$1=>{let type=typeof value$1;if(type!==`object`||!value$1)return[PRIMITIVE,type];let asString=toString.call(value$1).slice(8,-1);switch(asString){case`Array`:return[ARRAY,EMPTY];case`Object`:return[OBJECT,EMPTY];case`Date`:return[DATE,EMPTY];case`RegExp`:return[REGEXP,EMPTY];case`Map`:return[MAP,EMPTY];case`Set`:return[SET,EMPTY]}return asString.includes(`Array`)?[ARRAY,asString]:asString.includes(`Error`)?[ERROR,asString]:[OBJECT,asString]},shouldSkip=([TYPE,type])=>TYPE===PRIMITIVE&&(type===`function`||type===`symbol`),serializer=(strict,json,$$1,_$2)=>{let as=(out,value$1)=>{let index$1=_$2.push(out)-1;return $$1.set(value$1,index$1),index$1},pair=value$1=>{if($$1.has(value$1))return $$1.get(value$1);let[TYPE,type]=typeOf(value$1);switch(TYPE){case PRIMITIVE:{let entry=value$1;switch(type){case`bigint`:TYPE=BIGINT,entry=value$1.toString();break;case`function`:case`symbol`:if(strict)throw TypeError(`unable to serialize `+type);entry=null;break;case`undefined`:return as([VOID],value$1)}return as([TYPE,entry],value$1)}case ARRAY:{if(type)return as([type,[...value$1]],value$1);let arr=[],index$1=as([TYPE,arr],value$1);for(let entry of value$1)arr.push(pair(entry));return index$1}case OBJECT:{if(type)switch(type){case`BigInt`:return as([type,value$1.toString()],value$1);case`Boolean`:case`Number`:case`String`:return as([type,value$1.valueOf()],value$1)}if(json&&`toJSON`in value$1)return pair(value$1.toJSON());let entries=[],index$1=as([TYPE,entries],value$1);for(let key$1 of keys(value$1))(strict||!shouldSkip(typeOf(value$1[key$1])))&&entries.push([pair(key$1),pair(value$1[key$1])]);return index$1}case DATE:return as([TYPE,value$1.toISOString()],value$1);case REGEXP:{let{source,flags}=value$1;return as([TYPE,{source,flags}],value$1)}case MAP:{let entries=[],index$1=as([TYPE,entries],value$1);for(let[key$1,entry]of value$1)(strict||!(shouldSkip(typeOf(key$1))||shouldSkip(typeOf(entry))))&&entries.push([pair(key$1),pair(entry)]);return index$1}case SET:{let entries=[],index$1=as([TYPE,entries],value$1);for(let entry of value$1)(strict||!shouldSkip(typeOf(entry)))&&entries.push(pair(entry));return index$1}}let{message:message$1}=value$1;return as([TYPE,{name:type,message:message$1}],value$1)};return pair},serialize=(value$1,{json,lossy}={})=>{let _$2=[];return serializer(!(json||lossy),!!json,new Map,_$2)(value$1),_$2};var esm_default=typeof structuredClone==`function`?(any,options$1)=>options$1&&(`json`in options$1||`lossy`in options$1)?deserialize(serialize(any,options$1)):structuredClone(any):(any,options$1)=>deserialize(serialize(any,options$1));function defaultFootnoteBackContent(_$2,rereferenceIndex){let result=[{type:`text`,value:`↩`}];return rereferenceIndex>1&&result.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(rereferenceIndex)}]}),result}function defaultFootnoteBackLabel(referenceIndex,rereferenceIndex){return`Back to reference `+(referenceIndex+1)+(rereferenceIndex>1?`-`+rereferenceIndex:``)}function footer(state){let clobberPrefix=typeof state.options.clobberPrefix==`string`?state.options.clobberPrefix:`user-content-`,footnoteBackContent=state.options.footnoteBackContent||defaultFootnoteBackContent,footnoteBackLabel=state.options.footnoteBackLabel||defaultFootnoteBackLabel,footnoteLabel=state.options.footnoteLabel||`Footnotes`,footnoteLabelTagName=state.options.footnoteLabelTagName||`h2`,footnoteLabelProperties=state.options.footnoteLabelProperties||{className:[`sr-only`]},listItems=[],referenceIndex=-1;for(;++referenceIndex0&&backReferences.push({type:`text`,value:` `});let children=typeof footnoteBackContent==`string`?footnoteBackContent:footnoteBackContent(referenceIndex,rereferenceIndex);typeof children==`string`&&(children={type:`text`,value:children}),backReferences.push({type:`element`,tagName:`a`,properties:{href:`#`+clobberPrefix+`fnref-`+safeId+(rereferenceIndex>1?`-`+rereferenceIndex:``),dataFootnoteBackref:``,ariaLabel:typeof footnoteBackLabel==`string`?footnoteBackLabel:footnoteBackLabel(referenceIndex,rereferenceIndex),className:[`data-footnote-backref`]},children:Array.isArray(children)?children:[children]})}let tail=content$2[content$2.length-1];if(tail&&tail.type===`element`&&tail.tagName===`p`){let tailTail=tail.children[tail.children.length-1];tailTail&&tailTail.type===`text`?tailTail.value+=` `:tail.children.push({type:`text`,value:` `}),tail.children.push(...backReferences)}else content$2.push(...backReferences);let listItem$1={type:`element`,tagName:`li`,properties:{id:clobberPrefix+`fn-`+safeId},children:state.wrap(content$2,!0)};state.patch(definition$29,listItem$1),listItems.push(listItem$1)}if(listItems.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:footnoteLabelTagName,properties:{...esm_default(footnoteLabelProperties),id:`footnote-label`},children:[{type:`text`,value:footnoteLabel}]},{type:`text`,value:` `},{type:`element`,tagName:`ol`,properties:{},children:state.wrap(listItems,!0)},{type:`text`,value:` `}]}}const convert$1=function(test$1){if(test$1==null)return ok$1;if(typeof test$1==`function`)return castFactory(test$1);if(typeof test$1==`object`)return Array.isArray(test$1)?anyFactory(test$1):propsFactory(test$1);if(typeof test$1==`string`)return typeFactory(test$1);throw Error(`Expected function, string, or object as test`)};function anyFactory(tests){let checks$1=[],index$1=-1;for(;++index$1`:``))+`)`})}return visit$1;function visit$1(){let result=empty,subresult,offset$1,grandparents;if((!test$1||is(node$1,index$1,parents$1[parents$1.length-1]||void 0))&&(result=toResult(visitor(node$1,parents$1)),result[0]===EXIT))return result;if(`children`in node$1&&node$1.children){let nodeAsParent=node$1;if(nodeAsParent.children&&result[0]!==SKIP)for(offset$1=(reverse?nodeAsParent.children.length:-1)+step,grandparents=parents$1.concat(nodeAsParent);offset$1>-1&&offset$1(()=>{var __webpack_modules__={3474:(t,e$3,n$2)=>{var _scriptDir,r$2=(_scriptDir=(_scriptDir=typeof document<`u`&&document.currentScript?document.currentScript.src:void 0)||`/index.js`,function(t$1){function e$4(){return $$1.buffer!=C$2&&H$2($$1.buffer),F$2}function r$3(){return $$1.buffer!=C$2&&H$2($$1.buffer),N$1}function i$1(){return $$1.buffer!=C$2&&H$2($$1.buffer),L$1}function o$1(){return $$1.buffer!=C$2&&H$2($$1.buffer),R$1}function a$2(){return $$1.buffer!=C$2&&H$2($$1.buffer),j$1}var s$1,u$1,c$4;t$1||={},s$1||=t$1===void 0?{}:t$1,s$1.ready=new Promise(function(t$2,e$5){u$1=t$2,c$4=e$5});var l$1,p$5,f$3,d$2,h$3,g$2,b$3=Object.assign({},s$1),m$2=`./this.program`,y$2=(t$2,e$5)=>{throw e$5},_$1=typeof window==`object`,v$1=typeof importScripts==`function`,w$1=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`,x$3=s$1.ENVIRONMENT_IS_PTHREAD||!1,T$1=``;function S$2(t$2){return s$1.locateFile?s$1.locateFile(t$2,T$1):T$1+t$2}if(w$1){let e$5;T$1=v$1?n$2(908).dirname(T$1)+`/`:`//`,g$2=()=>{h$3||(d$2=n$2(1384),h$3=n$2(908))},l$1=function(t$2,e$6){return g$2(),t$2=h$3.normalize(t$2),d$2.readFileSync(t$2,e$6?void 0:`utf8`)},f$3=t$2=>((t$2=l$1(t$2,!0)).buffer||(t$2=new Uint8Array(t$2)),t$2),p$5=(t$2,e$6,n$3)=>{g$2(),t$2=h$3.normalize(t$2),d$2.readFile(t$2,function(t$3,r$4){t$3?n$3(t$3):e$6(r$4.buffer)})},1{if(J$1())throw process.exitCode=t$2,e$6;e$6 instanceof ut$1||P$1(`exiting due to exception: `+e$6),process.exit(t$2)},s$1.inspect=function(){return`[Emscripten Module object]`};try{e$5=n$2(9925)}catch(t$2){throw console.error(`The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?`),t$2}n$2.g.Worker=e$5.Worker}else (_$1||v$1)&&(v$1?T$1=self.location.href:typeof document<`u`&&document.currentScript&&(T$1=document.currentScript.src),_scriptDir&&(T$1=_scriptDir),T$1=T$1.indexOf(`blob:`)===0?``:T$1.substr(0,T$1.replace(/[?#].*/,``).lastIndexOf(`/`)+1),w$1||(l$1=t$2=>{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.send(null),e$5.responseText},v$1&&(f$3=t$2=>{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.responseType=`arraybuffer`,e$5.send(null),new Uint8Array(e$5.response)}),p$5=(t$2,e$5,n$3)=>{var r$4=new XMLHttpRequest;r$4.open(`GET`,t$2,!0),r$4.responseType=`arraybuffer`,r$4.onload=()=>{r$4.status==200||r$4.status==0&&r$4.response?e$5(r$4.response):n$3()},r$4.onerror=n$3,r$4.send(null)}));w$1&&typeof performance>`u`&&(n$2.g.performance=n$2(6953).performance);var O$1=console.log.bind(console),A$1=console.warn.bind(console);w$1&&(g$2(),O$1=t$2=>d$2.writeSync(1,t$2+` +(function(t,e$3){if(typeof exports==`object`&&typeof module==`object`)module.exports=e$3((init_lib(),__toCommonJS(lib_exports)));else if(typeof define==`function`&&define.amd)define([],e$3);else{var n$2=e$3(typeof exports==`object`?(init_lib(),__toCommonJS(lib_exports)):t.ort);for(var r$2 in n$2)(typeof exports==`object`?exports:t)[r$2]=n$2[r$2]}})(self,__WEBPACK_EXTERNAL_MODULE__1670__=>(()=>{var __webpack_modules__={3474:(t,e$3,n$2)=>{var _scriptDir,r$2=(_scriptDir=(_scriptDir=typeof document<`u`&&document.currentScript?document.currentScript.src:void 0)||`/index.js`,function(t$1){function e$4(){return $$1.buffer!=C$3&&H$2($$1.buffer),F$2}function r$3(){return $$1.buffer!=C$3&&H$2($$1.buffer),N$1}function i$1(){return $$1.buffer!=C$3&&H$2($$1.buffer),L$1}function o$1(){return $$1.buffer!=C$3&&H$2($$1.buffer),R$1}function a$2(){return $$1.buffer!=C$3&&H$2($$1.buffer),j$1}var s$1,u$1,c$4;t$1||={},s$1||=t$1===void 0?{}:t$1,s$1.ready=new Promise(function(t$2,e$5){u$1=t$2,c$4=e$5});var l$1,p$5,f$3,d$2,h$3,g$2,b$3=Object.assign({},s$1),m$2=`./this.program`,y$2=(t$2,e$5)=>{throw e$5},_$2=typeof window==`object`,v$1=typeof importScripts==`function`,w$1=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`,x$3=s$1.ENVIRONMENT_IS_PTHREAD||!1,T$1=``;function S$2(t$2){return s$1.locateFile?s$1.locateFile(t$2,T$1):T$1+t$2}if(w$1){let e$5;T$1=v$1?n$2(908).dirname(T$1)+`/`:`//`,g$2=()=>{h$3||(d$2=n$2(1384),h$3=n$2(908))},l$1=function(t$2,e$6){return g$2(),t$2=h$3.normalize(t$2),d$2.readFileSync(t$2,e$6?void 0:`utf8`)},f$3=t$2=>((t$2=l$1(t$2,!0)).buffer||(t$2=new Uint8Array(t$2)),t$2),p$5=(t$2,e$6,n$3)=>{g$2(),t$2=h$3.normalize(t$2),d$2.readFile(t$2,function(t$3,r$4){t$3?n$3(t$3):e$6(r$4.buffer)})},1{if(J$1())throw process.exitCode=t$2,e$6;e$6 instanceof ut$2||P$1(`exiting due to exception: `+e$6),process.exit(t$2)},s$1.inspect=function(){return`[Emscripten Module object]`};try{e$5=n$2(9925)}catch(t$2){throw console.error(`The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?`),t$2}n$2.g.Worker=e$5.Worker}else (_$2||v$1)&&(v$1?T$1=self.location.href:typeof document<`u`&&document.currentScript&&(T$1=document.currentScript.src),_scriptDir&&(T$1=_scriptDir),T$1=T$1.indexOf(`blob:`)===0?``:T$1.substr(0,T$1.replace(/[?#].*/,``).lastIndexOf(`/`)+1),w$1||(l$1=t$2=>{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.send(null),e$5.responseText},v$1&&(f$3=t$2=>{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.responseType=`arraybuffer`,e$5.send(null),new Uint8Array(e$5.response)}),p$5=(t$2,e$5,n$3)=>{var r$4=new XMLHttpRequest;r$4.open(`GET`,t$2,!0),r$4.responseType=`arraybuffer`,r$4.onload=()=>{r$4.status==200||r$4.status==0&&r$4.response?e$5(r$4.response):n$3()},r$4.onerror=n$3,r$4.send(null)}));w$1&&typeof performance>`u`&&(n$2.g.performance=n$2(6953).performance);var O$2=console.log.bind(console),A$1=console.warn.bind(console);w$1&&(g$2(),O$2=t$2=>d$2.writeSync(1,t$2+` `),A$1=t$2=>d$2.writeSync(2,t$2+` -`));var E$2,I=s$1.print||O$1,P$1=s$1.printErr||A$1;Object.assign(s$1,b$3),b$3=null,s$1.thisProgram&&(m$2=s$1.thisProgram),s$1.quit&&(y$2=s$1.quit),s$1.wasmBinary&&(E$2=s$1.wasmBinary);var D$1=s$1.noExitRuntime||!1;typeof WebAssembly!=`object`&&it$1(`no native wasm support detected`);var $$1,k$4,C$2,F$2,N$1,L$1,R$1,j$1,M$1=!1,U=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function V$1(t$2,e$5,n$3){var r$4=(e$5>>>=0)+n$3;for(n$3=e$5;t$2[n$3]&&!(n$3>=r$4);)++n$3;if(16(i$2=(240&i$2)==224?(15&i$2)<<12|o$2<<6|a$3:(7&i$2)<<18|o$2<<12|a$3<<6|63&t$2[e$5++])?r$4+=String.fromCharCode(i$2):(i$2-=65536,r$4+=String.fromCharCode(55296|i$2>>10,56320|1023&i$2))}}else r$4+=String.fromCharCode(i$2)}return r$4}function B$2(t$2,e$5){return(t$2>>>=0)?V$1(r$3(),t$2,e$5):``}function z$2(t$2,e$5,n$3,r$4){if(!(0>>=0;r$4=n$3+r$4-1;for(var o$2=0;o$2=a$3&&(a$3=65536+((1023&a$3)<<10)|1023&t$2.charCodeAt(++o$2)),127>=a$3){if(n$3>=r$4)break;e$5[n$3++>>>0]=a$3}else{if(2047>=a$3){if(n$3+1>=r$4)break;e$5[n$3++>>>0]=192|a$3>>6}else{if(65535>=a$3){if(n$3+2>=r$4)break;e$5[n$3++>>>0]=224|a$3>>12}else{if(n$3+3>=r$4)break;e$5[n$3++>>>0]=240|a$3>>18,e$5[n$3++>>>0]=128|a$3>>12&63}e$5[n$3++>>>0]=128|a$3>>6&63}e$5[n$3++>>>0]=128|63&a$3}}return e$5[n$3>>>0]=0,n$3-i$2}function G$1(t$2){for(var e$5=0,n$3=0;n$3=r$4?e$5++:2047>=r$4?e$5+=2:55296<=r$4&&57343>=r$4?(e$5+=4,++n$3):e$5+=3}return e$5}function H$2(t$2){C$2=t$2,s$1.HEAP8=F$2=new Int8Array(t$2),s$1.HEAP16=new Int16Array(t$2),s$1.HEAP32=L$1=new Int32Array(t$2),s$1.HEAPU8=N$1=new Uint8Array(t$2),s$1.HEAPU16=new Uint16Array(t$2),s$1.HEAPU32=R$1=new Uint32Array(t$2),s$1.HEAPF32=new Float32Array(t$2),s$1.HEAPF64=j$1=new Float64Array(t$2)}x$3&&(C$2=s$1.buffer);var W$1=s$1.INITIAL_MEMORY||16777216;if(x$3)$$1=s$1.wasmMemory,C$2=s$1.buffer;else if(s$1.wasmMemory)$$1=s$1.wasmMemory;else if(!(($$1=new WebAssembly.Memory({initial:W$1/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw P$1(`requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag`),w$1&&console.log(`(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)`),Error(`bad memory`);$$1&&(C$2=$$1.buffer),W$1=C$2.byteLength,H$2(C$2);var q$1,X$2=[],Y$2=[],K$1=[],Z$1=[];function J$1(){return D$1||!1}function Q$2(){var t$2=s$1.preRun.shift();X$2.unshift(t$2)}var tt$3,et$2=0,nt$2=null,rt$2=null;function it$1(t$2){throw x$3?postMessage({cmd:`onAbort`,arg:t$2}):s$1.onAbort&&s$1.onAbort(t$2),P$1(t$2=`Aborted(`+t$2+`)`),M$1=!0,t$2=new WebAssembly.RuntimeError(t$2+`. Build with -sASSERTIONS for more info.`),c$4(t$2),t$2}function ot$1(){return tt$3.startsWith(`data:application/octet-stream;base64,`)}function at$1(){var t$2=tt$3;try{if(t$2==tt$3&&E$2)return new Uint8Array(E$2);if(f$3)return f$3(t$2);throw`both async and sync fetching of the wasm failed`}catch(t$3){it$1(t$3)}}tt$3=`ort-wasm-threaded.wasm`,ot$1()||(tt$3=S$2(tt$3));var st$1={};function ut$1(t$2){this.name=`ExitStatus`,this.message=`Program terminated with exit(`+t$2+`)`,this.status=t$2}function ct$1(t$2){(t$2=dt$3.Vb[t$2])||it$1(),dt$3.mc(t$2)}function lt$1(t$2){var e$5=dt$3.Cc();if(!e$5)return 6;dt$3.ac.push(e$5),dt$3.Vb[t$2.Ub]=e$5,e$5.Ub=t$2.Ub;var n$3={cmd:`run`,start_routine:t$2.Ic,arg:t$2.zc,pthread_ptr:t$2.Ub};return e$5.$b=()=>{n$3.time=performance.now(),e$5.postMessage(n$3,t$2.Nc)},e$5.loaded&&(e$5.$b(),delete e$5.$b),0}function pt$1(t$2){if(x$3)return qt(1,1,t$2);J$1()||(dt$3.oc(),s$1.onExit&&s$1.onExit(t$2),M$1=!0),y$2(t$2,new ut$1(t$2))}function ft$1(t$2,e$5){if(!e$5&&x$3)throw bt$2(t$2),`unwind`;J$1()||x$3||(me$1(),ht$2(K$1),be$2(0),re$2[1].length&&ie$1(1,10),re$2[2].length&&ie$1(2,10),dt$3.oc()),pt$1(t$2)}var dt$3={Yb:[],ac:[],qc:[],Vb:{},fc:function(){x$3&&dt$3.Ec()},Pc:function(){},Ec:function(){dt$3.receiveObjectTransfer=dt$3.Gc,dt$3.threadInitTLS=dt$3.pc,dt$3.setExitStatus=dt$3.nc,D$1=!1},nc:function(){},oc:function(){for(var t$2 of Object.values(dt$3.Vb))dt$3.mc(t$2);for(t$2 of dt$3.Yb)t$2.terminate();dt$3.Yb=[]},mc:function(t$2){var e$5=t$2.Ub;delete dt$3.Vb[e$5],dt$3.Yb.push(t$2),dt$3.ac.splice(dt$3.ac.indexOf(t$2),1),t$2.Ub=0,xe(e$5)},Gc:function(){},pc:function(){dt$3.qc.forEach(t$2=>t$2())},Fc:function(t$2,e$5){t$2.onmessage=n$3=>{var r$4=(n$3=n$3.data).cmd;if(t$2.Ub&&(dt$3.Bc=t$2.Ub),n$3.targetThread&&n$3.targetThread!=de$2()){var i$2=dt$3.Vb[n$3.Qc];i$2?i$2.postMessage(n$3,n$3.transferList):P$1(`Internal error! Worker sent a message "`+r$4+`" to target pthread `+n$3.targetThread+`, but that thread no longer exists!`)}else r$4===`processProxyingQueue`?Vt$1(n$3.queue):r$4===`spawnThread`?lt$1(n$3):r$4===`cleanupThread`?ct$1(n$3.thread):r$4===`killThread`?(n$3=n$3.thread,r$4=dt$3.Vb[n$3],delete dt$3.Vb[n$3],r$4.terminate(),xe(n$3),dt$3.ac.splice(dt$3.ac.indexOf(r$4),1),r$4.Ub=0):r$4===`cancelThread`?dt$3.Vb[n$3.thread].postMessage({cmd:`cancel`}):r$4===`loaded`?(t$2.loaded=!0,e$5&&e$5(t$2),t$2.$b&&(t$2.$b(),delete t$2.$b)):r$4===`print`?I(`Thread `+n$3.threadId+`: `+n$3.text):r$4===`printErr`?P$1(`Thread `+n$3.threadId+`: `+n$3.text):r$4===`alert`?alert(`Thread `+n$3.threadId+`: `+n$3.text):n$3.target===`setimmediate`?t$2.postMessage(n$3):r$4===`onAbort`?s$1.onAbort&&s$1.onAbort(n$3.arg):r$4&&P$1(`worker sent an unknown command `+r$4);dt$3.Bc=void 0},t$2.onerror=t$3=>{throw P$1(`worker sent an error! `+t$3.filename+`:`+t$3.lineno+`: `+t$3.message),t$3},w$1&&(t$2.on(`message`,function(e$6){t$2.onmessage({data:e$6})}),t$2.on(`error`,function(e$6){t$2.onerror(e$6)}),t$2.on(`detachedExit`,function(){})),t$2.postMessage({cmd:`load`,urlOrBlob:s$1.mainScriptUrlOrBlob||_scriptDir,wasmMemory:$$1,wasmModule:k$4})},yc:function(){var t$2=S$2(`ort-wasm-threaded.worker.js`);dt$3.Yb.push(new Worker(t$2))},Cc:function(){return dt$3.Yb.length==0&&(dt$3.yc(),dt$3.Fc(dt$3.Yb[0])),dt$3.Yb.pop()}};function ht$2(t$2){for(;0>2>>>0];t$2=i$1()[t$2+48>>2>>>0],Oe$1(e$5,e$5-t$2),Ee$1(e$5)};var mt$2=[];function yt$2(t$2){var e$5=mt$2[t$2];return e$5||(t$2>=mt$2.length&&(mt$2.length=t$2+1),mt$2[t$2]=e$5=q$1.get(t$2)),e$5}s$1.invokeEntryPoint=function(t$2,e$5){t$2=yt$2(t$2)(e$5),J$1()?dt$3.nc(t$2):Te$2(t$2)};var _t$2,vt$2,wt$2=[],xt$1=0,Tt$2=0;function St$2(t$2){this.Zb=t$2,this.Sb=t$2-24,this.xc=function(t$3){o$1()[this.Sb+4>>2>>>0]=t$3},this.bc=function(){return o$1()[this.Sb+4>>2>>>0]},this.wc=function(t$3){o$1()[this.Sb+8>>2>>>0]=t$3},this.Dc=function(){return o$1()[this.Sb+8>>2>>>0]},this.rc=function(){i$1()[this.Sb>>2>>>0]=0},this.hc=function(t$3){t$3=t$3?1:0,e$4()[this.Sb+12>>0>>>0]=t$3},this.uc=function(){return e$4()[this.Sb+12>>0>>>0]!=0},this.ic=function(t$3){t$3=t$3?1:0,e$4()[this.Sb+13>>0>>>0]=t$3},this.kc=function(){return e$4()[this.Sb+13>>0>>>0]!=0},this.fc=function(t$3,e$5){this.cc(0),this.xc(t$3),this.wc(e$5),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(i$1(),this.Sb>>2,1)},this.Hc=function(){return Atomics.sub(i$1(),this.Sb>>2,1)===1},this.cc=function(t$3){o$1()[this.Sb+16>>2>>>0]=t$3},this.tc=function(){return o$1()[this.Sb+16>>2>>>0]},this.vc=function(){if(De(this.bc()))return o$1()[this.Zb>>2>>>0];var t$3=this.tc();return t$3===0?this.Zb:t$3}}function Ot$1(t$2){return ge$1(new St$2(t$2).Sb)}function At$1(t$2,e$5,n$3,r$4){return x$3?qt(3,1,t$2,e$5,n$3,r$4):Et$2(t$2,e$5,n$3,r$4)}function Et$2(t$2,e$5,n$3,r$4){if(typeof SharedArrayBuffer>`u`)return P$1(`Current environment does not support SharedArrayBuffer, pthreads are not available!`),6;var i$2=[];return x$3&&i$2.length===0?At$1(t$2,e$5,n$3,r$4):(t$2={Ic:n$3,Ub:t$2,zc:r$4,Nc:i$2},x$3?(t$2.Oc=`spawnThread`,postMessage(t$2,i$2),0):lt$1(t$2))}function It$1(t$2,e$5,n$3){return x$3?qt(4,1,t$2,e$5,n$3):0}function Pt$2(t$2,e$5){if(x$3)return qt(5,1,t$2,e$5)}function Dt$1(t$2,e$5){if(x$3)return qt(6,1,t$2,e$5)}function $t$1(t$2,e$5,n$3){if(x$3)return qt(7,1,t$2,e$5,n$3)}function kt$1(t$2,e$5,n$3){return x$3?qt(8,1,t$2,e$5,n$3):0}function Ct$1(t$2,e$5){if(x$3)return qt(9,1,t$2,e$5)}function Ft$1(t$2,e$5,n$3){if(x$3)return qt(10,1,t$2,e$5,n$3)}function Nt(t$2,e$5,n$3,r$4){if(x$3)return qt(11,1,t$2,e$5,n$3,r$4)}function Lt$1(t$2,e$5,n$3,r$4){if(x$3)return qt(12,1,t$2,e$5,n$3,r$4)}function Rt$1(t$2,e$5,n$3,r$4){if(x$3)return qt(13,1,t$2,e$5,n$3,r$4)}function jt$1(t$2){if(x$3)return qt(14,1,t$2)}function Mt$2(t$2,e$5){if(x$3)return qt(15,1,t$2,e$5)}function Ut(t$2,e$5,n$3){if(x$3)return qt(16,1,t$2,e$5,n$3)}function Vt$1(t$2){Atomics.store(i$1(),t$2>>2,1),de$2()&&we$1(t$2),Atomics.compareExchange(i$1(),t$2>>2,1,0)}function Bt$1(t$2){return o$1()[t$2>>>2]+4294967296*i$1()[t$2+4>>>2]}function zt(t$2,e$5,n$3,r$4,i$2,o$2){return x$3?qt(17,1,t$2,e$5,n$3,r$4,i$2,o$2):-52}function Gt(t$2,e$5,n$3,r$4,i$2,o$2){if(x$3)return qt(18,1,t$2,e$5,n$3,r$4,i$2,o$2)}function Ht$1(t$2){var n$3=G$1(t$2)+1,r$4=he$2(n$3);return r$4&&z$2(t$2,e$4(),r$4,n$3),r$4}function Wt$1(t$2,e$5,n$3){function r$4(t$3){return(t$3=t$3.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t$3[1]:`GMT`}if(x$3)return qt(19,1,t$2,e$5,n$3);var a$3=new Date().getFullYear(),s$2=new Date(a$3,0,1),u$2=new Date(a$3,6,1);a$3=s$2.getTimezoneOffset();var c$5=u$2.getTimezoneOffset(),l$2=Math.max(a$3,c$5);i$1()[t$2>>2>>>0]=60*l$2,i$1()[e$5>>2>>>0]=Number(a$3!=c$5),t$2=r$4(s$2),e$5=r$4(u$2),t$2=Ht$1(t$2),e$5=Ht$1(e$5),c$5>2>>>0]=t$2,o$1()[n$3+4>>2>>>0]=e$5):(o$1()[n$3>>2>>>0]=e$5,o$1()[n$3+4>>2>>>0]=t$2)}function qt(t$2,e$5){var n$3=arguments.length-2,r$4=arguments;return gt$2(()=>{for(var i$2=Ie(8*n$3),o$2=i$2>>3,s$2=0;s$2>>0]=u$2}return ve$1(t$2,n$3,i$2,e$5)})}s$1.executeNotifiedProxyingQueue=Vt$1,vt$2=w$1?()=>{var t$2=process.hrtime();return 1e3*t$2[0]+t$2[1]/1e6}:x$3?()=>performance.now()-s$1.__performance_now_clock_drift:()=>performance.now();var Xt,Yt=[],Kt={};function Zt(){if(!Xt){var t$2,e$5={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(typeof navigator==`object`&&navigator.languages&&navigator.languages[0]||`C`).replace(`-`,`_`)+`.UTF-8`,_:m$2||`./this.program`};for(t$2 in Kt)Kt[t$2]===void 0?delete e$5[t$2]:e$5[t$2]=Kt[t$2];var n$3=[];for(t$2 in e$5)n$3.push(t$2+`=`+e$5[t$2]);Xt=n$3}return Xt}function Jt(t$2,n$3){if(x$3)return qt(20,1,t$2,n$3);var r$4=0;return Zt().forEach(function(i$2,a$3){var s$2=n$3+r$4;for(a$3=o$1()[t$2+4*a$3>>2>>>0]=s$2,s$2=0;s$2>0>>>0]=i$2.charCodeAt(s$2);e$4()[a$3>>0>>>0]=0,r$4+=i$2.length+1}),0}function Qt(t$2,e$5){if(x$3)return qt(21,1,t$2,e$5);var n$3=Zt();o$1()[t$2>>2>>>0]=n$3.length;var r$4=0;return n$3.forEach(function(t$3){r$4+=t$3.length+1}),o$1()[e$5>>2>>>0]=r$4,0}function te$2(t$2){return x$3?qt(22,1,t$2):52}function ee$2(t$2,e$5,n$3,r$4){return x$3?qt(23,1,t$2,e$5,n$3,r$4):52}function ne$1(t$2,e$5,n$3,r$4,i$2){return x$3?qt(24,1,t$2,e$5,n$3,r$4,i$2):70}var re$2=[null,[],[]];function ie$1(t$2,e$5){var n$3=re$2[t$2];e$5===0||e$5===10?((t$2===1?I:P$1)(V$1(n$3,0)),n$3.length=0):n$3.push(e$5)}function oe$2(t$2,e$5,n$3,i$2){if(x$3)return qt(25,1,t$2,e$5,n$3,i$2);for(var a$3=0,s$2=0;s$2>2>>>0],c$5=o$1()[e$5+4>>2>>>0];e$5+=8;for(var l$2=0;l$2>>0]);a$3+=c$5}return o$1()[i$2>>2>>>0]=a$3,0}var ae$1=0;function se$1(t$2){return t$2%4==0&&(t$2%100!=0||t$2%400==0)}var ue$1=[31,29,31,30,31,30,31,31,30,31,30,31],ce$2=[31,28,31,30,31,30,31,31,30,31,30,31];function le$2(t$2,n$3,r$4,o$2){function a$3(t$3,e$5,n$4){for(t$3=typeof t$3==`number`?t$3.toString():t$3||``;t$3.lengtht$4?-1:0r$5-t$3.getDate())){t$3.setDate(t$3.getDate()+e$5);break}e$5-=r$5-t$3.getDate()+1,t$3.setDate(1),11>n$4?t$3.setMonth(n$4+1):(t$3.setMonth(0),t$3.setFullYear(t$3.getFullYear()+1))}return n$4=new Date(t$3.getFullYear()+1,0,4),e$5=c$5(new Date(t$3.getFullYear(),0,4)),n$4=c$5(n$4),0>=u$2(e$5,t$3)?0>=u$2(n$4,t$3)?t$3.getFullYear()+1:t$3.getFullYear():t$3.getFullYear()-1}var p$6=i$1()[o$2+40>>2>>>0];for(var f$4 in o$2={Lc:i$1()[o$2>>2>>>0],Kc:i$1()[o$2+4>>2>>>0],dc:i$1()[o$2+8>>2>>>0],jc:i$1()[o$2+12>>2>>>0],ec:i$1()[o$2+16>>2>>>0],Xb:i$1()[o$2+20>>2>>>0],Tb:i$1()[o$2+24>>2>>>0],Wb:i$1()[o$2+28>>2>>>0],Rc:i$1()[o$2+32>>2>>>0],Jc:i$1()[o$2+36>>2>>>0],Mc:p$6?B$2(p$6):``},r$4=B$2(r$4),p$6={"%c":`%a %b %d %H:%M:%S %Y`,"%D":`%m/%d/%y`,"%F":`%Y-%m-%d`,"%h":`%b`,"%r":`%I:%M:%S %p`,"%R":`%H:%M`,"%T":`%H:%M:%S`,"%x":`%m/%d/%y`,"%X":`%H:%M:%S`,"%Ec":`%c`,"%EC":`%C`,"%Ex":`%m/%d/%y`,"%EX":`%H:%M:%S`,"%Ey":`%y`,"%EY":`%Y`,"%Od":`%d`,"%Oe":`%e`,"%OH":`%H`,"%OI":`%I`,"%Om":`%m`,"%OM":`%M`,"%OS":`%S`,"%Ou":`%u`,"%OU":`%U`,"%OV":`%V`,"%Ow":`%w`,"%OW":`%W`,"%Oy":`%y`})r$4=r$4.replace(new RegExp(f$4,`g`),p$6[f$4]);var d$3=`Sunday Monday Tuesday Wednesday Thursday Friday Saturday`.split(` `),h$4=`January February March April May June July August September October November December`.split(` `);for(f$4 in p$6={"%a":function(t$3){return d$3[t$3.Tb].substring(0,3)},"%A":function(t$3){return d$3[t$3.Tb]},"%b":function(t$3){return h$4[t$3.ec].substring(0,3)},"%B":function(t$3){return h$4[t$3.ec]},"%C":function(t$3){return s$2((t$3.Xb+1900)/100|0,2)},"%d":function(t$3){return s$2(t$3.jc,2)},"%e":function(t$3){return a$3(t$3.jc,2,` `)},"%g":function(t$3){return l$2(t$3).toString().substring(2)},"%G":function(t$3){return l$2(t$3)},"%H":function(t$3){return s$2(t$3.dc,2)},"%I":function(t$3){return(t$3=t$3.dc)==0?t$3=12:12t$3.dc?`AM`:`PM`},"%S":function(t$3){return s$2(t$3.Lc,2)},"%t":function(){return` `},"%u":function(t$3){return t$3.Tb||7},"%U":function(t$3){return s$2(Math.floor((t$3.Wb+7-t$3.Tb)/7),2)},"%V":function(t$3){var e$5=Math.floor((t$3.Wb+7-(t$3.Tb+6)%7)/7);if(2>=(t$3.Tb+371-t$3.Wb-2)%7&&e$5++,e$5)e$5==53&&((n$4=(t$3.Tb+371-t$3.Wb)%7)==4||n$4==3&&se$1(t$3.Xb)||(e$5=1));else{e$5=52;var n$4=(t$3.Tb+7-t$3.Wb-1)%7;(n$4==4||n$4==5&&se$1(t$3.Xb%400-1))&&e$5++}return s$2(e$5,2)},"%w":function(t$3){return t$3.Tb},"%W":function(t$3){return s$2(Math.floor((t$3.Wb+7-(t$3.Tb+6)%7)/7),2)},"%y":function(t$3){return(t$3.Xb+1900).toString().substring(2)},"%Y":function(t$3){return t$3.Xb+1900},"%z":function(t$3){var e$5=0<=(t$3=t$3.Jc);return t$3=Math.abs(t$3)/60,(e$5?`+`:`-`)+String(`0000`+(t$3/60*100+t$3%60)).slice(-4)},"%Z":function(t$3){return t$3.Mc},"%%":function(){return`%`}},r$4=r$4.replace(/%%/g,`\0\0`),p$6)r$4.includes(f$4)&&(r$4=r$4.replace(new RegExp(f$4,`g`),p$6[f$4](o$2)));return f$4=function(t$3){var e$5=Array(G$1(t$3)+1);return z$2(t$3,e$5,0,e$5.length),e$5}(r$4=r$4.replace(/\0\0/g,`%`)),f$4.length>n$3?0:(function(t$3,n$4){e$4().set(t$3,n$4>>>0)}(f$4,t$2),f$4.length-1)}dt$3.fc();var pe$2=[null,pt$1,bt$2,At$1,It$1,Pt$2,Dt$1,$t$1,kt$1,Ct$1,Ft$1,Nt,Lt$1,Rt$1,jt$1,Mt$2,Ut,zt,Gt,Wt$1,Jt,Qt,te$2,ee$2,ne$1,oe$2],fe$2={b:function(t$2){return he$2(t$2+24)+24},n:function(t$2){return(t$2=new St$2(t$2)).uc()||(t$2.hc(!0),xt$1--),t$2.ic(!1),wt$2.push(t$2),t$2.sc(),t$2.vc()},ma:function(t$2){throw P$1(`Unexpected exception thrown, this is not properly supported - aborting`),M$1=!0,t$2},x:function(){Se$1(0);var t$2=wt$2.pop();if(t$2.Hc()&&!t$2.kc()){var e$5=t$2.Dc();e$5&&yt$2(e$5)(t$2.Zb),Ot$1(t$2.Zb)}Tt$2=0},e:function(){var t$2=Tt$2;if(!t$2)return ae$1=0;var e$5=new St$2(t$2);e$5.cc(t$2);var n$3=e$5.bc();if(!n$3)return ae$1=0,t$2;for(var r$4=Array.prototype.slice.call(arguments),i$2=0;i$2Vt$1(r$4));else if(x$3)postMessage({targetThread:t$2,cmd:`processProxyingQueue`,queue:r$4});else{if(!(t$2=dt$3.Vb[t$2]))return;t$2.postMessage({cmd:`processProxyingQueue`,queue:r$4})}return 1},Ea:function(){return-1},Pa:function(t$2,e$5){t$2=new Date(1e3*Bt$1(t$2)),i$1()[e$5>>2>>>0]=t$2.getUTCSeconds(),i$1()[e$5+4>>2>>>0]=t$2.getUTCMinutes(),i$1()[e$5+8>>2>>>0]=t$2.getUTCHours(),i$1()[e$5+12>>2>>>0]=t$2.getUTCDate(),i$1()[e$5+16>>2>>>0]=t$2.getUTCMonth(),i$1()[e$5+20>>2>>>0]=t$2.getUTCFullYear()-1900,i$1()[e$5+24>>2>>>0]=t$2.getUTCDay(),t$2=(t$2.getTime()-Date.UTC(t$2.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,i$1()[e$5+28>>2>>>0]=t$2},Qa:function(t$2,e$5){t$2=new Date(1e3*Bt$1(t$2)),i$1()[e$5>>2>>>0]=t$2.getSeconds(),i$1()[e$5+4>>2>>>0]=t$2.getMinutes(),i$1()[e$5+8>>2>>>0]=t$2.getHours(),i$1()[e$5+12>>2>>>0]=t$2.getDate(),i$1()[e$5+16>>2>>>0]=t$2.getMonth(),i$1()[e$5+20>>2>>>0]=t$2.getFullYear()-1900,i$1()[e$5+24>>2>>>0]=t$2.getDay();var n$3=new Date(t$2.getFullYear(),0,1),r$4=(t$2.getTime()-n$3.getTime())/864e5|0;i$1()[e$5+28>>2>>>0]=r$4,i$1()[e$5+36>>2>>>0]=-60*t$2.getTimezoneOffset(),r$4=new Date(t$2.getFullYear(),6,1).getTimezoneOffset(),t$2=0|(r$4!=(n$3=n$3.getTimezoneOffset())&&t$2.getTimezoneOffset()==Math.min(n$3,r$4)),i$1()[e$5+32>>2>>>0]=t$2},Ra:function(t$2){var e$5=new Date(i$1()[t$2+20>>2>>>0]+1900,i$1()[t$2+16>>2>>>0],i$1()[t$2+12>>2>>>0],i$1()[t$2+8>>2>>>0],i$1()[t$2+4>>2>>>0],i$1()[t$2>>2>>>0],0),n$3=i$1()[t$2+32>>2>>>0],r$4=e$5.getTimezoneOffset(),o$2=new Date(e$5.getFullYear(),0,1),a$3=new Date(e$5.getFullYear(),6,1).getTimezoneOffset(),s$2=o$2.getTimezoneOffset(),u$2=Math.min(s$2,a$3);return 0>n$3?i$1()[t$2+32>>2>>>0]=Number(a$3!=s$2&&u$2==r$4):0>2>>>0]=e$5.getDay(),n$3=(e$5.getTime()-o$2.getTime())/864e5|0,i$1()[t$2+28>>2>>>0]=n$3,i$1()[t$2>>2>>>0]=e$5.getSeconds(),i$1()[t$2+4>>2>>>0]=e$5.getMinutes(),i$1()[t$2+8>>2>>>0]=e$5.getHours(),i$1()[t$2+12>>2>>>0]=e$5.getDate(),i$1()[t$2+16>>2>>>0]=e$5.getMonth(),e$5.getTime()/1e3|0},Aa:zt,Ba:Gt,Sa:function t$2(e$5,n$3,r$4){t$2.Ac||(t$2.Ac=!0,Wt$1(e$5,n$3,r$4))},y:function(){it$1(``)},U:function(){if(!w$1&&!v$1){var t$2=`Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread`;_t$2||={},_t$2[t$2]||(_t$2[t$2]=1,w$1&&(t$2=`warning: `+t$2),P$1(t$2))}},ra:function(){return 4294901760},B:vt$2,Ia:function(t$2,e$5,n$3){r$3().copyWithin(t$2>>>0,e$5>>>0,e$5+n$3>>>0)},F:function(){return w$1?n$2(3993).cpus().length:navigator.hardwareConcurrency},Da:function(t$2,e$5,n$3){Yt.length=e$5,n$3>>=3;for(var r$4=0;r$4>>0];return(0>t$2?st$1[-t$2-1]:pe$2[t$2]).apply(null,Yt)},qa:function(t$2){var e$5=r$3().length;if((t$2>>>=0)<=e$5||4294901760=n$3;n$3*=2){var i$2=e$5*(1+.2/n$3);i$2=Math.min(i$2,t$2+100663296);var o$2=Math;i$2=Math.max(t$2,i$2),o$2=o$2.min.call(o$2,4294901760,i$2+(65536-i$2%65536)%65536);t:{try{$$1.grow(o$2-C$2.byteLength+65535>>>16),H$2($$1.buffer);var a$3=1;break t}catch{}a$3=void 0}if(a$3)return!0}return!1},Na:function(){throw`unwind`},Ga:Jt,Ha:Qt,J:ft$1,I:te$2,S:ee$2,ga:ne$1,R:oe$2,d:function(){return ae$1},na:function t$2(r$4,i$2){t$2.lc||=function(){if(typeof crypto==`object`&&typeof crypto.getRandomValues==`function`){var t$3=new Uint8Array(1);return()=>(crypto.getRandomValues(t$3),t$3[0])}if(w$1)try{var e$5=n$2(Object(function(){var t$4=Error(`Cannot find module 'crypto'`);throw t$4.code=`MODULE_NOT_FOUND`,t$4}()));return()=>e$5.randomBytes(1)[0]}catch{}return()=>it$1(`randomDevice`)}();for(var o$2=0;o$2>0>>>0]=t$2.lc();return 0},ia:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$2(t$2)(e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ja:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$2(t$2)(e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},K:function(t$2){var e$5=Ae$1();try{return yt$2(t$2)()}catch(t$3){if(Ee$1(e$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},f:function(t$2,e$5){var n$3=Ae$1();try{return yt$2(t$2)(e$5)}catch(t$3){if(Ee$1(n$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},P:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$2(t$2)(e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},Q:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$2(t$2)(e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},k:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$2(t$2)(e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},p:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4)}catch(t$3){if(Ee$1(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},q:function(t$2,e$5,n$3,r$4,i$2){var o$2=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(Ee$1(o$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},N:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$1(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},s:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$1(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},w:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(Ee$1(s$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},L:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$1(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},E:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Ae$1();try{return yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(Ee$1(f$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},aa:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{return Me$2(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$1(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},_:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Ae$1();try{return ke$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(Ee$1(s$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},Z:function(t$2,e$5,n$3,r$4,i$2){var o$2=Ae$1();try{return Ue(t$2,e$5,n$3,r$4,i$2)}catch(t$3){if(Ee$1(o$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ca:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{return Re$1(t$2,e$5,n$3,r$4)}catch(t$3){if(Ee$1(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},$:function(t$2){var e$5=Ae$1();try{return $e(t$2)}catch(t$3){if(Ee$1(e$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ba:function(t$2,e$5){var n$3=Ae$1();try{return je(t$2,e$5)}catch(t$3){if(Ee$1(n$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},Y:function(t$2,e$5,n$3){var r$4=Ae$1();try{return Ce$2(t$2,e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},g:function(t$2){var e$5=Ae$1();try{yt$2(t$2)()}catch(t$3){if(Ee$1(e$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},r:function(t$2,e$5){var n$3=Ae$1();try{yt$2(t$2)(e$5)}catch(t$3){if(Ee$1(n$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},i:function(t$2,e$5,n$3){var r$4=Ae$1();try{yt$2(t$2)(e$5,n$3)}catch(t$3){if(Ee$1(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ha:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4)}catch(t$3){if(Ee$1(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},m:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4)}catch(t$3){if(Ee$1(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},v:function(t$2,e$5,n$3,r$4,i$2){var o$2=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(Ee$1(o$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},u:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$1(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},O:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(Ee$1(s$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},A:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$1(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ka:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2){var c$5=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2)}catch(t$3){if(Ee$1(c$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},C:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2){var p$6=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2)}catch(t$3){if(Ee$1(p$6),t$3!==t$3+0)throw t$3;Se$1(1,0)}},D:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3){var b$4=Ae$1();try{yt$2(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3)}catch(t$3){if(Ee$1(b$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},fa:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{Fe(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$1(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},da:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Ae$1();try{Le$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(Ee$1(f$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ea:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{Ne$1(t$2,e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$1(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},o:function(t$2){return t$2},a:$$1||s$1.wasmMemory,G:function(t$2){ae$1=t$2},la:le$2,z:function(t$2,e$5,n$3,r$4){return le$2(t$2,e$5,n$3,r$4)}};(function(){function t$2(t$3,e$6){s$1.asm=t$3.exports,dt$3.qc.push(s$1.asm.sb),q$1=s$1.asm.ub,Y$2.unshift(s$1.asm.Va),k$4=e$6,x$3||(et$2--,s$1.monitorRunDependencies&&s$1.monitorRunDependencies(et$2),et$2==0&&(nt$2!==null&&(clearInterval(nt$2),nt$2=null),rt$2&&(t$3=rt$2,rt$2=null,t$3())))}function e$5(e$6){t$2(e$6.instance,e$6.module)}function n$3(t$3){return function(){if(!E$2&&(_$1||v$1)){if(typeof fetch==`function`&&!tt$3.startsWith(`file://`))return fetch(tt$3,{credentials:`same-origin`}).then(function(t$4){if(!t$4.ok)throw`failed to load wasm binary file at '`+tt$3+`'`;return t$4.arrayBuffer()}).catch(function(){return at$1()});if(p$5)return new Promise(function(t$4,e$6){p$5(tt$3,function(e$7){t$4(new Uint8Array(e$7))},e$6)})}return Promise.resolve().then(function(){return at$1()})}().then(function(t$4){return WebAssembly.instantiate(t$4,r$4)}).then(function(t$4){return t$4}).then(t$3,function(t$4){P$1(`failed to asynchronously prepare wasm: `+t$4),it$1(t$4)})}var r$4={a:fe$2};if(x$3||(et$2++,s$1.monitorRunDependencies&&s$1.monitorRunDependencies(et$2)),s$1.instantiateWasm)try{return s$1.instantiateWasm(r$4,t$2)}catch(t$3){return P$1(`Module.instantiateWasm callback failed with error: `+t$3),!1}(E$2||typeof WebAssembly.instantiateStreaming!=`function`||ot$1()||tt$3.startsWith(`file://`)||w$1||typeof fetch!=`function`?n$3(e$5):fetch(tt$3,{credentials:`same-origin`}).then(function(t$3){return WebAssembly.instantiateStreaming(t$3,r$4).then(e$5,function(t$4){return P$1(`wasm streaming compile failed: `+t$4),P$1(`falling back to ArrayBuffer instantiation`),n$3(e$5)})})).catch(c$4)})(),s$1.___wasm_call_ctors=function(){return(s$1.___wasm_call_ctors=s$1.asm.Va).apply(null,arguments)},s$1._OrtInit=function(){return(s$1._OrtInit=s$1.asm.Wa).apply(null,arguments)},s$1._OrtCreateSessionOptions=function(){return(s$1._OrtCreateSessionOptions=s$1.asm.Xa).apply(null,arguments)},s$1._OrtAppendExecutionProvider=function(){return(s$1._OrtAppendExecutionProvider=s$1.asm.Ya).apply(null,arguments)},s$1._OrtAddSessionConfigEntry=function(){return(s$1._OrtAddSessionConfigEntry=s$1.asm.Za).apply(null,arguments)},s$1._OrtReleaseSessionOptions=function(){return(s$1._OrtReleaseSessionOptions=s$1.asm._a).apply(null,arguments)},s$1._OrtCreateSession=function(){return(s$1._OrtCreateSession=s$1.asm.$a).apply(null,arguments)},s$1._OrtReleaseSession=function(){return(s$1._OrtReleaseSession=s$1.asm.ab).apply(null,arguments)},s$1._OrtGetInputCount=function(){return(s$1._OrtGetInputCount=s$1.asm.bb).apply(null,arguments)},s$1._OrtGetOutputCount=function(){return(s$1._OrtGetOutputCount=s$1.asm.cb).apply(null,arguments)},s$1._OrtGetInputName=function(){return(s$1._OrtGetInputName=s$1.asm.db).apply(null,arguments)},s$1._OrtGetOutputName=function(){return(s$1._OrtGetOutputName=s$1.asm.eb).apply(null,arguments)},s$1._OrtFree=function(){return(s$1._OrtFree=s$1.asm.fb).apply(null,arguments)},s$1._OrtCreateTensor=function(){return(s$1._OrtCreateTensor=s$1.asm.gb).apply(null,arguments)},s$1._OrtGetTensorData=function(){return(s$1._OrtGetTensorData=s$1.asm.hb).apply(null,arguments)},s$1._OrtReleaseTensor=function(){return(s$1._OrtReleaseTensor=s$1.asm.ib).apply(null,arguments)},s$1._OrtCreateRunOptions=function(){return(s$1._OrtCreateRunOptions=s$1.asm.jb).apply(null,arguments)},s$1._OrtAddRunConfigEntry=function(){return(s$1._OrtAddRunConfigEntry=s$1.asm.kb).apply(null,arguments)},s$1._OrtReleaseRunOptions=function(){return(s$1._OrtReleaseRunOptions=s$1.asm.lb).apply(null,arguments)},s$1._OrtRun=function(){return(s$1._OrtRun=s$1.asm.mb).apply(null,arguments)},s$1._OrtEndProfiling=function(){return(s$1._OrtEndProfiling=s$1.asm.nb).apply(null,arguments)};var de$2=s$1._pthread_self=function(){return(de$2=s$1._pthread_self=s$1.asm.ob).apply(null,arguments)},he$2=s$1._malloc=function(){return(he$2=s$1._malloc=s$1.asm.pb).apply(null,arguments)},ge$1=s$1._free=function(){return(ge$1=s$1._free=s$1.asm.qb).apply(null,arguments)},be$2=s$1._fflush=function(){return(be$2=s$1._fflush=s$1.asm.rb).apply(null,arguments)};s$1.__emscripten_tls_init=function(){return(s$1.__emscripten_tls_init=s$1.asm.sb).apply(null,arguments)};var me$1=s$1.___funcs_on_exit=function(){return(me$1=s$1.___funcs_on_exit=s$1.asm.tb).apply(null,arguments)},ye$1=s$1.__emscripten_thread_init=function(){return(ye$1=s$1.__emscripten_thread_init=s$1.asm.vb).apply(null,arguments)};s$1.__emscripten_thread_crashed=function(){return(s$1.__emscripten_thread_crashed=s$1.asm.wb).apply(null,arguments)};var _e$1,ve$1=s$1._emscripten_run_in_main_runtime_thread_js=function(){return(ve$1=s$1._emscripten_run_in_main_runtime_thread_js=s$1.asm.xb).apply(null,arguments)},we$1=s$1.__emscripten_proxy_execute_task_queue=function(){return(we$1=s$1.__emscripten_proxy_execute_task_queue=s$1.asm.yb).apply(null,arguments)},xe=s$1.__emscripten_thread_free_data=function(){return(xe=s$1.__emscripten_thread_free_data=s$1.asm.zb).apply(null,arguments)},Te$2=s$1.__emscripten_thread_exit=function(){return(Te$2=s$1.__emscripten_thread_exit=s$1.asm.Ab).apply(null,arguments)},Se$1=s$1._setThrew=function(){return(Se$1=s$1._setThrew=s$1.asm.Bb).apply(null,arguments)},Oe$1=s$1._emscripten_stack_set_limits=function(){return(Oe$1=s$1._emscripten_stack_set_limits=s$1.asm.Cb).apply(null,arguments)},Ae$1=s$1.stackSave=function(){return(Ae$1=s$1.stackSave=s$1.asm.Db).apply(null,arguments)},Ee$1=s$1.stackRestore=function(){return(Ee$1=s$1.stackRestore=s$1.asm.Eb).apply(null,arguments)},Ie=s$1.stackAlloc=function(){return(Ie=s$1.stackAlloc=s$1.asm.Fb).apply(null,arguments)},Pe$2=s$1.___cxa_can_catch=function(){return(Pe$2=s$1.___cxa_can_catch=s$1.asm.Gb).apply(null,arguments)},De=s$1.___cxa_is_pointer_type=function(){return(De=s$1.___cxa_is_pointer_type=s$1.asm.Hb).apply(null,arguments)},$e=s$1.dynCall_j=function(){return($e=s$1.dynCall_j=s$1.asm.Ib).apply(null,arguments)},ke$1=s$1.dynCall_iiiiij=function(){return(ke$1=s$1.dynCall_iiiiij=s$1.asm.Jb).apply(null,arguments)},Ce$2=s$1.dynCall_jii=function(){return(Ce$2=s$1.dynCall_jii=s$1.asm.Kb).apply(null,arguments)},Fe=s$1.dynCall_viiiiij=function(){return(Fe=s$1.dynCall_viiiiij=s$1.asm.Lb).apply(null,arguments)},Ne$1=s$1.dynCall_vjji=function(){return(Ne$1=s$1.dynCall_vjji=s$1.asm.Mb).apply(null,arguments)},Le$1=s$1.dynCall_viiijjjii=function(){return(Le$1=s$1.dynCall_viiijjjii=s$1.asm.Nb).apply(null,arguments)},Re$1=s$1.dynCall_iij=function(){return(Re$1=s$1.dynCall_iij=s$1.asm.Ob).apply(null,arguments)},je=s$1.dynCall_ji=function(){return(je=s$1.dynCall_ji=s$1.asm.Pb).apply(null,arguments)},Me$2=s$1.dynCall_iiiiiij=function(){return(Me$2=s$1.dynCall_iiiiiij=s$1.asm.Qb).apply(null,arguments)},Ue=s$1.dynCall_iiij=function(){return(Ue=s$1.dynCall_iiij=s$1.asm.Rb).apply(null,arguments)};function Ve$1(){function t$2(){if(!_e$1&&(_e$1=!0,s$1.calledRun=!0,!M$1)&&(x$3||ht$2(Y$2),u$1(s$1),s$1.onRuntimeInitialized&&s$1.onRuntimeInitialized(),!x$3)){if(s$1.postRun)for(typeof s$1.postRun==`function`&&(s$1.postRun=[s$1.postRun]);s$1.postRun.length;){var t$3=s$1.postRun.shift();Z$1.unshift(t$3)}ht$2(Z$1)}}if(!(0{var _scriptDir,r$2=(_scriptDir=(_scriptDir=typeof document<`u`&&document.currentScript?document.currentScript.src:void 0)||`/index.js`,function(t$1){var e$4,r$3,i$1;t$1||={},e$4||=t$1===void 0?{}:t$1,e$4.ready=new Promise(function(t$2,e$5){r$3=t$2,i$1=e$5});var o$1,a$2,s$1,u$1,c$4,l$1,p$5=Object.assign({},e$4),f$3=`./this.program`,d$2=(t$2,e$5)=>{throw e$5},h$3=typeof window==`object`,g$2=typeof importScripts==`function`,b$3=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`,m$2=``;b$3?(m$2=g$2?n$2(908).dirname(m$2)+`/`:`//`,l$1=()=>{c$4||(u$1=n$2(1384),c$4=n$2(908))},o$1=function(t$2,e$5){return l$1(),t$2=c$4.normalize(t$2),u$1.readFileSync(t$2,e$5?void 0:`utf8`)},s$1=t$2=>((t$2=o$1(t$2,!0)).buffer||(t$2=new Uint8Array(t$2)),t$2),a$2=(t$2,e$5,n$3)=>{l$1(),t$2=c$4.normalize(t$2),u$1.readFile(t$2,function(t$3,r$4){t$3?n$3(t$3):e$5(r$4.buffer)})},1{if(w$1||0{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.send(null),e$5.responseText},g$2&&(s$1=t$2=>{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.responseType=`arraybuffer`,e$5.send(null),new Uint8Array(e$5.response)}),a$2=(t$2,e$5,n$3)=>{var r$4=new XMLHttpRequest;r$4.open(`GET`,t$2,!0),r$4.responseType=`arraybuffer`,r$4.onload=()=>{r$4.status==200||r$4.status==0&&r$4.response?e$5(r$4.response):n$3()},r$4.onerror=n$3,r$4.send(null)});var y$2,_$1=e$4.print||console.log.bind(console),v$1=e$4.printErr||console.warn.bind(console);Object.assign(e$4,p$5),p$5=null,e$4.thisProgram&&(f$3=e$4.thisProgram),e$4.quit&&(d$2=e$4.quit),e$4.wasmBinary&&(y$2=e$4.wasmBinary);var w$1=e$4.noExitRuntime||!1;typeof WebAssembly!=`object`&&W$1(`no native wasm support detected`);var x$3,T$1,S$2,O$1,A$1,E$2,I=!1,P$1=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function D$1(t$2,e$5,n$3){var r$4=(e$5>>>=0)+n$3;for(n$3=e$5;t$2[n$3]&&!(n$3>=r$4);)++n$3;if(16(i$2=(240&i$2)==224?(15&i$2)<<12|o$2<<6|a$3:(7&i$2)<<18|o$2<<12|a$3<<6|63&t$2[e$5++])?r$4+=String.fromCharCode(i$2):(i$2-=65536,r$4+=String.fromCharCode(55296|i$2>>10,56320|1023&i$2))}}else r$4+=String.fromCharCode(i$2)}return r$4}function $$1(t$2,e$5){return(t$2>>>=0)?D$1(O$1,t$2,e$5):``}function k$4(t$2,e$5,n$3,r$4){if(!(0>>=0;r$4=n$3+r$4-1;for(var o$2=0;o$2=a$3&&(a$3=65536+((1023&a$3)<<10)|1023&t$2.charCodeAt(++o$2)),127>=a$3){if(n$3>=r$4)break;e$5[n$3++>>>0]=a$3}else{if(2047>=a$3){if(n$3+1>=r$4)break;e$5[n$3++>>>0]=192|a$3>>6}else{if(65535>=a$3){if(n$3+2>=r$4)break;e$5[n$3++>>>0]=224|a$3>>12}else{if(n$3+3>=r$4)break;e$5[n$3++>>>0]=240|a$3>>18,e$5[n$3++>>>0]=128|a$3>>12&63}e$5[n$3++>>>0]=128|a$3>>6&63}e$5[n$3++>>>0]=128|63&a$3}}return e$5[n$3>>>0]=0,n$3-i$2}function C$2(t$2){for(var e$5=0,n$3=0;n$3=r$4?e$5++:2047>=r$4?e$5+=2:55296<=r$4&&57343>=r$4?(e$5+=4,++n$3):e$5+=3}return e$5}function F$2(){var t$2=x$3.buffer;T$1=t$2,e$4.HEAP8=S$2=new Int8Array(t$2),e$4.HEAP16=new Int16Array(t$2),e$4.HEAP32=A$1=new Int32Array(t$2),e$4.HEAPU8=O$1=new Uint8Array(t$2),e$4.HEAPU16=new Uint16Array(t$2),e$4.HEAPU32=E$2=new Uint32Array(t$2),e$4.HEAPF32=new Float32Array(t$2),e$4.HEAPF64=new Float64Array(t$2)}var N$1,L$1=[],R$1=[],j$1=[],M$1=[],U=0;function V$1(){var t$2=e$4.preRun.shift();L$1.unshift(t$2)}var B$2,z$2=0,G$1=null,H$2=null;function W$1(t$2){throw e$4.onAbort&&e$4.onAbort(t$2),v$1(t$2=`Aborted(`+t$2+`)`),I=!0,t$2=new WebAssembly.RuntimeError(t$2+`. Build with -sASSERTIONS for more info.`),i$1(t$2),t$2}function q$1(){return B$2.startsWith(`data:application/octet-stream;base64,`)}if(B$2=`ort-wasm.wasm`,!q$1()){var X$2=B$2;B$2=e$4.locateFile?e$4.locateFile(X$2,m$2):m$2+X$2}function Y$2(){var t$2=B$2;try{if(t$2==B$2&&y$2)return new Uint8Array(y$2);if(s$1)return s$1(t$2);throw`both async and sync fetching of the wasm failed`}catch(t$3){W$1(t$3)}}function K$1(t$2){this.name=`ExitStatus`,this.message=`Program terminated with exit(`+t$2+`)`,this.status=t$2}function Z$1(t$2){for(;0>2>>>0]=t$3},this.Eb=function(){return E$2[this.zb+4>>2>>>0]},this.Sb=function(t$3){E$2[this.zb+8>>2>>>0]=t$3},this.Wb=function(){return E$2[this.zb+8>>2>>>0]},this.Tb=function(){A$1[this.zb>>2>>>0]=0},this.Ib=function(t$3){S$2[this.zb+12>>0>>>0]=t$3?1:0},this.Pb=function(){return S$2[this.zb+12>>0>>>0]!=0},this.Jb=function(t$3){S$2[this.zb+13>>0>>>0]=t$3?1:0},this.Lb=function(){return S$2[this.zb+13>>0>>>0]!=0},this.Rb=function(t$3,e$5){this.Fb(0),this.Ub(t$3),this.Sb(e$5),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){A$1[this.zb>>2>>>0]+=1},this.Xb=function(){var t$3=A$1[this.zb>>2>>>0];return A$1[this.zb>>2>>>0]=t$3-1,t$3===1},this.Fb=function(t$3){E$2[this.zb+16>>2>>>0]=t$3},this.Ob=function(){return E$2[this.zb+16>>2>>>0]},this.Qb=function(){if(Et$2(this.Eb()))return E$2[this.Db>>2>>>0];var t$3=this.Ob();return t$3===0?this.Db:t$3}}function nt$2(t$2){return _t$2(new et$2(t$2).zb)}var rt$2=[];function it$1(t$2){var e$5=rt$2[t$2];return e$5||(t$2>=rt$2.length&&(rt$2.length=t$2+1),rt$2[t$2]=e$5=N$1.get(t$2)),e$5}function ot$1(t$2){var e$5=C$2(t$2)+1,n$3=yt$2(e$5);return n$3&&k$4(t$2,S$2,n$3,e$5),n$3}var at$1={};function st$1(){if(!ut$1){var t$2,e$5={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(typeof navigator==`object`&&navigator.languages&&navigator.languages[0]||`C`).replace(`-`,`_`)+`.UTF-8`,_:f$3||`./this.program`};for(t$2 in at$1)at$1[t$2]===void 0?delete e$5[t$2]:e$5[t$2]=at$1[t$2];var n$3=[];for(t$2 in e$5)n$3.push(t$2+`=`+e$5[t$2]);ut$1=n$3}return ut$1}var ut$1,ct$1=[null,[],[]];function lt$1(t$2,e$5){var n$3=ct$1[t$2];e$5===0||e$5===10?((t$2===1?_$1:v$1)(D$1(n$3,0)),n$3.length=0):n$3.push(e$5)}var pt$1=0;function ft$1(t$2){return t$2%4==0&&(t$2%100!=0||t$2%400==0)}var dt$3=[31,29,31,30,31,30,31,31,30,31,30,31],ht$2=[31,28,31,30,31,30,31,31,30,31,30,31];function gt$2(t$2,e$5,n$3,r$4){function i$2(t$3,e$6,n$4){for(t$3=typeof t$3==`number`?t$3.toString():t$3||``;t$3.lengtht$4?-1:0r$5-t$3.getDate())){t$3.setDate(t$3.getDate()+e$6);break}e$6-=r$5-t$3.getDate()+1,t$3.setDate(1),11>n$4?t$3.setMonth(n$4+1):(t$3.setMonth(0),t$3.setFullYear(t$3.getFullYear()+1))}return n$4=new Date(t$3.getFullYear()+1,0,4),e$6=s$2(new Date(t$3.getFullYear(),0,4)),n$4=s$2(n$4),0>=a$3(e$6,t$3)?0>=a$3(n$4,t$3)?t$3.getFullYear()+1:t$3.getFullYear():t$3.getFullYear()-1}var c$5=A$1[r$4+40>>2>>>0];for(var l$2 in r$4={$b:A$1[r$4>>2>>>0],Zb:A$1[r$4+4>>2>>>0],Gb:A$1[r$4+8>>2>>>0],Kb:A$1[r$4+12>>2>>>0],Hb:A$1[r$4+16>>2>>>0],Cb:A$1[r$4+20>>2>>>0],Ab:A$1[r$4+24>>2>>>0],Bb:A$1[r$4+28>>2>>>0],bc:A$1[r$4+32>>2>>>0],Yb:A$1[r$4+36>>2>>>0],ac:c$5?$$1(c$5):``},n$3=$$1(n$3),c$5={"%c":`%a %b %d %H:%M:%S %Y`,"%D":`%m/%d/%y`,"%F":`%Y-%m-%d`,"%h":`%b`,"%r":`%I:%M:%S %p`,"%R":`%H:%M`,"%T":`%H:%M:%S`,"%x":`%m/%d/%y`,"%X":`%H:%M:%S`,"%Ec":`%c`,"%EC":`%C`,"%Ex":`%m/%d/%y`,"%EX":`%H:%M:%S`,"%Ey":`%y`,"%EY":`%Y`,"%Od":`%d`,"%Oe":`%e`,"%OH":`%H`,"%OI":`%I`,"%Om":`%m`,"%OM":`%M`,"%OS":`%S`,"%Ou":`%u`,"%OU":`%U`,"%OV":`%V`,"%Ow":`%w`,"%OW":`%W`,"%Oy":`%y`})n$3=n$3.replace(new RegExp(l$2,`g`),c$5[l$2]);var p$6=`Sunday Monday Tuesday Wednesday Thursday Friday Saturday`.split(` `),f$4=`January February March April May June July August September October November December`.split(` `);for(l$2 in c$5={"%a":function(t$3){return p$6[t$3.Ab].substring(0,3)},"%A":function(t$3){return p$6[t$3.Ab]},"%b":function(t$3){return f$4[t$3.Hb].substring(0,3)},"%B":function(t$3){return f$4[t$3.Hb]},"%C":function(t$3){return o$2((t$3.Cb+1900)/100|0,2)},"%d":function(t$3){return o$2(t$3.Kb,2)},"%e":function(t$3){return i$2(t$3.Kb,2,` `)},"%g":function(t$3){return u$2(t$3).toString().substring(2)},"%G":function(t$3){return u$2(t$3)},"%H":function(t$3){return o$2(t$3.Gb,2)},"%I":function(t$3){return(t$3=t$3.Gb)==0?t$3=12:12t$3.Gb?`AM`:`PM`},"%S":function(t$3){return o$2(t$3.$b,2)},"%t":function(){return` `},"%u":function(t$3){return t$3.Ab||7},"%U":function(t$3){return o$2(Math.floor((t$3.Bb+7-t$3.Ab)/7),2)},"%V":function(t$3){var e$6=Math.floor((t$3.Bb+7-(t$3.Ab+6)%7)/7);if(2>=(t$3.Ab+371-t$3.Bb-2)%7&&e$6++,e$6)e$6==53&&((n$4=(t$3.Ab+371-t$3.Bb)%7)==4||n$4==3&&ft$1(t$3.Cb)||(e$6=1));else{e$6=52;var n$4=(t$3.Ab+7-t$3.Bb-1)%7;(n$4==4||n$4==5&&ft$1(t$3.Cb%400-1))&&e$6++}return o$2(e$6,2)},"%w":function(t$3){return t$3.Ab},"%W":function(t$3){return o$2(Math.floor((t$3.Bb+7-(t$3.Ab+6)%7)/7),2)},"%y":function(t$3){return(t$3.Cb+1900).toString().substring(2)},"%Y":function(t$3){return t$3.Cb+1900},"%z":function(t$3){var e$6=0<=(t$3=t$3.Yb);return t$3=Math.abs(t$3)/60,(e$6?`+`:`-`)+String(`0000`+(t$3/60*100+t$3%60)).slice(-4)},"%Z":function(t$3){return t$3.ac},"%%":function(){return`%`}},n$3=n$3.replace(/%%/g,`\0\0`),c$5)n$3.includes(l$2)&&(n$3=n$3.replace(new RegExp(l$2,`g`),c$5[l$2](r$4)));return l$2=function(t$3){var e$6=Array(C$2(t$3)+1);return k$4(t$3,e$6,0,e$6.length),e$6}(n$3=n$3.replace(/\0\0/g,`%`)),l$2.length>e$5?0:(S$2.set(l$2,t$2>>>0),l$2.length-1)}var bt$2={a:function(t$2){return yt$2(t$2+24)+24},m:function(t$2){return(t$2=new et$2(t$2)).Pb()||(t$2.Ib(!0),Q$2--),t$2.Jb(!1),J$1.push(t$2),t$2.Nb(),t$2.Qb()},ia:function(t$2){throw v$1(`Unexpected exception thrown, this is not properly supported - aborting`),I=!0,t$2},w:function(){xt$1(0);var t$2=J$1.pop();if(t$2.Xb()&&!t$2.Lb()){var e$5=t$2.Wb();e$5&&it$1(e$5)(t$2.Db),nt$2(t$2.Db)}tt$3=0},d:function(){var t$2=tt$3;if(!t$2)return pt$1=0;var e$5=new et$2(t$2);e$5.Fb(t$2);var n$3=e$5.Eb();if(!n$3)return pt$1=0,t$2;for(var r$4=Array.prototype.slice.call(arguments),i$2=0;i$2>>2]+4294967296*A$1[t$2+4>>>2])),A$1[e$5>>2>>>0]=t$2.getUTCSeconds(),A$1[e$5+4>>2>>>0]=t$2.getUTCMinutes(),A$1[e$5+8>>2>>>0]=t$2.getUTCHours(),A$1[e$5+12>>2>>>0]=t$2.getUTCDate(),A$1[e$5+16>>2>>>0]=t$2.getUTCMonth(),A$1[e$5+20>>2>>>0]=t$2.getUTCFullYear()-1900,A$1[e$5+24>>2>>>0]=t$2.getUTCDay(),A$1[e$5+28>>2>>>0]=(t$2.getTime()-Date.UTC(t$2.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t$2,e$5){t$2=new Date(1e3*(E$2[t$2>>>2]+4294967296*A$1[t$2+4>>>2])),A$1[e$5>>2>>>0]=t$2.getSeconds(),A$1[e$5+4>>2>>>0]=t$2.getMinutes(),A$1[e$5+8>>2>>>0]=t$2.getHours(),A$1[e$5+12>>2>>>0]=t$2.getDate(),A$1[e$5+16>>2>>>0]=t$2.getMonth(),A$1[e$5+20>>2>>>0]=t$2.getFullYear()-1900,A$1[e$5+24>>2>>>0]=t$2.getDay();var n$3=new Date(t$2.getFullYear(),0,1);A$1[e$5+28>>2>>>0]=(t$2.getTime()-n$3.getTime())/864e5|0,A$1[e$5+36>>2>>>0]=-60*t$2.getTimezoneOffset();var r$4=new Date(t$2.getFullYear(),6,1).getTimezoneOffset();n$3=n$3.getTimezoneOffset(),A$1[e$5+32>>2>>>0]=0|(r$4!=n$3&&t$2.getTimezoneOffset()==Math.min(n$3,r$4))},Fa:function(t$2){var e$5=new Date(A$1[t$2+20>>2>>>0]+1900,A$1[t$2+16>>2>>>0],A$1[t$2+12>>2>>>0],A$1[t$2+8>>2>>>0],A$1[t$2+4>>2>>>0],A$1[t$2>>2>>>0],0),n$3=A$1[t$2+32>>2>>>0],r$4=e$5.getTimezoneOffset(),i$2=new Date(e$5.getFullYear(),0,1),o$2=new Date(e$5.getFullYear(),6,1).getTimezoneOffset(),a$3=i$2.getTimezoneOffset(),s$2=Math.min(a$3,o$2);return 0>n$3?A$1[t$2+32>>2>>>0]=Number(o$2!=a$3&&s$2==r$4):0>2>>>0]=e$5.getDay(),A$1[t$2+28>>2>>>0]=(e$5.getTime()-i$2.getTime())/864e5|0,A$1[t$2>>2>>>0]=e$5.getSeconds(),A$1[t$2+4>>2>>>0]=e$5.getMinutes(),A$1[t$2+8>>2>>>0]=e$5.getHours(),A$1[t$2+12>>2>>>0]=e$5.getDate(),A$1[t$2+16>>2>>>0]=e$5.getMonth(),e$5.getTime()/1e3|0},sa:function(){return-52},ta:function(){},Ga:function t$2(e$5,n$3,r$4){t$2.Vb||(t$2.Vb=!0,function(t$3,e$6,n$4){function r$5(t$4){return(t$4=t$4.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t$4[1]:`GMT`}var i$2=new Date().getFullYear(),o$2=new Date(i$2,0,1),a$3=new Date(i$2,6,1);i$2=o$2.getTimezoneOffset();var s$2=a$3.getTimezoneOffset();A$1[t$3>>2>>>0]=60*Math.max(i$2,s$2),A$1[e$6>>2>>>0]=Number(i$2!=s$2),t$3=r$5(o$2),e$6=r$5(a$3),t$3=ot$1(t$3),e$6=ot$1(e$6),s$2>2>>>0]=t$3,E$2[n$4+4>>2>>>0]=e$6):(E$2[n$4>>2>>>0]=e$6,E$2[n$4+4>>2>>>0]=t$3)}(e$5,n$3,r$4))},B:function(){W$1(``)},ma:function(){return 4294901760},I:b$3?()=>{var t$2=process.hrtime();return 1e3*t$2[0]+t$2[1]/1e6}:()=>performance.now(),xa:function(t$2,e$5,n$3){O$1.copyWithin(t$2>>>0,e$5>>>0,e$5+n$3>>>0)},G:function(t$2){var e$5=O$1.length;if(4294901760<(t$2>>>=0))return!1;for(var n$3=1;4>=n$3;n$3*=2){var r$4=e$5*(1+.2/n$3);r$4=Math.min(r$4,t$2+100663296);var i$2=Math;r$4=Math.max(t$2,r$4),i$2=i$2.min.call(i$2,4294901760,r$4+(65536-r$4%65536)%65536);t:{try{x$3.grow(i$2-T$1.byteLength+65535>>>16),F$2();var o$2=1;break t}catch{}o$2=void 0}if(o$2)return!0}return!1},va:function(t$2,e$5){var n$3=0;return st$1().forEach(function(r$4,i$2){var o$2=e$5+n$3;for(i$2=E$2[t$2+4*i$2>>2>>>0]=o$2,o$2=0;o$2>0>>>0]=r$4.charCodeAt(o$2);S$2[i$2>>0>>>0]=0,n$3+=r$4.length+1}),0},wa:function(t$2,e$5){var n$3=st$1();E$2[t$2>>2>>>0]=n$3.length;var r$4=0;return n$3.forEach(function(t$3){r$4+=t$3.length+1}),E$2[e$5>>2>>>0]=r$4,0},ba:function(t$2){w$1||0>2>>>0],s$2=E$2[e$5+4>>2>>>0];e$5+=8;for(var u$2=0;u$2>>0]);i$2+=s$2}return E$2[r$4>>2>>>0]=i$2,0},c:function(){return pt$1},ja:function t$2(e$5,r$4){t$2.Mb||=function(){if(typeof crypto==`object`&&typeof crypto.getRandomValues==`function`){var t$3=new Uint8Array(1);return()=>(crypto.getRandomValues(t$3),t$3[0])}if(b$3)try{var e$6=n$2(Object(function(){var t$4=Error(`Cannot find module 'crypto'`);throw t$4.code=`MODULE_NOT_FOUND`,t$4}()));return()=>e$6.randomBytes(1)[0]}catch{}return()=>W$1(`randomDevice`)}();for(var i$2=0;i$2>0>>>0]=t$2.Mb();return 0},ea:function(t$2,e$5,n$3){var r$4=Tt$2();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},fa:function(t$2,e$5,n$3){var r$4=Tt$2();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},J:function(t$2){var e$5=Tt$2();try{return it$1(t$2)()}catch(t$3){if(St$2(e$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},e:function(t$2,e$5){var n$3=Tt$2();try{return it$1(t$2)(e$5)}catch(t$3){if(St$2(n$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},N:function(t$2,e$5,n$3){var r$4=Tt$2();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},O:function(t$2,e$5,n$3){var r$4=Tt$2();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},j:function(t$2,e$5,n$3){var r$4=Tt$2();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},o:function(t$2,e$5,n$3,r$4){var i$2=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4)}catch(t$3){if(St$2(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},p:function(t$2,e$5,n$3,r$4,i$2){var o$2=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(St$2(o$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},M:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$2(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},r:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$2(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},v:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(St$2(s$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},K:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$2(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},D:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Tt$2();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(St$2(f$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},X:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$2();try{return Lt$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$2(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},V:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Tt$2();try{return Pt$2(t$2,e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(St$2(s$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},U:function(t$2,e$5,n$3,r$4,i$2){var o$2=Tt$2();try{return Rt$1(t$2,e$5,n$3,r$4,i$2)}catch(t$3){if(St$2(o$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},Z:function(t$2,e$5,n$3,r$4){var i$2=Tt$2();try{return Ft$1(t$2,e$5,n$3,r$4)}catch(t$3){if(St$2(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},W:function(t$2){var e$5=Tt$2();try{return It$1(t$2)}catch(t$3){if(St$2(e$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},Y:function(t$2,e$5){var n$3=Tt$2();try{return Nt(t$2,e$5)}catch(t$3){if(St$2(n$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},T:function(t$2,e$5,n$3){var r$4=Tt$2();try{return Dt$1(t$2,e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},f:function(t$2){var e$5=Tt$2();try{it$1(t$2)()}catch(t$3){if(St$2(e$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},q:function(t$2,e$5){var n$3=Tt$2();try{it$1(t$2)(e$5)}catch(t$3){if(St$2(n$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},h:function(t$2,e$5,n$3){var r$4=Tt$2();try{it$1(t$2)(e$5,n$3)}catch(t$3){if(St$2(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},da:function(t$2,e$5,n$3,r$4){var i$2=Tt$2();try{it$1(t$2)(e$5,n$3,r$4)}catch(t$3){if(St$2(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},l:function(t$2,e$5,n$3,r$4){var i$2=Tt$2();try{it$1(t$2)(e$5,n$3,r$4)}catch(t$3){if(St$2(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},t:function(t$2,e$5,n$3,r$4,i$2){var o$2=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(St$2(o$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},u:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$2(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},x:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(St$2(s$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},z:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$2(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},ga:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2){var c$5=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2)}catch(t$3){if(St$2(c$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},A:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2){var p$6=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2)}catch(t$3){if(St$2(p$6),t$3!==t$3+0)throw t$3;xt$1(1,0)}},C:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3){var b$4=Tt$2();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3)}catch(t$3){if(St$2(b$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},aa:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$2();try{$t$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$2(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},_:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Tt$2();try{Ct$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(St$2(f$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},$:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$2();try{kt$1(t$2,e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$2(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},n:function(t$2){return t$2},F:function(t$2){pt$1=t$2},ha:gt$2,y:function(t$2,e$5,n$3,r$4){return gt$2(t$2,e$5,n$3,r$4)}};(function(){function t$2(t$3){e$4.asm=t$3.exports,x$3=e$4.asm.Ka,F$2(),N$1=e$4.asm.ib,R$1.unshift(e$4.asm.La),z$2--,e$4.monitorRunDependencies&&e$4.monitorRunDependencies(z$2),z$2==0&&(G$1!==null&&(clearInterval(G$1),G$1=null),H$2&&(t$3=H$2,H$2=null,t$3()))}function n$3(e$5){t$2(e$5.instance)}function r$4(t$3){return function(){if(!y$2&&(h$3||g$2)){if(typeof fetch==`function`&&!B$2.startsWith(`file://`))return fetch(B$2,{credentials:`same-origin`}).then(function(t$4){if(!t$4.ok)throw`failed to load wasm binary file at '`+B$2+`'`;return t$4.arrayBuffer()}).catch(function(){return Y$2()});if(a$2)return new Promise(function(t$4,e$5){a$2(B$2,function(e$6){t$4(new Uint8Array(e$6))},e$5)})}return Promise.resolve().then(function(){return Y$2()})}().then(function(t$4){return WebAssembly.instantiate(t$4,o$2)}).then(function(t$4){return t$4}).then(t$3,function(t$4){v$1(`failed to asynchronously prepare wasm: `+t$4),W$1(t$4)})}var o$2={a:bt$2};if(z$2++,e$4.monitorRunDependencies&&e$4.monitorRunDependencies(z$2),e$4.instantiateWasm)try{return e$4.instantiateWasm(o$2,t$2)}catch(t$3){return v$1(`Module.instantiateWasm callback failed with error: `+t$3),!1}(y$2||typeof WebAssembly.instantiateStreaming!=`function`||q$1()||B$2.startsWith(`file://`)||b$3||typeof fetch!=`function`?r$4(n$3):fetch(B$2,{credentials:`same-origin`}).then(function(t$3){return WebAssembly.instantiateStreaming(t$3,o$2).then(n$3,function(t$4){return v$1(`wasm streaming compile failed: `+t$4),v$1(`falling back to ArrayBuffer instantiation`),r$4(n$3)})})).catch(i$1)})(),e$4.___wasm_call_ctors=function(){return(e$4.___wasm_call_ctors=e$4.asm.La).apply(null,arguments)},e$4._OrtInit=function(){return(e$4._OrtInit=e$4.asm.Ma).apply(null,arguments)},e$4._OrtCreateSessionOptions=function(){return(e$4._OrtCreateSessionOptions=e$4.asm.Na).apply(null,arguments)},e$4._OrtAppendExecutionProvider=function(){return(e$4._OrtAppendExecutionProvider=e$4.asm.Oa).apply(null,arguments)},e$4._OrtAddSessionConfigEntry=function(){return(e$4._OrtAddSessionConfigEntry=e$4.asm.Pa).apply(null,arguments)},e$4._OrtReleaseSessionOptions=function(){return(e$4._OrtReleaseSessionOptions=e$4.asm.Qa).apply(null,arguments)},e$4._OrtCreateSession=function(){return(e$4._OrtCreateSession=e$4.asm.Ra).apply(null,arguments)},e$4._OrtReleaseSession=function(){return(e$4._OrtReleaseSession=e$4.asm.Sa).apply(null,arguments)},e$4._OrtGetInputCount=function(){return(e$4._OrtGetInputCount=e$4.asm.Ta).apply(null,arguments)},e$4._OrtGetOutputCount=function(){return(e$4._OrtGetOutputCount=e$4.asm.Ua).apply(null,arguments)},e$4._OrtGetInputName=function(){return(e$4._OrtGetInputName=e$4.asm.Va).apply(null,arguments)},e$4._OrtGetOutputName=function(){return(e$4._OrtGetOutputName=e$4.asm.Wa).apply(null,arguments)},e$4._OrtFree=function(){return(e$4._OrtFree=e$4.asm.Xa).apply(null,arguments)},e$4._OrtCreateTensor=function(){return(e$4._OrtCreateTensor=e$4.asm.Ya).apply(null,arguments)},e$4._OrtGetTensorData=function(){return(e$4._OrtGetTensorData=e$4.asm.Za).apply(null,arguments)},e$4._OrtReleaseTensor=function(){return(e$4._OrtReleaseTensor=e$4.asm._a).apply(null,arguments)},e$4._OrtCreateRunOptions=function(){return(e$4._OrtCreateRunOptions=e$4.asm.$a).apply(null,arguments)},e$4._OrtAddRunConfigEntry=function(){return(e$4._OrtAddRunConfigEntry=e$4.asm.ab).apply(null,arguments)},e$4._OrtReleaseRunOptions=function(){return(e$4._OrtReleaseRunOptions=e$4.asm.bb).apply(null,arguments)},e$4._OrtRun=function(){return(e$4._OrtRun=e$4.asm.cb).apply(null,arguments)},e$4._OrtEndProfiling=function(){return(e$4._OrtEndProfiling=e$4.asm.db).apply(null,arguments)};var mt$2,yt$2=e$4._malloc=function(){return(yt$2=e$4._malloc=e$4.asm.eb).apply(null,arguments)},_t$2=e$4._free=function(){return(_t$2=e$4._free=e$4.asm.fb).apply(null,arguments)},vt$2=e$4._fflush=function(){return(vt$2=e$4._fflush=e$4.asm.gb).apply(null,arguments)},wt$2=e$4.___funcs_on_exit=function(){return(wt$2=e$4.___funcs_on_exit=e$4.asm.hb).apply(null,arguments)},xt$1=e$4._setThrew=function(){return(xt$1=e$4._setThrew=e$4.asm.jb).apply(null,arguments)},Tt$2=e$4.stackSave=function(){return(Tt$2=e$4.stackSave=e$4.asm.kb).apply(null,arguments)},St$2=e$4.stackRestore=function(){return(St$2=e$4.stackRestore=e$4.asm.lb).apply(null,arguments)},Ot$1=e$4.stackAlloc=function(){return(Ot$1=e$4.stackAlloc=e$4.asm.mb).apply(null,arguments)},At$1=e$4.___cxa_can_catch=function(){return(At$1=e$4.___cxa_can_catch=e$4.asm.nb).apply(null,arguments)},Et$2=e$4.___cxa_is_pointer_type=function(){return(Et$2=e$4.___cxa_is_pointer_type=e$4.asm.ob).apply(null,arguments)},It$1=e$4.dynCall_j=function(){return(It$1=e$4.dynCall_j=e$4.asm.pb).apply(null,arguments)},Pt$2=e$4.dynCall_iiiiij=function(){return(Pt$2=e$4.dynCall_iiiiij=e$4.asm.qb).apply(null,arguments)},Dt$1=e$4.dynCall_jii=function(){return(Dt$1=e$4.dynCall_jii=e$4.asm.rb).apply(null,arguments)},$t$1=e$4.dynCall_viiiiij=function(){return($t$1=e$4.dynCall_viiiiij=e$4.asm.sb).apply(null,arguments)},kt$1=e$4.dynCall_vjji=function(){return(kt$1=e$4.dynCall_vjji=e$4.asm.tb).apply(null,arguments)},Ct$1=e$4.dynCall_viiijjjii=function(){return(Ct$1=e$4.dynCall_viiijjjii=e$4.asm.ub).apply(null,arguments)},Ft$1=e$4.dynCall_iij=function(){return(Ft$1=e$4.dynCall_iij=e$4.asm.vb).apply(null,arguments)},Nt=e$4.dynCall_ji=function(){return(Nt=e$4.dynCall_ji=e$4.asm.wb).apply(null,arguments)},Lt$1=e$4.dynCall_iiiiiij=function(){return(Lt$1=e$4.dynCall_iiiiiij=e$4.asm.xb).apply(null,arguments)},Rt$1=e$4.dynCall_iiij=function(){return(Rt$1=e$4.dynCall_iiij=e$4.asm.yb).apply(null,arguments)};function jt$1(){function t$2(){if(!mt$2&&(mt$2=!0,e$4.calledRun=!0,!I)){if(Z$1(R$1),r$3(e$4),e$4.onRuntimeInitialized&&e$4.onRuntimeInitialized(),e$4.postRun)for(typeof e$4.postRun==`function`&&(e$4.postRun=[e$4.postRun]);e$4.postRun.length;){var t$3=e$4.postRun.shift();M$1.unshift(t$3)}Z$1(M$1)}}if(!(0{"use strict";t.exports=function(t$1,e$3){for(var n$2=Array(arguments.length-1),r$2=0,i$1=2,o$1=!0;i$1{"use strict";var n$2=e$3;n$2.length=function(t$1){var e$4=t$1.length;if(!e$4)return 0;for(var n$3=0;--e$4%4>1&&t$1.charAt(e$4)===`=`;)++n$3;return Math.ceil(3*t$1.length)/4-n$3};for(var r$2=Array(64),i$1=Array(123),o$1=0;o$1<64;)i$1[r$2[o$1]=o$1<26?o$1+65:o$1<52?o$1+71:o$1<62?o$1-4:o$1-59|43]=o$1++;n$2.encode=function(t$1,e$4,n$3){for(var i$2,o$2=null,a$3=[],s$1=0,u$1=0;e$4>2],i$2=(3&c$4)<<4,u$1=1;break;case 1:a$3[s$1++]=r$2[i$2|c$4>>4],i$2=(15&c$4)<<2,u$1=2;break;case 2:a$3[s$1++]=r$2[i$2|c$4>>6],a$3[s$1++]=r$2[63&c$4],u$1=0}s$1>8191&&((o$2||=[]).push(String.fromCharCode.apply(String,a$3)),s$1=0)}return u$1&&(a$3[s$1++]=r$2[i$2],a$3[s$1++]=61,u$1===1&&(a$3[s$1++]=61)),o$2?(s$1&&o$2.push(String.fromCharCode.apply(String,a$3.slice(0,s$1))),o$2.join(``)):String.fromCharCode.apply(String,a$3.slice(0,s$1))};var a$2=`invalid encoding`;n$2.decode=function(t$1,e$4,n$3){for(var r$3,o$2=n$3,s$1=0,u$1=0;u$11)break;if((c$4=i$1[c$4])===void 0)throw Error(a$2);switch(s$1){case 0:r$3=c$4,s$1=1;break;case 1:e$4[n$3++]=r$3<<2|(48&c$4)>>4,r$3=c$4,s$1=2;break;case 2:e$4[n$3++]=(15&r$3)<<4|(60&c$4)>>2,r$3=c$4,s$1=3;break;case 3:e$4[n$3++]=(3&r$3)<<6|c$4,s$1=0}}if(s$1===1)throw Error(a$2);return n$3-o$2},n$2.test=function(t$1){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t$1)}},9211:t=>{"use strict";function e$3(){this._listeners={}}t.exports=e$3,e$3.prototype.on=function(t$1,e$4,n$2){return(this._listeners[t$1]||(this._listeners[t$1]=[])).push({fn:e$4,ctx:n$2||this}),this},e$3.prototype.off=function(t$1,e$4){if(t$1===void 0)this._listeners={};else if(e$4===void 0)this._listeners[t$1]=[];else for(var n$2=this._listeners[t$1],r$2=0;r$2{"use strict";function e$3(t$1){return typeof Float32Array<`u`?function(){var e$4=new Float32Array([-0]),n$3=new Uint8Array(e$4.buffer),r$3=n$3[3]===128;function i$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[0],r$4[i$3+1]=n$3[1],r$4[i$3+2]=n$3[2],r$4[i$3+3]=n$3[3]}function o$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[3],r$4[i$3+1]=n$3[2],r$4[i$3+2]=n$3[1],r$4[i$3+3]=n$3[0]}function a$2(t$2,r$4){return n$3[0]=t$2[r$4],n$3[1]=t$2[r$4+1],n$3[2]=t$2[r$4+2],n$3[3]=t$2[r$4+3],e$4[0]}function s$1(t$2,r$4){return n$3[3]=t$2[r$4],n$3[2]=t$2[r$4+1],n$3[1]=t$2[r$4+2],n$3[0]=t$2[r$4+3],e$4[0]}t$1.writeFloatLE=r$3?i$2:o$2,t$1.writeFloatBE=r$3?o$2:i$2,t$1.readFloatLE=r$3?a$2:s$1,t$1.readFloatBE=r$3?s$1:a$2}():function(){function e$4(t$2,e$5,n$3,r$3){var i$2=e$5<0?1:0;if(i$2&&(e$5=-e$5),e$5===0)t$2(1/e$5>0?0:2147483648,n$3,r$3);else if(isNaN(e$5))t$2(2143289344,n$3,r$3);else if(e$5>34028234663852886e22)t$2((i$2<<31|2139095040)>>>0,n$3,r$3);else if(e$5<11754943508222875e-54)t$2((i$2<<31|Math.round(e$5/1401298464324817e-60))>>>0,n$3,r$3);else{var o$2=Math.floor(Math.log(e$5)/Math.LN2);t$2((i$2<<31|o$2+127<<23|8388607&Math.round(e$5*2**-o$2*8388608))>>>0,n$3,r$3)}}function a$2(t$2,e$5,n$3){var r$3=t$2(e$5,n$3),i$2=2*(r$3>>31)+1,o$2=r$3>>>23&255,a$3=8388607&r$3;return o$2===255?a$3?NaN:i$2*(1/0):o$2===0?1401298464324817e-60*i$2*a$3:i$2*2**(o$2-150)*(a$3+8388608)}t$1.writeFloatLE=e$4.bind(null,n$2),t$1.writeFloatBE=e$4.bind(null,r$2),t$1.readFloatLE=a$2.bind(null,i$1),t$1.readFloatBE=a$2.bind(null,o$1)}(),typeof Float64Array<`u`?function(){var e$4=new Float64Array([-0]),n$3=new Uint8Array(e$4.buffer),r$3=n$3[7]===128;function i$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[0],r$4[i$3+1]=n$3[1],r$4[i$3+2]=n$3[2],r$4[i$3+3]=n$3[3],r$4[i$3+4]=n$3[4],r$4[i$3+5]=n$3[5],r$4[i$3+6]=n$3[6],r$4[i$3+7]=n$3[7]}function o$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[7],r$4[i$3+1]=n$3[6],r$4[i$3+2]=n$3[5],r$4[i$3+3]=n$3[4],r$4[i$3+4]=n$3[3],r$4[i$3+5]=n$3[2],r$4[i$3+6]=n$3[1],r$4[i$3+7]=n$3[0]}function a$2(t$2,r$4){return n$3[0]=t$2[r$4],n$3[1]=t$2[r$4+1],n$3[2]=t$2[r$4+2],n$3[3]=t$2[r$4+3],n$3[4]=t$2[r$4+4],n$3[5]=t$2[r$4+5],n$3[6]=t$2[r$4+6],n$3[7]=t$2[r$4+7],e$4[0]}function s$1(t$2,r$4){return n$3[7]=t$2[r$4],n$3[6]=t$2[r$4+1],n$3[5]=t$2[r$4+2],n$3[4]=t$2[r$4+3],n$3[3]=t$2[r$4+4],n$3[2]=t$2[r$4+5],n$3[1]=t$2[r$4+6],n$3[0]=t$2[r$4+7],e$4[0]}t$1.writeDoubleLE=r$3?i$2:o$2,t$1.writeDoubleBE=r$3?o$2:i$2,t$1.readDoubleLE=r$3?a$2:s$1,t$1.readDoubleBE=r$3?s$1:a$2}():function(){function e$4(t$2,e$5,n$3,r$3,i$2,o$2){var a$3=r$3<0?1:0;if(a$3&&(r$3=-r$3),r$3===0)t$2(0,i$2,o$2+e$5),t$2(1/r$3>0?0:2147483648,i$2,o$2+n$3);else if(isNaN(r$3))t$2(0,i$2,o$2+e$5),t$2(2146959360,i$2,o$2+n$3);else if(r$3>17976931348623157e292)t$2(0,i$2,o$2+e$5),t$2((a$3<<31|2146435072)>>>0,i$2,o$2+n$3);else{var s$1;if(r$3<22250738585072014e-324)t$2((s$1=r$3/5e-324)>>>0,i$2,o$2+e$5),t$2((a$3<<31|s$1/4294967296)>>>0,i$2,o$2+n$3);else{var u$1=Math.floor(Math.log(r$3)/Math.LN2);u$1===1024&&(u$1=1023),t$2(4503599627370496*(s$1=r$3*2**-u$1)>>>0,i$2,o$2+e$5),t$2((a$3<<31|u$1+1023<<20|1048576*s$1&1048575)>>>0,i$2,o$2+n$3)}}}function a$2(t$2,e$5,n$3,r$3,i$2){var o$2=t$2(r$3,i$2+e$5),a$3=t$2(r$3,i$2+n$3),s$1=2*(a$3>>31)+1,u$1=a$3>>>20&2047,c$4=4294967296*(1048575&a$3)+o$2;return u$1===2047?c$4?NaN:s$1*(1/0):u$1===0?5e-324*s$1*c$4:s$1*2**(u$1-1075)*(c$4+4503599627370496)}t$1.writeDoubleLE=e$4.bind(null,n$2,0,4),t$1.writeDoubleBE=e$4.bind(null,r$2,4,0),t$1.readDoubleLE=a$2.bind(null,i$1,0,4),t$1.readDoubleBE=a$2.bind(null,o$1,4,0)}(),t$1}function n$2(t$1,e$4,n$3){e$4[n$3]=255&t$1,e$4[n$3+1]=t$1>>>8&255,e$4[n$3+2]=t$1>>>16&255,e$4[n$3+3]=t$1>>>24}function r$2(t$1,e$4,n$3){e$4[n$3]=t$1>>>24,e$4[n$3+1]=t$1>>>16&255,e$4[n$3+2]=t$1>>>8&255,e$4[n$3+3]=255&t$1}function i$1(t$1,e$4){return(t$1[e$4]|t$1[e$4+1]<<8|t$1[e$4+2]<<16|t$1[e$4+3]<<24)>>>0}function o$1(t$1,e$4){return(t$1[e$4]<<24|t$1[e$4+1]<<16|t$1[e$4+2]<<8|t$1[e$4+3])>>>0}t.exports=e$3(e$3)},7199:module$1=>{"use strict";function inquire(moduleName){try{var mod=eval(`quire`.replace(/^/,`re`))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch{}return null}module$1.exports=inquire},6662:t=>{"use strict";t.exports=function(t$1,e$3,n$2){var r$2=n$2||8192,i$1=r$2>>>1,o$1=null,a$2=r$2;return function(n$3){if(n$3<1||n$3>i$1)return t$1(n$3);a$2+n$3>r$2&&(o$1=t$1(r$2),a$2=0);var s$1=e$3.call(o$1,a$2,a$2+=n$3);return 7&a$2&&(a$2=1+(7|a$2)),s$1}}},4997:(t,e$3)=>{"use strict";var n$2=e$3;n$2.length=function(t$1){for(var e$4=0,n$3=0,r$2=0;r$2191&&r$2<224?o$1[a$2++]=(31&r$2)<<6|63&t$1[e$4++]:r$2>239&&r$2<365?(r$2=((7&r$2)<<18|(63&t$1[e$4++])<<12|(63&t$1[e$4++])<<6|63&t$1[e$4++])-65536,o$1[a$2++]=55296+(r$2>>10),o$1[a$2++]=56320+(1023&r$2)):o$1[a$2++]=(15&r$2)<<12|(63&t$1[e$4++])<<6|63&t$1[e$4++],a$2>8191&&((i$1||=[]).push(String.fromCharCode.apply(String,o$1)),a$2=0);return i$1?(a$2&&i$1.push(String.fromCharCode.apply(String,o$1.slice(0,a$2))),i$1.join(``)):String.fromCharCode.apply(String,o$1.slice(0,a$2))},n$2.write=function(t$1,e$4,n$3){for(var r$2,i$1,o$1=n$3,a$2=0;a$2>6|192,e$4[n$3++]=63&r$2|128):(64512&r$2)==55296&&(64512&(i$1=t$1.charCodeAt(a$2+1)))==56320?(r$2=65536+((1023&r$2)<<10)+(1023&i$1),++a$2,e$4[n$3++]=r$2>>18|240,e$4[n$3++]=r$2>>12&63|128,e$4[n$3++]=r$2>>6&63|128,e$4[n$3++]=63&r$2|128):(e$4[n$3++]=r$2>>12|224,e$4[n$3++]=r$2>>6&63|128,e$4[n$3++]=63&r$2|128);return n$3-o$1}},3442:(t,e$3)=>{"use strict";e$3.__esModule=!0;var n$2=function(){function t$1(e$4){if(!e$4)throw TypeError("Invalid argument; `value` has no value.");this.value=t$1.EMPTY,e$4&&t$1.isGuid(e$4)&&(this.value=e$4)}return t$1.isGuid=function(e$4){var n$3=e$4.toString();return e$4&&(e$4 instanceof t$1||t$1.validator.test(n$3))},t$1.create=function(){return new t$1([t$1.gen(2),t$1.gen(1),t$1.gen(1),t$1.gen(1),t$1.gen(3)].join(`-`))},t$1.createEmpty=function(){return new t$1(`emptyguid`)},t$1.parse=function(e$4){return new t$1(e$4)},t$1.raw=function(){return[t$1.gen(2),t$1.gen(1),t$1.gen(1),t$1.gen(1),t$1.gen(3)].join(`-`)},t$1.gen=function(t$2){for(var e$4=``,n$3=0;n$3{t.exports=n$2;var e$3=null;try{e$3=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function n$2(t$1,e$4,n$3){this.low=0|t$1,this.high=0|e$4,this.unsigned=!!n$3}function r$2(t$1){return!0===(t$1&&t$1.__isLong__)}n$2.prototype.__isLong__,Object.defineProperty(n$2.prototype,`__isLong__`,{value:!0}),n$2.isLong=r$2;var i$1={},o$1={};function a$2(t$1,e$4){var n$3,r$3,a$3;return e$4?(a$3=0<=(t$1>>>=0)&&t$1<256)&&(r$3=o$1[t$1])?r$3:(n$3=u$1(t$1,(0|t$1)<0?-1:0,!0),a$3&&(o$1[t$1]=n$3),n$3):(a$3=-128<=(t$1|=0)&&t$1<128)&&(r$3=i$1[t$1])?r$3:(n$3=u$1(t$1,t$1<0?-1:0,!1),a$3&&(i$1[t$1]=n$3),n$3)}function s$1(t$1,e$4){if(isNaN(t$1))return e$4?m$2:b$3;if(e$4){if(t$1<0)return m$2;if(t$1>=d$2)return x$3}else{if(t$1<=-h$3)return T$1;if(t$1+1>=h$3)return w$1}return t$1<0?s$1(-t$1,e$4).neg():u$1(t$1%f$3|0,t$1/f$3|0,e$4)}function u$1(t$1,e$4,r$3){return new n$2(t$1,e$4,r$3)}n$2.fromInt=a$2,n$2.fromNumber=s$1,n$2.fromBits=u$1;var c$4=Math.pow;function l$1(t$1,e$4,n$3){if(t$1.length===0)throw Error(`empty string`);if(t$1===`NaN`||t$1===`Infinity`||t$1===`+Infinity`||t$1===`-Infinity`)return b$3;if(typeof e$4==`number`?(n$3=e$4,e$4=!1):e$4=!!e$4,(n$3||=10)<2||360)throw Error(`interior hyphen`);if(r$3===0)return l$1(t$1.substring(1),e$4,n$3).neg();for(var i$2=s$1(c$4(n$3,8)),o$2=b$3,a$3=0;a$3>>0:this.low},S$2.toNumber=function(){return this.unsigned?(this.high>>>0)*f$3+(this.low>>>0):this.high*f$3+(this.low>>>0)},S$2.toString=function(t$1){if((t$1||=10)<2||36>>0).toString(t$1);if((o$2=u$2).isZero())return l$2+a$3;for(;l$2.length<6;)l$2=`0`+l$2;a$3=``+l$2+a$3}},S$2.getHighBits=function(){return this.high},S$2.getHighBitsUnsigned=function(){return this.high>>>0},S$2.getLowBits=function(){return this.low},S$2.getLowBitsUnsigned=function(){return this.low>>>0},S$2.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T$1)?64:this.neg().getNumBitsAbs();for(var t$1=this.high==0?this.low:this.high,e$4=31;e$4>0&&!(t$1&1<=0},S$2.isOdd=function(){return(1&this.low)==1},S$2.isEven=function(){return(1&this.low)==0},S$2.equals=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),(this.unsigned===t$1.unsigned||this.high>>>31!=1||t$1.high>>>31!=1)&&this.high===t$1.high&&this.low===t$1.low},S$2.eq=S$2.equals,S$2.notEquals=function(t$1){return!this.eq(t$1)},S$2.neq=S$2.notEquals,S$2.ne=S$2.notEquals,S$2.lessThan=function(t$1){return this.comp(t$1)<0},S$2.lt=S$2.lessThan,S$2.lessThanOrEqual=function(t$1){return this.comp(t$1)<=0},S$2.lte=S$2.lessThanOrEqual,S$2.le=S$2.lessThanOrEqual,S$2.greaterThan=function(t$1){return this.comp(t$1)>0},S$2.gt=S$2.greaterThan,S$2.greaterThanOrEqual=function(t$1){return this.comp(t$1)>=0},S$2.gte=S$2.greaterThanOrEqual,S$2.ge=S$2.greaterThanOrEqual,S$2.compare=function(t$1){if(r$2(t$1)||(t$1=p$5(t$1)),this.eq(t$1))return 0;var e$4=this.isNegative(),n$3=t$1.isNegative();return e$4&&!n$3?-1:!e$4&&n$3?1:this.unsigned?t$1.high>>>0>this.high>>>0||t$1.high===this.high&&t$1.low>>>0>this.low>>>0?-1:1:this.sub(t$1).isNegative()?-1:1},S$2.comp=S$2.compare,S$2.negate=function(){return!this.unsigned&&this.eq(T$1)?T$1:this.not().add(y$2)},S$2.neg=S$2.negate,S$2.add=function(t$1){r$2(t$1)||(t$1=p$5(t$1));var e$4=this.high>>>16,n$3=65535&this.high,i$2=this.low>>>16,o$2=65535&this.low,a$3=t$1.high>>>16,s$2=65535&t$1.high,c$5=t$1.low>>>16,l$2=0,f$4=0,d$3=0,h$4=0;return d$3+=(h$4+=o$2+(65535&t$1.low))>>>16,f$4+=(d$3+=i$2+c$5)>>>16,l$2+=(f$4+=n$3+s$2)>>>16,l$2+=e$4+a$3,u$1((d$3&=65535)<<16|(h$4&=65535),(l$2&=65535)<<16|(f$4&=65535),this.unsigned)},S$2.subtract=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),this.add(t$1.neg())},S$2.sub=S$2.subtract,S$2.multiply=function(t$1){if(this.isZero())return b$3;if(r$2(t$1)||(t$1=p$5(t$1)),e$3)return u$1(e$3.mul(this.low,this.high,t$1.low,t$1.high),e$3.get_high(),this.unsigned);if(t$1.isZero())return b$3;if(this.eq(T$1))return t$1.isOdd()?T$1:b$3;if(t$1.eq(T$1))return this.isOdd()?T$1:b$3;if(this.isNegative())return t$1.isNegative()?this.neg().mul(t$1.neg()):this.neg().mul(t$1).neg();if(t$1.isNegative())return this.mul(t$1.neg()).neg();if(this.lt(g$2)&&t$1.lt(g$2))return s$1(this.toNumber()*t$1.toNumber(),this.unsigned);var n$3=this.high>>>16,i$2=65535&this.high,o$2=this.low>>>16,a$3=65535&this.low,c$5=t$1.high>>>16,l$2=65535&t$1.high,f$4=t$1.low>>>16,d$3=65535&t$1.low,h$4=0,m$3=0,y$3=0,_$2=0;return y$3+=(_$2+=a$3*d$3)>>>16,m$3+=(y$3+=o$2*d$3)>>>16,y$3&=65535,m$3+=(y$3+=a$3*f$4)>>>16,h$4+=(m$3+=i$2*d$3)>>>16,m$3&=65535,h$4+=(m$3+=o$2*f$4)>>>16,m$3&=65535,h$4+=(m$3+=a$3*l$2)>>>16,h$4+=n$3*d$3+i$2*f$4+o$2*l$2+a$3*c$5,u$1((y$3&=65535)<<16|(_$2&=65535),(h$4&=65535)<<16|(m$3&=65535),this.unsigned)},S$2.mul=S$2.multiply,S$2.divide=function(t$1){if(r$2(t$1)||(t$1=p$5(t$1)),t$1.isZero())throw Error(`division by zero`);var n$3,i$2,o$2;if(e$3)return this.unsigned||this.high!==-2147483648||t$1.low!==-1||t$1.high!==-1?u$1((this.unsigned?e$3.div_u:e$3.div_s)(this.low,this.high,t$1.low,t$1.high),e$3.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?m$2:b$3;if(this.unsigned){if(t$1.unsigned||(t$1=t$1.toUnsigned()),t$1.gt(this))return m$2;if(t$1.gt(this.shru(1)))return _$1;o$2=m$2}else{if(this.eq(T$1))return t$1.eq(y$2)||t$1.eq(v$1)?T$1:t$1.eq(T$1)?y$2:(n$3=this.shr(1).div(t$1).shl(1)).eq(b$3)?t$1.isNegative()?y$2:v$1:(i$2=this.sub(t$1.mul(n$3)),o$2=n$3.add(i$2.div(t$1)));if(t$1.eq(T$1))return this.unsigned?m$2:b$3;if(this.isNegative())return t$1.isNegative()?this.neg().div(t$1.neg()):this.neg().div(t$1).neg();if(t$1.isNegative())return this.div(t$1.neg()).neg();o$2=b$3}for(i$2=this;i$2.gte(t$1);){n$3=Math.max(1,Math.floor(i$2.toNumber()/t$1.toNumber()));for(var a$3=Math.ceil(Math.log(n$3)/Math.LN2),l$2=a$3<=48?1:c$4(2,a$3-48),f$4=s$1(n$3),d$3=f$4.mul(t$1);d$3.isNegative()||d$3.gt(i$2);)d$3=(f$4=s$1(n$3-=l$2,this.unsigned)).mul(t$1);f$4.isZero()&&(f$4=y$2),o$2=o$2.add(f$4),i$2=i$2.sub(d$3)}return o$2},S$2.div=S$2.divide,S$2.modulo=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),e$3?u$1((this.unsigned?e$3.rem_u:e$3.rem_s)(this.low,this.high,t$1.low,t$1.high),e$3.get_high(),this.unsigned):this.sub(this.div(t$1).mul(t$1))},S$2.mod=S$2.modulo,S$2.rem=S$2.modulo,S$2.not=function(){return u$1(~this.low,~this.high,this.unsigned)},S$2.and=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),u$1(this.low&t$1.low,this.high&t$1.high,this.unsigned)},S$2.or=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),u$1(this.low|t$1.low,this.high|t$1.high,this.unsigned)},S$2.xor=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),u$1(this.low^t$1.low,this.high^t$1.high,this.unsigned)},S$2.shiftLeft=function(t$1){return r$2(t$1)&&(t$1=t$1.toInt()),(t$1&=63)==0?this:t$1<32?u$1(this.low<>>32-t$1,this.unsigned):u$1(0,this.low<>>t$1|this.high<<32-t$1,this.high>>t$1,this.unsigned):u$1(this.high>>t$1-32,this.high>=0?0:-1,this.unsigned)},S$2.shr=S$2.shiftRight,S$2.shiftRightUnsigned=function(t$1){if(r$2(t$1)&&(t$1=t$1.toInt()),(t$1&=63)==0)return this;var e$4=this.high;return t$1<32?u$1(this.low>>>t$1|e$4<<32-t$1,e$4>>>t$1,this.unsigned):u$1(t$1===32?e$4:e$4>>>t$1-32,0,this.unsigned)},S$2.shru=S$2.shiftRightUnsigned,S$2.shr_u=S$2.shiftRightUnsigned,S$2.toSigned=function(){return this.unsigned?u$1(this.low,this.high,!1):this},S$2.toUnsigned=function(){return this.unsigned?this:u$1(this.low,this.high,!0)},S$2.toBytes=function(t$1){return t$1?this.toBytesLE():this.toBytesBE()},S$2.toBytesLE=function(){var t$1=this.high,e$4=this.low;return[255&e$4,e$4>>>8&255,e$4>>>16&255,e$4>>>24,255&t$1,t$1>>>8&255,t$1>>>16&255,t$1>>>24]},S$2.toBytesBE=function(){var t$1=this.high,e$4=this.low;return[t$1>>>24,t$1>>>16&255,t$1>>>8&255,255&t$1,e$4>>>24,e$4>>>16&255,e$4>>>8&255,255&e$4]},n$2.fromBytes=function(t$1,e$4,r$3){return r$3?n$2.fromBytesLE(t$1,e$4):n$2.fromBytesBE(t$1,e$4)},n$2.fromBytesLE=function(t$1,e$4){return new n$2(t$1[0]|t$1[1]<<8|t$1[2]<<16|t$1[3]<<24,t$1[4]|t$1[5]<<8|t$1[6]<<16|t$1[7]<<24,e$4)},n$2.fromBytesBE=function(t$1,e$4){return new n$2(t$1[4]<<24|t$1[5]<<16|t$1[6]<<8|t$1[7],t$1[0]<<24|t$1[1]<<16|t$1[2]<<8|t$1[3],e$4)}},1446:(t,e$3,n$2)=>{"use strict";var r$2,i$1,o$1,a$2=n$2(2100),s$1=a$2.Reader,u$1=a$2.Writer,c$4=a$2.util,l$1=a$2.roots.default||(a$2.roots.default={});l$1.onnx=((o$1={}).Version=(r$2={},(i$1=Object.create(r$2))[r$2[0]=`_START_VERSION`]=0,i$1[r$2[1]=`IR_VERSION_2017_10_10`]=1,i$1[r$2[2]=`IR_VERSION_2017_10_30`]=2,i$1[r$2[3]=`IR_VERSION_2017_11_3`]=3,i$1[r$2[4]=`IR_VERSION_2019_1_22`]=4,i$1[r$2[5]=`IR_VERSION`]=5,i$1),o$1.AttributeProto=function(){function t$1(t$2){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.name=t$2.string();break;case 21:r$3.refAttrName=t$2.string();break;case 13:r$3.docString=t$2.string();break;case 20:r$3.type=t$2.int32();break;case 2:r$3.f=t$2.float();break;case 3:r$3.i=t$2.int64();break;case 4:r$3.s=t$2.bytes();break;case 5:r$3.t=l$1.onnx.TensorProto.decode(t$2,t$2.uint32());break;case 6:r$3.g=l$1.onnx.GraphProto.decode(t$2,t$2.uint32());break;case 7:if(r$3.floats&&r$3.floats.length||(r$3.floats=[]),(7&i$2)==2)for(var o$2=t$2.uint32()+t$2.pos;t$2.pos>>0,t$2.i.high>>>0).toNumber())),t$2.s!=null&&(typeof t$2.s==`string`?c$4.base64.decode(t$2.s,e$4.s=c$4.newBuffer(c$4.base64.length(t$2.s)),0):t$2.s.length&&(e$4.s=t$2.s)),t$2.t!=null){if(typeof t$2.t!=`object`)throw TypeError(`.onnx.AttributeProto.t: object expected`);e$4.t=l$1.onnx.TensorProto.fromObject(t$2.t)}if(t$2.g!=null){if(typeof t$2.g!=`object`)throw TypeError(`.onnx.AttributeProto.g: object expected`);e$4.g=l$1.onnx.GraphProto.fromObject(t$2.g)}if(t$2.floats){if(!Array.isArray(t$2.floats))throw TypeError(`.onnx.AttributeProto.floats: array expected`);e$4.floats=[];for(var n$3=0;n$3>>0,t$2.ints[n$3].high>>>0).toNumber())}if(t$2.strings){if(!Array.isArray(t$2.strings))throw TypeError(`.onnx.AttributeProto.strings: array expected`);for(e$4.strings=[],n$3=0;n$3>>0,t$2.i.high>>>0).toNumber():t$2.i),t$2.s!=null&&t$2.hasOwnProperty(`s`)&&(n$3.s=e$4.bytes===String?c$4.base64.encode(t$2.s,0,t$2.s.length):e$4.bytes===Array?Array.prototype.slice.call(t$2.s):t$2.s),t$2.t!=null&&t$2.hasOwnProperty(`t`)&&(n$3.t=l$1.onnx.TensorProto.toObject(t$2.t,e$4)),t$2.g!=null&&t$2.hasOwnProperty(`g`)&&(n$3.g=l$1.onnx.GraphProto.toObject(t$2.g,e$4)),t$2.floats&&t$2.floats.length){n$3.floats=[];for(var i$2=0;i$2>>0,t$2.ints[i$2].high>>>0).toNumber():t$2.ints[i$2];if(t$2.strings&&t$2.strings.length)for(n$3.strings=[],i$2=0;i$2>>3){case 1:r$3.name=t$2.string();break;case 2:r$3.type=l$1.onnx.TypeProto.decode(t$2,t$2.uint32());break;case 3:r$3.docString=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.name!=null&&t$2.hasOwnProperty(`name`)&&!c$4.isString(t$2.name))return`name: string expected`;if(t$2.type!=null&&t$2.hasOwnProperty(`type`)){var e$4=l$1.onnx.TypeProto.verify(t$2.type);if(e$4)return`type.`+e$4}return t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&!c$4.isString(t$2.docString)?`docString: string expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.ValueInfoProto)return t$2;var e$4=new l$1.onnx.ValueInfoProto;if(t$2.name!=null&&(e$4.name=String(t$2.name)),t$2.type!=null){if(typeof t$2.type!=`object`)throw TypeError(`.onnx.ValueInfoProto.type: object expected`);e$4.type=l$1.onnx.TypeProto.fromObject(t$2.type)}return t$2.docString!=null&&(e$4.docString=String(t$2.docString)),e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};return e$4.defaults&&(n$3.name=``,n$3.type=null,n$3.docString=``),t$2.name!=null&&t$2.hasOwnProperty(`name`)&&(n$3.name=t$2.name),t$2.type!=null&&t$2.hasOwnProperty(`type`)&&(n$3.type=l$1.onnx.TypeProto.toObject(t$2.type,e$4)),t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&(n$3.docString=t$2.docString),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1}(),o$1.NodeProto=function(){function t$1(t$2){if(this.input=[],this.output=[],this.attribute=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.input&&r$3.input.length||(r$3.input=[]),r$3.input.push(t$2.string());break;case 2:r$3.output&&r$3.output.length||(r$3.output=[]),r$3.output.push(t$2.string());break;case 3:r$3.name=t$2.string();break;case 4:r$3.opType=t$2.string();break;case 7:r$3.domain=t$2.string();break;case 5:r$3.attribute&&r$3.attribute.length||(r$3.attribute=[]),r$3.attribute.push(l$1.onnx.AttributeProto.decode(t$2,t$2.uint32()));break;case 6:r$3.docString=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.input!=null&&t$2.hasOwnProperty(`input`)){if(!Array.isArray(t$2.input))return`input: array expected`;for(var e$4=0;e$4>>3){case 1:r$3.irVersion=t$2.int64();break;case 8:r$3.opsetImport&&r$3.opsetImport.length||(r$3.opsetImport=[]),r$3.opsetImport.push(l$1.onnx.OperatorSetIdProto.decode(t$2,t$2.uint32()));break;case 2:r$3.producerName=t$2.string();break;case 3:r$3.producerVersion=t$2.string();break;case 4:r$3.domain=t$2.string();break;case 5:r$3.modelVersion=t$2.int64();break;case 6:r$3.docString=t$2.string();break;case 7:r$3.graph=l$1.onnx.GraphProto.decode(t$2,t$2.uint32());break;case 14:r$3.metadataProps&&r$3.metadataProps.length||(r$3.metadataProps=[]),r$3.metadataProps.push(l$1.onnx.StringStringEntryProto.decode(t$2,t$2.uint32()));break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.irVersion!=null&&t$2.hasOwnProperty(`irVersion`)&&!(c$4.isInteger(t$2.irVersion)||t$2.irVersion&&c$4.isInteger(t$2.irVersion.low)&&c$4.isInteger(t$2.irVersion.high)))return`irVersion: integer|Long expected`;if(t$2.opsetImport!=null&&t$2.hasOwnProperty(`opsetImport`)){if(!Array.isArray(t$2.opsetImport))return`opsetImport: array expected`;for(var e$4=0;e$4>>0,t$2.irVersion.high>>>0).toNumber())),t$2.opsetImport){if(!Array.isArray(t$2.opsetImport))throw TypeError(`.onnx.ModelProto.opsetImport: array expected`);e$4.opsetImport=[];for(var n$3=0;n$3>>0,t$2.modelVersion.high>>>0).toNumber())),t$2.docString!=null&&(e$4.docString=String(t$2.docString)),t$2.graph!=null){if(typeof t$2.graph!=`object`)throw TypeError(`.onnx.ModelProto.graph: object expected`);e$4.graph=l$1.onnx.GraphProto.fromObject(t$2.graph)}if(t$2.metadataProps){if(!Array.isArray(t$2.metadataProps))throw TypeError(`.onnx.ModelProto.metadataProps: array expected`);for(e$4.metadataProps=[],n$3=0;n$3>>0,t$2.irVersion.high>>>0).toNumber():t$2.irVersion),t$2.producerName!=null&&t$2.hasOwnProperty(`producerName`)&&(n$3.producerName=t$2.producerName),t$2.producerVersion!=null&&t$2.hasOwnProperty(`producerVersion`)&&(n$3.producerVersion=t$2.producerVersion),t$2.domain!=null&&t$2.hasOwnProperty(`domain`)&&(n$3.domain=t$2.domain),t$2.modelVersion!=null&&t$2.hasOwnProperty(`modelVersion`)&&(typeof t$2.modelVersion==`number`?n$3.modelVersion=e$4.longs===String?String(t$2.modelVersion):t$2.modelVersion:n$3.modelVersion=e$4.longs===String?c$4.Long.prototype.toString.call(t$2.modelVersion):e$4.longs===Number?new c$4.LongBits(t$2.modelVersion.low>>>0,t$2.modelVersion.high>>>0).toNumber():t$2.modelVersion),t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&(n$3.docString=t$2.docString),t$2.graph!=null&&t$2.hasOwnProperty(`graph`)&&(n$3.graph=l$1.onnx.GraphProto.toObject(t$2.graph,e$4)),t$2.opsetImport&&t$2.opsetImport.length){n$3.opsetImport=[];for(var i$2=0;i$2>>3){case 1:r$3.key=t$2.string();break;case 2:r$3.value=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){return typeof t$2!=`object`||!t$2?`object expected`:t$2.key!=null&&t$2.hasOwnProperty(`key`)&&!c$4.isString(t$2.key)?`key: string expected`:t$2.value!=null&&t$2.hasOwnProperty(`value`)&&!c$4.isString(t$2.value)?`value: string expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.StringStringEntryProto)return t$2;var e$4=new l$1.onnx.StringStringEntryProto;return t$2.key!=null&&(e$4.key=String(t$2.key)),t$2.value!=null&&(e$4.value=String(t$2.value)),e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};return e$4.defaults&&(n$3.key=``,n$3.value=``),t$2.key!=null&&t$2.hasOwnProperty(`key`)&&(n$3.key=t$2.key),t$2.value!=null&&t$2.hasOwnProperty(`value`)&&(n$3.value=t$2.value),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1}(),o$1.TensorAnnotation=function(){function t$1(t$2){if(this.quantParameterTensorNames=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.tensorName=t$2.string();break;case 2:r$3.quantParameterTensorNames&&r$3.quantParameterTensorNames.length||(r$3.quantParameterTensorNames=[]),r$3.quantParameterTensorNames.push(l$1.onnx.StringStringEntryProto.decode(t$2,t$2.uint32()));break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.tensorName!=null&&t$2.hasOwnProperty(`tensorName`)&&!c$4.isString(t$2.tensorName))return`tensorName: string expected`;if(t$2.quantParameterTensorNames!=null&&t$2.hasOwnProperty(`quantParameterTensorNames`)){if(!Array.isArray(t$2.quantParameterTensorNames))return`quantParameterTensorNames: array expected`;for(var e$4=0;e$4>>3){case 1:r$3.node&&r$3.node.length||(r$3.node=[]),r$3.node.push(l$1.onnx.NodeProto.decode(t$2,t$2.uint32()));break;case 2:r$3.name=t$2.string();break;case 5:r$3.initializer&&r$3.initializer.length||(r$3.initializer=[]),r$3.initializer.push(l$1.onnx.TensorProto.decode(t$2,t$2.uint32()));break;case 10:r$3.docString=t$2.string();break;case 11:r$3.input&&r$3.input.length||(r$3.input=[]),r$3.input.push(l$1.onnx.ValueInfoProto.decode(t$2,t$2.uint32()));break;case 12:r$3.output&&r$3.output.length||(r$3.output=[]),r$3.output.push(l$1.onnx.ValueInfoProto.decode(t$2,t$2.uint32()));break;case 13:r$3.valueInfo&&r$3.valueInfo.length||(r$3.valueInfo=[]),r$3.valueInfo.push(l$1.onnx.ValueInfoProto.decode(t$2,t$2.uint32()));break;case 14:r$3.quantizationAnnotation&&r$3.quantizationAnnotation.length||(r$3.quantizationAnnotation=[]),r$3.quantizationAnnotation.push(l$1.onnx.TensorAnnotation.decode(t$2,t$2.uint32()));break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.node!=null&&t$2.hasOwnProperty(`node`)){if(!Array.isArray(t$2.node))return`node: array expected`;for(var e$4=0;e$4>>3){case 1:if(r$3.dims&&r$3.dims.length||(r$3.dims=[]),(7&i$2)==2)for(var o$2=t$2.uint32()+t$2.pos;t$2.pos>>0,t$2.dims[n$3].high>>>0).toNumber())}if(t$2.dataType!=null&&(e$4.dataType=0|t$2.dataType),t$2.segment!=null){if(typeof t$2.segment!=`object`)throw TypeError(`.onnx.TensorProto.segment: object expected`);e$4.segment=l$1.onnx.TensorProto.Segment.fromObject(t$2.segment)}if(t$2.floatData){if(!Array.isArray(t$2.floatData))throw TypeError(`.onnx.TensorProto.floatData: array expected`);for(e$4.floatData=[],n$3=0;n$3>>0,t$2.int64Data[n$3].high>>>0).toNumber())}if(t$2.name!=null&&(e$4.name=String(t$2.name)),t$2.docString!=null&&(e$4.docString=String(t$2.docString)),t$2.rawData!=null&&(typeof t$2.rawData==`string`?c$4.base64.decode(t$2.rawData,e$4.rawData=c$4.newBuffer(c$4.base64.length(t$2.rawData)),0):t$2.rawData.length&&(e$4.rawData=t$2.rawData)),t$2.externalData){if(!Array.isArray(t$2.externalData))throw TypeError(`.onnx.TensorProto.externalData: array expected`);for(e$4.externalData=[],n$3=0;n$3>>0,t$2.uint64Data[n$3].high>>>0).toNumber(!0))}return e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};if((e$4.arrays||e$4.defaults)&&(n$3.dims=[],n$3.floatData=[],n$3.int32Data=[],n$3.stringData=[],n$3.int64Data=[],n$3.doubleData=[],n$3.uint64Data=[],n$3.externalData=[]),e$4.defaults&&(n$3.dataType=0,n$3.segment=null,n$3.name=``,e$4.bytes===String?n$3.rawData=``:(n$3.rawData=[],e$4.bytes!==Array&&(n$3.rawData=c$4.newBuffer(n$3.rawData))),n$3.docString=``,n$3.dataLocation=e$4.enums===String?`DEFAULT`:0),t$2.dims&&t$2.dims.length){n$3.dims=[];for(var r$3=0;r$3>>0,t$2.dims[r$3].high>>>0).toNumber():t$2.dims[r$3]}if(t$2.dataType!=null&&t$2.hasOwnProperty(`dataType`)&&(n$3.dataType=t$2.dataType),t$2.segment!=null&&t$2.hasOwnProperty(`segment`)&&(n$3.segment=l$1.onnx.TensorProto.Segment.toObject(t$2.segment,e$4)),t$2.floatData&&t$2.floatData.length)for(n$3.floatData=[],r$3=0;r$3>>0,t$2.int64Data[r$3].high>>>0).toNumber():t$2.int64Data[r$3];if(t$2.name!=null&&t$2.hasOwnProperty(`name`)&&(n$3.name=t$2.name),t$2.rawData!=null&&t$2.hasOwnProperty(`rawData`)&&(n$3.rawData=e$4.bytes===String?c$4.base64.encode(t$2.rawData,0,t$2.rawData.length):e$4.bytes===Array?Array.prototype.slice.call(t$2.rawData):t$2.rawData),t$2.doubleData&&t$2.doubleData.length)for(n$3.doubleData=[],r$3=0;r$3>>0,t$2.uint64Data[r$3].high>>>0).toNumber(!0):t$2.uint64Data[r$3];if(t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&(n$3.docString=t$2.docString),t$2.externalData&&t$2.externalData.length)for(n$3.externalData=[],r$3=0;r$3>>3){case 1:r$3.begin=t$3.int64();break;case 2:r$3.end=t$3.int64();break;default:t$3.skipType(7&i$2)}}return r$3},t$2.decodeDelimited=function(t$3){return t$3 instanceof s$1||(t$3=new s$1(t$3)),this.decode(t$3,t$3.uint32())},t$2.verify=function(t$3){return typeof t$3!=`object`||!t$3?`object expected`:t$3.begin!=null&&t$3.hasOwnProperty(`begin`)&&!(c$4.isInteger(t$3.begin)||t$3.begin&&c$4.isInteger(t$3.begin.low)&&c$4.isInteger(t$3.begin.high))?`begin: integer|Long expected`:t$3.end!=null&&t$3.hasOwnProperty(`end`)&&!(c$4.isInteger(t$3.end)||t$3.end&&c$4.isInteger(t$3.end.low)&&c$4.isInteger(t$3.end.high))?`end: integer|Long expected`:null},t$2.fromObject=function(t$3){if(t$3 instanceof l$1.onnx.TensorProto.Segment)return t$3;var e$4=new l$1.onnx.TensorProto.Segment;return t$3.begin!=null&&(c$4.Long?(e$4.begin=c$4.Long.fromValue(t$3.begin)).unsigned=!1:typeof t$3.begin==`string`?e$4.begin=parseInt(t$3.begin,10):typeof t$3.begin==`number`?e$4.begin=t$3.begin:typeof t$3.begin==`object`&&(e$4.begin=new c$4.LongBits(t$3.begin.low>>>0,t$3.begin.high>>>0).toNumber())),t$3.end!=null&&(c$4.Long?(e$4.end=c$4.Long.fromValue(t$3.end)).unsigned=!1:typeof t$3.end==`string`?e$4.end=parseInt(t$3.end,10):typeof t$3.end==`number`?e$4.end=t$3.end:typeof t$3.end==`object`&&(e$4.end=new c$4.LongBits(t$3.end.low>>>0,t$3.end.high>>>0).toNumber())),e$4},t$2.toObject=function(t$3,e$4){e$4||={};var n$3={};if(e$4.defaults){if(c$4.Long){var r$3=new c$4.Long(0,0,!1);n$3.begin=e$4.longs===String?r$3.toString():e$4.longs===Number?r$3.toNumber():r$3}else n$3.begin=e$4.longs===String?`0`:0;c$4.Long?(r$3=new c$4.Long(0,0,!1),n$3.end=e$4.longs===String?r$3.toString():e$4.longs===Number?r$3.toNumber():r$3):n$3.end=e$4.longs===String?`0`:0}return t$3.begin!=null&&t$3.hasOwnProperty(`begin`)&&(typeof t$3.begin==`number`?n$3.begin=e$4.longs===String?String(t$3.begin):t$3.begin:n$3.begin=e$4.longs===String?c$4.Long.prototype.toString.call(t$3.begin):e$4.longs===Number?new c$4.LongBits(t$3.begin.low>>>0,t$3.begin.high>>>0).toNumber():t$3.begin),t$3.end!=null&&t$3.hasOwnProperty(`end`)&&(typeof t$3.end==`number`?n$3.end=e$4.longs===String?String(t$3.end):t$3.end:n$3.end=e$4.longs===String?c$4.Long.prototype.toString.call(t$3.end):e$4.longs===Number?new c$4.LongBits(t$3.end.low>>>0,t$3.end.high>>>0).toNumber():t$3.end),n$3},t$2.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$2}(),t$1.DataLocation=function(){var t$2={},e$4=Object.create(t$2);return e$4[t$2[0]=`DEFAULT`]=0,e$4[t$2[1]=`EXTERNAL`]=1,e$4}(),t$1}(),o$1.TensorShapeProto=function(){function t$1(t$2){if(this.dim=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3==1?(r$3.dim&&r$3.dim.length||(r$3.dim=[]),r$3.dim.push(l$1.onnx.TensorShapeProto.Dimension.decode(t$2,t$2.uint32()))):t$2.skipType(7&i$2)}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.dim!=null&&t$2.hasOwnProperty(`dim`)){if(!Array.isArray(t$2.dim))return`dim: array expected`;for(var e$4=0;e$4>>3){case 1:r$3.dimValue=t$3.int64();break;case 2:r$3.dimParam=t$3.string();break;case 3:r$3.denotation=t$3.string();break;default:t$3.skipType(7&i$2)}}return r$3},t$2.decodeDelimited=function(t$3){return t$3 instanceof s$1||(t$3=new s$1(t$3)),this.decode(t$3,t$3.uint32())},t$2.verify=function(t$3){if(typeof t$3!=`object`||!t$3)return`object expected`;var e$5={};if(t$3.dimValue!=null&&t$3.hasOwnProperty(`dimValue`)&&(e$5.value=1,!(c$4.isInteger(t$3.dimValue)||t$3.dimValue&&c$4.isInteger(t$3.dimValue.low)&&c$4.isInteger(t$3.dimValue.high))))return`dimValue: integer|Long expected`;if(t$3.dimParam!=null&&t$3.hasOwnProperty(`dimParam`)){if(e$5.value===1)return`value: multiple values`;if(e$5.value=1,!c$4.isString(t$3.dimParam))return`dimParam: string expected`}return t$3.denotation!=null&&t$3.hasOwnProperty(`denotation`)&&!c$4.isString(t$3.denotation)?`denotation: string expected`:null},t$2.fromObject=function(t$3){if(t$3 instanceof l$1.onnx.TensorShapeProto.Dimension)return t$3;var e$5=new l$1.onnx.TensorShapeProto.Dimension;return t$3.dimValue!=null&&(c$4.Long?(e$5.dimValue=c$4.Long.fromValue(t$3.dimValue)).unsigned=!1:typeof t$3.dimValue==`string`?e$5.dimValue=parseInt(t$3.dimValue,10):typeof t$3.dimValue==`number`?e$5.dimValue=t$3.dimValue:typeof t$3.dimValue==`object`&&(e$5.dimValue=new c$4.LongBits(t$3.dimValue.low>>>0,t$3.dimValue.high>>>0).toNumber())),t$3.dimParam!=null&&(e$5.dimParam=String(t$3.dimParam)),t$3.denotation!=null&&(e$5.denotation=String(t$3.denotation)),e$5},t$2.toObject=function(t$3,e$5){e$5||={};var n$3={};return e$5.defaults&&(n$3.denotation=``),t$3.dimValue!=null&&t$3.hasOwnProperty(`dimValue`)&&(typeof t$3.dimValue==`number`?n$3.dimValue=e$5.longs===String?String(t$3.dimValue):t$3.dimValue:n$3.dimValue=e$5.longs===String?c$4.Long.prototype.toString.call(t$3.dimValue):e$5.longs===Number?new c$4.LongBits(t$3.dimValue.low>>>0,t$3.dimValue.high>>>0).toNumber():t$3.dimValue,e$5.oneofs&&(n$3.value=`dimValue`)),t$3.dimParam!=null&&t$3.hasOwnProperty(`dimParam`)&&(n$3.dimParam=t$3.dimParam,e$5.oneofs&&(n$3.value=`dimParam`)),t$3.denotation!=null&&t$3.hasOwnProperty(`denotation`)&&(n$3.denotation=t$3.denotation),n$3},t$2.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$2}(),t$1}(),o$1.TypeProto=function(){function t$1(t$2){if(t$2)for(var e$5=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.tensorType=l$1.onnx.TypeProto.Tensor.decode(t$2,t$2.uint32());break;case 6:r$3.denotation=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.tensorType!=null&&t$2.hasOwnProperty(`tensorType`)){var e$5=l$1.onnx.TypeProto.Tensor.verify(t$2.tensorType);if(e$5)return`tensorType.`+e$5}return t$2.denotation!=null&&t$2.hasOwnProperty(`denotation`)&&!c$4.isString(t$2.denotation)?`denotation: string expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.TypeProto)return t$2;var e$5=new l$1.onnx.TypeProto;if(t$2.tensorType!=null){if(typeof t$2.tensorType!=`object`)throw TypeError(`.onnx.TypeProto.tensorType: object expected`);e$5.tensorType=l$1.onnx.TypeProto.Tensor.fromObject(t$2.tensorType)}return t$2.denotation!=null&&(e$5.denotation=String(t$2.denotation)),e$5},t$1.toObject=function(t$2,e$5){e$5||={};var n$3={};return e$5.defaults&&(n$3.denotation=``),t$2.tensorType!=null&&t$2.hasOwnProperty(`tensorType`)&&(n$3.tensorType=l$1.onnx.TypeProto.Tensor.toObject(t$2.tensorType,e$5),e$5.oneofs&&(n$3.value=`tensorType`)),t$2.denotation!=null&&t$2.hasOwnProperty(`denotation`)&&(n$3.denotation=t$2.denotation),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1.Tensor=function(){function t$2(t$3){if(t$3)for(var e$5=Object.keys(t$3),n$3=0;n$3>>3){case 1:r$3.elemType=t$3.int32();break;case 2:r$3.shape=l$1.onnx.TensorShapeProto.decode(t$3,t$3.uint32());break;default:t$3.skipType(7&i$2)}}return r$3},t$2.decodeDelimited=function(t$3){return t$3 instanceof s$1||(t$3=new s$1(t$3)),this.decode(t$3,t$3.uint32())},t$2.verify=function(t$3){if(typeof t$3!=`object`||!t$3)return`object expected`;if(t$3.elemType!=null&&t$3.hasOwnProperty(`elemType`)&&!c$4.isInteger(t$3.elemType))return`elemType: integer expected`;if(t$3.shape!=null&&t$3.hasOwnProperty(`shape`)){var e$5=l$1.onnx.TensorShapeProto.verify(t$3.shape);if(e$5)return`shape.`+e$5}return null},t$2.fromObject=function(t$3){if(t$3 instanceof l$1.onnx.TypeProto.Tensor)return t$3;var e$5=new l$1.onnx.TypeProto.Tensor;if(t$3.elemType!=null&&(e$5.elemType=0|t$3.elemType),t$3.shape!=null){if(typeof t$3.shape!=`object`)throw TypeError(`.onnx.TypeProto.Tensor.shape: object expected`);e$5.shape=l$1.onnx.TensorShapeProto.fromObject(t$3.shape)}return e$5},t$2.toObject=function(t$3,e$5){e$5||={};var n$3={};return e$5.defaults&&(n$3.elemType=0,n$3.shape=null),t$3.elemType!=null&&t$3.hasOwnProperty(`elemType`)&&(n$3.elemType=t$3.elemType),t$3.shape!=null&&t$3.hasOwnProperty(`shape`)&&(n$3.shape=l$1.onnx.TensorShapeProto.toObject(t$3.shape,e$5)),n$3},t$2.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$2}(),t$1}(),o$1.OperatorSetIdProto=function(){function t$1(t$2){if(t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.domain=t$2.string();break;case 2:r$3.version=t$2.int64();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){return typeof t$2!=`object`||!t$2?`object expected`:t$2.domain!=null&&t$2.hasOwnProperty(`domain`)&&!c$4.isString(t$2.domain)?`domain: string expected`:t$2.version!=null&&t$2.hasOwnProperty(`version`)&&!(c$4.isInteger(t$2.version)||t$2.version&&c$4.isInteger(t$2.version.low)&&c$4.isInteger(t$2.version.high))?`version: integer|Long expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.OperatorSetIdProto)return t$2;var e$4=new l$1.onnx.OperatorSetIdProto;return t$2.domain!=null&&(e$4.domain=String(t$2.domain)),t$2.version!=null&&(c$4.Long?(e$4.version=c$4.Long.fromValue(t$2.version)).unsigned=!1:typeof t$2.version==`string`?e$4.version=parseInt(t$2.version,10):typeof t$2.version==`number`?e$4.version=t$2.version:typeof t$2.version==`object`&&(e$4.version=new c$4.LongBits(t$2.version.low>>>0,t$2.version.high>>>0).toNumber())),e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};if(e$4.defaults)if(n$3.domain=``,c$4.Long){var r$3=new c$4.Long(0,0,!1);n$3.version=e$4.longs===String?r$3.toString():e$4.longs===Number?r$3.toNumber():r$3}else n$3.version=e$4.longs===String?`0`:0;return t$2.domain!=null&&t$2.hasOwnProperty(`domain`)&&(n$3.domain=t$2.domain),t$2.version!=null&&t$2.hasOwnProperty(`version`)&&(typeof t$2.version==`number`?n$3.version=e$4.longs===String?String(t$2.version):t$2.version:n$3.version=e$4.longs===String?c$4.Long.prototype.toString.call(t$2.version):e$4.longs===Number?new c$4.LongBits(t$2.version.low>>>0,t$2.version.high>>>0).toNumber():t$2.version),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1}(),o$1),t.exports=l$1},2100:(t,e$3,n$2)=>{"use strict";t.exports=n$2(9482)},9482:(t,e$3,n$2)=>{"use strict";var r$2=e$3;function i$1(){r$2.util._configure(),r$2.Writer._configure(r$2.BufferWriter),r$2.Reader._configure(r$2.BufferReader)}r$2.build=`minimal`,r$2.Writer=n$2(1173),r$2.BufferWriter=n$2(3155),r$2.Reader=n$2(1408),r$2.BufferReader=n$2(593),r$2.util=n$2(9693),r$2.rpc=n$2(5994),r$2.roots=n$2(5054),r$2.configure=i$1,i$1()},1408:(t,e$3,n$2)=>{"use strict";t.exports=u$1;var r$2,i$1=n$2(9693),o$1=i$1.LongBits,a$2=i$1.utf8;function s$1(t$1,e$4){return RangeError(`index out of range: `+t$1.pos+` + `+(e$4||1)+` > `+t$1.len)}function u$1(t$1){this.buf=t$1,this.pos=0,this.len=t$1.length}var c$4,l$1=typeof Uint8Array<`u`?function(t$1){if(t$1 instanceof Uint8Array||Array.isArray(t$1))return new u$1(t$1);throw Error(`illegal buffer`)}:function(t$1){if(Array.isArray(t$1))return new u$1(t$1);throw Error(`illegal buffer`)},p$5=function(){return i$1.Buffer?function(t$1){return(u$1.create=function(t$2){return i$1.Buffer.isBuffer(t$2)?new r$2(t$2):l$1(t$2)})(t$1)}:l$1};function f$3(){var t$1=new o$1(0,0),e$4=0;if(!(this.len-this.pos>4)){for(;e$4<3;++e$4){if(this.pos>=this.len)throw s$1(this);if(t$1.lo=(t$1.lo|(127&this.buf[this.pos])<<7*e$4)>>>0,this.buf[this.pos++]<128)return t$1}return t$1.lo=(t$1.lo|(127&this.buf[this.pos++])<<7*e$4)>>>0,t$1}for(;e$4<4;++e$4)if(t$1.lo=(t$1.lo|(127&this.buf[this.pos])<<7*e$4)>>>0,this.buf[this.pos++]<128)return t$1;if(t$1.lo=(t$1.lo|(127&this.buf[this.pos])<<28)>>>0,t$1.hi=(t$1.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t$1;if(e$4=0,this.len-this.pos>4){for(;e$4<5;++e$4)if(t$1.hi=(t$1.hi|(127&this.buf[this.pos])<<7*e$4+3)>>>0,this.buf[this.pos++]<128)return t$1}else for(;e$4<5;++e$4){if(this.pos>=this.len)throw s$1(this);if(t$1.hi=(t$1.hi|(127&this.buf[this.pos])<<7*e$4+3)>>>0,this.buf[this.pos++]<128)return t$1}throw Error(`invalid varint encoding`)}function d$2(t$1,e$4){return(t$1[e$4-4]|t$1[e$4-3]<<8|t$1[e$4-2]<<16|t$1[e$4-1]<<24)>>>0}function h$3(){if(this.pos+8>this.len)throw s$1(this,8);return new o$1(d$2(this.buf,this.pos+=4),d$2(this.buf,this.pos+=4))}u$1.create=p$5(),u$1.prototype._slice=i$1.Array.prototype.subarray||i$1.Array.prototype.slice,u$1.prototype.uint32=(c$4=4294967295,function(){if(c$4=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(c$4=(c$4|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(c$4=(c$4|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(c$4=(c$4|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(c$4=(c$4|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return c$4;if((this.pos+=5)>this.len)throw this.pos=this.len,s$1(this,10);return c$4}),u$1.prototype.int32=function(){return 0|this.uint32()},u$1.prototype.sint32=function(){var t$1=this.uint32();return t$1>>>1^-(1&t$1)|0},u$1.prototype.bool=function(){return this.uint32()!==0},u$1.prototype.fixed32=function(){if(this.pos+4>this.len)throw s$1(this,4);return d$2(this.buf,this.pos+=4)},u$1.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s$1(this,4);return 0|d$2(this.buf,this.pos+=4)},u$1.prototype.float=function(){if(this.pos+4>this.len)throw s$1(this,4);var t$1=i$1.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t$1},u$1.prototype.double=function(){if(this.pos+8>this.len)throw s$1(this,4);var t$1=i$1.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t$1},u$1.prototype.bytes=function(){var t$1=this.uint32(),e$4=this.pos,n$3=this.pos+t$1;if(n$3>this.len)throw s$1(this,t$1);return this.pos+=t$1,Array.isArray(this.buf)?this.buf.slice(e$4,n$3):e$4===n$3?new this.buf.constructor(0):this._slice.call(this.buf,e$4,n$3)},u$1.prototype.string=function(){var t$1=this.bytes();return a$2.read(t$1,0,t$1.length)},u$1.prototype.skip=function(t$1){if(typeof t$1==`number`){if(this.pos+t$1>this.len)throw s$1(this,t$1);this.pos+=t$1}else do if(this.pos>=this.len)throw s$1(this);while(128&this.buf[this.pos++]);return this},u$1.prototype.skipType=function(t$1){switch(t$1){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t$1=7&this.uint32())!=4;)this.skipType(t$1);break;case 5:this.skip(4);break;default:throw Error(`invalid wire type `+t$1+` at offset `+this.pos)}return this},u$1._configure=function(t$1){r$2=t$1,u$1.create=p$5(),r$2._configure();var e$4=i$1.Long?`toLong`:`toNumber`;i$1.merge(u$1.prototype,{int64:function(){return f$3.call(this)[e$4](!1)},uint64:function(){return f$3.call(this)[e$4](!0)},sint64:function(){return f$3.call(this).zzDecode()[e$4](!1)},fixed64:function(){return h$3.call(this)[e$4](!0)},sfixed64:function(){return h$3.call(this)[e$4](!1)}})}},593:(t,e$3,n$2)=>{"use strict";t.exports=o$1;var r$2=n$2(1408);(o$1.prototype=Object.create(r$2.prototype)).constructor=o$1;var i$1=n$2(9693);function o$1(t$1){r$2.call(this,t$1)}o$1._configure=function(){i$1.Buffer&&(o$1.prototype._slice=i$1.Buffer.prototype.slice)},o$1.prototype.string=function(){var t$1=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t$1,this.len)):this.buf.toString(`utf-8`,this.pos,this.pos=Math.min(this.pos+t$1,this.len))},o$1._configure()},5054:t=>{"use strict";t.exports={}},5994:(t,e$3,n$2)=>{"use strict";e$3.Service=n$2(7948)},7948:(t,e$3,n$2)=>{"use strict";t.exports=i$1;var r$2=n$2(9693);function i$1(t$1,e$4,n$3){if(typeof t$1!=`function`)throw TypeError(`rpcImpl must be a function`);r$2.EventEmitter.call(this),this.rpcImpl=t$1,this.requestDelimited=!!e$4,this.responseDelimited=!!n$3}(i$1.prototype=Object.create(r$2.EventEmitter.prototype)).constructor=i$1,i$1.prototype.rpcCall=function t$1(e$4,n$3,i$2,o$1,a$2){if(!o$1)throw TypeError(`request must be specified`);var s$1=this;if(!a$2)return r$2.asPromise(t$1,s$1,e$4,n$3,i$2,o$1);if(s$1.rpcImpl)try{return s$1.rpcImpl(e$4,n$3[s$1.requestDelimited?`encodeDelimited`:`encode`](o$1).finish(),function(t$2,n$4){if(t$2)return s$1.emit(`error`,t$2,e$4),a$2(t$2);if(n$4!==null){if(!(n$4 instanceof i$2))try{n$4=i$2[s$1.responseDelimited?`decodeDelimited`:`decode`](n$4)}catch(t$3){return s$1.emit(`error`,t$3,e$4),a$2(t$3)}return s$1.emit(`data`,n$4,e$4),a$2(null,n$4)}s$1.end(!0)})}catch(t$2){return s$1.emit(`error`,t$2,e$4),void setTimeout(function(){a$2(t$2)},0)}else setTimeout(function(){a$2(Error(`already ended`))},0)},i$1.prototype.end=function(t$1){return this.rpcImpl&&(t$1||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(`end`).off()),this}},1945:(t,e$3,n$2)=>{"use strict";t.exports=i$1;var r$2=n$2(9693);function i$1(t$1,e$4){this.lo=t$1>>>0,this.hi=e$4>>>0}var o$1=i$1.zero=new i$1(0,0);o$1.toNumber=function(){return 0},o$1.zzEncode=o$1.zzDecode=function(){return this},o$1.length=function(){return 1};var a$2=i$1.zeroHash=`\0\0\0\0\0\0\0\0`;i$1.fromNumber=function(t$1){if(t$1===0)return o$1;var e$4=t$1<0;e$4&&(t$1=-t$1);var n$3=t$1>>>0,r$3=(t$1-n$3)/4294967296>>>0;return e$4&&(r$3=~r$3>>>0,n$3=~n$3>>>0,++n$3>4294967295&&(n$3=0,++r$3>4294967295&&(r$3=0))),new i$1(n$3,r$3)},i$1.from=function(t$1){if(typeof t$1==`number`)return i$1.fromNumber(t$1);if(r$2.isString(t$1)){if(!r$2.Long)return i$1.fromNumber(parseInt(t$1,10));t$1=r$2.Long.fromString(t$1)}return t$1.low||t$1.high?new i$1(t$1.low>>>0,t$1.high>>>0):o$1},i$1.prototype.toNumber=function(t$1){if(!t$1&&this.hi>>>31){var e$4=1+~this.lo>>>0,n$3=~this.hi>>>0;return e$4||(n$3=n$3+1>>>0),-(e$4+4294967296*n$3)}return this.lo+4294967296*this.hi},i$1.prototype.toLong=function(t$1){return r$2.Long?new r$2.Long(0|this.lo,0|this.hi,!!t$1):{low:0|this.lo,high:0|this.hi,unsigned:!!t$1}};var s$1=String.prototype.charCodeAt;i$1.fromHash=function(t$1){return t$1===a$2?o$1:new i$1((s$1.call(t$1,0)|s$1.call(t$1,1)<<8|s$1.call(t$1,2)<<16|s$1.call(t$1,3)<<24)>>>0,(s$1.call(t$1,4)|s$1.call(t$1,5)<<8|s$1.call(t$1,6)<<16|s$1.call(t$1,7)<<24)>>>0)},i$1.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i$1.prototype.zzEncode=function(){var t$1=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t$1)>>>0,this.lo=(this.lo<<1^t$1)>>>0,this},i$1.prototype.zzDecode=function(){var t$1=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t$1)>>>0,this.hi=(this.hi>>>1^t$1)>>>0,this},i$1.prototype.length=function(){var t$1=this.lo,e$4=(this.lo>>>28|this.hi<<4)>>>0,n$3=this.hi>>>24;return n$3===0?e$4===0?t$1<16384?t$1<128?1:2:t$1<2097152?3:4:e$4<16384?e$4<128?5:6:e$4<2097152?7:8:n$3<128?9:10}},9693:function(t,e$3,n$2){"use strict";var r$2=e$3;function i$1(t$1,e$4,n$3){for(var r$3=Object.keys(e$4),i$2=0;i$20)},r$2.Buffer=function(){try{var t$1=r$2.inquire(`buffer`).Buffer;return t$1.prototype.utf8Write?t$1:null}catch{return null}}(),r$2._Buffer_from=null,r$2._Buffer_allocUnsafe=null,r$2.newBuffer=function(t$1){return typeof t$1==`number`?r$2.Buffer?r$2._Buffer_allocUnsafe(t$1):new r$2.Array(t$1):r$2.Buffer?r$2._Buffer_from(t$1):typeof Uint8Array>`u`?t$1:new Uint8Array(t$1)},r$2.Array=typeof Uint8Array<`u`?Uint8Array:Array,r$2.Long=r$2.global.dcodeIO&&r$2.global.dcodeIO.Long||r$2.global.Long||r$2.inquire(`long`),r$2.key2Re=/^true|false|0|1$/,r$2.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r$2.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r$2.longToHash=function(t$1){return t$1?r$2.LongBits.from(t$1).toHash():r$2.LongBits.zeroHash},r$2.longFromHash=function(t$1,e$4){var n$3=r$2.LongBits.fromHash(t$1);return r$2.Long?r$2.Long.fromBits(n$3.lo,n$3.hi,e$4):n$3.toNumber(!!e$4)},r$2.merge=i$1,r$2.lcFirst=function(t$1){return t$1.charAt(0).toLowerCase()+t$1.substring(1)},r$2.newError=o$1,r$2.ProtocolError=o$1(`ProtocolError`),r$2.oneOfGetter=function(t$1){for(var e$4={},n$3=0;n$3-1;--n$4)if(e$4[t$2[n$4]]===1&&this[t$2[n$4]]!==void 0&&this[t$2[n$4]]!==null)return t$2[n$4]}},r$2.oneOfSetter=function(t$1){return function(e$4){for(var n$3=0;n$3{"use strict";t.exports=p$5;var r$2,i$1=n$2(9693),o$1=i$1.LongBits,a$2=i$1.base64,s$1=i$1.utf8;function u$1(t$1,e$4,n$3){this.fn=t$1,this.len=e$4,this.next=void 0,this.val=n$3}function c$4(){}function l$1(t$1){this.head=t$1.head,this.tail=t$1.tail,this.len=t$1.len,this.next=t$1.states}function p$5(){this.len=0,this.head=new u$1(c$4,0,0),this.tail=this.head,this.states=null}var f$3=function(){return i$1.Buffer?function(){return(p$5.create=function(){return new r$2})()}:function(){return new p$5}};function d$2(t$1,e$4,n$3){e$4[n$3]=255&t$1}function h$3(t$1,e$4){this.len=t$1,this.next=void 0,this.val=e$4}function g$2(t$1,e$4,n$3){for(;t$1.hi;)e$4[n$3++]=127&t$1.lo|128,t$1.lo=(t$1.lo>>>7|t$1.hi<<25)>>>0,t$1.hi>>>=7;for(;t$1.lo>127;)e$4[n$3++]=127&t$1.lo|128,t$1.lo>>>=7;e$4[n$3++]=t$1.lo}function b$3(t$1,e$4,n$3){e$4[n$3]=255&t$1,e$4[n$3+1]=t$1>>>8&255,e$4[n$3+2]=t$1>>>16&255,e$4[n$3+3]=t$1>>>24}p$5.create=f$3(),p$5.alloc=function(t$1){return new i$1.Array(t$1)},i$1.Array!==Array&&(p$5.alloc=i$1.pool(p$5.alloc,i$1.Array.prototype.subarray)),p$5.prototype._push=function(t$1,e$4,n$3){return this.tail=this.tail.next=new u$1(t$1,e$4,n$3),this.len+=e$4,this},h$3.prototype=Object.create(u$1.prototype),h$3.prototype.fn=function(t$1,e$4,n$3){for(;t$1>127;)e$4[n$3++]=127&t$1|128,t$1>>>=7;e$4[n$3]=t$1},p$5.prototype.uint32=function(t$1){return this.len+=(this.tail=this.tail.next=new h$3((t$1>>>=0)<128?1:t$1<16384?2:t$1<2097152?3:t$1<268435456?4:5,t$1)).len,this},p$5.prototype.int32=function(t$1){return t$1<0?this._push(g$2,10,o$1.fromNumber(t$1)):this.uint32(t$1)},p$5.prototype.sint32=function(t$1){return this.uint32((t$1<<1^t$1>>31)>>>0)},p$5.prototype.uint64=function(t$1){var e$4=o$1.from(t$1);return this._push(g$2,e$4.length(),e$4)},p$5.prototype.int64=p$5.prototype.uint64,p$5.prototype.sint64=function(t$1){var e$4=o$1.from(t$1).zzEncode();return this._push(g$2,e$4.length(),e$4)},p$5.prototype.bool=function(t$1){return this._push(d$2,1,t$1?1:0)},p$5.prototype.fixed32=function(t$1){return this._push(b$3,4,t$1>>>0)},p$5.prototype.sfixed32=p$5.prototype.fixed32,p$5.prototype.fixed64=function(t$1){var e$4=o$1.from(t$1);return this._push(b$3,4,e$4.lo)._push(b$3,4,e$4.hi)},p$5.prototype.sfixed64=p$5.prototype.fixed64,p$5.prototype.float=function(t$1){return this._push(i$1.float.writeFloatLE,4,t$1)},p$5.prototype.double=function(t$1){return this._push(i$1.float.writeDoubleLE,8,t$1)};var m$2=i$1.Array.prototype.set?function(t$1,e$4,n$3){e$4.set(t$1,n$3)}:function(t$1,e$4,n$3){for(var r$3=0;r$3>>0;if(!e$4)return this._push(d$2,1,0);if(i$1.isString(t$1)){var n$3=p$5.alloc(e$4=a$2.length(t$1));a$2.decode(t$1,n$3,0),t$1=n$3}return this.uint32(e$4)._push(m$2,e$4,t$1)},p$5.prototype.string=function(t$1){var e$4=s$1.length(t$1);return e$4?this.uint32(e$4)._push(s$1.write,e$4,t$1):this._push(d$2,1,0)},p$5.prototype.fork=function(){return this.states=new l$1(this),this.head=this.tail=new u$1(c$4,0,0),this.len=0,this},p$5.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u$1(c$4,0,0),this.len=0),this},p$5.prototype.ldelim=function(){var t$1=this.head,e$4=this.tail,n$3=this.len;return this.reset().uint32(n$3),n$3&&(this.tail.next=t$1.next,this.tail=e$4,this.len+=n$3),this},p$5.prototype.finish=function(){for(var t$1=this.head.next,e$4=this.constructor.alloc(this.len),n$3=0;t$1;)t$1.fn(t$1.val,e$4,n$3),n$3+=t$1.len,t$1=t$1.next;return e$4},p$5._configure=function(t$1){r$2=t$1,p$5.create=f$3(),r$2._configure()}},3155:(t,e$3,n$2)=>{"use strict";t.exports=o$1;var r$2=n$2(1173);(o$1.prototype=Object.create(r$2.prototype)).constructor=o$1;var i$1=n$2(9693);function o$1(){r$2.call(this)}function a$2(t$1,e$4,n$3){t$1.length<40?i$1.utf8.write(t$1,e$4,n$3):e$4.utf8Write?e$4.utf8Write(t$1,n$3):e$4.write(t$1,n$3)}o$1._configure=function(){o$1.alloc=i$1._Buffer_allocUnsafe,o$1.writeBytesBuffer=i$1.Buffer&&i$1.Buffer.prototype instanceof Uint8Array&&i$1.Buffer.prototype.set.name===`set`?function(t$1,e$4,n$3){e$4.set(t$1,n$3)}:function(t$1,e$4,n$3){if(t$1.copy)t$1.copy(e$4,n$3,0,t$1.length);else for(var r$3=0;r$3>>0;return this.uint32(e$4),e$4&&this._push(o$1.writeBytesBuffer,e$4,t$1),this},o$1.prototype.string=function(t$1){var e$4=i$1.Buffer.byteLength(t$1);return this.uint32(e$4),e$4&&this._push(a$2,e$4,t$1),this},o$1._configure()},7714:(t,e$3,n$2)=>{"use strict";e$3.R=void 0;let r$2=n$2(6919),i$1=n$2(7448);e$3.R=new class{async init(){}async createSessionHandler(t$1,e$4){let n$3=new r$2.Session(e$4);return await n$3.loadModel(t$1),new i$1.OnnxjsSessionHandler(n$3)}}},4200:(t,e$3,n$2)=>{"use strict";e$3.c8=e$3.rX=void 0;let r$2=n$2(1670),i$1=n$2(5381),o$1=n$2(2157),a$2=n$2(2306);e$3.rX=()=>{if((typeof r$2.env.wasm.initTimeout!=`number`||r$2.env.wasm.initTimeout<0)&&(r$2.env.wasm.initTimeout=0),typeof r$2.env.wasm.simd!=`boolean`&&(r$2.env.wasm.simd=!0),typeof r$2.env.wasm.proxy!=`boolean`&&(r$2.env.wasm.proxy=!1),typeof r$2.env.wasm.numThreads!=`number`||!Number.isInteger(r$2.env.wasm.numThreads)||r$2.env.wasm.numThreads<=0){let t$1=typeof navigator>`u`?(0,i$1.cpus)().length:navigator.hardwareConcurrency;r$2.env.wasm.numThreads=Math.min(4,Math.ceil((t$1||1)/2))}},e$3.c8=new class{async init(){(0,e$3.rX)(),await(0,o$1.initWasm)()}async createSessionHandler(t$1,e$4){let n$3=new a$2.OnnxruntimeWebAssemblySessionHandler;return await n$3.loadModel(t$1,e$4),Promise.resolve(n$3)}}},6018:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__exportStar||function(t$1,e$4){for(var n$3 in t$1)n$3===`default`||Object.prototype.hasOwnProperty.call(e$4,n$3)||r$2(e$4,t$1,n$3)};Object.defineProperty(e$3,`__esModule`,{value:!0}),i$1(n$2(1670),e$3);let o$1=n$2(1670);{let t$1=n$2(7714).R;(0,o$1.registerBackend)(`webgl`,t$1,-10)}{let t$1=n$2(4200).c8;(0,o$1.registerBackend)(`cpu`,t$1,10),(0,o$1.registerBackend)(`wasm`,t$1,10),(0,o$1.registerBackend)(`xnnpack`,t$1,9)}},246:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createAttributeWithCacheKey=void 0;class n$2{constructor(t$1){Object.assign(this,t$1)}get cacheKey(){return this._cacheKey||=Object.getOwnPropertyNames(this).sort().map(t$1=>`${this[t$1]}`).join(`;`),this._cacheKey}}e$3.createAttributeWithCacheKey=t$1=>new n$2(t$1)},7778:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Attribute=void 0;let r$2=n$2(1446),i$1=n$2(9395),o$1=n$2(9162),a$2=n$2(2517);var s$1=i$1.onnxruntime.experimental.fbs;class u$1{constructor(t$1){if(this._attributes=new Map,t$1!=null){for(let e$4 of t$1)e$4 instanceof r$2.onnx.AttributeProto?this._attributes.set(e$4.name,[u$1.getValue(e$4),u$1.getType(e$4)]):e$4 instanceof s$1.Attribute&&this._attributes.set(e$4.name(),[u$1.getValue(e$4),u$1.getType(e$4)]);if(this._attributes.sizeo$1.Tensor.fromProto(t$2));if(t$1 instanceof s$1.Attribute)return n$3.map(t$2=>o$1.Tensor.fromOrtTensor(t$2))}if(e$4===r$2.onnx.AttributeProto.AttributeType.STRING&&t$1 instanceof r$2.onnx.AttributeProto){let t$2=n$3;return(0,a$2.decodeUtf8String)(t$2)}return e$4===r$2.onnx.AttributeProto.AttributeType.STRINGS&&t$1 instanceof r$2.onnx.AttributeProto?n$3.map(a$2.decodeUtf8String):n$3}static getValueNoCheck(t$1){return t$1 instanceof r$2.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(t$1):this.getValueNoCheckFromOrtFormat(t$1)}static getValueNoCheckFromOnnxFormat(t$1){switch(t$1.type){case r$2.onnx.AttributeProto.AttributeType.FLOAT:return t$1.f;case r$2.onnx.AttributeProto.AttributeType.INT:return t$1.i;case r$2.onnx.AttributeProto.AttributeType.STRING:return t$1.s;case r$2.onnx.AttributeProto.AttributeType.TENSOR:return t$1.t;case r$2.onnx.AttributeProto.AttributeType.GRAPH:return t$1.g;case r$2.onnx.AttributeProto.AttributeType.FLOATS:return t$1.floats;case r$2.onnx.AttributeProto.AttributeType.INTS:return t$1.ints;case r$2.onnx.AttributeProto.AttributeType.STRINGS:return t$1.strings;case r$2.onnx.AttributeProto.AttributeType.TENSORS:return t$1.tensors;case r$2.onnx.AttributeProto.AttributeType.GRAPHS:return t$1.graphs;default:throw Error(`unsupported attribute type: ${r$2.onnx.AttributeProto.AttributeType[t$1.type]}`)}}static getValueNoCheckFromOrtFormat(t$1){switch(t$1.type()){case s$1.AttributeType.FLOAT:return t$1.f();case s$1.AttributeType.INT:return t$1.i();case s$1.AttributeType.STRING:return t$1.s();case s$1.AttributeType.TENSOR:return t$1.t();case s$1.AttributeType.GRAPH:return t$1.g();case s$1.AttributeType.FLOATS:return t$1.floatsArray();case s$1.AttributeType.INTS:{let e$4=[];for(let n$3=0;n$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.resolveBackend=e$3.backend=void 0;let r$2=n$2(5038),i$1=new Map;async function o$1(t$1){let n$3=e$3.backend;if(n$3[t$1]!==void 0&&function(t$2){let e$4=t$2;return`initialize`in e$4&&typeof e$4.initialize==`function`&&`createSessionHandler`in e$4&&typeof e$4.createSessionHandler==`function`&&`dispose`in e$4&&typeof e$4.dispose==`function`}(n$3[t$1])){let e$4=n$3[t$1],r$3=e$4.initialize();if(typeof r$3==`object`&&`then`in r$3&&(r$3=await r$3),r$3)return i$1.set(t$1,e$4),e$4}}e$3.backend={webgl:new r$2.WebGLBackend},e$3.resolveBackend=async function t$1(e$4){if(!e$4)return t$1([`webgl`]);{let t$2=typeof e$4==`string`?[e$4]:e$4;for(let e$5 of t$2){let t$3=i$1.get(e$5);if(t$3)return t$3;let n$3=await o$1(e$5);if(n$3)return n$3}}throw Error(`no available backend to use`)}},5038:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLBackend=void 0;let r$2=n$2(1670),i$1=n$2(6231),o$1=n$2(6416),a$2=n$2(7305);e$3.WebGLBackend=class{get contextId(){return r$2.env.webgl.contextId}set contextId(t$1){r$2.env.webgl.contextId=t$1}get matmulMaxBatchSize(){return r$2.env.webgl.matmulMaxBatchSize}set matmulMaxBatchSize(t$1){r$2.env.webgl.matmulMaxBatchSize=t$1}get textureCacheMode(){return r$2.env.webgl.textureCacheMode}set textureCacheMode(t$1){r$2.env.webgl.textureCacheMode=t$1}get pack(){return r$2.env.webgl.pack}set pack(t$1){r$2.env.webgl.pack=t$1}get async(){return r$2.env.webgl.async}set async(t$1){r$2.env.webgl.async=t$1}initialize(){try{return this.glContext=(0,a$2.createWebGLContext)(this.contextId),typeof this.matmulMaxBatchSize!=`number`&&(this.matmulMaxBatchSize=16),typeof this.textureCacheMode!=`string`&&(this.textureCacheMode=`full`),typeof this.pack!=`boolean`&&(this.pack=!1),typeof this.async!=`boolean`&&(this.async=!1),i$1.Logger.setWithEnv(r$2.env),i$1.Logger.verbose(`WebGLBackend`,`Created WebGLContext: ${typeof this.glContext} with matmulMaxBatchSize: ${this.matmulMaxBatchSize}; textureCacheMode: ${this.textureCacheMode}; pack: ${this.pack}; async: ${this.async}.`),!0}catch(t$1){return i$1.Logger.warning(`WebGLBackend`,`Unable to initialize WebGLBackend. ${t$1}`),!1}}createSessionHandler(t$1){return new o$1.WebGLSessionHandler(this,t$1)}dispose(){this.glContext.dispose()}}},5107:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.CoordsGlslLib=void 0;let r$2=n$2(2517),i$1=n$2(8520),o$1=n$2(5060),a$2=n$2(7859),s$1=n$2(9390);class u$1 extends i$1.GlslLib{constructor(t$1){super(t$1)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}getCustomTypes(){return{}}offsetToCoords(){return{offsetToCoords:new i$1.GlslLibRoutine(` +`));var E$2,I=s$1.print||O$2,P$1=s$1.printErr||A$1;Object.assign(s$1,b$3),b$3=null,s$1.thisProgram&&(m$2=s$1.thisProgram),s$1.quit&&(y$2=s$1.quit),s$1.wasmBinary&&(E$2=s$1.wasmBinary);var D$1=s$1.noExitRuntime||!1;typeof WebAssembly!=`object`&&it$1(`no native wasm support detected`);var $$1,k$4,C$3,F$2,N$1,L$1,R$1,j$1,M$1=!1,U=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function V$1(t$2,e$5,n$3){var r$4=(e$5>>>=0)+n$3;for(n$3=e$5;t$2[n$3]&&!(n$3>=r$4);)++n$3;if(16(i$2=(240&i$2)==224?(15&i$2)<<12|o$2<<6|a$3:(7&i$2)<<18|o$2<<12|a$3<<6|63&t$2[e$5++])?r$4+=String.fromCharCode(i$2):(i$2-=65536,r$4+=String.fromCharCode(55296|i$2>>10,56320|1023&i$2))}}else r$4+=String.fromCharCode(i$2)}return r$4}function B$2(t$2,e$5){return(t$2>>>=0)?V$1(r$3(),t$2,e$5):``}function z$2(t$2,e$5,n$3,r$4){if(!(0>>=0;r$4=n$3+r$4-1;for(var o$2=0;o$2=a$3&&(a$3=65536+((1023&a$3)<<10)|1023&t$2.charCodeAt(++o$2)),127>=a$3){if(n$3>=r$4)break;e$5[n$3++>>>0]=a$3}else{if(2047>=a$3){if(n$3+1>=r$4)break;e$5[n$3++>>>0]=192|a$3>>6}else{if(65535>=a$3){if(n$3+2>=r$4)break;e$5[n$3++>>>0]=224|a$3>>12}else{if(n$3+3>=r$4)break;e$5[n$3++>>>0]=240|a$3>>18,e$5[n$3++>>>0]=128|a$3>>12&63}e$5[n$3++>>>0]=128|a$3>>6&63}e$5[n$3++>>>0]=128|63&a$3}}return e$5[n$3>>>0]=0,n$3-i$2}function G$1(t$2){for(var e$5=0,n$3=0;n$3=r$4?e$5++:2047>=r$4?e$5+=2:55296<=r$4&&57343>=r$4?(e$5+=4,++n$3):e$5+=3}return e$5}function H$2(t$2){C$3=t$2,s$1.HEAP8=F$2=new Int8Array(t$2),s$1.HEAP16=new Int16Array(t$2),s$1.HEAP32=L$1=new Int32Array(t$2),s$1.HEAPU8=N$1=new Uint8Array(t$2),s$1.HEAPU16=new Uint16Array(t$2),s$1.HEAPU32=R$1=new Uint32Array(t$2),s$1.HEAPF32=new Float32Array(t$2),s$1.HEAPF64=j$1=new Float64Array(t$2)}x$3&&(C$3=s$1.buffer);var W$1=s$1.INITIAL_MEMORY||16777216;if(x$3)$$1=s$1.wasmMemory,C$3=s$1.buffer;else if(s$1.wasmMemory)$$1=s$1.wasmMemory;else if(!(($$1=new WebAssembly.Memory({initial:W$1/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw P$1(`requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag`),w$1&&console.log(`(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)`),Error(`bad memory`);$$1&&(C$3=$$1.buffer),W$1=C$3.byteLength,H$2(C$3);var q$1,X$2=[],Y$2=[],K$1=[],Z$1=[];function J$1(){return D$1||!1}function Q$3(){var t$2=s$1.preRun.shift();X$2.unshift(t$2)}var tt$3,et$2=0,nt$2=null,rt$3=null;function it$1(t$2){throw x$3?postMessage({cmd:`onAbort`,arg:t$2}):s$1.onAbort&&s$1.onAbort(t$2),P$1(t$2=`Aborted(`+t$2+`)`),M$1=!0,t$2=new WebAssembly.RuntimeError(t$2+`. Build with -sASSERTIONS for more info.`),c$4(t$2),t$2}function ot$1(){return tt$3.startsWith(`data:application/octet-stream;base64,`)}function at$1(){var t$2=tt$3;try{if(t$2==tt$3&&E$2)return new Uint8Array(E$2);if(f$3)return f$3(t$2);throw`both async and sync fetching of the wasm failed`}catch(t$3){it$1(t$3)}}tt$3=`ort-wasm-threaded.wasm`,ot$1()||(tt$3=S$2(tt$3));var st$2={};function ut$2(t$2){this.name=`ExitStatus`,this.message=`Program terminated with exit(`+t$2+`)`,this.status=t$2}function ct$2(t$2){(t$2=dt$4.Vb[t$2])||it$1(),dt$4.mc(t$2)}function lt$1(t$2){var e$5=dt$4.Cc();if(!e$5)return 6;dt$4.ac.push(e$5),dt$4.Vb[t$2.Ub]=e$5,e$5.Ub=t$2.Ub;var n$3={cmd:`run`,start_routine:t$2.Ic,arg:t$2.zc,pthread_ptr:t$2.Ub};return e$5.$b=()=>{n$3.time=performance.now(),e$5.postMessage(n$3,t$2.Nc)},e$5.loaded&&(e$5.$b(),delete e$5.$b),0}function pt$2(t$2){if(x$3)return qt(1,1,t$2);J$1()||(dt$4.oc(),s$1.onExit&&s$1.onExit(t$2),M$1=!0),y$2(t$2,new ut$2(t$2))}function ft$2(t$2,e$5){if(!e$5&&x$3)throw bt$3(t$2),`unwind`;J$1()||x$3||(me$1(),ht$3(K$1),be$2(0),re$3[1].length&&ie$2(1,10),re$3[2].length&&ie$2(2,10),dt$4.oc()),pt$2(t$2)}var dt$4={Yb:[],ac:[],qc:[],Vb:{},fc:function(){x$3&&dt$4.Ec()},Pc:function(){},Ec:function(){dt$4.receiveObjectTransfer=dt$4.Gc,dt$4.threadInitTLS=dt$4.pc,dt$4.setExitStatus=dt$4.nc,D$1=!1},nc:function(){},oc:function(){for(var t$2 of Object.values(dt$4.Vb))dt$4.mc(t$2);for(t$2 of dt$4.Yb)t$2.terminate();dt$4.Yb=[]},mc:function(t$2){var e$5=t$2.Ub;delete dt$4.Vb[e$5],dt$4.Yb.push(t$2),dt$4.ac.splice(dt$4.ac.indexOf(t$2),1),t$2.Ub=0,xe(e$5)},Gc:function(){},pc:function(){dt$4.qc.forEach(t$2=>t$2())},Fc:function(t$2,e$5){t$2.onmessage=n$3=>{var r$4=(n$3=n$3.data).cmd;if(t$2.Ub&&(dt$4.Bc=t$2.Ub),n$3.targetThread&&n$3.targetThread!=de$3()){var i$2=dt$4.Vb[n$3.Qc];i$2?i$2.postMessage(n$3,n$3.transferList):P$1(`Internal error! Worker sent a message "`+r$4+`" to target pthread `+n$3.targetThread+`, but that thread no longer exists!`)}else r$4===`processProxyingQueue`?Vt$1(n$3.queue):r$4===`spawnThread`?lt$1(n$3):r$4===`cleanupThread`?ct$2(n$3.thread):r$4===`killThread`?(n$3=n$3.thread,r$4=dt$4.Vb[n$3],delete dt$4.Vb[n$3],r$4.terminate(),xe(n$3),dt$4.ac.splice(dt$4.ac.indexOf(r$4),1),r$4.Ub=0):r$4===`cancelThread`?dt$4.Vb[n$3.thread].postMessage({cmd:`cancel`}):r$4===`loaded`?(t$2.loaded=!0,e$5&&e$5(t$2),t$2.$b&&(t$2.$b(),delete t$2.$b)):r$4===`print`?I(`Thread `+n$3.threadId+`: `+n$3.text):r$4===`printErr`?P$1(`Thread `+n$3.threadId+`: `+n$3.text):r$4===`alert`?alert(`Thread `+n$3.threadId+`: `+n$3.text):n$3.target===`setimmediate`?t$2.postMessage(n$3):r$4===`onAbort`?s$1.onAbort&&s$1.onAbort(n$3.arg):r$4&&P$1(`worker sent an unknown command `+r$4);dt$4.Bc=void 0},t$2.onerror=t$3=>{throw P$1(`worker sent an error! `+t$3.filename+`:`+t$3.lineno+`: `+t$3.message),t$3},w$1&&(t$2.on(`message`,function(e$6){t$2.onmessage({data:e$6})}),t$2.on(`error`,function(e$6){t$2.onerror(e$6)}),t$2.on(`detachedExit`,function(){})),t$2.postMessage({cmd:`load`,urlOrBlob:s$1.mainScriptUrlOrBlob||_scriptDir,wasmMemory:$$1,wasmModule:k$4})},yc:function(){var t$2=S$2(`ort-wasm-threaded.worker.js`);dt$4.Yb.push(new Worker(t$2))},Cc:function(){return dt$4.Yb.length==0&&(dt$4.yc(),dt$4.Fc(dt$4.Yb[0])),dt$4.Yb.pop()}};function ht$3(t$2){for(;0>2>>>0];t$2=i$1()[t$2+48>>2>>>0],Oe$2(e$5,e$5-t$2),Ee$2(e$5)};var mt$3=[];function yt$3(t$2){var e$5=mt$3[t$2];return e$5||(t$2>=mt$3.length&&(mt$3.length=t$2+1),mt$3[t$2]=e$5=q$1.get(t$2)),e$5}s$1.invokeEntryPoint=function(t$2,e$5){t$2=yt$3(t$2)(e$5),J$1()?dt$4.nc(t$2):Te$3(t$2)};var _t$3,vt$3,wt$3=[],xt$1=0,Tt$3=0;function St$3(t$2){this.Zb=t$2,this.Sb=t$2-24,this.xc=function(t$3){o$1()[this.Sb+4>>2>>>0]=t$3},this.bc=function(){return o$1()[this.Sb+4>>2>>>0]},this.wc=function(t$3){o$1()[this.Sb+8>>2>>>0]=t$3},this.Dc=function(){return o$1()[this.Sb+8>>2>>>0]},this.rc=function(){i$1()[this.Sb>>2>>>0]=0},this.hc=function(t$3){t$3=t$3?1:0,e$4()[this.Sb+12>>0>>>0]=t$3},this.uc=function(){return e$4()[this.Sb+12>>0>>>0]!=0},this.ic=function(t$3){t$3=t$3?1:0,e$4()[this.Sb+13>>0>>>0]=t$3},this.kc=function(){return e$4()[this.Sb+13>>0>>>0]!=0},this.fc=function(t$3,e$5){this.cc(0),this.xc(t$3),this.wc(e$5),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(i$1(),this.Sb>>2,1)},this.Hc=function(){return Atomics.sub(i$1(),this.Sb>>2,1)===1},this.cc=function(t$3){o$1()[this.Sb+16>>2>>>0]=t$3},this.tc=function(){return o$1()[this.Sb+16>>2>>>0]},this.vc=function(){if(De(this.bc()))return o$1()[this.Zb>>2>>>0];var t$3=this.tc();return t$3===0?this.Zb:t$3}}function Ot$2(t$2){return ge$1(new St$3(t$2).Sb)}function At$1(t$2,e$5,n$3,r$4){return x$3?qt(3,1,t$2,e$5,n$3,r$4):Et$2(t$2,e$5,n$3,r$4)}function Et$2(t$2,e$5,n$3,r$4){if(typeof SharedArrayBuffer>`u`)return P$1(`Current environment does not support SharedArrayBuffer, pthreads are not available!`),6;var i$2=[];return x$3&&i$2.length===0?At$1(t$2,e$5,n$3,r$4):(t$2={Ic:n$3,Ub:t$2,zc:r$4,Nc:i$2},x$3?(t$2.Oc=`spawnThread`,postMessage(t$2,i$2),0):lt$1(t$2))}function It$1(t$2,e$5,n$3){return x$3?qt(4,1,t$2,e$5,n$3):0}function Pt$3(t$2,e$5){if(x$3)return qt(5,1,t$2,e$5)}function Dt$2(t$2,e$5){if(x$3)return qt(6,1,t$2,e$5)}function $t$2(t$2,e$5,n$3){if(x$3)return qt(7,1,t$2,e$5,n$3)}function kt$1(t$2,e$5,n$3){return x$3?qt(8,1,t$2,e$5,n$3):0}function Ct$2(t$2,e$5){if(x$3)return qt(9,1,t$2,e$5)}function Ft$1(t$2,e$5,n$3){if(x$3)return qt(10,1,t$2,e$5,n$3)}function Nt$1(t$2,e$5,n$3,r$4){if(x$3)return qt(11,1,t$2,e$5,n$3,r$4)}function Lt$1(t$2,e$5,n$3,r$4){if(x$3)return qt(12,1,t$2,e$5,n$3,r$4)}function Rt$1(t$2,e$5,n$3,r$4){if(x$3)return qt(13,1,t$2,e$5,n$3,r$4)}function jt$1(t$2){if(x$3)return qt(14,1,t$2)}function Mt$2(t$2,e$5){if(x$3)return qt(15,1,t$2,e$5)}function Ut(t$2,e$5,n$3){if(x$3)return qt(16,1,t$2,e$5,n$3)}function Vt$1(t$2){Atomics.store(i$1(),t$2>>2,1),de$3()&&we$1(t$2),Atomics.compareExchange(i$1(),t$2>>2,1,0)}function Bt$2(t$2){return o$1()[t$2>>>2]+4294967296*i$1()[t$2+4>>>2]}function zt(t$2,e$5,n$3,r$4,i$2,o$2){return x$3?qt(17,1,t$2,e$5,n$3,r$4,i$2,o$2):-52}function Gt(t$2,e$5,n$3,r$4,i$2,o$2){if(x$3)return qt(18,1,t$2,e$5,n$3,r$4,i$2,o$2)}function Ht$1(t$2){var n$3=G$1(t$2)+1,r$4=he$2(n$3);return r$4&&z$2(t$2,e$4(),r$4,n$3),r$4}function Wt$1(t$2,e$5,n$3){function r$4(t$3){return(t$3=t$3.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t$3[1]:`GMT`}if(x$3)return qt(19,1,t$2,e$5,n$3);var a$3=new Date().getFullYear(),s$2=new Date(a$3,0,1),u$2=new Date(a$3,6,1);a$3=s$2.getTimezoneOffset();var c$5=u$2.getTimezoneOffset(),l$2=Math.max(a$3,c$5);i$1()[t$2>>2>>>0]=60*l$2,i$1()[e$5>>2>>>0]=Number(a$3!=c$5),t$2=r$4(s$2),e$5=r$4(u$2),t$2=Ht$1(t$2),e$5=Ht$1(e$5),c$5>2>>>0]=t$2,o$1()[n$3+4>>2>>>0]=e$5):(o$1()[n$3>>2>>>0]=e$5,o$1()[n$3+4>>2>>>0]=t$2)}function qt(t$2,e$5){var n$3=arguments.length-2,r$4=arguments;return gt$3(()=>{for(var i$2=Ie(8*n$3),o$2=i$2>>3,s$2=0;s$2>>0]=u$2}return ve$1(t$2,n$3,i$2,e$5)})}s$1.executeNotifiedProxyingQueue=Vt$1,vt$3=w$1?()=>{var t$2=process.hrtime();return 1e3*t$2[0]+t$2[1]/1e6}:x$3?()=>performance.now()-s$1.__performance_now_clock_drift:()=>performance.now();var Xt,Yt=[],Kt={};function Zt(){if(!Xt){var t$2,e$5={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(typeof navigator==`object`&&navigator.languages&&navigator.languages[0]||`C`).replace(`-`,`_`)+`.UTF-8`,_:m$2||`./this.program`};for(t$2 in Kt)Kt[t$2]===void 0?delete e$5[t$2]:e$5[t$2]=Kt[t$2];var n$3=[];for(t$2 in e$5)n$3.push(t$2+`=`+e$5[t$2]);Xt=n$3}return Xt}function Jt(t$2,n$3){if(x$3)return qt(20,1,t$2,n$3);var r$4=0;return Zt().forEach(function(i$2,a$3){var s$2=n$3+r$4;for(a$3=o$1()[t$2+4*a$3>>2>>>0]=s$2,s$2=0;s$2>0>>>0]=i$2.charCodeAt(s$2);e$4()[a$3>>0>>>0]=0,r$4+=i$2.length+1}),0}function Qt(t$2,e$5){if(x$3)return qt(21,1,t$2,e$5);var n$3=Zt();o$1()[t$2>>2>>>0]=n$3.length;var r$4=0;return n$3.forEach(function(t$3){r$4+=t$3.length+1}),o$1()[e$5>>2>>>0]=r$4,0}function te$2(t$2){return x$3?qt(22,1,t$2):52}function ee$3(t$2,e$5,n$3,r$4){return x$3?qt(23,1,t$2,e$5,n$3,r$4):52}function ne$1(t$2,e$5,n$3,r$4,i$2){return x$3?qt(24,1,t$2,e$5,n$3,r$4,i$2):70}var re$3=[null,[],[]];function ie$2(t$2,e$5){var n$3=re$3[t$2];e$5===0||e$5===10?((t$2===1?I:P$1)(V$1(n$3,0)),n$3.length=0):n$3.push(e$5)}function oe$2(t$2,e$5,n$3,i$2){if(x$3)return qt(25,1,t$2,e$5,n$3,i$2);for(var a$3=0,s$2=0;s$2>2>>>0],c$5=o$1()[e$5+4>>2>>>0];e$5+=8;for(var l$2=0;l$2>>0]);a$3+=c$5}return o$1()[i$2>>2>>>0]=a$3,0}var ae$1=0;function se$1(t$2){return t$2%4==0&&(t$2%100!=0||t$2%400==0)}var ue$1=[31,29,31,30,31,30,31,31,30,31,30,31],ce$2=[31,28,31,30,31,30,31,31,30,31,30,31];function le$2(t$2,n$3,r$4,o$2){function a$3(t$3,e$5,n$4){for(t$3=typeof t$3==`number`?t$3.toString():t$3||``;t$3.lengtht$4?-1:0r$5-t$3.getDate())){t$3.setDate(t$3.getDate()+e$5);break}e$5-=r$5-t$3.getDate()+1,t$3.setDate(1),11>n$4?t$3.setMonth(n$4+1):(t$3.setMonth(0),t$3.setFullYear(t$3.getFullYear()+1))}return n$4=new Date(t$3.getFullYear()+1,0,4),e$5=c$5(new Date(t$3.getFullYear(),0,4)),n$4=c$5(n$4),0>=u$2(e$5,t$3)?0>=u$2(n$4,t$3)?t$3.getFullYear()+1:t$3.getFullYear():t$3.getFullYear()-1}var p$6=i$1()[o$2+40>>2>>>0];for(var f$4 in o$2={Lc:i$1()[o$2>>2>>>0],Kc:i$1()[o$2+4>>2>>>0],dc:i$1()[o$2+8>>2>>>0],jc:i$1()[o$2+12>>2>>>0],ec:i$1()[o$2+16>>2>>>0],Xb:i$1()[o$2+20>>2>>>0],Tb:i$1()[o$2+24>>2>>>0],Wb:i$1()[o$2+28>>2>>>0],Rc:i$1()[o$2+32>>2>>>0],Jc:i$1()[o$2+36>>2>>>0],Mc:p$6?B$2(p$6):``},r$4=B$2(r$4),p$6={"%c":`%a %b %d %H:%M:%S %Y`,"%D":`%m/%d/%y`,"%F":`%Y-%m-%d`,"%h":`%b`,"%r":`%I:%M:%S %p`,"%R":`%H:%M`,"%T":`%H:%M:%S`,"%x":`%m/%d/%y`,"%X":`%H:%M:%S`,"%Ec":`%c`,"%EC":`%C`,"%Ex":`%m/%d/%y`,"%EX":`%H:%M:%S`,"%Ey":`%y`,"%EY":`%Y`,"%Od":`%d`,"%Oe":`%e`,"%OH":`%H`,"%OI":`%I`,"%Om":`%m`,"%OM":`%M`,"%OS":`%S`,"%Ou":`%u`,"%OU":`%U`,"%OV":`%V`,"%Ow":`%w`,"%OW":`%W`,"%Oy":`%y`})r$4=r$4.replace(new RegExp(f$4,`g`),p$6[f$4]);var d$3=`Sunday Monday Tuesday Wednesday Thursday Friday Saturday`.split(` `),h$4=`January February March April May June July August September October November December`.split(` `);for(f$4 in p$6={"%a":function(t$3){return d$3[t$3.Tb].substring(0,3)},"%A":function(t$3){return d$3[t$3.Tb]},"%b":function(t$3){return h$4[t$3.ec].substring(0,3)},"%B":function(t$3){return h$4[t$3.ec]},"%C":function(t$3){return s$2((t$3.Xb+1900)/100|0,2)},"%d":function(t$3){return s$2(t$3.jc,2)},"%e":function(t$3){return a$3(t$3.jc,2,` `)},"%g":function(t$3){return l$2(t$3).toString().substring(2)},"%G":function(t$3){return l$2(t$3)},"%H":function(t$3){return s$2(t$3.dc,2)},"%I":function(t$3){return(t$3=t$3.dc)==0?t$3=12:12t$3.dc?`AM`:`PM`},"%S":function(t$3){return s$2(t$3.Lc,2)},"%t":function(){return` `},"%u":function(t$3){return t$3.Tb||7},"%U":function(t$3){return s$2(Math.floor((t$3.Wb+7-t$3.Tb)/7),2)},"%V":function(t$3){var e$5=Math.floor((t$3.Wb+7-(t$3.Tb+6)%7)/7);if(2>=(t$3.Tb+371-t$3.Wb-2)%7&&e$5++,e$5)e$5==53&&((n$4=(t$3.Tb+371-t$3.Wb)%7)==4||n$4==3&&se$1(t$3.Xb)||(e$5=1));else{e$5=52;var n$4=(t$3.Tb+7-t$3.Wb-1)%7;(n$4==4||n$4==5&&se$1(t$3.Xb%400-1))&&e$5++}return s$2(e$5,2)},"%w":function(t$3){return t$3.Tb},"%W":function(t$3){return s$2(Math.floor((t$3.Wb+7-(t$3.Tb+6)%7)/7),2)},"%y":function(t$3){return(t$3.Xb+1900).toString().substring(2)},"%Y":function(t$3){return t$3.Xb+1900},"%z":function(t$3){var e$5=0<=(t$3=t$3.Jc);return t$3=Math.abs(t$3)/60,(e$5?`+`:`-`)+String(`0000`+(t$3/60*100+t$3%60)).slice(-4)},"%Z":function(t$3){return t$3.Mc},"%%":function(){return`%`}},r$4=r$4.replace(/%%/g,`\0\0`),p$6)r$4.includes(f$4)&&(r$4=r$4.replace(new RegExp(f$4,`g`),p$6[f$4](o$2)));return f$4=function(t$3){var e$5=Array(G$1(t$3)+1);return z$2(t$3,e$5,0,e$5.length),e$5}(r$4=r$4.replace(/\0\0/g,`%`)),f$4.length>n$3?0:(function(t$3,n$4){e$4().set(t$3,n$4>>>0)}(f$4,t$2),f$4.length-1)}dt$4.fc();var pe$2=[null,pt$2,bt$3,At$1,It$1,Pt$3,Dt$2,$t$2,kt$1,Ct$2,Ft$1,Nt$1,Lt$1,Rt$1,jt$1,Mt$2,Ut,zt,Gt,Wt$1,Jt,Qt,te$2,ee$3,ne$1,oe$2],fe$2={b:function(t$2){return he$2(t$2+24)+24},n:function(t$2){return(t$2=new St$3(t$2)).uc()||(t$2.hc(!0),xt$1--),t$2.ic(!1),wt$3.push(t$2),t$2.sc(),t$2.vc()},ma:function(t$2){throw P$1(`Unexpected exception thrown, this is not properly supported - aborting`),M$1=!0,t$2},x:function(){Se$1(0);var t$2=wt$3.pop();if(t$2.Hc()&&!t$2.kc()){var e$5=t$2.Dc();e$5&&yt$3(e$5)(t$2.Zb),Ot$2(t$2.Zb)}Tt$3=0},e:function(){var t$2=Tt$3;if(!t$2)return ae$1=0;var e$5=new St$3(t$2);e$5.cc(t$2);var n$3=e$5.bc();if(!n$3)return ae$1=0,t$2;for(var r$4=Array.prototype.slice.call(arguments),i$2=0;i$2Vt$1(r$4));else if(x$3)postMessage({targetThread:t$2,cmd:`processProxyingQueue`,queue:r$4});else{if(!(t$2=dt$4.Vb[t$2]))return;t$2.postMessage({cmd:`processProxyingQueue`,queue:r$4})}return 1},Ea:function(){return-1},Pa:function(t$2,e$5){t$2=new Date(1e3*Bt$2(t$2)),i$1()[e$5>>2>>>0]=t$2.getUTCSeconds(),i$1()[e$5+4>>2>>>0]=t$2.getUTCMinutes(),i$1()[e$5+8>>2>>>0]=t$2.getUTCHours(),i$1()[e$5+12>>2>>>0]=t$2.getUTCDate(),i$1()[e$5+16>>2>>>0]=t$2.getUTCMonth(),i$1()[e$5+20>>2>>>0]=t$2.getUTCFullYear()-1900,i$1()[e$5+24>>2>>>0]=t$2.getUTCDay(),t$2=(t$2.getTime()-Date.UTC(t$2.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,i$1()[e$5+28>>2>>>0]=t$2},Qa:function(t$2,e$5){t$2=new Date(1e3*Bt$2(t$2)),i$1()[e$5>>2>>>0]=t$2.getSeconds(),i$1()[e$5+4>>2>>>0]=t$2.getMinutes(),i$1()[e$5+8>>2>>>0]=t$2.getHours(),i$1()[e$5+12>>2>>>0]=t$2.getDate(),i$1()[e$5+16>>2>>>0]=t$2.getMonth(),i$1()[e$5+20>>2>>>0]=t$2.getFullYear()-1900,i$1()[e$5+24>>2>>>0]=t$2.getDay();var n$3=new Date(t$2.getFullYear(),0,1),r$4=(t$2.getTime()-n$3.getTime())/864e5|0;i$1()[e$5+28>>2>>>0]=r$4,i$1()[e$5+36>>2>>>0]=-60*t$2.getTimezoneOffset(),r$4=new Date(t$2.getFullYear(),6,1).getTimezoneOffset(),t$2=0|(r$4!=(n$3=n$3.getTimezoneOffset())&&t$2.getTimezoneOffset()==Math.min(n$3,r$4)),i$1()[e$5+32>>2>>>0]=t$2},Ra:function(t$2){var e$5=new Date(i$1()[t$2+20>>2>>>0]+1900,i$1()[t$2+16>>2>>>0],i$1()[t$2+12>>2>>>0],i$1()[t$2+8>>2>>>0],i$1()[t$2+4>>2>>>0],i$1()[t$2>>2>>>0],0),n$3=i$1()[t$2+32>>2>>>0],r$4=e$5.getTimezoneOffset(),o$2=new Date(e$5.getFullYear(),0,1),a$3=new Date(e$5.getFullYear(),6,1).getTimezoneOffset(),s$2=o$2.getTimezoneOffset(),u$2=Math.min(s$2,a$3);return 0>n$3?i$1()[t$2+32>>2>>>0]=Number(a$3!=s$2&&u$2==r$4):0>2>>>0]=e$5.getDay(),n$3=(e$5.getTime()-o$2.getTime())/864e5|0,i$1()[t$2+28>>2>>>0]=n$3,i$1()[t$2>>2>>>0]=e$5.getSeconds(),i$1()[t$2+4>>2>>>0]=e$5.getMinutes(),i$1()[t$2+8>>2>>>0]=e$5.getHours(),i$1()[t$2+12>>2>>>0]=e$5.getDate(),i$1()[t$2+16>>2>>>0]=e$5.getMonth(),e$5.getTime()/1e3|0},Aa:zt,Ba:Gt,Sa:function t$2(e$5,n$3,r$4){t$2.Ac||(t$2.Ac=!0,Wt$1(e$5,n$3,r$4))},y:function(){it$1(``)},U:function(){if(!w$1&&!v$1){var t$2=`Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread`;_t$3||={},_t$3[t$2]||(_t$3[t$2]=1,w$1&&(t$2=`warning: `+t$2),P$1(t$2))}},ra:function(){return 4294901760},B:vt$3,Ia:function(t$2,e$5,n$3){r$3().copyWithin(t$2>>>0,e$5>>>0,e$5+n$3>>>0)},F:function(){return w$1?n$2(3993).cpus().length:navigator.hardwareConcurrency},Da:function(t$2,e$5,n$3){Yt.length=e$5,n$3>>=3;for(var r$4=0;r$4>>0];return(0>t$2?st$2[-t$2-1]:pe$2[t$2]).apply(null,Yt)},qa:function(t$2){var e$5=r$3().length;if((t$2>>>=0)<=e$5||4294901760=n$3;n$3*=2){var i$2=e$5*(1+.2/n$3);i$2=Math.min(i$2,t$2+100663296);var o$2=Math;i$2=Math.max(t$2,i$2),o$2=o$2.min.call(o$2,4294901760,i$2+(65536-i$2%65536)%65536);t:{try{$$1.grow(o$2-C$3.byteLength+65535>>>16),H$2($$1.buffer);var a$3=1;break t}catch{}a$3=void 0}if(a$3)return!0}return!1},Na:function(){throw`unwind`},Ga:Jt,Ha:Qt,J:ft$2,I:te$2,S:ee$3,ga:ne$1,R:oe$2,d:function(){return ae$1},na:function t$2(r$4,i$2){t$2.lc||=function(){if(typeof crypto==`object`&&typeof crypto.getRandomValues==`function`){var t$3=new Uint8Array(1);return()=>(crypto.getRandomValues(t$3),t$3[0])}if(w$1)try{var e$5=n$2(Object(function(){var t$4=Error(`Cannot find module 'crypto'`);throw t$4.code=`MODULE_NOT_FOUND`,t$4}()));return()=>e$5.randomBytes(1)[0]}catch{}return()=>it$1(`randomDevice`)}();for(var o$2=0;o$2>0>>>0]=t$2.lc();return 0},ia:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$3(t$2)(e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ja:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$3(t$2)(e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},K:function(t$2){var e$5=Ae$1();try{return yt$3(t$2)()}catch(t$3){if(Ee$2(e$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},f:function(t$2,e$5){var n$3=Ae$1();try{return yt$3(t$2)(e$5)}catch(t$3){if(Ee$2(n$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},P:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$3(t$2)(e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},Q:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$3(t$2)(e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},k:function(t$2,e$5,n$3){var r$4=Ae$1();try{return yt$3(t$2)(e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},p:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4)}catch(t$3){if(Ee$2(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},q:function(t$2,e$5,n$3,r$4,i$2){var o$2=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(Ee$2(o$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},N:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$2(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},s:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$2(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},w:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(Ee$2(s$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},L:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$2(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},E:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Ae$1();try{return yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(Ee$2(f$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},aa:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{return Me$2(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$2(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},_:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Ae$1();try{return ke$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(Ee$2(s$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},Z:function(t$2,e$5,n$3,r$4,i$2){var o$2=Ae$1();try{return Ue(t$2,e$5,n$3,r$4,i$2)}catch(t$3){if(Ee$2(o$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ca:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{return Re$1(t$2,e$5,n$3,r$4)}catch(t$3){if(Ee$2(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},$:function(t$2){var e$5=Ae$1();try{return $e$1(t$2)}catch(t$3){if(Ee$2(e$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ba:function(t$2,e$5){var n$3=Ae$1();try{return je(t$2,e$5)}catch(t$3){if(Ee$2(n$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},Y:function(t$2,e$5,n$3){var r$4=Ae$1();try{return Ce$3(t$2,e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},g:function(t$2){var e$5=Ae$1();try{yt$3(t$2)()}catch(t$3){if(Ee$2(e$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},r:function(t$2,e$5){var n$3=Ae$1();try{yt$3(t$2)(e$5)}catch(t$3){if(Ee$2(n$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},i:function(t$2,e$5,n$3){var r$4=Ae$1();try{yt$3(t$2)(e$5,n$3)}catch(t$3){if(Ee$2(r$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ha:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4)}catch(t$3){if(Ee$2(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},m:function(t$2,e$5,n$3,r$4){var i$2=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4)}catch(t$3){if(Ee$2(i$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},v:function(t$2,e$5,n$3,r$4,i$2){var o$2=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(Ee$2(o$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},u:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$2(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},O:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(Ee$2(s$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},A:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$2(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ka:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2){var c$5=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2)}catch(t$3){if(Ee$2(c$5),t$3!==t$3+0)throw t$3;Se$1(1,0)}},C:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2){var p$6=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2)}catch(t$3){if(Ee$2(p$6),t$3!==t$3+0)throw t$3;Se$1(1,0)}},D:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3){var b$4=Ae$1();try{yt$3(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3)}catch(t$3){if(Ee$2(b$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},fa:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Ae$1();try{Fe(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(Ee$2(u$2),t$3!==t$3+0)throw t$3;Se$1(1,0)}},da:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Ae$1();try{Le$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(Ee$2(f$4),t$3!==t$3+0)throw t$3;Se$1(1,0)}},ea:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Ae$1();try{Ne$1(t$2,e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(Ee$2(a$3),t$3!==t$3+0)throw t$3;Se$1(1,0)}},o:function(t$2){return t$2},a:$$1||s$1.wasmMemory,G:function(t$2){ae$1=t$2},la:le$2,z:function(t$2,e$5,n$3,r$4){return le$2(t$2,e$5,n$3,r$4)}};(function(){function t$2(t$3,e$6){s$1.asm=t$3.exports,dt$4.qc.push(s$1.asm.sb),q$1=s$1.asm.ub,Y$2.unshift(s$1.asm.Va),k$4=e$6,x$3||(et$2--,s$1.monitorRunDependencies&&s$1.monitorRunDependencies(et$2),et$2==0&&(nt$2!==null&&(clearInterval(nt$2),nt$2=null),rt$3&&(t$3=rt$3,rt$3=null,t$3())))}function e$5(e$6){t$2(e$6.instance,e$6.module)}function n$3(t$3){return function(){if(!E$2&&(_$2||v$1)){if(typeof fetch==`function`&&!tt$3.startsWith(`file://`))return fetch(tt$3,{credentials:`same-origin`}).then(function(t$4){if(!t$4.ok)throw`failed to load wasm binary file at '`+tt$3+`'`;return t$4.arrayBuffer()}).catch(function(){return at$1()});if(p$5)return new Promise(function(t$4,e$6){p$5(tt$3,function(e$7){t$4(new Uint8Array(e$7))},e$6)})}return Promise.resolve().then(function(){return at$1()})}().then(function(t$4){return WebAssembly.instantiate(t$4,r$4)}).then(function(t$4){return t$4}).then(t$3,function(t$4){P$1(`failed to asynchronously prepare wasm: `+t$4),it$1(t$4)})}var r$4={a:fe$2};if(x$3||(et$2++,s$1.monitorRunDependencies&&s$1.monitorRunDependencies(et$2)),s$1.instantiateWasm)try{return s$1.instantiateWasm(r$4,t$2)}catch(t$3){return P$1(`Module.instantiateWasm callback failed with error: `+t$3),!1}(E$2||typeof WebAssembly.instantiateStreaming!=`function`||ot$1()||tt$3.startsWith(`file://`)||w$1||typeof fetch!=`function`?n$3(e$5):fetch(tt$3,{credentials:`same-origin`}).then(function(t$3){return WebAssembly.instantiateStreaming(t$3,r$4).then(e$5,function(t$4){return P$1(`wasm streaming compile failed: `+t$4),P$1(`falling back to ArrayBuffer instantiation`),n$3(e$5)})})).catch(c$4)})(),s$1.___wasm_call_ctors=function(){return(s$1.___wasm_call_ctors=s$1.asm.Va).apply(null,arguments)},s$1._OrtInit=function(){return(s$1._OrtInit=s$1.asm.Wa).apply(null,arguments)},s$1._OrtCreateSessionOptions=function(){return(s$1._OrtCreateSessionOptions=s$1.asm.Xa).apply(null,arguments)},s$1._OrtAppendExecutionProvider=function(){return(s$1._OrtAppendExecutionProvider=s$1.asm.Ya).apply(null,arguments)},s$1._OrtAddSessionConfigEntry=function(){return(s$1._OrtAddSessionConfigEntry=s$1.asm.Za).apply(null,arguments)},s$1._OrtReleaseSessionOptions=function(){return(s$1._OrtReleaseSessionOptions=s$1.asm._a).apply(null,arguments)},s$1._OrtCreateSession=function(){return(s$1._OrtCreateSession=s$1.asm.$a).apply(null,arguments)},s$1._OrtReleaseSession=function(){return(s$1._OrtReleaseSession=s$1.asm.ab).apply(null,arguments)},s$1._OrtGetInputCount=function(){return(s$1._OrtGetInputCount=s$1.asm.bb).apply(null,arguments)},s$1._OrtGetOutputCount=function(){return(s$1._OrtGetOutputCount=s$1.asm.cb).apply(null,arguments)},s$1._OrtGetInputName=function(){return(s$1._OrtGetInputName=s$1.asm.db).apply(null,arguments)},s$1._OrtGetOutputName=function(){return(s$1._OrtGetOutputName=s$1.asm.eb).apply(null,arguments)},s$1._OrtFree=function(){return(s$1._OrtFree=s$1.asm.fb).apply(null,arguments)},s$1._OrtCreateTensor=function(){return(s$1._OrtCreateTensor=s$1.asm.gb).apply(null,arguments)},s$1._OrtGetTensorData=function(){return(s$1._OrtGetTensorData=s$1.asm.hb).apply(null,arguments)},s$1._OrtReleaseTensor=function(){return(s$1._OrtReleaseTensor=s$1.asm.ib).apply(null,arguments)},s$1._OrtCreateRunOptions=function(){return(s$1._OrtCreateRunOptions=s$1.asm.jb).apply(null,arguments)},s$1._OrtAddRunConfigEntry=function(){return(s$1._OrtAddRunConfigEntry=s$1.asm.kb).apply(null,arguments)},s$1._OrtReleaseRunOptions=function(){return(s$1._OrtReleaseRunOptions=s$1.asm.lb).apply(null,arguments)},s$1._OrtRun=function(){return(s$1._OrtRun=s$1.asm.mb).apply(null,arguments)},s$1._OrtEndProfiling=function(){return(s$1._OrtEndProfiling=s$1.asm.nb).apply(null,arguments)};var de$3=s$1._pthread_self=function(){return(de$3=s$1._pthread_self=s$1.asm.ob).apply(null,arguments)},he$2=s$1._malloc=function(){return(he$2=s$1._malloc=s$1.asm.pb).apply(null,arguments)},ge$1=s$1._free=function(){return(ge$1=s$1._free=s$1.asm.qb).apply(null,arguments)},be$2=s$1._fflush=function(){return(be$2=s$1._fflush=s$1.asm.rb).apply(null,arguments)};s$1.__emscripten_tls_init=function(){return(s$1.__emscripten_tls_init=s$1.asm.sb).apply(null,arguments)};var me$1=s$1.___funcs_on_exit=function(){return(me$1=s$1.___funcs_on_exit=s$1.asm.tb).apply(null,arguments)},ye$1=s$1.__emscripten_thread_init=function(){return(ye$1=s$1.__emscripten_thread_init=s$1.asm.vb).apply(null,arguments)};s$1.__emscripten_thread_crashed=function(){return(s$1.__emscripten_thread_crashed=s$1.asm.wb).apply(null,arguments)};var _e$2,ve$1=s$1._emscripten_run_in_main_runtime_thread_js=function(){return(ve$1=s$1._emscripten_run_in_main_runtime_thread_js=s$1.asm.xb).apply(null,arguments)},we$1=s$1.__emscripten_proxy_execute_task_queue=function(){return(we$1=s$1.__emscripten_proxy_execute_task_queue=s$1.asm.yb).apply(null,arguments)},xe=s$1.__emscripten_thread_free_data=function(){return(xe=s$1.__emscripten_thread_free_data=s$1.asm.zb).apply(null,arguments)},Te$3=s$1.__emscripten_thread_exit=function(){return(Te$3=s$1.__emscripten_thread_exit=s$1.asm.Ab).apply(null,arguments)},Se$1=s$1._setThrew=function(){return(Se$1=s$1._setThrew=s$1.asm.Bb).apply(null,arguments)},Oe$2=s$1._emscripten_stack_set_limits=function(){return(Oe$2=s$1._emscripten_stack_set_limits=s$1.asm.Cb).apply(null,arguments)},Ae$1=s$1.stackSave=function(){return(Ae$1=s$1.stackSave=s$1.asm.Db).apply(null,arguments)},Ee$2=s$1.stackRestore=function(){return(Ee$2=s$1.stackRestore=s$1.asm.Eb).apply(null,arguments)},Ie=s$1.stackAlloc=function(){return(Ie=s$1.stackAlloc=s$1.asm.Fb).apply(null,arguments)},Pe$2=s$1.___cxa_can_catch=function(){return(Pe$2=s$1.___cxa_can_catch=s$1.asm.Gb).apply(null,arguments)},De=s$1.___cxa_is_pointer_type=function(){return(De=s$1.___cxa_is_pointer_type=s$1.asm.Hb).apply(null,arguments)},$e$1=s$1.dynCall_j=function(){return($e$1=s$1.dynCall_j=s$1.asm.Ib).apply(null,arguments)},ke$1=s$1.dynCall_iiiiij=function(){return(ke$1=s$1.dynCall_iiiiij=s$1.asm.Jb).apply(null,arguments)},Ce$3=s$1.dynCall_jii=function(){return(Ce$3=s$1.dynCall_jii=s$1.asm.Kb).apply(null,arguments)},Fe=s$1.dynCall_viiiiij=function(){return(Fe=s$1.dynCall_viiiiij=s$1.asm.Lb).apply(null,arguments)},Ne$1=s$1.dynCall_vjji=function(){return(Ne$1=s$1.dynCall_vjji=s$1.asm.Mb).apply(null,arguments)},Le$1=s$1.dynCall_viiijjjii=function(){return(Le$1=s$1.dynCall_viiijjjii=s$1.asm.Nb).apply(null,arguments)},Re$1=s$1.dynCall_iij=function(){return(Re$1=s$1.dynCall_iij=s$1.asm.Ob).apply(null,arguments)},je=s$1.dynCall_ji=function(){return(je=s$1.dynCall_ji=s$1.asm.Pb).apply(null,arguments)},Me$2=s$1.dynCall_iiiiiij=function(){return(Me$2=s$1.dynCall_iiiiiij=s$1.asm.Qb).apply(null,arguments)},Ue=s$1.dynCall_iiij=function(){return(Ue=s$1.dynCall_iiij=s$1.asm.Rb).apply(null,arguments)};function Ve$1(){function t$2(){if(!_e$2&&(_e$2=!0,s$1.calledRun=!0,!M$1)&&(x$3||ht$3(Y$2),u$1(s$1),s$1.onRuntimeInitialized&&s$1.onRuntimeInitialized(),!x$3)){if(s$1.postRun)for(typeof s$1.postRun==`function`&&(s$1.postRun=[s$1.postRun]);s$1.postRun.length;){var t$3=s$1.postRun.shift();Z$1.unshift(t$3)}ht$3(Z$1)}}if(!(0{var _scriptDir,r$2=(_scriptDir=(_scriptDir=typeof document<`u`&&document.currentScript?document.currentScript.src:void 0)||`/index.js`,function(t$1){var e$4,r$3,i$1;t$1||={},e$4||=t$1===void 0?{}:t$1,e$4.ready=new Promise(function(t$2,e$5){r$3=t$2,i$1=e$5});var o$1,a$2,s$1,u$1,c$4,l$1,p$5=Object.assign({},e$4),f$3=`./this.program`,d$2=(t$2,e$5)=>{throw e$5},h$3=typeof window==`object`,g$2=typeof importScripts==`function`,b$3=typeof process==`object`&&typeof process.versions==`object`&&typeof process.versions.node==`string`,m$2=``;b$3?(m$2=g$2?n$2(908).dirname(m$2)+`/`:`//`,l$1=()=>{c$4||(u$1=n$2(1384),c$4=n$2(908))},o$1=function(t$2,e$5){return l$1(),t$2=c$4.normalize(t$2),u$1.readFileSync(t$2,e$5?void 0:`utf8`)},s$1=t$2=>((t$2=o$1(t$2,!0)).buffer||(t$2=new Uint8Array(t$2)),t$2),a$2=(t$2,e$5,n$3)=>{l$1(),t$2=c$4.normalize(t$2),u$1.readFile(t$2,function(t$3,r$4){t$3?n$3(t$3):e$5(r$4.buffer)})},1{if(w$1||0{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.send(null),e$5.responseText},g$2&&(s$1=t$2=>{var e$5=new XMLHttpRequest;return e$5.open(`GET`,t$2,!1),e$5.responseType=`arraybuffer`,e$5.send(null),new Uint8Array(e$5.response)}),a$2=(t$2,e$5,n$3)=>{var r$4=new XMLHttpRequest;r$4.open(`GET`,t$2,!0),r$4.responseType=`arraybuffer`,r$4.onload=()=>{r$4.status==200||r$4.status==0&&r$4.response?e$5(r$4.response):n$3()},r$4.onerror=n$3,r$4.send(null)});var y$2,_$2=e$4.print||console.log.bind(console),v$1=e$4.printErr||console.warn.bind(console);Object.assign(e$4,p$5),p$5=null,e$4.thisProgram&&(f$3=e$4.thisProgram),e$4.quit&&(d$2=e$4.quit),e$4.wasmBinary&&(y$2=e$4.wasmBinary);var w$1=e$4.noExitRuntime||!1;typeof WebAssembly!=`object`&&W$1(`no native wasm support detected`);var x$3,T$1,S$2,O$2,A$1,E$2,I=!1,P$1=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function D$1(t$2,e$5,n$3){var r$4=(e$5>>>=0)+n$3;for(n$3=e$5;t$2[n$3]&&!(n$3>=r$4);)++n$3;if(16(i$2=(240&i$2)==224?(15&i$2)<<12|o$2<<6|a$3:(7&i$2)<<18|o$2<<12|a$3<<6|63&t$2[e$5++])?r$4+=String.fromCharCode(i$2):(i$2-=65536,r$4+=String.fromCharCode(55296|i$2>>10,56320|1023&i$2))}}else r$4+=String.fromCharCode(i$2)}return r$4}function $$1(t$2,e$5){return(t$2>>>=0)?D$1(O$2,t$2,e$5):``}function k$4(t$2,e$5,n$3,r$4){if(!(0>>=0;r$4=n$3+r$4-1;for(var o$2=0;o$2=a$3&&(a$3=65536+((1023&a$3)<<10)|1023&t$2.charCodeAt(++o$2)),127>=a$3){if(n$3>=r$4)break;e$5[n$3++>>>0]=a$3}else{if(2047>=a$3){if(n$3+1>=r$4)break;e$5[n$3++>>>0]=192|a$3>>6}else{if(65535>=a$3){if(n$3+2>=r$4)break;e$5[n$3++>>>0]=224|a$3>>12}else{if(n$3+3>=r$4)break;e$5[n$3++>>>0]=240|a$3>>18,e$5[n$3++>>>0]=128|a$3>>12&63}e$5[n$3++>>>0]=128|a$3>>6&63}e$5[n$3++>>>0]=128|63&a$3}}return e$5[n$3>>>0]=0,n$3-i$2}function C$3(t$2){for(var e$5=0,n$3=0;n$3=r$4?e$5++:2047>=r$4?e$5+=2:55296<=r$4&&57343>=r$4?(e$5+=4,++n$3):e$5+=3}return e$5}function F$2(){var t$2=x$3.buffer;T$1=t$2,e$4.HEAP8=S$2=new Int8Array(t$2),e$4.HEAP16=new Int16Array(t$2),e$4.HEAP32=A$1=new Int32Array(t$2),e$4.HEAPU8=O$2=new Uint8Array(t$2),e$4.HEAPU16=new Uint16Array(t$2),e$4.HEAPU32=E$2=new Uint32Array(t$2),e$4.HEAPF32=new Float32Array(t$2),e$4.HEAPF64=new Float64Array(t$2)}var N$1,L$1=[],R$1=[],j$1=[],M$1=[],U=0;function V$1(){var t$2=e$4.preRun.shift();L$1.unshift(t$2)}var B$2,z$2=0,G$1=null,H$2=null;function W$1(t$2){throw e$4.onAbort&&e$4.onAbort(t$2),v$1(t$2=`Aborted(`+t$2+`)`),I=!0,t$2=new WebAssembly.RuntimeError(t$2+`. Build with -sASSERTIONS for more info.`),i$1(t$2),t$2}function q$1(){return B$2.startsWith(`data:application/octet-stream;base64,`)}if(B$2=`ort-wasm.wasm`,!q$1()){var X$2=B$2;B$2=e$4.locateFile?e$4.locateFile(X$2,m$2):m$2+X$2}function Y$2(){var t$2=B$2;try{if(t$2==B$2&&y$2)return new Uint8Array(y$2);if(s$1)return s$1(t$2);throw`both async and sync fetching of the wasm failed`}catch(t$3){W$1(t$3)}}function K$1(t$2){this.name=`ExitStatus`,this.message=`Program terminated with exit(`+t$2+`)`,this.status=t$2}function Z$1(t$2){for(;0>2>>>0]=t$3},this.Eb=function(){return E$2[this.zb+4>>2>>>0]},this.Sb=function(t$3){E$2[this.zb+8>>2>>>0]=t$3},this.Wb=function(){return E$2[this.zb+8>>2>>>0]},this.Tb=function(){A$1[this.zb>>2>>>0]=0},this.Ib=function(t$3){S$2[this.zb+12>>0>>>0]=t$3?1:0},this.Pb=function(){return S$2[this.zb+12>>0>>>0]!=0},this.Jb=function(t$3){S$2[this.zb+13>>0>>>0]=t$3?1:0},this.Lb=function(){return S$2[this.zb+13>>0>>>0]!=0},this.Rb=function(t$3,e$5){this.Fb(0),this.Ub(t$3),this.Sb(e$5),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){A$1[this.zb>>2>>>0]+=1},this.Xb=function(){var t$3=A$1[this.zb>>2>>>0];return A$1[this.zb>>2>>>0]=t$3-1,t$3===1},this.Fb=function(t$3){E$2[this.zb+16>>2>>>0]=t$3},this.Ob=function(){return E$2[this.zb+16>>2>>>0]},this.Qb=function(){if(Et$2(this.Eb()))return E$2[this.Db>>2>>>0];var t$3=this.Ob();return t$3===0?this.Db:t$3}}function nt$2(t$2){return _t$3(new et$2(t$2).zb)}var rt$3=[];function it$1(t$2){var e$5=rt$3[t$2];return e$5||(t$2>=rt$3.length&&(rt$3.length=t$2+1),rt$3[t$2]=e$5=N$1.get(t$2)),e$5}function ot$1(t$2){var e$5=C$3(t$2)+1,n$3=yt$3(e$5);return n$3&&k$4(t$2,S$2,n$3,e$5),n$3}var at$1={};function st$2(){if(!ut$2){var t$2,e$5={USER:`web_user`,LOGNAME:`web_user`,PATH:`/`,PWD:`/`,HOME:`/home/web_user`,LANG:(typeof navigator==`object`&&navigator.languages&&navigator.languages[0]||`C`).replace(`-`,`_`)+`.UTF-8`,_:f$3||`./this.program`};for(t$2 in at$1)at$1[t$2]===void 0?delete e$5[t$2]:e$5[t$2]=at$1[t$2];var n$3=[];for(t$2 in e$5)n$3.push(t$2+`=`+e$5[t$2]);ut$2=n$3}return ut$2}var ut$2,ct$2=[null,[],[]];function lt$1(t$2,e$5){var n$3=ct$2[t$2];e$5===0||e$5===10?((t$2===1?_$2:v$1)(D$1(n$3,0)),n$3.length=0):n$3.push(e$5)}var pt$2=0;function ft$2(t$2){return t$2%4==0&&(t$2%100!=0||t$2%400==0)}var dt$4=[31,29,31,30,31,30,31,31,30,31,30,31],ht$3=[31,28,31,30,31,30,31,31,30,31,30,31];function gt$3(t$2,e$5,n$3,r$4){function i$2(t$3,e$6,n$4){for(t$3=typeof t$3==`number`?t$3.toString():t$3||``;t$3.lengtht$4?-1:0r$5-t$3.getDate())){t$3.setDate(t$3.getDate()+e$6);break}e$6-=r$5-t$3.getDate()+1,t$3.setDate(1),11>n$4?t$3.setMonth(n$4+1):(t$3.setMonth(0),t$3.setFullYear(t$3.getFullYear()+1))}return n$4=new Date(t$3.getFullYear()+1,0,4),e$6=s$2(new Date(t$3.getFullYear(),0,4)),n$4=s$2(n$4),0>=a$3(e$6,t$3)?0>=a$3(n$4,t$3)?t$3.getFullYear()+1:t$3.getFullYear():t$3.getFullYear()-1}var c$5=A$1[r$4+40>>2>>>0];for(var l$2 in r$4={$b:A$1[r$4>>2>>>0],Zb:A$1[r$4+4>>2>>>0],Gb:A$1[r$4+8>>2>>>0],Kb:A$1[r$4+12>>2>>>0],Hb:A$1[r$4+16>>2>>>0],Cb:A$1[r$4+20>>2>>>0],Ab:A$1[r$4+24>>2>>>0],Bb:A$1[r$4+28>>2>>>0],bc:A$1[r$4+32>>2>>>0],Yb:A$1[r$4+36>>2>>>0],ac:c$5?$$1(c$5):``},n$3=$$1(n$3),c$5={"%c":`%a %b %d %H:%M:%S %Y`,"%D":`%m/%d/%y`,"%F":`%Y-%m-%d`,"%h":`%b`,"%r":`%I:%M:%S %p`,"%R":`%H:%M`,"%T":`%H:%M:%S`,"%x":`%m/%d/%y`,"%X":`%H:%M:%S`,"%Ec":`%c`,"%EC":`%C`,"%Ex":`%m/%d/%y`,"%EX":`%H:%M:%S`,"%Ey":`%y`,"%EY":`%Y`,"%Od":`%d`,"%Oe":`%e`,"%OH":`%H`,"%OI":`%I`,"%Om":`%m`,"%OM":`%M`,"%OS":`%S`,"%Ou":`%u`,"%OU":`%U`,"%OV":`%V`,"%Ow":`%w`,"%OW":`%W`,"%Oy":`%y`})n$3=n$3.replace(new RegExp(l$2,`g`),c$5[l$2]);var p$6=`Sunday Monday Tuesday Wednesday Thursday Friday Saturday`.split(` `),f$4=`January February March April May June July August September October November December`.split(` `);for(l$2 in c$5={"%a":function(t$3){return p$6[t$3.Ab].substring(0,3)},"%A":function(t$3){return p$6[t$3.Ab]},"%b":function(t$3){return f$4[t$3.Hb].substring(0,3)},"%B":function(t$3){return f$4[t$3.Hb]},"%C":function(t$3){return o$2((t$3.Cb+1900)/100|0,2)},"%d":function(t$3){return o$2(t$3.Kb,2)},"%e":function(t$3){return i$2(t$3.Kb,2,` `)},"%g":function(t$3){return u$2(t$3).toString().substring(2)},"%G":function(t$3){return u$2(t$3)},"%H":function(t$3){return o$2(t$3.Gb,2)},"%I":function(t$3){return(t$3=t$3.Gb)==0?t$3=12:12t$3.Gb?`AM`:`PM`},"%S":function(t$3){return o$2(t$3.$b,2)},"%t":function(){return` `},"%u":function(t$3){return t$3.Ab||7},"%U":function(t$3){return o$2(Math.floor((t$3.Bb+7-t$3.Ab)/7),2)},"%V":function(t$3){var e$6=Math.floor((t$3.Bb+7-(t$3.Ab+6)%7)/7);if(2>=(t$3.Ab+371-t$3.Bb-2)%7&&e$6++,e$6)e$6==53&&((n$4=(t$3.Ab+371-t$3.Bb)%7)==4||n$4==3&&ft$2(t$3.Cb)||(e$6=1));else{e$6=52;var n$4=(t$3.Ab+7-t$3.Bb-1)%7;(n$4==4||n$4==5&&ft$2(t$3.Cb%400-1))&&e$6++}return o$2(e$6,2)},"%w":function(t$3){return t$3.Ab},"%W":function(t$3){return o$2(Math.floor((t$3.Bb+7-(t$3.Ab+6)%7)/7),2)},"%y":function(t$3){return(t$3.Cb+1900).toString().substring(2)},"%Y":function(t$3){return t$3.Cb+1900},"%z":function(t$3){var e$6=0<=(t$3=t$3.Yb);return t$3=Math.abs(t$3)/60,(e$6?`+`:`-`)+String(`0000`+(t$3/60*100+t$3%60)).slice(-4)},"%Z":function(t$3){return t$3.ac},"%%":function(){return`%`}},n$3=n$3.replace(/%%/g,`\0\0`),c$5)n$3.includes(l$2)&&(n$3=n$3.replace(new RegExp(l$2,`g`),c$5[l$2](r$4)));return l$2=function(t$3){var e$6=Array(C$3(t$3)+1);return k$4(t$3,e$6,0,e$6.length),e$6}(n$3=n$3.replace(/\0\0/g,`%`)),l$2.length>e$5?0:(S$2.set(l$2,t$2>>>0),l$2.length-1)}var bt$3={a:function(t$2){return yt$3(t$2+24)+24},m:function(t$2){return(t$2=new et$2(t$2)).Pb()||(t$2.Ib(!0),Q$3--),t$2.Jb(!1),J$1.push(t$2),t$2.Nb(),t$2.Qb()},ia:function(t$2){throw v$1(`Unexpected exception thrown, this is not properly supported - aborting`),I=!0,t$2},w:function(){xt$1(0);var t$2=J$1.pop();if(t$2.Xb()&&!t$2.Lb()){var e$5=t$2.Wb();e$5&&it$1(e$5)(t$2.Db),nt$2(t$2.Db)}tt$3=0},d:function(){var t$2=tt$3;if(!t$2)return pt$2=0;var e$5=new et$2(t$2);e$5.Fb(t$2);var n$3=e$5.Eb();if(!n$3)return pt$2=0,t$2;for(var r$4=Array.prototype.slice.call(arguments),i$2=0;i$2>>2]+4294967296*A$1[t$2+4>>>2])),A$1[e$5>>2>>>0]=t$2.getUTCSeconds(),A$1[e$5+4>>2>>>0]=t$2.getUTCMinutes(),A$1[e$5+8>>2>>>0]=t$2.getUTCHours(),A$1[e$5+12>>2>>>0]=t$2.getUTCDate(),A$1[e$5+16>>2>>>0]=t$2.getUTCMonth(),A$1[e$5+20>>2>>>0]=t$2.getUTCFullYear()-1900,A$1[e$5+24>>2>>>0]=t$2.getUTCDay(),A$1[e$5+28>>2>>>0]=(t$2.getTime()-Date.UTC(t$2.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t$2,e$5){t$2=new Date(1e3*(E$2[t$2>>>2]+4294967296*A$1[t$2+4>>>2])),A$1[e$5>>2>>>0]=t$2.getSeconds(),A$1[e$5+4>>2>>>0]=t$2.getMinutes(),A$1[e$5+8>>2>>>0]=t$2.getHours(),A$1[e$5+12>>2>>>0]=t$2.getDate(),A$1[e$5+16>>2>>>0]=t$2.getMonth(),A$1[e$5+20>>2>>>0]=t$2.getFullYear()-1900,A$1[e$5+24>>2>>>0]=t$2.getDay();var n$3=new Date(t$2.getFullYear(),0,1);A$1[e$5+28>>2>>>0]=(t$2.getTime()-n$3.getTime())/864e5|0,A$1[e$5+36>>2>>>0]=-60*t$2.getTimezoneOffset();var r$4=new Date(t$2.getFullYear(),6,1).getTimezoneOffset();n$3=n$3.getTimezoneOffset(),A$1[e$5+32>>2>>>0]=0|(r$4!=n$3&&t$2.getTimezoneOffset()==Math.min(n$3,r$4))},Fa:function(t$2){var e$5=new Date(A$1[t$2+20>>2>>>0]+1900,A$1[t$2+16>>2>>>0],A$1[t$2+12>>2>>>0],A$1[t$2+8>>2>>>0],A$1[t$2+4>>2>>>0],A$1[t$2>>2>>>0],0),n$3=A$1[t$2+32>>2>>>0],r$4=e$5.getTimezoneOffset(),i$2=new Date(e$5.getFullYear(),0,1),o$2=new Date(e$5.getFullYear(),6,1).getTimezoneOffset(),a$3=i$2.getTimezoneOffset(),s$2=Math.min(a$3,o$2);return 0>n$3?A$1[t$2+32>>2>>>0]=Number(o$2!=a$3&&s$2==r$4):0>2>>>0]=e$5.getDay(),A$1[t$2+28>>2>>>0]=(e$5.getTime()-i$2.getTime())/864e5|0,A$1[t$2>>2>>>0]=e$5.getSeconds(),A$1[t$2+4>>2>>>0]=e$5.getMinutes(),A$1[t$2+8>>2>>>0]=e$5.getHours(),A$1[t$2+12>>2>>>0]=e$5.getDate(),A$1[t$2+16>>2>>>0]=e$5.getMonth(),e$5.getTime()/1e3|0},sa:function(){return-52},ta:function(){},Ga:function t$2(e$5,n$3,r$4){t$2.Vb||(t$2.Vb=!0,function(t$3,e$6,n$4){function r$5(t$4){return(t$4=t$4.toTimeString().match(/\(([A-Za-z ]+)\)$/))?t$4[1]:`GMT`}var i$2=new Date().getFullYear(),o$2=new Date(i$2,0,1),a$3=new Date(i$2,6,1);i$2=o$2.getTimezoneOffset();var s$2=a$3.getTimezoneOffset();A$1[t$3>>2>>>0]=60*Math.max(i$2,s$2),A$1[e$6>>2>>>0]=Number(i$2!=s$2),t$3=r$5(o$2),e$6=r$5(a$3),t$3=ot$1(t$3),e$6=ot$1(e$6),s$2>2>>>0]=t$3,E$2[n$4+4>>2>>>0]=e$6):(E$2[n$4>>2>>>0]=e$6,E$2[n$4+4>>2>>>0]=t$3)}(e$5,n$3,r$4))},B:function(){W$1(``)},ma:function(){return 4294901760},I:b$3?()=>{var t$2=process.hrtime();return 1e3*t$2[0]+t$2[1]/1e6}:()=>performance.now(),xa:function(t$2,e$5,n$3){O$2.copyWithin(t$2>>>0,e$5>>>0,e$5+n$3>>>0)},G:function(t$2){var e$5=O$2.length;if(4294901760<(t$2>>>=0))return!1;for(var n$3=1;4>=n$3;n$3*=2){var r$4=e$5*(1+.2/n$3);r$4=Math.min(r$4,t$2+100663296);var i$2=Math;r$4=Math.max(t$2,r$4),i$2=i$2.min.call(i$2,4294901760,r$4+(65536-r$4%65536)%65536);t:{try{x$3.grow(i$2-T$1.byteLength+65535>>>16),F$2();var o$2=1;break t}catch{}o$2=void 0}if(o$2)return!0}return!1},va:function(t$2,e$5){var n$3=0;return st$2().forEach(function(r$4,i$2){var o$2=e$5+n$3;for(i$2=E$2[t$2+4*i$2>>2>>>0]=o$2,o$2=0;o$2>0>>>0]=r$4.charCodeAt(o$2);S$2[i$2>>0>>>0]=0,n$3+=r$4.length+1}),0},wa:function(t$2,e$5){var n$3=st$2();E$2[t$2>>2>>>0]=n$3.length;var r$4=0;return n$3.forEach(function(t$3){r$4+=t$3.length+1}),E$2[e$5>>2>>>0]=r$4,0},ba:function(t$2){w$1||0>2>>>0],s$2=E$2[e$5+4>>2>>>0];e$5+=8;for(var u$2=0;u$2>>0]);i$2+=s$2}return E$2[r$4>>2>>>0]=i$2,0},c:function(){return pt$2},ja:function t$2(e$5,r$4){t$2.Mb||=function(){if(typeof crypto==`object`&&typeof crypto.getRandomValues==`function`){var t$3=new Uint8Array(1);return()=>(crypto.getRandomValues(t$3),t$3[0])}if(b$3)try{var e$6=n$2(Object(function(){var t$4=Error(`Cannot find module 'crypto'`);throw t$4.code=`MODULE_NOT_FOUND`,t$4}()));return()=>e$6.randomBytes(1)[0]}catch{}return()=>W$1(`randomDevice`)}();for(var i$2=0;i$2>0>>>0]=t$2.Mb();return 0},ea:function(t$2,e$5,n$3){var r$4=Tt$3();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},fa:function(t$2,e$5,n$3){var r$4=Tt$3();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},J:function(t$2){var e$5=Tt$3();try{return it$1(t$2)()}catch(t$3){if(St$3(e$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},e:function(t$2,e$5){var n$3=Tt$3();try{return it$1(t$2)(e$5)}catch(t$3){if(St$3(n$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},N:function(t$2,e$5,n$3){var r$4=Tt$3();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},O:function(t$2,e$5,n$3){var r$4=Tt$3();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},j:function(t$2,e$5,n$3){var r$4=Tt$3();try{return it$1(t$2)(e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},o:function(t$2,e$5,n$3,r$4){var i$2=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4)}catch(t$3){if(St$3(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},p:function(t$2,e$5,n$3,r$4,i$2){var o$2=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(St$3(o$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},M:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$3(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},r:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$3(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},v:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(St$3(s$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},K:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$3(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},D:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Tt$3();try{return it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(St$3(f$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},X:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$3();try{return Lt$1(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$3(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},V:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Tt$3();try{return Pt$3(t$2,e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(St$3(s$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},U:function(t$2,e$5,n$3,r$4,i$2){var o$2=Tt$3();try{return Rt$1(t$2,e$5,n$3,r$4,i$2)}catch(t$3){if(St$3(o$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},Z:function(t$2,e$5,n$3,r$4){var i$2=Tt$3();try{return Ft$1(t$2,e$5,n$3,r$4)}catch(t$3){if(St$3(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},W:function(t$2){var e$5=Tt$3();try{return It$1(t$2)}catch(t$3){if(St$3(e$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},Y:function(t$2,e$5){var n$3=Tt$3();try{return Nt$1(t$2,e$5)}catch(t$3){if(St$3(n$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},T:function(t$2,e$5,n$3){var r$4=Tt$3();try{return Dt$2(t$2,e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},f:function(t$2){var e$5=Tt$3();try{it$1(t$2)()}catch(t$3){if(St$3(e$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},q:function(t$2,e$5){var n$3=Tt$3();try{it$1(t$2)(e$5)}catch(t$3){if(St$3(n$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},h:function(t$2,e$5,n$3){var r$4=Tt$3();try{it$1(t$2)(e$5,n$3)}catch(t$3){if(St$3(r$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},da:function(t$2,e$5,n$3,r$4){var i$2=Tt$3();try{it$1(t$2)(e$5,n$3,r$4)}catch(t$3){if(St$3(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},l:function(t$2,e$5,n$3,r$4){var i$2=Tt$3();try{it$1(t$2)(e$5,n$3,r$4)}catch(t$3){if(St$3(i$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},t:function(t$2,e$5,n$3,r$4,i$2){var o$2=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2)}catch(t$3){if(St$3(o$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},u:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$3(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},x:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3){var s$2=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3)}catch(t$3){if(St$3(s$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},z:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$3(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},ga:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2){var c$5=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2)}catch(t$3){if(St$3(c$5),t$3!==t$3+0)throw t$3;xt$1(1,0)}},A:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2){var p$6=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2)}catch(t$3){if(St$3(p$6),t$3!==t$3+0)throw t$3;xt$1(1,0)}},C:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3){var b$4=Tt$3();try{it$1(t$2)(e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6,f$4,d$3,h$4,g$3)}catch(t$3){if(St$3(b$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},aa:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2){var u$2=Tt$3();try{$t$2(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2)}catch(t$3){if(St$3(u$2),t$3!==t$3+0)throw t$3;xt$1(1,0)}},_:function(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6){var f$4=Tt$3();try{Ct$2(t$2,e$5,n$3,r$4,i$2,o$2,a$3,s$2,u$2,c$5,l$2,p$6)}catch(t$3){if(St$3(f$4),t$3!==t$3+0)throw t$3;xt$1(1,0)}},$:function(t$2,e$5,n$3,r$4,i$2,o$2){var a$3=Tt$3();try{kt$1(t$2,e$5,n$3,r$4,i$2,o$2)}catch(t$3){if(St$3(a$3),t$3!==t$3+0)throw t$3;xt$1(1,0)}},n:function(t$2){return t$2},F:function(t$2){pt$2=t$2},ha:gt$3,y:function(t$2,e$5,n$3,r$4){return gt$3(t$2,e$5,n$3,r$4)}};(function(){function t$2(t$3){e$4.asm=t$3.exports,x$3=e$4.asm.Ka,F$2(),N$1=e$4.asm.ib,R$1.unshift(e$4.asm.La),z$2--,e$4.monitorRunDependencies&&e$4.monitorRunDependencies(z$2),z$2==0&&(G$1!==null&&(clearInterval(G$1),G$1=null),H$2&&(t$3=H$2,H$2=null,t$3()))}function n$3(e$5){t$2(e$5.instance)}function r$4(t$3){return function(){if(!y$2&&(h$3||g$2)){if(typeof fetch==`function`&&!B$2.startsWith(`file://`))return fetch(B$2,{credentials:`same-origin`}).then(function(t$4){if(!t$4.ok)throw`failed to load wasm binary file at '`+B$2+`'`;return t$4.arrayBuffer()}).catch(function(){return Y$2()});if(a$2)return new Promise(function(t$4,e$5){a$2(B$2,function(e$6){t$4(new Uint8Array(e$6))},e$5)})}return Promise.resolve().then(function(){return Y$2()})}().then(function(t$4){return WebAssembly.instantiate(t$4,o$2)}).then(function(t$4){return t$4}).then(t$3,function(t$4){v$1(`failed to asynchronously prepare wasm: `+t$4),W$1(t$4)})}var o$2={a:bt$3};if(z$2++,e$4.monitorRunDependencies&&e$4.monitorRunDependencies(z$2),e$4.instantiateWasm)try{return e$4.instantiateWasm(o$2,t$2)}catch(t$3){return v$1(`Module.instantiateWasm callback failed with error: `+t$3),!1}(y$2||typeof WebAssembly.instantiateStreaming!=`function`||q$1()||B$2.startsWith(`file://`)||b$3||typeof fetch!=`function`?r$4(n$3):fetch(B$2,{credentials:`same-origin`}).then(function(t$3){return WebAssembly.instantiateStreaming(t$3,o$2).then(n$3,function(t$4){return v$1(`wasm streaming compile failed: `+t$4),v$1(`falling back to ArrayBuffer instantiation`),r$4(n$3)})})).catch(i$1)})(),e$4.___wasm_call_ctors=function(){return(e$4.___wasm_call_ctors=e$4.asm.La).apply(null,arguments)},e$4._OrtInit=function(){return(e$4._OrtInit=e$4.asm.Ma).apply(null,arguments)},e$4._OrtCreateSessionOptions=function(){return(e$4._OrtCreateSessionOptions=e$4.asm.Na).apply(null,arguments)},e$4._OrtAppendExecutionProvider=function(){return(e$4._OrtAppendExecutionProvider=e$4.asm.Oa).apply(null,arguments)},e$4._OrtAddSessionConfigEntry=function(){return(e$4._OrtAddSessionConfigEntry=e$4.asm.Pa).apply(null,arguments)},e$4._OrtReleaseSessionOptions=function(){return(e$4._OrtReleaseSessionOptions=e$4.asm.Qa).apply(null,arguments)},e$4._OrtCreateSession=function(){return(e$4._OrtCreateSession=e$4.asm.Ra).apply(null,arguments)},e$4._OrtReleaseSession=function(){return(e$4._OrtReleaseSession=e$4.asm.Sa).apply(null,arguments)},e$4._OrtGetInputCount=function(){return(e$4._OrtGetInputCount=e$4.asm.Ta).apply(null,arguments)},e$4._OrtGetOutputCount=function(){return(e$4._OrtGetOutputCount=e$4.asm.Ua).apply(null,arguments)},e$4._OrtGetInputName=function(){return(e$4._OrtGetInputName=e$4.asm.Va).apply(null,arguments)},e$4._OrtGetOutputName=function(){return(e$4._OrtGetOutputName=e$4.asm.Wa).apply(null,arguments)},e$4._OrtFree=function(){return(e$4._OrtFree=e$4.asm.Xa).apply(null,arguments)},e$4._OrtCreateTensor=function(){return(e$4._OrtCreateTensor=e$4.asm.Ya).apply(null,arguments)},e$4._OrtGetTensorData=function(){return(e$4._OrtGetTensorData=e$4.asm.Za).apply(null,arguments)},e$4._OrtReleaseTensor=function(){return(e$4._OrtReleaseTensor=e$4.asm._a).apply(null,arguments)},e$4._OrtCreateRunOptions=function(){return(e$4._OrtCreateRunOptions=e$4.asm.$a).apply(null,arguments)},e$4._OrtAddRunConfigEntry=function(){return(e$4._OrtAddRunConfigEntry=e$4.asm.ab).apply(null,arguments)},e$4._OrtReleaseRunOptions=function(){return(e$4._OrtReleaseRunOptions=e$4.asm.bb).apply(null,arguments)},e$4._OrtRun=function(){return(e$4._OrtRun=e$4.asm.cb).apply(null,arguments)},e$4._OrtEndProfiling=function(){return(e$4._OrtEndProfiling=e$4.asm.db).apply(null,arguments)};var mt$3,yt$3=e$4._malloc=function(){return(yt$3=e$4._malloc=e$4.asm.eb).apply(null,arguments)},_t$3=e$4._free=function(){return(_t$3=e$4._free=e$4.asm.fb).apply(null,arguments)},vt$3=e$4._fflush=function(){return(vt$3=e$4._fflush=e$4.asm.gb).apply(null,arguments)},wt$3=e$4.___funcs_on_exit=function(){return(wt$3=e$4.___funcs_on_exit=e$4.asm.hb).apply(null,arguments)},xt$1=e$4._setThrew=function(){return(xt$1=e$4._setThrew=e$4.asm.jb).apply(null,arguments)},Tt$3=e$4.stackSave=function(){return(Tt$3=e$4.stackSave=e$4.asm.kb).apply(null,arguments)},St$3=e$4.stackRestore=function(){return(St$3=e$4.stackRestore=e$4.asm.lb).apply(null,arguments)},Ot$2=e$4.stackAlloc=function(){return(Ot$2=e$4.stackAlloc=e$4.asm.mb).apply(null,arguments)},At$1=e$4.___cxa_can_catch=function(){return(At$1=e$4.___cxa_can_catch=e$4.asm.nb).apply(null,arguments)},Et$2=e$4.___cxa_is_pointer_type=function(){return(Et$2=e$4.___cxa_is_pointer_type=e$4.asm.ob).apply(null,arguments)},It$1=e$4.dynCall_j=function(){return(It$1=e$4.dynCall_j=e$4.asm.pb).apply(null,arguments)},Pt$3=e$4.dynCall_iiiiij=function(){return(Pt$3=e$4.dynCall_iiiiij=e$4.asm.qb).apply(null,arguments)},Dt$2=e$4.dynCall_jii=function(){return(Dt$2=e$4.dynCall_jii=e$4.asm.rb).apply(null,arguments)},$t$2=e$4.dynCall_viiiiij=function(){return($t$2=e$4.dynCall_viiiiij=e$4.asm.sb).apply(null,arguments)},kt$1=e$4.dynCall_vjji=function(){return(kt$1=e$4.dynCall_vjji=e$4.asm.tb).apply(null,arguments)},Ct$2=e$4.dynCall_viiijjjii=function(){return(Ct$2=e$4.dynCall_viiijjjii=e$4.asm.ub).apply(null,arguments)},Ft$1=e$4.dynCall_iij=function(){return(Ft$1=e$4.dynCall_iij=e$4.asm.vb).apply(null,arguments)},Nt$1=e$4.dynCall_ji=function(){return(Nt$1=e$4.dynCall_ji=e$4.asm.wb).apply(null,arguments)},Lt$1=e$4.dynCall_iiiiiij=function(){return(Lt$1=e$4.dynCall_iiiiiij=e$4.asm.xb).apply(null,arguments)},Rt$1=e$4.dynCall_iiij=function(){return(Rt$1=e$4.dynCall_iiij=e$4.asm.yb).apply(null,arguments)};function jt$1(){function t$2(){if(!mt$3&&(mt$3=!0,e$4.calledRun=!0,!I)){if(Z$1(R$1),r$3(e$4),e$4.onRuntimeInitialized&&e$4.onRuntimeInitialized(),e$4.postRun)for(typeof e$4.postRun==`function`&&(e$4.postRun=[e$4.postRun]);e$4.postRun.length;){var t$3=e$4.postRun.shift();M$1.unshift(t$3)}Z$1(M$1)}}if(!(0{"use strict";t.exports=function(t$1,e$3){for(var n$2=Array(arguments.length-1),r$2=0,i$1=2,o$1=!0;i$1{"use strict";var n$2=e$3;n$2.length=function(t$1){var e$4=t$1.length;if(!e$4)return 0;for(var n$3=0;--e$4%4>1&&t$1.charAt(e$4)===`=`;)++n$3;return Math.ceil(3*t$1.length)/4-n$3};for(var r$2=Array(64),i$1=Array(123),o$1=0;o$1<64;)i$1[r$2[o$1]=o$1<26?o$1+65:o$1<52?o$1+71:o$1<62?o$1-4:o$1-59|43]=o$1++;n$2.encode=function(t$1,e$4,n$3){for(var i$2,o$2=null,a$3=[],s$1=0,u$1=0;e$4>2],i$2=(3&c$4)<<4,u$1=1;break;case 1:a$3[s$1++]=r$2[i$2|c$4>>4],i$2=(15&c$4)<<2,u$1=2;break;case 2:a$3[s$1++]=r$2[i$2|c$4>>6],a$3[s$1++]=r$2[63&c$4],u$1=0}s$1>8191&&((o$2||=[]).push(String.fromCharCode.apply(String,a$3)),s$1=0)}return u$1&&(a$3[s$1++]=r$2[i$2],a$3[s$1++]=61,u$1===1&&(a$3[s$1++]=61)),o$2?(s$1&&o$2.push(String.fromCharCode.apply(String,a$3.slice(0,s$1))),o$2.join(``)):String.fromCharCode.apply(String,a$3.slice(0,s$1))};var a$2=`invalid encoding`;n$2.decode=function(t$1,e$4,n$3){for(var r$3,o$2=n$3,s$1=0,u$1=0;u$11)break;if((c$4=i$1[c$4])===void 0)throw Error(a$2);switch(s$1){case 0:r$3=c$4,s$1=1;break;case 1:e$4[n$3++]=r$3<<2|(48&c$4)>>4,r$3=c$4,s$1=2;break;case 2:e$4[n$3++]=(15&r$3)<<4|(60&c$4)>>2,r$3=c$4,s$1=3;break;case 3:e$4[n$3++]=(3&r$3)<<6|c$4,s$1=0}}if(s$1===1)throw Error(a$2);return n$3-o$2},n$2.test=function(t$1){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t$1)}},9211:t=>{"use strict";function e$3(){this._listeners={}}t.exports=e$3,e$3.prototype.on=function(t$1,e$4,n$2){return(this._listeners[t$1]||(this._listeners[t$1]=[])).push({fn:e$4,ctx:n$2||this}),this},e$3.prototype.off=function(t$1,e$4){if(t$1===void 0)this._listeners={};else if(e$4===void 0)this._listeners[t$1]=[];else for(var n$2=this._listeners[t$1],r$2=0;r$2{"use strict";function e$3(t$1){return typeof Float32Array<`u`?function(){var e$4=new Float32Array([-0]),n$3=new Uint8Array(e$4.buffer),r$3=n$3[3]===128;function i$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[0],r$4[i$3+1]=n$3[1],r$4[i$3+2]=n$3[2],r$4[i$3+3]=n$3[3]}function o$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[3],r$4[i$3+1]=n$3[2],r$4[i$3+2]=n$3[1],r$4[i$3+3]=n$3[0]}function a$2(t$2,r$4){return n$3[0]=t$2[r$4],n$3[1]=t$2[r$4+1],n$3[2]=t$2[r$4+2],n$3[3]=t$2[r$4+3],e$4[0]}function s$1(t$2,r$4){return n$3[3]=t$2[r$4],n$3[2]=t$2[r$4+1],n$3[1]=t$2[r$4+2],n$3[0]=t$2[r$4+3],e$4[0]}t$1.writeFloatLE=r$3?i$2:o$2,t$1.writeFloatBE=r$3?o$2:i$2,t$1.readFloatLE=r$3?a$2:s$1,t$1.readFloatBE=r$3?s$1:a$2}():function(){function e$4(t$2,e$5,n$3,r$3){var i$2=e$5<0?1:0;if(i$2&&(e$5=-e$5),e$5===0)t$2(1/e$5>0?0:2147483648,n$3,r$3);else if(isNaN(e$5))t$2(2143289344,n$3,r$3);else if(e$5>34028234663852886e22)t$2((i$2<<31|2139095040)>>>0,n$3,r$3);else if(e$5<11754943508222875e-54)t$2((i$2<<31|Math.round(e$5/1401298464324817e-60))>>>0,n$3,r$3);else{var o$2=Math.floor(Math.log(e$5)/Math.LN2);t$2((i$2<<31|o$2+127<<23|8388607&Math.round(e$5*2**-o$2*8388608))>>>0,n$3,r$3)}}function a$2(t$2,e$5,n$3){var r$3=t$2(e$5,n$3),i$2=2*(r$3>>31)+1,o$2=r$3>>>23&255,a$3=8388607&r$3;return o$2===255?a$3?NaN:i$2*(1/0):o$2===0?1401298464324817e-60*i$2*a$3:i$2*2**(o$2-150)*(a$3+8388608)}t$1.writeFloatLE=e$4.bind(null,n$2),t$1.writeFloatBE=e$4.bind(null,r$2),t$1.readFloatLE=a$2.bind(null,i$1),t$1.readFloatBE=a$2.bind(null,o$1)}(),typeof Float64Array<`u`?function(){var e$4=new Float64Array([-0]),n$3=new Uint8Array(e$4.buffer),r$3=n$3[7]===128;function i$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[0],r$4[i$3+1]=n$3[1],r$4[i$3+2]=n$3[2],r$4[i$3+3]=n$3[3],r$4[i$3+4]=n$3[4],r$4[i$3+5]=n$3[5],r$4[i$3+6]=n$3[6],r$4[i$3+7]=n$3[7]}function o$2(t$2,r$4,i$3){e$4[0]=t$2,r$4[i$3]=n$3[7],r$4[i$3+1]=n$3[6],r$4[i$3+2]=n$3[5],r$4[i$3+3]=n$3[4],r$4[i$3+4]=n$3[3],r$4[i$3+5]=n$3[2],r$4[i$3+6]=n$3[1],r$4[i$3+7]=n$3[0]}function a$2(t$2,r$4){return n$3[0]=t$2[r$4],n$3[1]=t$2[r$4+1],n$3[2]=t$2[r$4+2],n$3[3]=t$2[r$4+3],n$3[4]=t$2[r$4+4],n$3[5]=t$2[r$4+5],n$3[6]=t$2[r$4+6],n$3[7]=t$2[r$4+7],e$4[0]}function s$1(t$2,r$4){return n$3[7]=t$2[r$4],n$3[6]=t$2[r$4+1],n$3[5]=t$2[r$4+2],n$3[4]=t$2[r$4+3],n$3[3]=t$2[r$4+4],n$3[2]=t$2[r$4+5],n$3[1]=t$2[r$4+6],n$3[0]=t$2[r$4+7],e$4[0]}t$1.writeDoubleLE=r$3?i$2:o$2,t$1.writeDoubleBE=r$3?o$2:i$2,t$1.readDoubleLE=r$3?a$2:s$1,t$1.readDoubleBE=r$3?s$1:a$2}():function(){function e$4(t$2,e$5,n$3,r$3,i$2,o$2){var a$3=r$3<0?1:0;if(a$3&&(r$3=-r$3),r$3===0)t$2(0,i$2,o$2+e$5),t$2(1/r$3>0?0:2147483648,i$2,o$2+n$3);else if(isNaN(r$3))t$2(0,i$2,o$2+e$5),t$2(2146959360,i$2,o$2+n$3);else if(r$3>17976931348623157e292)t$2(0,i$2,o$2+e$5),t$2((a$3<<31|2146435072)>>>0,i$2,o$2+n$3);else{var s$1;if(r$3<22250738585072014e-324)t$2((s$1=r$3/5e-324)>>>0,i$2,o$2+e$5),t$2((a$3<<31|s$1/4294967296)>>>0,i$2,o$2+n$3);else{var u$1=Math.floor(Math.log(r$3)/Math.LN2);u$1===1024&&(u$1=1023),t$2(4503599627370496*(s$1=r$3*2**-u$1)>>>0,i$2,o$2+e$5),t$2((a$3<<31|u$1+1023<<20|1048576*s$1&1048575)>>>0,i$2,o$2+n$3)}}}function a$2(t$2,e$5,n$3,r$3,i$2){var o$2=t$2(r$3,i$2+e$5),a$3=t$2(r$3,i$2+n$3),s$1=2*(a$3>>31)+1,u$1=a$3>>>20&2047,c$4=4294967296*(1048575&a$3)+o$2;return u$1===2047?c$4?NaN:s$1*(1/0):u$1===0?5e-324*s$1*c$4:s$1*2**(u$1-1075)*(c$4+4503599627370496)}t$1.writeDoubleLE=e$4.bind(null,n$2,0,4),t$1.writeDoubleBE=e$4.bind(null,r$2,4,0),t$1.readDoubleLE=a$2.bind(null,i$1,0,4),t$1.readDoubleBE=a$2.bind(null,o$1,4,0)}(),t$1}function n$2(t$1,e$4,n$3){e$4[n$3]=255&t$1,e$4[n$3+1]=t$1>>>8&255,e$4[n$3+2]=t$1>>>16&255,e$4[n$3+3]=t$1>>>24}function r$2(t$1,e$4,n$3){e$4[n$3]=t$1>>>24,e$4[n$3+1]=t$1>>>16&255,e$4[n$3+2]=t$1>>>8&255,e$4[n$3+3]=255&t$1}function i$1(t$1,e$4){return(t$1[e$4]|t$1[e$4+1]<<8|t$1[e$4+2]<<16|t$1[e$4+3]<<24)>>>0}function o$1(t$1,e$4){return(t$1[e$4]<<24|t$1[e$4+1]<<16|t$1[e$4+2]<<8|t$1[e$4+3])>>>0}t.exports=e$3(e$3)},7199:module$1=>{"use strict";function inquire(moduleName){try{var mod=eval(`quire`.replace(/^/,`re`))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch{}return null}module$1.exports=inquire},6662:t=>{"use strict";t.exports=function(t$1,e$3,n$2){var r$2=n$2||8192,i$1=r$2>>>1,o$1=null,a$2=r$2;return function(n$3){if(n$3<1||n$3>i$1)return t$1(n$3);a$2+n$3>r$2&&(o$1=t$1(r$2),a$2=0);var s$1=e$3.call(o$1,a$2,a$2+=n$3);return 7&a$2&&(a$2=1+(7|a$2)),s$1}}},4997:(t,e$3)=>{"use strict";var n$2=e$3;n$2.length=function(t$1){for(var e$4=0,n$3=0,r$2=0;r$2191&&r$2<224?o$1[a$2++]=(31&r$2)<<6|63&t$1[e$4++]:r$2>239&&r$2<365?(r$2=((7&r$2)<<18|(63&t$1[e$4++])<<12|(63&t$1[e$4++])<<6|63&t$1[e$4++])-65536,o$1[a$2++]=55296+(r$2>>10),o$1[a$2++]=56320+(1023&r$2)):o$1[a$2++]=(15&r$2)<<12|(63&t$1[e$4++])<<6|63&t$1[e$4++],a$2>8191&&((i$1||=[]).push(String.fromCharCode.apply(String,o$1)),a$2=0);return i$1?(a$2&&i$1.push(String.fromCharCode.apply(String,o$1.slice(0,a$2))),i$1.join(``)):String.fromCharCode.apply(String,o$1.slice(0,a$2))},n$2.write=function(t$1,e$4,n$3){for(var r$2,i$1,o$1=n$3,a$2=0;a$2>6|192,e$4[n$3++]=63&r$2|128):(64512&r$2)==55296&&(64512&(i$1=t$1.charCodeAt(a$2+1)))==56320?(r$2=65536+((1023&r$2)<<10)+(1023&i$1),++a$2,e$4[n$3++]=r$2>>18|240,e$4[n$3++]=r$2>>12&63|128,e$4[n$3++]=r$2>>6&63|128,e$4[n$3++]=63&r$2|128):(e$4[n$3++]=r$2>>12|224,e$4[n$3++]=r$2>>6&63|128,e$4[n$3++]=63&r$2|128);return n$3-o$1}},3442:(t,e$3)=>{"use strict";e$3.__esModule=!0;var n$2=function(){function t$1(e$4){if(!e$4)throw TypeError("Invalid argument; `value` has no value.");this.value=t$1.EMPTY,e$4&&t$1.isGuid(e$4)&&(this.value=e$4)}return t$1.isGuid=function(e$4){var n$3=e$4.toString();return e$4&&(e$4 instanceof t$1||t$1.validator.test(n$3))},t$1.create=function(){return new t$1([t$1.gen(2),t$1.gen(1),t$1.gen(1),t$1.gen(1),t$1.gen(3)].join(`-`))},t$1.createEmpty=function(){return new t$1(`emptyguid`)},t$1.parse=function(e$4){return new t$1(e$4)},t$1.raw=function(){return[t$1.gen(2),t$1.gen(1),t$1.gen(1),t$1.gen(1),t$1.gen(3)].join(`-`)},t$1.gen=function(t$2){for(var e$4=``,n$3=0;n$3{t.exports=n$2;var e$3=null;try{e$3=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function n$2(t$1,e$4,n$3){this.low=0|t$1,this.high=0|e$4,this.unsigned=!!n$3}function r$2(t$1){return!0===(t$1&&t$1.__isLong__)}n$2.prototype.__isLong__,Object.defineProperty(n$2.prototype,`__isLong__`,{value:!0}),n$2.isLong=r$2;var i$1={},o$1={};function a$2(t$1,e$4){var n$3,r$3,a$3;return e$4?(a$3=0<=(t$1>>>=0)&&t$1<256)&&(r$3=o$1[t$1])?r$3:(n$3=u$1(t$1,(0|t$1)<0?-1:0,!0),a$3&&(o$1[t$1]=n$3),n$3):(a$3=-128<=(t$1|=0)&&t$1<128)&&(r$3=i$1[t$1])?r$3:(n$3=u$1(t$1,t$1<0?-1:0,!1),a$3&&(i$1[t$1]=n$3),n$3)}function s$1(t$1,e$4){if(isNaN(t$1))return e$4?m$2:b$3;if(e$4){if(t$1<0)return m$2;if(t$1>=d$2)return x$3}else{if(t$1<=-h$3)return T$1;if(t$1+1>=h$3)return w$1}return t$1<0?s$1(-t$1,e$4).neg():u$1(t$1%f$3|0,t$1/f$3|0,e$4)}function u$1(t$1,e$4,r$3){return new n$2(t$1,e$4,r$3)}n$2.fromInt=a$2,n$2.fromNumber=s$1,n$2.fromBits=u$1;var c$4=Math.pow;function l$1(t$1,e$4,n$3){if(t$1.length===0)throw Error(`empty string`);if(t$1===`NaN`||t$1===`Infinity`||t$1===`+Infinity`||t$1===`-Infinity`)return b$3;if(typeof e$4==`number`?(n$3=e$4,e$4=!1):e$4=!!e$4,(n$3||=10)<2||360)throw Error(`interior hyphen`);if(r$3===0)return l$1(t$1.substring(1),e$4,n$3).neg();for(var i$2=s$1(c$4(n$3,8)),o$2=b$3,a$3=0;a$3>>0:this.low},S$2.toNumber=function(){return this.unsigned?(this.high>>>0)*f$3+(this.low>>>0):this.high*f$3+(this.low>>>0)},S$2.toString=function(t$1){if((t$1||=10)<2||36>>0).toString(t$1);if((o$2=u$2).isZero())return l$2+a$3;for(;l$2.length<6;)l$2=`0`+l$2;a$3=``+l$2+a$3}},S$2.getHighBits=function(){return this.high},S$2.getHighBitsUnsigned=function(){return this.high>>>0},S$2.getLowBits=function(){return this.low},S$2.getLowBitsUnsigned=function(){return this.low>>>0},S$2.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T$1)?64:this.neg().getNumBitsAbs();for(var t$1=this.high==0?this.low:this.high,e$4=31;e$4>0&&!(t$1&1<=0},S$2.isOdd=function(){return(1&this.low)==1},S$2.isEven=function(){return(1&this.low)==0},S$2.equals=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),(this.unsigned===t$1.unsigned||this.high>>>31!=1||t$1.high>>>31!=1)&&this.high===t$1.high&&this.low===t$1.low},S$2.eq=S$2.equals,S$2.notEquals=function(t$1){return!this.eq(t$1)},S$2.neq=S$2.notEquals,S$2.ne=S$2.notEquals,S$2.lessThan=function(t$1){return this.comp(t$1)<0},S$2.lt=S$2.lessThan,S$2.lessThanOrEqual=function(t$1){return this.comp(t$1)<=0},S$2.lte=S$2.lessThanOrEqual,S$2.le=S$2.lessThanOrEqual,S$2.greaterThan=function(t$1){return this.comp(t$1)>0},S$2.gt=S$2.greaterThan,S$2.greaterThanOrEqual=function(t$1){return this.comp(t$1)>=0},S$2.gte=S$2.greaterThanOrEqual,S$2.ge=S$2.greaterThanOrEqual,S$2.compare=function(t$1){if(r$2(t$1)||(t$1=p$5(t$1)),this.eq(t$1))return 0;var e$4=this.isNegative(),n$3=t$1.isNegative();return e$4&&!n$3?-1:!e$4&&n$3?1:this.unsigned?t$1.high>>>0>this.high>>>0||t$1.high===this.high&&t$1.low>>>0>this.low>>>0?-1:1:this.sub(t$1).isNegative()?-1:1},S$2.comp=S$2.compare,S$2.negate=function(){return!this.unsigned&&this.eq(T$1)?T$1:this.not().add(y$2)},S$2.neg=S$2.negate,S$2.add=function(t$1){r$2(t$1)||(t$1=p$5(t$1));var e$4=this.high>>>16,n$3=65535&this.high,i$2=this.low>>>16,o$2=65535&this.low,a$3=t$1.high>>>16,s$2=65535&t$1.high,c$5=t$1.low>>>16,l$2=0,f$4=0,d$3=0,h$4=0;return d$3+=(h$4+=o$2+(65535&t$1.low))>>>16,f$4+=(d$3+=i$2+c$5)>>>16,l$2+=(f$4+=n$3+s$2)>>>16,l$2+=e$4+a$3,u$1((d$3&=65535)<<16|(h$4&=65535),(l$2&=65535)<<16|(f$4&=65535),this.unsigned)},S$2.subtract=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),this.add(t$1.neg())},S$2.sub=S$2.subtract,S$2.multiply=function(t$1){if(this.isZero())return b$3;if(r$2(t$1)||(t$1=p$5(t$1)),e$3)return u$1(e$3.mul(this.low,this.high,t$1.low,t$1.high),e$3.get_high(),this.unsigned);if(t$1.isZero())return b$3;if(this.eq(T$1))return t$1.isOdd()?T$1:b$3;if(t$1.eq(T$1))return this.isOdd()?T$1:b$3;if(this.isNegative())return t$1.isNegative()?this.neg().mul(t$1.neg()):this.neg().mul(t$1).neg();if(t$1.isNegative())return this.mul(t$1.neg()).neg();if(this.lt(g$2)&&t$1.lt(g$2))return s$1(this.toNumber()*t$1.toNumber(),this.unsigned);var n$3=this.high>>>16,i$2=65535&this.high,o$2=this.low>>>16,a$3=65535&this.low,c$5=t$1.high>>>16,l$2=65535&t$1.high,f$4=t$1.low>>>16,d$3=65535&t$1.low,h$4=0,m$3=0,y$3=0,_$3=0;return y$3+=(_$3+=a$3*d$3)>>>16,m$3+=(y$3+=o$2*d$3)>>>16,y$3&=65535,m$3+=(y$3+=a$3*f$4)>>>16,h$4+=(m$3+=i$2*d$3)>>>16,m$3&=65535,h$4+=(m$3+=o$2*f$4)>>>16,m$3&=65535,h$4+=(m$3+=a$3*l$2)>>>16,h$4+=n$3*d$3+i$2*f$4+o$2*l$2+a$3*c$5,u$1((y$3&=65535)<<16|(_$3&=65535),(h$4&=65535)<<16|(m$3&=65535),this.unsigned)},S$2.mul=S$2.multiply,S$2.divide=function(t$1){if(r$2(t$1)||(t$1=p$5(t$1)),t$1.isZero())throw Error(`division by zero`);var n$3,i$2,o$2;if(e$3)return this.unsigned||this.high!==-2147483648||t$1.low!==-1||t$1.high!==-1?u$1((this.unsigned?e$3.div_u:e$3.div_s)(this.low,this.high,t$1.low,t$1.high),e$3.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?m$2:b$3;if(this.unsigned){if(t$1.unsigned||(t$1=t$1.toUnsigned()),t$1.gt(this))return m$2;if(t$1.gt(this.shru(1)))return _$2;o$2=m$2}else{if(this.eq(T$1))return t$1.eq(y$2)||t$1.eq(v$1)?T$1:t$1.eq(T$1)?y$2:(n$3=this.shr(1).div(t$1).shl(1)).eq(b$3)?t$1.isNegative()?y$2:v$1:(i$2=this.sub(t$1.mul(n$3)),o$2=n$3.add(i$2.div(t$1)));if(t$1.eq(T$1))return this.unsigned?m$2:b$3;if(this.isNegative())return t$1.isNegative()?this.neg().div(t$1.neg()):this.neg().div(t$1).neg();if(t$1.isNegative())return this.div(t$1.neg()).neg();o$2=b$3}for(i$2=this;i$2.gte(t$1);){n$3=Math.max(1,Math.floor(i$2.toNumber()/t$1.toNumber()));for(var a$3=Math.ceil(Math.log(n$3)/Math.LN2),l$2=a$3<=48?1:c$4(2,a$3-48),f$4=s$1(n$3),d$3=f$4.mul(t$1);d$3.isNegative()||d$3.gt(i$2);)d$3=(f$4=s$1(n$3-=l$2,this.unsigned)).mul(t$1);f$4.isZero()&&(f$4=y$2),o$2=o$2.add(f$4),i$2=i$2.sub(d$3)}return o$2},S$2.div=S$2.divide,S$2.modulo=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),e$3?u$1((this.unsigned?e$3.rem_u:e$3.rem_s)(this.low,this.high,t$1.low,t$1.high),e$3.get_high(),this.unsigned):this.sub(this.div(t$1).mul(t$1))},S$2.mod=S$2.modulo,S$2.rem=S$2.modulo,S$2.not=function(){return u$1(~this.low,~this.high,this.unsigned)},S$2.and=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),u$1(this.low&t$1.low,this.high&t$1.high,this.unsigned)},S$2.or=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),u$1(this.low|t$1.low,this.high|t$1.high,this.unsigned)},S$2.xor=function(t$1){return r$2(t$1)||(t$1=p$5(t$1)),u$1(this.low^t$1.low,this.high^t$1.high,this.unsigned)},S$2.shiftLeft=function(t$1){return r$2(t$1)&&(t$1=t$1.toInt()),(t$1&=63)==0?this:t$1<32?u$1(this.low<>>32-t$1,this.unsigned):u$1(0,this.low<>>t$1|this.high<<32-t$1,this.high>>t$1,this.unsigned):u$1(this.high>>t$1-32,this.high>=0?0:-1,this.unsigned)},S$2.shr=S$2.shiftRight,S$2.shiftRightUnsigned=function(t$1){if(r$2(t$1)&&(t$1=t$1.toInt()),(t$1&=63)==0)return this;var e$4=this.high;return t$1<32?u$1(this.low>>>t$1|e$4<<32-t$1,e$4>>>t$1,this.unsigned):u$1(t$1===32?e$4:e$4>>>t$1-32,0,this.unsigned)},S$2.shru=S$2.shiftRightUnsigned,S$2.shr_u=S$2.shiftRightUnsigned,S$2.toSigned=function(){return this.unsigned?u$1(this.low,this.high,!1):this},S$2.toUnsigned=function(){return this.unsigned?this:u$1(this.low,this.high,!0)},S$2.toBytes=function(t$1){return t$1?this.toBytesLE():this.toBytesBE()},S$2.toBytesLE=function(){var t$1=this.high,e$4=this.low;return[255&e$4,e$4>>>8&255,e$4>>>16&255,e$4>>>24,255&t$1,t$1>>>8&255,t$1>>>16&255,t$1>>>24]},S$2.toBytesBE=function(){var t$1=this.high,e$4=this.low;return[t$1>>>24,t$1>>>16&255,t$1>>>8&255,255&t$1,e$4>>>24,e$4>>>16&255,e$4>>>8&255,255&e$4]},n$2.fromBytes=function(t$1,e$4,r$3){return r$3?n$2.fromBytesLE(t$1,e$4):n$2.fromBytesBE(t$1,e$4)},n$2.fromBytesLE=function(t$1,e$4){return new n$2(t$1[0]|t$1[1]<<8|t$1[2]<<16|t$1[3]<<24,t$1[4]|t$1[5]<<8|t$1[6]<<16|t$1[7]<<24,e$4)},n$2.fromBytesBE=function(t$1,e$4){return new n$2(t$1[4]<<24|t$1[5]<<16|t$1[6]<<8|t$1[7],t$1[0]<<24|t$1[1]<<16|t$1[2]<<8|t$1[3],e$4)}},1446:(t,e$3,n$2)=>{"use strict";var r$2,i$1,o$1,a$2=n$2(2100),s$1=a$2.Reader,u$1=a$2.Writer,c$4=a$2.util,l$1=a$2.roots.default||(a$2.roots.default={});l$1.onnx=((o$1={}).Version=(r$2={},(i$1=Object.create(r$2))[r$2[0]=`_START_VERSION`]=0,i$1[r$2[1]=`IR_VERSION_2017_10_10`]=1,i$1[r$2[2]=`IR_VERSION_2017_10_30`]=2,i$1[r$2[3]=`IR_VERSION_2017_11_3`]=3,i$1[r$2[4]=`IR_VERSION_2019_1_22`]=4,i$1[r$2[5]=`IR_VERSION`]=5,i$1),o$1.AttributeProto=function(){function t$1(t$2){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.name=t$2.string();break;case 21:r$3.refAttrName=t$2.string();break;case 13:r$3.docString=t$2.string();break;case 20:r$3.type=t$2.int32();break;case 2:r$3.f=t$2.float();break;case 3:r$3.i=t$2.int64();break;case 4:r$3.s=t$2.bytes();break;case 5:r$3.t=l$1.onnx.TensorProto.decode(t$2,t$2.uint32());break;case 6:r$3.g=l$1.onnx.GraphProto.decode(t$2,t$2.uint32());break;case 7:if(r$3.floats&&r$3.floats.length||(r$3.floats=[]),(7&i$2)==2)for(var o$2=t$2.uint32()+t$2.pos;t$2.pos>>0,t$2.i.high>>>0).toNumber())),t$2.s!=null&&(typeof t$2.s==`string`?c$4.base64.decode(t$2.s,e$4.s=c$4.newBuffer(c$4.base64.length(t$2.s)),0):t$2.s.length&&(e$4.s=t$2.s)),t$2.t!=null){if(typeof t$2.t!=`object`)throw TypeError(`.onnx.AttributeProto.t: object expected`);e$4.t=l$1.onnx.TensorProto.fromObject(t$2.t)}if(t$2.g!=null){if(typeof t$2.g!=`object`)throw TypeError(`.onnx.AttributeProto.g: object expected`);e$4.g=l$1.onnx.GraphProto.fromObject(t$2.g)}if(t$2.floats){if(!Array.isArray(t$2.floats))throw TypeError(`.onnx.AttributeProto.floats: array expected`);e$4.floats=[];for(var n$3=0;n$3>>0,t$2.ints[n$3].high>>>0).toNumber())}if(t$2.strings){if(!Array.isArray(t$2.strings))throw TypeError(`.onnx.AttributeProto.strings: array expected`);for(e$4.strings=[],n$3=0;n$3>>0,t$2.i.high>>>0).toNumber():t$2.i),t$2.s!=null&&t$2.hasOwnProperty(`s`)&&(n$3.s=e$4.bytes===String?c$4.base64.encode(t$2.s,0,t$2.s.length):e$4.bytes===Array?Array.prototype.slice.call(t$2.s):t$2.s),t$2.t!=null&&t$2.hasOwnProperty(`t`)&&(n$3.t=l$1.onnx.TensorProto.toObject(t$2.t,e$4)),t$2.g!=null&&t$2.hasOwnProperty(`g`)&&(n$3.g=l$1.onnx.GraphProto.toObject(t$2.g,e$4)),t$2.floats&&t$2.floats.length){n$3.floats=[];for(var i$2=0;i$2>>0,t$2.ints[i$2].high>>>0).toNumber():t$2.ints[i$2];if(t$2.strings&&t$2.strings.length)for(n$3.strings=[],i$2=0;i$2>>3){case 1:r$3.name=t$2.string();break;case 2:r$3.type=l$1.onnx.TypeProto.decode(t$2,t$2.uint32());break;case 3:r$3.docString=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.name!=null&&t$2.hasOwnProperty(`name`)&&!c$4.isString(t$2.name))return`name: string expected`;if(t$2.type!=null&&t$2.hasOwnProperty(`type`)){var e$4=l$1.onnx.TypeProto.verify(t$2.type);if(e$4)return`type.`+e$4}return t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&!c$4.isString(t$2.docString)?`docString: string expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.ValueInfoProto)return t$2;var e$4=new l$1.onnx.ValueInfoProto;if(t$2.name!=null&&(e$4.name=String(t$2.name)),t$2.type!=null){if(typeof t$2.type!=`object`)throw TypeError(`.onnx.ValueInfoProto.type: object expected`);e$4.type=l$1.onnx.TypeProto.fromObject(t$2.type)}return t$2.docString!=null&&(e$4.docString=String(t$2.docString)),e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};return e$4.defaults&&(n$3.name=``,n$3.type=null,n$3.docString=``),t$2.name!=null&&t$2.hasOwnProperty(`name`)&&(n$3.name=t$2.name),t$2.type!=null&&t$2.hasOwnProperty(`type`)&&(n$3.type=l$1.onnx.TypeProto.toObject(t$2.type,e$4)),t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&(n$3.docString=t$2.docString),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1}(),o$1.NodeProto=function(){function t$1(t$2){if(this.input=[],this.output=[],this.attribute=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.input&&r$3.input.length||(r$3.input=[]),r$3.input.push(t$2.string());break;case 2:r$3.output&&r$3.output.length||(r$3.output=[]),r$3.output.push(t$2.string());break;case 3:r$3.name=t$2.string();break;case 4:r$3.opType=t$2.string();break;case 7:r$3.domain=t$2.string();break;case 5:r$3.attribute&&r$3.attribute.length||(r$3.attribute=[]),r$3.attribute.push(l$1.onnx.AttributeProto.decode(t$2,t$2.uint32()));break;case 6:r$3.docString=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.input!=null&&t$2.hasOwnProperty(`input`)){if(!Array.isArray(t$2.input))return`input: array expected`;for(var e$4=0;e$4>>3){case 1:r$3.irVersion=t$2.int64();break;case 8:r$3.opsetImport&&r$3.opsetImport.length||(r$3.opsetImport=[]),r$3.opsetImport.push(l$1.onnx.OperatorSetIdProto.decode(t$2,t$2.uint32()));break;case 2:r$3.producerName=t$2.string();break;case 3:r$3.producerVersion=t$2.string();break;case 4:r$3.domain=t$2.string();break;case 5:r$3.modelVersion=t$2.int64();break;case 6:r$3.docString=t$2.string();break;case 7:r$3.graph=l$1.onnx.GraphProto.decode(t$2,t$2.uint32());break;case 14:r$3.metadataProps&&r$3.metadataProps.length||(r$3.metadataProps=[]),r$3.metadataProps.push(l$1.onnx.StringStringEntryProto.decode(t$2,t$2.uint32()));break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.irVersion!=null&&t$2.hasOwnProperty(`irVersion`)&&!(c$4.isInteger(t$2.irVersion)||t$2.irVersion&&c$4.isInteger(t$2.irVersion.low)&&c$4.isInteger(t$2.irVersion.high)))return`irVersion: integer|Long expected`;if(t$2.opsetImport!=null&&t$2.hasOwnProperty(`opsetImport`)){if(!Array.isArray(t$2.opsetImport))return`opsetImport: array expected`;for(var e$4=0;e$4>>0,t$2.irVersion.high>>>0).toNumber())),t$2.opsetImport){if(!Array.isArray(t$2.opsetImport))throw TypeError(`.onnx.ModelProto.opsetImport: array expected`);e$4.opsetImport=[];for(var n$3=0;n$3>>0,t$2.modelVersion.high>>>0).toNumber())),t$2.docString!=null&&(e$4.docString=String(t$2.docString)),t$2.graph!=null){if(typeof t$2.graph!=`object`)throw TypeError(`.onnx.ModelProto.graph: object expected`);e$4.graph=l$1.onnx.GraphProto.fromObject(t$2.graph)}if(t$2.metadataProps){if(!Array.isArray(t$2.metadataProps))throw TypeError(`.onnx.ModelProto.metadataProps: array expected`);for(e$4.metadataProps=[],n$3=0;n$3>>0,t$2.irVersion.high>>>0).toNumber():t$2.irVersion),t$2.producerName!=null&&t$2.hasOwnProperty(`producerName`)&&(n$3.producerName=t$2.producerName),t$2.producerVersion!=null&&t$2.hasOwnProperty(`producerVersion`)&&(n$3.producerVersion=t$2.producerVersion),t$2.domain!=null&&t$2.hasOwnProperty(`domain`)&&(n$3.domain=t$2.domain),t$2.modelVersion!=null&&t$2.hasOwnProperty(`modelVersion`)&&(typeof t$2.modelVersion==`number`?n$3.modelVersion=e$4.longs===String?String(t$2.modelVersion):t$2.modelVersion:n$3.modelVersion=e$4.longs===String?c$4.Long.prototype.toString.call(t$2.modelVersion):e$4.longs===Number?new c$4.LongBits(t$2.modelVersion.low>>>0,t$2.modelVersion.high>>>0).toNumber():t$2.modelVersion),t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&(n$3.docString=t$2.docString),t$2.graph!=null&&t$2.hasOwnProperty(`graph`)&&(n$3.graph=l$1.onnx.GraphProto.toObject(t$2.graph,e$4)),t$2.opsetImport&&t$2.opsetImport.length){n$3.opsetImport=[];for(var i$2=0;i$2>>3){case 1:r$3.key=t$2.string();break;case 2:r$3.value=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){return typeof t$2!=`object`||!t$2?`object expected`:t$2.key!=null&&t$2.hasOwnProperty(`key`)&&!c$4.isString(t$2.key)?`key: string expected`:t$2.value!=null&&t$2.hasOwnProperty(`value`)&&!c$4.isString(t$2.value)?`value: string expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.StringStringEntryProto)return t$2;var e$4=new l$1.onnx.StringStringEntryProto;return t$2.key!=null&&(e$4.key=String(t$2.key)),t$2.value!=null&&(e$4.value=String(t$2.value)),e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};return e$4.defaults&&(n$3.key=``,n$3.value=``),t$2.key!=null&&t$2.hasOwnProperty(`key`)&&(n$3.key=t$2.key),t$2.value!=null&&t$2.hasOwnProperty(`value`)&&(n$3.value=t$2.value),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1}(),o$1.TensorAnnotation=function(){function t$1(t$2){if(this.quantParameterTensorNames=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.tensorName=t$2.string();break;case 2:r$3.quantParameterTensorNames&&r$3.quantParameterTensorNames.length||(r$3.quantParameterTensorNames=[]),r$3.quantParameterTensorNames.push(l$1.onnx.StringStringEntryProto.decode(t$2,t$2.uint32()));break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.tensorName!=null&&t$2.hasOwnProperty(`tensorName`)&&!c$4.isString(t$2.tensorName))return`tensorName: string expected`;if(t$2.quantParameterTensorNames!=null&&t$2.hasOwnProperty(`quantParameterTensorNames`)){if(!Array.isArray(t$2.quantParameterTensorNames))return`quantParameterTensorNames: array expected`;for(var e$4=0;e$4>>3){case 1:r$3.node&&r$3.node.length||(r$3.node=[]),r$3.node.push(l$1.onnx.NodeProto.decode(t$2,t$2.uint32()));break;case 2:r$3.name=t$2.string();break;case 5:r$3.initializer&&r$3.initializer.length||(r$3.initializer=[]),r$3.initializer.push(l$1.onnx.TensorProto.decode(t$2,t$2.uint32()));break;case 10:r$3.docString=t$2.string();break;case 11:r$3.input&&r$3.input.length||(r$3.input=[]),r$3.input.push(l$1.onnx.ValueInfoProto.decode(t$2,t$2.uint32()));break;case 12:r$3.output&&r$3.output.length||(r$3.output=[]),r$3.output.push(l$1.onnx.ValueInfoProto.decode(t$2,t$2.uint32()));break;case 13:r$3.valueInfo&&r$3.valueInfo.length||(r$3.valueInfo=[]),r$3.valueInfo.push(l$1.onnx.ValueInfoProto.decode(t$2,t$2.uint32()));break;case 14:r$3.quantizationAnnotation&&r$3.quantizationAnnotation.length||(r$3.quantizationAnnotation=[]),r$3.quantizationAnnotation.push(l$1.onnx.TensorAnnotation.decode(t$2,t$2.uint32()));break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.node!=null&&t$2.hasOwnProperty(`node`)){if(!Array.isArray(t$2.node))return`node: array expected`;for(var e$4=0;e$4>>3){case 1:if(r$3.dims&&r$3.dims.length||(r$3.dims=[]),(7&i$2)==2)for(var o$2=t$2.uint32()+t$2.pos;t$2.pos>>0,t$2.dims[n$3].high>>>0).toNumber())}if(t$2.dataType!=null&&(e$4.dataType=0|t$2.dataType),t$2.segment!=null){if(typeof t$2.segment!=`object`)throw TypeError(`.onnx.TensorProto.segment: object expected`);e$4.segment=l$1.onnx.TensorProto.Segment.fromObject(t$2.segment)}if(t$2.floatData){if(!Array.isArray(t$2.floatData))throw TypeError(`.onnx.TensorProto.floatData: array expected`);for(e$4.floatData=[],n$3=0;n$3>>0,t$2.int64Data[n$3].high>>>0).toNumber())}if(t$2.name!=null&&(e$4.name=String(t$2.name)),t$2.docString!=null&&(e$4.docString=String(t$2.docString)),t$2.rawData!=null&&(typeof t$2.rawData==`string`?c$4.base64.decode(t$2.rawData,e$4.rawData=c$4.newBuffer(c$4.base64.length(t$2.rawData)),0):t$2.rawData.length&&(e$4.rawData=t$2.rawData)),t$2.externalData){if(!Array.isArray(t$2.externalData))throw TypeError(`.onnx.TensorProto.externalData: array expected`);for(e$4.externalData=[],n$3=0;n$3>>0,t$2.uint64Data[n$3].high>>>0).toNumber(!0))}return e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};if((e$4.arrays||e$4.defaults)&&(n$3.dims=[],n$3.floatData=[],n$3.int32Data=[],n$3.stringData=[],n$3.int64Data=[],n$3.doubleData=[],n$3.uint64Data=[],n$3.externalData=[]),e$4.defaults&&(n$3.dataType=0,n$3.segment=null,n$3.name=``,e$4.bytes===String?n$3.rawData=``:(n$3.rawData=[],e$4.bytes!==Array&&(n$3.rawData=c$4.newBuffer(n$3.rawData))),n$3.docString=``,n$3.dataLocation=e$4.enums===String?`DEFAULT`:0),t$2.dims&&t$2.dims.length){n$3.dims=[];for(var r$3=0;r$3>>0,t$2.dims[r$3].high>>>0).toNumber():t$2.dims[r$3]}if(t$2.dataType!=null&&t$2.hasOwnProperty(`dataType`)&&(n$3.dataType=t$2.dataType),t$2.segment!=null&&t$2.hasOwnProperty(`segment`)&&(n$3.segment=l$1.onnx.TensorProto.Segment.toObject(t$2.segment,e$4)),t$2.floatData&&t$2.floatData.length)for(n$3.floatData=[],r$3=0;r$3>>0,t$2.int64Data[r$3].high>>>0).toNumber():t$2.int64Data[r$3];if(t$2.name!=null&&t$2.hasOwnProperty(`name`)&&(n$3.name=t$2.name),t$2.rawData!=null&&t$2.hasOwnProperty(`rawData`)&&(n$3.rawData=e$4.bytes===String?c$4.base64.encode(t$2.rawData,0,t$2.rawData.length):e$4.bytes===Array?Array.prototype.slice.call(t$2.rawData):t$2.rawData),t$2.doubleData&&t$2.doubleData.length)for(n$3.doubleData=[],r$3=0;r$3>>0,t$2.uint64Data[r$3].high>>>0).toNumber(!0):t$2.uint64Data[r$3];if(t$2.docString!=null&&t$2.hasOwnProperty(`docString`)&&(n$3.docString=t$2.docString),t$2.externalData&&t$2.externalData.length)for(n$3.externalData=[],r$3=0;r$3>>3){case 1:r$3.begin=t$3.int64();break;case 2:r$3.end=t$3.int64();break;default:t$3.skipType(7&i$2)}}return r$3},t$2.decodeDelimited=function(t$3){return t$3 instanceof s$1||(t$3=new s$1(t$3)),this.decode(t$3,t$3.uint32())},t$2.verify=function(t$3){return typeof t$3!=`object`||!t$3?`object expected`:t$3.begin!=null&&t$3.hasOwnProperty(`begin`)&&!(c$4.isInteger(t$3.begin)||t$3.begin&&c$4.isInteger(t$3.begin.low)&&c$4.isInteger(t$3.begin.high))?`begin: integer|Long expected`:t$3.end!=null&&t$3.hasOwnProperty(`end`)&&!(c$4.isInteger(t$3.end)||t$3.end&&c$4.isInteger(t$3.end.low)&&c$4.isInteger(t$3.end.high))?`end: integer|Long expected`:null},t$2.fromObject=function(t$3){if(t$3 instanceof l$1.onnx.TensorProto.Segment)return t$3;var e$4=new l$1.onnx.TensorProto.Segment;return t$3.begin!=null&&(c$4.Long?(e$4.begin=c$4.Long.fromValue(t$3.begin)).unsigned=!1:typeof t$3.begin==`string`?e$4.begin=parseInt(t$3.begin,10):typeof t$3.begin==`number`?e$4.begin=t$3.begin:typeof t$3.begin==`object`&&(e$4.begin=new c$4.LongBits(t$3.begin.low>>>0,t$3.begin.high>>>0).toNumber())),t$3.end!=null&&(c$4.Long?(e$4.end=c$4.Long.fromValue(t$3.end)).unsigned=!1:typeof t$3.end==`string`?e$4.end=parseInt(t$3.end,10):typeof t$3.end==`number`?e$4.end=t$3.end:typeof t$3.end==`object`&&(e$4.end=new c$4.LongBits(t$3.end.low>>>0,t$3.end.high>>>0).toNumber())),e$4},t$2.toObject=function(t$3,e$4){e$4||={};var n$3={};if(e$4.defaults){if(c$4.Long){var r$3=new c$4.Long(0,0,!1);n$3.begin=e$4.longs===String?r$3.toString():e$4.longs===Number?r$3.toNumber():r$3}else n$3.begin=e$4.longs===String?`0`:0;c$4.Long?(r$3=new c$4.Long(0,0,!1),n$3.end=e$4.longs===String?r$3.toString():e$4.longs===Number?r$3.toNumber():r$3):n$3.end=e$4.longs===String?`0`:0}return t$3.begin!=null&&t$3.hasOwnProperty(`begin`)&&(typeof t$3.begin==`number`?n$3.begin=e$4.longs===String?String(t$3.begin):t$3.begin:n$3.begin=e$4.longs===String?c$4.Long.prototype.toString.call(t$3.begin):e$4.longs===Number?new c$4.LongBits(t$3.begin.low>>>0,t$3.begin.high>>>0).toNumber():t$3.begin),t$3.end!=null&&t$3.hasOwnProperty(`end`)&&(typeof t$3.end==`number`?n$3.end=e$4.longs===String?String(t$3.end):t$3.end:n$3.end=e$4.longs===String?c$4.Long.prototype.toString.call(t$3.end):e$4.longs===Number?new c$4.LongBits(t$3.end.low>>>0,t$3.end.high>>>0).toNumber():t$3.end),n$3},t$2.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$2}(),t$1.DataLocation=function(){var t$2={},e$4=Object.create(t$2);return e$4[t$2[0]=`DEFAULT`]=0,e$4[t$2[1]=`EXTERNAL`]=1,e$4}(),t$1}(),o$1.TensorShapeProto=function(){function t$1(t$2){if(this.dim=[],t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3==1?(r$3.dim&&r$3.dim.length||(r$3.dim=[]),r$3.dim.push(l$1.onnx.TensorShapeProto.Dimension.decode(t$2,t$2.uint32()))):t$2.skipType(7&i$2)}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.dim!=null&&t$2.hasOwnProperty(`dim`)){if(!Array.isArray(t$2.dim))return`dim: array expected`;for(var e$4=0;e$4>>3){case 1:r$3.dimValue=t$3.int64();break;case 2:r$3.dimParam=t$3.string();break;case 3:r$3.denotation=t$3.string();break;default:t$3.skipType(7&i$2)}}return r$3},t$2.decodeDelimited=function(t$3){return t$3 instanceof s$1||(t$3=new s$1(t$3)),this.decode(t$3,t$3.uint32())},t$2.verify=function(t$3){if(typeof t$3!=`object`||!t$3)return`object expected`;var e$5={};if(t$3.dimValue!=null&&t$3.hasOwnProperty(`dimValue`)&&(e$5.value=1,!(c$4.isInteger(t$3.dimValue)||t$3.dimValue&&c$4.isInteger(t$3.dimValue.low)&&c$4.isInteger(t$3.dimValue.high))))return`dimValue: integer|Long expected`;if(t$3.dimParam!=null&&t$3.hasOwnProperty(`dimParam`)){if(e$5.value===1)return`value: multiple values`;if(e$5.value=1,!c$4.isString(t$3.dimParam))return`dimParam: string expected`}return t$3.denotation!=null&&t$3.hasOwnProperty(`denotation`)&&!c$4.isString(t$3.denotation)?`denotation: string expected`:null},t$2.fromObject=function(t$3){if(t$3 instanceof l$1.onnx.TensorShapeProto.Dimension)return t$3;var e$5=new l$1.onnx.TensorShapeProto.Dimension;return t$3.dimValue!=null&&(c$4.Long?(e$5.dimValue=c$4.Long.fromValue(t$3.dimValue)).unsigned=!1:typeof t$3.dimValue==`string`?e$5.dimValue=parseInt(t$3.dimValue,10):typeof t$3.dimValue==`number`?e$5.dimValue=t$3.dimValue:typeof t$3.dimValue==`object`&&(e$5.dimValue=new c$4.LongBits(t$3.dimValue.low>>>0,t$3.dimValue.high>>>0).toNumber())),t$3.dimParam!=null&&(e$5.dimParam=String(t$3.dimParam)),t$3.denotation!=null&&(e$5.denotation=String(t$3.denotation)),e$5},t$2.toObject=function(t$3,e$5){e$5||={};var n$3={};return e$5.defaults&&(n$3.denotation=``),t$3.dimValue!=null&&t$3.hasOwnProperty(`dimValue`)&&(typeof t$3.dimValue==`number`?n$3.dimValue=e$5.longs===String?String(t$3.dimValue):t$3.dimValue:n$3.dimValue=e$5.longs===String?c$4.Long.prototype.toString.call(t$3.dimValue):e$5.longs===Number?new c$4.LongBits(t$3.dimValue.low>>>0,t$3.dimValue.high>>>0).toNumber():t$3.dimValue,e$5.oneofs&&(n$3.value=`dimValue`)),t$3.dimParam!=null&&t$3.hasOwnProperty(`dimParam`)&&(n$3.dimParam=t$3.dimParam,e$5.oneofs&&(n$3.value=`dimParam`)),t$3.denotation!=null&&t$3.hasOwnProperty(`denotation`)&&(n$3.denotation=t$3.denotation),n$3},t$2.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$2}(),t$1}(),o$1.TypeProto=function(){function t$1(t$2){if(t$2)for(var e$5=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.tensorType=l$1.onnx.TypeProto.Tensor.decode(t$2,t$2.uint32());break;case 6:r$3.denotation=t$2.string();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){if(typeof t$2!=`object`||!t$2)return`object expected`;if(t$2.tensorType!=null&&t$2.hasOwnProperty(`tensorType`)){var e$5=l$1.onnx.TypeProto.Tensor.verify(t$2.tensorType);if(e$5)return`tensorType.`+e$5}return t$2.denotation!=null&&t$2.hasOwnProperty(`denotation`)&&!c$4.isString(t$2.denotation)?`denotation: string expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.TypeProto)return t$2;var e$5=new l$1.onnx.TypeProto;if(t$2.tensorType!=null){if(typeof t$2.tensorType!=`object`)throw TypeError(`.onnx.TypeProto.tensorType: object expected`);e$5.tensorType=l$1.onnx.TypeProto.Tensor.fromObject(t$2.tensorType)}return t$2.denotation!=null&&(e$5.denotation=String(t$2.denotation)),e$5},t$1.toObject=function(t$2,e$5){e$5||={};var n$3={};return e$5.defaults&&(n$3.denotation=``),t$2.tensorType!=null&&t$2.hasOwnProperty(`tensorType`)&&(n$3.tensorType=l$1.onnx.TypeProto.Tensor.toObject(t$2.tensorType,e$5),e$5.oneofs&&(n$3.value=`tensorType`)),t$2.denotation!=null&&t$2.hasOwnProperty(`denotation`)&&(n$3.denotation=t$2.denotation),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1.Tensor=function(){function t$2(t$3){if(t$3)for(var e$5=Object.keys(t$3),n$3=0;n$3>>3){case 1:r$3.elemType=t$3.int32();break;case 2:r$3.shape=l$1.onnx.TensorShapeProto.decode(t$3,t$3.uint32());break;default:t$3.skipType(7&i$2)}}return r$3},t$2.decodeDelimited=function(t$3){return t$3 instanceof s$1||(t$3=new s$1(t$3)),this.decode(t$3,t$3.uint32())},t$2.verify=function(t$3){if(typeof t$3!=`object`||!t$3)return`object expected`;if(t$3.elemType!=null&&t$3.hasOwnProperty(`elemType`)&&!c$4.isInteger(t$3.elemType))return`elemType: integer expected`;if(t$3.shape!=null&&t$3.hasOwnProperty(`shape`)){var e$5=l$1.onnx.TensorShapeProto.verify(t$3.shape);if(e$5)return`shape.`+e$5}return null},t$2.fromObject=function(t$3){if(t$3 instanceof l$1.onnx.TypeProto.Tensor)return t$3;var e$5=new l$1.onnx.TypeProto.Tensor;if(t$3.elemType!=null&&(e$5.elemType=0|t$3.elemType),t$3.shape!=null){if(typeof t$3.shape!=`object`)throw TypeError(`.onnx.TypeProto.Tensor.shape: object expected`);e$5.shape=l$1.onnx.TensorShapeProto.fromObject(t$3.shape)}return e$5},t$2.toObject=function(t$3,e$5){e$5||={};var n$3={};return e$5.defaults&&(n$3.elemType=0,n$3.shape=null),t$3.elemType!=null&&t$3.hasOwnProperty(`elemType`)&&(n$3.elemType=t$3.elemType),t$3.shape!=null&&t$3.hasOwnProperty(`shape`)&&(n$3.shape=l$1.onnx.TensorShapeProto.toObject(t$3.shape,e$5)),n$3},t$2.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$2}(),t$1}(),o$1.OperatorSetIdProto=function(){function t$1(t$2){if(t$2)for(var e$4=Object.keys(t$2),n$3=0;n$3>>3){case 1:r$3.domain=t$2.string();break;case 2:r$3.version=t$2.int64();break;default:t$2.skipType(7&i$2)}}return r$3},t$1.decodeDelimited=function(t$2){return t$2 instanceof s$1||(t$2=new s$1(t$2)),this.decode(t$2,t$2.uint32())},t$1.verify=function(t$2){return typeof t$2!=`object`||!t$2?`object expected`:t$2.domain!=null&&t$2.hasOwnProperty(`domain`)&&!c$4.isString(t$2.domain)?`domain: string expected`:t$2.version!=null&&t$2.hasOwnProperty(`version`)&&!(c$4.isInteger(t$2.version)||t$2.version&&c$4.isInteger(t$2.version.low)&&c$4.isInteger(t$2.version.high))?`version: integer|Long expected`:null},t$1.fromObject=function(t$2){if(t$2 instanceof l$1.onnx.OperatorSetIdProto)return t$2;var e$4=new l$1.onnx.OperatorSetIdProto;return t$2.domain!=null&&(e$4.domain=String(t$2.domain)),t$2.version!=null&&(c$4.Long?(e$4.version=c$4.Long.fromValue(t$2.version)).unsigned=!1:typeof t$2.version==`string`?e$4.version=parseInt(t$2.version,10):typeof t$2.version==`number`?e$4.version=t$2.version:typeof t$2.version==`object`&&(e$4.version=new c$4.LongBits(t$2.version.low>>>0,t$2.version.high>>>0).toNumber())),e$4},t$1.toObject=function(t$2,e$4){e$4||={};var n$3={};if(e$4.defaults)if(n$3.domain=``,c$4.Long){var r$3=new c$4.Long(0,0,!1);n$3.version=e$4.longs===String?r$3.toString():e$4.longs===Number?r$3.toNumber():r$3}else n$3.version=e$4.longs===String?`0`:0;return t$2.domain!=null&&t$2.hasOwnProperty(`domain`)&&(n$3.domain=t$2.domain),t$2.version!=null&&t$2.hasOwnProperty(`version`)&&(typeof t$2.version==`number`?n$3.version=e$4.longs===String?String(t$2.version):t$2.version:n$3.version=e$4.longs===String?c$4.Long.prototype.toString.call(t$2.version):e$4.longs===Number?new c$4.LongBits(t$2.version.low>>>0,t$2.version.high>>>0).toNumber():t$2.version),n$3},t$1.prototype.toJSON=function(){return this.constructor.toObject(this,a$2.util.toJSONOptions)},t$1}(),o$1),t.exports=l$1},2100:(t,e$3,n$2)=>{"use strict";t.exports=n$2(9482)},9482:(t,e$3,n$2)=>{"use strict";var r$2=e$3;function i$1(){r$2.util._configure(),r$2.Writer._configure(r$2.BufferWriter),r$2.Reader._configure(r$2.BufferReader)}r$2.build=`minimal`,r$2.Writer=n$2(1173),r$2.BufferWriter=n$2(3155),r$2.Reader=n$2(1408),r$2.BufferReader=n$2(593),r$2.util=n$2(9693),r$2.rpc=n$2(5994),r$2.roots=n$2(5054),r$2.configure=i$1,i$1()},1408:(t,e$3,n$2)=>{"use strict";t.exports=u$1;var r$2,i$1=n$2(9693),o$1=i$1.LongBits,a$2=i$1.utf8;function s$1(t$1,e$4){return RangeError(`index out of range: `+t$1.pos+` + `+(e$4||1)+` > `+t$1.len)}function u$1(t$1){this.buf=t$1,this.pos=0,this.len=t$1.length}var c$4,l$1=typeof Uint8Array<`u`?function(t$1){if(t$1 instanceof Uint8Array||Array.isArray(t$1))return new u$1(t$1);throw Error(`illegal buffer`)}:function(t$1){if(Array.isArray(t$1))return new u$1(t$1);throw Error(`illegal buffer`)},p$5=function(){return i$1.Buffer?function(t$1){return(u$1.create=function(t$2){return i$1.Buffer.isBuffer(t$2)?new r$2(t$2):l$1(t$2)})(t$1)}:l$1};function f$3(){var t$1=new o$1(0,0),e$4=0;if(!(this.len-this.pos>4)){for(;e$4<3;++e$4){if(this.pos>=this.len)throw s$1(this);if(t$1.lo=(t$1.lo|(127&this.buf[this.pos])<<7*e$4)>>>0,this.buf[this.pos++]<128)return t$1}return t$1.lo=(t$1.lo|(127&this.buf[this.pos++])<<7*e$4)>>>0,t$1}for(;e$4<4;++e$4)if(t$1.lo=(t$1.lo|(127&this.buf[this.pos])<<7*e$4)>>>0,this.buf[this.pos++]<128)return t$1;if(t$1.lo=(t$1.lo|(127&this.buf[this.pos])<<28)>>>0,t$1.hi=(t$1.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t$1;if(e$4=0,this.len-this.pos>4){for(;e$4<5;++e$4)if(t$1.hi=(t$1.hi|(127&this.buf[this.pos])<<7*e$4+3)>>>0,this.buf[this.pos++]<128)return t$1}else for(;e$4<5;++e$4){if(this.pos>=this.len)throw s$1(this);if(t$1.hi=(t$1.hi|(127&this.buf[this.pos])<<7*e$4+3)>>>0,this.buf[this.pos++]<128)return t$1}throw Error(`invalid varint encoding`)}function d$2(t$1,e$4){return(t$1[e$4-4]|t$1[e$4-3]<<8|t$1[e$4-2]<<16|t$1[e$4-1]<<24)>>>0}function h$3(){if(this.pos+8>this.len)throw s$1(this,8);return new o$1(d$2(this.buf,this.pos+=4),d$2(this.buf,this.pos+=4))}u$1.create=p$5(),u$1.prototype._slice=i$1.Array.prototype.subarray||i$1.Array.prototype.slice,u$1.prototype.uint32=(c$4=4294967295,function(){if(c$4=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(c$4=(c$4|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(c$4=(c$4|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(c$4=(c$4|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(c$4=(c$4|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return c$4;if((this.pos+=5)>this.len)throw this.pos=this.len,s$1(this,10);return c$4}),u$1.prototype.int32=function(){return 0|this.uint32()},u$1.prototype.sint32=function(){var t$1=this.uint32();return t$1>>>1^-(1&t$1)|0},u$1.prototype.bool=function(){return this.uint32()!==0},u$1.prototype.fixed32=function(){if(this.pos+4>this.len)throw s$1(this,4);return d$2(this.buf,this.pos+=4)},u$1.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s$1(this,4);return 0|d$2(this.buf,this.pos+=4)},u$1.prototype.float=function(){if(this.pos+4>this.len)throw s$1(this,4);var t$1=i$1.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t$1},u$1.prototype.double=function(){if(this.pos+8>this.len)throw s$1(this,4);var t$1=i$1.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t$1},u$1.prototype.bytes=function(){var t$1=this.uint32(),e$4=this.pos,n$3=this.pos+t$1;if(n$3>this.len)throw s$1(this,t$1);return this.pos+=t$1,Array.isArray(this.buf)?this.buf.slice(e$4,n$3):e$4===n$3?new this.buf.constructor(0):this._slice.call(this.buf,e$4,n$3)},u$1.prototype.string=function(){var t$1=this.bytes();return a$2.read(t$1,0,t$1.length)},u$1.prototype.skip=function(t$1){if(typeof t$1==`number`){if(this.pos+t$1>this.len)throw s$1(this,t$1);this.pos+=t$1}else do if(this.pos>=this.len)throw s$1(this);while(128&this.buf[this.pos++]);return this},u$1.prototype.skipType=function(t$1){switch(t$1){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(t$1=7&this.uint32())!=4;)this.skipType(t$1);break;case 5:this.skip(4);break;default:throw Error(`invalid wire type `+t$1+` at offset `+this.pos)}return this},u$1._configure=function(t$1){r$2=t$1,u$1.create=p$5(),r$2._configure();var e$4=i$1.Long?`toLong`:`toNumber`;i$1.merge(u$1.prototype,{int64:function(){return f$3.call(this)[e$4](!1)},uint64:function(){return f$3.call(this)[e$4](!0)},sint64:function(){return f$3.call(this).zzDecode()[e$4](!1)},fixed64:function(){return h$3.call(this)[e$4](!0)},sfixed64:function(){return h$3.call(this)[e$4](!1)}})}},593:(t,e$3,n$2)=>{"use strict";t.exports=o$1;var r$2=n$2(1408);(o$1.prototype=Object.create(r$2.prototype)).constructor=o$1;var i$1=n$2(9693);function o$1(t$1){r$2.call(this,t$1)}o$1._configure=function(){i$1.Buffer&&(o$1.prototype._slice=i$1.Buffer.prototype.slice)},o$1.prototype.string=function(){var t$1=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t$1,this.len)):this.buf.toString(`utf-8`,this.pos,this.pos=Math.min(this.pos+t$1,this.len))},o$1._configure()},5054:t=>{"use strict";t.exports={}},5994:(t,e$3,n$2)=>{"use strict";e$3.Service=n$2(7948)},7948:(t,e$3,n$2)=>{"use strict";t.exports=i$1;var r$2=n$2(9693);function i$1(t$1,e$4,n$3){if(typeof t$1!=`function`)throw TypeError(`rpcImpl must be a function`);r$2.EventEmitter.call(this),this.rpcImpl=t$1,this.requestDelimited=!!e$4,this.responseDelimited=!!n$3}(i$1.prototype=Object.create(r$2.EventEmitter.prototype)).constructor=i$1,i$1.prototype.rpcCall=function t$1(e$4,n$3,i$2,o$1,a$2){if(!o$1)throw TypeError(`request must be specified`);var s$1=this;if(!a$2)return r$2.asPromise(t$1,s$1,e$4,n$3,i$2,o$1);if(s$1.rpcImpl)try{return s$1.rpcImpl(e$4,n$3[s$1.requestDelimited?`encodeDelimited`:`encode`](o$1).finish(),function(t$2,n$4){if(t$2)return s$1.emit(`error`,t$2,e$4),a$2(t$2);if(n$4!==null){if(!(n$4 instanceof i$2))try{n$4=i$2[s$1.responseDelimited?`decodeDelimited`:`decode`](n$4)}catch(t$3){return s$1.emit(`error`,t$3,e$4),a$2(t$3)}return s$1.emit(`data`,n$4,e$4),a$2(null,n$4)}s$1.end(!0)})}catch(t$2){return s$1.emit(`error`,t$2,e$4),void setTimeout(function(){a$2(t$2)},0)}else setTimeout(function(){a$2(Error(`already ended`))},0)},i$1.prototype.end=function(t$1){return this.rpcImpl&&(t$1||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(`end`).off()),this}},1945:(t,e$3,n$2)=>{"use strict";t.exports=i$1;var r$2=n$2(9693);function i$1(t$1,e$4){this.lo=t$1>>>0,this.hi=e$4>>>0}var o$1=i$1.zero=new i$1(0,0);o$1.toNumber=function(){return 0},o$1.zzEncode=o$1.zzDecode=function(){return this},o$1.length=function(){return 1};var a$2=i$1.zeroHash=`\0\0\0\0\0\0\0\0`;i$1.fromNumber=function(t$1){if(t$1===0)return o$1;var e$4=t$1<0;e$4&&(t$1=-t$1);var n$3=t$1>>>0,r$3=(t$1-n$3)/4294967296>>>0;return e$4&&(r$3=~r$3>>>0,n$3=~n$3>>>0,++n$3>4294967295&&(n$3=0,++r$3>4294967295&&(r$3=0))),new i$1(n$3,r$3)},i$1.from=function(t$1){if(typeof t$1==`number`)return i$1.fromNumber(t$1);if(r$2.isString(t$1)){if(!r$2.Long)return i$1.fromNumber(parseInt(t$1,10));t$1=r$2.Long.fromString(t$1)}return t$1.low||t$1.high?new i$1(t$1.low>>>0,t$1.high>>>0):o$1},i$1.prototype.toNumber=function(t$1){if(!t$1&&this.hi>>>31){var e$4=1+~this.lo>>>0,n$3=~this.hi>>>0;return e$4||(n$3=n$3+1>>>0),-(e$4+4294967296*n$3)}return this.lo+4294967296*this.hi},i$1.prototype.toLong=function(t$1){return r$2.Long?new r$2.Long(0|this.lo,0|this.hi,!!t$1):{low:0|this.lo,high:0|this.hi,unsigned:!!t$1}};var s$1=String.prototype.charCodeAt;i$1.fromHash=function(t$1){return t$1===a$2?o$1:new i$1((s$1.call(t$1,0)|s$1.call(t$1,1)<<8|s$1.call(t$1,2)<<16|s$1.call(t$1,3)<<24)>>>0,(s$1.call(t$1,4)|s$1.call(t$1,5)<<8|s$1.call(t$1,6)<<16|s$1.call(t$1,7)<<24)>>>0)},i$1.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i$1.prototype.zzEncode=function(){var t$1=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t$1)>>>0,this.lo=(this.lo<<1^t$1)>>>0,this},i$1.prototype.zzDecode=function(){var t$1=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t$1)>>>0,this.hi=(this.hi>>>1^t$1)>>>0,this},i$1.prototype.length=function(){var t$1=this.lo,e$4=(this.lo>>>28|this.hi<<4)>>>0,n$3=this.hi>>>24;return n$3===0?e$4===0?t$1<16384?t$1<128?1:2:t$1<2097152?3:4:e$4<16384?e$4<128?5:6:e$4<2097152?7:8:n$3<128?9:10}},9693:function(t,e$3,n$2){"use strict";var r$2=e$3;function i$1(t$1,e$4,n$3){for(var r$3=Object.keys(e$4),i$2=0;i$20)},r$2.Buffer=function(){try{var t$1=r$2.inquire(`buffer`).Buffer;return t$1.prototype.utf8Write?t$1:null}catch{return null}}(),r$2._Buffer_from=null,r$2._Buffer_allocUnsafe=null,r$2.newBuffer=function(t$1){return typeof t$1==`number`?r$2.Buffer?r$2._Buffer_allocUnsafe(t$1):new r$2.Array(t$1):r$2.Buffer?r$2._Buffer_from(t$1):typeof Uint8Array>`u`?t$1:new Uint8Array(t$1)},r$2.Array=typeof Uint8Array<`u`?Uint8Array:Array,r$2.Long=r$2.global.dcodeIO&&r$2.global.dcodeIO.Long||r$2.global.Long||r$2.inquire(`long`),r$2.key2Re=/^true|false|0|1$/,r$2.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r$2.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r$2.longToHash=function(t$1){return t$1?r$2.LongBits.from(t$1).toHash():r$2.LongBits.zeroHash},r$2.longFromHash=function(t$1,e$4){var n$3=r$2.LongBits.fromHash(t$1);return r$2.Long?r$2.Long.fromBits(n$3.lo,n$3.hi,e$4):n$3.toNumber(!!e$4)},r$2.merge=i$1,r$2.lcFirst=function(t$1){return t$1.charAt(0).toLowerCase()+t$1.substring(1)},r$2.newError=o$1,r$2.ProtocolError=o$1(`ProtocolError`),r$2.oneOfGetter=function(t$1){for(var e$4={},n$3=0;n$3-1;--n$4)if(e$4[t$2[n$4]]===1&&this[t$2[n$4]]!==void 0&&this[t$2[n$4]]!==null)return t$2[n$4]}},r$2.oneOfSetter=function(t$1){return function(e$4){for(var n$3=0;n$3{"use strict";t.exports=p$5;var r$2,i$1=n$2(9693),o$1=i$1.LongBits,a$2=i$1.base64,s$1=i$1.utf8;function u$1(t$1,e$4,n$3){this.fn=t$1,this.len=e$4,this.next=void 0,this.val=n$3}function c$4(){}function l$1(t$1){this.head=t$1.head,this.tail=t$1.tail,this.len=t$1.len,this.next=t$1.states}function p$5(){this.len=0,this.head=new u$1(c$4,0,0),this.tail=this.head,this.states=null}var f$3=function(){return i$1.Buffer?function(){return(p$5.create=function(){return new r$2})()}:function(){return new p$5}};function d$2(t$1,e$4,n$3){e$4[n$3]=255&t$1}function h$3(t$1,e$4){this.len=t$1,this.next=void 0,this.val=e$4}function g$2(t$1,e$4,n$3){for(;t$1.hi;)e$4[n$3++]=127&t$1.lo|128,t$1.lo=(t$1.lo>>>7|t$1.hi<<25)>>>0,t$1.hi>>>=7;for(;t$1.lo>127;)e$4[n$3++]=127&t$1.lo|128,t$1.lo>>>=7;e$4[n$3++]=t$1.lo}function b$3(t$1,e$4,n$3){e$4[n$3]=255&t$1,e$4[n$3+1]=t$1>>>8&255,e$4[n$3+2]=t$1>>>16&255,e$4[n$3+3]=t$1>>>24}p$5.create=f$3(),p$5.alloc=function(t$1){return new i$1.Array(t$1)},i$1.Array!==Array&&(p$5.alloc=i$1.pool(p$5.alloc,i$1.Array.prototype.subarray)),p$5.prototype._push=function(t$1,e$4,n$3){return this.tail=this.tail.next=new u$1(t$1,e$4,n$3),this.len+=e$4,this},h$3.prototype=Object.create(u$1.prototype),h$3.prototype.fn=function(t$1,e$4,n$3){for(;t$1>127;)e$4[n$3++]=127&t$1|128,t$1>>>=7;e$4[n$3]=t$1},p$5.prototype.uint32=function(t$1){return this.len+=(this.tail=this.tail.next=new h$3((t$1>>>=0)<128?1:t$1<16384?2:t$1<2097152?3:t$1<268435456?4:5,t$1)).len,this},p$5.prototype.int32=function(t$1){return t$1<0?this._push(g$2,10,o$1.fromNumber(t$1)):this.uint32(t$1)},p$5.prototype.sint32=function(t$1){return this.uint32((t$1<<1^t$1>>31)>>>0)},p$5.prototype.uint64=function(t$1){var e$4=o$1.from(t$1);return this._push(g$2,e$4.length(),e$4)},p$5.prototype.int64=p$5.prototype.uint64,p$5.prototype.sint64=function(t$1){var e$4=o$1.from(t$1).zzEncode();return this._push(g$2,e$4.length(),e$4)},p$5.prototype.bool=function(t$1){return this._push(d$2,1,t$1?1:0)},p$5.prototype.fixed32=function(t$1){return this._push(b$3,4,t$1>>>0)},p$5.prototype.sfixed32=p$5.prototype.fixed32,p$5.prototype.fixed64=function(t$1){var e$4=o$1.from(t$1);return this._push(b$3,4,e$4.lo)._push(b$3,4,e$4.hi)},p$5.prototype.sfixed64=p$5.prototype.fixed64,p$5.prototype.float=function(t$1){return this._push(i$1.float.writeFloatLE,4,t$1)},p$5.prototype.double=function(t$1){return this._push(i$1.float.writeDoubleLE,8,t$1)};var m$2=i$1.Array.prototype.set?function(t$1,e$4,n$3){e$4.set(t$1,n$3)}:function(t$1,e$4,n$3){for(var r$3=0;r$3>>0;if(!e$4)return this._push(d$2,1,0);if(i$1.isString(t$1)){var n$3=p$5.alloc(e$4=a$2.length(t$1));a$2.decode(t$1,n$3,0),t$1=n$3}return this.uint32(e$4)._push(m$2,e$4,t$1)},p$5.prototype.string=function(t$1){var e$4=s$1.length(t$1);return e$4?this.uint32(e$4)._push(s$1.write,e$4,t$1):this._push(d$2,1,0)},p$5.prototype.fork=function(){return this.states=new l$1(this),this.head=this.tail=new u$1(c$4,0,0),this.len=0,this},p$5.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u$1(c$4,0,0),this.len=0),this},p$5.prototype.ldelim=function(){var t$1=this.head,e$4=this.tail,n$3=this.len;return this.reset().uint32(n$3),n$3&&(this.tail.next=t$1.next,this.tail=e$4,this.len+=n$3),this},p$5.prototype.finish=function(){for(var t$1=this.head.next,e$4=this.constructor.alloc(this.len),n$3=0;t$1;)t$1.fn(t$1.val,e$4,n$3),n$3+=t$1.len,t$1=t$1.next;return e$4},p$5._configure=function(t$1){r$2=t$1,p$5.create=f$3(),r$2._configure()}},3155:(t,e$3,n$2)=>{"use strict";t.exports=o$1;var r$2=n$2(1173);(o$1.prototype=Object.create(r$2.prototype)).constructor=o$1;var i$1=n$2(9693);function o$1(){r$2.call(this)}function a$2(t$1,e$4,n$3){t$1.length<40?i$1.utf8.write(t$1,e$4,n$3):e$4.utf8Write?e$4.utf8Write(t$1,n$3):e$4.write(t$1,n$3)}o$1._configure=function(){o$1.alloc=i$1._Buffer_allocUnsafe,o$1.writeBytesBuffer=i$1.Buffer&&i$1.Buffer.prototype instanceof Uint8Array&&i$1.Buffer.prototype.set.name===`set`?function(t$1,e$4,n$3){e$4.set(t$1,n$3)}:function(t$1,e$4,n$3){if(t$1.copy)t$1.copy(e$4,n$3,0,t$1.length);else for(var r$3=0;r$3>>0;return this.uint32(e$4),e$4&&this._push(o$1.writeBytesBuffer,e$4,t$1),this},o$1.prototype.string=function(t$1){var e$4=i$1.Buffer.byteLength(t$1);return this.uint32(e$4),e$4&&this._push(a$2,e$4,t$1),this},o$1._configure()},7714:(t,e$3,n$2)=>{"use strict";e$3.R=void 0;let r$2=n$2(6919),i$1=n$2(7448);e$3.R=new class{async init(){}async createSessionHandler(t$1,e$4){let n$3=new r$2.Session(e$4);return await n$3.loadModel(t$1),new i$1.OnnxjsSessionHandler(n$3)}}},4200:(t,e$3,n$2)=>{"use strict";e$3.c8=e$3.rX=void 0;let r$2=n$2(1670),i$1=n$2(5381),o$1=n$2(2157),a$2=n$2(2306);e$3.rX=()=>{if((typeof r$2.env.wasm.initTimeout!=`number`||r$2.env.wasm.initTimeout<0)&&(r$2.env.wasm.initTimeout=0),typeof r$2.env.wasm.simd!=`boolean`&&(r$2.env.wasm.simd=!0),typeof r$2.env.wasm.proxy!=`boolean`&&(r$2.env.wasm.proxy=!1),typeof r$2.env.wasm.numThreads!=`number`||!Number.isInteger(r$2.env.wasm.numThreads)||r$2.env.wasm.numThreads<=0){let t$1=typeof navigator>`u`?(0,i$1.cpus)().length:navigator.hardwareConcurrency;r$2.env.wasm.numThreads=Math.min(4,Math.ceil((t$1||1)/2))}},e$3.c8=new class{async init(){(0,e$3.rX)(),await(0,o$1.initWasm)()}async createSessionHandler(t$1,e$4){let n$3=new a$2.OnnxruntimeWebAssemblySessionHandler;return await n$3.loadModel(t$1,e$4),Promise.resolve(n$3)}}},6018:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__exportStar||function(t$1,e$4){for(var n$3 in t$1)n$3===`default`||Object.prototype.hasOwnProperty.call(e$4,n$3)||r$2(e$4,t$1,n$3)};Object.defineProperty(e$3,`__esModule`,{value:!0}),i$1(n$2(1670),e$3);let o$1=n$2(1670);{let t$1=n$2(7714).R;(0,o$1.registerBackend)(`webgl`,t$1,-10)}{let t$1=n$2(4200).c8;(0,o$1.registerBackend)(`cpu`,t$1,10),(0,o$1.registerBackend)(`wasm`,t$1,10),(0,o$1.registerBackend)(`xnnpack`,t$1,9)}},246:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createAttributeWithCacheKey=void 0;class n$2{constructor(t$1){Object.assign(this,t$1)}get cacheKey(){return this._cacheKey||=Object.getOwnPropertyNames(this).sort().map(t$1=>`${this[t$1]}`).join(`;`),this._cacheKey}}e$3.createAttributeWithCacheKey=t$1=>new n$2(t$1)},7778:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Attribute=void 0;let r$2=n$2(1446),i$1=n$2(9395),o$1=n$2(9162),a$2=n$2(2517);var s$1=i$1.onnxruntime.experimental.fbs;class u$1{constructor(t$1){if(this._attributes=new Map,t$1!=null){for(let e$4 of t$1)e$4 instanceof r$2.onnx.AttributeProto?this._attributes.set(e$4.name,[u$1.getValue(e$4),u$1.getType(e$4)]):e$4 instanceof s$1.Attribute&&this._attributes.set(e$4.name(),[u$1.getValue(e$4),u$1.getType(e$4)]);if(this._attributes.sizeo$1.Tensor.fromProto(t$2));if(t$1 instanceof s$1.Attribute)return n$3.map(t$2=>o$1.Tensor.fromOrtTensor(t$2))}if(e$4===r$2.onnx.AttributeProto.AttributeType.STRING&&t$1 instanceof r$2.onnx.AttributeProto){let t$2=n$3;return(0,a$2.decodeUtf8String)(t$2)}return e$4===r$2.onnx.AttributeProto.AttributeType.STRINGS&&t$1 instanceof r$2.onnx.AttributeProto?n$3.map(a$2.decodeUtf8String):n$3}static getValueNoCheck(t$1){return t$1 instanceof r$2.onnx.AttributeProto?this.getValueNoCheckFromOnnxFormat(t$1):this.getValueNoCheckFromOrtFormat(t$1)}static getValueNoCheckFromOnnxFormat(t$1){switch(t$1.type){case r$2.onnx.AttributeProto.AttributeType.FLOAT:return t$1.f;case r$2.onnx.AttributeProto.AttributeType.INT:return t$1.i;case r$2.onnx.AttributeProto.AttributeType.STRING:return t$1.s;case r$2.onnx.AttributeProto.AttributeType.TENSOR:return t$1.t;case r$2.onnx.AttributeProto.AttributeType.GRAPH:return t$1.g;case r$2.onnx.AttributeProto.AttributeType.FLOATS:return t$1.floats;case r$2.onnx.AttributeProto.AttributeType.INTS:return t$1.ints;case r$2.onnx.AttributeProto.AttributeType.STRINGS:return t$1.strings;case r$2.onnx.AttributeProto.AttributeType.TENSORS:return t$1.tensors;case r$2.onnx.AttributeProto.AttributeType.GRAPHS:return t$1.graphs;default:throw Error(`unsupported attribute type: ${r$2.onnx.AttributeProto.AttributeType[t$1.type]}`)}}static getValueNoCheckFromOrtFormat(t$1){switch(t$1.type()){case s$1.AttributeType.FLOAT:return t$1.f();case s$1.AttributeType.INT:return t$1.i();case s$1.AttributeType.STRING:return t$1.s();case s$1.AttributeType.TENSOR:return t$1.t();case s$1.AttributeType.GRAPH:return t$1.g();case s$1.AttributeType.FLOATS:return t$1.floatsArray();case s$1.AttributeType.INTS:{let e$4=[];for(let n$3=0;n$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.resolveBackend=e$3.backend=void 0;let r$2=n$2(5038),i$1=new Map;async function o$1(t$1){let n$3=e$3.backend;if(n$3[t$1]!==void 0&&function(t$2){let e$4=t$2;return`initialize`in e$4&&typeof e$4.initialize==`function`&&`createSessionHandler`in e$4&&typeof e$4.createSessionHandler==`function`&&`dispose`in e$4&&typeof e$4.dispose==`function`}(n$3[t$1])){let e$4=n$3[t$1],r$3=e$4.initialize();if(typeof r$3==`object`&&`then`in r$3&&(r$3=await r$3),r$3)return i$1.set(t$1,e$4),e$4}}e$3.backend={webgl:new r$2.WebGLBackend},e$3.resolveBackend=async function t$1(e$4){if(!e$4)return t$1([`webgl`]);{let t$2=typeof e$4==`string`?[e$4]:e$4;for(let e$5 of t$2){let t$3=i$1.get(e$5);if(t$3)return t$3;let n$3=await o$1(e$5);if(n$3)return n$3}}throw Error(`no available backend to use`)}},5038:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLBackend=void 0;let r$2=n$2(1670),i$1=n$2(6231),o$1=n$2(6416),a$2=n$2(7305);e$3.WebGLBackend=class{get contextId(){return r$2.env.webgl.contextId}set contextId(t$1){r$2.env.webgl.contextId=t$1}get matmulMaxBatchSize(){return r$2.env.webgl.matmulMaxBatchSize}set matmulMaxBatchSize(t$1){r$2.env.webgl.matmulMaxBatchSize=t$1}get textureCacheMode(){return r$2.env.webgl.textureCacheMode}set textureCacheMode(t$1){r$2.env.webgl.textureCacheMode=t$1}get pack(){return r$2.env.webgl.pack}set pack(t$1){r$2.env.webgl.pack=t$1}get async(){return r$2.env.webgl.async}set async(t$1){r$2.env.webgl.async=t$1}initialize(){try{return this.glContext=(0,a$2.createWebGLContext)(this.contextId),typeof this.matmulMaxBatchSize!=`number`&&(this.matmulMaxBatchSize=16),typeof this.textureCacheMode!=`string`&&(this.textureCacheMode=`full`),typeof this.pack!=`boolean`&&(this.pack=!1),typeof this.async!=`boolean`&&(this.async=!1),i$1.Logger.setWithEnv(r$2.env),i$1.Logger.verbose(`WebGLBackend`,`Created WebGLContext: ${typeof this.glContext} with matmulMaxBatchSize: ${this.matmulMaxBatchSize}; textureCacheMode: ${this.textureCacheMode}; pack: ${this.pack}; async: ${this.async}.`),!0}catch(t$1){return i$1.Logger.warning(`WebGLBackend`,`Unable to initialize WebGLBackend. ${t$1}`),!1}}createSessionHandler(t$1){return new o$1.WebGLSessionHandler(this,t$1)}dispose(){this.glContext.dispose()}}},5107:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.CoordsGlslLib=void 0;let r$2=n$2(2517),i$1=n$2(8520),o$1=n$2(5060),a$2=n$2(7859),s$1=n$2(9390);class u$1 extends i$1.GlslLib{constructor(t$1){super(t$1)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.offsetToCoords()),this.coordsToOffset()),this.toVec()),this.valueFrom()),this.getCommonUtilFuncs()),this.getInputsSamplingSnippets()),this.getOutputSamplingSnippet())}getCustomTypes(){return{}}offsetToCoords(){return{offsetToCoords:new i$1.GlslLibRoutine(` vec2 offsetToCoords(int offset, int width, int height) { int t = offset / width; int s = offset - t*width; @@ -3917,14 +3917,14 @@ function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof se return (vec2(texC, texR) + halfCR) / vec2(texNumC, texNumR); } `),e$4=`sampleTexture`;let n$3=(0,o$1.getGlsl)(this.context.glContext.version);return t$1[e$4]=new i$1.GlslLibRoutine(`\n float sampleTexture(sampler2D textureSampler, vec2 uv) {\n return ${n$3.texture2D}(textureSampler, uv).r;\n }`),t$1}getInputsSamplingSnippets(){let t$1={},e$4=this.context.outputTextureLayout;return this.context.programInfo.inputNames.forEach((n$3,r$3)=>{let i$2=this.context.inputTextureLayouts[r$3],o$2=(0,s$1.generateShaderFuncNameFromInputSamplerName)(n$3);i$2.isPacked?t$1[o$2]=this.getPackedSamplerFromInput(o$2,n$3,i$2):t$1[o$2]=this.getUnpackedSamplerFromInput(o$2,n$3,i$2);let a$3=(0,s$1.generateShaderFuncNameFromInputSamplerNameAtOutCoords)(n$3);i$2.unpackedShape.length<=e$4.unpackedShape.length&&(i$2.isPacked?t$1[a$3]=this.getPackedSamplerAtOutputCoords(a$3,i$2,e$4,n$3):t$1[a$3]=this.getUnpackedSamplerAtOutputCoords(a$3,i$2,e$4,n$3))}),t$1}getPackedSamplerAtOutputCoords(t$1,e$4,n$3,o$2){let a$3=e$4.unpackedShape,u$2=n$3.unpackedShape,c$4=o$2,l$1=(0,s$1.generateShaderFuncNameFromInputSamplerName)(c$4),p$5=a$3.length,f$3=u$2.length,d$2=r$2.BroadcastUtil.getBroadcastDims(a$3,u$2),h$3=(0,s$1.getCoordsDataType)(f$3),g$2=f$3-p$5,b$3,m$2=(0,s$1.getGlChannels)();b$3=p$5===0?``:f$3<2&&d$2.length>=1?`coords = 0;`:d$2.map(t$2=>`coords.${m$2[t$2+g$2]} = 0;`).join(` -`);let y$2=``;y$2=f$3<2&&p$5>0?`coords`:a$3.map((t$2,e$5)=>`coords.${m$2[e$5+g$2]}`).join(`, `);let _$1=`return outputValue;`,v$1=r$2.ShapeUtil.size(a$3)===1,w$1=r$2.ShapeUtil.size(u$2)===1;if(p$5!==1||v$1||w$1){if(v$1&&!w$1)_$1=f$3===1?` +`);let y$2=``;y$2=f$3<2&&p$5>0?`coords`:a$3.map((t$2,e$5)=>`coords.${m$2[e$5+g$2]}`).join(`, `);let _$2=`return outputValue;`,v$1=r$2.ShapeUtil.size(a$3)===1,w$1=r$2.ShapeUtil.size(u$2)===1;if(p$5!==1||v$1||w$1){if(v$1&&!w$1)_$2=f$3===1?` return vec4(outputValue.x, outputValue.x, 0., 0.); `:` return vec4(outputValue.x); - `;else if(d$2.length){let t$2=p$5-2,e$5=p$5-1;d$2.indexOf(t$2)>-1&&d$2.indexOf(e$5)>-1?_$1=`return vec4(outputValue.x);`:d$2.indexOf(t$2)>-1?_$1=`return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);`:d$2.indexOf(e$5)>-1&&(_$1=`return vec4(outputValue.xx, outputValue.zz);`)}}else _$1=` + `;else if(d$2.length){let t$2=p$5-2,e$5=p$5-1;d$2.indexOf(t$2)>-1&&d$2.indexOf(e$5)>-1?_$2=`return vec4(outputValue.x);`:d$2.indexOf(t$2)>-1?_$2=`return vec4(outputValue.x, outputValue.y, outputValue.x, outputValue.y);`:d$2.indexOf(e$5)>-1&&(_$2=`return vec4(outputValue.xx, outputValue.zz);`)}}else _$2=` return vec4(outputValue.xy, outputValue.xy); - `;let x$3=`\n vec4 ${t$1}() {\n ${h$3} coords = getOutputCoords();\n \n int lastDim = coords.${m$2[f$3-1]};\n coords.${m$2[f$3-1]} = coords.${m$2[f$3-2]};\n coords.${m$2[f$3-2]} = lastDim;\n \n ${b$3}\n vec4 outputValue = ${l$1}(${y$2});\n ${_$1}\n }\n `;return new i$1.GlslLibRoutine(x$3,[`coordinates.getOutputCoords`])}getUnpackedSamplerAtOutputCoords(t$1,e$4,n$3,o$2){let a$3=[n$3.width,n$3.height],u$2=[e$4.width,e$4.height],c$4=e$4.unpackedShape.length,l$1=n$3.unpackedShape.length,p$5=e$4.unpackedShape,f$3=n$3.unpackedShape,d$2=(0,s$1.generateShaderFuncNameFromInputSamplerName)(o$2);if(c$4===l$1&&r$2.ArrayUtil.arraysEqual(u$2,a$3)){let e$5=`\n float ${t$1}() {\n return sampleTexture(${o$2}, TexCoords);\n }\n `;return new i$1.GlslLibRoutine(e$5,[`coordinates.sampleTexture`])}let h$3=(0,s$1.getCoordsDataType)(l$1),g$2=r$2.BroadcastUtil.getBroadcastDims(p$5,f$3),b$3=l$1-c$4,m$2,y$2=(0,s$1.getGlChannels)();m$2=c$4===0?``:l$1<2&&g$2.length>=1?`coords = 0;`:g$2.map(t$2=>`coords.${y$2[t$2+b$3]} = 0;`).join(` -`);let _$1=``;_$1=l$1<2&&c$4>0?`coords`:e$4.unpackedShape.map((t$2,e$5)=>`coords.${y$2[e$5+b$3]}`).join(`, `);let v$1=`\n float ${t$1}() {\n ${h$3} coords = getOutputCoords();\n ${m$2}\n return ${d$2}(${_$1});\n }\n `;return new i$1.GlslLibRoutine(v$1,[`coordinates.getOutputCoords`])}getPackedSamplerFromInput(t$1,e$4,n$3){switch(n$3.unpackedShape.length){case 0:return this.getPackedSamplerScalar(t$1,e$4);case 1:return this.getPackedSampler1D(t$1,e$4,n$3);case 2:return this.getPackedSampler2D(t$1,e$4,n$3);case 3:return this.getPackedSampler3D(t$1,e$4,n$3);default:return this.getPackedSamplerND(t$1,e$4,n$3)}}getUnpackedSamplerFromInput(t$1,e$4,n$3){let r$3=n$3.unpackedShape;switch(r$3.length){case 0:return this.getUnpackedSamplerScalar(t$1,e$4,n$3);case 1:return this.getUnpackedSampler1D(t$1,e$4,n$3);case 2:return this.getUnpackedSampler2D(t$1,e$4,n$3);case 3:return this.getUnpackedSampler3D(t$1,e$4,n$3);case 4:return this.getUnpackedSampler4D(t$1,e$4,n$3);case 5:return this.getUnpackedSampler5D(t$1,e$4,n$3);case 6:return this.getUnpackedSampler6D(t$1,e$4,n$3);default:throw Error(`Unsupported dimension ${r$3.length}-D`)}}getPackedSamplerScalar(t$1,e$4){let n$3=`\n vec4 ${t$1}() {\n return ${(0,o$1.getGlsl)(this.context.glContext.version).texture2D}(${e$4}, halfCR);\n }\n `;return new i$1.GlslLibRoutine(n$3)}getPackedSampler1D(t$1,e$4,n$3){let r$3=[n$3.width,n$3.height],a$3=[r$3[1],r$3[0]],s$2=(0,o$1.getGlsl)(this.context.glContext.version),u$2=`vec4 ${t$1}(int index) {\n vec2 uv = packedUVfrom1D(\n ${a$3[0]}, ${a$3[1]}, index);\n return ${s$2.texture2D}(${e$4}, uv);\n }`;return new i$1.GlslLibRoutine(u$2,[`coordinates.packedUVfrom1D`])}getPackedSampler2D(t$1,e$4,n$3){let a$3=n$3.unpackedShape,s$2=[n$3.width,n$3.height],u$2=(0,o$1.getGlsl)(this.context.glContext.version),c$4=s$2[0],l$1=s$2[1];if(s$2!=null&&r$2.ArrayUtil.arraysEqual(a$3,s$2)){let n$4=`vec4 ${t$1}(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${l$1}.0, ${c$4}.0);\n return ${u$2.texture2D}(${e$4}, uv);\n }`;return new i$1.GlslLibRoutine(n$4)}let p$5=s$2,f$3=Math.ceil(a$3[1]/2),d$2=`vec4 ${t$1}(int row, int col) {\n vec2 uv = packedUVfrom2D(${p$5[1]}, ${p$5[0]}, ${f$3}, row, col);\n return ${u$2.texture2D}(${e$4}, uv);\n }`;return new i$1.GlslLibRoutine(d$2,[`coordinates.packedUVfrom2D`])}getPackedSampler3D(t$1,e$4,n$3){let r$3=n$3.unpackedShape,a$3=[n$3.width,n$3.height],u$2=[a$3[0],a$3[1]],c$4=(0,o$1.getGlsl)(this.context.glContext.version);if(r$3[0]===1){let o$2=r$3.slice(1),a$4=[1,2],u$3=(0,s$1.squeezeInputShape)(r$3,o$2),c$5=[`b`,`row`,`col`],l$2=JSON.parse(JSON.stringify(n$3));l$2.unpackedShape=u$3;let p$6=this.getPackedSamplerFromInput(t$1,e$4,l$2),f$4=`${p$6.routineBody}\n vec4 ${t$1}(int b, int row, int col) {\n return ${t$1}(${(0,s$1.getSqueezedParams)(c$5,a$4)});\n } `;return new i$1.GlslLibRoutine(f$4,p$6.dependencies)}let l$1=u$2[0],p$5=u$2[1],f$3=Math.ceil(r$3[2]/2),d$2=`vec4 ${t$1}(int b, int row, int col) {\n vec2 uv = packedUVfrom3D(\n ${p$5}, ${l$1}, ${f$3*Math.ceil(r$3[1]/2)}, ${f$3}, b, row, col);\n return ${c$4.texture2D}(${e$4}, uv);}`;return new i$1.GlslLibRoutine(d$2,[`coordinates.packedUVfrom3D`])}getPackedSamplerND(t$1,e$4,n$3){let r$3=n$3.unpackedShape,a$3=r$3.length,s$2=[n$3.width,n$3.height],u$2=(0,o$1.getGlsl)(this.context.glContext.version),c$4=[s$2[0],s$2[1]],l$1=c$4[1],p$5=c$4[0],f$3=Math.ceil(r$3[a$3-1]/2),d$2=f$3*Math.ceil(r$3[a$3-2]/2),h$3=`int b, int row, int col`,g$2=`b * ${d$2} + (row / 2) * ${f$3} + (col / 2)`;for(let t$2=2;t$2{let r$3=this.context.inputTextureLayouts[n$3],o$2=(r$3.unpackedShape.length>0?r$3.unpackedShape:r$3.shape).length,a$3=`_${e$4}`;t$1[a$3]=new i$1.GlslLibRoutine(this.getValueFromSingle(e$4,o$2,r$3.width,r$3.height,!1),[`shapeUtils.indicesToOffset${a$3}`,`coordinates.offsetToCoords`,`fragcolor.getColorAsFloat`]),a$3+=`_T`,t$1[a$3]=new i$1.GlslLibRoutine(this.getValueFromSingle(e$4,o$2,r$3.width,r$3.height,!0),[`shapeUtils.indicesToOffset${a$3}`,`coordinates.offsetToCoords`,`fragcolor.getColorAsFloat`])}),t$1}getValueFromSingle(t$1,e$4,n$3,r$3,i$2){let a$3=`_${t$1}`;return i$2&&(a$3+=`_T`),`\n float ${a$3}(int m[${e$4}]) {\n int offset = indicesToOffset${a$3}(m);\n vec2 coords = offsetToCoords(offset, ${n$3}, ${r$3});\n float value = getColorAsFloat(${(0,o$1.getGlsl)(this.context.glContext.version).texture2D}(${t$1}, coords));\n return value;\n }\n `}getPackedValueFrom(t$1,e$4,n$3,r$3,i$2){let a$3=`_${t$1}_Pack`;return i$2&&(a$3+=`_T`),`\n vec4 ${a$3}(int m[${e$4}]) {\n int offset = indicesToOffset_${t$1}(m);\n vec2 coords = offsetToCoords(offset, ${n$3}, ${r$3});\n return ${(0,o$1.getGlsl)(this.context.glContext.version).texture2D}(${t$1}, coords);\n }\n `}}e$3.CoordsGlslLib=u$1},8520:(t,e$3)=>{"use strict";var n$2;Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.TopologicalSortGlslRoutines=e$3.GlslLibRoutineNode=e$3.GlslLibRoutine=e$3.GlslLib=e$3.GlslContext=e$3.FunctionType=void 0,(n$2=e$3.FunctionType||={})[n$2.ValueBased=0]=`ValueBased`,n$2[n$2.Positional=1]=`Positional`,e$3.GlslContext=class{constructor(t$1,e$4,n$3,r$2){this.glContext=t$1,this.programInfo=e$4,this.inputTextureLayouts=n$3,this.outputTextureLayout=r$2}},e$3.GlslLib=class{constructor(t$1){this.context=t$1}},e$3.GlslLibRoutine=class{constructor(t$1,e$4){this.routineBody=t$1,this.dependencies=e$4}},e$3.GlslLibRoutineNode=class{constructor(t$1,e$4,n$3){this.name=t$1,this.dependencies=n$3||[],e$4&&(this.routineBody=e$4)}addDependency(t$1){t$1&&this.dependencies.push(t$1)}},e$3.TopologicalSortGlslRoutines=class{static returnOrderedNodes(t$1){if(!t$1||t$1.length===0)return[];if(t$1.length===1)return t$1;let e$4=new Set,n$3=new Set,r$2=[];return this.createOrderedNodes(t$1,e$4,n$3,r$2),r$2}static createOrderedNodes(t$1,e$4,n$3,r$2){for(let i$1=0;i$10)for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.EncodingGlslLib=void 0;let r$2=n$2(8520);class i$1 extends r$2.GlslLib{constructor(t$1){super(t$1)}getFunctions(){return Object.assign(Object.assign({},this.encodeFloat32()),this.decodeFloat32())}getCustomTypes(){return{}}encodeFloat32(){return{encode:new r$2.GlslLibRoutine(`highp vec4 encode(highp float f) { + `;let x$3=`\n vec4 ${t$1}() {\n ${h$3} coords = getOutputCoords();\n \n int lastDim = coords.${m$2[f$3-1]};\n coords.${m$2[f$3-1]} = coords.${m$2[f$3-2]};\n coords.${m$2[f$3-2]} = lastDim;\n \n ${b$3}\n vec4 outputValue = ${l$1}(${y$2});\n ${_$2}\n }\n `;return new i$1.GlslLibRoutine(x$3,[`coordinates.getOutputCoords`])}getUnpackedSamplerAtOutputCoords(t$1,e$4,n$3,o$2){let a$3=[n$3.width,n$3.height],u$2=[e$4.width,e$4.height],c$4=e$4.unpackedShape.length,l$1=n$3.unpackedShape.length,p$5=e$4.unpackedShape,f$3=n$3.unpackedShape,d$2=(0,s$1.generateShaderFuncNameFromInputSamplerName)(o$2);if(c$4===l$1&&r$2.ArrayUtil.arraysEqual(u$2,a$3)){let e$5=`\n float ${t$1}() {\n return sampleTexture(${o$2}, TexCoords);\n }\n `;return new i$1.GlslLibRoutine(e$5,[`coordinates.sampleTexture`])}let h$3=(0,s$1.getCoordsDataType)(l$1),g$2=r$2.BroadcastUtil.getBroadcastDims(p$5,f$3),b$3=l$1-c$4,m$2,y$2=(0,s$1.getGlChannels)();m$2=c$4===0?``:l$1<2&&g$2.length>=1?`coords = 0;`:g$2.map(t$2=>`coords.${y$2[t$2+b$3]} = 0;`).join(` +`);let _$2=``;_$2=l$1<2&&c$4>0?`coords`:e$4.unpackedShape.map((t$2,e$5)=>`coords.${y$2[e$5+b$3]}`).join(`, `);let v$1=`\n float ${t$1}() {\n ${h$3} coords = getOutputCoords();\n ${m$2}\n return ${d$2}(${_$2});\n }\n `;return new i$1.GlslLibRoutine(v$1,[`coordinates.getOutputCoords`])}getPackedSamplerFromInput(t$1,e$4,n$3){switch(n$3.unpackedShape.length){case 0:return this.getPackedSamplerScalar(t$1,e$4);case 1:return this.getPackedSampler1D(t$1,e$4,n$3);case 2:return this.getPackedSampler2D(t$1,e$4,n$3);case 3:return this.getPackedSampler3D(t$1,e$4,n$3);default:return this.getPackedSamplerND(t$1,e$4,n$3)}}getUnpackedSamplerFromInput(t$1,e$4,n$3){let r$3=n$3.unpackedShape;switch(r$3.length){case 0:return this.getUnpackedSamplerScalar(t$1,e$4,n$3);case 1:return this.getUnpackedSampler1D(t$1,e$4,n$3);case 2:return this.getUnpackedSampler2D(t$1,e$4,n$3);case 3:return this.getUnpackedSampler3D(t$1,e$4,n$3);case 4:return this.getUnpackedSampler4D(t$1,e$4,n$3);case 5:return this.getUnpackedSampler5D(t$1,e$4,n$3);case 6:return this.getUnpackedSampler6D(t$1,e$4,n$3);default:throw Error(`Unsupported dimension ${r$3.length}-D`)}}getPackedSamplerScalar(t$1,e$4){let n$3=`\n vec4 ${t$1}() {\n return ${(0,o$1.getGlsl)(this.context.glContext.version).texture2D}(${e$4}, halfCR);\n }\n `;return new i$1.GlslLibRoutine(n$3)}getPackedSampler1D(t$1,e$4,n$3){let r$3=[n$3.width,n$3.height],a$3=[r$3[1],r$3[0]],s$2=(0,o$1.getGlsl)(this.context.glContext.version),u$2=`vec4 ${t$1}(int index) {\n vec2 uv = packedUVfrom1D(\n ${a$3[0]}, ${a$3[1]}, index);\n return ${s$2.texture2D}(${e$4}, uv);\n }`;return new i$1.GlslLibRoutine(u$2,[`coordinates.packedUVfrom1D`])}getPackedSampler2D(t$1,e$4,n$3){let a$3=n$3.unpackedShape,s$2=[n$3.width,n$3.height],u$2=(0,o$1.getGlsl)(this.context.glContext.version),c$4=s$2[0],l$1=s$2[1];if(s$2!=null&&r$2.ArrayUtil.arraysEqual(a$3,s$2)){let n$4=`vec4 ${t$1}(int row, int col) {\n vec2 uv = (vec2(col, row) + halfCR) / vec2(${l$1}.0, ${c$4}.0);\n return ${u$2.texture2D}(${e$4}, uv);\n }`;return new i$1.GlslLibRoutine(n$4)}let p$5=s$2,f$3=Math.ceil(a$3[1]/2),d$2=`vec4 ${t$1}(int row, int col) {\n vec2 uv = packedUVfrom2D(${p$5[1]}, ${p$5[0]}, ${f$3}, row, col);\n return ${u$2.texture2D}(${e$4}, uv);\n }`;return new i$1.GlslLibRoutine(d$2,[`coordinates.packedUVfrom2D`])}getPackedSampler3D(t$1,e$4,n$3){let r$3=n$3.unpackedShape,a$3=[n$3.width,n$3.height],u$2=[a$3[0],a$3[1]],c$4=(0,o$1.getGlsl)(this.context.glContext.version);if(r$3[0]===1){let o$2=r$3.slice(1),a$4=[1,2],u$3=(0,s$1.squeezeInputShape)(r$3,o$2),c$5=[`b`,`row`,`col`],l$2=JSON.parse(JSON.stringify(n$3));l$2.unpackedShape=u$3;let p$6=this.getPackedSamplerFromInput(t$1,e$4,l$2),f$4=`${p$6.routineBody}\n vec4 ${t$1}(int b, int row, int col) {\n return ${t$1}(${(0,s$1.getSqueezedParams)(c$5,a$4)});\n } `;return new i$1.GlslLibRoutine(f$4,p$6.dependencies)}let l$1=u$2[0],p$5=u$2[1],f$3=Math.ceil(r$3[2]/2),d$2=`vec4 ${t$1}(int b, int row, int col) {\n vec2 uv = packedUVfrom3D(\n ${p$5}, ${l$1}, ${f$3*Math.ceil(r$3[1]/2)}, ${f$3}, b, row, col);\n return ${c$4.texture2D}(${e$4}, uv);}`;return new i$1.GlslLibRoutine(d$2,[`coordinates.packedUVfrom3D`])}getPackedSamplerND(t$1,e$4,n$3){let r$3=n$3.unpackedShape,a$3=r$3.length,s$2=[n$3.width,n$3.height],u$2=(0,o$1.getGlsl)(this.context.glContext.version),c$4=[s$2[0],s$2[1]],l$1=c$4[1],p$5=c$4[0],f$3=Math.ceil(r$3[a$3-1]/2),d$2=f$3*Math.ceil(r$3[a$3-2]/2),h$3=`int b, int row, int col`,g$2=`b * ${d$2} + (row / 2) * ${f$3} + (col / 2)`;for(let t$2=2;t$2{let r$3=this.context.inputTextureLayouts[n$3],o$2=(r$3.unpackedShape.length>0?r$3.unpackedShape:r$3.shape).length,a$3=`_${e$4}`;t$1[a$3]=new i$1.GlslLibRoutine(this.getValueFromSingle(e$4,o$2,r$3.width,r$3.height,!1),[`shapeUtils.indicesToOffset${a$3}`,`coordinates.offsetToCoords`,`fragcolor.getColorAsFloat`]),a$3+=`_T`,t$1[a$3]=new i$1.GlslLibRoutine(this.getValueFromSingle(e$4,o$2,r$3.width,r$3.height,!0),[`shapeUtils.indicesToOffset${a$3}`,`coordinates.offsetToCoords`,`fragcolor.getColorAsFloat`])}),t$1}getValueFromSingle(t$1,e$4,n$3,r$3,i$2){let a$3=`_${t$1}`;return i$2&&(a$3+=`_T`),`\n float ${a$3}(int m[${e$4}]) {\n int offset = indicesToOffset${a$3}(m);\n vec2 coords = offsetToCoords(offset, ${n$3}, ${r$3});\n float value = getColorAsFloat(${(0,o$1.getGlsl)(this.context.glContext.version).texture2D}(${t$1}, coords));\n return value;\n }\n `}getPackedValueFrom(t$1,e$4,n$3,r$3,i$2){let a$3=`_${t$1}_Pack`;return i$2&&(a$3+=`_T`),`\n vec4 ${a$3}(int m[${e$4}]) {\n int offset = indicesToOffset_${t$1}(m);\n vec2 coords = offsetToCoords(offset, ${n$3}, ${r$3});\n return ${(0,o$1.getGlsl)(this.context.glContext.version).texture2D}(${t$1}, coords);\n }\n `}}e$3.CoordsGlslLib=u$1},8520:(t,e$3)=>{"use strict";var n$2;Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.TopologicalSortGlslRoutines=e$3.GlslLibRoutineNode=e$3.GlslLibRoutine=e$3.GlslLib=e$3.GlslContext=e$3.FunctionType=void 0,(n$2=e$3.FunctionType||={})[n$2.ValueBased=0]=`ValueBased`,n$2[n$2.Positional=1]=`Positional`,e$3.GlslContext=class{constructor(t$1,e$4,n$3,r$2){this.glContext=t$1,this.programInfo=e$4,this.inputTextureLayouts=n$3,this.outputTextureLayout=r$2}},e$3.GlslLib=class{constructor(t$1){this.context=t$1}},e$3.GlslLibRoutine=class{constructor(t$1,e$4){this.routineBody=t$1,this.dependencies=e$4}},e$3.GlslLibRoutineNode=class{constructor(t$1,e$4,n$3){this.name=t$1,this.dependencies=n$3||[],e$4&&(this.routineBody=e$4)}addDependency(t$1){t$1&&this.dependencies.push(t$1)}},e$3.TopologicalSortGlslRoutines=class{static returnOrderedNodes(t$1){if(!t$1||t$1.length===0)return[];if(t$1.length===1)return t$1;let e$4=new Set,n$3=new Set,r$2=[];return this.createOrderedNodes(t$1,e$4,n$3,r$2),r$2}static createOrderedNodes(t$1,e$4,n$3,r$2){for(let i$1=0;i$10)for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.EncodingGlslLib=void 0;let r$2=n$2(8520);class i$1 extends r$2.GlslLib{constructor(t$1){super(t$1)}getFunctions(){return Object.assign(Object.assign({},this.encodeFloat32()),this.decodeFloat32())}getCustomTypes(){return{}}encodeFloat32(){return{encode:new r$2.GlslLibRoutine(`highp vec4 encode(highp float f) { return vec4(f, 0.0, 0.0, 0.0); } `)}}decodeFloat32(){return{decode:new r$2.GlslLibRoutine(`highp float decode(highp vec4 rgba) { @@ -3936,14 +3936,14 @@ function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof se } `,[`encoding.decode`])}}}e$3.FragColorGlslLib=o$1},2848:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.replaceInlines=void 0;let n$2=/@inline[\s\n\r]+(\w+)[\s\n\r]+([0-9a-zA-Z_]+)\s*\(([^)]*)\)\s*{(([^}]|[\n\r])*)}/gm;e$3.replaceInlines=function(t$1){let e$4={},r$2;for(;(r$2=n$2.exec(t$1))!==null;){let t$2=r$2[3].split(`,`).map(t$3=>{let e$5=t$3.trim().split(` `);return e$5&&e$5.length===2?{type:e$5[0],name:e$5[1]}:null}).filter(t$3=>t$3!==null);e$4[r$2[2]]={params:t$2,body:r$2[4]}}for(let n$3 in e$4){let i$1=`(\\w+)?\\s+([_0-9a-zA-Z]+)\\s+=\\s+__FUNC__\\((.*)\\)\\s*;`.replace(`__FUNC__`,n$3),o$1=new RegExp(i$1,`gm`);for(;(r$2=o$1.exec(t$1))!==null;){let i$2=r$2[1],o$2=r$2[2],a$2=r$2[3].split(`,`),s$1=i$2?`${i$2} ${o$2};`:``,u$1=e$4[n$3].body,c$4=``;e$4[n$3].params.forEach((t$2,e$5)=>{t$2&&(c$4+=`${t$2.type} ${t$2.name} = ${a$2[e$5]};\n`)}),u$1=`${c$4}\n ${u$1}`,u$1=u$1.replace(`return`,`${o$2} = `);let l$1=`\n ${s$1}\n {\n ${u$1}\n }\n `;t$1=t$1.replace(r$2[0],l$1)}}return t$1.replace(n$2,``)}},8879:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.GlslPreprocessor=void 0;let r$2=n$2(8520),i$1=n$2(2848),o$1=n$2(5483),a$2=n$2(5060);e$3.GlslPreprocessor=class{constructor(t$1,e$4,n$3,i$2){this.libs={},this.glslLibRoutineDependencyGraph={},this.context=new r$2.GlslContext(t$1,e$4,n$3,i$2),Object.keys(o$1.glslRegistry).forEach(t$2=>{let e$5=new o$1.glslRegistry[t$2](this.context);this.libs[t$2]=e$5});let a$3=this.glslLibRoutineDependencyGraph;for(let t$2 in this.libs){let e$5=this.libs[t$2].getFunctions();for(let n$4 in e$5){let i$3=t$2+`.`+n$4,o$2;a$3[i$3]?(o$2=a$3[i$3],o$2.routineBody=e$5[n$4].routineBody):(o$2=new r$2.GlslLibRoutineNode(i$3,e$5[n$4].routineBody),a$3[i$3]=o$2);let s$1=e$5[n$4].dependencies;if(s$1)for(let t$3=0;t$3{let r$3=n$3.split(`.`)[1];t$1.indexOf(r$3)!==-1&&e$4.push(this.glslLibRoutineDependencyGraph[n$3])}),r$2.TopologicalSortGlslRoutines.returnOrderedNodes(e$4)}getUniforms(t$1,e$4){let n$3=[];if(t$1)for(let e$5 of t$1)n$3.push(`uniform sampler2D ${e$5};`);if(e$4)for(let t$2 of e$4)n$3.push(`uniform ${t$2.type} ${t$2.name}${t$2.arrayLength?`[${t$2.arrayLength}]`:``};`);return n$3.join(` -`)}}},5483:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.glslRegistry=void 0;let r$2=n$2(5107),i$1=n$2(7341),o$1=n$2(9894),a$2=n$2(2655),s$1=n$2(3891);e$3.glslRegistry={encoding:i$1.EncodingGlslLib,fragcolor:o$1.FragColorGlslLib,vec:s$1.VecGlslLib,shapeUtils:a$2.ShapeUtilsGlslLib,coordinates:r$2.CoordsGlslLib}},2655:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.ShapeUtilsGlslLib=void 0;let r$2=n$2(8520);class i$1 extends r$2.GlslLib{constructor(t$1){super(t$1)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.bcastIndex()),this.bcastMatmulIndex()),this.offsetToIndices()),this.indicesToOffset()),this.incrementIndices())}getCustomTypes(){return{}}bcastIndex(){let t$1=this.context.outputTextureLayout.shape.length,e$4={};return this.context.programInfo.inputNames.forEach((n$3,i$2)=>{let o$1=this.context.inputTextureLayouts[i$2].unpackedShape;if(o$1.length<=t$1){let i$3=o$1.length,a$2=t$1-i$3,s$1=`bcastIndices_${n$3}`,u$1=``;for(let t$2=0;t$2{let o$1=this.context.inputTextureLayouts[i$2].shape;if(!(o$1.length<2||o$1.length>t$1)){let i$3=o$1.length,a$2=t$1-i$3,s$1=`bcastMatmulIndices_${n$3}`,u$1=``;for(let t$2=0;t$2{let o$1=this.context.inputTextureLayouts[n$3].shape,a$2=this.context.inputTextureLayouts[n$3].strides,s$1=o$1.length,u$1=`indicesToOffset_${e$4}`;t$1[u$1]=new r$2.GlslLibRoutine(i$1.indexToOffsetSingle(u$1,s$1,a$2)),u$1=`indicesToOffset_${e$4}_T`,t$1[u$1]=new r$2.GlslLibRoutine(i$1.indexToOffsetSingle(u$1,s$1,a$2.slice().reverse()))}),t$1}static indexToOffsetSingle(t$1,e$4,n$3){let r$3=``;for(let t$2=e$4-1;t$2>=0;--t$2)r$3+=`\n offset += indices[${t$2}] * ${n$3[t$2]};\n `;return`\n int ${t$1}(int indices[${e$4}]) {\n int offset = 0;\n ${r$3}\n return offset;\n }\n `}offsetToIndices(){let t$1={};return this.context.programInfo.inputNames.forEach((e$4,n$3)=>{let o$1=this.context.inputTextureLayouts[n$3].shape,a$2=this.context.inputTextureLayouts[n$3].strides,s$1=o$1.length,u$1=`offsetToIndices_${e$4}`;t$1[u$1]=new r$2.GlslLibRoutine(i$1.offsetToIndicesSingle(u$1,s$1,a$2)),u$1=`offsetToIndices_${e$4}_T`,t$1[u$1]=new r$2.GlslLibRoutine(i$1.offsetToIndicesSingle(u$1,s$1,a$2.slice().reverse()))}),t$1}static offsetToIndicesSingle(t$1,e$4,n$3){let r$3=[];for(let t$2=0;t$2{let i$2=this.context.inputTextureLayouts[n$3].shape,o$1=i$2.length,a$2=`incrementIndices_${e$4}`,s$1=``;for(let t$2=0;t$2= 0; --i) {\n if(i > axis) continue;\n indices[i] += 1;\n if(indices[i] < shape[i]) {\n break;\n }\n indices[i] = 0;\n }\n }\n `;t$1[a$2]=new r$2.GlslLibRoutine(u$1)}),t$1}}e$3.ShapeUtilsGlslLib=i$1},5060:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getDefaultFragShaderMain=e$3.getFragShaderPreamble=e$3.getVertexShaderSource=e$3.getGlsl=void 0;let n$2={version:``,attribute:`attribute`,varyingVertex:`varying`,varyingFrag:`varying`,texture2D:`texture2D`,output:`gl_FragColor`,outputDeclaration:``},r$2={version:`#version 300 es`,attribute:`in`,varyingVertex:`out`,varyingFrag:`in`,texture2D:`texture`,output:`outputColor`,outputDeclaration:`out vec4 outputColor;`};function i$1(t$1){return t$1===1?n$2:r$2}e$3.getGlsl=i$1,e$3.getVertexShaderSource=function(t$1){let e$4=i$1(t$1);return`${e$4.version}\n precision highp float;\n ${e$4.attribute} vec3 position;\n ${e$4.attribute} vec2 textureCoord;\n\n ${e$4.varyingVertex} vec2 TexCoords;\n\n void main()\n {\n gl_Position = vec4(position, 1.0);\n TexCoords = textureCoord;\n }`},e$3.getFragShaderPreamble=function(t$1){let e$4=i$1(t$1);return`${e$4.version}\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n ${e$4.varyingFrag} vec2 TexCoords;\n ${e$4.outputDeclaration}\n const vec2 halfCR = vec2(0.5, 0.5);\n\n // Custom vector types to handle higher dimenalities.\n struct ivec5\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n };\n\n struct ivec6\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n int v;\n };\n\n int imod(int x, int y) {\n return x - y * (x / y);\n }\n\n `},e$3.getDefaultFragShaderMain=function(t$1,e$4){return`\n void main() {\n int indices[${e$4}];\n toVec(TexCoords, indices);\n vec4 result = vec4(process(indices));\n ${i$1(t$1).output} = result;\n }\n `}},3891:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.VecGlslLib=void 0;let r$2=n$2(8520);class i$1 extends r$2.GlslLib{constructor(t$1){super(t$1)}getCustomTypes(){return{}}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.binaryVecFunctions()),this.copyVec()),this.setVecItem()),this.getVecItem())}binaryVecFunctions(){let t$1=this.context.outputTextureLayout.shape.length,e$4={add:`+=`,sub:`-=`,mul:`*=`,div:`/=`},n$3={};for(let i$2 in e$4){let o$1=`${i$2}Vec`,a$2=``;for(let n$4=0;n$4{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLInferenceHandler=void 0;let r$2=n$2(6231),i$1=n$2(9162),o$1=n$2(2517),a$2=n$2(2403),s$1=n$2(7019),u$1=n$2(8710),c$4=n$2(5611),l$1=n$2(4057),p$5=n$2(2039);e$3.WebGLInferenceHandler=class{constructor(t$1){this.session=t$1,this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map}calculateTextureWidthAndHeight(t$1,e$4){return(0,l$1.calculateTextureWidthAndHeight)(this.session.layoutStrategy,t$1,e$4)}executeProgram(t$1,e$4){if(e$4.length{let n$4=e$5.map(t$3=>`${t$3.unpackedShape.join(`,`)};${t$3.width}x${t$3.height}`).join(`_`),r$4=t$2.name;return t$2.cacheHint&&(r$4+=`[`+t$2.cacheHint+`]`),r$4+=`:`+n$4,r$4})(t$1,n$3),i$2=this.session.programManager.getArtifact(r$3),o$2=i$2?i$2.programInfo:typeof t$1.get==`function`?t$1.get():t$1,a$3=(0,l$1.createTextureLayoutFromTextureType)(this.session.layoutStrategy,o$2.output.dims,o$2.output.textureType),s$2=this.createTextureData(a$3,o$2.output.type);return i$2||(i$2=this.session.programManager.build(o$2,n$3,s$2),this.session.programManager.setArtifact(r$3,i$2)),this.runProgram(i$2,n$3,s$2),s$2}run(t$1,e$4){return this.executeProgram(t$1,e$4).tensor}runProgram(t$1,e$4,n$3){for(let n$4=0;n$4this.readTexture(a$3),async t$2=>this.readTextureAsync(a$3),void 0,o$2),texture:n$3});return this.setTextureData(a$3.tensor.dataId,a$3,t$1.isPacked),a$3}getTextureData(t$1,e$4=!1){return this.session.isInitializer(t$1)?this.session.getTextureData(t$1,e$4):e$4?this.packedTextureDataCache.get(t$1):this.unpackedTextureDataCache.get(t$1)}setTextureData(t$1,e$4,n$3=!1){this.session.isInitializer(t$1)?this.session.setTextureData(t$1,e$4,n$3):(n$3?this.packedTextureDataCache:this.unpackedTextureDataCache).set(t$1,e$4)}isTextureLayoutCached(t$1,e$4=!1){return!!this.getTextureData(t$1.dataId,e$4)}dispose(){this.session.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach(t$1=>this.session.textureManager.releaseTexture(t$1)),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach(t$1=>this.session.textureManager.releaseTexture(t$1)),this.unpackedTextureDataCache=new Map}readTexture(t$1){return t$1.isPacked?this.readTexture(this.unpack(t$1)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTexture(t$1,t$1.tensor.type,t$1.channels):this.session.textureManager.readUint8TextureAsFloat((0,u$1.encodeAsUint8)(this,t$1))}async readTextureAsync(t$1){return t$1.isPacked?this.readTextureAsync(this.unpack(t$1)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTextureAsync(t$1,t$1.tensor.type,t$1.channels):this.session.textureManager.readUint8TextureAsFloat((0,u$1.encodeAsUint8)(this,t$1))}pack(t$1){return this.executeProgram((0,a$2.createPackProgramInfoLoader)(this,t$1.tensor),[t$1.tensor])}unpack(t$1){return this.executeProgram((0,c$4.createUnpackProgramInfoLoader)(this,t$1.tensor),[t$1.tensor])}}},1640:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),o$1=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&r$2(e$4,t$1,n$3);return i$1(e$4,t$1),e$4};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WEBGL_OP_RESOLVE_RULES=void 0;let a$2=n$2(2898),s$1=o$1(n$2(7839)),u$1=n$2(4196),c$4=n$2(2069),l$1=n$2(8138),p$5=n$2(9663),f$3=n$2(5193),d$2=n$2(7992),h$3=n$2(1253),g$2=n$2(4776),b$3=n$2(6572),m$2=n$2(3346),y$2=n$2(5623),_$1=n$2(2870),v$1=n$2(2143),w$1=n$2(4939),x$3=n$2(718),T$1=n$2(2268),S$2=n$2(8117),O$1=n$2(2278),A$1=n$2(5524),E$2=n$2(5975),I=n$2(3933),P$1=n$2(6558),D$1=n$2(5723),$$1=n$2(3738),k$4=o$1(n$2(4909)),C$2=n$2(8428),F$2=n$2(9793);e$3.WEBGL_OP_RESOLVE_RULES=[[`Abs`,``,`6+`,k$4.abs],[`Acos`,``,`7+`,k$4.acos],[`Add`,``,`7+`,s$1.add],[`And`,``,`7+`,s$1.and],[`Asin`,``,`7+`,k$4.asin],[`Atan`,``,`7+`,k$4.atan],[`AveragePool`,``,`7+`,v$1.averagePool,v$1.parseAveragePoolAttributes],[`BatchNormalization`,``,`7+`,a$2.batchNormalization,a$2.parseBatchNormalizationAttributes],[`Cast`,``,`6+`,u$1.cast,u$1.parseCastAttributes],[`Ceil`,``,`6+`,k$4.ceil],[`Clip`,``,`6-10`,k$4.clip,k$4.parseClipAttributes],[`Clip`,``,`11+`,k$4.clipV11],[`Concat`,``,`4+`,c$4.concat,c$4.parseConcatAttributes],[`Conv`,``,`1+`,l$1.conv,l$1.parseConvAttributes],[`ConvTranspose`,``,`1+`,p$5.convTranspose,p$5.parseConvTransposeAttributes],[`Cos`,``,`7+`,k$4.cos],[`Div`,``,`7+`,s$1.div],[`Dropout`,``,`7+`,k$4.identity],[`DepthToSpace`,``,`1+`,f$3.depthToSpace,f$3.parseDepthToSpaceAttributes],[`Equal`,``,`7+`,s$1.equal],[`Elu`,``,`6+`,k$4.elu,k$4.parseEluAttributes],[`Exp`,``,`6+`,k$4.exp],[`Flatten`,``,`1+`,d$2.flatten,d$2.parseFlattenAttributes],[`Floor`,``,`6+`,k$4.floor],[`FusedConv`,`com.microsoft`,`1+`,l$1.conv,l$1.parseConvAttributes],[`Gather`,``,`1+`,h$3.gather,h$3.parseGatherAttributes],[`Gemm`,``,`7-10`,g$2.gemm,g$2.parseGemmAttributesV7],[`Gemm`,``,`11+`,g$2.gemm,g$2.parseGemmAttributesV11],[`GlobalAveragePool`,``,`1+`,v$1.globalAveragePool,v$1.parseGlobalAveragePoolAttributes],[`GlobalMaxPool`,``,`1+`,v$1.globalMaxPool],[`Greater`,``,`7+`,s$1.greater],[`Identity`,``,`1+`,k$4.identity],[`ImageScaler`,``,`1+`,b$3.imageScaler,b$3.parseImageScalerAttributes],[`InstanceNormalization`,``,`6+`,m$2.instanceNormalization,m$2.parseInstanceNormalizationAttributes],[`LeakyRelu`,``,`6+`,k$4.leakyRelu,k$4.parseLeakyReluAttributes],[`Less`,``,`7+`,s$1.less],[`Log`,``,`6+`,k$4.log],[`MatMul`,``,`1+`,y$2.matMul,y$2.parseMatMulAttributes],[`MaxPool`,``,`1+`,v$1.maxPool,v$1.parseMaxPoolAttributes],[`Mul`,``,`7+`,s$1.mul],[`Neg`,``,`6+`,k$4.neg],[`Not`,``,`1+`,k$4.not],[`Or`,``,`7+`,s$1.or],[`Pad`,``,`2-10`,_$1.padV2,_$1.parsePadAttributesV2],[`Pad`,``,`11+`,_$1.padV11,_$1.parsePadAttributesV11],[`Pow`,``,`7+`,s$1.pow],[`PRelu`,``,`7+`,s$1.pRelu],[`ReduceLogSum`,``,`1+`,w$1.reduceLogSum,w$1.parseReduceAttributes],[`ReduceMax`,``,`1+`,w$1.reduceMax,w$1.parseReduceAttributes],[`ReduceMean`,``,`1+`,w$1.reduceMean,w$1.parseReduceAttributes],[`ReduceMin`,``,`1+`,w$1.reduceMin,w$1.parseReduceAttributes],[`ReduceProd`,``,`1+`,w$1.reduceProd,w$1.parseReduceAttributes],[`ReduceSum`,``,`1-12`,w$1.reduceSum,w$1.parseReduceAttributes],[`ReduceSumSquare`,``,`1+`,w$1.reduceLogSumSquare,w$1.parseReduceAttributes],[`Relu`,``,`6+`,k$4.relu],[`Reshape`,``,`5+`,x$3.reshape],[`Resize`,``,`10`,T$1.resize,T$1.parseResizeAttributesV10],[`Resize`,``,`11+`,T$1.resize,T$1.parseResizeAttributesV11],[`Shape`,``,`1+`,S$2.shape],[`Sigmoid`,``,`6+`,k$4.sigmoid],[`Sin`,``,`7+`,k$4.sin],[`Slice`,``,`10+`,O$1.sliceV10],[`Slice`,``,`1-9`,O$1.slice,O$1.parseSliceAttributes],[`Softmax`,``,`1-12`,A$1.softmax,A$1.parseSoftmaxAttributes],[`Softmax`,``,`13+`,A$1.softmaxV13,A$1.parseSoftmaxAttributesV13],[`Split`,``,`2-12`,E$2.split,E$2.parseSplitAttributes],[`Sqrt`,``,`6+`,k$4.sqrt],[`Squeeze`,``,`1-12`,I.squeeze,I.parseSqueezeAttributes],[`Squeeze`,``,`13+`,I.squeezeV13],[`Sub`,``,`7+`,s$1.sub],[`Sum`,``,`6+`,P$1.sum],[`Tan`,``,`7+`,k$4.tan],[`Tanh`,``,`6+`,k$4.tanh],[`Tile`,``,`6+`,D$1.tile],[`Transpose`,``,`1+`,$$1.transpose,$$1.parseTransposeAttributes],[`Upsample`,``,`7-8`,F$2.upsample,F$2.parseUpsampleAttributesV7],[`Upsample`,``,`9`,F$2.upsample,F$2.parseUpsampleAttributesV9],[`Unsqueeze`,``,`1-12`,C$2.unsqueeze,C$2.parseUnsqueezeAttributes],[`Unsqueeze`,``,`13+`,C$2.unsqueezeV13],[`Xor`,``,`7+`,s$1.xor]]},2898:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseBatchNormalizationAttributes=e$3.batchNormalization=void 0;let r$2=n$2(246),i$1=n$2(5060),o$1=n$2(2039),a$2={name:`BatchNormalization`,inputNames:[`A`,`Scale`,`B`,`Mean`,`Variance`],inputTypes:[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]};e$3.batchNormalization=(t$1,e$4,n$3)=>(u$1(e$4),[t$1.run(Object.assign(Object.assign({},a$2),{cacheHint:n$3.cacheKey,get:()=>s$1(t$1,e$4,n$3)}),e$4)]),e$3.parseBatchNormalizationAttributes=t$1=>{let e$4=t$1.attributes.getFloat(`epsilon`,1e-5),n$3=t$1.attributes.getFloat(`momentum`,.9),i$2=t$1.attributes.getInt(`spatial`,1);return(0,r$2.createAttributeWithCacheKey)({epsilon:e$4,momentum:n$3,spatial:i$2})};let s$1=(t$1,e$4,n$3)=>{let r$3=(0,i$1.getGlsl)(t$1.session.backend.glContext.version),s$2=e$4[0].dims.length,[u$2,c$4]=t$1.calculateTextureWidthAndHeight(e$4[1].dims,o$1.TextureType.unpacked),l$1=`\n float process(int[${s$2}] indices) {\n vec2 position = offsetToCoords(indices[1], ${u$2}, ${c$4});\n float scale = getColorAsFloat(${r$3.texture2D}(Scale, position));\n float mean = getColorAsFloat(${r$3.texture2D}(Mean, position));\n float variance = getColorAsFloat(${r$3.texture2D}(Variance, position));\n float b = getColorAsFloat(${r$3.texture2D}(B, position));\n\n return scale * ( (_A(indices) - mean) / sqrt(variance + float(${n$3.epsilon})) ) + b;\n }`;return Object.assign(Object.assign({},a$2),{output:{dims:e$4[0].dims,type:e$4[0].type,textureType:o$1.TextureType.unpacked},shaderSource:l$1})},u$1=t$1=>{if(!t$1||t$1.length!==5)throw Error(`BatchNormalization requires 5 inputs.`);let e$4=t$1[0],n$3=t$1[1],r$3=t$1[2],i$2=t$1[3],o$2=t$1[4];if(e$4.dims.length<3||n$3.dims.length!==1||r$3.dims.length!==1||i$2.dims.length!==1||o$2.dims.length!==1||n$3.dims[0]!==e$4.dims[1]||r$3.dims[0]!==e$4.dims[1]||i$2.dims[0]!==e$4.dims[1]||o$2.dims[0]!==e$4.dims[1])throw Error(`invalid input shape.`);if(e$4.type!==`float32`&&e$4.type!==`float64`||n$3.type!==`float32`&&n$3.type!==`float64`||r$3.type!==`float32`&&r$3.type!==`float64`||i$2.type!==`float32`&&i$2.type!==`float64`||o$2.type!==`float32`&&o$2.type!==`float64`)throw Error(`invalid input tensor types.`)}},7839:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.xor=e$3.sub=e$3.pRelu=e$3.pow=e$3.or=e$3.mul=e$3.less=e$3.greater=e$3.equal=e$3.div=e$3.and=e$3.add=e$3.glslPRelu=e$3.glslPow=e$3.glslXor=e$3.glslOr=e$3.glslAnd=e$3.glslLess=e$3.glslGreater=e$3.glslEqual=e$3.glslSub=e$3.glslMul=e$3.glslDiv=e$3.glslAdd=void 0;let r$2=n$2(2517),i$1=n$2(8520),o$1=n$2(5060),a$2=n$2(2039);function s$1(){let t$1=`add_`;return{body:`\n float ${t$1}(float a, float b) {\n return a + b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 + v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function u$1(){let t$1=`div_`;return{body:`\n float ${t$1}(float a, float b) {\n return a / b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 / v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function c$4(){let t$1=`mul_`;return{body:`\n float ${t$1}(float a, float b) {\n return a * b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 * v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function l$1(){let t$1=`sub_`;return{body:`\n float ${t$1}(float a, float b) {\n return a - b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 - v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function p$5(){let t$1=`equal_`;return{body:`\n float ${t$1}(float a, float b) {\n return float(a == b);\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4(equal(v1, v2));\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function f$3(){let t$1=`greater_`;return{body:`\n float ${t$1}(float a, float b) {\n return float(a > b);\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4( v1.r > v2.r ,\n v1.g > v2.g,\n v1.b > v2.b,\n v1.a > v2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function d$2(){let t$1=`less_`;return{body:`\n float ${t$1}(float a, float b) {\n return float(a < b);\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4( v1.r < v2.r ,\n v1.g < v2.g,\n v1.b < v2.b,\n v1.a < v2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function h$3(){let t$1=`and_`;return{body:`\n float ${t$1}(float a, float b) {\n return float( bool(a) && bool(b) );\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n bvec4 b1 = bvec4(v1);\n bvec4 b2 = bvec4(v2);\n return vec4( b1.r && b2.r ,\n b1.g && b2.g,\n b1.b && b2.b,\n b1.a && b2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function g$2(){let t$1=`or_`;return{body:`\n float ${t$1}(float a, float b) {\n return float( bool(a) || bool(b) );\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n bvec4 b1 = bvec4(v1);\n bvec4 b2 = bvec4(v2);\n return vec4( b1.r || b2.r ,\n b1.g || b2.g,\n b1.b || b2.b,\n b1.a || b2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function b$3(){let t$1=`xor_`;return{body:`\n float ${t$1}(float a, float b) {\n return float( bool(a) ^^ bool(b) );\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n bvec4 b1 = bvec4(v1);\n bvec4 b2 = bvec4(v2);\n return vec4( b1.r ^^ b2.r ,\n b1.g ^^ b2.g,\n b1.b ^^ b2.b,\n b1.a ^^ b2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function m$2(){return function(t$1){let e$4=`${t$1}_`;return{body:`\n float ${e$4}(float a, float b) {\n return ${t$1}(a, b);\n }\n vec4 ${e$4}(vec4 v1, vec4 v2) {\n return ${t$1}(v1, v2);\n }\n `,name:e$4,type:i$1.FunctionType.ValueBased}}(`pow`)}function y$2(){let t$1=`prelu_`;return{body:`\n float ${t$1}(float a, float b) {\n return a < 0.0 ? a * b: a;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4(\n v1.r < 0.0 ? v1.r * v2.r: v1.r,\n v1.g < 0.0 ? v1.g * v2.g: v1.g,\n v1.b < 0.0 ? v1.b * v2.b: v1.b,\n v1.a < 0.0 ? v1.a * v2.a: v1.a\n );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}e$3.glslAdd=s$1,e$3.glslDiv=u$1,e$3.glslMul=c$4,e$3.glslSub=l$1,e$3.glslEqual=p$5,e$3.glslGreater=f$3,e$3.glslLess=d$2,e$3.glslAnd=h$3,e$3.glslOr=g$2,e$3.glslXor=b$3,e$3.glslPow=m$2,e$3.glslPRelu=y$2;let _$1=(t$1,e$4,n$3,r$3=e$4[0].type,i$2)=>{let o$2=t$1.session.pack?a$2.TextureType.packed:a$2.TextureType.unpacked;return{name:n$3.name,inputNames:[`A`,`B`],inputTypes:[o$2,o$2],cacheHint:i$2,get:()=>v$1(t$1,e$4,n$3,r$3)}},v$1=(t$1,e$4,n$3,i$2=e$4[0].type)=>{let s$2=t$1.session.pack?a$2.TextureType.packed:a$2.TextureType.unpacked,u$2=!r$2.ShapeUtil.areEqual(e$4[0].dims,e$4[1].dims),c$5=e$4[0].dims,l$2=t$1.session.pack;if(u$2){let a$3=r$2.BroadcastUtil.calcShape(e$4[0].dims,e$4[1].dims,!1);if(!a$3)throw Error(`Can't perform binary op on the given tensors`);c$5=a$3;let u$3=c$5.length,p$7=e$4[0].dims.length===0?1:e$4[0].dims.length,f$5=e$4[1].dims.length===0?1:e$4[1].dims.length,d$3=e$4[0].dims.length===0?`aindices[0] = 0;`:`bcastIndices_A(indices, aindices);`,h$4=e$4[1].dims.length===0?`bindices[0] = 0;`:`bcastIndices_B(indices, bindices);`,g$3=(0,o$1.getGlsl)(t$1.session.backend.glContext.version),b$4=l$2?`\n ${n$3.body}\n void main() {\n vec4 a = getAAtOutCoords();\n vec4 b = getBAtOutCoords();\n vec4 result = ${n$3.name}(a, b);\n ${g$3.output} = result;\n }`:`\n ${n$3.body}\n float process(int indices[${u$3}]) {\n int aindices[${p$7}];\n int bindices[${f$5}];\n ${d$3}\n ${h$4}\n return ${n$3.name}(_A(aindices), _B(bindices));\n }`;return{name:n$3.name,inputNames:[`A`,`B`],inputTypes:[s$2,s$2],output:{dims:c$5,type:i$2,textureType:s$2},shaderSource:b$4,hasMain:l$2}}let p$6=(0,o$1.getGlsl)(t$1.session.backend.glContext.version),f$4=`\n ${n$3.body}\n void main() {\n vec4 v1 = ${p$6.texture2D}(A, TexCoords);\n vec4 v2 = ${p$6.texture2D}(B, TexCoords);\n vec4 result = ${n$3.name}(v1, v2);\n ${p$6.output} = result;\n }\n `;return{name:n$3.name,inputNames:[`A`,`B`],inputTypes:[s$2,s$2],output:{dims:e$4[0].dims,type:i$2,textureType:s$2},shaderSource:f$4,hasMain:!0}};e$3.add=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,s$1()),e$4)],e$3.and=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,h$3(),`bool`),e$4)],e$3.div=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,u$1()),e$4)],e$3.equal=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,p$5(),`bool`),e$4)],e$3.greater=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,f$3(),`bool`),e$4)],e$3.less=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,d$2(),`bool`),e$4)],e$3.mul=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,c$4()),e$4)],e$3.or=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,g$2(),`bool`),e$4)],e$3.pow=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,m$2()),e$4)],e$3.pRelu=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,y$2()),e$4)],e$3.sub=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,l$1()),e$4)],e$3.xor=(t$1,e$4)=>[t$1.run(_$1(t$1,e$4,b$3(),`bool`),e$4)]},4196:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseCastAttributes=e$3.cast=void 0;let r$2=n$2(2517);e$3.cast=(t$1,e$4,n$3)=>(i$1(e$4),[t$1.cast(e$4[0],n$3)]),e$3.parseCastAttributes=t$1=>r$2.ProtoUtil.tensorDataTypeFromProto(t$1.attributes.getInt(`to`));let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Cast requires 1 input.`);if(t$1[0].type===`string`)throw Error(`Invalid input type.`)}},1163:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackedConcatProgramInfoLoader=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827);e$3.createPackedConcatProgramInfoLoader=(t$1,e$4,n$3)=>{let u$1=(c$4=e$4.length,l$1=n$3.cacheKey,{name:`Concat (packed)`,inputNames:Array.from({length:c$4},(t$2,e$5)=>`X${e$5}`),inputTypes:Array(c$4).fill(i$1.TextureType.packed),cacheHint:l$1});var c$4,l$1;return Object.assign(Object.assign({},u$1),{get:()=>((t$2,e$5,n$4,u$2)=>{let c$5=n$4[0].dims.slice();if(u$2>=c$5.length||u$2<-1*c$5.length)throw Error(`axis specified for concat doesn't match input dimensionality`);u$2<0&&(u$2=c$5.length+u$2);let l$2=c$5.slice(0);for(let t$3=1;t$3t$3.dims),b$3=(0,o$1.getGlChannels)(p$5),m$2=Array(g$2.length-1);m$2[0]=g$2[0][u$2];for(let t$3=1;t$3= ${m$2[t$3-1]}) {\n return getChannel(\n getX${t$3}(${s$1(b$3,y$2,e$6)}),\n vec2(${s$1(_$1,y$2,e$6)}));\n }`}let x$3=m$2.length,T$1=m$2[m$2.length-1];w$1+=`\n return getChannel(\n getX${x$3}(${s$1(b$3,y$2,T$1)}),\n vec2(${s$1(_$1,y$2,T$1)}));`;let S$2=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),O$1=`\n ${h$3}\n float getValue(${b$3.map(t$3=>`int `+t$3)}) {\n ${w$1}\n }\n\n void main() {\n ${d$2} coords = getOutputCoords();\n int lastDim = coords.${b$3[p$5-1]};\n coords.${b$3[p$5-1]} = coords.${b$3[p$5-2]};\n coords.${b$3[p$5-2]} = lastDim;\n\n vec4 result = vec4(getValue(${f$3}), 0., 0., 0.);\n\n ${f$3[p$5-1]} = ${f$3[p$5-1]} + 1;\n if (${f$3[p$5-1]} < ${l$2[p$5-1]}) {\n result.g = getValue(${f$3});\n }\n\n ${f$3[p$5-2]} = ${f$3[p$5-2]} + 1;\n if (${f$3[p$5-2]} < ${l$2[p$5-2]}) {\n result.a = getValue(${f$3});\n }\n\n ${f$3[p$5-1]} = ${f$3[p$5-1]} - 1;\n if (${f$3[p$5-2]} < ${l$2[p$5-2]} &&\n ${f$3[p$5-1]} < ${l$2[p$5-1]}) {\n result.b = getValue(${f$3});\n }\n ${S$2.output} = result;\n }\n `;return Object.assign(Object.assign({},e$5),{output:{dims:l$2,type:n$4[0].type,textureType:i$1.TextureType.packed},shaderSource:O$1,hasMain:!0})})(t$1,u$1,e$4,n$3.axis)})};let s$1=(t$1,e$4,n$3)=>{let r$3=t$1.indexOf(e$4);return t$1.map((t$2,e$5)=>e$5===r$3?`${t$2} - ${n$3}`:t$2).join()}},2069:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseConcatAttributes=e$3.concat=void 0;let r$2=n$2(246),i$1=n$2(2039),o$1=n$2(1163);e$3.concat=(t$1,e$4,n$3)=>(p$5(e$4),t$1.session.pack&&e$4[0].dims.length>1?[t$1.run((0,o$1.createPackedConcatProgramInfoLoader)(t$1,e$4,n$3),e$4)]:[t$1.run(a$2(t$1,e$4,n$3),e$4)]);let a$2=(t$1,e$4,n$3)=>{let r$3=(o$2=e$4.length,a$3=n$3.cacheKey,{name:`Concat`,inputNames:Array.from({length:o$2},(t$2,e$5)=>`X${e$5}`),inputTypes:Array(o$2).fill(i$1.TextureType.unpacked),cacheHint:a$3});var o$2,a$3;return Object.assign(Object.assign({},r$3),{get:()=>((t$2,e$5,n$4,r$4)=>{let o$3=n$4[0].dims.slice();if(r$4>=o$3.length||r$4<-1*o$3.length)throw Error(`axis specified for concat doesn't match input dimensionality`);r$4<0&&(r$4=o$3.length+r$4);let a$4=o$3.slice(0);for(let t$3=1;t$3`int getTextureWhereDataResides(int index) {\n ${t$1.map((t$2,e$4)=>`if(index<${t$2}) {return ${e$4};}\n`).join(``)}\n }`,u$1=t$1=>s$1(t$1),c$4=(t$1,e$4)=>{let n$3=[`float fetchDataFromCorrectTexture(int textureIndex, int indices[${e$4}]) {`];for(let e$5=0;e$5{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.glslRegistry=void 0;let r$2=n$2(5107),i$1=n$2(7341),o$1=n$2(9894),a$2=n$2(2655),s$1=n$2(3891);e$3.glslRegistry={encoding:i$1.EncodingGlslLib,fragcolor:o$1.FragColorGlslLib,vec:s$1.VecGlslLib,shapeUtils:a$2.ShapeUtilsGlslLib,coordinates:r$2.CoordsGlslLib}},2655:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.ShapeUtilsGlslLib=void 0;let r$2=n$2(8520);class i$1 extends r$2.GlslLib{constructor(t$1){super(t$1)}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},this.bcastIndex()),this.bcastMatmulIndex()),this.offsetToIndices()),this.indicesToOffset()),this.incrementIndices())}getCustomTypes(){return{}}bcastIndex(){let t$1=this.context.outputTextureLayout.shape.length,e$4={};return this.context.programInfo.inputNames.forEach((n$3,i$2)=>{let o$1=this.context.inputTextureLayouts[i$2].unpackedShape;if(o$1.length<=t$1){let i$3=o$1.length,a$2=t$1-i$3,s$1=`bcastIndices_${n$3}`,u$1=``;for(let t$2=0;t$2{let o$1=this.context.inputTextureLayouts[i$2].shape;if(!(o$1.length<2||o$1.length>t$1)){let i$3=o$1.length,a$2=t$1-i$3,s$1=`bcastMatmulIndices_${n$3}`,u$1=``;for(let t$2=0;t$2{let o$1=this.context.inputTextureLayouts[n$3].shape,a$2=this.context.inputTextureLayouts[n$3].strides,s$1=o$1.length,u$1=`indicesToOffset_${e$4}`;t$1[u$1]=new r$2.GlslLibRoutine(i$1.indexToOffsetSingle(u$1,s$1,a$2)),u$1=`indicesToOffset_${e$4}_T`,t$1[u$1]=new r$2.GlslLibRoutine(i$1.indexToOffsetSingle(u$1,s$1,a$2.slice().reverse()))}),t$1}static indexToOffsetSingle(t$1,e$4,n$3){let r$3=``;for(let t$2=e$4-1;t$2>=0;--t$2)r$3+=`\n offset += indices[${t$2}] * ${n$3[t$2]};\n `;return`\n int ${t$1}(int indices[${e$4}]) {\n int offset = 0;\n ${r$3}\n return offset;\n }\n `}offsetToIndices(){let t$1={};return this.context.programInfo.inputNames.forEach((e$4,n$3)=>{let o$1=this.context.inputTextureLayouts[n$3].shape,a$2=this.context.inputTextureLayouts[n$3].strides,s$1=o$1.length,u$1=`offsetToIndices_${e$4}`;t$1[u$1]=new r$2.GlslLibRoutine(i$1.offsetToIndicesSingle(u$1,s$1,a$2)),u$1=`offsetToIndices_${e$4}_T`,t$1[u$1]=new r$2.GlslLibRoutine(i$1.offsetToIndicesSingle(u$1,s$1,a$2.slice().reverse()))}),t$1}static offsetToIndicesSingle(t$1,e$4,n$3){let r$3=[];for(let t$2=0;t$2{let i$2=this.context.inputTextureLayouts[n$3].shape,o$1=i$2.length,a$2=`incrementIndices_${e$4}`,s$1=``;for(let t$2=0;t$2= 0; --i) {\n if(i > axis) continue;\n indices[i] += 1;\n if(indices[i] < shape[i]) {\n break;\n }\n indices[i] = 0;\n }\n }\n `;t$1[a$2]=new r$2.GlslLibRoutine(u$1)}),t$1}}e$3.ShapeUtilsGlslLib=i$1},5060:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getDefaultFragShaderMain=e$3.getFragShaderPreamble=e$3.getVertexShaderSource=e$3.getGlsl=void 0;let n$2={version:``,attribute:`attribute`,varyingVertex:`varying`,varyingFrag:`varying`,texture2D:`texture2D`,output:`gl_FragColor`,outputDeclaration:``},r$2={version:`#version 300 es`,attribute:`in`,varyingVertex:`out`,varyingFrag:`in`,texture2D:`texture`,output:`outputColor`,outputDeclaration:`out vec4 outputColor;`};function i$1(t$1){return t$1===1?n$2:r$2}e$3.getGlsl=i$1,e$3.getVertexShaderSource=function(t$1){let e$4=i$1(t$1);return`${e$4.version}\n precision highp float;\n ${e$4.attribute} vec3 position;\n ${e$4.attribute} vec2 textureCoord;\n\n ${e$4.varyingVertex} vec2 TexCoords;\n\n void main()\n {\n gl_Position = vec4(position, 1.0);\n TexCoords = textureCoord;\n }`},e$3.getFragShaderPreamble=function(t$1){let e$4=i$1(t$1);return`${e$4.version}\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n ${e$4.varyingFrag} vec2 TexCoords;\n ${e$4.outputDeclaration}\n const vec2 halfCR = vec2(0.5, 0.5);\n\n // Custom vector types to handle higher dimenalities.\n struct ivec5\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n };\n\n struct ivec6\n {\n int x;\n int y;\n int z;\n int w;\n int u;\n int v;\n };\n\n int imod(int x, int y) {\n return x - y * (x / y);\n }\n\n `},e$3.getDefaultFragShaderMain=function(t$1,e$4){return`\n void main() {\n int indices[${e$4}];\n toVec(TexCoords, indices);\n vec4 result = vec4(process(indices));\n ${i$1(t$1).output} = result;\n }\n `}},3891:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.VecGlslLib=void 0;let r$2=n$2(8520);class i$1 extends r$2.GlslLib{constructor(t$1){super(t$1)}getCustomTypes(){return{}}getFunctions(){return Object.assign(Object.assign(Object.assign(Object.assign({},this.binaryVecFunctions()),this.copyVec()),this.setVecItem()),this.getVecItem())}binaryVecFunctions(){let t$1=this.context.outputTextureLayout.shape.length,e$4={add:`+=`,sub:`-=`,mul:`*=`,div:`/=`},n$3={};for(let i$2 in e$4){let o$1=`${i$2}Vec`,a$2=``;for(let n$4=0;n$4{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLInferenceHandler=void 0;let r$2=n$2(6231),i$1=n$2(9162),o$1=n$2(2517),a$2=n$2(2403),s$1=n$2(7019),u$1=n$2(8710),c$4=n$2(5611),l$1=n$2(4057),p$5=n$2(2039);e$3.WebGLInferenceHandler=class{constructor(t$1){this.session=t$1,this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map}calculateTextureWidthAndHeight(t$1,e$4){return(0,l$1.calculateTextureWidthAndHeight)(this.session.layoutStrategy,t$1,e$4)}executeProgram(t$1,e$4){if(e$4.length{let n$4=e$5.map(t$3=>`${t$3.unpackedShape.join(`,`)};${t$3.width}x${t$3.height}`).join(`_`),r$4=t$2.name;return t$2.cacheHint&&(r$4+=`[`+t$2.cacheHint+`]`),r$4+=`:`+n$4,r$4})(t$1,n$3),i$2=this.session.programManager.getArtifact(r$3),o$2=i$2?i$2.programInfo:typeof t$1.get==`function`?t$1.get():t$1,a$3=(0,l$1.createTextureLayoutFromTextureType)(this.session.layoutStrategy,o$2.output.dims,o$2.output.textureType),s$2=this.createTextureData(a$3,o$2.output.type);return i$2||(i$2=this.session.programManager.build(o$2,n$3,s$2),this.session.programManager.setArtifact(r$3,i$2)),this.runProgram(i$2,n$3,s$2),s$2}run(t$1,e$4){return this.executeProgram(t$1,e$4).tensor}runProgram(t$1,e$4,n$3){for(let n$4=0;n$4this.readTexture(a$3),async t$2=>this.readTextureAsync(a$3),void 0,o$2),texture:n$3});return this.setTextureData(a$3.tensor.dataId,a$3,t$1.isPacked),a$3}getTextureData(t$1,e$4=!1){return this.session.isInitializer(t$1)?this.session.getTextureData(t$1,e$4):e$4?this.packedTextureDataCache.get(t$1):this.unpackedTextureDataCache.get(t$1)}setTextureData(t$1,e$4,n$3=!1){this.session.isInitializer(t$1)?this.session.setTextureData(t$1,e$4,n$3):(n$3?this.packedTextureDataCache:this.unpackedTextureDataCache).set(t$1,e$4)}isTextureLayoutCached(t$1,e$4=!1){return!!this.getTextureData(t$1.dataId,e$4)}dispose(){this.session.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach(t$1=>this.session.textureManager.releaseTexture(t$1)),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach(t$1=>this.session.textureManager.releaseTexture(t$1)),this.unpackedTextureDataCache=new Map}readTexture(t$1){return t$1.isPacked?this.readTexture(this.unpack(t$1)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTexture(t$1,t$1.tensor.type,t$1.channels):this.session.textureManager.readUint8TextureAsFloat((0,u$1.encodeAsUint8)(this,t$1))}async readTextureAsync(t$1){return t$1.isPacked?this.readTextureAsync(this.unpack(t$1)):this.session.backend.glContext.isFloat32DownloadSupported?this.session.textureManager.readTextureAsync(t$1,t$1.tensor.type,t$1.channels):this.session.textureManager.readUint8TextureAsFloat((0,u$1.encodeAsUint8)(this,t$1))}pack(t$1){return this.executeProgram((0,a$2.createPackProgramInfoLoader)(this,t$1.tensor),[t$1.tensor])}unpack(t$1){return this.executeProgram((0,c$4.createUnpackProgramInfoLoader)(this,t$1.tensor),[t$1.tensor])}}},1640:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),o$1=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&r$2(e$4,t$1,n$3);return i$1(e$4,t$1),e$4};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WEBGL_OP_RESOLVE_RULES=void 0;let a$2=n$2(2898),s$1=o$1(n$2(7839)),u$1=n$2(4196),c$4=n$2(2069),l$1=n$2(8138),p$5=n$2(9663),f$3=n$2(5193),d$2=n$2(7992),h$3=n$2(1253),g$2=n$2(4776),b$3=n$2(6572),m$2=n$2(3346),y$2=n$2(5623),_$2=n$2(2870),v$1=n$2(2143),w$1=n$2(4939),x$3=n$2(718),T$1=n$2(2268),S$2=n$2(8117),O$2=n$2(2278),A$1=n$2(5524),E$2=n$2(5975),I=n$2(3933),P$1=n$2(6558),D$1=n$2(5723),$$1=n$2(3738),k$4=o$1(n$2(4909)),C$3=n$2(8428),F$2=n$2(9793);e$3.WEBGL_OP_RESOLVE_RULES=[[`Abs`,``,`6+`,k$4.abs],[`Acos`,``,`7+`,k$4.acos],[`Add`,``,`7+`,s$1.add],[`And`,``,`7+`,s$1.and],[`Asin`,``,`7+`,k$4.asin],[`Atan`,``,`7+`,k$4.atan],[`AveragePool`,``,`7+`,v$1.averagePool,v$1.parseAveragePoolAttributes],[`BatchNormalization`,``,`7+`,a$2.batchNormalization,a$2.parseBatchNormalizationAttributes],[`Cast`,``,`6+`,u$1.cast,u$1.parseCastAttributes],[`Ceil`,``,`6+`,k$4.ceil],[`Clip`,``,`6-10`,k$4.clip,k$4.parseClipAttributes],[`Clip`,``,`11+`,k$4.clipV11],[`Concat`,``,`4+`,c$4.concat,c$4.parseConcatAttributes],[`Conv`,``,`1+`,l$1.conv,l$1.parseConvAttributes],[`ConvTranspose`,``,`1+`,p$5.convTranspose,p$5.parseConvTransposeAttributes],[`Cos`,``,`7+`,k$4.cos],[`Div`,``,`7+`,s$1.div],[`Dropout`,``,`7+`,k$4.identity],[`DepthToSpace`,``,`1+`,f$3.depthToSpace,f$3.parseDepthToSpaceAttributes],[`Equal`,``,`7+`,s$1.equal],[`Elu`,``,`6+`,k$4.elu,k$4.parseEluAttributes],[`Exp`,``,`6+`,k$4.exp],[`Flatten`,``,`1+`,d$2.flatten,d$2.parseFlattenAttributes],[`Floor`,``,`6+`,k$4.floor],[`FusedConv`,`com.microsoft`,`1+`,l$1.conv,l$1.parseConvAttributes],[`Gather`,``,`1+`,h$3.gather,h$3.parseGatherAttributes],[`Gemm`,``,`7-10`,g$2.gemm,g$2.parseGemmAttributesV7],[`Gemm`,``,`11+`,g$2.gemm,g$2.parseGemmAttributesV11],[`GlobalAveragePool`,``,`1+`,v$1.globalAveragePool,v$1.parseGlobalAveragePoolAttributes],[`GlobalMaxPool`,``,`1+`,v$1.globalMaxPool],[`Greater`,``,`7+`,s$1.greater],[`Identity`,``,`1+`,k$4.identity],[`ImageScaler`,``,`1+`,b$3.imageScaler,b$3.parseImageScalerAttributes],[`InstanceNormalization`,``,`6+`,m$2.instanceNormalization,m$2.parseInstanceNormalizationAttributes],[`LeakyRelu`,``,`6+`,k$4.leakyRelu,k$4.parseLeakyReluAttributes],[`Less`,``,`7+`,s$1.less],[`Log`,``,`6+`,k$4.log],[`MatMul`,``,`1+`,y$2.matMul,y$2.parseMatMulAttributes],[`MaxPool`,``,`1+`,v$1.maxPool,v$1.parseMaxPoolAttributes],[`Mul`,``,`7+`,s$1.mul],[`Neg`,``,`6+`,k$4.neg],[`Not`,``,`1+`,k$4.not],[`Or`,``,`7+`,s$1.or],[`Pad`,``,`2-10`,_$2.padV2,_$2.parsePadAttributesV2],[`Pad`,``,`11+`,_$2.padV11,_$2.parsePadAttributesV11],[`Pow`,``,`7+`,s$1.pow],[`PRelu`,``,`7+`,s$1.pRelu],[`ReduceLogSum`,``,`1+`,w$1.reduceLogSum,w$1.parseReduceAttributes],[`ReduceMax`,``,`1+`,w$1.reduceMax,w$1.parseReduceAttributes],[`ReduceMean`,``,`1+`,w$1.reduceMean,w$1.parseReduceAttributes],[`ReduceMin`,``,`1+`,w$1.reduceMin,w$1.parseReduceAttributes],[`ReduceProd`,``,`1+`,w$1.reduceProd,w$1.parseReduceAttributes],[`ReduceSum`,``,`1-12`,w$1.reduceSum,w$1.parseReduceAttributes],[`ReduceSumSquare`,``,`1+`,w$1.reduceLogSumSquare,w$1.parseReduceAttributes],[`Relu`,``,`6+`,k$4.relu],[`Reshape`,``,`5+`,x$3.reshape],[`Resize`,``,`10`,T$1.resize,T$1.parseResizeAttributesV10],[`Resize`,``,`11+`,T$1.resize,T$1.parseResizeAttributesV11],[`Shape`,``,`1+`,S$2.shape],[`Sigmoid`,``,`6+`,k$4.sigmoid],[`Sin`,``,`7+`,k$4.sin],[`Slice`,``,`10+`,O$2.sliceV10],[`Slice`,``,`1-9`,O$2.slice,O$2.parseSliceAttributes],[`Softmax`,``,`1-12`,A$1.softmax,A$1.parseSoftmaxAttributes],[`Softmax`,``,`13+`,A$1.softmaxV13,A$1.parseSoftmaxAttributesV13],[`Split`,``,`2-12`,E$2.split,E$2.parseSplitAttributes],[`Sqrt`,``,`6+`,k$4.sqrt],[`Squeeze`,``,`1-12`,I.squeeze,I.parseSqueezeAttributes],[`Squeeze`,``,`13+`,I.squeezeV13],[`Sub`,``,`7+`,s$1.sub],[`Sum`,``,`6+`,P$1.sum],[`Tan`,``,`7+`,k$4.tan],[`Tanh`,``,`6+`,k$4.tanh],[`Tile`,``,`6+`,D$1.tile],[`Transpose`,``,`1+`,$$1.transpose,$$1.parseTransposeAttributes],[`Upsample`,``,`7-8`,F$2.upsample,F$2.parseUpsampleAttributesV7],[`Upsample`,``,`9`,F$2.upsample,F$2.parseUpsampleAttributesV9],[`Unsqueeze`,``,`1-12`,C$3.unsqueeze,C$3.parseUnsqueezeAttributes],[`Unsqueeze`,``,`13+`,C$3.unsqueezeV13],[`Xor`,``,`7+`,s$1.xor]]},2898:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseBatchNormalizationAttributes=e$3.batchNormalization=void 0;let r$2=n$2(246),i$1=n$2(5060),o$1=n$2(2039),a$2={name:`BatchNormalization`,inputNames:[`A`,`Scale`,`B`,`Mean`,`Variance`],inputTypes:[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]};e$3.batchNormalization=(t$1,e$4,n$3)=>(u$1(e$4),[t$1.run(Object.assign(Object.assign({},a$2),{cacheHint:n$3.cacheKey,get:()=>s$1(t$1,e$4,n$3)}),e$4)]),e$3.parseBatchNormalizationAttributes=t$1=>{let e$4=t$1.attributes.getFloat(`epsilon`,1e-5),n$3=t$1.attributes.getFloat(`momentum`,.9),i$2=t$1.attributes.getInt(`spatial`,1);return(0,r$2.createAttributeWithCacheKey)({epsilon:e$4,momentum:n$3,spatial:i$2})};let s$1=(t$1,e$4,n$3)=>{let r$3=(0,i$1.getGlsl)(t$1.session.backend.glContext.version),s$2=e$4[0].dims.length,[u$2,c$4]=t$1.calculateTextureWidthAndHeight(e$4[1].dims,o$1.TextureType.unpacked),l$1=`\n float process(int[${s$2}] indices) {\n vec2 position = offsetToCoords(indices[1], ${u$2}, ${c$4});\n float scale = getColorAsFloat(${r$3.texture2D}(Scale, position));\n float mean = getColorAsFloat(${r$3.texture2D}(Mean, position));\n float variance = getColorAsFloat(${r$3.texture2D}(Variance, position));\n float b = getColorAsFloat(${r$3.texture2D}(B, position));\n\n return scale * ( (_A(indices) - mean) / sqrt(variance + float(${n$3.epsilon})) ) + b;\n }`;return Object.assign(Object.assign({},a$2),{output:{dims:e$4[0].dims,type:e$4[0].type,textureType:o$1.TextureType.unpacked},shaderSource:l$1})},u$1=t$1=>{if(!t$1||t$1.length!==5)throw Error(`BatchNormalization requires 5 inputs.`);let e$4=t$1[0],n$3=t$1[1],r$3=t$1[2],i$2=t$1[3],o$2=t$1[4];if(e$4.dims.length<3||n$3.dims.length!==1||r$3.dims.length!==1||i$2.dims.length!==1||o$2.dims.length!==1||n$3.dims[0]!==e$4.dims[1]||r$3.dims[0]!==e$4.dims[1]||i$2.dims[0]!==e$4.dims[1]||o$2.dims[0]!==e$4.dims[1])throw Error(`invalid input shape.`);if(e$4.type!==`float32`&&e$4.type!==`float64`||n$3.type!==`float32`&&n$3.type!==`float64`||r$3.type!==`float32`&&r$3.type!==`float64`||i$2.type!==`float32`&&i$2.type!==`float64`||o$2.type!==`float32`&&o$2.type!==`float64`)throw Error(`invalid input tensor types.`)}},7839:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.xor=e$3.sub=e$3.pRelu=e$3.pow=e$3.or=e$3.mul=e$3.less=e$3.greater=e$3.equal=e$3.div=e$3.and=e$3.add=e$3.glslPRelu=e$3.glslPow=e$3.glslXor=e$3.glslOr=e$3.glslAnd=e$3.glslLess=e$3.glslGreater=e$3.glslEqual=e$3.glslSub=e$3.glslMul=e$3.glslDiv=e$3.glslAdd=void 0;let r$2=n$2(2517),i$1=n$2(8520),o$1=n$2(5060),a$2=n$2(2039);function s$1(){let t$1=`add_`;return{body:`\n float ${t$1}(float a, float b) {\n return a + b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 + v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function u$1(){let t$1=`div_`;return{body:`\n float ${t$1}(float a, float b) {\n return a / b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 / v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function c$4(){let t$1=`mul_`;return{body:`\n float ${t$1}(float a, float b) {\n return a * b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 * v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function l$1(){let t$1=`sub_`;return{body:`\n float ${t$1}(float a, float b) {\n return a - b;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return v1 - v2;\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function p$5(){let t$1=`equal_`;return{body:`\n float ${t$1}(float a, float b) {\n return float(a == b);\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4(equal(v1, v2));\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function f$3(){let t$1=`greater_`;return{body:`\n float ${t$1}(float a, float b) {\n return float(a > b);\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4( v1.r > v2.r ,\n v1.g > v2.g,\n v1.b > v2.b,\n v1.a > v2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function d$2(){let t$1=`less_`;return{body:`\n float ${t$1}(float a, float b) {\n return float(a < b);\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4( v1.r < v2.r ,\n v1.g < v2.g,\n v1.b < v2.b,\n v1.a < v2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function h$3(){let t$1=`and_`;return{body:`\n float ${t$1}(float a, float b) {\n return float( bool(a) && bool(b) );\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n bvec4 b1 = bvec4(v1);\n bvec4 b2 = bvec4(v2);\n return vec4( b1.r && b2.r ,\n b1.g && b2.g,\n b1.b && b2.b,\n b1.a && b2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function g$2(){let t$1=`or_`;return{body:`\n float ${t$1}(float a, float b) {\n return float( bool(a) || bool(b) );\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n bvec4 b1 = bvec4(v1);\n bvec4 b2 = bvec4(v2);\n return vec4( b1.r || b2.r ,\n b1.g || b2.g,\n b1.b || b2.b,\n b1.a || b2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function b$3(){let t$1=`xor_`;return{body:`\n float ${t$1}(float a, float b) {\n return float( bool(a) ^^ bool(b) );\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n bvec4 b1 = bvec4(v1);\n bvec4 b2 = bvec4(v2);\n return vec4( b1.r ^^ b2.r ,\n b1.g ^^ b2.g,\n b1.b ^^ b2.b,\n b1.a ^^ b2.a );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}function m$2(){return function(t$1){let e$4=`${t$1}_`;return{body:`\n float ${e$4}(float a, float b) {\n return ${t$1}(a, b);\n }\n vec4 ${e$4}(vec4 v1, vec4 v2) {\n return ${t$1}(v1, v2);\n }\n `,name:e$4,type:i$1.FunctionType.ValueBased}}(`pow`)}function y$2(){let t$1=`prelu_`;return{body:`\n float ${t$1}(float a, float b) {\n return a < 0.0 ? a * b: a;\n }\n vec4 ${t$1}(vec4 v1, vec4 v2) {\n return vec4(\n v1.r < 0.0 ? v1.r * v2.r: v1.r,\n v1.g < 0.0 ? v1.g * v2.g: v1.g,\n v1.b < 0.0 ? v1.b * v2.b: v1.b,\n v1.a < 0.0 ? v1.a * v2.a: v1.a\n );\n }\n `,name:t$1,type:i$1.FunctionType.ValueBased}}e$3.glslAdd=s$1,e$3.glslDiv=u$1,e$3.glslMul=c$4,e$3.glslSub=l$1,e$3.glslEqual=p$5,e$3.glslGreater=f$3,e$3.glslLess=d$2,e$3.glslAnd=h$3,e$3.glslOr=g$2,e$3.glslXor=b$3,e$3.glslPow=m$2,e$3.glslPRelu=y$2;let _$2=(t$1,e$4,n$3,r$3=e$4[0].type,i$2)=>{let o$2=t$1.session.pack?a$2.TextureType.packed:a$2.TextureType.unpacked;return{name:n$3.name,inputNames:[`A`,`B`],inputTypes:[o$2,o$2],cacheHint:i$2,get:()=>v$1(t$1,e$4,n$3,r$3)}},v$1=(t$1,e$4,n$3,i$2=e$4[0].type)=>{let s$2=t$1.session.pack?a$2.TextureType.packed:a$2.TextureType.unpacked,u$2=!r$2.ShapeUtil.areEqual(e$4[0].dims,e$4[1].dims),c$5=e$4[0].dims,l$2=t$1.session.pack;if(u$2){let a$3=r$2.BroadcastUtil.calcShape(e$4[0].dims,e$4[1].dims,!1);if(!a$3)throw Error(`Can't perform binary op on the given tensors`);c$5=a$3;let u$3=c$5.length,p$7=e$4[0].dims.length===0?1:e$4[0].dims.length,f$5=e$4[1].dims.length===0?1:e$4[1].dims.length,d$3=e$4[0].dims.length===0?`aindices[0] = 0;`:`bcastIndices_A(indices, aindices);`,h$4=e$4[1].dims.length===0?`bindices[0] = 0;`:`bcastIndices_B(indices, bindices);`,g$3=(0,o$1.getGlsl)(t$1.session.backend.glContext.version),b$4=l$2?`\n ${n$3.body}\n void main() {\n vec4 a = getAAtOutCoords();\n vec4 b = getBAtOutCoords();\n vec4 result = ${n$3.name}(a, b);\n ${g$3.output} = result;\n }`:`\n ${n$3.body}\n float process(int indices[${u$3}]) {\n int aindices[${p$7}];\n int bindices[${f$5}];\n ${d$3}\n ${h$4}\n return ${n$3.name}(_A(aindices), _B(bindices));\n }`;return{name:n$3.name,inputNames:[`A`,`B`],inputTypes:[s$2,s$2],output:{dims:c$5,type:i$2,textureType:s$2},shaderSource:b$4,hasMain:l$2}}let p$6=(0,o$1.getGlsl)(t$1.session.backend.glContext.version),f$4=`\n ${n$3.body}\n void main() {\n vec4 v1 = ${p$6.texture2D}(A, TexCoords);\n vec4 v2 = ${p$6.texture2D}(B, TexCoords);\n vec4 result = ${n$3.name}(v1, v2);\n ${p$6.output} = result;\n }\n `;return{name:n$3.name,inputNames:[`A`,`B`],inputTypes:[s$2,s$2],output:{dims:e$4[0].dims,type:i$2,textureType:s$2},shaderSource:f$4,hasMain:!0}};e$3.add=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,s$1()),e$4)],e$3.and=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,h$3(),`bool`),e$4)],e$3.div=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,u$1()),e$4)],e$3.equal=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,p$5(),`bool`),e$4)],e$3.greater=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,f$3(),`bool`),e$4)],e$3.less=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,d$2(),`bool`),e$4)],e$3.mul=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,c$4()),e$4)],e$3.or=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,g$2(),`bool`),e$4)],e$3.pow=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,m$2()),e$4)],e$3.pRelu=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,y$2()),e$4)],e$3.sub=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,l$1()),e$4)],e$3.xor=(t$1,e$4)=>[t$1.run(_$2(t$1,e$4,b$3(),`bool`),e$4)]},4196:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseCastAttributes=e$3.cast=void 0;let r$2=n$2(2517);e$3.cast=(t$1,e$4,n$3)=>(i$1(e$4),[t$1.cast(e$4[0],n$3)]),e$3.parseCastAttributes=t$1=>r$2.ProtoUtil.tensorDataTypeFromProto(t$1.attributes.getInt(`to`));let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Cast requires 1 input.`);if(t$1[0].type===`string`)throw Error(`Invalid input type.`)}},1163:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackedConcatProgramInfoLoader=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827);e$3.createPackedConcatProgramInfoLoader=(t$1,e$4,n$3)=>{let u$1=(c$4=e$4.length,l$1=n$3.cacheKey,{name:`Concat (packed)`,inputNames:Array.from({length:c$4},(t$2,e$5)=>`X${e$5}`),inputTypes:Array(c$4).fill(i$1.TextureType.packed),cacheHint:l$1});var c$4,l$1;return Object.assign(Object.assign({},u$1),{get:()=>((t$2,e$5,n$4,u$2)=>{let c$5=n$4[0].dims.slice();if(u$2>=c$5.length||u$2<-1*c$5.length)throw Error(`axis specified for concat doesn't match input dimensionality`);u$2<0&&(u$2=c$5.length+u$2);let l$2=c$5.slice(0);for(let t$3=1;t$3t$3.dims),b$3=(0,o$1.getGlChannels)(p$5),m$2=Array(g$2.length-1);m$2[0]=g$2[0][u$2];for(let t$3=1;t$3= ${m$2[t$3-1]}) {\n return getChannel(\n getX${t$3}(${s$1(b$3,y$2,e$6)}),\n vec2(${s$1(_$2,y$2,e$6)}));\n }`}let x$3=m$2.length,T$1=m$2[m$2.length-1];w$1+=`\n return getChannel(\n getX${x$3}(${s$1(b$3,y$2,T$1)}),\n vec2(${s$1(_$2,y$2,T$1)}));`;let S$2=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),O$2=`\n ${h$3}\n float getValue(${b$3.map(t$3=>`int `+t$3)}) {\n ${w$1}\n }\n\n void main() {\n ${d$2} coords = getOutputCoords();\n int lastDim = coords.${b$3[p$5-1]};\n coords.${b$3[p$5-1]} = coords.${b$3[p$5-2]};\n coords.${b$3[p$5-2]} = lastDim;\n\n vec4 result = vec4(getValue(${f$3}), 0., 0., 0.);\n\n ${f$3[p$5-1]} = ${f$3[p$5-1]} + 1;\n if (${f$3[p$5-1]} < ${l$2[p$5-1]}) {\n result.g = getValue(${f$3});\n }\n\n ${f$3[p$5-2]} = ${f$3[p$5-2]} + 1;\n if (${f$3[p$5-2]} < ${l$2[p$5-2]}) {\n result.a = getValue(${f$3});\n }\n\n ${f$3[p$5-1]} = ${f$3[p$5-1]} - 1;\n if (${f$3[p$5-2]} < ${l$2[p$5-2]} &&\n ${f$3[p$5-1]} < ${l$2[p$5-1]}) {\n result.b = getValue(${f$3});\n }\n ${S$2.output} = result;\n }\n `;return Object.assign(Object.assign({},e$5),{output:{dims:l$2,type:n$4[0].type,textureType:i$1.TextureType.packed},shaderSource:O$2,hasMain:!0})})(t$1,u$1,e$4,n$3.axis)})};let s$1=(t$1,e$4,n$3)=>{let r$3=t$1.indexOf(e$4);return t$1.map((t$2,e$5)=>e$5===r$3?`${t$2} - ${n$3}`:t$2).join()}},2069:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseConcatAttributes=e$3.concat=void 0;let r$2=n$2(246),i$1=n$2(2039),o$1=n$2(1163);e$3.concat=(t$1,e$4,n$3)=>(p$5(e$4),t$1.session.pack&&e$4[0].dims.length>1?[t$1.run((0,o$1.createPackedConcatProgramInfoLoader)(t$1,e$4,n$3),e$4)]:[t$1.run(a$2(t$1,e$4,n$3),e$4)]);let a$2=(t$1,e$4,n$3)=>{let r$3=(o$2=e$4.length,a$3=n$3.cacheKey,{name:`Concat`,inputNames:Array.from({length:o$2},(t$2,e$5)=>`X${e$5}`),inputTypes:Array(o$2).fill(i$1.TextureType.unpacked),cacheHint:a$3});var o$2,a$3;return Object.assign(Object.assign({},r$3),{get:()=>((t$2,e$5,n$4,r$4)=>{let o$3=n$4[0].dims.slice();if(r$4>=o$3.length||r$4<-1*o$3.length)throw Error(`axis specified for concat doesn't match input dimensionality`);r$4<0&&(r$4=o$3.length+r$4);let a$4=o$3.slice(0);for(let t$3=1;t$3`int getTextureWhereDataResides(int index) {\n ${t$1.map((t$2,e$4)=>`if(index<${t$2}) {return ${e$4};}\n`).join(``)}\n }`,u$1=t$1=>s$1(t$1),c$4=(t$1,e$4)=>{let n$3=[`float fetchDataFromCorrectTexture(int textureIndex, int indices[${e$4}]) {`];for(let e$5=0;e$5{let e$4=[`int getSizeInConcatAxisValueFromIndex(int index) {`];for(let n$3=0;n$3(0,r$2.createAttributeWithCacheKey)({axis:t$1.attributes.getInt(`axis`)});let p$5=t$1=>{if(!t$1||t$1.length<1)throw Error(`too few inputs`);let e$4=t$1[0].type,n$3=t$1[0].dims.length;if(e$4===`string`)throw Error(`string tensor is not supported yet`);for(let r$3 of t$1){if(r$3.type!==e$4)throw Error(`input tensors should be one type`);if(r$3.dims.length!==n$3)throw Error(`input tensors should have the same shape`)}}},4770:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createUnpackedGroupedConvProgramInfoLoader=void 0;let r$2=n$2(6231),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(8138),s$1=n$2(2823);e$3.createUnpackedGroupedConvProgramInfoLoader=(t$1,e$4,n$3)=>{let u$1=(c$4=e$4.length>2,l$1=n$3.cacheKey,{name:`GroupedConv`,inputNames:c$4?[`X`,`W`,`Bias`]:[`X`,`W`],inputTypes:c$4?[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.unpacked],cacheHint:l$1});var c$4,l$1;return Object.assign(Object.assign({},u$1),{get:()=>((t$2,e$5,n$4,u$2)=>{let c$5=e$5.length>2?`value += getBias(output_channel);`:``,l$2=e$5[0].dims.slice(),p$5=e$5[1].dims.slice(),f$3=p$5[0]/u$2.group;r$2.Logger.verbose(`GroupedConv`,`autpPad:${u$2.autoPad}, dilations:${u$2.dilations}, group:${u$2.group}, kernelShape:${u$2.kernelShape}, pads:${u$2.pads}, strides:${u$2.strides}`);let d$2=(0,a$2.calculateOutputShape)(l$2,p$5,u$2.dilations,u$2.pads,u$2.strides),h$3=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),{activationFunction:g$2,applyActivation:b$3}=(0,s$1.getActivationSnippet)(u$2),m$2=`\n const ivec2 strides = ivec2(${u$2.strides[0]}, ${u$2.strides[1]});\n const ivec2 pads = ivec2(${u$2.pads[0]}, ${u$2.pads[1]});\n ${g$2}\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n int output_channel = coords.y;\n ivec2 xRCCorner = coords.zw * strides - pads;\n int group_id = output_channel / ${f$3};\n\n float value = 0.0;\n for (int wInChannel = 0; wInChannel < ${p$5[1]}; wInChannel++) {\n int input_channel = group_id * ${p$5[1]} + wInChannel;\n for (int wHeight = 0; wHeight < ${p$5[2]}; wHeight++) {\n int xHeight = xRCCorner.x + wHeight * ${u$2.dilations[0]};\n\n if (xHeight < 0 || xHeight >= ${l$2[2]}) {\n continue;\n }\n\n for (int wWidth = 0; wWidth < ${p$5[3]}; wWidth++) {\n int xWidth = xRCCorner.y + wWidth * ${u$2.dilations[1]};\n if (xWidth < 0 || xWidth >= ${l$2[3]}) {\n continue;\n }\n\n float xVal = getX(batch, input_channel, xWidth, xHeight);\n float wVal = getW(output_channel, wInChannel, wWidth, wHeight);\n value += xVal*wVal;\n }\n }\n }\n ${c$5}\n ${b$3}\n ${h$3.output} = vec4(value, .0, .0, .0);\n }\n`;return Object.assign(Object.assign({},n$4),{output:{dims:d$2,type:e$5[0].type,textureType:o$1.TextureType.unpacked},shaderSource:m$2,hasMain:!0})})(t$1,e$4,u$1,n$3)})}},1386:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.conv2DPacked=e$3.conv2DPackedPointwise=void 0;let r$2=n$2(8138),i$1=n$2(8555),o$1=n$2(708);e$3.conv2DPackedPointwise=(t$1,e$4,n$3)=>{let i$2=e$4[0].dims,a$2=e$4[1].dims,s$1=(0,r$2.calculateOutputShape)(i$2,a$2,n$3.dilations,n$3.pads,n$3.strides),u$1=t$1.reshapePacked(e$4[0],[i$2[1],i$2[2]*i$2[3]]),c$4=t$1.reshapePacked(e$4[1],[a$2[0],a$2[1]]),l$1=e$4.length>2?[c$4,u$1,e$4[2]]:[c$4,u$1],p$5=t$1.run((0,o$1.createPackedMatmulProgramInfoLoader)(t$1,l$1,n$3),l$1);return t$1.reshapePacked(p$5,s$1)},e$3.conv2DPacked=(t$1,e$4,n$3)=>{let a$2=e$4[0].dims,s$1=e$4[1].dims,u$1=(0,r$2.calculateOutputShape)(a$2,s$1,n$3.dilations,n$3.pads,n$3.strides),c$4=t$1.run((0,i$1.createPackedIm2ColProgramInfoLoader)(t$1,e$4[0],e$4[1],u$1,n$3),[e$4[0]]),l$1=t$1.reshapePacked(e$4[1],[s$1[0],s$1[1]*s$1[2]*s$1[3]]),p$5=e$4.length===3?[l$1,c$4,e$4[2]]:[l$1,c$4],f$3=t$1.run((0,o$1.createPackedMatmulProgramInfoLoader)(t$1,p$5,n$3),p$5);return t$1.reshapePacked(f$3,u$1)}},9663:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseConvTransposeAttributes=e$3.convTranspose=void 0;let r$2=n$2(246),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(2823),s$1=(t$1,e$4,n$3,r$3,i$2,o$2)=>(t$1-1)*e$4+n$3+(r$3-1)*i$2+1-o$2,u$1=(t$1,e$4,n$3,r$3,i$2)=>{let o$2=Math.floor(t$1/2);e$4===`SAME_UPPER`?(n$3[r$3]=o$2,n$3[i$2]=t$1-o$2):e$4===`SAME_LOWER`&&(n$3[r$3]=t$1-o$2,n$3[i$2]=o$2)};e$3.convTranspose=(t$1,e$4,n$3)=>(f$3(e$4,n$3),c$4(t$1,e$4,n$3));let c$4=(t$1,e$4,n$3)=>{let r$3=p$5(n$3,e$4);return[l$1(t$1,e$4,r$3)]},l$1=(t$1,e$4,n$3)=>t$1.run(((t$2,e$5,n$4)=>{let r$3=(s$2=e$5.length>2,u$2=n$4.cacheKey,{name:`ConvTranspose`,inputNames:s$2?[`X`,`W`,`B`]:[`X`,`W`],inputTypes:s$2?[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.unpacked],cacheHint:u$2});var s$2,u$2;return Object.assign(Object.assign({},r$3),{get:()=>((t$3,e$6,n$5,r$4)=>{let s$3=e$6.length>2?`getB(output_channel)`:`0.0`,u$3=e$6[0].dims,c$5=e$6[1].dims,l$2=c$5[1],p$6=c$5[0]/r$4.group,f$4=[e$6[0].dims[0],e$6[1].dims[1]*r$4.group,...r$4.outputShape],d$2=(0,i$1.getGlsl)(t$3.session.backend.glContext.version),{activationFunction:h$3,applyActivation:g$2}=(0,a$2.getActivationSnippet)(r$4),b$3=`\n const ivec2 strides = ivec2(${r$4.strides[0]}, ${r$4.strides[1]});\n const ivec2 pads = ivec2(${r$4.pads[0]}, ${r$4.pads[1]});\n ${h$3}\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n int output_channel = coords.y;\n\n ivec2 loc = coords.zw + pads;\n\n int group_id = output_channel / ${l$2};\n int wOutChannel = output_channel - group_id * ${l$2};\n\n float value = ${s$3};\n for (int inChannelOffset = 0; inChannelOffset < ${p$6}; inChannelOffset++) {\n int input_channel = group_id * ${p$6} + inChannelOffset;\n for (int wWOff = 0; wWOff < ${c$5[2]}; wWOff++) {\n for (int wHOff = 0; wHOff < ${c$5[3]}; wHOff++) {\n ivec2 wOff = ivec2(wWOff * ${r$4.dilations[0]}, wHOff * ${r$4.dilations[1]});\n ivec2 wLoc = loc - wOff;\n ivec2 wLocIn = wLoc / strides;\n if (\n wLocIn * strides == wLoc &&\n wLocIn.x >= 0 && wLocIn.x < ${u$3[2]} &&\n wLocIn.y >= 0 && wLocIn.y < ${u$3[3]}\n ) {\n float xVal = getX(batch, input_channel, wLocIn.y, wLocIn.x);\n float wVal = getW(input_channel, wOutChannel, wHOff, wWOff);\n value += xVal * wVal;\n }\n }\n }\n }\n ${g$2}\n ${d$2.output} = vec4(value, .0, .0, .0);\n }\n`;return Object.assign(Object.assign({},n$5),{output:{dims:f$4,type:e$6[0].type,textureType:o$1.TextureType.unpacked},shaderSource:b$3,hasMain:!0})})(t$2,e$5,r$3,n$4)})})(t$1,e$4,n$3),e$4),p$5=(t$1,e$4)=>{let n$3=t$1.kernelShape.slice();if(t$1.kernelShape.length===0)for(let t$2=2;t$2{let l$2=t$2.length-2,p$6=c$5.length===0;for(let f$4=0;f$4{let e$4=t$1.attributes,n$3=(0,a$2.parseInternalActivationAttributes)(e$4),i$2=e$4.getString(`auto_pad`,`NOTSET`),o$2=e$4.getInts(`dilations`,[1,1]),s$2=e$4.getInt(`group`,1),u$2=e$4.getInts(`kernel_shape`,[]),c$5=e$4.getInts(`output_padding`,[0,0]),l$2=e$4.getInts(`output_shape`,[]),p$6=e$4.getInts(`pads`,[0,0,0,0]),f$4=e$4.getInts(`strides`,[1,1]);return(0,r$2.createAttributeWithCacheKey)(Object.assign({autoPad:i$2,dilations:o$2,group:s$2,kernelShape:u$2,outputPadding:c$5,outputShape:l$2,pads:p$6,strides:f$4},n$3))};let f$3=(t$1,e$4)=>{if(!t$1||t$1.length!==2&&t$1.length!==3)throw Error(`Conv requires 2 or 3 inputs`);if(t$1[0].dims.length!==4||t$1[1].dims.length!==4)throw Error(`currently only support 2-dimensional conv`);if(t$1[0].dims[1]!==t$1[1].dims[0])throw Error(`FILTER_IN_CHANNEL should be equal to DATA_CHANNEL`);let n$3=t$1[1].dims[1]*e$4.group;if(t$1.length===3&&(t$1[2].dims.length!==1||t$1[2].dims[0]!==n$3))throw Error(`invalid bias`);let r$3=t$1[0].dims.length-2;if(e$4.dilations.length!==r$3)throw Error(`dilations should be ${r$3}D`);if(e$4.strides.length!==r$3)throw Error(`strides should be ${r$3}D`);if(e$4.pads.length!==2*r$3)throw Error(`pads should be ${2*r$3}D`);if(e$4.outputPadding.length!==r$3)throw Error(`output_padding should be ${r$3}D`);if(e$4.kernelShape.length!==0&&e$4.kernelShape.length!==t$1[1].dims.length-2)throw Error(`invalid kernel shape`);if(e$4.outputShape.length!==0&&e$4.outputShape.length!==t$1[0].dims.length-2)throw Error(`invalid output shape`);if(t$1[0].type!==`float32`||t$1[1].type!==`float32`)throw Error(`ConvTranspose input(X,W) should be float tensor`);if(t$1.length===3&&t$1[2].type!==`float32`)throw Error(`ConvTranspose input(bias) should be float tensor`)}},8138:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseConvAttributes=e$3.conv=e$3.calculateOutputShape=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(4770),a$2=n$2(1386),s$1=n$2(9828),u$1=n$2(2823),c$4=n$2(3248),l$1=n$2(5623);e$3.calculateOutputShape=(t$1,e$4,n$3,r$3,i$2)=>{let o$2=t$1[0],a$3=t$1.slice(2),s$2=a$3.length,u$2=e$4[0],c$5=e$4.slice(2).map((t$2,e$5)=>t$2+(t$2-1)*(n$3[e$5]-1)),l$2=a$3.map((t$2,e$5)=>t$2+r$3[e$5]+r$3[e$5+s$2]).map((t$2,e$5)=>Math.floor((t$2-c$5[e$5]+i$2[e$5])/i$2[e$5]));return[o$2,u$2].concat(...l$2)},e$3.conv=(t$1,e$4,n$3)=>(g$2(e$4,n$3),p$5(t$1,e$4,n$3));let p$5=(t$1,e$4,n$3)=>{let r$3=h$3(n$3,e$4),i$2=t$1.session.pack,s$2=r$3.kernelShape[0]===1&&r$3.kernelShape[1]===1;return r$3.group>1?[t$1.run((0,o$1.createUnpackedGroupedConvProgramInfoLoader)(t$1,e$4,r$3),e$4)]:s$2&&i$2?[f$3(t$1,e$4,r$3)]:i$2&&e$4[0].dims.length===4&&e$4[0].dims[0]===1&&!s$2?[(0,a$2.conv2DPacked)(t$1,e$4,r$3)]:[d$2(t$1,e$4,r$3)]},f$3=(t$1,n$3,r$3)=>{let i$2=n$3[0].dims,o$2=n$3[1].dims,a$3=(0,e$3.calculateOutputShape)(i$2,o$2,r$3.dilations,r$3.pads,r$3.strides),s$2=t$1.reshapeUnpacked(n$3[0],[i$2[1],i$2[2]*i$2[3]]),u$2=t$1.reshapeUnpacked(n$3[1],[o$2[0],o$2[1]]),c$5=n$3.length>2?[u$2,s$2,n$3[2]]:[u$2,s$2],p$6=t$1.run((0,l$1.createMatmulProgramInfoLoader)(c$5,r$3),c$5);return t$1.reshapeUnpacked(p$6,a$3)},d$2=(t$1,n$3,r$3)=>{let i$2=n$3[0].dims,o$2=n$3[1].dims,a$3=(0,e$3.calculateOutputShape)(i$2,o$2,r$3.dilations,r$3.pads,r$3.strides),u$2=t$1.run((0,c$4.createIm2ColProgramInfoLoader)(t$1,n$3[0],n$3[1],a$3,r$3),[n$3[0]]),l$2=n$3.length===3?[u$2,n$3[1],n$3[2]]:[u$2,n$3[1]];return t$1.run((0,s$1.createDotProductProgramInfoLoader)(t$1,n$3,a$3,r$3),l$2)},h$3=(t$1,e$4)=>{let n$3=t$1.kernelShape.slice();if(t$1.kernelShape.length===0)for(let t$2=2;t$2{let e$4=t$1.attributes,n$3=(0,u$1.parseInternalActivationAttributes)(e$4),i$2=e$4.getString(`auto_pad`,`NOTSET`),o$2=e$4.getInts(`dilations`,[1,1]),a$3=e$4.getInt(`group`,1),s$2=e$4.getInts(`kernel_shape`,[]),c$5=e$4.getInts(`pads`,[0,0,0,0]),l$2=e$4.getInts(`strides`,[1,1]);return(0,r$2.createAttributeWithCacheKey)(Object.assign({autoPad:i$2,dilations:o$2,group:a$3,kernelShape:s$2,pads:c$5,strides:l$2},n$3))};let g$2=(t$1,e$4)=>{if(!t$1||t$1.length!==2&&t$1.length!==3)throw Error(`Conv requires 2 or 3 inputs`);if(t$1[0].dims.length!==4||t$1[1].dims.length!==4)throw Error(`currently only support 2-dimensional conv`);if(t$1[0].dims[1]!==t$1[1].dims[1]*e$4.group)throw Error(`FILTER_IN_CHANNEL should be equal to DATA_CHANNEL`);if(t$1.length===3&&(t$1[2].dims.length!==1||t$1[1].dims[0]!==t$1[2].dims[0]))throw Error(`invalid bias`);let n$3=t$1[0].dims.length-2;if(e$4.dilations.length!==n$3)throw Error(`dilations should be ${n$3}D`);if(e$4.strides.length!==n$3)throw Error(`strides should be ${n$3}D`);if(e$4.pads.length!==2*n$3)throw Error(`pads should be ${2*n$3}D`);if(e$4.kernelShape.length!==0&&e$4.kernelShape.length!==t$1[1].dims.length-2)throw Error(`invalid kernel shape`);if(t$1[0].type!==`float32`||t$1[1].type!==`float32`)throw Error(`Conv input(X,W) should be float tensor`);if(t$1.length===3&&t$1[2].type!==`float32`)throw Error(`Conv input(bias) should be float tensor`)}},5193:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseDepthToSpaceAttributes=e$3.depthToSpace=void 0;let r$2=n$2(3738);e$3.depthToSpace=(t$1,e$4,n$3)=>{i$1(e$4);let o$1=n$3.blocksize,a$2=o$1*o$1,s$1=n$3.mode===`DCR`?[0,3,4,1,5,2]:[0,1,4,2,5,3],u$1=n$3.mode===`DCR`?[e$4[0].dims[0],o$1,o$1,e$4[0].dims[1]/a$2,e$4[0].dims[2],e$4[0].dims[3]]:[e$4[0].dims[0],e$4[0].dims[1]/a$2,o$1,o$1,e$4[0].dims[2],e$4[0].dims[3]],c$4=t$1.reshapeUnpacked(e$4[0],u$1),l$1={perm:s$1,cacheKey:`${s$1}`},[p$5]=(0,r$2.transpose)(t$1,[c$4],l$1),f$3=[e$4[0].dims[0],e$4[0].dims[1]/a$2,e$4[0].dims[2]*o$1,e$4[0].dims[3]*o$1];return[t$1.reshapeUnpacked(p$5,f$3)]},e$3.parseDepthToSpaceAttributes=t$1=>{let e$4=t$1.attributes.getInt(`blocksize`);if(e$4<1)throw Error(`blocksize must be >= 1, but got : ${e$4} for DepthToSpace`);let n$3=t$1.attributes.getString(`mode`,`DCR`);if(n$3!==`DCR`&&n$3!==`CRD`)throw Error(`unrecognized mode: ${n$3} for DepthToSpace`);return{mode:n$3,blocksize:e$4}};let i$1=t$1=>{if(t$1.length!==1)throw Error(`DepthToSpace expect 1 inputs, but got ${t$1.length}`);if(t$1[0].type===`string`||t$1[0].dims.length!==4)throw TypeError(`DepthToSpace input should be a 4-D numeric tensor`)}},9828:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createDotProductProgramInfoLoader=void 0;let r$2=n$2(2517),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(2823),s$1=n$2(3248);e$3.createDotProductProgramInfoLoader=(t$1,e$4,n$3,u$1)=>{let c$4=((t$2,e$5)=>({name:`ConvDotProduct`,inputNames:t$2?[`Im2Col`,`K`,`B`]:[`Im2Col`,`K`],inputTypes:t$2?[o$1.TextureType.unpacked,o$1.TextureType.packedLastDimension,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.packedLastDimension],cacheKey:e$5.activationCacheKey}))(e$4.length>2,u$1);return Object.assign(Object.assign({},c$4),{get:()=>((t$2,e$5,n$4,u$2,c$5)=>{let l$1=n$4[0].dims,p$5=n$4[1].dims,f$3=[p$5[0],Math.ceil(l$1[1]*p$5[2]*p$5[3]/4)],d$2=(0,s$1.calculateIm2ColDims)(l$1,p$5,u$2),[h$3,g$2]=t$2.calculateTextureWidthAndHeight(f$3,o$1.TextureType.packedLastDimension),b$3=r$2.ShapeUtil.computeStrides(d$2),[m$2,y$2]=t$2.calculateTextureWidthAndHeight(d$2,o$1.TextureType.packedLastDimension),_$1=u$2.length,v$1=n$4.length<3?`0.0`:`_B(b)`,w$1=Math.ceil(l$1[1]*p$5[2]*p$5[3]/4),{activationFunction:x$3,applyActivation:T$1}=(0,a$2.getActivationSnippet)(c$5),S$2=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),O$1=`\n${x$3}\nfloat process(int indices[${_$1}]) {\n int b[1];\n b[0] = indices[1];\n int im2col[4];\n im2col[0] = indices[0];\n im2col[1] = indices[2];\n im2col[2] = indices[3];\n int im2colOffset = im2col[0] * ${b$3[0]} + im2col[1] * ${b$3[1]} + im2col[2] * ${b$3[2]};\n int kernelOffset = indices[1] * ${f$3[1]};\n float value = ${v$1};\n for (int i = 0; i < ${w$1}; ++i) {\n vec2 im2colCoords = offsetToCoords(im2colOffset, ${m$2}, ${y$2});\n vec2 kernelCoords = offsetToCoords(kernelOffset, ${h$3}, ${g$2});\n value += dot(${S$2.texture2D}(Im2Col, im2colCoords), ${S$2.texture2D}(K, kernelCoords));\n ++im2colOffset;\n ++kernelOffset;\n }\n ${T$1}\n return value;\n}`;return Object.assign(Object.assign({},e$5),{output:{dims:u$2,type:n$4[0].type,textureType:o$1.TextureType.unpacked},shaderSource:O$1})})(t$1,c$4,e$4,n$3,u$1)})}},7992:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseFlattenAttributes=e$3.flatten=void 0;let r$2=n$2(2517);e$3.flatten=(t$1,e$4,n$3)=>{i$1(e$4,n$3);let o$1=r$2.ShapeUtil.flattenShape(e$4[0].dims,n$3);return[t$1.reshapeUnpacked(e$4[0],o$1)]},e$3.parseFlattenAttributes=t$1=>t$1.attributes.getInt(`axis`,1);let i$1=(t$1,e$4)=>{if(!t$1||t$1.length!==1)throw Error(`Flatten requires 1 input.`);let n$3=t$1[0].dims.length;if(n$3===0)throw Error(`scalar tensor is not supported.`);if(e$4<-n$3||e$4>n$3)throw Error(`Invalid axis`);if(t$1[0].type===`string`)throw Error(`string tensor is not supported.`)}},2823:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseInternalActivationAttributes=e$3.getActivationSnippet=void 0;let r$2=n$2(2517),i$1=n$2(4909);e$3.getActivationSnippet=function(t$1){let e$4;switch(t$1.activation){case`Relu`:e$4=(0,i$1.glslRelu)();break;case`Sigmoid`:e$4=(0,i$1.glslSigmoid)();break;case`Clip`:e$4=(0,i$1.glslClip)(t$1.clipMin,t$1.clipMax);break;default:return{activationFunction:``,applyActivation:``}}let n$3=e$4.name;return{activationFunction:e$4.body,applyActivation:`value = ${n$3}_(value);`}},e$3.parseInternalActivationAttributes=t$1=>{let e$4=t$1.getString(`activation`,``);if(e$4===`Clip`){let[n$3,i$2]=t$1.getFloats(`activation_params`,[r$2.MIN_CLIP,r$2.MAX_CLIP]);return{activation:e$4,clipMax:i$2,clipMin:n$3,activationCacheKey:`${e$4}:${n$3},${i$2}`}}return{activation:e$4,activationCacheKey:e$4}}},1253:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseGatherAttributes=e$3.gather=void 0;let r$2=n$2(246),i$1=n$2(782),o$1=n$2(2517),a$2=n$2(2039);e$3.gather=(t$1,e$4,n$3)=>(c$4(e$4,n$3.axis),[t$1.run(u$1(t$1,e$4,n$3),e$4)]),e$3.parseGatherAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({axis:t$1.attributes.getInt(`axis`,0)});let s$1={name:`Gather`,inputNames:[`A`,`B`],inputTypes:[a$2.TextureType.unpacked,a$2.TextureType.unpacked]},u$1=(t$1,e$4,n$3)=>{let r$3=Object.assign(Object.assign({},s$1),{cacheHint:n$3.cacheKey});return Object.assign(Object.assign({},r$3),{get:()=>((t$2,e$5,n$4,r$4)=>{let i$2=n$4[0].dims.slice(),s$2=n$4[1].dims.slice(),u$2=Array(i$2.length+s$2.length-1);r$4=o$1.ShapeUtil.normalizeAxis(r$4,i$2.length);let c$5=[];for(let t$3=0;t$3(0,r$2.createAttributeWithCacheKey)({axis:t$1.attributes.getInt(`axis`)});let p$5=t$1=>{if(!t$1||t$1.length<1)throw Error(`too few inputs`);let e$4=t$1[0].type,n$3=t$1[0].dims.length;if(e$4===`string`)throw Error(`string tensor is not supported yet`);for(let r$3 of t$1){if(r$3.type!==e$4)throw Error(`input tensors should be one type`);if(r$3.dims.length!==n$3)throw Error(`input tensors should have the same shape`)}}},4770:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createUnpackedGroupedConvProgramInfoLoader=void 0;let r$2=n$2(6231),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(8138),s$1=n$2(2823);e$3.createUnpackedGroupedConvProgramInfoLoader=(t$1,e$4,n$3)=>{let u$1=(c$4=e$4.length>2,l$1=n$3.cacheKey,{name:`GroupedConv`,inputNames:c$4?[`X`,`W`,`Bias`]:[`X`,`W`],inputTypes:c$4?[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.unpacked],cacheHint:l$1});var c$4,l$1;return Object.assign(Object.assign({},u$1),{get:()=>((t$2,e$5,n$4,u$2)=>{let c$5=e$5.length>2?`value += getBias(output_channel);`:``,l$2=e$5[0].dims.slice(),p$5=e$5[1].dims.slice(),f$3=p$5[0]/u$2.group;r$2.Logger.verbose(`GroupedConv`,`autpPad:${u$2.autoPad}, dilations:${u$2.dilations}, group:${u$2.group}, kernelShape:${u$2.kernelShape}, pads:${u$2.pads}, strides:${u$2.strides}`);let d$2=(0,a$2.calculateOutputShape)(l$2,p$5,u$2.dilations,u$2.pads,u$2.strides),h$3=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),{activationFunction:g$2,applyActivation:b$3}=(0,s$1.getActivationSnippet)(u$2),m$2=`\n const ivec2 strides = ivec2(${u$2.strides[0]}, ${u$2.strides[1]});\n const ivec2 pads = ivec2(${u$2.pads[0]}, ${u$2.pads[1]});\n ${g$2}\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n int output_channel = coords.y;\n ivec2 xRCCorner = coords.zw * strides - pads;\n int group_id = output_channel / ${f$3};\n\n float value = 0.0;\n for (int wInChannel = 0; wInChannel < ${p$5[1]}; wInChannel++) {\n int input_channel = group_id * ${p$5[1]} + wInChannel;\n for (int wHeight = 0; wHeight < ${p$5[2]}; wHeight++) {\n int xHeight = xRCCorner.x + wHeight * ${u$2.dilations[0]};\n\n if (xHeight < 0 || xHeight >= ${l$2[2]}) {\n continue;\n }\n\n for (int wWidth = 0; wWidth < ${p$5[3]}; wWidth++) {\n int xWidth = xRCCorner.y + wWidth * ${u$2.dilations[1]};\n if (xWidth < 0 || xWidth >= ${l$2[3]}) {\n continue;\n }\n\n float xVal = getX(batch, input_channel, xWidth, xHeight);\n float wVal = getW(output_channel, wInChannel, wWidth, wHeight);\n value += xVal*wVal;\n }\n }\n }\n ${c$5}\n ${b$3}\n ${h$3.output} = vec4(value, .0, .0, .0);\n }\n`;return Object.assign(Object.assign({},n$4),{output:{dims:d$2,type:e$5[0].type,textureType:o$1.TextureType.unpacked},shaderSource:m$2,hasMain:!0})})(t$1,e$4,u$1,n$3)})}},1386:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.conv2DPacked=e$3.conv2DPackedPointwise=void 0;let r$2=n$2(8138),i$1=n$2(8555),o$1=n$2(708);e$3.conv2DPackedPointwise=(t$1,e$4,n$3)=>{let i$2=e$4[0].dims,a$2=e$4[1].dims,s$1=(0,r$2.calculateOutputShape)(i$2,a$2,n$3.dilations,n$3.pads,n$3.strides),u$1=t$1.reshapePacked(e$4[0],[i$2[1],i$2[2]*i$2[3]]),c$4=t$1.reshapePacked(e$4[1],[a$2[0],a$2[1]]),l$1=e$4.length>2?[c$4,u$1,e$4[2]]:[c$4,u$1],p$5=t$1.run((0,o$1.createPackedMatmulProgramInfoLoader)(t$1,l$1,n$3),l$1);return t$1.reshapePacked(p$5,s$1)},e$3.conv2DPacked=(t$1,e$4,n$3)=>{let a$2=e$4[0].dims,s$1=e$4[1].dims,u$1=(0,r$2.calculateOutputShape)(a$2,s$1,n$3.dilations,n$3.pads,n$3.strides),c$4=t$1.run((0,i$1.createPackedIm2ColProgramInfoLoader)(t$1,e$4[0],e$4[1],u$1,n$3),[e$4[0]]),l$1=t$1.reshapePacked(e$4[1],[s$1[0],s$1[1]*s$1[2]*s$1[3]]),p$5=e$4.length===3?[l$1,c$4,e$4[2]]:[l$1,c$4],f$3=t$1.run((0,o$1.createPackedMatmulProgramInfoLoader)(t$1,p$5,n$3),p$5);return t$1.reshapePacked(f$3,u$1)}},9663:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseConvTransposeAttributes=e$3.convTranspose=void 0;let r$2=n$2(246),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(2823),s$1=(t$1,e$4,n$3,r$3,i$2,o$2)=>(t$1-1)*e$4+n$3+(r$3-1)*i$2+1-o$2,u$1=(t$1,e$4,n$3,r$3,i$2)=>{let o$2=Math.floor(t$1/2);e$4===`SAME_UPPER`?(n$3[r$3]=o$2,n$3[i$2]=t$1-o$2):e$4===`SAME_LOWER`&&(n$3[r$3]=t$1-o$2,n$3[i$2]=o$2)};e$3.convTranspose=(t$1,e$4,n$3)=>(f$3(e$4,n$3),c$4(t$1,e$4,n$3));let c$4=(t$1,e$4,n$3)=>{let r$3=p$5(n$3,e$4);return[l$1(t$1,e$4,r$3)]},l$1=(t$1,e$4,n$3)=>t$1.run(((t$2,e$5,n$4)=>{let r$3=(s$2=e$5.length>2,u$2=n$4.cacheKey,{name:`ConvTranspose`,inputNames:s$2?[`X`,`W`,`B`]:[`X`,`W`],inputTypes:s$2?[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.unpacked],cacheHint:u$2});var s$2,u$2;return Object.assign(Object.assign({},r$3),{get:()=>((t$3,e$6,n$5,r$4)=>{let s$3=e$6.length>2?`getB(output_channel)`:`0.0`,u$3=e$6[0].dims,c$5=e$6[1].dims,l$2=c$5[1],p$6=c$5[0]/r$4.group,f$4=[e$6[0].dims[0],e$6[1].dims[1]*r$4.group,...r$4.outputShape],d$2=(0,i$1.getGlsl)(t$3.session.backend.glContext.version),{activationFunction:h$3,applyActivation:g$2}=(0,a$2.getActivationSnippet)(r$4),b$3=`\n const ivec2 strides = ivec2(${r$4.strides[0]}, ${r$4.strides[1]});\n const ivec2 pads = ivec2(${r$4.pads[0]}, ${r$4.pads[1]});\n ${h$3}\n void main() {\n ivec4 coords = getOutputCoords();\n int batch = coords.x;\n int output_channel = coords.y;\n\n ivec2 loc = coords.zw + pads;\n\n int group_id = output_channel / ${l$2};\n int wOutChannel = output_channel - group_id * ${l$2};\n\n float value = ${s$3};\n for (int inChannelOffset = 0; inChannelOffset < ${p$6}; inChannelOffset++) {\n int input_channel = group_id * ${p$6} + inChannelOffset;\n for (int wWOff = 0; wWOff < ${c$5[2]}; wWOff++) {\n for (int wHOff = 0; wHOff < ${c$5[3]}; wHOff++) {\n ivec2 wOff = ivec2(wWOff * ${r$4.dilations[0]}, wHOff * ${r$4.dilations[1]});\n ivec2 wLoc = loc - wOff;\n ivec2 wLocIn = wLoc / strides;\n if (\n wLocIn * strides == wLoc &&\n wLocIn.x >= 0 && wLocIn.x < ${u$3[2]} &&\n wLocIn.y >= 0 && wLocIn.y < ${u$3[3]}\n ) {\n float xVal = getX(batch, input_channel, wLocIn.y, wLocIn.x);\n float wVal = getW(input_channel, wOutChannel, wHOff, wWOff);\n value += xVal * wVal;\n }\n }\n }\n }\n ${g$2}\n ${d$2.output} = vec4(value, .0, .0, .0);\n }\n`;return Object.assign(Object.assign({},n$5),{output:{dims:f$4,type:e$6[0].type,textureType:o$1.TextureType.unpacked},shaderSource:b$3,hasMain:!0})})(t$2,e$5,r$3,n$4)})})(t$1,e$4,n$3),e$4),p$5=(t$1,e$4)=>{let n$3=t$1.kernelShape.slice();if(t$1.kernelShape.length===0)for(let t$2=2;t$2{let l$2=t$2.length-2,p$6=c$5.length===0;for(let f$4=0;f$4{let e$4=t$1.attributes,n$3=(0,a$2.parseInternalActivationAttributes)(e$4),i$2=e$4.getString(`auto_pad`,`NOTSET`),o$2=e$4.getInts(`dilations`,[1,1]),s$2=e$4.getInt(`group`,1),u$2=e$4.getInts(`kernel_shape`,[]),c$5=e$4.getInts(`output_padding`,[0,0]),l$2=e$4.getInts(`output_shape`,[]),p$6=e$4.getInts(`pads`,[0,0,0,0]),f$4=e$4.getInts(`strides`,[1,1]);return(0,r$2.createAttributeWithCacheKey)(Object.assign({autoPad:i$2,dilations:o$2,group:s$2,kernelShape:u$2,outputPadding:c$5,outputShape:l$2,pads:p$6,strides:f$4},n$3))};let f$3=(t$1,e$4)=>{if(!t$1||t$1.length!==2&&t$1.length!==3)throw Error(`Conv requires 2 or 3 inputs`);if(t$1[0].dims.length!==4||t$1[1].dims.length!==4)throw Error(`currently only support 2-dimensional conv`);if(t$1[0].dims[1]!==t$1[1].dims[0])throw Error(`FILTER_IN_CHANNEL should be equal to DATA_CHANNEL`);let n$3=t$1[1].dims[1]*e$4.group;if(t$1.length===3&&(t$1[2].dims.length!==1||t$1[2].dims[0]!==n$3))throw Error(`invalid bias`);let r$3=t$1[0].dims.length-2;if(e$4.dilations.length!==r$3)throw Error(`dilations should be ${r$3}D`);if(e$4.strides.length!==r$3)throw Error(`strides should be ${r$3}D`);if(e$4.pads.length!==2*r$3)throw Error(`pads should be ${2*r$3}D`);if(e$4.outputPadding.length!==r$3)throw Error(`output_padding should be ${r$3}D`);if(e$4.kernelShape.length!==0&&e$4.kernelShape.length!==t$1[1].dims.length-2)throw Error(`invalid kernel shape`);if(e$4.outputShape.length!==0&&e$4.outputShape.length!==t$1[0].dims.length-2)throw Error(`invalid output shape`);if(t$1[0].type!==`float32`||t$1[1].type!==`float32`)throw Error(`ConvTranspose input(X,W) should be float tensor`);if(t$1.length===3&&t$1[2].type!==`float32`)throw Error(`ConvTranspose input(bias) should be float tensor`)}},8138:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseConvAttributes=e$3.conv=e$3.calculateOutputShape=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(4770),a$2=n$2(1386),s$1=n$2(9828),u$1=n$2(2823),c$4=n$2(3248),l$1=n$2(5623);e$3.calculateOutputShape=(t$1,e$4,n$3,r$3,i$2)=>{let o$2=t$1[0],a$3=t$1.slice(2),s$2=a$3.length,u$2=e$4[0],c$5=e$4.slice(2).map((t$2,e$5)=>t$2+(t$2-1)*(n$3[e$5]-1)),l$2=a$3.map((t$2,e$5)=>t$2+r$3[e$5]+r$3[e$5+s$2]).map((t$2,e$5)=>Math.floor((t$2-c$5[e$5]+i$2[e$5])/i$2[e$5]));return[o$2,u$2].concat(...l$2)},e$3.conv=(t$1,e$4,n$3)=>(g$2(e$4,n$3),p$5(t$1,e$4,n$3));let p$5=(t$1,e$4,n$3)=>{let r$3=h$3(n$3,e$4),i$2=t$1.session.pack,s$2=r$3.kernelShape[0]===1&&r$3.kernelShape[1]===1;return r$3.group>1?[t$1.run((0,o$1.createUnpackedGroupedConvProgramInfoLoader)(t$1,e$4,r$3),e$4)]:s$2&&i$2?[f$3(t$1,e$4,r$3)]:i$2&&e$4[0].dims.length===4&&e$4[0].dims[0]===1&&!s$2?[(0,a$2.conv2DPacked)(t$1,e$4,r$3)]:[d$2(t$1,e$4,r$3)]},f$3=(t$1,n$3,r$3)=>{let i$2=n$3[0].dims,o$2=n$3[1].dims,a$3=(0,e$3.calculateOutputShape)(i$2,o$2,r$3.dilations,r$3.pads,r$3.strides),s$2=t$1.reshapeUnpacked(n$3[0],[i$2[1],i$2[2]*i$2[3]]),u$2=t$1.reshapeUnpacked(n$3[1],[o$2[0],o$2[1]]),c$5=n$3.length>2?[u$2,s$2,n$3[2]]:[u$2,s$2],p$6=t$1.run((0,l$1.createMatmulProgramInfoLoader)(c$5,r$3),c$5);return t$1.reshapeUnpacked(p$6,a$3)},d$2=(t$1,n$3,r$3)=>{let i$2=n$3[0].dims,o$2=n$3[1].dims,a$3=(0,e$3.calculateOutputShape)(i$2,o$2,r$3.dilations,r$3.pads,r$3.strides),u$2=t$1.run((0,c$4.createIm2ColProgramInfoLoader)(t$1,n$3[0],n$3[1],a$3,r$3),[n$3[0]]),l$2=n$3.length===3?[u$2,n$3[1],n$3[2]]:[u$2,n$3[1]];return t$1.run((0,s$1.createDotProductProgramInfoLoader)(t$1,n$3,a$3,r$3),l$2)},h$3=(t$1,e$4)=>{let n$3=t$1.kernelShape.slice();if(t$1.kernelShape.length===0)for(let t$2=2;t$2{let e$4=t$1.attributes,n$3=(0,u$1.parseInternalActivationAttributes)(e$4),i$2=e$4.getString(`auto_pad`,`NOTSET`),o$2=e$4.getInts(`dilations`,[1,1]),a$3=e$4.getInt(`group`,1),s$2=e$4.getInts(`kernel_shape`,[]),c$5=e$4.getInts(`pads`,[0,0,0,0]),l$2=e$4.getInts(`strides`,[1,1]);return(0,r$2.createAttributeWithCacheKey)(Object.assign({autoPad:i$2,dilations:o$2,group:a$3,kernelShape:s$2,pads:c$5,strides:l$2},n$3))};let g$2=(t$1,e$4)=>{if(!t$1||t$1.length!==2&&t$1.length!==3)throw Error(`Conv requires 2 or 3 inputs`);if(t$1[0].dims.length!==4||t$1[1].dims.length!==4)throw Error(`currently only support 2-dimensional conv`);if(t$1[0].dims[1]!==t$1[1].dims[1]*e$4.group)throw Error(`FILTER_IN_CHANNEL should be equal to DATA_CHANNEL`);if(t$1.length===3&&(t$1[2].dims.length!==1||t$1[1].dims[0]!==t$1[2].dims[0]))throw Error(`invalid bias`);let n$3=t$1[0].dims.length-2;if(e$4.dilations.length!==n$3)throw Error(`dilations should be ${n$3}D`);if(e$4.strides.length!==n$3)throw Error(`strides should be ${n$3}D`);if(e$4.pads.length!==2*n$3)throw Error(`pads should be ${2*n$3}D`);if(e$4.kernelShape.length!==0&&e$4.kernelShape.length!==t$1[1].dims.length-2)throw Error(`invalid kernel shape`);if(t$1[0].type!==`float32`||t$1[1].type!==`float32`)throw Error(`Conv input(X,W) should be float tensor`);if(t$1.length===3&&t$1[2].type!==`float32`)throw Error(`Conv input(bias) should be float tensor`)}},5193:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseDepthToSpaceAttributes=e$3.depthToSpace=void 0;let r$2=n$2(3738);e$3.depthToSpace=(t$1,e$4,n$3)=>{i$1(e$4);let o$1=n$3.blocksize,a$2=o$1*o$1,s$1=n$3.mode===`DCR`?[0,3,4,1,5,2]:[0,1,4,2,5,3],u$1=n$3.mode===`DCR`?[e$4[0].dims[0],o$1,o$1,e$4[0].dims[1]/a$2,e$4[0].dims[2],e$4[0].dims[3]]:[e$4[0].dims[0],e$4[0].dims[1]/a$2,o$1,o$1,e$4[0].dims[2],e$4[0].dims[3]],c$4=t$1.reshapeUnpacked(e$4[0],u$1),l$1={perm:s$1,cacheKey:`${s$1}`},[p$5]=(0,r$2.transpose)(t$1,[c$4],l$1),f$3=[e$4[0].dims[0],e$4[0].dims[1]/a$2,e$4[0].dims[2]*o$1,e$4[0].dims[3]*o$1];return[t$1.reshapeUnpacked(p$5,f$3)]},e$3.parseDepthToSpaceAttributes=t$1=>{let e$4=t$1.attributes.getInt(`blocksize`);if(e$4<1)throw Error(`blocksize must be >= 1, but got : ${e$4} for DepthToSpace`);let n$3=t$1.attributes.getString(`mode`,`DCR`);if(n$3!==`DCR`&&n$3!==`CRD`)throw Error(`unrecognized mode: ${n$3} for DepthToSpace`);return{mode:n$3,blocksize:e$4}};let i$1=t$1=>{if(t$1.length!==1)throw Error(`DepthToSpace expect 1 inputs, but got ${t$1.length}`);if(t$1[0].type===`string`||t$1[0].dims.length!==4)throw TypeError(`DepthToSpace input should be a 4-D numeric tensor`)}},9828:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createDotProductProgramInfoLoader=void 0;let r$2=n$2(2517),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(2823),s$1=n$2(3248);e$3.createDotProductProgramInfoLoader=(t$1,e$4,n$3,u$1)=>{let c$4=((t$2,e$5)=>({name:`ConvDotProduct`,inputNames:t$2?[`Im2Col`,`K`,`B`]:[`Im2Col`,`K`],inputTypes:t$2?[o$1.TextureType.unpacked,o$1.TextureType.packedLastDimension,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.packedLastDimension],cacheKey:e$5.activationCacheKey}))(e$4.length>2,u$1);return Object.assign(Object.assign({},c$4),{get:()=>((t$2,e$5,n$4,u$2,c$5)=>{let l$1=n$4[0].dims,p$5=n$4[1].dims,f$3=[p$5[0],Math.ceil(l$1[1]*p$5[2]*p$5[3]/4)],d$2=(0,s$1.calculateIm2ColDims)(l$1,p$5,u$2),[h$3,g$2]=t$2.calculateTextureWidthAndHeight(f$3,o$1.TextureType.packedLastDimension),b$3=r$2.ShapeUtil.computeStrides(d$2),[m$2,y$2]=t$2.calculateTextureWidthAndHeight(d$2,o$1.TextureType.packedLastDimension),_$2=u$2.length,v$1=n$4.length<3?`0.0`:`_B(b)`,w$1=Math.ceil(l$1[1]*p$5[2]*p$5[3]/4),{activationFunction:x$3,applyActivation:T$1}=(0,a$2.getActivationSnippet)(c$5),S$2=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),O$2=`\n${x$3}\nfloat process(int indices[${_$2}]) {\n int b[1];\n b[0] = indices[1];\n int im2col[4];\n im2col[0] = indices[0];\n im2col[1] = indices[2];\n im2col[2] = indices[3];\n int im2colOffset = im2col[0] * ${b$3[0]} + im2col[1] * ${b$3[1]} + im2col[2] * ${b$3[2]};\n int kernelOffset = indices[1] * ${f$3[1]};\n float value = ${v$1};\n for (int i = 0; i < ${w$1}; ++i) {\n vec2 im2colCoords = offsetToCoords(im2colOffset, ${m$2}, ${y$2});\n vec2 kernelCoords = offsetToCoords(kernelOffset, ${h$3}, ${g$2});\n value += dot(${S$2.texture2D}(Im2Col, im2colCoords), ${S$2.texture2D}(K, kernelCoords));\n ++im2colOffset;\n ++kernelOffset;\n }\n ${T$1}\n return value;\n}`;return Object.assign(Object.assign({},e$5),{output:{dims:u$2,type:n$4[0].type,textureType:o$1.TextureType.unpacked},shaderSource:O$2})})(t$1,c$4,e$4,n$3,u$1)})}},7992:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseFlattenAttributes=e$3.flatten=void 0;let r$2=n$2(2517);e$3.flatten=(t$1,e$4,n$3)=>{i$1(e$4,n$3);let o$1=r$2.ShapeUtil.flattenShape(e$4[0].dims,n$3);return[t$1.reshapeUnpacked(e$4[0],o$1)]},e$3.parseFlattenAttributes=t$1=>t$1.attributes.getInt(`axis`,1);let i$1=(t$1,e$4)=>{if(!t$1||t$1.length!==1)throw Error(`Flatten requires 1 input.`);let n$3=t$1[0].dims.length;if(n$3===0)throw Error(`scalar tensor is not supported.`);if(e$4<-n$3||e$4>n$3)throw Error(`Invalid axis`);if(t$1[0].type===`string`)throw Error(`string tensor is not supported.`)}},2823:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseInternalActivationAttributes=e$3.getActivationSnippet=void 0;let r$2=n$2(2517),i$1=n$2(4909);e$3.getActivationSnippet=function(t$1){let e$4;switch(t$1.activation){case`Relu`:e$4=(0,i$1.glslRelu)();break;case`Sigmoid`:e$4=(0,i$1.glslSigmoid)();break;case`Clip`:e$4=(0,i$1.glslClip)(t$1.clipMin,t$1.clipMax);break;default:return{activationFunction:``,applyActivation:``}}let n$3=e$4.name;return{activationFunction:e$4.body,applyActivation:`value = ${n$3}_(value);`}},e$3.parseInternalActivationAttributes=t$1=>{let e$4=t$1.getString(`activation`,``);if(e$4===`Clip`){let[n$3,i$2]=t$1.getFloats(`activation_params`,[r$2.MIN_CLIP,r$2.MAX_CLIP]);return{activation:e$4,clipMax:i$2,clipMin:n$3,activationCacheKey:`${e$4}:${n$3},${i$2}`}}return{activation:e$4,activationCacheKey:e$4}}},1253:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseGatherAttributes=e$3.gather=void 0;let r$2=n$2(246),i$1=n$2(782),o$1=n$2(2517),a$2=n$2(2039);e$3.gather=(t$1,e$4,n$3)=>(c$4(e$4,n$3.axis),[t$1.run(u$1(t$1,e$4,n$3),e$4)]),e$3.parseGatherAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({axis:t$1.attributes.getInt(`axis`,0)});let s$1={name:`Gather`,inputNames:[`A`,`B`],inputTypes:[a$2.TextureType.unpacked,a$2.TextureType.unpacked]},u$1=(t$1,e$4,n$3)=>{let r$3=Object.assign(Object.assign({},s$1),{cacheHint:n$3.cacheKey});return Object.assign(Object.assign({},r$3),{get:()=>((t$2,e$5,n$4,r$4)=>{let i$2=n$4[0].dims.slice(),s$2=n$4[1].dims.slice(),u$2=Array(i$2.length+s$2.length-1);r$4=o$1.ShapeUtil.normalizeAxis(r$4,i$2.length);let c$5=[];for(let t$3=0;t$3{if(!t$1||t$1.length!==2)throw Error(`Gather requires 2 inputs.`);let n$3=t$1[0].dims.length;if(n$3<1)throw Error(`Invalid input shape.`);if(e$4<-n$3||e$4>n$3-1)throw Error(`Invalid axis.`);if(i$1.NUMBER_TYPES.indexOf(t$1[0].type)===-1||t$1[1].type!==`int32`&&t$1[1].type!==`int16`)throw Error(`Invaid input type.`)}},4776:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseGemmAttributesV11=e$3.parseGemmAttributesV7=e$3.gemm=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(2039);e$3.gemm=(t$1,e$4,n$3)=>(c$4(e$4,n$3),[t$1.run(s$1(e$4,n$3),e$4)]);let a$2=(t$1,e$4)=>{let n$3=t$1.attributes.getInt(`transA`,0)!==0,i$2=t$1.attributes.getInt(`transB`,0)!==0,o$2=t$1.attributes.getFloat(`alpha`,1),a$3=t$1.attributes.getFloat(`beta`,1);return(0,r$2.createAttributeWithCacheKey)({transA:n$3,transB:i$2,alpha:o$2,beta:a$3,isOptionalC:e$4})};e$3.parseGemmAttributesV7=t$1=>a$2(t$1,!1),e$3.parseGemmAttributesV11=t$1=>a$2(t$1,!0);let s$1=(t$1,e$4)=>{let n$3={name:`Gemm`,inputNames:t$1.length===3?[`A`,`B`,`C`]:[`A`,`B`],inputTypes:t$1.length===3?[o$1.TextureType.unpacked,o$1.TextureType.unpacked,o$1.TextureType.unpacked]:[o$1.TextureType.unpacked,o$1.TextureType.unpacked],key:e$4.cacheKey};return Object.assign(Object.assign({},n$3),{get:()=>u$1(n$3,t$1,e$4)})},u$1=(t$1,e$4,n$3)=>{let r$3=e$4[0].dims.slice(),a$3=e$4[1].dims.slice(),[s$2,u$2]=i$1.GemmUtil.getShapeOfGemmResult(r$3,n$3.transA,a$3,n$3.transB,e$4.length===3?e$4[2].dims:void 0),c$5=[s$2,u$2];if(!c$5)throw Error(`Can't use gemm on the given tensors`);let l$1=r$3[r$3.length-1],p$5=``;n$3.transA&&(l$1=r$3[0]),n$3.transA&&n$3.transB?p$5=`value += _A_T(a) * _B_T(b);`:n$3.transA&&!n$3.transB?p$5=`value += _A_T(a) * _B(b);`:!n$3.transA&&n$3.transB?p$5=`value += _A(a) * _B_T(b);`:n$3.transA||n$3.transB||(p$5=`value += _A(a) * _B(b);`);let f$3=c$5.length,d$2=`\n float process(int indices[${f$3}]) {\n int a[${f$3}];\n int b[${f$3}];\n ${e$4.length===3?`int c[${e$4[2].dims.length}];`:``}\n\n copyVec(indices, a);\n copyVec(indices, b);\n ${e$4.length===3?`bcastIndices_C(indices, c);`:``}\n\n float value = 0.0;\n for (int k=0; k<${l$1}; ++k) {\n a[${f$3-1}] = k;\n b[${f$3-2}] = k;\n ${p$5}\n }\n\n value = value * alpha;\n ${e$4.length===3?`value += beta * _C(c);`:``}\n return value;\n }`;return Object.assign(Object.assign({},t$1),{output:{dims:c$5,type:e$4[0].type,textureType:o$1.TextureType.unpacked},variables:[{name:`alpha`,type:`float`,data:n$3.alpha},{name:`beta`,type:`float`,data:n$3.beta}],shaderSource:d$2})},c$4=(t$1,e$4)=>{if(!t$1)throw Error(`Input is missing`);if(e$4.isOptionalC&&(t$1.length<2||t$1.length>3))throw Error(`Invaid input shape.`);if(!e$4.isOptionalC&&t$1.length!==3)throw Error(`Gemm requires 3 inputs`);if(t$1.length===3&&t$1[2].dims.length!==1&&t$1[2].dims.length!==2)throw Error(`Invalid input shape of C`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`||t$1[1].type!==`float32`&&t$1[1].type!==`float64`||t$1.length===3&&t$1[2].type!==`float32`&&t$1[2].type!==`float64`)throw Error(`Invalid input type.`);if(t$1[0].type!==t$1[1].type||t$1.length===3&&t$1[0].type!==t$1[2].type)throw Error(`Input types are mismatched`)}},8555:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackedIm2ColProgramInfoLoader=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(2827);e$3.createPackedIm2ColProgramInfoLoader=(t$1,e$4,n$3,a$2,s$1)=>{let u$1=(c$4=s$1.cacheKey,{name:`Im2Col (packed)`,inputNames:[`A`],inputTypes:[i$1.TextureType.packed],cacheHint:c$4});var c$4;return Object.assign(Object.assign({},u$1),{get:()=>((t$2,e$5,n$4,a$3,s$2,u$2)=>{let c$5=n$4.dims,l$1=a$3.dims,p$5=s$2.length,f$3=[l$1[1]*l$1[2]*l$1[3],s$2[2]*s$2[3]],d$2=l$1[2]*l$1[3],h$3=(0,o$1.unpackFromChannel)(),g$2=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),b$3=``;for(let t$3=0;t$3<=1;t$3++)for(let e$6=0;e$6<=1;e$6++)b$3+=`\n blockIndex = rc.x + ${e$6};\n pos = rc.y + ${t$3};\n\n if(blockIndex < ${f$3[1]} && pos < ${f$3[0]}) {\n offsetY = int(blockIndex / (${s$2[p$5-1]})) * ${u$2.strides[0]} -\n ${u$2.pads[0]};\n d0 = offsetY + ${u$2.dilations[0]} * (imod(pos, ${d$2}) / ${l$1[2]});\n\n if(d0 < ${c$5[2]} && d0 >= 0) {\n offsetX = imod(blockIndex, ${s$2[p$5-1]}) * ${u$2.strides[1]} -\n ${u$2.pads[1]};\n d1 = offsetX + ${u$2.dilations[1]} * imod(imod(pos, ${d$2}), ${l$1[2]});\n\n if(d1 < ${c$5[3]} && d1 >= 0) {\n\n ch = int(float(pos)/ ${d$2}.);\n innerDims = vec2(d0, d1);\n result[${2*t$3+e$6}] = getChannel(\n getA(0, ch, int(innerDims.x),\n int(innerDims.y)), innerDims);\n }\n }\n }\n\n `;let m$2=`\n ${h$3}\n\n void main() {\n ivec2 rc = getOutputCoords();\n vec4 result = vec4(0.0);\n int blockIndex, pos, offsetY, d0, offsetX, d1, ch;\n vec2 innerDims;\n ${b$3}\n ${g$2.output} = result;\n }\n `;return Object.assign(Object.assign({},e$5),{output:{dims:f$3,type:n$4.type,textureType:i$1.TextureType.packed},shaderSource:m$2,hasMain:!0})})(t$1,u$1,e$4,n$3,a$2,s$1)})}},3248:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.calculateIm2ColDims=e$3.createIm2ColProgramInfoLoader=void 0;let r$2=n$2(2039);e$3.createIm2ColProgramInfoLoader=(t$1,n$3,i$1,o$1,a$2)=>{let s$1=(u$1=a$2.cacheKey,{name:`Im2Col`,inputNames:[`X`],inputTypes:[r$2.TextureType.unpacked],cacheHint:u$1});var u$1;return Object.assign(Object.assign({},s$1),{get:()=>((t$2,n$4,i$2,o$2,a$3,s$2)=>{let u$2=i$2.dims,c$4=o$2.dims,l$1=a$3.length,p$5=(0,e$3.calculateIm2ColDims)(u$2,c$4,a$3,4),f$3=`\n const int XC = ${u$2[1]};\n const int XH = ${u$2[2]};\n const int XW = ${u$2[3]};\n const int KH = ${s$2.kernelShape[0]};\n const int KW = ${s$2.kernelShape[1]};\n const int dilationH = ${s$2.dilations[0]};\n const int dilationW = ${s$2.dilations[1]};\n const int strideH = ${s$2.strides[0]};\n const int strideW = ${s$2.strides[1]};\n const int padH = ${s$2.pads[0]};\n const int padW = ${s$2.pads[1]};\n const int KHKW = KH*KW;\n const int XCKHKW = XC * KHKW;\n const int outputChannels = 4;\n vec4 process(int indices[${l$1}]) {\n int b = indices[0]; // batch size\n int oh = indices[1] * strideH - padH; //output height\n int ow = indices[2] * strideW - padW; //output width\n int p = indices[3] * outputChannels; //patch\n vec4 value = vec4(0.0);\n for(int i=0; i < outputChannels; ++i) {\n if(p < XCKHKW) {\n int patchC = p / KHKW;\n int patchH = (p - patchC*KHKW) / KW;\n int patchW = (p - patchC*KHKW) - patchH * KW;\n int xh2 = oh + patchH * dilationH;\n int xw2 = ow + patchW * dilationW;\n int x[${u$2.length}];\n x[0] = b;\n x[1] = patchC;\n x[2] = xh2;\n x[3] = xw2;\n if(xh2 >= 0 &&\n xh2 < XH &&\n xw2 >= 0 &&\n xw2 < XW) {\n value[i] = _X(x);\n }\n }\n ++p;\n }\n return value;\n }\n `;return Object.assign(Object.assign({},n$4),{output:{dims:p$5,type:i$2.type,textureType:r$2.TextureType.packedLastDimension},shaderSource:f$3})})(0,s$1,n$3,i$1,o$1,a$2)})},e$3.calculateIm2ColDims=(t$1,e$4,n$3,r$3=4)=>[n$3[0],n$3[2],n$3[3],Math.ceil(t$1[1]*e$4[2]*e$4[3]/r$3)]},6572:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseImageScalerAttributes=e$3.imageScaler=void 0;let r$2=n$2(246),i$1=n$2(2039);e$3.imageScaler=(t$1,e$4,n$3)=>(u$1(e$4),[t$1.run(a$2(t$1,e$4,n$3),e$4)]),e$3.parseImageScalerAttributes=t$1=>{let e$4=t$1.attributes.getFloat(`scale`),n$3=t$1.attributes.getFloats(`bias`);return(0,r$2.createAttributeWithCacheKey)({scale:e$4,bias:n$3})};let o$1={name:`ImageScaler`,inputNames:[`X`],inputTypes:[i$1.TextureType.unpacked]},a$2=(t$1,e$4,n$3)=>{let r$3=Object.assign(Object.assign({},o$1),{cacheHint:n$3.cacheKey});return Object.assign(Object.assign({},r$3),{get:()=>((t$2,e$5,n$4,r$4)=>{let o$2=n$4[0].dims.slice(),a$3=o$2.length,u$2=`\n ${s$1(r$4.bias.length)}\n float process(int indices[${a$3}]) {\n return _X(indices) * scale + getBias(bias, indices[1]);\n }`;return Object.assign(Object.assign({},e$5),{output:{dims:o$2,type:n$4[0].type,textureType:i$1.TextureType.unpacked},variables:[{name:`bias`,type:`float`,arrayLength:r$4.bias.length,data:r$4.bias},{name:`scale`,type:`float`,data:r$4.scale}],shaderSource:u$2})})(0,r$3,e$4,n$3)})},s$1=t$1=>{let e$4=[`float getBias(float bias[${t$1}], int channel) {`];for(let n$3=0;n$3{if(!t$1||t$1.length!==1)throw Error(`ImageScaler requires 1 input.`);if(t$1[0].dims.length!==4)throw Error(`Invalid input shape.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`)throw Error(`Invalid input type.`)}},3346:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseInstanceNormalizationAttributes=e$3.instanceNormalization=void 0;let r$2=n$2(5060),i$1=n$2(2039);e$3.instanceNormalization=(t$1,e$4,n$3)=>{c$4(e$4);let r$3=t$1.run(a$2(e$4[0]),e$4);return[t$1.run(u$1(t$1,e$4[0],n$3,r$3.dims),[e$4[0],r$3,e$4[1],e$4[2]])]},e$3.parseInstanceNormalizationAttributes=t$1=>t$1.attributes.getFloat(`epsilon`,1e-5);let o$1={name:`InstanceNormalization_MeanAndVariance`,inputNames:[`X`],inputTypes:[i$1.TextureType.unpacked]},a$2=t$1=>Object.assign(Object.assign({},o$1),{get:()=>((t$2,e$4)=>{let n$3=e$4.dims.slice(),r$3=n$3[1],o$2=n$3[2]*n$3[3],a$3=[n$3[0],r$3],s$2=`\n vec4 process(int[2] indices) {\n vec4 v = vec4(0.0);\n int a[4];\n a[0] = indices[0];\n a[1] = indices[1];\n float temp = 0.0;\n for(int a2=0; a2<${n$3[2]}; a2++) {\n a[2] = a2;\n for(int a3=0; a3<${n$3[3]}; a3++) {\n a[3] = a3;\n float x = _X(a);\n temp += x;\n }\n }\n float mean = temp / float(${o$2});\n temp = 0.0;\n for(int a2=0; a2<${n$3[2]}; a2++) {\n a[2] = a2;\n for(int a3=0; a3<${n$3[3]}; a3++) {\n a[3] = a3;\n float x = _X(a);\n temp += (x - mean) * (x - mean);\n }\n }\n v.r = mean;\n v.g = temp / float(${o$2});\n\n return v;\n }`;return Object.assign(Object.assign({},t$2),{output:{dims:a$3,type:e$4.type,textureType:i$1.TextureType.packedLastDimension},shaderSource:s$2})})(o$1,t$1)}),s$1={name:`InstanceNormalization_ComputeOutput`,inputNames:[`X`,`MeanAndVariance`,`Scale`,`B`],inputTypes:[i$1.TextureType.unpacked,i$1.TextureType.packedLastDimension,i$1.TextureType.unpacked,i$1.TextureType.unpacked]},u$1=(t$1,e$4,n$3,o$2)=>{let a$3=Object.assign(Object.assign({},s$1),{cacheHint:`${n$3}`});return Object.assign(Object.assign({},a$3),{get:()=>((t$2,e$5,n$4,o$3,a$4)=>{let s$2=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),[u$2,c$5]=t$2.calculateTextureWidthAndHeight(a$4,i$1.TextureType.packedLastDimension),[l$1,p$5]=[u$2/4,c$5],f$3=`\n vec4 get_MeanAndVariance(int[2] mv) {\n int offset = indicesToOffset_MeanAndVariance(mv);\n vec2 coords = offsetToCoords(offset, ${l$1}, ${p$5});\n return ${s$2.texture2D}(MeanAndVariance, coords);\n }\n\n float process(int[4] indices) {\n int mv[2];\n mv[0] = indices[0];\n mv[1] = indices[1];\n vec4 mean_and_variance = get_MeanAndVariance(mv);\n float mean = mean_and_variance.r;\n float variance = mean_and_variance.g;\n\n int sb[1];\n sb[0] = indices[1];\n float scale = _Scale(sb);\n float b = _B(sb);\n\n return scale * (_X(indices) - mean) / sqrt(variance + epsilon) + b;\n }`;return Object.assign(Object.assign({},e$5),{output:{dims:n$4.dims,type:n$4.type,textureType:i$1.TextureType.unpacked},variables:[{name:`epsilon`,type:`float`,data:o$3}],shaderSource:f$3})})(t$1,a$3,e$4,n$3,o$2)})},c$4=t$1=>{if(!t$1||t$1.length!==3)throw Error(`InstanceNormalization requires 3 inputs.`);let e$4=t$1[0],n$3=t$1[1],r$3=t$1[2];if(e$4.dims.length<3||n$3.dims.length!==1||r$3.dims.length!==1)throw Error(`Invalid input shape.`);if(n$3.dims[0]!==e$4.dims[1]||r$3.dims[0]!==e$4.dims[1])throw Error(`Input shapes are mismatched.`);if(e$4.type!==`float32`&&e$4.type!==`float64`||n$3.type!==`float32`&&n$3.type!==`float64`||r$3.type!==`float32`&&r$3.type!==`float64`)throw Error(`Invalid input type.`);if(t$1[0].dims.length!==4)throw Error(`Only support 4-D input shape.`)}},708:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackedMatmulProgramInfoLoader=void 0;let r$2=n$2(2517),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(9390),s$1=n$2(2823),u$1=n$2(5623);e$3.createPackedMatmulProgramInfoLoader=(t$1,e$4,n$3)=>{let c$4=(l$1=e$4.length>2,p$5=n$3.activationCacheKey,{name:`MatMul (packed)`,inputNames:l$1?[`A`,`B`,`Bias`]:[`A`,`B`],inputTypes:l$1?[o$1.TextureType.packed,o$1.TextureType.packed,o$1.TextureType.packed]:[o$1.TextureType.packed,o$1.TextureType.packed],cacheHint:p$5});var l$1,p$5;return Object.assign(Object.assign({},c$4),{get:()=>((t$2,e$5,n$4,c$5)=>{let l$2=n$4.length>2,p$6=l$2?`value += getBiasForMatmul();`:``,f$3=n$4[0].dims,d$2=n$4[1].dims,h$3=r$2.BroadcastUtil.calcShape(f$3,d$2,!0),g$2=!r$2.ShapeUtil.areEqual(n$4[0].dims,n$4[1].dims);if(!h$3)throw Error(`Can't use matmul on the given tensors`);let b$3=f$3[f$3.length-1],m$2=Math.ceil(b$3/2),y$2=f$3.length,_$1=d$2.length,v$1=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),w$1=(0,a$2.getCoordsDataType)(h$3.length),x$3=h$3.length,T$1=(0,a$2.getGlChannels)(),{activationFunction:S$2,applyActivation:O$1}=(0,s$1.getActivationSnippet)(c$5),A$1=l$2?`${(0,u$1.getBiasForMatmul)(w$1,T$1,n$4[2].dims,h$3,!0)}`:``,E$2=g$2?`${function(t$3,e$6,n$5,i$2){let o$2=[],a$3=[],s$2=n$5[0].dims,u$2=n$5[1].dims,c$6=s$2.length,l$3=u$2.length,p$7=i$2.length,f$4=p$7-c$6,d$3=p$7-l$3;o$2=s$2.map((t$4,n$6)=>`coords.${e$6[n$6+f$4]}`),o$2[c$6-1]=`i*2`,o$2.join(`, `),a$3=u$2.map((t$4,n$6)=>`coords.${e$6[n$6+d$3]}`),a$3[l$3-2]=`i*2`,a$3.join(`, `);let h$4=r$2.BroadcastUtil.getBroadcastDims(s$2,i$2),g$3=r$2.BroadcastUtil.getBroadcastDims(u$2,i$2),b$4=h$4.map(t$4=>`coords.${e$6[t$4+f$4]} = 0;`).join(` +`)},u$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`ImageScaler requires 1 input.`);if(t$1[0].dims.length!==4)throw Error(`Invalid input shape.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`)throw Error(`Invalid input type.`)}},3346:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseInstanceNormalizationAttributes=e$3.instanceNormalization=void 0;let r$2=n$2(5060),i$1=n$2(2039);e$3.instanceNormalization=(t$1,e$4,n$3)=>{c$4(e$4);let r$3=t$1.run(a$2(e$4[0]),e$4);return[t$1.run(u$1(t$1,e$4[0],n$3,r$3.dims),[e$4[0],r$3,e$4[1],e$4[2]])]},e$3.parseInstanceNormalizationAttributes=t$1=>t$1.attributes.getFloat(`epsilon`,1e-5);let o$1={name:`InstanceNormalization_MeanAndVariance`,inputNames:[`X`],inputTypes:[i$1.TextureType.unpacked]},a$2=t$1=>Object.assign(Object.assign({},o$1),{get:()=>((t$2,e$4)=>{let n$3=e$4.dims.slice(),r$3=n$3[1],o$2=n$3[2]*n$3[3],a$3=[n$3[0],r$3],s$2=`\n vec4 process(int[2] indices) {\n vec4 v = vec4(0.0);\n int a[4];\n a[0] = indices[0];\n a[1] = indices[1];\n float temp = 0.0;\n for(int a2=0; a2<${n$3[2]}; a2++) {\n a[2] = a2;\n for(int a3=0; a3<${n$3[3]}; a3++) {\n a[3] = a3;\n float x = _X(a);\n temp += x;\n }\n }\n float mean = temp / float(${o$2});\n temp = 0.0;\n for(int a2=0; a2<${n$3[2]}; a2++) {\n a[2] = a2;\n for(int a3=0; a3<${n$3[3]}; a3++) {\n a[3] = a3;\n float x = _X(a);\n temp += (x - mean) * (x - mean);\n }\n }\n v.r = mean;\n v.g = temp / float(${o$2});\n\n return v;\n }`;return Object.assign(Object.assign({},t$2),{output:{dims:a$3,type:e$4.type,textureType:i$1.TextureType.packedLastDimension},shaderSource:s$2})})(o$1,t$1)}),s$1={name:`InstanceNormalization_ComputeOutput`,inputNames:[`X`,`MeanAndVariance`,`Scale`,`B`],inputTypes:[i$1.TextureType.unpacked,i$1.TextureType.packedLastDimension,i$1.TextureType.unpacked,i$1.TextureType.unpacked]},u$1=(t$1,e$4,n$3,o$2)=>{let a$3=Object.assign(Object.assign({},s$1),{cacheHint:`${n$3}`});return Object.assign(Object.assign({},a$3),{get:()=>((t$2,e$5,n$4,o$3,a$4)=>{let s$2=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),[u$2,c$5]=t$2.calculateTextureWidthAndHeight(a$4,i$1.TextureType.packedLastDimension),[l$1,p$5]=[u$2/4,c$5],f$3=`\n vec4 get_MeanAndVariance(int[2] mv) {\n int offset = indicesToOffset_MeanAndVariance(mv);\n vec2 coords = offsetToCoords(offset, ${l$1}, ${p$5});\n return ${s$2.texture2D}(MeanAndVariance, coords);\n }\n\n float process(int[4] indices) {\n int mv[2];\n mv[0] = indices[0];\n mv[1] = indices[1];\n vec4 mean_and_variance = get_MeanAndVariance(mv);\n float mean = mean_and_variance.r;\n float variance = mean_and_variance.g;\n\n int sb[1];\n sb[0] = indices[1];\n float scale = _Scale(sb);\n float b = _B(sb);\n\n return scale * (_X(indices) - mean) / sqrt(variance + epsilon) + b;\n }`;return Object.assign(Object.assign({},e$5),{output:{dims:n$4.dims,type:n$4.type,textureType:i$1.TextureType.unpacked},variables:[{name:`epsilon`,type:`float`,data:o$3}],shaderSource:f$3})})(t$1,a$3,e$4,n$3,o$2)})},c$4=t$1=>{if(!t$1||t$1.length!==3)throw Error(`InstanceNormalization requires 3 inputs.`);let e$4=t$1[0],n$3=t$1[1],r$3=t$1[2];if(e$4.dims.length<3||n$3.dims.length!==1||r$3.dims.length!==1)throw Error(`Invalid input shape.`);if(n$3.dims[0]!==e$4.dims[1]||r$3.dims[0]!==e$4.dims[1])throw Error(`Input shapes are mismatched.`);if(e$4.type!==`float32`&&e$4.type!==`float64`||n$3.type!==`float32`&&n$3.type!==`float64`||r$3.type!==`float32`&&r$3.type!==`float64`)throw Error(`Invalid input type.`);if(t$1[0].dims.length!==4)throw Error(`Only support 4-D input shape.`)}},708:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackedMatmulProgramInfoLoader=void 0;let r$2=n$2(2517),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(9390),s$1=n$2(2823),u$1=n$2(5623);e$3.createPackedMatmulProgramInfoLoader=(t$1,e$4,n$3)=>{let c$4=(l$1=e$4.length>2,p$5=n$3.activationCacheKey,{name:`MatMul (packed)`,inputNames:l$1?[`A`,`B`,`Bias`]:[`A`,`B`],inputTypes:l$1?[o$1.TextureType.packed,o$1.TextureType.packed,o$1.TextureType.packed]:[o$1.TextureType.packed,o$1.TextureType.packed],cacheHint:p$5});var l$1,p$5;return Object.assign(Object.assign({},c$4),{get:()=>((t$2,e$5,n$4,c$5)=>{let l$2=n$4.length>2,p$6=l$2?`value += getBiasForMatmul();`:``,f$3=n$4[0].dims,d$2=n$4[1].dims,h$3=r$2.BroadcastUtil.calcShape(f$3,d$2,!0),g$2=!r$2.ShapeUtil.areEqual(n$4[0].dims,n$4[1].dims);if(!h$3)throw Error(`Can't use matmul on the given tensors`);let b$3=f$3[f$3.length-1],m$2=Math.ceil(b$3/2),y$2=f$3.length,_$2=d$2.length,v$1=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),w$1=(0,a$2.getCoordsDataType)(h$3.length),x$3=h$3.length,T$1=(0,a$2.getGlChannels)(),{activationFunction:S$2,applyActivation:O$2}=(0,s$1.getActivationSnippet)(c$5),A$1=l$2?`${(0,u$1.getBiasForMatmul)(w$1,T$1,n$4[2].dims,h$3,!0)}`:``,E$2=g$2?`${function(t$3,e$6,n$5,i$2){let o$2=[],a$3=[],s$2=n$5[0].dims,u$2=n$5[1].dims,c$6=s$2.length,l$3=u$2.length,p$7=i$2.length,f$4=p$7-c$6,d$3=p$7-l$3;o$2=s$2.map((t$4,n$6)=>`coords.${e$6[n$6+f$4]}`),o$2[c$6-1]=`i*2`,o$2.join(`, `),a$3=u$2.map((t$4,n$6)=>`coords.${e$6[n$6+d$3]}`),a$3[l$3-2]=`i*2`,a$3.join(`, `);let h$4=r$2.BroadcastUtil.getBroadcastDims(s$2,i$2),g$3=r$2.BroadcastUtil.getBroadcastDims(u$2,i$2),b$4=h$4.map(t$4=>`coords.${e$6[t$4+f$4]} = 0;`).join(` `),m$3=g$3.map(t$4=>`coords.${e$6[t$4+d$3]} = 0;`).join(` -`),y$3=`int lastDim = coords.${e$6[p$7-1]};\n coords.${e$6[p$7-1]} = coords.${e$6[p$7-2]};\n coords.${e$6[p$7-2]} = lastDim;`;return`\nvec4 getAAtOutCoordsMatmul(int i) {\n ${t$3} coords = getOutputCoords();\n ${y$3}\n ${b$4}\n vec4 outputValue = getA(${o$2});\n return outputValue;\n}\n\nvec4 getBAtOutCoordsMatmul(int i) {\n ${t$3} coords = getOutputCoords();\n ${y$3}\n ${m$3}\n vec4 outputValue = getB(${a$3});\n return outputValue;\n}`}(w$1,T$1,n$4,h$3)}`:``,I=g$2?`getAAtOutCoordsMatmul(i)`:`getA(${function(t$3,e$6){let n$5=``;for(let r$3=0;r$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getBiasForMatmul=e$3.createMatmulProgramInfoLoader=e$3.parseMatMulAttributes=e$3.matMul=void 0;let r$2=n$2(2517),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2823),s$1=n$2(708);function u$1(t$1,e$4){let n$3=(s$2=t$1.length>2,u$2=e$4.activationCacheKey,{name:`MatMul`,inputNames:s$2?[`A`,`B`,`Bias`]:[`A`,`B`],inputTypes:s$2?[i$1.TextureType.unpacked,i$1.TextureType.unpacked,i$1.TextureType.unpacked]:[i$1.TextureType.unpacked,i$1.TextureType.unpacked],cacheHint:u$2});var s$2,u$2;return Object.assign(Object.assign({},n$3),{get:()=>function(t$2,e$5,n$4){let s$3=e$5[0].dims,u$3=e$5[1].dims,c$5=r$2.BroadcastUtil.calcShape(s$3,u$3,!0);if(!c$5)throw Error(`Can't use matmul on the given tensors`);let p$5=(0,o$1.getCoordsDataType)(c$5.length),f$3=(0,o$1.getGlChannels)(),{activationFunction:d$2,applyActivation:h$3}=(0,a$2.getActivationSnippet)(n$4),g$2=e$5.length>2,b$3=g$2?`value += getBiasForMatmul();`:``,m$2=g$2?`${l$1(p$5,f$3,e$5[2].dims,c$5,!1)}`:``,y$2=c$5.length,_$1=s$3.length,v$1=u$3.length,w$1=`\n ${d$2}\n ${m$2}\n float process(int indices[${y$2}]) {\n int a[${_$1}];\n int b[${v$1}];\n bcastMatmulIndices_A(indices, a);\n bcastMatmulIndices_B(indices, b);\n\n float value;\n for (int k=0; k<${s$3[s$3.length-1]}; ++k) {\n a[${_$1-1}] = k;\n b[${v$1-2}] = k;\n value += _A(a) * _B(b);\n }\n ${b$3}\n ${h$3}\n return value;\n }`;return Object.assign(Object.assign({},t$2),{output:{dims:c$5,type:e$5[0].type,textureType:i$1.TextureType.unpacked},shaderSource:w$1})}(n$3,t$1,e$4)})}e$3.matMul=(t$1,e$4,n$3)=>(c$4(e$4),t$1.session.pack?[t$1.run((0,s$1.createPackedMatmulProgramInfoLoader)(t$1,e$4,n$3),e$4)]:[t$1.run(u$1(e$4,n$3),e$4)]),e$3.parseMatMulAttributes=t$1=>(0,a$2.parseInternalActivationAttributes)(t$1.attributes),e$3.createMatmulProgramInfoLoader=u$1;let c$4=t$1=>{if(!t$1||t$1.length!==2)throw Error(`MatMul requires 2 inputs.`);if(t$1[0].dims[t$1[0].dims.length-1]!==t$1[1].dims[t$1[1].dims.length-2])throw Error(`shared dimension does not match.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`||t$1[1].type!==`float32`&&t$1[1].type!==`float64`)throw Error(`inputs should be float type`);if(t$1[0].type!==t$1[1].type)throw Error(`inputs types should match`)};function l$1(t$1,e$4,n$3,i$2,o$2){let a$3=``,s$2=n$3.length,u$2=i$2.length,c$5=u$2-s$2;a$3=u$2<2&&s$2>0?`coords`:n$3.map((t$2,n$4)=>`coords.${e$4[n$4+c$5]}`).join(`, `);let l$2=r$2.BroadcastUtil.getBroadcastDims(n$3,i$2).map(t$2=>`coords.${e$4[t$2+c$5]} = 0;`).join(` -`),p$5=`vec4(outputValue.xx, outputValue.yy)`;return r$2.ShapeUtil.size(n$3)===1&&(p$5=`vec4(outputValue.x)`),o$2?`\nvec4 getBiasForMatmul() {\n ${t$1} coords = getOutputCoords();\n ${l$2}\n vec4 outputValue = getBias(${a$3});\n return ${p$5};\n}`:`\nfloat getBiasForMatmul() {\n ${t$1} coords = getOutputCoords();\n ${l$2}\n return getBias(coords.x);\n}`}e$3.getBiasForMatmul=l$1},2403:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackProgramInfoLoader=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827),s$1={name:`pack`,inputNames:[`A`],inputTypes:[i$1.TextureType.unpackedReversed]};e$3.createPackProgramInfoLoader=(t$1,e$4)=>Object.assign(Object.assign({},s$1),{get:()=>((t$2,e$5)=>{let n$3=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),u$1=e$5.dims,c$4=u$1.length,l$1=e$5.dims.length,p$5=(0,o$1.getCoordsDataType)(l$1),f$3=(0,a$2.getChannels)(`rc`,l$1),d$2=(h$3=l$1,g$2=f$3,b$3=u$1[u$1.length-2],m$2=u$1[u$1.length-1],h$3===0||h$3===1?``:`\n int r = ${g$2[h$3-2]};\n int c = ${g$2[h$3-1]};\n int rp1 = ${g$2[h$3-2]} + 1;\n int cp1 = ${g$2[h$3-1]} + 1;\n bool rEdge = rp1 >= ${m$2};\n bool cEdge = cp1 >= ${b$3};\n `);var h$3,g$2,b$3,m$2;let y$2;y$2=c$4===0?[1,1]:c$4===1?[u$1[0],1]:[u$1[l$1-1],u$1[l$1-2]];let _$1=function(t$3,e$6,n$4){if(t$3===0)return`false`;if(t$3===1)return`rc > ${e$6[0]}`;let r$3=``;for(let i$2=t$3-2;i$2= ${e$6[i$2-t$3+2]}`,i$2= ${t$3[0]} ? 0. : getA(rc + 1),\n 0, 0`;let r$3=``;if(n$4>2)for(let t$4=0;t$4{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.unpackFromChannel=e$3.getChannels=e$3.getVecChannels=void 0;let r$2=n$2(9390);function i$1(t$1,e$4){return(0,r$2.getGlChannels)(e$4).map(e$5=>`${t$1}.${e$5}`)}e$3.getVecChannels=i$1,e$3.getChannels=function(t$1,e$4){return e$4===1?[t$1]:i$1(t$1,e$4)},e$3.unpackFromChannel=function(){return` +`),y$3=`int lastDim = coords.${e$6[p$7-1]};\n coords.${e$6[p$7-1]} = coords.${e$6[p$7-2]};\n coords.${e$6[p$7-2]} = lastDim;`;return`\nvec4 getAAtOutCoordsMatmul(int i) {\n ${t$3} coords = getOutputCoords();\n ${y$3}\n ${b$4}\n vec4 outputValue = getA(${o$2});\n return outputValue;\n}\n\nvec4 getBAtOutCoordsMatmul(int i) {\n ${t$3} coords = getOutputCoords();\n ${y$3}\n ${m$3}\n vec4 outputValue = getB(${a$3});\n return outputValue;\n}`}(w$1,T$1,n$4,h$3)}`:``,I=g$2?`getAAtOutCoordsMatmul(i)`:`getA(${function(t$3,e$6){let n$5=``;for(let r$3=0;r$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getBiasForMatmul=e$3.createMatmulProgramInfoLoader=e$3.parseMatMulAttributes=e$3.matMul=void 0;let r$2=n$2(2517),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2823),s$1=n$2(708);function u$1(t$1,e$4){let n$3=(s$2=t$1.length>2,u$2=e$4.activationCacheKey,{name:`MatMul`,inputNames:s$2?[`A`,`B`,`Bias`]:[`A`,`B`],inputTypes:s$2?[i$1.TextureType.unpacked,i$1.TextureType.unpacked,i$1.TextureType.unpacked]:[i$1.TextureType.unpacked,i$1.TextureType.unpacked],cacheHint:u$2});var s$2,u$2;return Object.assign(Object.assign({},n$3),{get:()=>function(t$2,e$5,n$4){let s$3=e$5[0].dims,u$3=e$5[1].dims,c$5=r$2.BroadcastUtil.calcShape(s$3,u$3,!0);if(!c$5)throw Error(`Can't use matmul on the given tensors`);let p$5=(0,o$1.getCoordsDataType)(c$5.length),f$3=(0,o$1.getGlChannels)(),{activationFunction:d$2,applyActivation:h$3}=(0,a$2.getActivationSnippet)(n$4),g$2=e$5.length>2,b$3=g$2?`value += getBiasForMatmul();`:``,m$2=g$2?`${l$1(p$5,f$3,e$5[2].dims,c$5,!1)}`:``,y$2=c$5.length,_$2=s$3.length,v$1=u$3.length,w$1=`\n ${d$2}\n ${m$2}\n float process(int indices[${y$2}]) {\n int a[${_$2}];\n int b[${v$1}];\n bcastMatmulIndices_A(indices, a);\n bcastMatmulIndices_B(indices, b);\n\n float value;\n for (int k=0; k<${s$3[s$3.length-1]}; ++k) {\n a[${_$2-1}] = k;\n b[${v$1-2}] = k;\n value += _A(a) * _B(b);\n }\n ${b$3}\n ${h$3}\n return value;\n }`;return Object.assign(Object.assign({},t$2),{output:{dims:c$5,type:e$5[0].type,textureType:i$1.TextureType.unpacked},shaderSource:w$1})}(n$3,t$1,e$4)})}e$3.matMul=(t$1,e$4,n$3)=>(c$4(e$4),t$1.session.pack?[t$1.run((0,s$1.createPackedMatmulProgramInfoLoader)(t$1,e$4,n$3),e$4)]:[t$1.run(u$1(e$4,n$3),e$4)]),e$3.parseMatMulAttributes=t$1=>(0,a$2.parseInternalActivationAttributes)(t$1.attributes),e$3.createMatmulProgramInfoLoader=u$1;let c$4=t$1=>{if(!t$1||t$1.length!==2)throw Error(`MatMul requires 2 inputs.`);if(t$1[0].dims[t$1[0].dims.length-1]!==t$1[1].dims[t$1[1].dims.length-2])throw Error(`shared dimension does not match.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`||t$1[1].type!==`float32`&&t$1[1].type!==`float64`)throw Error(`inputs should be float type`);if(t$1[0].type!==t$1[1].type)throw Error(`inputs types should match`)};function l$1(t$1,e$4,n$3,i$2,o$2){let a$3=``,s$2=n$3.length,u$2=i$2.length,c$5=u$2-s$2;a$3=u$2<2&&s$2>0?`coords`:n$3.map((t$2,n$4)=>`coords.${e$4[n$4+c$5]}`).join(`, `);let l$2=r$2.BroadcastUtil.getBroadcastDims(n$3,i$2).map(t$2=>`coords.${e$4[t$2+c$5]} = 0;`).join(` +`),p$5=`vec4(outputValue.xx, outputValue.yy)`;return r$2.ShapeUtil.size(n$3)===1&&(p$5=`vec4(outputValue.x)`),o$2?`\nvec4 getBiasForMatmul() {\n ${t$1} coords = getOutputCoords();\n ${l$2}\n vec4 outputValue = getBias(${a$3});\n return ${p$5};\n}`:`\nfloat getBiasForMatmul() {\n ${t$1} coords = getOutputCoords();\n ${l$2}\n return getBias(coords.x);\n}`}e$3.getBiasForMatmul=l$1},2403:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createPackProgramInfoLoader=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827),s$1={name:`pack`,inputNames:[`A`],inputTypes:[i$1.TextureType.unpackedReversed]};e$3.createPackProgramInfoLoader=(t$1,e$4)=>Object.assign(Object.assign({},s$1),{get:()=>((t$2,e$5)=>{let n$3=(0,r$2.getGlsl)(t$2.session.backend.glContext.version),u$1=e$5.dims,c$4=u$1.length,l$1=e$5.dims.length,p$5=(0,o$1.getCoordsDataType)(l$1),f$3=(0,a$2.getChannels)(`rc`,l$1),d$2=(h$3=l$1,g$2=f$3,b$3=u$1[u$1.length-2],m$2=u$1[u$1.length-1],h$3===0||h$3===1?``:`\n int r = ${g$2[h$3-2]};\n int c = ${g$2[h$3-1]};\n int rp1 = ${g$2[h$3-2]} + 1;\n int cp1 = ${g$2[h$3-1]} + 1;\n bool rEdge = rp1 >= ${m$2};\n bool cEdge = cp1 >= ${b$3};\n `);var h$3,g$2,b$3,m$2;let y$2;y$2=c$4===0?[1,1]:c$4===1?[u$1[0],1]:[u$1[l$1-1],u$1[l$1-2]];let _$2=function(t$3,e$6,n$4){if(t$3===0)return`false`;if(t$3===1)return`rc > ${e$6[0]}`;let r$3=``;for(let i$2=t$3-2;i$2= ${e$6[i$2-t$3+2]}`,i$2= ${t$3[0]} ? 0. : getA(rc + 1),\n 0, 0`;let r$3=``;if(n$4>2)for(let t$4=0;t$4{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.unpackFromChannel=e$3.getChannels=e$3.getVecChannels=void 0;let r$2=n$2(9390);function i$1(t$1,e$4){return(0,r$2.getGlChannels)(e$4).map(e$5=>`${t$1}.${e$5}`)}e$3.getVecChannels=i$1,e$3.getChannels=function(t$1,e$4){return e$4===1?[t$1]:i$1(t$1,e$4)},e$3.unpackFromChannel=function(){return` float getChannel(vec4 frag, int dim) { int modCoord = imod(dim, 2); return modCoord == 0 ? frag.r : frag.g; @@ -3962,7 +3962,7 @@ function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof se `}return`\n float process(int indices[${a$3}]) {\n int x[${a$3}];\n copyVec(indices, x);\n\n float value = ${o$2};\n int pad = 0;\n ${f$4}\n ${p$6}\n ${d$3}\n ${r$3}\n return value;\n }\n `}{let s$2=i$1.ShapeUtil.size(e$4.kernelShape),u$2=i$1.ShapeUtil.computeStrides(e$4.kernelShape),c$5=u$2.length,l$2=e$4.pads.length,p$6=h$3(c$5),f$4=d$2(t$1,`inputDims`),g$2=d$2(e$4.pads,`pads`),b$3=d$2(u$2,`kernelStrides`),m$2=d$2(e$4.strides,`strides`),y$2=``;return y$2=e$4.pads.reduce((t$2,e$5)=>t$2+e$5)?`\n if (x[j] >= inputDims[j] || x[j] < 0) {\n pad++;\n isPad = true;\n break;\n }\n }\n if (!isPad) {\n ${n$3}\n }`:`\n }\n ${n$3}\n `,`\n ${p$6}\n float process(int indices[${a$3}]) {\n int x[${a$3}];\n copyVec(indices, x);\n int offset[${c$5}];\n int pads[${l$2}];\n int inputDims[${a$3}];\n int kernelStrides[${c$5}];\n int strides[${c$5}];\n ${g$2}\n ${f$4}\n ${m$2}\n ${b$3}\n\n float value = ${o$2};\n int pad = 0;\n bool isPad = false;\n for (int i = 0; i < ${s$2}; i++) {\n offsetToIndices(i, kernelStrides, offset);\n isPad = false;\n for (int j = ${a$3} - ${c$5}; j < ${a$3}; j++) {\n x[j] = indices[j] * strides[j - ${a$3} + ${c$5}]\n + offset[j - ${a$3} + ${c$5}] - pads[j - 2];\n ${y$2}\n }\n ${r$3}\n\n return value;\n }\n `}},d$2=(t$1,e$4)=>{let n$3=``;for(let r$3=0;r$3`\n void offsetToIndices(int offset, int[${t$1}] strides, out int[${t$1}] indices) {\n if (${t$1} == 0) {\n return;\n }\n for (int i = 0; i < ${t$1} - 1; ++i) {\n indices[i] = offset / strides[i];\n offset -= indices[i] * strides[i];\n }\n indices[${t$1} - 1] = offset;\n }`},4939:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.reduceLogSumSquare=e$3.reduceLogSum=e$3.reduceProd=e$3.reduceMin=e$3.reduceMax=e$3.reduceMean=e$3.reduceSum=e$3.parseReduceAttributes=void 0;let r$2=n$2(246),i$1=n$2(782),o$1=n$2(2517),a$2=n$2(2039),s$1=(t$1,e$4,n$3,r$3,i$2)=>{c$4(e$4);let o$2={name:r$3,inputNames:[`A`],inputTypes:[a$2.TextureType.unpacked]};return[t$1.run(Object.assign(Object.assign({},o$2),{cacheHint:n$3.cacheKey,get:()=>u$1(t$1,e$4,n$3,r$3,i$2,o$2)}),e$4)]};e$3.parseReduceAttributes=t$1=>{let e$4=t$1.attributes.getInts(`axes`,[]),n$3=t$1.attributes.getInt(`keepdims`,1)===1;return(0,r$2.createAttributeWithCacheKey)({axes:e$4,keepDims:n$3})};let u$1=(t$1,e$4,n$3,r$3,i$2,s$2)=>{let u$2=[],c$5=e$4[0].dims.length||1,l$1=[],p$5=o$1.ShapeUtil.normalizeAxes(n$3.axes,e$4[0].dims.length),f$3=i$2(e$4,p$5),d$2=f$3[1];for(let t$2=0;t$2=0||p$5.length===0?(n$3.keepDims&&u$2.push(1),d$2=`\n for(int j${t$2} = 0; j${t$2} < ${e$4[0].dims[t$2]}; j${t$2}++) {\n inputIdx[${t$2}] = j${t$2};\n ${d$2}\n }`):(l$1.push(`inputIdx[${t$2}] = outputIdx[${u$2.length}];`),u$2.push(e$4[0].dims[t$2]));let h$3=`\n float process(int outputIdx[${u$2.length||1}]) {\n float value; // final result\n int inputIdx[${c$5}]; // addressing input data\n ${l$1.join(` `)}\n ${f$3[0]} // init ops for reduce max/min\n ${d$2}\n ${f$3[2]} // final computation for reduce mean\n return value;\n }`;return Object.assign(Object.assign({},s$2),{output:{dims:u$2,type:e$4[0].type,textureType:a$2.TextureType.unpacked},shaderSource:h$3})},c$4=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Reduce op requires 1 input.`);if(i$1.NUMBER_TYPES.indexOf(t$1[0].type)===-1)throw Error(`Invalid input type.`)};e$3.reduceSum=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceSum`,()=>[`value = 0.0;`,`value += _A(inputIdx);`,``]),e$3.reduceMean=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceMean`,(t$2,e$5)=>{let n$4=1;for(let r$3=0;r$3=0||e$5.length===0)&&(n$4*=t$2[0].dims[r$3]);return[`value = 0.0;`,`value += _A(inputIdx);`,`value /= ${n$4}.;`]}),e$3.reduceMax=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceMax`,(t$2,e$5)=>{let n$4=[];for(let r$3=0;r$3=0||e$5.length===0)&&n$4.push(`inputIdx[${r$3}] = 0;`);return[`${n$4.join(` `)}\nvalue = _A(inputIdx);`,`value = max(value, _A(inputIdx));`,``]}),e$3.reduceMin=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceMin`,(t$2,e$5)=>{let n$4=[];for(let r$3=0;r$3=0||e$5.length===0)&&n$4.push(`inputIdx[${r$3}] = 0;`);return[`${n$4.join(` -`)}\nvalue = _A(inputIdx);`,`value = min(value, _A(inputIdx));`,``]}),e$3.reduceProd=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceProd`,()=>[`value = 1.0;`,`value *= _A(inputIdx);`,``]),e$3.reduceLogSum=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceLogSum`,()=>[`value = 0.0;`,`value += _A(inputIdx);`,`value = log(value);`]),e$3.reduceLogSumSquare=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceLogSumSquare`,()=>[`float t; value = 0.0;`,`t = _A(inputIdx); value += t * t;`,``])},7019:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.isReshapeCheap=e$3.processDims3D=e$3.createPackedReshape3DProgramInfoLoader=void 0;let r$2=n$2(2517),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(2827);e$3.createPackedReshape3DProgramInfoLoader=(t$1,e$4,n$3)=>{let s$1=(t$2=>({name:`Reshape (packed)`,inputTypes:[o$1.TextureType.packed],inputNames:[`A`],cacheHint:`${t$2}`}))(n$3);return Object.assign(Object.assign({},s$1),{get:()=>((t$2,e$5,n$4,s$2)=>{let u$1=e$5.dims,c$4=s$2,l$1=``;for(let t$3=0;t$3<4;t$3++){let e$6=``;switch(t$3){case 0:e$6=`outputCoords = rc;`;break;case 1:e$6=`outputCoords = ivec3(rc.x, rc.y+1, rc.z);`;break;case 2:e$6=`outputCoords = ivec3(rc.x, rc.y, rc.z+1);`;break;case 3:e$6=`outputCoords = ivec3(rc.x, rc.y+1, rc.z+1);`;break;default:throw Error()}l$1+=`\n ${e$6}\n ${t$3>0?`if(outputCoords.y < rows && outputCoords.z < cols){`:``}\n int flattenedIndex = getFlattenedIndex(outputCoords);\n\n ivec3 inputRC = inputCoordsFromReshapedOutCoords(flattenedIndex);\n vec2 innerDims = vec2(float(inputRC.y),float(inputRC.z));\n\n result[${t$3}] = getChannel(getA(inputRC.x, inputRC.y, inputRC.z), innerDims);\n\n ${t$3>0?`}`:``}\n `}let p$5=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),f$3=`\n ${function(t$3){let e$6=r$2.ShapeUtil.computeStrides(t$3),n$5=[`b`,`r`,`c`],i$2=`index`;return`\n ivec3 inputCoordsFromReshapedOutCoords(int index) {\n ${e$6.map((t$4,r$3)=>`int ${n$5[r$3]} = ${i$2} / ${t$4}; ${r$3===e$6.length-1?`int ${n$5[r$3+1]} = ${i$2} - ${n$5[r$3]} * ${t$4}`:`index -= ${n$5[r$3]} * ${t$4}`};`).join(``)}\n return ivec3(b, r, c);\n }\n `}(u$1)}\n ${function(t$3){let e$6=r$2.ShapeUtil.computeStrides(t$3);return`\n int getFlattenedIndex(ivec3 coords) {\n // reverse y, z order\n return coords.x * ${e$6[0]} + coords.z * ${e$6[1]} + coords.y;\n }\n`}(c$4)}\n ${(0,a$2.unpackFromChannel)()}\n\n void main() {\n ivec3 rc = getOutputCoords();\n\n vec4 result = vec4(0.0);\n\n ivec3 outputCoords;\n int rows = ${c$4[2]};\n int cols = ${c$4[1]};\n\n ${l$1}\n ${p$5.output} = result;\n }\n `;return Object.assign(Object.assign({},n$4),{output:{dims:c$4,type:e$5.type,textureType:o$1.TextureType.packed},shaderSource:f$3,hasMain:!0})})(t$1,e$4,s$1,n$3)})},e$3.processDims3D=function(t$1){if(t$1.length===0)return[1,1,1];let e$4=1;for(let n$3=0;n$31?t$1[t$1.length-2]:1,t$1[t$1.length-1]]},e$3.isReshapeCheap=function(t$1,e$4){let n$3=!1;return n$3=t$1.length===0||e$4.length===0||(t$1.length<2||e$4.length<2?t$1[t$1.length-1]===e$4[e$4.length-1]:t$1[t$1.length-1]===e$4[e$4.length-1]&&t$1[t$1.length-2]===e$4[e$4.length-2]),n$3}},718:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.reshape=void 0;let r$2=n$2(2517);e$3.reshape=(t$1,e$4)=>{let n$3=r$2.ShapeUtil.calculateReshapedDims(e$4[0].dims,e$4[1].integerData);return t$1.session.pack?[t$1.reshapePacked(e$4[0],n$3)]:[t$1.reshapeUnpacked(e$4[0],n$3)]}},2268:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseResizeAttributesV11=e$3.parseResizeAttributesV10=e$3.resize=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827),s$1=n$2(9793),u$1={name:`Resize`,inputNames:[`A`],inputTypes:[i$1.TextureType.packed]};e$3.resize=(t$1,e$4,n$3)=>((0,s$1.validateInputs)(e$4,n$3),[t$1.run(Object.assign(Object.assign({},u$1),{cacheHint:n$3.cacheKey,get:()=>c$4(t$1,e$4,n$3)}),e$4)]),e$3.parseResizeAttributesV10=t$1=>(0,s$1.parseUpsampleAttributes)(t$1,10),e$3.parseResizeAttributesV11=t$1=>(0,s$1.parseUpsampleAttributes)(t$1,11);let c$4=(t$1,e$4,n$3)=>{let s$2=(0,r$2.getGlsl)(t$1.session.backend.glContext.version),[c$5,p$6]=l$1(e$4,n$3);if(c$5.every(t$2=>t$2===1)&&n$3.coordinateTransformMode!==`tf_crop_and_resize`)return Object.assign(Object.assign({},u$1),{output:{dims:p$6,type:e$4[0].type,textureType:i$1.TextureType.packed},hasMain:!0,shaderSource:`void main() {\n vec4 v = ${s$2.texture2D}(X, TexCoords);\n ${s$2.output} = v;\n }`});let f$4=p$6.length;if(f$4<2)throw Error(`output dimension should be at least 2, but got ${f$4}`);let d$2=p$6[f$4-2],h$3=p$6[f$4-1],g$2=e$4[0].dims;if(f$4!==g$2.length)throw Error(`output dimension should match input ${g$2.length}, but got ${f$4}`);let b$3=g$2[f$4-2],m$2=g$2[f$4-1],y$2=c$5[f$4-2],_$1=c$5[f$4-1],v$1=``;if(n$3.mode!==`linear`)throw Error(`resize (packed) does not support mode: '${n$3.mode}'`);switch(n$3.coordinateTransformMode){case`asymmetric`:v$1=` +`)}\nvalue = _A(inputIdx);`,`value = min(value, _A(inputIdx));`,``]}),e$3.reduceProd=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceProd`,()=>[`value = 1.0;`,`value *= _A(inputIdx);`,``]),e$3.reduceLogSum=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceLogSum`,()=>[`value = 0.0;`,`value += _A(inputIdx);`,`value = log(value);`]),e$3.reduceLogSumSquare=(t$1,e$4,n$3)=>s$1(t$1,e$4,n$3,`ReduceLogSumSquare`,()=>[`float t; value = 0.0;`,`t = _A(inputIdx); value += t * t;`,``])},7019:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.isReshapeCheap=e$3.processDims3D=e$3.createPackedReshape3DProgramInfoLoader=void 0;let r$2=n$2(2517),i$1=n$2(5060),o$1=n$2(2039),a$2=n$2(2827);e$3.createPackedReshape3DProgramInfoLoader=(t$1,e$4,n$3)=>{let s$1=(t$2=>({name:`Reshape (packed)`,inputTypes:[o$1.TextureType.packed],inputNames:[`A`],cacheHint:`${t$2}`}))(n$3);return Object.assign(Object.assign({},s$1),{get:()=>((t$2,e$5,n$4,s$2)=>{let u$1=e$5.dims,c$4=s$2,l$1=``;for(let t$3=0;t$3<4;t$3++){let e$6=``;switch(t$3){case 0:e$6=`outputCoords = rc;`;break;case 1:e$6=`outputCoords = ivec3(rc.x, rc.y+1, rc.z);`;break;case 2:e$6=`outputCoords = ivec3(rc.x, rc.y, rc.z+1);`;break;case 3:e$6=`outputCoords = ivec3(rc.x, rc.y+1, rc.z+1);`;break;default:throw Error()}l$1+=`\n ${e$6}\n ${t$3>0?`if(outputCoords.y < rows && outputCoords.z < cols){`:``}\n int flattenedIndex = getFlattenedIndex(outputCoords);\n\n ivec3 inputRC = inputCoordsFromReshapedOutCoords(flattenedIndex);\n vec2 innerDims = vec2(float(inputRC.y),float(inputRC.z));\n\n result[${t$3}] = getChannel(getA(inputRC.x, inputRC.y, inputRC.z), innerDims);\n\n ${t$3>0?`}`:``}\n `}let p$5=(0,i$1.getGlsl)(t$2.session.backend.glContext.version),f$3=`\n ${function(t$3){let e$6=r$2.ShapeUtil.computeStrides(t$3),n$5=[`b`,`r`,`c`],i$2=`index`;return`\n ivec3 inputCoordsFromReshapedOutCoords(int index) {\n ${e$6.map((t$4,r$3)=>`int ${n$5[r$3]} = ${i$2} / ${t$4}; ${r$3===e$6.length-1?`int ${n$5[r$3+1]} = ${i$2} - ${n$5[r$3]} * ${t$4}`:`index -= ${n$5[r$3]} * ${t$4}`};`).join(``)}\n return ivec3(b, r, c);\n }\n `}(u$1)}\n ${function(t$3){let e$6=r$2.ShapeUtil.computeStrides(t$3);return`\n int getFlattenedIndex(ivec3 coords) {\n // reverse y, z order\n return coords.x * ${e$6[0]} + coords.z * ${e$6[1]} + coords.y;\n }\n`}(c$4)}\n ${(0,a$2.unpackFromChannel)()}\n\n void main() {\n ivec3 rc = getOutputCoords();\n\n vec4 result = vec4(0.0);\n\n ivec3 outputCoords;\n int rows = ${c$4[2]};\n int cols = ${c$4[1]};\n\n ${l$1}\n ${p$5.output} = result;\n }\n `;return Object.assign(Object.assign({},n$4),{output:{dims:c$4,type:e$5.type,textureType:o$1.TextureType.packed},shaderSource:f$3,hasMain:!0})})(t$1,e$4,s$1,n$3)})},e$3.processDims3D=function(t$1){if(t$1.length===0)return[1,1,1];let e$4=1;for(let n$3=0;n$31?t$1[t$1.length-2]:1,t$1[t$1.length-1]]},e$3.isReshapeCheap=function(t$1,e$4){let n$3=!1;return n$3=t$1.length===0||e$4.length===0||(t$1.length<2||e$4.length<2?t$1[t$1.length-1]===e$4[e$4.length-1]:t$1[t$1.length-1]===e$4[e$4.length-1]&&t$1[t$1.length-2]===e$4[e$4.length-2]),n$3}},718:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.reshape=void 0;let r$2=n$2(2517);e$3.reshape=(t$1,e$4)=>{let n$3=r$2.ShapeUtil.calculateReshapedDims(e$4[0].dims,e$4[1].integerData);return t$1.session.pack?[t$1.reshapePacked(e$4[0],n$3)]:[t$1.reshapeUnpacked(e$4[0],n$3)]}},2268:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseResizeAttributesV11=e$3.parseResizeAttributesV10=e$3.resize=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827),s$1=n$2(9793),u$1={name:`Resize`,inputNames:[`A`],inputTypes:[i$1.TextureType.packed]};e$3.resize=(t$1,e$4,n$3)=>((0,s$1.validateInputs)(e$4,n$3),[t$1.run(Object.assign(Object.assign({},u$1),{cacheHint:n$3.cacheKey,get:()=>c$4(t$1,e$4,n$3)}),e$4)]),e$3.parseResizeAttributesV10=t$1=>(0,s$1.parseUpsampleAttributes)(t$1,10),e$3.parseResizeAttributesV11=t$1=>(0,s$1.parseUpsampleAttributes)(t$1,11);let c$4=(t$1,e$4,n$3)=>{let s$2=(0,r$2.getGlsl)(t$1.session.backend.glContext.version),[c$5,p$6]=l$1(e$4,n$3);if(c$5.every(t$2=>t$2===1)&&n$3.coordinateTransformMode!==`tf_crop_and_resize`)return Object.assign(Object.assign({},u$1),{output:{dims:p$6,type:e$4[0].type,textureType:i$1.TextureType.packed},hasMain:!0,shaderSource:`void main() {\n vec4 v = ${s$2.texture2D}(X, TexCoords);\n ${s$2.output} = v;\n }`});let f$4=p$6.length;if(f$4<2)throw Error(`output dimension should be at least 2, but got ${f$4}`);let d$2=p$6[f$4-2],h$3=p$6[f$4-1],g$2=e$4[0].dims;if(f$4!==g$2.length)throw Error(`output dimension should match input ${g$2.length}, but got ${f$4}`);let b$3=g$2[f$4-2],m$2=g$2[f$4-1],y$2=c$5[f$4-2],_$2=c$5[f$4-1],v$1=``;if(n$3.mode!==`linear`)throw Error(`resize (packed) does not support mode: '${n$3.mode}'`);switch(n$3.coordinateTransformMode){case`asymmetric`:v$1=` vec4 getSourceFracIndex(ivec4 coords) { return vec4(coords) / scaleWHWH; } @@ -3970,10 +3970,10 @@ function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof se vec4 getSourceFracIndex(ivec4 coords) { return (vec4(coords) + 0.5) / scaleWHWH - 0.5; } - `;break;case`pytorch_half_pixel`:v$1=`\n vec4 getSourceFracIndex(ivec4 coords) {\n vec4 fcoords = vec4(coords);\n return vec4(\n ${h$3}.0 > 1.0 ? (fcoords.x + 0.5) / scaleWHWH.x - 0.5 : 0.0,\n ${d$2}.0 > 1.0 ? (fcoords.y + 0.5) / scaleWHWH.y - 0.5 : 0.0,\n ${h$3}.0 > 1.0 ? (fcoords.z + 0.5) / scaleWHWH.z - 0.5 : 0.0,\n ${d$2}.0 > 1.0 ? (fcoords.w + 0.5) / scaleWHWH.w - 0.5 : 0.0\n );\n }\n `;break;case`align_corners`:v$1=`\n vec4 getSourceFracIndex(ivec4 coords) {\n vec4 resized = vec4(${h$3}.0 - 1.0, ${d$2}.0 - 1.0, ${h$3}.0 - 1.0,\n ${d$2}.0 - 1.0);\n vec4 original = vec4(${m$2}.0 - 1.0, ${b$3}.0 - 1.0, ${m$2}.0 - 1.0,\n ${b$3}.0 - 1.0);\n vec4 new_scale = original / resized;\n return vec4(coords) * new_scale;\n }\n `;break;default:throw Error(`resize (packed) does not support coordinateTransformMode: '${n$3.coordinateTransformMode}'`)}let w$1=(0,o$1.getCoordsDataType)(f$4),x$3=`\n const vec2 inputWH = vec2(${b$3}.0, ${m$2}.0);\n const vec4 scaleWHWH = vec4(float(${y$2}), float(${_$1}), float(${y$2}), float(${_$1}));\n ${(0,a$2.unpackFromChannel)()}\n ${v$1}\n float getAValue(int x10, int r, int c, int d) {\n return getChannel(getA(x10, r, c, d), vec2(c, d));\n }\n void main() {\n ${w$1} rc = getOutputCoords();\n\n int batch = rc[0];\n int depth = rc[1];\n\n // retrieve the 4 coordinates that is used in the 4 packed output values.\n ivec4 coords = ivec4(rc.wz, rc.w + 1, rc.z + 1);\n\n // calculate the source index in fraction\n vec4 sourceFrac = getSourceFracIndex(coords);\n\n // get the lower and upper bound of the 4 values that will be packed into one texel.\n ivec4 x00 = ivec4(max(sourceFrac.xy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xy)));\n ivec4 x01 = ivec4(max(sourceFrac.xw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xw)));\n ivec4 x10 = ivec4(max(sourceFrac.zy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zy)));\n ivec4 x11 = ivec4(max(sourceFrac.zw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zw)));\n\n bool hasNextRow = rc.w < ${d$2-1};\n bool hasNextCol = rc.z < ${h$3-1};\n\n // pack x00, x01, x10, x11's top-left corner into one vec4 structure\n vec4 topLeft = vec4(\n getAValue(batch, depth, x00.x, x00.y),\n hasNextCol ? getAValue(batch, depth, x01.x, x01.y) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.x, x10.y) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.y) : 0.0);\n\n // pack x00, x01, x10, x11's top-right corner into one vec4 structure\n vec4 topRight = vec4(\n getAValue(batch, depth, x00.x, x00.w),\n hasNextCol ? getAValue(batch, depth, x01.x, x01.w) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.x, x10.w) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.w) : 0.0);\n\n // pack x00, x01, x10, x11's bottom-left corner into one vec4 structure\n vec4 bottomLeft = vec4(\n getAValue(batch, depth, x00.z, x00.y),\n hasNextCol ? getAValue(batch, depth, x01.z, x01.y) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.z, x10.y) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.y) : 0.0);\n\n // pack x00, x01, x10, x11's bottom-right corner into one vec4 structure\n vec4 bottomRight = vec4(\n getAValue(batch, depth, x00.z, x00.w),\n hasNextCol ? getAValue(batch, depth, x01.z, x01.w) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.z, x10.w) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.w) : 0.0);\n\n // calculate the interpolation fraction on u and v direction\n vec4 frac = vec4(sourceFrac) - floor(sourceFrac);\n vec4 clampFrac = clamp(frac, vec4(0.0), vec4(1.0));\n\n vec4 top = mix(topLeft, topRight, clampFrac.ywyw);\n vec4 bottom = mix(bottomLeft, bottomRight, clampFrac.ywyw);\n vec4 newValue = mix(top, bottom, clampFrac.xxzz);\n\n ${s$2.output} = vec4(newValue);\n }\n `;return Object.assign(Object.assign({},u$1),{output:{dims:p$6,type:e$4[0].type,textureType:i$1.TextureType.packed},hasMain:!0,shaderSource:x$3})},l$1=(t$1,e$4)=>{let n$3=t$1[0].dims,r$3,i$2=e$4.scales;if(i$2.length===0){let o$3=t$1[e$4.scalesInputIdx];if(o$3&&o$3.size!==0){if(t$1[e$4.sizesInputIdx])throw Error(`Only one of scales or sizes must be provided as input.`);i$2=p$5(o$3,e$4.mode,e$4.isResize)}else{let o$4=t$1[e$4.sizesInputIdx];if(!o$4||o$4.size===0)throw Error(`Either scales or sizes MUST be provided as input.`);r$3=Array.from(o$4.integerData),i$2=f$3(r$3,n$3,e$4.mode,e$4.isResize)}}else if(t$1[e$4.sizesInputIdx])throw Error(`Only one of scales or sizes must be provided as input.`);let o$2=r$3||n$3.map((t$2,e$5)=>Math.floor(t$2*i$2[e$5]));return[i$2,o$2]},p$5=(t$1,e$4,n$3)=>{let r$3=Array.from(t$1.floatData);return(0,s$1.scalesValidation)(r$3,e$4,n$3),r$3},f$3=(t$1,e$4,n$3,r$3)=>{let i$2=e$4.length,o$2=Array(i$2);for(let n$4=0,r$4=i$2;n$4{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.shape=void 0;let r$2=n$2(9162);e$3.shape=(t$1,e$4)=>(i$1(e$4),[new r$2.Tensor([e$4[0].dims.length],`int32`,void 0,void 0,new Int32Array(e$4[0].dims))]);let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Shape requires 1 input.`)}},2278:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.sliceV10=e$3.parseSliceAttributes=e$3.slice=void 0;let r$2=n$2(246),i$1=n$2(782),o$1=n$2(2517),a$2=n$2(2039),s$1={name:`Slice`,inputNames:[`A`],inputTypes:[a$2.TextureType.unpacked]};e$3.slice=(t$1,e$4,n$3)=>(c$4(e$4),[t$1.run(Object.assign(Object.assign({},s$1),{cacheHint:n$3.cacheKey,get:()=>u$1(t$1,e$4[0],n$3)}),e$4)]),e$3.parseSliceAttributes=t$1=>{let e$4=t$1.attributes.getInts(`starts`),n$3=t$1.attributes.getInts(`ends`),i$2=t$1.attributes.getInts(`axes`,[]);return(0,r$2.createAttributeWithCacheKey)({starts:e$4,ends:n$3,axes:i$2})};let u$1=(t$1,e$4,n$3)=>{let r$3=n$3.axes.length===0?e$4.dims.slice(0).map((t$2,e$5)=>e$5):n$3.axes,i$2=o$1.ShapeUtil.normalizeAxes(r$3,e$4.dims.length),u$2=n$3.starts.map((t$2,n$4)=>t$2>e$4.dims[i$2[n$4]]-1?e$4.dims[i$2[n$4]]:o$1.ShapeUtil.normalizeAxis(t$2,e$4.dims[i$2[n$4]])),c$5=n$3.ends.map((t$2,n$4)=>t$2>e$4.dims[i$2[n$4]]-1?e$4.dims[i$2[n$4]]:o$1.ShapeUtil.normalizeAxis(t$2,e$4.dims[i$2[n$4]])),l$2=e$4.dims.slice(),p$6=[];for(let t$2=0;t$20&&p$6.push(`outputIdx[${i$2[t$2]}] += ${u$2[t$2]};`);let f$3=`\n float process(int outputIdx[${l$2.length}]) {\n ${p$6.join(` + `;break;case`pytorch_half_pixel`:v$1=`\n vec4 getSourceFracIndex(ivec4 coords) {\n vec4 fcoords = vec4(coords);\n return vec4(\n ${h$3}.0 > 1.0 ? (fcoords.x + 0.5) / scaleWHWH.x - 0.5 : 0.0,\n ${d$2}.0 > 1.0 ? (fcoords.y + 0.5) / scaleWHWH.y - 0.5 : 0.0,\n ${h$3}.0 > 1.0 ? (fcoords.z + 0.5) / scaleWHWH.z - 0.5 : 0.0,\n ${d$2}.0 > 1.0 ? (fcoords.w + 0.5) / scaleWHWH.w - 0.5 : 0.0\n );\n }\n `;break;case`align_corners`:v$1=`\n vec4 getSourceFracIndex(ivec4 coords) {\n vec4 resized = vec4(${h$3}.0 - 1.0, ${d$2}.0 - 1.0, ${h$3}.0 - 1.0,\n ${d$2}.0 - 1.0);\n vec4 original = vec4(${m$2}.0 - 1.0, ${b$3}.0 - 1.0, ${m$2}.0 - 1.0,\n ${b$3}.0 - 1.0);\n vec4 new_scale = original / resized;\n return vec4(coords) * new_scale;\n }\n `;break;default:throw Error(`resize (packed) does not support coordinateTransformMode: '${n$3.coordinateTransformMode}'`)}let w$1=(0,o$1.getCoordsDataType)(f$4),x$3=`\n const vec2 inputWH = vec2(${b$3}.0, ${m$2}.0);\n const vec4 scaleWHWH = vec4(float(${y$2}), float(${_$2}), float(${y$2}), float(${_$2}));\n ${(0,a$2.unpackFromChannel)()}\n ${v$1}\n float getAValue(int x10, int r, int c, int d) {\n return getChannel(getA(x10, r, c, d), vec2(c, d));\n }\n void main() {\n ${w$1} rc = getOutputCoords();\n\n int batch = rc[0];\n int depth = rc[1];\n\n // retrieve the 4 coordinates that is used in the 4 packed output values.\n ivec4 coords = ivec4(rc.wz, rc.w + 1, rc.z + 1);\n\n // calculate the source index in fraction\n vec4 sourceFrac = getSourceFracIndex(coords);\n\n // get the lower and upper bound of the 4 values that will be packed into one texel.\n ivec4 x00 = ivec4(max(sourceFrac.xy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xy)));\n ivec4 x01 = ivec4(max(sourceFrac.xw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.xw)));\n ivec4 x10 = ivec4(max(sourceFrac.zy, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zy)));\n ivec4 x11 = ivec4(max(sourceFrac.zw, vec2(0.0)), min(inputWH - 1.0, ceil(sourceFrac.zw)));\n\n bool hasNextRow = rc.w < ${d$2-1};\n bool hasNextCol = rc.z < ${h$3-1};\n\n // pack x00, x01, x10, x11's top-left corner into one vec4 structure\n vec4 topLeft = vec4(\n getAValue(batch, depth, x00.x, x00.y),\n hasNextCol ? getAValue(batch, depth, x01.x, x01.y) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.x, x10.y) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.y) : 0.0);\n\n // pack x00, x01, x10, x11's top-right corner into one vec4 structure\n vec4 topRight = vec4(\n getAValue(batch, depth, x00.x, x00.w),\n hasNextCol ? getAValue(batch, depth, x01.x, x01.w) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.x, x10.w) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.x, x11.w) : 0.0);\n\n // pack x00, x01, x10, x11's bottom-left corner into one vec4 structure\n vec4 bottomLeft = vec4(\n getAValue(batch, depth, x00.z, x00.y),\n hasNextCol ? getAValue(batch, depth, x01.z, x01.y) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.z, x10.y) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.y) : 0.0);\n\n // pack x00, x01, x10, x11's bottom-right corner into one vec4 structure\n vec4 bottomRight = vec4(\n getAValue(batch, depth, x00.z, x00.w),\n hasNextCol ? getAValue(batch, depth, x01.z, x01.w) : 0.0,\n hasNextRow ? getAValue(batch, depth, x10.z, x10.w) : 0.0,\n (hasNextRow && hasNextCol) ? getAValue(batch, depth, x11.z, x11.w) : 0.0);\n\n // calculate the interpolation fraction on u and v direction\n vec4 frac = vec4(sourceFrac) - floor(sourceFrac);\n vec4 clampFrac = clamp(frac, vec4(0.0), vec4(1.0));\n\n vec4 top = mix(topLeft, topRight, clampFrac.ywyw);\n vec4 bottom = mix(bottomLeft, bottomRight, clampFrac.ywyw);\n vec4 newValue = mix(top, bottom, clampFrac.xxzz);\n\n ${s$2.output} = vec4(newValue);\n }\n `;return Object.assign(Object.assign({},u$1),{output:{dims:p$6,type:e$4[0].type,textureType:i$1.TextureType.packed},hasMain:!0,shaderSource:x$3})},l$1=(t$1,e$4)=>{let n$3=t$1[0].dims,r$3,i$2=e$4.scales;if(i$2.length===0){let o$3=t$1[e$4.scalesInputIdx];if(o$3&&o$3.size!==0){if(t$1[e$4.sizesInputIdx])throw Error(`Only one of scales or sizes must be provided as input.`);i$2=p$5(o$3,e$4.mode,e$4.isResize)}else{let o$4=t$1[e$4.sizesInputIdx];if(!o$4||o$4.size===0)throw Error(`Either scales or sizes MUST be provided as input.`);r$3=Array.from(o$4.integerData),i$2=f$3(r$3,n$3,e$4.mode,e$4.isResize)}}else if(t$1[e$4.sizesInputIdx])throw Error(`Only one of scales or sizes must be provided as input.`);let o$2=r$3||n$3.map((t$2,e$5)=>Math.floor(t$2*i$2[e$5]));return[i$2,o$2]},p$5=(t$1,e$4,n$3)=>{let r$3=Array.from(t$1.floatData);return(0,s$1.scalesValidation)(r$3,e$4,n$3),r$3},f$3=(t$1,e$4,n$3,r$3)=>{let i$2=e$4.length,o$2=Array(i$2);for(let n$4=0,r$4=i$2;n$4{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.shape=void 0;let r$2=n$2(9162);e$3.shape=(t$1,e$4)=>(i$1(e$4),[new r$2.Tensor([e$4[0].dims.length],`int32`,void 0,void 0,new Int32Array(e$4[0].dims))]);let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Shape requires 1 input.`)}},2278:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.sliceV10=e$3.parseSliceAttributes=e$3.slice=void 0;let r$2=n$2(246),i$1=n$2(782),o$1=n$2(2517),a$2=n$2(2039),s$1={name:`Slice`,inputNames:[`A`],inputTypes:[a$2.TextureType.unpacked]};e$3.slice=(t$1,e$4,n$3)=>(c$4(e$4),[t$1.run(Object.assign(Object.assign({},s$1),{cacheHint:n$3.cacheKey,get:()=>u$1(t$1,e$4[0],n$3)}),e$4)]),e$3.parseSliceAttributes=t$1=>{let e$4=t$1.attributes.getInts(`starts`),n$3=t$1.attributes.getInts(`ends`),i$2=t$1.attributes.getInts(`axes`,[]);return(0,r$2.createAttributeWithCacheKey)({starts:e$4,ends:n$3,axes:i$2})};let u$1=(t$1,e$4,n$3)=>{let r$3=n$3.axes.length===0?e$4.dims.slice(0).map((t$2,e$5)=>e$5):n$3.axes,i$2=o$1.ShapeUtil.normalizeAxes(r$3,e$4.dims.length),u$2=n$3.starts.map((t$2,n$4)=>t$2>e$4.dims[i$2[n$4]]-1?e$4.dims[i$2[n$4]]:o$1.ShapeUtil.normalizeAxis(t$2,e$4.dims[i$2[n$4]])),c$5=n$3.ends.map((t$2,n$4)=>t$2>e$4.dims[i$2[n$4]]-1?e$4.dims[i$2[n$4]]:o$1.ShapeUtil.normalizeAxis(t$2,e$4.dims[i$2[n$4]])),l$2=e$4.dims.slice(),p$6=[];for(let t$2=0;t$20&&p$6.push(`outputIdx[${i$2[t$2]}] += ${u$2[t$2]};`);let f$3=`\n float process(int outputIdx[${l$2.length}]) {\n ${p$6.join(` `)}\n return _A(outputIdx);\n }`;return Object.assign(Object.assign({},s$1),{output:{dims:l$2,type:e$4.type,textureType:a$2.TextureType.unpacked},shaderSource:f$3})},c$4=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Slice requires 1 input.`);if(i$1.NUMBER_TYPES.indexOf(t$1[0].type)===-1)throw Error(`Invalid input type.`)};e$3.sliceV10=(t$1,e$4)=>{p$5(e$4);let n$3=l$1(t$1,e$4);return[t$1.run(Object.assign(Object.assign({},s$1),{cacheHint:n$3.cacheKey,get:()=>u$1(t$1,e$4[0],n$3)}),[e$4[0]])]};let l$1=(t$1,e$4)=>{if(!t$1.session.isInitializer(e$4[1].dataId)||!t$1.session.isInitializer(e$4[2].dataId)||e$4.length>=4&&!t$1.session.isInitializer(e$4[3].dataId)||e$4.length>=5&&!t$1.session.isInitializer(e$4[4].dataId))throw Error(`dynamic slice attributes are not allowed`);if(e$4.length>=5&&e$4[4].integerData.some(t$2=>t$2!==1))throw Error(`currently non-1 steps is not supported for Slice`);let n$3=Array.from(e$4[1].integerData),r$3=Array.from(e$4[2].integerData),i$2=e$4.length>=4?Array.from(e$4[3].integerData):[];return{starts:n$3,ends:r$3,axes:i$2,cacheKey:`${i$2};${n$3};${r$3}`}},p$5=t$1=>{if(!t$1||t$1.length<3||t$1.length>5)throw Error(`Invalid input number.`);if(t$1[1].type!==`int32`||t$1[1].dims.length!==1||t$1[2].type!==`int32`||t$1[2].dims.length!==1||t$1.length>=4&&(t$1[3].type!==`int32`||t$1[3].dims.length!==1)||t$1.length>=5&&(t$1[4].type!==`int32`||t$1[4].dims.length!==1))throw Error(`Invalid input type.`)}},5524:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.softmaxV13=e$3.parseSoftmaxAttributesV13=e$3.parseSoftmaxAttributes=e$3.softmax=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(5060),a$2=n$2(2039),s$1=n$2(3738),u$1={name:`SoftmaxComputeMax`,inputNames:[`A`],inputTypes:[a$2.TextureType.unpacked]},c$4={name:`SoftmaxComputeScale`,inputNames:[`A`,`Max`],inputTypes:[a$2.TextureType.unpacked,a$2.TextureType.unpacked]},l$1={name:`SoftMax`,inputNames:[`A`,`Max`,`Norm`],inputTypes:[a$2.TextureType.unpacked,a$2.TextureType.unpacked,a$2.TextureType.unpacked]};e$3.softmax=(t$1,e$4,n$3)=>{g$2(e$4);let r$3=e$4[0].dims.slice(),o$2=i$1.ShapeUtil.normalizeAxis(n$3.axis,r$3.length),a$3=i$1.ShapeUtil.sizeToDimension(r$3,o$2),s$2=i$1.ShapeUtil.sizeFromDimension(r$3,o$2);return p$5(t$1,e$4,n$3,a$3,s$2)},e$3.parseSoftmaxAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({axis:t$1.attributes.getInt(`axis`,1)}),e$3.parseSoftmaxAttributesV13=t$1=>(0,r$2.createAttributeWithCacheKey)({axis:t$1.attributes.getInt(`axis`,-1)}),e$3.softmaxV13=(t$1,e$4,n$3)=>{g$2(e$4);let o$2=e$4[0].dims.slice(),a$3=i$1.ShapeUtil.normalizeAxis(n$3.axis,o$2.length),u$2=o$2.length,c$5=a$3!==u$2-1,l$2=[],f$4,d$3=[],h$4=[];c$5&&(d$3=Array.from({length:u$2}).map((t$2,e$5)=>e$5),d$3[a$3]=u$2-1,d$3[u$2-1]=a$3,d$3.map(t$2=>l$2.push(o$2[t$2])),f$4=(0,r$2.createAttributeWithCacheKey)({perm:d$3}),h$4=(0,s$1.transpose)(t$1,e$4,f$4));let b$3=c$5?i$1.ShapeUtil.sizeToDimension(l$2,u$2-1):i$1.ShapeUtil.sizeToDimension(o$2,u$2-1),m$2=c$5?i$1.ShapeUtil.sizeFromDimension(l$2,u$2-1):i$1.ShapeUtil.sizeFromDimension(o$2,u$2-1),y$2=p$5(t$1,c$5?h$4:e$4,n$3,b$3,m$2);return c$5?(0,s$1.transpose)(t$1,y$2,f$4):y$2};let p$5=(t$1,e$4,n$3,r$3,i$2)=>{let o$2=f$3(t$1,e$4[0],r$3,i$2,[r$3]),a$3=t$1.run(Object.assign(Object.assign({},u$1),{cacheHint:n$3.cacheKey,get:()=>o$2}),e$4),s$2=d$2(t$1,e$4[0],r$3,i$2,o$2.output.dims,[r$3]),p$6=t$1.run(Object.assign(Object.assign({},c$4),{cacheHint:n$3.cacheKey,get:()=>s$2}),[e$4[0],a$3]),g$3=h$3(t$1,e$4[0],r$3,i$2,o$2.output.dims,s$2.output.dims);return[t$1.run(Object.assign(Object.assign({},l$1),{cacheHint:n$3.cacheKey,get:()=>g$3}),[e$4[0],a$3,p$6])]},f$3=(t$1,e$4,n$3,r$3,i$2)=>{let[s$2,c$5]=t$1.calculateTextureWidthAndHeight(e$4.dims,a$2.TextureType.unpacked),l$2=i$2.length;if(n$3<1||r$3<1)throw Error(`Logical row count N and feature count D must be greater than or equal to 1`);if(i$2.length!==1)throw Error(`Dimensionality of the output should be 1`);if(i$2[0]!==n$3)throw Error(`Shape of the output should be equal to logical row count`);let p$6=(0,o$1.getGlsl)(t$1.session.backend.glContext.version),f$4=`\n float process(int[${l$2}] indices) {\n int logical_row_start_offset = indices[0] * ${r$3};\n\n float max = getColorAsFloat(${p$6.texture2D}(A, offsetToCoords(logical_row_start_offset, ${s$2},\n ${c$5} )));\n for(int i=1; i<${r$3}; ++i)\n {\n float current = getColorAsFloat(${p$6.texture2D}(A, offsetToCoords(logical_row_start_offset + i,\n ${s$2}, ${c$5})));\n if(current > max)\n max = current;\n }\n\n return max;\n }`;return Object.assign(Object.assign({},u$1),{output:{dims:i$2,type:e$4.type,textureType:a$2.TextureType.unpacked},shaderSource:f$4})},d$2=(t$1,e$4,n$3,r$3,i$2,s$2)=>{let[u$2,l$2]=t$1.calculateTextureWidthAndHeight(e$4.dims,a$2.TextureType.unpacked),p$6=s$2.length;if(n$3<1||r$3<1)throw Error(`Logical row count N and feature count D must be greater than or equal to 1`);if(s$2.length!==1)throw Error(`Dimensionality of the output should be 1`);if(s$2[0]!==n$3)throw Error(`Shape of the output should be equal to logical row count`);if(i$2.length!==1)throw Error(`Dimensionality of the intermediate results should be 1`);if(i$2[0]!==n$3)throw Error(`Shape of the intermediate results should be equal to logical row count`);let f$4=`\n float process(int[${p$6}] indices) {\n int logical_row_start_offset = indices[0] * ${r$3};\n\n float norm_factor = 0.0;\n float max = _Max(indices);\n for(int i=0; i<${r$3}; ++i)\n {\n norm_factor += exp(getColorAsFloat(${(0,o$1.getGlsl)(t$1.session.backend.glContext.version).texture2D}(A, offsetToCoords(logical_row_start_offset + i,\n ${u$2}, ${l$2}))) - max);\n }\n\n return norm_factor;\n }`;return Object.assign(Object.assign({},c$4),{output:{dims:s$2,type:e$4.type,textureType:a$2.TextureType.unpacked},shaderSource:f$4})},h$3=(t$1,e$4,n$3,r$3,i$2,o$2)=>{let[s$2,u$2]=t$1.calculateTextureWidthAndHeight(e$4.dims,a$2.TextureType.unpacked),c$5=e$4.dims.length;if(n$3<1||r$3<1)throw Error(`Logical row count N and feature count D must be greater than or equal to 1`);if(i$2.length!==1||o$2.length!==1)throw Error(`Dimensionality of the intermediate results should be 1`);if(i$2[0]!==n$3||o$2[0]!==n$3)throw Error(`Shape of the intermediate results should be equal to logical row count`);let p$6=`\n float process(int[${c$5}] indices) {\n\n // get offset of current logical tensor index from the 2-D texture coordinates (TexCoords)\n int offset = coordsToOffset(TexCoords, ${s$2}, ${u$2});\n\n //determine the logical row for this index\n int logical_row_index[1];\n logical_row_index[0] = offset / ${r$3};\n\n float norm_factor = _Norm(logical_row_index);\n\n // avoid possible division by 0\n // if norm_facor is 0, all elements are zero\n // if so, return 0\n if(norm_factor == 0.0)\n return 0.0;\n\n return exp(_A(indices) - _Max(logical_row_index)) / norm_factor;\n }`;return Object.assign(Object.assign({},l$1),{output:{dims:e$4.dims,type:e$4.type,textureType:a$2.TextureType.unpacked},shaderSource:p$6})},g$2=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Softmax requires 1 input.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`)throw Error(`Invalid input type`)}},5975:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseSplitAttributes=e$3.split=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(2039),a$2={name:`Split`,inputNames:[`A`],inputTypes:[o$1.TextureType.unpacked]};e$3.split=(t$1,e$4,n$3)=>{c$4(e$4);let r$3=i$1.ShapeUtil.normalizeAxis(n$3.axis,e$4[0].dims.length),o$2=s$1(t$1,e$4,r$3,n$3),l$1=[];for(let i$2=0;i$2u$1(t$1,e$4[0],n$3,r$3,i$2)}),e$4));return l$1},e$3.parseSplitAttributes=t$1=>{let e$4=t$1.attributes.getInt(`axis`,0),n$3=t$1.attributes.getInts(`split`,[]),i$2=t$1.outputs.length;return(0,r$2.createAttributeWithCacheKey)({axis:e$4,split:n$3,numOutputs:i$2})};let s$1=(t$1,e$4,n$3,r$3)=>{let[,o$2]=i$1.SplitUtil.splitShape(e$4[0].dims,n$3,r$3.split,r$3.numOutputs);return o$2.length},u$1=(t$1,e$4,n$3,r$3,s$2)=>{let[u$2,c$5]=i$1.SplitUtil.splitShape(e$4.dims,r$3,n$3.split,n$3.numOutputs),l$1=c$5[s$2],p$5=u$2[s$2],f$3=`\n float process(int indices[${p$5.length}]) {\n indices[${r$3}] += ${l$1};\n return _A(indices);\n }\n `;return Object.assign(Object.assign({},a$2),{cacheHint:`${n$3.cacheKey}:${s$2}`,output:{dims:p$5,type:e$4.type,textureType:o$1.TextureType.unpacked},shaderSource:f$3})},c$4=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Split requires one input.`);if(t$1[0].type!==`int8`&&t$1[0].type!==`uint8`&&t$1[0].type!==`int16`&&t$1[0].type!==`uint16`&&t$1[0].type!==`int32`&&t$1[0].type!==`uint32`&&t$1[0].type!==`float32`&&t$1[0].type!==`float64`&&t$1[0].type!==`bool`)throw Error(`Invalid input type.`)}},3933:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseSqueezeAttributes=e$3.squeezeV13=e$3.squeeze=void 0;let r$2=n$2(2517);e$3.squeeze=(t$1,e$4,n$3)=>{i$1(e$4);let o$2=r$2.ShapeUtil.squeezeShape(e$4[0].dims,n$3);return[t$1.reshapeUnpacked(e$4[0],o$2)]},e$3.squeezeV13=(t$1,n$3)=>(o$1(n$3),(0,e$3.squeeze)(t$1,[n$3[0]],Array.from(n$3[1].integerData))),e$3.parseSqueezeAttributes=t$1=>t$1.attributes.getInts(`axes`);let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Squeeze requires 1 input.`);if(t$1[0].type===`string`)throw Error(`invalid input tensor types.`)},o$1=t$1=>{if(!t$1||t$1.length!==2)throw Error(`Squeeze requires 2 inputs.`);if(t$1[1].type!==`int32`)throw Error(`Invalid input type.`)}},6558:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.sum=void 0;let r$2=n$2(5060),i$1=n$2(2039);e$3.sum=(t$1,e$4)=>{a$2(e$4);let n$3={name:`Sum`,inputNames:e$4.map((t$2,e$5)=>`X${e$5}`),inputTypes:Array(e$4.length).fill(i$1.TextureType.unpacked)};return[t$1.run(Object.assign(Object.assign({},n$3),{get:()=>o$1(t$1,e$4,n$3)}),e$4)]};let o$1=(t$1,e$4,n$3)=>{let o$2=(0,r$2.getGlsl)(t$1.session.backend.glContext.version),a$3=e$4[0].dims.slice(),s$1=`\n void main() {\n vec4 result = ${e$4.map((t$2,e$5)=>`${o$2.texture2D}(X${e$5},TexCoords)`).join(` + `)};\n ${o$2.output} = result;\n }\n `;return Object.assign(Object.assign({},n$3),{output:{dims:a$3,type:e$4[0].type,textureType:i$1.TextureType.unpacked},hasMain:!0,shaderSource:s$1})},a$2=t$1=>{if(!t$1||t$1.length===0)throw Error(`Sum requires inputs.`);let e$4=t$1[0].dims.length;for(let n$3=1;n$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.tile=void 0;let r$2=n$2(782),i$1=n$2(2039);e$3.tile=(t$1,e$4)=>{a$2(e$4);let n$3={name:`Tile`,inputNames:[`A`],inputTypes:[i$1.TextureType.unpacked]};return[t$1.run(Object.assign(Object.assign({},n$3),{get:()=>o$1(t$1,e$4,n$3)}),e$4)]};let o$1=(t$1,e$4,n$3)=>{let r$3=e$4[0].dims.slice(),o$2=Array(r$3.length),a$3=[];for(let t$2=0;t$2{if(!t$1||t$1.length!==2)throw Error(`Tile requires 2 input.`);if(t$1[1].dims.length!==1)throw Error(`The second input shape must 1 dimension.`);if(t$1[1].dims[0]!==t$1[0].dims.length)throw Error(`Invalid input shape.`);if(r$2.NUMBER_TYPES.indexOf(t$1[0].type)===-1)throw Error(`Invalid input type.`);if(t$1[1].type!==`int32`&&t$1[1].type!==`int16`)throw Error(`Invalid repeat type.`)}},3738:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseTransposeAttributes=e$3.transpose=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(2039),a$2={name:`Transpose`,inputNames:[`A`],inputTypes:[o$1.TextureType.unpacked]};e$3.transpose=(t$1,e$4,n$3)=>(p$5(e$4),[t$1.run(Object.assign(Object.assign({},a$2),{cacheHint:n$3.cacheKey,get:()=>s$1(t$1,e$4[0],n$3.perm)}),e$4)]),e$3.parseTransposeAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({perm:t$1.attributes.getInts(`perm`,[])});let s$1=(t$1,e$4,n$3)=>{let r$3=e$4.dims;n$3=u$1(r$3,n$3);let i$2=c$4(r$3,n$3),s$2=r$3.length,p$6=`\n ${l$1(`perm`,n$3,s$2)}\n float process(int indices[${s$2}]) {\n int a[${s$2}];\n perm(a, indices);\n return _A(a);\n }`;return Object.assign(Object.assign({},a$2),{output:{dims:i$2,type:e$4.type,textureType:o$1.TextureType.unpacked},shaderSource:p$6})},u$1=(t$1,e$4)=>(e$4&&e$4.length!==t$1.length&&(e$4=[...t$1.keys()].reverse()),e$4),c$4=(t$1,e$4)=>(e$4=u$1(t$1,e$4),i$1.ShapeUtil.sortBasedOnPerm(t$1,e$4)),l$1=(t$1,e$4,n$3)=>{let r$3=[];r$3.push(`void ${t$1}(out int a[${n$3}], int src[${n$3}]) {`);for(let t$2=0;t$2{if(!t$1||t$1.length!==1)throw Error(`Transpose requires 1 input.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`)throw Error(`input should be float tensor`)}},8710:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.encodeAsUint8=void 0;let r$2=n$2(5060),i$1=n$2(2039);e$3.encodeAsUint8=(t$1,e$4)=>{let n$3=e$4.shape,o$1=(0,r$2.getGlsl)(t$1.session.backend.glContext.version),a$2=`\n const float FLOAT_MAX = 1.70141184e38;\n const float FLOAT_MIN = 1.17549435e-38;\n\n bool isNaN(float val) {\n return (val < 1.0 || 0.0 < val || val == 0.0) ? false : true;\n }\n\n highp vec4 encodeAsUint8(highp float v) {\n if (isNaN(v)) {\n return vec4(255, 255, 255, 255);\n }\n\n highp float av = abs(v);\n\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 255.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n highp float e = floor(log2(av));\n highp float m = exp2(fract(log2(av))) - 1.0;\n\n c[2] = floor(128.0 * m);\n m -= c[2] / 128.0;\n c[1] = floor(32768.0 * m);\n m -= c[1] / 32768.0;\n c[0] = floor(8388608.0 * m);\n\n highp float ebias = e + 127.0;\n c[3] = floor(ebias / 2.0);\n ebias -= c[3] * 2.0;\n c[2] += floor(ebias) * 128.0;\n\n c[3] += 128.0 * step(0.0, -v);\n\n return c / 255.0;\n }\n\n void main() {\n float value = ${o$1.texture2D}(X,TexCoords).r;\n ${o$1.output} = encodeAsUint8(value);\n }`,s$1={name:`Uint8Encode`,inputTypes:[i$1.TextureType.unpacked],inputNames:[`X`],output:{dims:n$3,type:e$4.tensor.type,textureType:i$1.TextureType.downloadUint8AsFloat},shaderSource:a$2,hasMain:!0};return t$1.executeProgram(s$1,[e$4.tensor])}},4909:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.tanh=e$3.tan=e$3.sqrt=e$3.sin=e$3.sigmoid=e$3.relu=e$3.not=e$3.neg=e$3.log=e$3.parseLeakyReluAttributes=e$3.leakyRelu=e$3.identity=e$3.floor=e$3.exp=e$3.parseEluAttributes=e$3.elu=e$3.cos=e$3.ceil=e$3.clipV11=e$3.parseClipAttributes=e$3.clip=e$3.atan=e$3.asin=e$3.acos=e$3.abs=e$3.glslTanh=e$3.glslTan=e$3.glslSqrt=e$3.glslSigmoid=e$3.glslRelu=e$3.glslSin=e$3.glslNot=e$3.glslNeg=e$3.glslLog=e$3.glslLeakyRelu=e$3.glslIdentity=e$3.glslClip=e$3.glslFloor=e$3.glslExp=e$3.glslElu=e$3.glslCos=e$3.glslCeil=e$3.glslAtan=e$3.glslAsin=e$3.glslAcos=e$3.glslAbs=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(8520),a$2=n$2(5060),s$1=n$2(2039);function u$1(){return P$1(`abs`)}function c$4(){return P$1(`acos`)}function l$1(){return P$1(`asin`)}function p$5(){return P$1(`atan`)}function f$3(){return P$1(`ceil`)}function d$2(){return P$1(`cos`)}function h$3(t$1){let e$4=`elu`;return{body:`\n const float alpha = float(${t$1});\n\n float ${e$4}_(float a) {\n return a >= 0.0 ? a: (exp(a) - 1.0) * alpha;\n }\n vec4 ${e$4}_(vec4 v) {\n return vec4(${e$4}_(v.x), ${e$4}_(v.y), ${e$4}_(v.z), ${e$4}_(v.w));\n }\n `,name:e$4,type:o$1.FunctionType.ValueBased}}function g$2(){return P$1(`exp`)}function b$3(){return P$1(`floor`)}function m$2(t$1,e$4){let n$3=`clip`;return{body:`\n const float min = float(${t$1});\n const float max = float(${e$4});\n\n float ${n$3}_(float a) {\n return clamp(a, min, max);\n }\n vec4 ${n$3}_(vec4 v) {\n return clamp(v, min, max);\n }\n `,name:n$3,type:o$1.FunctionType.ValueBased}}function y$2(){let t$1=`indentity`;return{body:`\n float ${t$1}_(float a) {\n return a;\n }\n vec4 ${t$1}_(vec4 v) {\n return v;\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function _$1(t$1){let e$4=`leakyRelu`;return{body:`\n const float alpha = float(${t$1});\n\n float ${e$4}_(float a) {\n return a < 0.0 ? a * alpha : a;\n }\n vec4 ${e$4}_(vec4 v) {\n return vec4(${e$4}_(v.x), ${e$4}_(v.y), ${e$4}_(v.z), ${e$4}_(v.w));\n }\n `,name:e$4,type:o$1.FunctionType.ValueBased}}function v$1(){return P$1(`log`)}function w$1(){let t$1=`neg`;return{body:`\n float ${t$1}_(float a) {\n return -a;\n }\n vec4 ${t$1}_(vec4 v) {\n return -v;\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function x$3(){let t$1=`not`;return{body:`\n float ${t$1}_(float a) {\n return float( ! bool(a) );\n }\n bool ${t$1}_(bool a) {\n return !a;\n }\n vec4 ${t$1}_(vec4 v) {\n return vec4(!bool(v.x), !bool(v.y), !bool(v.z), !bool(v.w));\n }\n bvec4 ${t$1}_(bvec4 v) {\n return bvec4(!v.x, !v.y, !v.z, !v.w);\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function T$1(){return P$1(`sin`)}function S$2(){let t$1=`relu`;return{body:`\n float ${t$1}_(float a) {\n return max( a, 0.0 );\n }\n vec4 ${t$1}_(vec4 v) {\n return max( v, 0.0 );\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function O$1(){let t$1=`sigmoid`;return{body:`\n float ${t$1}_(float a) {\n return 1.0 / (1.0 + exp(-a));\n }\n vec4 ${t$1}_(vec4 v) {\n return 1.0 / (1.0 + exp(-v));\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function A$1(){return P$1(`sqrt`)}function E$2(){return P$1(`tan`)}function I(){let t$1=`tanh`;return{body:`\n float ${t$1}_(float a) {\n a = clamp(a, -10., 10.);\n a = exp(2.*a);\n return (a - 1.) / (a + 1.);\n }\n vec4 ${t$1}_(vec4 v) {\n v = clamp(v, -10., 10.);\n v = exp(2.*v);\n return (v - 1.) / (v + 1.);\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function P$1(t$1){return{body:`\n float ${t$1}_(float a) {\n return ${t$1}(a);\n }\n vec4 ${t$1}_(vec4 v) {\n return ${t$1}(v);\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}e$3.glslAbs=u$1,e$3.glslAcos=c$4,e$3.glslAsin=l$1,e$3.glslAtan=p$5,e$3.glslCeil=f$3,e$3.glslCos=d$2,e$3.glslElu=h$3,e$3.glslExp=g$2,e$3.glslFloor=b$3,e$3.glslClip=m$2,e$3.glslIdentity=y$2,e$3.glslLeakyRelu=_$1,e$3.glslLog=v$1,e$3.glslNeg=w$1,e$3.glslNot=x$3,e$3.glslSin=T$1,e$3.glslRelu=S$2,e$3.glslSigmoid=O$1,e$3.glslSqrt=A$1,e$3.glslTan=E$2,e$3.glslTanh=I;let D$1=(t$1,e$4,n$3,r$3)=>{let i$2=t$1.session.pack?s$1.TextureType.packed:s$1.TextureType.unpacked,o$2={name:n$3.name,inputTypes:[i$2],inputNames:[`A`],cacheHint:r$3};return Object.assign(Object.assign({},o$2),{get:()=>((t$2,e$5,n$4,r$4)=>{let i$3=t$2.session.pack?s$1.TextureType.packed:s$1.TextureType.unpacked,o$3=(0,a$2.getGlsl)(t$2.session.backend.glContext.version);return Object.assign(Object.assign({},e$5),{output:{dims:n$4.dims,type:n$4.type,textureType:i$3},shaderSource:`\n ${r$4.body}\n void main() {\n vec4 v = ${o$3.texture2D}(A, TexCoords);\n v = ${r$4.name}_(v);\n ${o$3.output} = v;\n }\n `,hasMain:!0})})(t$1,o$2,e$4,n$3)})};e$3.abs=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],u$1()),e$4)],e$3.acos=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],c$4()),e$4)],e$3.asin=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],l$1()),e$4)],e$3.atan=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],p$5()),e$4)],e$3.clip=(t$1,e$4,n$3)=>[t$1.run(D$1(t$1,e$4[0],m$2(n$3.min,n$3.max),n$3.cacheKey),e$4)],e$3.parseClipAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({min:t$1.attributes.getFloat(`min`,i$1.MIN_CLIP),max:t$1.attributes.getFloat(`max`,i$1.MAX_CLIP)}),e$3.clipV11=(t$1,n$3)=>{let r$3=$$1(t$1,n$3);return(0,e$3.clip)(t$1,[n$3[0]],r$3)};let $$1=(t$1,e$4)=>{if(e$4.length>=3&&(!t$1.session.isInitializer(e$4[1].dataId)||!t$1.session.isInitializer(e$4[2].dataId)))throw Error(`dynamic clip attributes are not allowed`);let n$3=e$4.length>=3?e$4[1].numberData[0]:i$1.MIN_CLIP,o$2=e$4.length>=3?e$4[2].numberData[0]:i$1.MAX_CLIP;return(0,r$2.createAttributeWithCacheKey)({min:n$3,max:o$2})};e$3.ceil=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],f$3()),e$4)],e$3.cos=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],d$2()),e$4)],e$3.elu=(t$1,e$4,n$3)=>[t$1.run(D$1(t$1,e$4[0],h$3(n$3.alpha),n$3.cacheKey),e$4)],e$3.parseEluAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({alpha:t$1.attributes.getFloat(`alpha`,1)}),e$3.exp=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],g$2()),e$4)],e$3.floor=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],b$3()),e$4)],e$3.identity=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],y$2()),e$4)],e$3.leakyRelu=(t$1,e$4,n$3)=>[t$1.run(D$1(t$1,e$4[0],_$1(n$3.alpha),n$3.cacheKey),e$4)],e$3.parseLeakyReluAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({alpha:t$1.attributes.getFloat(`alpha`,.01)}),e$3.log=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],v$1()),e$4)],e$3.neg=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],w$1()),e$4)],e$3.not=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],x$3()),e$4)],e$3.relu=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],S$2()),e$4)],e$3.sigmoid=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],O$1()),e$4)],e$3.sin=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],T$1()),e$4)],e$3.sqrt=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],A$1()),e$4)],e$3.tan=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],E$2()),e$4)],e$3.tanh=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],I()),e$4)]},5611:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createUnpackProgramInfoLoader=e$3.createUnpackProgramInfo=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827),s$1={name:`unpack`,inputNames:[`A`],inputTypes:[i$1.TextureType.packed]};e$3.createUnpackProgramInfo=(t$1,e$4)=>{let n$3=e$4.dims.length,u$1=(0,a$2.getChannels)(`rc`,n$3),c$4=u$1.slice(-2),l$1=(0,o$1.getCoordsDataType)(n$3),p$5=(0,a$2.unpackFromChannel)(),f$3=e$4.dims.length===0?``:function(t$2,e$5){if(t$2===1)return`rc`;let n$4=``;for(let r$3=0;r$3Object.assign(Object.assign({},s$1),{get:()=>(0,e$3.createUnpackProgramInfo)(t$1,n$3)})},8428:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseUnsqueezeAttributes=e$3.unsqueezeV13=e$3.unsqueeze=void 0;let r$2=n$2(2517);e$3.unsqueeze=(t$1,e$4,n$3)=>{i$1(e$4);let o$2=r$2.ShapeUtil.unsqueezeShape(e$4[0].dims,n$3);return[t$1.reshapeUnpacked(e$4[0],o$2)]},e$3.unsqueezeV13=(t$1,n$3)=>(o$1(n$3),(0,e$3.unsqueeze)(t$1,[n$3[0]],Array.from(n$3[1].integerData))),e$3.parseUnsqueezeAttributes=t$1=>t$1.attributes.getInts(`axes`);let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Unsqueeze requires 1 input.`);if(t$1[0].type===`string`)throw Error(`invalid input tensor types.`)},o$1=t$1=>{if(!t$1||t$1.length!==2)throw Error(`Unsqueeze requires 2 inputs.`);if(t$1[1].type!==`int32`)throw Error(`Invalid input type.`)}},9793:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.scalesValidation=e$3.validateInputs=e$3.parseUpsampleAttributes=e$3.parseUpsampleAttributesV9=e$3.parseUpsampleAttributesV7=e$3.upsample=void 0;let r$2=n$2(246),i$1=n$2(5060),o$1=n$2(2039),a$2={name:`Upsample`,inputNames:[`X`],inputTypes:[o$1.TextureType.unpacked]};e$3.upsample=(t$1,n$3,r$3)=>((0,e$3.validateInputs)(n$3,r$3),[t$1.run(Object.assign(Object.assign({},a$2),{cacheHint:r$3.cacheKey,get:()=>s$1(t$1,n$3,r$3)}),n$3)]),e$3.parseUpsampleAttributesV7=t$1=>(0,e$3.parseUpsampleAttributes)(t$1,7),e$3.parseUpsampleAttributesV9=t$1=>(0,e$3.parseUpsampleAttributes)(t$1,9),e$3.parseUpsampleAttributes=(t$1,n$3)=>{let i$2=n$3>=10,o$2=t$1.attributes.getString(`mode`,`nearest`);if(o$2!==`nearest`&&o$2!==`linear`&&(n$3<11||o$2!==`cubic`))throw Error(`unrecognized mode: ${o$2}`);let a$3=[];n$3<9&&(a$3=t$1.attributes.getFloats(`scales`),(0,e$3.scalesValidation)(a$3,o$2,i$2));let s$2=t$1.attributes.getFloat(`extrapolation_value`,0),u$1=n$3>10?t$1.attributes.getString(`coordinate_transformation_mode`,`half_pixel`):`asymmetric`;if([`asymmetric`,`pytorch_half_pixel`,`tf_half_pixel_for_nn`,`align_corners`,`tf_crop_and_resize`,`half_pixel`].indexOf(u$1)===-1)throw Error(`coordinate_transform_mode '${u$1}' is not supported`);let c$4=u$1===`tf_crop_and_resize`,l$1=c$4,p$5=o$2===`nearest`&&n$3>=11?t$1.attributes.getString(`nearest_mode`,`round_prefer_floor`):``;if([`round_prefer_floor`,`round_prefer_ceil`,`floor`,`ceil`,``].indexOf(p$5)===-1)throw Error(`nearest_mode '${p$5}' is not supported`);let f$3=t$1.attributes.getFloat(`cubic_coeff_a`,-.75),d$2=t$1.attributes.getInt(`exclude_outside`,0)!==0;if(d$2&&o$2!==`cubic`)throw Error(`exclude_outside can be set to 1 only when mode is CUBIC.`);let h$3=n$3<11||o$2===`nearest`&&u$1===`asymmetric`&&p$5===`floor`,g$2=0,b$3=0,m$2=0;return n$3>10?t$1.inputs.length>2?(g$2=1,b$3=2,m$2=3):(b$3=1,m$2=2):n$3===9&&(b$3=1),(0,r$2.createAttributeWithCacheKey)({opset:n$3,isResize:i$2,mode:o$2,scales:a$3,extrapolationValue:s$2,coordinateTransformMode:u$1,useExtrapolation:l$1,needRoiInput:c$4,nearestMode:p$5,cubicCoefficientA:f$3,excludeOutside:d$2,useNearest2xOptimization:h$3,roiInputIdx:g$2,scalesInputIdx:b$3,sizesInputIdx:m$2})};let s$1=(t$1,e$4,n$3)=>{let r$3=(0,i$1.getGlsl)(t$1.session.backend.glContext.version),[s$2,u$1]=t$1.calculateTextureWidthAndHeight(e$4[0].dims,o$1.TextureType.unpacked),c$4=e$4[0].dims.map((t$2,e$5)=>Math.floor(t$2*n$3.scales[e$5])),[l$1,p$5]=t$1.calculateTextureWidthAndHeight(c$4,o$1.TextureType.unpacked),f$3=c$4.length,d$2=Array(f$3),h$3=Array(f$3),g$2=`\n int output_pitches[${f$3}];\n int input_pitches[${f$3}];\n `;for(let t$2=f$3-1;t$2>=0;t$2--)d$2[t$2]=t$2===f$3-1?1:d$2[t$2+1]*c$4[t$2+1],h$3[t$2]=t$2===f$3-1?1:h$3[t$2+1]*e$4[0].dims[t$2+1],g$2+=`\n output_pitches[${t$2}] = ${d$2[t$2]};\n input_pitches[${t$2}] = ${h$3[t$2]};\n `;let b$3=`\n float getInputFloat(int index) {\n vec2 coords = offsetToCoords(index, ${s$2}, ${u$1});\n float value = getColorAsFloat(${r$3.texture2D}(X, coords));\n return value;\n }\n `,m$2=n$3.mode===`nearest`?`\n ${b$3}\n float process(int indices[${f$3}]) {\n int input_index = 0;\n int output_index = coordsToOffset(TexCoords, ${l$1}, ${p$5});\n\n ${g$2}\n\n int d, m;\n for (int dim = 0; dim < ${f$3}; ++dim) {\n d = output_index / output_pitches[dim];\n m = output_index - d * output_pitches[dim];\n output_index = m;\n\n if (scales[dim] != 1 && d > 0) {\n int d2 = d / scales[dim];\n m = d - d2 * scales[dim];\n d = d2;\n }\n input_index += input_pitches[dim] * d;\n }\n\n return getInputFloat(input_index);\n }`:f$3===4?`\n ${b$3}\n float process(int indices[4]) {\n int input_index = 0;\n int output_index = coordsToOffset(TexCoords, ${l$1}, ${p$5});\n\n ${g$2}\n\n int m;\n int index_of_dim0, index_of_dim1, index_of_dim2, index_of_dim3;\n index_of_dim0 = output_index / output_pitches[0];\n m = output_index - index_of_dim0 * output_pitches[0];\n index_of_dim1 = m / output_pitches[1];\n m = m - index_of_dim1 * output_pitches[1];\n index_of_dim2 = m / output_pitches[2];\n m = m - index_of_dim2 * output_pitches[2];\n index_of_dim3 = m;\n\n int index_of_input_dim2, index_of_input_dim3, x_offset, y_offset;\n index_of_input_dim2 = index_of_dim2 / scales[2];\n y_offset = index_of_dim2 - index_of_input_dim2 * scales[2];\n index_of_input_dim3 = index_of_dim3 / scales[3];\n x_offset = index_of_dim3 - index_of_input_dim3 * scales[3];\n\n input_index = index_of_dim0 * input_pitches[0] +\n index_of_dim1 * input_pitches[1] +\n index_of_input_dim2 * input_pitches[2] +\n index_of_input_dim3;\n\n float x00 = getInputFloat(input_index);\n float x10, x01, x11;\n\n bool end_of_dim2 = false;\n if (index_of_input_dim2 == (${e$4[0].dims[2]} - 1)) {\n // It's the end in dimension 2\n x01 = x00;\n end_of_dim2 = true;\n } else {\n x01 = getInputFloat(input_index + input_pitches[2]);\n }\n\n if (index_of_input_dim3 == (input_pitches[2] - 1)) {\n // It's the end in dimension 3\n x10 = x00;\n x11 = x01;\n }\n else {\n x10 = getInputFloat(input_index + 1);\n x11 = end_of_dim2 ? x10 : getInputFloat(input_index + input_pitches[2] + 1);\n }\n\n float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[2]);\n float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[2]);\n return y0 + float(x_offset) * (y1 - y0) / float(scales[3]);\n }`:`\n ${b$3}\n float process(int indices[2]) {\n int input_index = 0;\n int output_index = coordsToOffset(TexCoords, ${l$1}, ${p$5});\n\n ${g$2}\n\n int m;\n int index_of_dim0, index_of_dim1;\n index_of_dim0 = output_index / output_pitches[0];\n m = output_index - index_of_dim0 * output_pitches[0];\n index_of_dim1 = m;\n\n int index_of_input_dim0, index_of_input_dim1, x_offset, y_offset;\n index_of_input_dim0 = index_of_dim0 / scales[0];\n y_offset = index_of_dim0 - index_of_input_dim0 * scales[0];\n index_of_input_dim1 = index_of_dim1 / scales[1];\n x_offset = index_of_dim1 - index_of_input_dim1 * scales[1];\n\n input_index = index_of_input_dim0 * input_pitches[0] + index_of_input_dim1;\n\n float x00 = getInputFloat(input_index);\n float x10, x01, x11;\n\n bool end_of_dim0 = false;\n if (index_of_input_dim0 == (${e$4[0].dims[0]} - 1)) {\n // It's the end in dimension 0\n x01 = x00;\n end_of_dim0 = true;\n } else {\n x01 = getInputFloat(input_index + input_pitches[0]);\n }\n\n if (index_of_input_dim1 == (input_pitches[0] - 1)) {\n // It's the end in dimension 1\n x10 = x00;\n x11 = x01;\n }\n else {\n x10 = getInputFloat(input_index + 1);\n x11 = end_of_dim0 ? x10 : getInputFloat(input_index + input_pitches[0] + 1);\n }\n\n float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[0]);\n float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[0]);\n return y0 + float(x_offset) * (y1 - y0) / float(scales[1]);\n }`;return Object.assign(Object.assign({},a$2),{output:{dims:c$4,type:e$4[0].type,textureType:o$1.TextureType.unpacked},shaderSource:m$2,variables:[{name:`scales`,type:`int`,arrayLength:n$3.scales.length,data:n$3.scales.map(t$2=>Math.ceil(t$2))}]})};e$3.validateInputs=(t$1,e$4)=>{if(!t$1||e$4.opset<9&&t$1.length!==1||e$4.opset>=9&&e$4.opset<11&&t$1.length!==2||e$4.opset>=11&&t$1.length<2)throw Error(`invalid inputs.`);if(e$4.scales.length>0&&t$1[0].dims.length!==e$4.scales.length)throw Error(`Invalid input shape.`);if(t$1[0].type===`string`)throw Error(`Invalid input tensor types.`)},e$3.scalesValidation=(t$1,e$4,n$3)=>{if(n$3){for(let e$5 of t$1)if(e$5<=0)throw Error(`Scale value should be greater than 0.`)}else for(let e$5 of t$1)if(e$5<1)throw Error(`Scale value should be greater than or equal to 1.`);if(!(e$4!==`linear`&&e$4!==`cubic`||t$1.length===2||t$1.length===4&&t$1[0]===1&&t$1[1]===1))throw Error(`'Linear' mode and 'Cubic' mode only support 2-D inputs ('Bilinear', 'Bicubic') or 4-D inputs with the corresponding outermost 2 scale values being 1 in the ${n$3?`Resize`:`Upsample`} opeartor.`)}},1958:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.ProgramManager=void 0;let r$2=n$2(1670),i$1=n$2(6231),o$1=n$2(8879),a$2=n$2(5060);e$3.ProgramManager=class{constructor(t$1,e$4,n$3){this.profiler=t$1,this.glContext=e$4,this.textureLayoutStrategy=n$3,this.repo=new Map,this.attributesBound=!1}getArtifact(t$1){return this.repo.get(t$1)}setArtifact(t$1,e$4){this.repo.set(t$1,e$4)}run(t$1,e$4,n$3){var r$3;this.profiler.event(`op`,`ProgramManager.run ${(r$3=t$1.programInfo.name)??`unknown kernel`}`,()=>{var r$4;let o$2=this.glContext.gl,a$3=t$1.program;o$2.useProgram(a$3);try{this.bindOutput(n$3),this.attributesBound||this.bindAttributes(t$1.attribLocations),this.bindUniforms(t$1.uniformLocations,(r$4=t$1.programInfo.variables)??[],e$4)}catch(e$5){throw i$1.Logger.error(`ProgramManager`,t$1.programInfo.shaderSource),e$5}this.profiler.event(`backend`,`GlContext.draw()`,()=>{this.glContext.draw()})},this.glContext)}dispose(){this.vertexShader&&this.glContext.deleteShader(this.vertexShader),this.repo.forEach(t$1=>this.glContext.deleteProgram(t$1.program))}build(t$1,e$4,n$3){return this.profiler.event(`backend`,`ProgramManager.build`,()=>{let r$3=new o$1.GlslPreprocessor(this.glContext,t$1,e$4,n$3),i$2=r$3.preprocess(),a$3=this.compile(i$2);return{programInfo:t$1,program:a$3,uniformLocations:this.getUniformLocations(a$3,r$3.context.programInfo.inputNames,r$3.context.programInfo.variables),attribLocations:this.getAttribLocations(a$3)}})}compile(t$1){if(!this.vertexShader){i$1.Logger.verbose(`ProrgramManager`,`Compiling and caching Vertex shader for the first time`);let t$2=(0,a$2.getVertexShaderSource)(this.glContext.version);this.vertexShader=this.glContext.compileShader(t$2,this.glContext.gl.VERTEX_SHADER)}r$2.env.debug&&i$1.Logger.verbose(`ProrgramManager`,`FragShader:\n${t$1}\n`);let e$4=this.glContext.compileShader(t$1,this.glContext.gl.FRAGMENT_SHADER),n$3=this.glContext.createProgram(this.vertexShader,e$4);return this.glContext.deleteShader(e$4),n$3}bindOutput(t$1){let e$4=t$1.width,n$3=t$1.height;i$1.Logger.verbose(`ProrgramManager`,`Binding output texture to Framebuffer: w/h=${e$4}/${n$3}, shape=${t$1.shape}, type=${t$1.tensor.type}`),this.glContext.attachFramebuffer(t$1.texture,e$4,n$3)}bindAttributes(t$1){let e$4=t$1.position,n$3=t$1.textureCoord;this.glContext.setVertexAttributes(e$4,n$3),this.attributesBound=!0}bindUniforms(t$1,e$4,n$3){var r$3;let i$2=this.glContext.gl,o$2=0;for(let{name:a$3,type:s$1,location:u$1,arrayLength:c$4}of t$1){let t$2=(r$3=e$4.find(t$3=>t$3.name===a$3))?.data;if(s$1!==`sampler2D`&&!t$2)throw Error(`variable '${a$3}' does not have data defined in program info`);switch(s$1){case`sampler2D`:this.bindTexture(n$3[o$2],u$1,o$2),o$2++;break;case`float`:c$4?i$2.uniform1fv(u$1,t$2):i$2.uniform1f(u$1,t$2);break;case`int`:c$4?i$2.uniform1iv(u$1,t$2):i$2.uniform1i(u$1,t$2);break;default:throw Error(`Uniform not implemented: ${s$1}`)}}}bindTexture(t$1,e$4,n$3){this.glContext.bindTextureToUniform(t$1.texture,n$3,e$4)}getAttribLocations(t$1){return{position:this.getAttribLocation(t$1,`position`),textureCoord:this.getAttribLocation(t$1,`textureCoord`)}}getUniformLocations(t$1,e$4,n$3){let r$3=[];if(e$4)for(let n$4 of e$4)r$3.push({name:n$4,type:`sampler2D`,location:this.getUniformLocation(t$1,n$4)});if(n$3)for(let e$5 of n$3)r$3.push(Object.assign(Object.assign({},e$5),{location:this.getUniformLocation(t$1,e$5.name)}));return r$3}getUniformLocation(t$1,e$4){let n$3=this.glContext.gl.getUniformLocation(t$1,e$4);if(n$3===null)throw Error(`Uniform ${e$4} not found.`);return n$3}getAttribLocation(t$1,e$4){return this.glContext.gl.getAttribLocation(t$1,e$4)}}},6416:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLSessionHandler=void 0;let r$2=n$2(6231),i$1=n$2(1047),o$1=n$2(8316),a$2=n$2(1640),s$1=n$2(1958),u$1=n$2(7859),c$4=n$2(5702);e$3.WebGLSessionHandler=class{constructor(t$1,e$4){this.backend=t$1,this.context=e$4,this.layoutStrategy=new u$1.PreferLogicalStrategy(t$1.glContext.maxTextureSize),this.programManager=new s$1.ProgramManager(this.context.profiler,t$1.glContext,this.layoutStrategy),this.textureManager=new c$4.TextureManager(t$1.glContext,this.layoutStrategy,this.context.profiler,{reuseTextures:t$1.textureCacheMode===`full`}),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map,this.pack=t$1.pack,this.pack2unpackMap=new Map,this.unpack2packMap=new Map}createInferenceHandler(){return new o$1.WebGLInferenceHandler(this)}onGraphInitialized(t$1){let e$4=t$1.getValues().filter(t$2=>t$2.from===-1&&t$2.tensor).map(t$2=>t$2.tensor.dataId);this.initializers=new Set(e$4)}isInitializer(t$1){return!!this.initializers&&this.initializers.has(t$1)}addInitializer(t$1){this.initializers.add(t$1)}getTextureData(t$1,e$4){return e$4?this.packedTextureDataCache.get(t$1):this.unpackedTextureDataCache.get(t$1)}setTextureData(t$1,e$4,n$3=!1){r$2.Logger.verbose(`WebGLSessionHandler`,`Storing Texture data in cache`),n$3?this.packedTextureDataCache.set(t$1,e$4):this.unpackedTextureDataCache.set(t$1,e$4)}dispose(){this.programManager.dispose(),this.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach(t$1=>this.textureManager.releaseTexture(t$1,!0)),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach(t$1=>this.textureManager.releaseTexture(t$1,!0)),this.unpackedTextureDataCache=new Map}resolve(t$1,e$4,n$3){let r$3=(0,i$1.resolveOperator)(t$1,e$4,a$2.WEBGL_OP_RESOLVE_RULES);return{impl:r$3.opImpl,context:r$3.opInit?r$3.opInit(t$1,n$3):t$1}}}},7769:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Uint8DataEncoder=e$3.RGBAFloatDataEncoder=e$3.RedFloat32DataEncoder=void 0;let r$2=n$2(6231);e$3.RedFloat32DataEncoder=class{constructor(t$1,e$4=1){if(e$4===1)this.internalFormat=t$1.R32F,this.format=t$1.RED,this.textureType=t$1.FLOAT,this.channelSize=e$4;else{if(e$4!==4)throw Error(`Invalid number of channels: ${e$4}`);this.internalFormat=t$1.RGBA32F,this.format=t$1.RGBA,this.textureType=t$1.FLOAT,this.channelSize=e$4}}encode(t$1,e$4){let n$3,i$1;return t$1.constructor!==Float32Array&&(r$2.Logger.warning(`Encoder`,`data was not of type Float32; creating new Float32Array`),i$1=new Float32Array(t$1)),e$4*this.channelSize>t$1.length?(r$2.Logger.warning(`Encoder`,`Source data too small. Allocating larger array`),i$1=t$1,n$3=this.allocate(e$4*this.channelSize),i$1.forEach((t$2,e$5)=>n$3[e$5]=t$2)):(i$1=t$1,n$3=i$1),n$3}allocate(t$1){return new Float32Array(4*t$1)}decode(t$1,e$4){return this.channelSize===1?t$1.filter((t$2,e$5)=>e$5%4==0).subarray(0,e$4):t$1.subarray(0,e$4)}},e$3.RGBAFloatDataEncoder=class{constructor(t$1,e$4=1,n$3){if(e$4!==1&&e$4!==4)throw Error(`Invalid number of channels: ${e$4}`);this.internalFormat=t$1.RGBA,this.format=t$1.RGBA,this.channelSize=e$4,this.textureType=n$3||t$1.FLOAT}encode(t$1,e$4){let n$3=t$1;return this.channelSize===1&&(r$2.Logger.verbose(`Encoder`,`Exploding into a larger array`),n$3=this.allocate(e$4),t$1.forEach((t$2,e$5)=>n$3[4*e$5]=t$2)),n$3}allocate(t$1){return new Float32Array(4*t$1)}decode(t$1,e$4){return this.channelSize===1?t$1.filter((t$2,e$5)=>e$5%4==0).subarray(0,e$4):t$1.subarray(0,e$4)}},e$3.Uint8DataEncoder=class{constructor(t$1,e$4=1){if(this.channelSize=4,e$4===1)this.internalFormat=t$1.ALPHA,this.format=t$1.ALPHA,this.textureType=t$1.UNSIGNED_BYTE,this.channelSize=e$4;else{if(e$4!==4)throw Error(`Invalid number of channels: ${e$4}`);this.internalFormat=t$1.RGBA,this.format=t$1.RGBA,this.textureType=t$1.UNSIGNED_BYTE,this.channelSize=e$4}}encode(t$1,e$4){return new Uint8Array(t$1.buffer,t$1.byteOffset,t$1.byteLength)}allocate(t$1){return new Uint8Array(t$1*this.channelSize)}decode(t$1,e$4){if(t$1 instanceof Uint8Array)return t$1.subarray(0,e$4);throw Error(`Invalid array type: ${t$1.constructor}`)}}},7859:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getBatchDim=e$3.sizeToSquarishShape=e$3.getRowsCols=e$3.sizeFromShape=e$3.isInt=e$3.parseAxisParam=e$3.squeezeShape=e$3.PreferLogicalStrategy=e$3.AlwaysKeepOriginalSizeStrategy=void 0;let r$2=n$2(6231),i$1=n$2(2517);function o$1(t$1,e$4){let n$3=[],r$3=[],i$2=e$4!=null&&Array.isArray(e$4)&&e$4.length===0,o$2=e$4==null||i$2?null:a$2(e$4,t$1).sort(),s$2=0;for(let e$5=0;e$5e$5)&&t$1[e$5]===1&&(n$3.push(t$1[e$5]),r$3.push(e$5)),o$2[s$2]<=e$5&&s$2++}t$1[e$5]!==1&&(n$3.push(t$1[e$5]),r$3.push(e$5))}return{newShape:n$3,keptDims:r$3}}function a$2(t$1,e$4){let n$3=e$4.length;return t$1=t$1==null?e$4.map((t$2,e$5)=>e$5):[].concat(t$1),(0,i$1.assert)(t$1.every(t$2=>t$2>=-n$3&&t$2`All values in axis param must be in range [-${n$3}, ${n$3}) but got axis ${t$1}`),(0,i$1.assert)(t$1.every(s$1),()=>`All values in axis param must be integers but got axis ${t$1}`),t$1.map(t$2=>t$2<0?n$3+t$2:t$2)}function s$1(t$1){return t$1%1==0}function u$1(t$1){if(t$1.length===0)return 1;let e$4=t$1[0];for(let n$3=1;n$3=t$1.length?1:t$1.slice(e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5),o$3=e$4.breakAxis<=0?1:t$1.slice(0,e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5);if(!(i$3>n$3||o$3>n$3))return[i$3,o$3];r$2.Logger.verbose(`TextureLayout`,`Given width/height preferences were unattainable: shape:${t$1}, breakAxis:${e$4.breakAxis}`)}let i$2=t$1.reduce((t$2,e$5)=>t$2*e$5),o$2=Math.floor(Math.sqrt(i$2));for(;o$2=n$3||i$2%o$2!=0)throw Error(`The given dimensions are outside this GPU's boundaries: ${t$1}`);return[o$2,i$2/o$2]}},e$3.PreferLogicalStrategy=class{constructor(t$1){this.maxTextureSize=t$1}computeTextureWH(t$1,e$4){let n$3=this.computeTexture(t$1,e$4);return e$4&&e$4.isPacked&&(n$3[0]/=2,n$3[1]/=2),e$4&&e$4.reverseWH?[n$3[1],n$3[0]]:n$3}computeTexture(t$1,e$4){let n$3=e$4&&e$4.isPacked;if(t$1.length===0)return n$3?[2,2]:[1,1];let i$2=this.maxTextureSize;if(e$4&&e$4.breakAxis!==void 0){let n$4=e$4.breakAxis>=t$1.length?1:t$1.slice(e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5),o$2=e$4.breakAxis<=0?1:t$1.slice(0,e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5);if(!(n$4>i$2||o$2>i$2))return[n$4,o$2];r$2.Logger.verbose(`TextureLayout`,`Given width/height preferences were unattainable: shape:${t$1}, breakAxis:${e$4.breakAxis}`)}let a$3=t$1.slice(0);if(n$3&&(i$2*=2,a$3=a$3.map((t$2,e$5)=>e$5>=a$3.length-2?a$3[e$5]%2==0?a$3[e$5]:a$3[e$5]+1:a$3[e$5]),a$3.length===1&&(a$3=[2,a$3[0]])),a$3.length!==2){let t$2=o$1(a$3);a$3=t$2.newShape}let s$2=u$1(a$3);return a$3.length<=1&&s$2<=i$2?[1,s$2]:a$3.length===2&&a$3[0]<=i$2&&a$3[1]<=i$2?a$3:a$3.length===3&&a$3[0]*a$3[1]<=i$2&&a$3[2]<=i$2?[a$3[0]*a$3[1],a$3[2]]:a$3.length===3&&a$3[0]<=i$2&&a$3[1]*a$3[2]<=i$2?[a$3[0],a$3[1]*a$3[2]]:a$3.length===4&&a$3[0]*a$3[1]*a$3[2]<=i$2&&a$3[3]<=i$2?[a$3[0]*a$3[1]*a$3[2],a$3[3]]:a$3.length===4&&a$3[0]<=i$2&&a$3[1]*a$3[2]*a$3[3]<=i$2?[a$3[0],a$3[1]*a$3[2]*a$3[3]]:n$3?c$4(s$2/4).map(t$2=>2*t$2):c$4(s$2)}},e$3.squeezeShape=o$1,e$3.parseAxisParam=a$2,e$3.isInt=s$1,e$3.sizeFromShape=u$1,e$3.getRowsCols=function(t$1){if(t$1.length===0)throw Error(`Cannot get rows and columns of an empty shape array.`);return[t$1.length>1?t$1[t$1.length-2]:1,t$1[t$1.length-1]]},e$3.sizeToSquarishShape=c$4,e$3.getBatchDim=function(t$1,e$4=2){return u$1(t$1.slice(0,t$1.length-e$4))}},4057:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createTextureLayoutFromShape=e$3.calculateTextureWidthAndHeight=e$3.createTextureLayoutFromTextureType=void 0;let r$2=n$2(2517),i$1=n$2(2039);e$3.createTextureLayoutFromTextureType=(t$1,n$3,r$3)=>{let o$1=r$3===i$1.TextureType.unpacked||r$3===i$1.TextureType.unpackedReversed?1:4,a$2=r$3===i$1.TextureType.packed,s$1=r$3===i$1.TextureType.unpackedReversed||r$3===i$1.TextureType.packed,u$1=r$3===i$1.TextureType.packedLastDimension?n$3.length-1:void 0,c$4=r$3===i$1.TextureType.packedLastDimension?n$3.map((t$2,e$4)=>e$4===n$3.length-1?4*t$2:t$2):void 0;return(0,e$3.createTextureLayoutFromShape)(t$1,n$3,o$1,c$4,{isPacked:a$2,reverseWH:s$1,breakAxis:u$1})},e$3.calculateTextureWidthAndHeight=(t$1,n$3,r$3)=>{let i$2=(0,e$3.createTextureLayoutFromTextureType)(t$1,n$3,r$3);return[i$2.width,i$2.height]},e$3.createTextureLayoutFromShape=(t$1,e$4,n$3=1,i$2,o$1)=>{let a$2=!(!o$1||!o$1.isPacked),[s$1,u$1]=t$1.computeTextureWH(a$2&&i$2||e$4,o$1),c$4=e$4.length,l$1=e$4.slice(0);if(c$4===0&&(l$1=[1]),n$3===1)i$2=e$4;else if(a$2){if(n$3!==4)throw Error(`a packed texture must be 4-channel`);i$2=e$4,c$4>0&&(l$1[c$4-1]=Math.ceil(l$1[c$4-1]/2)),c$4>1&&(l$1[c$4-2]=Math.ceil(l$1[c$4-2]/2))}else if(!i$2)throw Error(`Unpacked shape is needed when using channels > 1`);return{width:s$1,height:u$1,channels:n$3,isPacked:a$2,shape:l$1,strides:r$2.ShapeUtil.computeStrides(l$1),unpackedShape:i$2,reversedWH:o$1&&o$1.reverseWH}}},5702:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.TextureManager=void 0;let r$2=n$2(6231);e$3.TextureManager=class{constructor(t$1,e$4,n$3,r$3){this.glContext=t$1,this.layoutStrategy=e$4,this.profiler=n$3,this.config=r$3,this.pendingRead=new Map,r$3.reuseTextures&&(this.inUseTextures=new Map,this.idleTextures=new Map,this.textureLookup=new Map)}createTextureFromLayout(t$1,e$4,n$3,i$1){let o$1=this.toEncoderType(t$1),a$2=this.glContext.getEncoder(o$1,e$4.channels||1,i$1);if(e$4.isPacked&&i$1===1)throw Error(`not implemented`);let s$1=e$4.width,u$1=e$4.height,c$4,l$1;if(this.config.reuseTextures){c$4=`${s$1}x${u$1}_${a$2.format}_${a$2.internalFormat}_${a$2.textureType}`,l$1=this.inUseTextures.get(c$4),l$1||(l$1=[],this.inUseTextures.set(c$4,l$1));let e$5=this.idleTextures.get(c$4);if(e$5&&e$5.length>0){let r$3=e$5.pop();return l$1.push(r$3),i$1===1&&this.glContext.updateTexture(r$3,s$1,u$1,a$2,this.toTextureData(t$1,n$3)),r$3}}r$2.Logger.verbose(`TextureManager`,`Creating new texture of size ${e$4.width}x${e$4.height}`);let p$5=this.glContext.allocateTexture(s$1,u$1,a$2,this.toTextureData(t$1,n$3));return this.config.reuseTextures&&(l$1.push(p$5),this.textureLookup.set(p$5,c$4)),p$5}readTexture(t$1,e$4,n$3){return n$3||=1,this.profiler.event(`backend`,`TextureManager.readTexture`,()=>{let r$3=t$1.shape.reduce((t$2,e$5)=>t$2*e$5)*n$3,i$1=this.glContext.readTexture(t$1.texture,t$1.width,t$1.height,r$3,this.toEncoderType(e$4),n$3);return this.toTensorData(e$4,i$1)})}async readTextureAsync(t$1,e$4,n$3){let r$3=t$1.tensor.dataId;if(n$3||=1,this.pendingRead.has(r$3)){let t$2=this.pendingRead.get(r$3);return new Promise(e$5=>t$2?.push(e$5))}return this.profiler.event(`backend`,`TextureManager.readTextureAsync`,async()=>{this.pendingRead.set(r$3,[]);let i$1=t$1.shape.reduce((t$2,e$5)=>t$2*e$5)*n$3;await this.glContext.createAndWaitForFence();let o$1=this.glContext.readTexture(t$1.texture,t$1.width,t$1.height,i$1,this.toEncoderType(e$4),n$3),a$2=this.toTensorData(e$4,o$1),s$1=this.pendingRead.get(r$3);return this.pendingRead.delete(r$3),s$1?.forEach(t$2=>t$2(a$2)),a$2})}readUint8TextureAsFloat(t$1){return this.profiler.event(`backend`,`TextureManager.readUint8TextureAsFloat`,()=>{let e$4=t$1.shape.reduce((t$2,e$5)=>t$2*e$5),n$3=this.glContext.readTexture(t$1.texture,t$1.width,t$1.height,4*e$4,`byte`,4);return new Float32Array(n$3.buffer,n$3.byteOffset,e$4)})}releaseTexture(t$1,e$4){let n$3;if(this.config.reuseTextures&&(n$3=this.textureLookup.get(t$1.texture),n$3)){e$4&&this.textureLookup.delete(n$3);let r$3=this.inUseTextures.get(n$3);if(r$3){let e$5=r$3.indexOf(t$1.texture);if(e$5!==-1){r$3.splice(e$5,1);let i$1=this.idleTextures.get(n$3);i$1||(i$1=[],this.idleTextures.set(n$3,i$1)),i$1.push(t$1.texture)}}}n$3&&!e$4||(r$2.Logger.verbose(`TextureManager`,`Deleting texture of size ${t$1.width}x${t$1.height}`),this.glContext.deleteTexture(t$1.texture))}toTensorData(t$1,e$4){switch(t$1){case`int16`:return e$4 instanceof Int16Array?e$4:Int16Array.from(e$4);case`int32`:return e$4 instanceof Int32Array?e$4:Int32Array.from(e$4);case`int8`:return e$4 instanceof Int8Array?e$4:Int8Array.from(e$4);case`uint16`:return e$4 instanceof Uint16Array?e$4:Uint16Array.from(e$4);case`uint32`:return e$4 instanceof Uint32Array?e$4:Uint32Array.from(e$4);case`uint8`:case`bool`:return e$4 instanceof Uint8Array?e$4:Uint8Array.from(e$4);case`float32`:return e$4 instanceof Float32Array?e$4:Float32Array.from(e$4);case`float64`:return e$4 instanceof Float64Array?e$4:Float64Array.from(e$4);default:throw Error(`TensorData type ${t$1} is not supported`)}}toTextureData(t$1,e$4){if(e$4)return e$4 instanceof Float32Array?e$4:new Float32Array(e$4)}toEncoderType(t$1){return`float`}clearActiveTextures(){this.glContext.clearActiveTextures()}}},2039:(t,e$3)=>{"use strict";var n$2;Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.TextureType=void 0,(n$2=e$3.TextureType||={})[n$2.unpacked=0]=`unpacked`,n$2[n$2.unpackedReversed=1]=`unpackedReversed`,n$2[n$2.packed=2]=`packed`,n$2[n$2.downloadUint8AsFloat=3]=`downloadUint8AsFloat`,n$2[n$2.packedLastDimension=4]=`packedLastDimension`},9390:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getGlChannels=e$3.getCoordsDataType=e$3.getSqueezedParams=e$3.squeezeInputShape=e$3.generateShaderFuncNameFromInputSamplerNameAtOutCoords=e$3.generateShaderFuncNameFromInputSamplerName=e$3.repeatedTry=e$3.getPackedShape=void 0;let r$2=n$2(2517);e$3.getPackedShape=function(t$1){let e$4=t$1.length;return t$1.slice(0,e$4-1).concat(t$1[e$4-1]/4)},e$3.repeatedTry=async function(t$1,e$4=t$2=>0,n$3){return new Promise((r$3,i$1)=>{let o$1=0,a$2=()=>{if(t$1())return void r$3();o$1++;let s$1=e$4(o$1);n$3!=null&&o$1>=n$3?i$1():setTimeout(a$2,s$1)};a$2()})},e$3.generateShaderFuncNameFromInputSamplerName=function(t$1){return(0,r$2.assert)(t$1!==void 0&&t$1.length!==0,()=>`empty string found for sampler name`),`get`+t$1.charAt(0).toUpperCase()+t$1.slice(1)},e$3.generateShaderFuncNameFromInputSamplerNameAtOutCoords=function(t$1){return(0,r$2.assert)(t$1!==void 0&&t$1.length!==0,()=>`empty string found for sampler name`),`get`+t$1.charAt(0).toUpperCase()+t$1.slice(1)+`AtOutCoords`},e$3.squeezeInputShape=function(t$1,e$4){let n$3=JSON.parse(JSON.stringify(t$1));return n$3=e$4,n$3},e$3.getSqueezedParams=function(t$1,e$4){return e$4.map(e$5=>t$1[e$5]).join(`, `)},e$3.getCoordsDataType=function(t$1){if(t$1<=1)return`int`;if(t$1===2)return`ivec2`;if(t$1===3)return`ivec3`;if(t$1===4)return`ivec4`;if(t$1===5)return`ivec5`;if(t$1===6)return`ivec6`;throw Error(`GPU for rank ${t$1} is not yet supported`)},e$3.getGlChannels=function(t$1=6){return[`x`,`y`,`z`,`w`,`u`,`v`].slice(0,t$1)}},7305:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createNewWebGLContext=e$3.createWebGLContext=void 0;let r$2=n$2(6231),i$1=n$2(1713),o$1={};function a$2(t$1){let e$4=function(){if(typeof document>`u`){if(typeof OffscreenCanvas>`u`)throw TypeError(`failed to create canvas: OffscreenCanvas is not supported`);return new OffscreenCanvas(1,1)}let t$2=document.createElement(`canvas`);return t$2.width=1,t$2.height=1,t$2}(),n$3,o$2={alpha:!1,depth:!1,antialias:!1,stencil:!1,preserveDrawingBuffer:!1,premultipliedAlpha:!1,failIfMajorPerformanceCaveat:!1};if((!t$1||t$1===`webgl2`)&&(n$3=e$4.getContext(`webgl2`,o$2),n$3))try{return new i$1.WebGLContext(n$3,2)}catch(t$2){r$2.Logger.warning(`GlContextFactory`,`failed to create WebGLContext using contextId 'webgl2'. Error: ${t$2}`)}if((!t$1||t$1===`webgl`)&&(n$3=e$4.getContext(`webgl`,o$2)||e$4.getContext(`experimental-webgl`,o$2),n$3))try{return new i$1.WebGLContext(n$3,1)}catch(t$2){r$2.Logger.warning(`GlContextFactory`,`failed to create WebGLContext using contextId 'webgl' or 'experimental-webgl'. Error: ${t$2}`)}throw Error(`WebGL is not supported`)}e$3.createWebGLContext=function t$1(e$4){let n$3;e$4&&e$4!==`webgl2`||!(`webgl2`in o$1)?e$4&&e$4!==`webgl`||!(`webgl`in o$1)||(n$3=o$1.webgl):n$3=o$1.webgl2,n$3||=a$2(e$4),e$4=e$4||n$3.version===1?`webgl`:`webgl2`;let r$3=n$3.gl;return o$1[e$4]=n$3,r$3.isContextLost()?(delete o$1[e$4],t$1(e$4)):(r$3.disable(r$3.DEPTH_TEST),r$3.disable(r$3.STENCIL_TEST),r$3.disable(r$3.BLEND),r$3.disable(r$3.DITHER),r$3.disable(r$3.POLYGON_OFFSET_FILL),r$3.disable(r$3.SAMPLE_COVERAGE),r$3.enable(r$3.SCISSOR_TEST),r$3.enable(r$3.CULL_FACE),r$3.cullFace(r$3.BACK),n$3)},e$3.createNewWebGLContext=a$2},1713:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),o$1=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&r$2(e$4,t$1,n$3);return i$1(e$4,t$1),e$4};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLContext=e$3.linearSearchLastTrue=void 0;let a$2=n$2(1670),s$1=o$1(n$2(7769)),u$1=n$2(9390);function c$4(t$1){let e$4=0;for(;e$4this.isTimerResultAvailable(t$1)),this.getTimerResult(t$1)}async createAndWaitForFence(){let t$1=this.createFence(this.gl);return this.pollFence(t$1)}createFence(t$1){let e$4,n$3=t$1,r$3=n$3.fenceSync(n$3.SYNC_GPU_COMMANDS_COMPLETE,0);return t$1.flush(),e$4=r$3===null?()=>!0:()=>{let t$2=n$3.clientWaitSync(r$3,0,0);return t$2===n$3.ALREADY_SIGNALED||t$2===n$3.CONDITION_SATISFIED},{query:r$3,isFencePassed:e$4}}async pollFence(t$1){return new Promise(e$4=>{this.addItemToPoll(()=>t$1.isFencePassed(),()=>e$4())})}pollItems(){let t$1=c$4(this.itemsToPoll.map(t$2=>t$2.isDoneFn));for(let e$4=0;e$4<=t$1;++e$4){let{resolveFn:t$2}=this.itemsToPoll[e$4];t$2()}this.itemsToPoll=this.itemsToPoll.slice(t$1+1)}async addItemToPoll(t$1,e$4){this.itemsToPoll.push({isDoneFn:t$1,resolveFn:e$4}),this.itemsToPoll.length>1||await(0,u$1.repeatedTry)(()=>(this.pollItems(),this.itemsToPoll.length===0))}}},1036:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.ExecutionPlan=void 0;let r$2=n$2(6231);class i$1{constructor(t$1,e$4){this.op=t$1,this.node=e$4}}e$3.ExecutionPlan=class{constructor(t$1,e$4,n$3){this.graph=t$1,this.profiler=n$3,this.initialize(e$4)}initialize(t$1){this.profiler.event(`session`,`ExecutionPlan.initialize`,()=>{let e$4=this.graph.getNodes();if(e$4.length!==t$1.length)throw Error(`The size of nodes and OPs do not match.`);this._ops=t$1.map((t$2,n$3)=>new i$1(t$2,e$4[n$3])),this.reset(),this._starter=[],this._ops.forEach((t$2,e$5)=>{let n$3=!0;for(let e$6 of t$2.node.inputs)if(!this._values[e$6]&&this.graph.getInputIndices().indexOf(e$6)===-1){n$3=!1;break}n$3&&this._starter.push(e$5)})})}reset(){this._values=this.graph.getValues().map(t$1=>t$1.tensor)}async execute(t$1,e$4){return this.profiler.event(`session`,`ExecutionPlan.execute`,async()=>{this.reset();let n$3=t$1.createInferenceHandler(),i$2=this.graph.getInputIndices();if(e$4.length!==i$2.length)throw Error(`number of input tensors don't match the number of inputs to the model: actual: ${e$4.length} expected: ${i$2.length}`);e$4.forEach((t$2,e$5)=>{let n$4=i$2[e$5];this._values[n$4]=t$2});let o$1=this._starter.slice(0),a$2=this.graph.getValues(),s$1=this.graph.getNodes(),u$1=0;for(;u$1this._values[t$3]);if(i$3.indexOf(void 0)!==-1)throw Error(`unresolved input detected: op: ${e$5.node}`);let c$5=i$3;r$2.Logger.verbose(`ExecPlan`,`Runing op:${e$5.node.name} (${c$5.map((t$3,n$4)=>`'${e$5.node.inputs[n$4]}': ${t$3.type}[${t$3.dims.join(`,`)}]`).join(`, `)})`);let l$1=await this.profiler.event(`node`,e$5.node.name,async()=>e$5.op.impl(n$3,c$5,e$5.op.context));if(l$1.length!==e$5.node.outputs.length)throw Error(`the size of output does not match model definition.`);l$1.forEach((t$3,n$4)=>{let r$3=e$5.node.outputs[n$4];if(this._values[r$3])throw Error(`output [${r$3}] already has value: op:${e$5.node.name}`);this._values[r$3]=t$3});let p$5=new Set;l$1.forEach((t$3,n$4)=>{let r$3=e$5.node.outputs[n$4];for(let t$4 of a$2[r$3].to){let e$6=s$1[t$4],n$5=!0;for(let t$5 of e$6.inputs)if(!this._values[t$5]){n$5=!1;break}n$5&&p$5.add(t$4)}}),o$1.push(...p$5)}let c$4=[];for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Graph=void 0;let r$2=n$2(1446),i$1=n$2(7778),o$1=n$2(9395),a$2=n$2(9162),s$1=n$2(2517);var u$1=o$1.onnxruntime.experimental.fbs;e$3.Graph={from:(t$1,e$4)=>new p$5(t$1,e$4)};class c$4{constructor(t$1){this._from=void 0,this._to=[],this.tensor=void 0,this.type=void 0,t$1&&(this.type=s$1.ProtoUtil.tensorValueTypeFromProto(t$1.type.tensorType))}get from(){return this._from}get to(){return this._to}}class l$1{constructor(t$1,e$4){t$1 instanceof r$2.onnx.NodeProto?(this.name=t$1.name,this.opType=t$1.opType,this.attributes=new i$1.Attribute(t$1.attribute)):t$1 instanceof u$1.Node&&(this.name=e$4??t$1.name(),this.opType=t$1.opType(),this.attributes=new i$1.Attribute(s$1.ProtoUtil.tensorAttributesFromORTFormat(t$1))),this.inputs=[],this.outputs=[],this.executeNode=!0}}class p$5{constructor(t$1,e$4){if(!t$1)throw TypeError(`graph is empty`);this.buildGraph(t$1),this.transformGraph(e$4),this.checkIsAcyclic()}getInputIndices(){return this._allInputIndices}getInputNames(){return this._allInputNames}getOutputIndices(){return this._allOutputIndices}getOutputNames(){return this._allOutputNames}getValues(){return this._allData}getNodes(){return this._nodes}buildGraph(t$1){if(t$1 instanceof r$2.onnx.GraphProto)this.buildGraphFromOnnxFormat(t$1);else{if(!(t$1 instanceof u$1.Graph))throw TypeError(`Graph type is not supported.`);this.buildGraphFromOrtFormat(t$1)}}buildGraphFromOnnxFormat(t$1){let e$4=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];let n$3=new Map;if(!t$1.input)throw Error(`missing information in graph: input`);let r$3=[];for(let n$4 of t$1.input){if(e$4.has(n$4.name))throw Error(`duplicated input name: ${n$4.name}`);let t$2=this._allData.push(new c$4(n$4))-1;e$4.set(n$4.name,t$2),r$3.push(n$4.name)}if(!t$1.initializer)throw Error(`missing information in graph: initializer`);for(let n$4 of t$1.initializer){let t$2=e$4.get(n$4.name);if(t$2===void 0){let r$4=new c$4;r$4.type={shape:{dims:s$1.ProtoUtil.tensorDimsFromProto(n$4.dims)},tensorType:s$1.ProtoUtil.tensorDataTypeFromProto(n$4.dataType)},t$2=this._allData.push(r$4)-1,e$4.set(n$4.name,t$2)}this._allData[t$2]._from=-1,this._allData[t$2].tensor=a$2.Tensor.fromProto(n$4)}for(let t$2=0;t$2{this._allData[e$5]._to.forEach(e$6=>{t$1.add(e$6)})});let e$4=Array.from(t$1),n$3=Array(this._nodes.length).fill(`white`);for(;e$4.length>0;){let t$2=e$4.pop();n$3[t$2]===`gray`?n$3[t$2]=`black`:(e$4.push(t$2),n$3[t$2]=`gray`,this._nodes[t$2].outputs.forEach(r$3=>{let i$2=this._allData[r$3];if(i$2.tensor!==void 0)throw Error(`node outputs should not be initialized`);if(i$2._from!==t$2)throw Error(`from property of the Value object doesn't match index of Node being processed`);i$2._to.forEach(t$3=>{if(n$3[t$3]===`gray`)throw Error(`model graph is cyclic`);n$3[t$3]===`white`&&e$4.push(t$3)})}))}}transformGraph(t$1){this.removeAllIdentityNodes(),this.removeAllDropoutNodes(),this.fuseConvActivationNodes(),t$1&&t$1.transformGraph(this),this.finalizeGraph()}finalizeGraph(){let t$1=0;for(let e$4=0;e$40&&(this._nodes[e$4].inputs.forEach(n$3=>{let r$3=this._allData[n$3]._to.indexOf(e$4+t$1);r$3!==-1&&(this._allData[n$3]._to[r$3]=e$4)}),this._nodes[e$4].outputs.forEach(n$3=>{this._allData[n$3]._from&&this._allData[n$3]._from===e$4+t$1&&(this._allData[n$3]._from=e$4)})):(t$1++,this._nodes[e$4].outputs.forEach(t$2=>{this._allData[t$2]._from=-2}),this._nodes.splice(e$4,1),e$4--);t$1=0;for(let e$4=0;e$40){let n$3=-1;this._allData[e$4].from!==void 0&&this._allData[e$4].from!==-1?(n$3=this._nodes[this._allData[e$4].from].outputs.indexOf(e$4+t$1),n$3!==-1&&(this._nodes[this._allData[e$4].from].outputs[n$3]=e$4)):(n$3=this._allInputIndices.indexOf(e$4+t$1),n$3!==-1&&(this._allInputIndices[n$3]=e$4)),this._allData[e$4].to.forEach(r$3=>{n$3=this._nodes[r$3].inputs.indexOf(e$4+t$1),n$3!==-1&&(this._nodes[r$3].inputs[n$3]=e$4)}),this._allData[e$4].to.length===0&&(n$3=this._allOutputIndices.indexOf(e$4+t$1),n$3!==-1&&(this._allOutputIndices[n$3]=e$4))}}else t$1++,this._allData.splice(e$4,1),e$4--}deleteNode(t$1){let e$4=this._nodes[t$1];if(e$4.outputs.length>1){for(let t$2=1;t$20)throw Error(`Node deletion with more than one output connected to other nodes is not supported. `)}e$4.executeNode=!1;let n$3=e$4.inputs[0],r$3=e$4.outputs[0],i$2=this._allData[r$3].to,o$2=this._allData[n$3].to.indexOf(t$1);if(o$2===-1)throw Error(`The Value object doesn't have the current Node in it's 'to' property `);this._allData[n$3].to.splice(o$2,1),this._allData[r$3]._to=[];let a$3=this._allOutputIndices.indexOf(r$3);if(a$3!==-1&&(this._allOutputIndices[a$3]=n$3),i$2&&i$2.length>0)for(let t$2 of i$2){let e$5=this._nodes[t$2].inputs.indexOf(r$3);if(e$5===-1)throw Error(`The Node object doesn't have the output Value in it's 'inputs' property `);this._nodes[t$2].inputs[e$5]=n$3,this._allData[n$3].to.push(t$2)}}removeAllDropoutNodes(){let t$1=0;for(let e$4 of this._nodes){if(e$4.opType===`Dropout`){if(e$4.inputs.length!==1)throw Error(`Dropout nodes should only contain one input. `);if(e$4.outputs.length!==1&&e$4.outputs.length!==2)throw Error(`Dropout nodes should contain either 1 or 2 output(s)`);if(e$4.outputs.length===2&&this._allData[e$4.outputs[1]]._to.length!==0)throw Error(`Dropout nodes's second output should not be referenced by other nodes`);this.deleteNode(t$1)}t$1++}}removeAllIdentityNodes(){let t$1=0;for(let e$4 of this._nodes)e$4.opType===`Identity`&&this.deleteNode(t$1),t$1++}isActivation(t$1){switch(t$1.opType){case`Relu`:case`Sigmoid`:case`Clip`:return!0;default:return!1}}fuseConvActivationNodes(){for(let t$1 of this._nodes)if(t$1.opType===`Conv`){let e$4=this._allData[t$1.outputs[0]]._to;if(e$4.length===1&&this.isActivation(this._nodes[e$4[0]])){let n$3=this._nodes[e$4[0]];if(n$3.opType===`Clip`)if(n$3.inputs.length===1)try{t$1.attributes.set(`activation_params`,`floats`,[n$3.attributes.getFloat(`min`),n$3.attributes.getFloat(`max`)])}catch{t$1.attributes.set(`activation_params`,`floats`,[s$1.MIN_CLIP,s$1.MAX_CLIP])}else{if(!(n$3.inputs.length>=3&&this._allData[n$3.inputs[1]].tensor!==void 0&&this._allData[n$3.inputs[2]].tensor!==void 0))continue;t$1.attributes.set(`activation_params`,`floats`,[this._allData[n$3.inputs[1]].tensor.floatData[0],this._allData[n$3.inputs[2]].tensor.floatData[0]])}t$1.attributes.set(`activation`,`string`,n$3.opType),this.deleteNode(e$4[0])}}}}},6231:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.now=e$3.Profiler=e$3.Logger=void 0;let n$2={verbose:1e3,info:2e3,warning:4e3,error:5e3,fatal:6e3},r$2={none:new class{log(t$1,e$4,n$3){}},console:new class{log(t$1,e$4,n$3){console.log(`${this.color(t$1)} ${n$3?`\x1B[35m`+n$3+`\x1B[0m `:``}${e$4}`)}color(t$1){switch(t$1){case`verbose`:return`\x1B[34;40mv\x1B[0m`;case`info`:return`\x1B[32mi\x1B[0m`;case`warning`:return`\x1B[30;43mw\x1B[0m`;case`error`:return`\x1B[31;40me\x1B[0m`;case`fatal`:return`\x1B[101mf\x1B[0m`;default:throw Error(`unsupported severity: ${t$1}`)}}}},i$1={provider:`console`,minimalSeverity:`warning`,logDateTime:!0,logSourceLocation:!1},o$1={"":i$1};function a$2(t$1,e$4,n$3,r$3){if(e$4===void 0)return i$2=t$1,{verbose:a$2.verbose.bind(null,i$2),info:a$2.info.bind(null,i$2),warning:a$2.warning.bind(null,i$2),error:a$2.error.bind(null,i$2),fatal:a$2.fatal.bind(null,i$2)};if(n$3===void 0)s$1(t$1,e$4);else if(typeof n$3==`number`&&r$3===void 0)s$1(t$1,e$4);else if(typeof n$3==`string`&&r$3===void 0)s$1(t$1,n$3,0,e$4);else{if(typeof n$3!=`string`||typeof r$3!=`number`)throw TypeError(`input is valid`);s$1(t$1,n$3,0,e$4)}var i$2}function s$1(t$1,e$4,i$2,a$3){let s$2=o$1[a$3||``]||o$1[``];n$2[t$1]{a$3.then(async e$6=>{i$2&&await i$2.end(),t$2(e$6)},async t$3=>{i$2&&await i$2.end(),e$5(t$3)})});if(!o$2&&i$2){let t$2=i$2.end();if(t$2&&typeof t$2.then==`function`)return new Promise((e$5,n$4)=>{t$2.then(()=>{e$5(a$3)},t$3=>{n$4(t$3)})})}return a$3}begin(t$1,n$3,r$3){if(!this._started)throw Error(`profiler is not started yet`);if(r$3===void 0){let r$4=(0,e$3.now)();return this.flush(r$4),new u$1(t$1,n$3,r$4,t$2=>this.endSync(t$2))}{let e$4=r$3.beginTimer();return new u$1(t$1,n$3,0,async t$2=>this.end(t$2),e$4,r$3)}}async end(t$1){let e$4=await t$1.checkTimer();this._timingEvents.length=this._flushBatchSize||t$1-this._flushTime>=this._flushIntervalInMilliseconds){for(let t$2=this._flushPointer;this._flushPointerperformance.now():Date.now},2644:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Model=void 0;let r$2=n$2(5686),i$1=n$2(1446),o$1=n$2(7070),a$2=n$2(9395),s$1=n$2(2517);var u$1=a$2.onnxruntime.experimental.fbs;e$3.Model=class{constructor(){}load(t$1,e$4,n$3){if(!n$3)try{return void this.loadFromOnnxFormat(t$1,e$4)}catch(t$2){if(n$3!==void 0)throw t$2}this.loadFromOrtFormat(t$1,e$4)}loadFromOnnxFormat(t$1,e$4){let n$3=i$1.onnx.ModelProto.decode(t$1);if(s$1.LongUtil.longToNumber(n$3.irVersion)<3)throw Error(`only support ONNX model with IR_VERSION>=3`);this._opsets=n$3.opsetImport.map(t$2=>({domain:t$2.domain,version:s$1.LongUtil.longToNumber(t$2.version)})),this._graph=o$1.Graph.from(n$3.graph,e$4)}loadFromOrtFormat(t$1,e$4){let n$3=new r$2.flatbuffers.ByteBuffer(t$1),i$2=u$1.InferenceSession.getRootAsInferenceSession(n$3).model();if(s$1.LongUtil.longToNumber(i$2.irVersion())<3)throw Error(`only support ONNX model with IR_VERSION>=3`);this._opsets=[];for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.FLOAT_TYPES=e$3.INT_TYPES=e$3.NUMBER_TYPES=void 0,e$3.NUMBER_TYPES=[`float32`,`float64`,`int32`,`int16`,`int8`,`uint16`,`uint32`,`uint8`],e$3.INT_TYPES=[`int32`,`int16`,`int8`,`uint16`,`uint32`,`uint8`],e$3.FLOAT_TYPES=[`float32`,`float64`]},1047:(t,e$3)=>{"use strict";function n$2(t$1,e$4){if(e$4.endsWith(`+`)){let n$3=Number.parseInt(e$4.substring(0,e$4.length-1),10);return!isNaN(n$3)&&n$3<=t$1}if(e$4.split(`-`).length===2){let n$3=e$4.split(`-`),r$2=Number.parseInt(n$3[0],10),i$1=Number.parseInt(n$3[1],10);return!isNaN(r$2)&&!isNaN(i$1)&&r$2<=t$1&&t$1<=i$1}return Number.parseInt(e$4,10)===t$1}Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.resolveOperator=void 0,e$3.resolveOperator=function(t$1,e$4,r$2){for(let i$1 of r$2){let r$3=i$1[0],o$1=i$1[1],a$2=i$1[2],s$1=i$1[3],u$1=i$1[4];if(t$1.opType===r$3){for(let t$2 of e$4)if((t$2.domain===o$1||t$2.domain===`ai.onnx`&&o$1===``)&&n$2(t$2.version,a$2))return{opImpl:s$1,opInit:u$1}}}throw TypeError(`cannot resolve operator '${t$1.opType}' with opsets: ${e$4.map(t$2=>`${t$2.domain||`ai.onnx`} v${t$2.version}`).join(`, `)}`)}},9395:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.onnxruntime=void 0;let r$2=n$2(5686);var i$1,o$1;i$1=e$3.onnxruntime||={},function(t$1){let e$4;(function(t$2){t$2[t$2.UNDEFINED=0]=`UNDEFINED`,t$2[t$2.FLOAT=1]=`FLOAT`,t$2[t$2.INT=2]=`INT`,t$2[t$2.STRING=3]=`STRING`,t$2[t$2.TENSOR=4]=`TENSOR`,t$2[t$2.GRAPH=5]=`GRAPH`,t$2[t$2.FLOATS=6]=`FLOATS`,t$2[t$2.INTS=7]=`INTS`,t$2[t$2.STRINGS=8]=`STRINGS`,t$2[t$2.TENSORS=9]=`TENSORS`,t$2[t$2.GRAPHS=10]=`GRAPHS`,t$2[t$2.SPARSE_TENSOR=11]=`SPARSE_TENSOR`,t$2[t$2.SPARSE_TENSORS=12]=`SPARSE_TENSORS`})(e$4=t$1.AttributeType||={})}((o$1=i$1.experimental||={}).fbs||(o$1.fbs={})),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.UNKNOWN=0]=`UNKNOWN`,t$4[t$4.VALUE=1]=`VALUE`,t$4[t$4.PARAM=2]=`PARAM`})(e$4=t$3.DimensionValueType||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.UNDEFINED=0]=`UNDEFINED`,t$4[t$4.FLOAT=1]=`FLOAT`,t$4[t$4.UINT8=2]=`UINT8`,t$4[t$4.INT8=3]=`INT8`,t$4[t$4.UINT16=4]=`UINT16`,t$4[t$4.INT16=5]=`INT16`,t$4[t$4.INT32=6]=`INT32`,t$4[t$4.INT64=7]=`INT64`,t$4[t$4.STRING=8]=`STRING`,t$4[t$4.BOOL=9]=`BOOL`,t$4[t$4.FLOAT16=10]=`FLOAT16`,t$4[t$4.DOUBLE=11]=`DOUBLE`,t$4[t$4.UINT32=12]=`UINT32`,t$4[t$4.UINT64=13]=`UINT64`,t$4[t$4.COMPLEX64=14]=`COMPLEX64`,t$4[t$4.COMPLEX128=15]=`COMPLEX128`,t$4[t$4.BFLOAT16=16]=`BFLOAT16`})(e$4=t$3.TensorDataType||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.Primitive=0]=`Primitive`,t$4[t$4.Fused=1]=`Fused`})(e$4=t$3.NodeType||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.NONE=0]=`NONE`,t$4[t$4.tensor_type=1]=`tensor_type`,t$4[t$4.sequence_type=2]=`sequence_type`,t$4[t$4.map_type=3]=`map_type`})(e$4=t$3.TypeInfoValue||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsShape(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsShape(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}dim(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,4);return r$3?(n$4||new t$1.experimental.fbs.Dimension).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}dimLength(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startShape(t$2){t$2.startObject(1)}static addDim(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static createDimVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startDimVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endShape(t$2){return t$2.endObject()}static createShape(t$2,e$6){return n$3.startShape(t$2),n$3.addDim(t$2,e$6),n$3.endShape(t$2)}}e$5.Shape=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsDimension(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsDimension(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}value(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.DimensionValue).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}denotation(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}static startDimension(t$2){t$2.startObject(2)}static addValue(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDenotation(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endDimension(t$2){return t$2.endObject()}static createDimension(t$2,e$6,r$3){return n$3.startDimension(t$2),n$3.addValue(t$2,e$6),n$3.addDenotation(t$2,r$3),n$3.endDimension(t$2)}}e$5.Dimension=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsDimensionValue(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsDimensionValue(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}dimType(){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.readInt8(this.bb_pos+e$6):t$1.experimental.fbs.DimensionValueType.UNKNOWN}dimValue(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}dimParam(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}static startDimensionValue(t$2){t$2.startObject(3)}static addDimType(e$6,n$4){e$6.addFieldInt8(0,n$4,t$1.experimental.fbs.DimensionValueType.UNKNOWN)}static addDimValue(t$2,e$6){t$2.addFieldInt64(1,e$6,t$2.createLong(0,0))}static addDimParam(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endDimensionValue(t$2){return t$2.endObject()}static createDimensionValue(t$2,e$6,r$3,i$2){return n$3.startDimensionValue(t$2),n$3.addDimType(t$2,e$6),n$3.addDimValue(t$2,r$3),n$3.addDimParam(t$2,i$2),n$3.endDimensionValue(t$2)}}e$5.DimensionValue=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsTensorTypeAndShape(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsTensorTypeAndShape(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}elemType(){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.TensorDataType.UNDEFINED}shape(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.Shape).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startTensorTypeAndShape(t$2){t$2.startObject(2)}static addElemType(e$6,n$4){e$6.addFieldInt32(0,n$4,t$1.experimental.fbs.TensorDataType.UNDEFINED)}static addShape(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endTensorTypeAndShape(t$2){return t$2.endObject()}static createTensorTypeAndShape(t$2,e$6,r$3){return n$3.startTensorTypeAndShape(t$2),n$3.addElemType(t$2,e$6),n$3.addShape(t$2,r$3),n$3.endTensorTypeAndShape(t$2)}}e$5.TensorTypeAndShape=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsMapType(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsMapType(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}keyType(){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.TensorDataType.UNDEFINED}valueType(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startMapType(t$2){t$2.startObject(2)}static addKeyType(e$6,n$4){e$6.addFieldInt32(0,n$4,t$1.experimental.fbs.TensorDataType.UNDEFINED)}static addValueType(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endMapType(t$2){return t$2.endObject()}static createMapType(t$2,e$6,r$3){return n$3.startMapType(t$2),n$3.addKeyType(t$2,e$6),n$3.addValueType(t$2,r$3),n$3.endMapType(t$2)}}e$5.MapType=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSequenceType(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSequenceType(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}elemType(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startSequenceType(t$2){t$2.startObject(1)}static addElemType(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static endSequenceType(t$2){return t$2.endObject()}static createSequenceType(t$2,e$6){return n$3.startSequenceType(t$2),n$3.addElemType(t$2,e$6),n$3.endSequenceType(t$2)}}e$5.SequenceType=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(t$2.fbs||={}).EdgeEnd=class{constructor(){this.bb=null,this.bb_pos=0}__init(t$3,e$4){return this.bb_pos=t$3,this.bb=e$4,this}nodeIndex(){return this.bb.readUint32(this.bb_pos)}srcArgIndex(){return this.bb.readInt32(this.bb_pos+4)}dstArgIndex(){return this.bb.readInt32(this.bb_pos+8)}static createEdgeEnd(t$3,e$4,n$3,r$3){return t$3.prep(4,12),t$3.writeInt32(r$3),t$3.writeInt32(n$3),t$3.writeInt32(e$4),t$3.offset()}}})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsNodeEdge(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsNodeEdge(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}nodeIndex(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.readUint32(this.bb_pos+t$2):0}inputEdges(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+r$3)+12*e$6,this.bb):null}inputEdgesLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}outputEdges(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,8);return r$3?(n$4||new t$1.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+r$3)+12*e$6,this.bb):null}outputEdgesLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startNodeEdge(t$2){t$2.startObject(3)}static addNodeIndex(t$2,e$6){t$2.addFieldInt32(0,e$6,0)}static addInputEdges(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static startInputEdgesVector(t$2,e$6){t$2.startVector(12,e$6,4)}static addOutputEdges(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static startOutputEdgesVector(t$2,e$6){t$2.startVector(12,e$6,4)}static endNodeEdge(t$2){return t$2.endObject()}static createNodeEdge(t$2,e$6,r$3,i$2){return n$3.startNodeEdge(t$2),n$3.addNodeIndex(t$2,e$6),n$3.addInputEdges(t$2,r$3),n$3.addOutputEdges(t$2,i$2),n$3.endNodeEdge(t$2)}}e$5.NodeEdge=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsNode(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsNode(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}domain(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}sinceVersion(){let t$2=this.bb.__offset(this.bb_pos,10);return t$2?this.bb.readInt32(this.bb_pos+t$2):0}index(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.readUint32(this.bb_pos+t$2):0}opType(t$2){let e$6=this.bb.__offset(this.bb_pos,14);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}type(){let e$6=this.bb.__offset(this.bb_pos,16);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.NodeType.Primitive}executionProviderType(t$2){let e$6=this.bb.__offset(this.bb_pos,18);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}inputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,20);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}inputsLength(){let t$2=this.bb.__offset(this.bb_pos,20);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}outputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,22);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}outputsLength(){let t$2=this.bb.__offset(this.bb_pos,22);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}attributes(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,24);return r$3?(n$4||new t$1.experimental.fbs.Attribute).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}attributesLength(){let t$2=this.bb.__offset(this.bb_pos,24);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}inputArgCounts(t$2){let e$6=this.bb.__offset(this.bb_pos,26);return e$6?this.bb.readInt32(this.bb.__vector(this.bb_pos+e$6)+4*t$2):0}inputArgCountsLength(){let t$2=this.bb.__offset(this.bb_pos,26);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}inputArgCountsArray(){let t$2=this.bb.__offset(this.bb_pos,26);return t$2?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$2),this.bb.__vector_len(this.bb_pos+t$2)):null}implicitInputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,28);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}implicitInputsLength(){let t$2=this.bb.__offset(this.bb_pos,28);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startNode(t$2){t$2.startObject(13)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addDomain(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static addSinceVersion(t$2,e$6){t$2.addFieldInt32(3,e$6,0)}static addIndex(t$2,e$6){t$2.addFieldInt32(4,e$6,0)}static addOpType(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static addType(e$6,n$4){e$6.addFieldInt32(6,n$4,t$1.experimental.fbs.NodeType.Primitive)}static addExecutionProviderType(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static addInputs(t$2,e$6){t$2.addFieldOffset(8,e$6,0)}static createInputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startInputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addOutputs(t$2,e$6){t$2.addFieldOffset(9,e$6,0)}static createOutputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startOutputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addAttributes(t$2,e$6){t$2.addFieldOffset(10,e$6,0)}static createAttributesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startAttributesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addInputArgCounts(t$2,e$6){t$2.addFieldOffset(11,e$6,0)}static createInputArgCountsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt32(e$6[n$4]);return t$2.endVector()}static startInputArgCountsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addImplicitInputs(t$2,e$6){t$2.addFieldOffset(12,e$6,0)}static createImplicitInputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startImplicitInputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endNode(t$2){return t$2.endObject()}static createNode(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4,l$1,p$5,f$3,d$2,h$3){return n$3.startNode(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addDomain(t$2,i$2),n$3.addSinceVersion(t$2,o$2),n$3.addIndex(t$2,a$2),n$3.addOpType(t$2,s$1),n$3.addType(t$2,u$1),n$3.addExecutionProviderType(t$2,c$4),n$3.addInputs(t$2,l$1),n$3.addOutputs(t$2,p$5),n$3.addAttributes(t$2,f$3),n$3.addInputArgCounts(t$2,d$2),n$3.addImplicitInputs(t$2,h$3),n$3.endNode(t$2)}}e$5.Node=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsValueInfo(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsValueInfo(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}type(e$6){let n$4=this.bb.__offset(this.bb_pos,8);return n$4?(e$6||new t$1.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startValueInfo(t$2){t$2.startObject(3)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addType(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endValueInfo(t$2){return t$2.endObject()}static createValueInfo(t$2,e$6,r$3,i$2){return n$3.startValueInfo(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addType(t$2,i$2),n$3.endValueInfo(t$2)}}e$5.ValueInfo=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsTypeInfo(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsTypeInfo(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}denotation(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}valueType(){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.readUint8(this.bb_pos+e$6):t$1.experimental.fbs.TypeInfoValue.NONE}value(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__union(t$2,this.bb_pos+e$6):null}static startTypeInfo(t$2){t$2.startObject(3)}static addDenotation(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addValueType(e$6,n$4){e$6.addFieldInt8(1,n$4,t$1.experimental.fbs.TypeInfoValue.NONE)}static addValue(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endTypeInfo(t$2){return t$2.endObject()}static createTypeInfo(t$2,e$6,r$3,i$2){return n$3.startTypeInfo(t$2),n$3.addDenotation(t$2,e$6),n$3.addValueType(t$2,r$3),n$3.addValue(t$2,i$2),n$3.endTypeInfo(t$2)}}e$5.TypeInfo=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){class e$4{constructor(){this.bb=null,this.bb_pos=0}__init(t$4,e$5){return this.bb_pos=t$4,this.bb=e$5,this}static getRootAsOperatorSetId(t$4,n$3){return(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}static getSizePrefixedRootAsOperatorSetId(t$4,n$3){return t$4.setPosition(t$4.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}domain(t$4){let e$5=this.bb.__offset(this.bb_pos,4);return e$5?this.bb.__string(this.bb_pos+e$5,t$4):null}version(){let t$4=this.bb.__offset(this.bb_pos,6);return t$4?this.bb.readInt64(this.bb_pos+t$4):this.bb.createLong(0,0)}static startOperatorSetId(t$4){t$4.startObject(2)}static addDomain(t$4,e$5){t$4.addFieldOffset(0,e$5,0)}static addVersion(t$4,e$5){t$4.addFieldInt64(1,e$5,t$4.createLong(0,0))}static endOperatorSetId(t$4){return t$4.endObject()}static createOperatorSetId(t$4,n$3,r$3){return e$4.startOperatorSetId(t$4),e$4.addDomain(t$4,n$3),e$4.addVersion(t$4,r$3),e$4.endOperatorSetId(t$4)}}t$3.OperatorSetId=e$4})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsTensor(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsTensor(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}dims(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.readInt64(this.bb.__vector(this.bb_pos+e$6)+8*t$2):this.bb.createLong(0,0)}dimsLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}dataType(){let e$6=this.bb.__offset(this.bb_pos,10);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.TensorDataType.UNDEFINED}rawData(t$2){let e$6=this.bb.__offset(this.bb_pos,12);return e$6?this.bb.readUint8(this.bb.__vector(this.bb_pos+e$6)+t$2):0}rawDataLength(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}rawDataArray(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$2),this.bb.__vector_len(this.bb_pos+t$2)):null}stringData(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,14);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}stringDataLength(){let t$2=this.bb.__offset(this.bb_pos,14);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startTensor(t$2){t$2.startObject(6)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addDims(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static createDimsVector(t$2,e$6){t$2.startVector(8,e$6.length,8);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt64(e$6[n$4]);return t$2.endVector()}static startDimsVector(t$2,e$6){t$2.startVector(8,e$6,8)}static addDataType(e$6,n$4){e$6.addFieldInt32(3,n$4,t$1.experimental.fbs.TensorDataType.UNDEFINED)}static addRawData(t$2,e$6){t$2.addFieldOffset(4,e$6,0)}static createRawDataVector(t$2,e$6){t$2.startVector(1,e$6.length,1);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt8(e$6[n$4]);return t$2.endVector()}static startRawDataVector(t$2,e$6){t$2.startVector(1,e$6,1)}static addStringData(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static createStringDataVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startStringDataVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endTensor(t$2){return t$2.endObject()}static createTensor(t$2,e$6,r$3,i$2,o$2,a$2,s$1){return n$3.startTensor(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addDims(t$2,i$2),n$3.addDataType(t$2,o$2),n$3.addRawData(t$2,a$2),n$3.addStringData(t$2,s$1),n$3.endTensor(t$2)}}e$5.Tensor=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSparseTensor(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSparseTensor(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}values(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}indices(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}dims(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.readInt64(this.bb.__vector(this.bb_pos+e$6)+8*t$2):this.bb.createLong(0,0)}dimsLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startSparseTensor(t$2){t$2.startObject(3)}static addValues(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addIndices(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addDims(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static createDimsVector(t$2,e$6){t$2.startVector(8,e$6.length,8);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt64(e$6[n$4]);return t$2.endVector()}static startDimsVector(t$2,e$6){t$2.startVector(8,e$6,8)}static endSparseTensor(t$2){return t$2.endObject()}static createSparseTensor(t$2,e$6,r$3,i$2){return n$3.startSparseTensor(t$2),n$3.addValues(t$2,e$6),n$3.addIndices(t$2,r$3),n$3.addDims(t$2,i$2),n$3.endSparseTensor(t$2)}}e$5.SparseTensor=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsAttribute(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsAttribute(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}type(){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.AttributeType.UNDEFINED}f(){let t$2=this.bb.__offset(this.bb_pos,10);return t$2?this.bb.readFloat32(this.bb_pos+t$2):0}i(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}s(t$2){let e$6=this.bb.__offset(this.bb_pos,14);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}t(e$6){let n$4=this.bb.__offset(this.bb_pos,16);return n$4?(e$6||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}g(e$6){let n$4=this.bb.__offset(this.bb_pos,18);return n$4?(e$6||new t$1.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}floats(t$2){let e$6=this.bb.__offset(this.bb_pos,20);return e$6?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e$6)+4*t$2):0}floatsLength(){let t$2=this.bb.__offset(this.bb_pos,20);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}floatsArray(){let t$2=this.bb.__offset(this.bb_pos,20);return t$2?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$2),this.bb.__vector_len(this.bb_pos+t$2)):null}ints(t$2){let e$6=this.bb.__offset(this.bb_pos,22);return e$6?this.bb.readInt64(this.bb.__vector(this.bb_pos+e$6)+8*t$2):this.bb.createLong(0,0)}intsLength(){let t$2=this.bb.__offset(this.bb_pos,22);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}strings(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,24);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}stringsLength(){let t$2=this.bb.__offset(this.bb_pos,24);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}tensors(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,26);return r$3?(n$4||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}tensorsLength(){let t$2=this.bb.__offset(this.bb_pos,26);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}graphs(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,28);return r$3?(n$4||new t$1.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}graphsLength(){let t$2=this.bb.__offset(this.bb_pos,28);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startAttribute(t$2){t$2.startObject(13)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addType(e$6,n$4){e$6.addFieldInt32(2,n$4,t$1.experimental.fbs.AttributeType.UNDEFINED)}static addF(t$2,e$6){t$2.addFieldFloat32(3,e$6,0)}static addI(t$2,e$6){t$2.addFieldInt64(4,e$6,t$2.createLong(0,0))}static addS(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static addT(t$2,e$6){t$2.addFieldOffset(6,e$6,0)}static addG(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static addFloats(t$2,e$6){t$2.addFieldOffset(8,e$6,0)}static createFloatsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addFloat32(e$6[n$4]);return t$2.endVector()}static startFloatsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addInts(t$2,e$6){t$2.addFieldOffset(9,e$6,0)}static createIntsVector(t$2,e$6){t$2.startVector(8,e$6.length,8);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt64(e$6[n$4]);return t$2.endVector()}static startIntsVector(t$2,e$6){t$2.startVector(8,e$6,8)}static addStrings(t$2,e$6){t$2.addFieldOffset(10,e$6,0)}static createStringsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startStringsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addTensors(t$2,e$6){t$2.addFieldOffset(11,e$6,0)}static createTensorsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startTensorsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addGraphs(t$2,e$6){t$2.addFieldOffset(12,e$6,0)}static createGraphsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startGraphsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endAttribute(t$2){return t$2.endObject()}static createAttribute(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4,l$1,p$5,f$3,d$2,h$3){return n$3.startAttribute(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addType(t$2,i$2),n$3.addF(t$2,o$2),n$3.addI(t$2,a$2),n$3.addS(t$2,s$1),n$3.addT(t$2,u$1),n$3.addG(t$2,c$4),n$3.addFloats(t$2,l$1),n$3.addInts(t$2,p$5),n$3.addStrings(t$2,f$3),n$3.addTensors(t$2,d$2),n$3.addGraphs(t$2,h$3),n$3.endAttribute(t$2)}}e$5.Attribute=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsGraph(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsGraph(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}initializers(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,4);return r$3?(n$4||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}initializersLength(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}nodeArgs(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.ValueInfo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}nodeArgsLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}nodes(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,8);return r$3?(n$4||new t$1.experimental.fbs.Node).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}nodesLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}maxNodeIndex(){let t$2=this.bb.__offset(this.bb_pos,10);return t$2?this.bb.readUint32(this.bb_pos+t$2):0}nodeEdges(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,12);return r$3?(n$4||new t$1.experimental.fbs.NodeEdge).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}nodeEdgesLength(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}inputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,14);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}inputsLength(){let t$2=this.bb.__offset(this.bb_pos,14);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}outputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,16);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}outputsLength(){let t$2=this.bb.__offset(this.bb_pos,16);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}sparseInitializers(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,18);return r$3?(n$4||new t$1.experimental.fbs.SparseTensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}sparseInitializersLength(){let t$2=this.bb.__offset(this.bb_pos,18);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startGraph(t$2){t$2.startObject(8)}static addInitializers(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static createInitializersVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startInitializersVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addNodeArgs(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static createNodeArgsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startNodeArgsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addNodes(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static createNodesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startNodesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addMaxNodeIndex(t$2,e$6){t$2.addFieldInt32(3,e$6,0)}static addNodeEdges(t$2,e$6){t$2.addFieldOffset(4,e$6,0)}static createNodeEdgesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startNodeEdgesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addInputs(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static createInputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startInputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addOutputs(t$2,e$6){t$2.addFieldOffset(6,e$6,0)}static createOutputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startOutputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addSparseInitializers(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static createSparseInitializersVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startSparseInitializersVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endGraph(t$2){return t$2.endObject()}static createGraph(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4){return n$3.startGraph(t$2),n$3.addInitializers(t$2,e$6),n$3.addNodeArgs(t$2,r$3),n$3.addNodes(t$2,i$2),n$3.addMaxNodeIndex(t$2,o$2),n$3.addNodeEdges(t$2,a$2),n$3.addInputs(t$2,s$1),n$3.addOutputs(t$2,u$1),n$3.addSparseInitializers(t$2,c$4),n$3.endGraph(t$2)}}e$5.Graph=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsModel(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsModel(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}irVersion(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}opsetImport(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.OperatorSetId).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}opsetImportLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}producerName(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}producerVersion(t$2){let e$6=this.bb.__offset(this.bb_pos,10);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}domain(t$2){let e$6=this.bb.__offset(this.bb_pos,12);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}modelVersion(){let t$2=this.bb.__offset(this.bb_pos,14);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,16);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}graph(e$6){let n$4=this.bb.__offset(this.bb_pos,18);return n$4?(e$6||new t$1.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}graphDocString(t$2){let e$6=this.bb.__offset(this.bb_pos,20);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}static startModel(t$2){t$2.startObject(9)}static addIrVersion(t$2,e$6){t$2.addFieldInt64(0,e$6,t$2.createLong(0,0))}static addOpsetImport(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static createOpsetImportVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startOpsetImportVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addProducerName(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static addProducerVersion(t$2,e$6){t$2.addFieldOffset(3,e$6,0)}static addDomain(t$2,e$6){t$2.addFieldOffset(4,e$6,0)}static addModelVersion(t$2,e$6){t$2.addFieldInt64(5,e$6,t$2.createLong(0,0))}static addDocString(t$2,e$6){t$2.addFieldOffset(6,e$6,0)}static addGraph(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static addGraphDocString(t$2,e$6){t$2.addFieldOffset(8,e$6,0)}static endModel(t$2){return t$2.endObject()}static createModel(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4,l$1){return n$3.startModel(t$2),n$3.addIrVersion(t$2,e$6),n$3.addOpsetImport(t$2,r$3),n$3.addProducerName(t$2,i$2),n$3.addProducerVersion(t$2,o$2),n$3.addDomain(t$2,a$2),n$3.addModelVersion(t$2,s$1),n$3.addDocString(t$2,u$1),n$3.addGraph(t$2,c$4),n$3.addGraphDocString(t$2,l$1),n$3.endModel(t$2)}}e$5.Model=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){class e$4{constructor(){this.bb=null,this.bb_pos=0}__init(t$4,e$5){return this.bb_pos=t$4,this.bb=e$5,this}static getRootAsKernelCreateInfos(t$4,n$3){return(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}static getSizePrefixedRootAsKernelCreateInfos(t$4,n$3){return t$4.setPosition(t$4.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}nodeIndices(t$4){let e$5=this.bb.__offset(this.bb_pos,4);return e$5?this.bb.readUint32(this.bb.__vector(this.bb_pos+e$5)+4*t$4):0}nodeIndicesLength(){let t$4=this.bb.__offset(this.bb_pos,4);return t$4?this.bb.__vector_len(this.bb_pos+t$4):0}nodeIndicesArray(){let t$4=this.bb.__offset(this.bb_pos,4);return t$4?new Uint32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$4),this.bb.__vector_len(this.bb_pos+t$4)):null}kernelDefHashes(t$4){let e$5=this.bb.__offset(this.bb_pos,6);return e$5?this.bb.readUint64(this.bb.__vector(this.bb_pos+e$5)+8*t$4):this.bb.createLong(0,0)}kernelDefHashesLength(){let t$4=this.bb.__offset(this.bb_pos,6);return t$4?this.bb.__vector_len(this.bb_pos+t$4):0}static startKernelCreateInfos(t$4){t$4.startObject(2)}static addNodeIndices(t$4,e$5){t$4.addFieldOffset(0,e$5,0)}static createNodeIndicesVector(t$4,e$5){t$4.startVector(4,e$5.length,4);for(let n$3=e$5.length-1;n$3>=0;n$3--)t$4.addInt32(e$5[n$3]);return t$4.endVector()}static startNodeIndicesVector(t$4,e$5){t$4.startVector(4,e$5,4)}static addKernelDefHashes(t$4,e$5){t$4.addFieldOffset(1,e$5,0)}static createKernelDefHashesVector(t$4,e$5){t$4.startVector(8,e$5.length,8);for(let n$3=e$5.length-1;n$3>=0;n$3--)t$4.addInt64(e$5[n$3]);return t$4.endVector()}static startKernelDefHashesVector(t$4,e$5){t$4.startVector(8,e$5,8)}static endKernelCreateInfos(t$4){return t$4.endObject()}static createKernelCreateInfos(t$4,n$3,r$3){return e$4.startKernelCreateInfos(t$4),e$4.addNodeIndices(t$4,n$3),e$4.addKernelDefHashes(t$4,r$3),e$4.endKernelCreateInfos(t$4)}}t$3.KernelCreateInfos=e$4})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSubGraphSessionState(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSubGraphSessionState(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}graphId(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}sessionState(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startSubGraphSessionState(t$2){t$2.startObject(2)}static addGraphId(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addSessionState(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endSubGraphSessionState(t$2){let e$6=t$2.endObject();return t$2.requiredField(e$6,4),e$6}static createSubGraphSessionState(t$2,e$6,r$3){return n$3.startSubGraphSessionState(t$2),n$3.addGraphId(t$2,e$6),n$3.addSessionState(t$2,r$3),n$3.endSubGraphSessionState(t$2)}}e$5.SubGraphSessionState=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSessionState(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSessionState(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}kernels(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.KernelCreateInfos).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}subGraphSessionStates(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.SubGraphSessionState).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}subGraphSessionStatesLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startSessionState(t$2){t$2.startObject(2)}static addKernels(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addSubGraphSessionStates(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static createSubGraphSessionStatesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startSubGraphSessionStatesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endSessionState(t$2){return t$2.endObject()}static createSessionState(t$2,e$6,r$3){return n$3.startSessionState(t$2),n$3.addKernels(t$2,e$6),n$3.addSubGraphSessionStates(t$2,r$3),n$3.endSessionState(t$2)}}e$5.SessionState=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsInferenceSession(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsInferenceSession(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static bufferHasIdentifier(t$2){return t$2.__has_identifier(`ORTM`)}ortVersion(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}model(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.Model).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}sessionState(e$6){let n$4=this.bb.__offset(this.bb_pos,8);return n$4?(e$6||new t$1.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startInferenceSession(t$2){t$2.startObject(3)}static addOrtVersion(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addModel(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addSessionState(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endInferenceSession(t$2){return t$2.endObject()}static finishInferenceSessionBuffer(t$2,e$6){t$2.finish(e$6,`ORTM`)}static finishSizePrefixedInferenceSessionBuffer(t$2,e$6){t$2.finish(e$6,`ORTM`,!0)}static createInferenceSession(t$2,e$6,r$3,i$2){return n$3.startInferenceSession(t$2),n$3.addOrtVersion(t$2,e$6),n$3.addModel(t$2,r$3),n$3.addSessionState(t$2,i$2),n$3.endInferenceSession(t$2)}}e$5.InferenceSession=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={})},7448:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.OnnxjsSessionHandler=void 0;let r$2=n$2(1670),i$1=n$2(9162);e$3.OnnxjsSessionHandler=class{constructor(t$1){this.session=t$1,this.inputNames=this.session.inputNames,this.outputNames=this.session.outputNames}async dispose(){}async run(t$1,e$4,n$3){let o$1=new Map;for(let e$5 in t$1)if(Object.hasOwnProperty.call(t$1,e$5)){let n$4=t$1[e$5];o$1.set(e$5,new i$1.Tensor(n$4.dims,n$4.type,void 0,void 0,n$4.data))}let a$2=await this.session.run(o$1),s$1={};return a$2.forEach((t$2,e$5)=>{s$1[e$5]=new r$2.Tensor(t$2.type,t$2.data,t$2.dims)}),s$1}startProfiling(){this.session.startProfiling()}endProfiling(){this.session.endProfiling()}}},6919:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Session=void 0;let r$2=n$2(7067),i$1=n$2(1296),o$1=n$2(7091),a$2=n$2(1036),s$1=n$2(6231),u$1=n$2(2644);e$3.Session=class{constructor(t$1={}){this._initialized=!1,this.backendHint=t$1.backendHint,this.profiler=s$1.Profiler.create(t$1.profiler),this.context={profiler:this.profiler,graphInputTypes:[],graphInputDims:[]}}get inputNames(){return this._model.graph.getInputNames()}get outputNames(){return this._model.graph.getOutputNames()}startProfiling(){this.profiler.start()}endProfiling(){this.profiler.stop()}async loadModel(t$1,e$4,n$3){await this.profiler.event(`session`,`Session.loadModel`,async()=>{let a$3=await(0,o$1.resolveBackend)(this.backendHint);if(this.sessionHandler=a$3.createSessionHandler(this.context),this._model=new u$1.Model,typeof t$1==`string`){let e$5=t$1.endsWith(`.ort`);if(typeof fetch>`u`){let n$4=await(0,i$1.promisify)(r$2.readFile)(t$1);this.initialize(n$4,e$5)}else{let n$4=await fetch(t$1),r$3=await n$4.arrayBuffer();this.initialize(new Uint8Array(r$3),e$5)}}else if(ArrayBuffer.isView(t$1))this.initialize(t$1);else{let r$3=new Uint8Array(t$1,e$4||0,n$3||t$1.byteLength);this.initialize(r$3)}})}initialize(t$1,e$4){if(this._initialized)throw Error(`already initialized`);this.profiler.event(`session`,`Session.initialize`,()=>{let n$3=this.sessionHandler.transformGraph?this.sessionHandler:void 0;this._model.load(t$1,n$3,e$4),this.sessionHandler.onGraphInitialized&&this.sessionHandler.onGraphInitialized(this._model.graph),this.initializeOps(this._model.graph),this._executionPlan=new a$2.ExecutionPlan(this._model.graph,this._ops,this.profiler)}),this._initialized=!0}async run(t$1){if(!this._initialized)throw Error(`session not initialized yet`);return this.profiler.event(`session`,`Session.run`,async()=>{let e$4=this.normalizeAndValidateInputs(t$1),n$3=await this._executionPlan.execute(this.sessionHandler,e$4);return this.createOutput(n$3)})}normalizeAndValidateInputs(t$1){let e$4=this._model.graph.getInputNames();if(Array.isArray(t$1)){if(t$1.length!==e$4.length)throw Error(`incorrect input array length: expected ${e$4.length} but got ${t$1.length}`)}else{if(t$1.size!==e$4.length)throw Error(`incorrect input map size: expected ${e$4.length} but got ${t$1.size}`);let n$3=Array(t$1.size),r$3=0;for(let i$2=0;i$2typeof t$2==`string`)))throw TypeError(`cache should be a string array`);c$5&&(this.cache=Array(s$2))}else{if(o$2!==void 0){let t$2=f$3(e$4);if(!(o$2 instanceof t$2))throw TypeError(`cache should be type ${t$2.name}`)}if(c$5){let t$2=new ArrayBuffer(s$2*function(t$3){switch(t$3){case`bool`:case`int8`:case`uint8`:return 1;case`int16`:case`uint16`:return 2;case`int32`:case`uint32`:case`float32`:return 4;case`float64`:return 8;default:throw Error(`cannot calculate sizeof() on type ${t$3}`)}}(e$4));this.cache=function(t$3,e$5){return new(f$3(e$5))(t$3)}(t$2,e$4)}}}static fromProto(t$1){if(!t$1)throw Error(`cannot construct Value from an empty tensor`);let e$4=u$1.ProtoUtil.tensorDataTypeFromProto(t$1.dataType),n$3=u$1.ProtoUtil.tensorDimsFromProto(t$1.dims),r$3=new l$1(n$3,e$4);if(e$4===`string`)t$1.stringData.forEach((t$2,e$5)=>{r$3.data[e$5]=(0,u$1.decodeUtf8String)(t$2)});else if(t$1.rawData&&typeof t$1.rawData.byteLength==`number`&&t$1.rawData.byteLength>0){let e$5=r$3.data,n$4=new DataView(t$1.rawData.buffer,t$1.rawData.byteOffset,t$1.rawData.byteLength),i$2=p$5(t$1.dataType),o$2=t$1.rawData.byteLength/i$2;if(t$1.rawData.byteLength%i$2!=0)throw Error(`invalid buffer length`);if(e$5.length!==o$2)throw Error(`buffer length mismatch`);for(let r$4=0;r$40){let e$5=r$3.data,n$4=new DataView(t$1.rawDataArray().buffer,t$1.rawDataArray().byteOffset,t$1.rawDataLength()),i$2=p$5(t$1.dataType()),o$2=t$1.rawDataLength()/i$2;if(t$1.rawDataLength()%i$2!=0)throw Error(`invalid buffer length`);if(e$5.length!==o$2)throw Error(`buffer length mismatch`);for(let r$4=0;r$41&&u$2>1)return;a$3[o$2-s$2]=Math.max(n$4,u$2)}return a$3}static index(t$1,e$4){let n$3=Array(e$4.length);return c$4.fillIndex(t$1,e$4,n$3),n$3}static fillIndex(t$1,e$4,n$3){let r$3=t$1.length-e$4.length;for(let i$2=0;i$2=0;t$2--)r$4[t$2]=l$2%o$2[t$2],l$2=Math.floor(l$2/o$2[t$2]);d$3||(c$4.fillIndex(r$4,t$1.dims,i$3),p$6=t$1.get(i$3)),h$4||(c$4.fillIndex(r$4,e$4.dims,s$2),f$4=e$4.get(s$2)),u$2.set(r$4,n$3(p$6,f$4))}}return u$2}}static isValidBroadcast(t$1,e$4){let n$3=t$1.length,r$3=e$4.length;if(n$3>r$3)return!1;for(let i$2=1;i$2<=n$3;i$2++)if(t$1[n$3-i$2]!==1&&t$1[n$3-i$2]!==e$4[r$3-i$2])return!1;return!0}static getBroadcastDims(t$1,e$4){let n$3=t$1.length,r$3=[];for(let i$2=0;i$21&&a$3===1&&r$3.unshift(o$2)}return r$3}}e$3.BroadcastUtil=c$4,e$3.arrayCopyHelper=function(t$1,e$4,n$3,r$3,i$2){if(r$3<0||r$3>=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let o$2=0;o$2o$1.default.isLong(t$2)?t$2.toNumber():t$2)}static tensorValueTypeFromProto(t$1){return{tensorType:l$1.tensorDataTypeFromProto(t$1.elemType),shape:{dims:l$1.tensorDimsFromProto(t$1.shape.dim.map(t$2=>t$2.dimValue))}}}static tensorDimsFromORTFormat(t$1){let e$4=[];for(let n$3=0;n$3t$1.length)throw Error(`invalid dimension of ${e$4} for sizeFromDimension as Tensor has ${t$1.length} dimensions.`);return f$3.getSizeFromDimensionRange(t$1,e$4,t$1.length)}static sizeToDimension(t$1,e$4){if(e$4<0||e$4>t$1.length)throw Error(`invalid dimension of ${e$4} for sizeToDimension as Tensor has ${t$1.length} dimensions.`);return f$3.getSizeFromDimensionRange(t$1,0,e$4)}static getSizeFromDimensionRange(t$1,e$4,n$3){let r$3=1;for(let i$2=e$4;i$2=0;--r$3)n$3[r$3]=n$3[r$3+1]*t$1[r$3+1];return n$3}static transpose(t$1){return t$1.slice().reverse()}static indicesToOffset(t$1,e$4,n$3){n$3===void 0&&(n$3=t$1.length);let r$3=0;for(let i$2=0;i$2=e$4)throw Error(`unsupported axis for this operation.`);return t$1<0?t$1+e$4:t$1}static normalizeAxes(t$1,e$4){return t$1.map(t$2=>this.normalizeAxis(t$2,e$4))}static incrementIndex(t$1,e$4,n$3){if(e$4.length===0||t$1.length===0)throw Error(`Index incrementing unsupported for scalar Tensor`);if(n$3===void 0)n$3=e$4.length;else if(n$3<=0||n$3>e$4.length)throw Error(`Incorrect axis to increment on`);for(let r$3=n$3-1;r$3>=0&&(t$1[r$3]++,!(t$1[r$3]=t$1.length)throw Error(`the dimension with value zero exceeds the dimension size of the input tensor`);r$3[a$4]=t$1[a$4]}else r$3[a$4]=e$4[a$4];o$2*=r$3[a$4]}}let a$3=f$3.size(t$1);if(i$2!==-1){if(a$3%o$2!=0)throw Error(`the input tensor cannot be reshaped to the requested shape. Input shape: [${t$1}] Output shape: [${e$4}]`);r$3[i$2]=a$3/o$2}else if(o$2!==a$3)throw Error(`reshapedDims and originalDims don't have matching sizes`);return r$3}static sortBasedOnPerm(t$1,e$4){return e$4?e$4.map(e$5=>t$1[e$5]):t$1.slice().reverse()}static padShape(t$1,e$4){let n$3=t$1.length;return t$1.map((t$2,r$3)=>t$2+e$4[r$3]+e$4[r$3+n$3])}static areEqual(t$1,e$4){return t$1.length===e$4.length&&t$1.every((t$2,n$3)=>t$2===e$4[n$3])}static validateDimsAndCalcSize(t$1){if(t$1.length>6)throw TypeError(`Only rank 0 to 6 is supported for tensor shape.`);let e$4=1;for(let n$3 of t$1){if(!Number.isInteger(n$3))throw TypeError(`Invalid shape: ${n$3} is not an integer`);if(n$3<0||n$3>2147483647)throw TypeError(`Invalid shape: length ${n$3} is not allowed`);e$4*=n$3}return e$4}static flattenShape(t$1,e$4){e$4<0&&(e$4+=t$1.length);let n$3=t$1.reduce((t$2,e$5)=>t$2*e$5,1),r$3=t$1.slice(e$4).reduce((t$2,e$5)=>t$2*e$5,1);return[n$3/r$3,r$3]}static squeezeShape(t$1,e$4){let n$3=[];e$4=f$3.normalizeAxes(e$4,t$1.length);for(let r$3=0;r$3=0;if(i$2&&t$1[r$3]!==1)throw Error(`squeeze an axis of size different than 1`);(e$4.length===0&&t$1[r$3]>1||e$4.length>0&&!i$2)&&n$3.push(t$1[r$3])}return n$3}static unsqueezeShape(t$1,e$4){let n$3=Array(t$1.length+e$4.length);n$3.fill(0);for(let t$2=0;t$2=n$3.length)throw Error(`'axes' has an out of range axis`);if(n$3[r$4]!==0)throw Error(`'axes' has a duplicate axis`);n$3[r$4]=1}let r$3=0;for(let e$5=0;e$5=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let o$2=0;o$2=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let a$3=0;a$3=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let a$3=0;a$3=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let o$2=0;o$2e$4.push(n$4));let a$3=h$3.calcReduceShape(o$2,e$4,!0),u$2=f$3.size(a$3),l$2=new s$1.Tensor(a$3,t$1.type),p$6=f$3.computeStrides(a$3),d$3=f$3.computeStrides(o$2),g$3=Array(o$2.length);for(let n$4=0;n$4=e$4.length)return o$2(t$1[i$2]);let u$2=e$4[r$3],c$5=u$2>=n$3.length?1:f$3.size(n$3.slice(u$2+1));for(let l$2=0;l$2t$2!==0)}}e$3.ReduceUtil=h$3;class g$2{static adjustPoolAttributes(t$1,e$4,n$3,r$3,i$2,o$2){if(!t$1&&n$3.length!==e$4.length-2)throw Error(`length of specified kernel shapes should be 2 less than length of input dimensions`);if(t$1)for(let t$2=0;t$2=n$3.length?n$3.push(e$4[t$2+2]):n$3[t$2]=e$4[t$2+2];for(let t$2=0;t$2=n$3[t$2]||o$2[t$2+n$3.length]>=n$3[t$2])throw Error(`pads should be smaller than kernel`)}}static adjustPadsBasedOnAutoPad(t$1,e$4,n$3,r$3,i$2,o$2){if(o$2){if(i$2.length!==2*(t$1.length-2))throw Error(`length of pads should be twice the length of data dimensions`);if(e$4.length!==t$1.length-2)throw Error(`length of strides should be the length of data dimensions`);if(r$3.length!==t$1.length-2)throw Error(`length of kernel shapes should be the length of data dimensions`);for(let a$3=0;a$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.iterateExtraOptions=void 0,e$3.iterateExtraOptions=(t$1,n$2,r$2,i$1)=>{if(typeof t$1==`object`&&t$1){if(r$2.has(t$1))throw Error(`Circular reference in options`);r$2.add(t$1)}Object.entries(t$1).forEach(([t$2,o$1])=>{let a$2=n$2?n$2+t$2:t$2;if(typeof o$1==`object`)(0,e$3.iterateExtraOptions)(o$1,a$2+`.`,r$2,i$1);else if(typeof o$1==`string`||typeof o$1==`number`)i$1(a$2,o$1.toString());else{if(typeof o$1!=`boolean`)throw Error(`Can't handle extra config type: `+typeof o$1);i$1(a$2,o$1?`1`:`0`)}})}},2157:function(t,e$3,n$2){"use strict";var r$2,i$1=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),o$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),a$2=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&i$1(e$4,t$1,n$3);return o$1(e$4,t$1),e$4};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.endProfiling=e$3.run=e$3.releaseSession=e$3.createSession=e$3.createSessionFinalize=e$3.createSessionAllocate=e$3.initOrt=e$3.initWasm=void 0;let s$1=n$2(1670),u$1=a$2(n$2(349)),c$4=n$2(6361),l$1=()=>!!s$1.env.wasm.proxy&&typeof document<`u`,p$5,f$3,d$2,h$3=!1,g$2=!1,b$3=!1,m$2=[],y$2=[],_$1=[],v$1=[],w$1=[],x$3=[],T$1=()=>{if(h$3||!g$2||b$3||!p$5)throw Error(`worker not ready`)},S$2=t$1=>{switch(t$1.data.type){case`init-wasm`:h$3=!1,t$1.data.err?(b$3=!0,f$3[1](t$1.data.err)):(g$2=!0,f$3[0]());break;case`init-ort`:t$1.data.err?d$2[1](t$1.data.err):d$2[0]();break;case`create_allocate`:t$1.data.err?m$2.shift()[1](t$1.data.err):m$2.shift()[0](t$1.data.out);break;case`create_finalize`:t$1.data.err?y$2.shift()[1](t$1.data.err):y$2.shift()[0](t$1.data.out);break;case`create`:t$1.data.err?_$1.shift()[1](t$1.data.err):_$1.shift()[0](t$1.data.out);break;case`release`:t$1.data.err?v$1.shift()[1](t$1.data.err):v$1.shift()[0]();break;case`run`:t$1.data.err?w$1.shift()[1](t$1.data.err):w$1.shift()[0](t$1.data.out);break;case`end-profiling`:t$1.data.err?x$3.shift()[1](t$1.data.err):x$3.shift()[0]()}},O$1=typeof document<`u`?(r$2=document==null?void 0:document.currentScript)?.src:void 0;e$3.initWasm=async()=>{if(l$1()){if(g$2)return;if(h$3)throw Error(`multiple calls to 'initWasm()' detected.`);if(b$3)throw Error(`previous call to 'initWasm()' failed.`);return h$3=!0,s$1.env.wasm.wasmPaths===void 0&&O$1&&O$1.indexOf(`blob:`)!==0&&(s$1.env.wasm.wasmPaths=O$1.substr(0,+O$1.lastIndexOf(`/`)+1)),new Promise((t$1,e$4)=>{p$5?.terminate(),p$5=n$2(9710).Z(),p$5.onmessage=S$2,f$3=[t$1,e$4];let r$3={type:`init-wasm`,in:s$1.env.wasm};p$5.postMessage(r$3)})}return(0,c$4.initializeWebAssembly)(s$1.env.wasm)},e$3.initOrt=async(t$1,e$4)=>{if(l$1())return T$1(),new Promise((n$3,r$3)=>{d$2=[n$3,r$3];let i$2={type:`init-ort`,in:{numThreads:t$1,loggingLevel:e$4}};p$5.postMessage(i$2)});u$1.initOrt(t$1,e$4)},e$3.createSessionAllocate=async t$1=>l$1()?(T$1(),new Promise((e$4,n$3)=>{m$2.push([e$4,n$3]);let r$3={type:`create_allocate`,in:{model:t$1}};p$5.postMessage(r$3,[t$1.buffer])})):u$1.createSessionAllocate(t$1),e$3.createSessionFinalize=async(t$1,e$4)=>l$1()?(T$1(),new Promise((n$3,r$3)=>{y$2.push([n$3,r$3]);let i$2={type:`create_finalize`,in:{modeldata:t$1,options:e$4}};p$5.postMessage(i$2)})):u$1.createSessionFinalize(t$1,e$4),e$3.createSession=async(t$1,e$4)=>l$1()?(T$1(),new Promise((n$3,r$3)=>{_$1.push([n$3,r$3]);let i$2={type:`create`,in:{model:t$1,options:e$4}};p$5.postMessage(i$2,[t$1.buffer])})):u$1.createSession(t$1,e$4),e$3.releaseSession=async t$1=>{if(l$1())return T$1(),new Promise((e$4,n$3)=>{v$1.push([e$4,n$3]);let r$3={type:`release`,in:t$1};p$5.postMessage(r$3)});u$1.releaseSession(t$1)},e$3.run=async(t$1,e$4,n$3,r$3,i$2)=>l$1()?(T$1(),new Promise((o$2,a$3)=>{w$1.push([o$2,a$3]);let s$2={type:`run`,in:{sessionId:t$1,inputIndices:e$4,inputs:n$3,outputIndices:r$3,options:i$2}};p$5.postMessage(s$2,u$1.extractTransferableBuffers(n$3))})):u$1.run(t$1,e$4,n$3,r$3,i$2),e$3.endProfiling=async t$1=>{if(l$1())return T$1(),new Promise((e$4,n$3)=>{x$3.push([e$4,n$3]);let r$3={type:`end-profiling`,in:t$1};p$5.postMessage(r$3)});u$1.endProfiling(t$1)}},586:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.setRunOptions=void 0;let r$2=n$2(7967),i$1=n$2(4983),o$1=n$2(6361);e$3.setRunOptions=t$1=>{let e$4=(0,o$1.getInstance)(),n$3=0,a$2=[],s$1=t$1||{};try{if(t$1?.logSeverityLevel===void 0)s$1.logSeverityLevel=2;else if(typeof t$1.logSeverityLevel!=`number`||!Number.isInteger(t$1.logSeverityLevel)||t$1.logSeverityLevel<0||t$1.logSeverityLevel>4)throw Error(`log serverity level is not valid: ${t$1.logSeverityLevel}`);if(t$1?.logVerbosityLevel===void 0)s$1.logVerbosityLevel=0;else if(typeof t$1.logVerbosityLevel!=`number`||!Number.isInteger(t$1.logVerbosityLevel))throw Error(`log verbosity level is not valid: ${t$1.logVerbosityLevel}`);t$1?.terminate===void 0&&(s$1.terminate=!1);let o$2=0;if(t$1?.tag!==void 0&&(o$2=(0,i$1.allocWasmString)(t$1.tag,a$2)),n$3=e$4._OrtCreateRunOptions(s$1.logSeverityLevel,s$1.logVerbosityLevel,!!s$1.terminate,o$2),n$3===0)throw Error(`Can't create run options`);return t$1?.extra!==void 0&&(0,r$2.iterateExtraOptions)(t$1.extra,``,new WeakSet,(t$2,r$3)=>{let o$3=(0,i$1.allocWasmString)(t$2,a$2),s$2=(0,i$1.allocWasmString)(r$3,a$2);if(e$4._OrtAddRunConfigEntry(n$3,o$3,s$2)!==0)throw Error(`Can't set a run config entry: ${t$2} - ${r$3}`)}),[n$3,a$2]}catch(t$2){throw n$3!==0&&e$4._OrtReleaseRunOptions(n$3),a$2.forEach(e$4._free),t$2}}},2306:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.OnnxruntimeWebAssemblySessionHandler=void 0;let r$2=n$2(2806),i$1=n$2(1670),o$1=n$2(2850),a$2=n$2(2157),s$1;e$3.OnnxruntimeWebAssemblySessionHandler=class{async createSessionAllocate(t$1){let e$4=await fetch(t$1),n$3=await e$4.arrayBuffer();return(0,a$2.createSessionAllocate)(new Uint8Array(n$3))}async loadModel(t$1,e$4){if(s$1||(await(0,a$2.initOrt)(i$1.env.wasm.numThreads,(t$2=>{switch(t$2){case`verbose`:return 0;case`info`:return 1;case`warning`:return 2;case`error`:return 3;case`fatal`:return 4;default:throw Error(`unsupported logging level: ${t$2}`)}})(i$1.env.logLevel)),s$1=!0),typeof t$1==`string`)if(typeof fetch>`u`){let n$3=await(0,o$1.promisify)(r$2.readFile)(t$1);[this.sessionId,this.inputNames,this.outputNames]=await(0,a$2.createSession)(n$3,e$4)}else{let n$3=await this.createSessionAllocate(t$1);[this.sessionId,this.inputNames,this.outputNames]=await(0,a$2.createSessionFinalize)(n$3,e$4)}else [this.sessionId,this.inputNames,this.outputNames]=await(0,a$2.createSession)(t$1,e$4)}async dispose(){return(0,a$2.releaseSession)(this.sessionId)}async run(t$1,e$4,n$3){let r$3=[],o$2=[];Object.entries(t$1).forEach(t$2=>{let e$5=t$2[0],n$4=t$2[1],i$2=this.inputNames.indexOf(e$5);if(i$2===-1)throw Error(`invalid input '${e$5}'`);r$3.push(n$4),o$2.push(i$2)});let s$2=[];Object.entries(e$4).forEach(t$2=>{let e$5=t$2[0],n$4=this.outputNames.indexOf(e$5);if(n$4===-1)throw Error(`invalid output '${e$5}'`);s$2.push(n$4)});let u$1=await(0,a$2.run)(this.sessionId,o$2,r$3.map(t$2=>[t$2.type,t$2.dims,t$2.data]),s$2,n$3),c$4={};for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.setSessionOptions=void 0;let r$2=n$2(7967),i$1=n$2(4983),o$1=n$2(6361);e$3.setSessionOptions=t$1=>{let e$4=(0,o$1.getInstance)(),n$3=0,a$2=[],s$1=t$1||{};(t$2=>{t$2.extra||={},t$2.extra.session||(t$2.extra.session={});let e$5=t$2.extra.session;e$5.use_ort_model_bytes_directly||=`1`})(s$1);try{t$1?.graphOptimizationLevel===void 0&&(s$1.graphOptimizationLevel=`all`);let u$1=(t$2=>{switch(t$2){case`disabled`:return 0;case`basic`:return 1;case`extended`:return 2;case`all`:return 99;default:throw Error(`unsupported graph optimization level: ${t$2}`)}})(s$1.graphOptimizationLevel);t$1?.enableCpuMemArena===void 0&&(s$1.enableCpuMemArena=!0),t$1?.enableMemPattern===void 0&&(s$1.enableMemPattern=!0),t$1?.executionMode===void 0&&(s$1.executionMode=`sequential`);let c$4=(t$2=>{switch(t$2){case`sequential`:return 0;case`parallel`:return 1;default:throw Error(`unsupported execution mode: ${t$2}`)}})(s$1.executionMode),l$1=0;if(t$1?.logId!==void 0&&(l$1=(0,i$1.allocWasmString)(t$1.logId,a$2)),t$1?.logSeverityLevel===void 0)s$1.logSeverityLevel=2;else if(typeof t$1.logSeverityLevel!=`number`||!Number.isInteger(t$1.logSeverityLevel)||t$1.logSeverityLevel<0||t$1.logSeverityLevel>4)throw Error(`log serverity level is not valid: ${t$1.logSeverityLevel}`);if(t$1?.logVerbosityLevel===void 0)s$1.logVerbosityLevel=0;else if(typeof t$1.logVerbosityLevel!=`number`||!Number.isInteger(t$1.logVerbosityLevel))throw Error(`log verbosity level is not valid: ${t$1.logVerbosityLevel}`);if(t$1?.enableProfiling===void 0&&(s$1.enableProfiling=!1),n$3=e$4._OrtCreateSessionOptions(u$1,!!s$1.enableCpuMemArena,!!s$1.enableMemPattern,c$4,!!s$1.enableProfiling,0,l$1,s$1.logSeverityLevel,s$1.logVerbosityLevel),n$3===0)throw Error(`Can't create session options`);return t$1!=null&&t$1.executionProviders&&((t$2,e$5,n$4)=>{for(let r$3 of e$5){let e$6=typeof r$3==`string`?r$3:r$3.name;switch(e$6){case`xnnpack`:e$6=`XNNPACK`;break;case`wasm`:case`cpu`:continue;default:throw Error(`not supported EP: ${e$6}`)}let a$3=(0,i$1.allocWasmString)(e$6,n$4);if((0,o$1.getInstance)()._OrtAppendExecutionProvider(t$2,a$3)!==0)throw Error(`Can't append execution provider: ${e$6}`)}})(n$3,t$1.executionProviders,a$2),t$1?.extra!==void 0&&(0,r$2.iterateExtraOptions)(t$1.extra,``,new WeakSet,(t$2,r$3)=>{let o$2=(0,i$1.allocWasmString)(t$2,a$2),s$2=(0,i$1.allocWasmString)(r$3,a$2);if(e$4._OrtAddSessionConfigEntry(n$3,o$2,s$2)!==0)throw Error(`Can't set a session config entry: ${t$2} - ${r$3}`)}),[n$3,a$2]}catch(t$2){throw n$3!==0&&e$4._OrtReleaseSessionOptions(n$3),a$2.forEach(e$4._free),t$2}}},4983:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.allocWasmString=void 0;let r$2=n$2(6361);e$3.allocWasmString=(t$1,e$4)=>{let n$3=(0,r$2.getInstance)(),i$1=n$3.lengthBytesUTF8(t$1)+1,o$1=n$3._malloc(i$1);return n$3.stringToUTF8(t$1,o$1,i$1),e$4.push(o$1),o$1}},349:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.extractTransferableBuffers=e$3.endProfiling=e$3.run=e$3.releaseSession=e$3.createSession=e$3.createSessionFinalize=e$3.createSessionAllocate=e$3.initOrt=void 0;let r$2=n$2(586),i$1=n$2(4919),o$1=n$2(4983),a$2=n$2(6361);e$3.initOrt=(t$1,e$4)=>{let n$3=(0,a$2.getInstance)()._OrtInit(t$1,e$4);if(n$3!==0)throw Error(`Can't initialize onnxruntime. error code = ${n$3}`)};let s$1=new Map;e$3.createSessionAllocate=t$1=>{let e$4=(0,a$2.getInstance)(),n$3=e$4._malloc(t$1.byteLength);return e$4.HEAPU8.set(t$1,n$3),[n$3,t$1.byteLength]},e$3.createSessionFinalize=(t$1,e$4)=>{let n$3=(0,a$2.getInstance)(),r$3=0,o$2=0,u$2=[];try{if([o$2,u$2]=(0,i$1.setSessionOptions)(e$4),r$3=n$3._OrtCreateSession(t$1[0],t$1[1],o$2),r$3===0)throw Error(`Can't create a session`)}finally{n$3._free(t$1[0]),n$3._OrtReleaseSessionOptions(o$2),u$2.forEach(n$3._free)}let c$5=n$3._OrtGetInputCount(r$3),l$2=n$3._OrtGetOutputCount(r$3),p$5=[],f$3=[],d$2=[],h$3=[];for(let t$2=0;t$2{let r$3=(0,e$3.createSessionAllocate)(t$1);return(0,e$3.createSessionFinalize)(r$3,n$3)},e$3.releaseSession=t$1=>{let e$4=(0,a$2.getInstance)(),n$3=s$1.get(t$1);if(!n$3)throw Error(`invalid session id`);let r$3=n$3[0],i$2=n$3[1],o$2=n$3[2];i$2.forEach(e$4._OrtFree),o$2.forEach(e$4._OrtFree),e$4._OrtReleaseSession(r$3),s$1.delete(t$1)};let u$1=t$1=>{switch(t$1){case`int8`:return 3;case`uint8`:return 2;case`bool`:return 9;case`int16`:return 5;case`uint16`:return 4;case`int32`:return 6;case`uint32`:return 12;case`float32`:return 1;case`float64`:return 11;case`string`:return 8;case`int64`:return 7;case`uint64`:return 13;default:throw Error(`unsupported data type: ${t$1}`)}},c$4=t$1=>{switch(t$1){case 3:return`int8`;case 2:return`uint8`;case 9:return`bool`;case 5:return`int16`;case 4:return`uint16`;case 6:return`int32`;case 12:return`uint32`;case 1:return`float32`;case 11:return`float64`;case 8:return`string`;case 7:return`int64`;case 13:return`uint64`;default:throw Error(`unsupported data type: ${t$1}`)}},l$1=t$1=>{switch(t$1){case`float32`:return Float32Array;case`uint8`:case`bool`:return Uint8Array;case`int8`:return Int8Array;case`uint16`:return Uint16Array;case`int16`:return Int16Array;case`int32`:return Int32Array;case`float64`:return Float64Array;case`uint32`:return Uint32Array;case`int64`:return BigInt64Array;case`uint64`:return BigUint64Array;default:throw Error(`unsupported type: ${t$1}`)}};e$3.run=(t$1,e$4,n$3,i$2,p$5)=>{let f$3=(0,a$2.getInstance)(),d$2=s$1.get(t$1);if(!d$2)throw Error(`invalid session id`);let h$3=d$2[0],g$2=d$2[1],b$3=d$2[2],m$2=e$4.length,y$2=i$2.length,_$1=0,v$1=[],w$1=[],x$3=[];try{[_$1,v$1]=(0,r$2.setRunOptions)(p$5);for(let t$3=0;t$3f$3.HEAP32[t$4++]=e$6);let n$4=f$3._OrtCreateTensor(u$1(e$5),a$4,s$3,l$2,r$3.length);if(n$4===0)throw Error(`Can't create a tensor`);w$1.push(n$4)}finally{f$3.stackRestore(c$5)}}let t$2=f$3.stackSave(),a$3=f$3.stackAlloc(4*m$2),s$2=f$3.stackAlloc(4*m$2),d$3=f$3.stackAlloc(4*y$2),T$1=f$3.stackAlloc(4*y$2);try{let n$4=a$3/4,r$3=s$2/4,o$2=d$3/4,u$2=T$1/4;for(let t$3=0;t$3t$5*e$6);if(i$3=c$4(a$4),i$3===`string`){let t$5=[],e$6=o$3/4;for(let n$6=0;n$6{let e$4=(0,a$2.getInstance)(),n$3=s$1.get(t$1);if(!n$3)throw Error(`invalid session id`);let r$3=n$3[0],i$2=e$4._OrtEndProfiling(r$3);if(i$2===0)throw Error(`Can't get an profile file name`);e$4._OrtFree(i$2)},e$3.extractTransferableBuffers=t$1=>{let e$4=[];for(let n$3 of t$1){let t$2=n$3[2];!Array.isArray(t$2)&&t$2.buffer&&e$4.push(t$2.buffer)}return e$4}},6361:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),o$1=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&r$2(e$4,t$1,n$3);return i$1(e$4,t$1),e$4},a$2=this&&this.__importDefault||function(t$1){return t$1&&t$1.__esModule?t$1:{default:t$1}};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.dispose=e$3.getInstance=e$3.initializeWebAssembly=void 0;let s$1=o$1(n$2(6449)),u$1=a$2(n$2(932)),c$4=n$2(3474),l$1,p$5=!1,f$3=!1,d$2=!1,h$3=(t$1,e$4)=>e$4?t$1?`ort-wasm-simd-threaded.wasm`:`ort-wasm-threaded.wasm`:t$1?`ort-wasm-simd.wasm`:`ort-wasm.wasm`;e$3.initializeWebAssembly=async t$1=>{if(p$5)return Promise.resolve();if(f$3)throw Error(`multiple calls to 'initializeWebAssembly()' detected.`);if(d$2)throw Error(`previous call to 'initializeWebAssembly()' failed.`);f$3=!0;let e$4=t$1.initTimeout,r$3=t$1.numThreads,i$2=t$1.simd,o$2=r$3>1&&(()=>{try{return typeof SharedArrayBuffer<`u`&&(typeof MessageChannel<`u`&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(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])))}catch{return!1}})(),a$3=i$2&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch{return!1}})(),g$2=typeof t$1.wasmPaths==`string`?t$1.wasmPaths:void 0,b$3=h$3(!1,o$2),m$2=h$3(a$3,o$2),y$2=typeof t$1.wasmPaths==`object`?t$1.wasmPaths[m$2]:void 0,_$1=!1,v$1=[];if(e$4>0&&v$1.push(new Promise(t$2=>{setTimeout(()=>{_$1=!0,t$2()},e$4)})),v$1.push(new Promise((t$2,e$5)=>{let r$4=o$2?c$4:u$1.default,i$3={locateFile:(t$3,e$6)=>o$2&&t$3.endsWith(`.worker.js`)&&typeof Blob<`u`?URL.createObjectURL(new Blob([n$2(4154)],{type:`text/javascript`})):t$3===b$3?y$2??(g$2??e$6)+m$2:e$6+t$3};if(o$2)if(typeof Blob>`u`)i$3.mainScriptUrlOrBlob=s$1.join(`/`,`ort-wasm-threaded.js`);else{let t$3=`var ortWasmThreaded=(function(){var _scriptDir;return ${r$4.toString()}})();`;i$3.mainScriptUrlOrBlob=new Blob([t$3],{type:`text/javascript`})}r$4(i$3).then(e$6=>{f$3=!1,p$5=!0,l$1=e$6,t$2()},t$3=>{f$3=!1,d$2=!0,e$5(t$3)})})),await Promise.race(v$1),_$1)throw Error(`WebAssembly backend initializing failed due to timeout: ${e$4}ms`)},e$3.getInstance=()=>{if(p$5&&l$1)return l$1;throw Error(`WebAssembly is not initialized yet.`)},e$3.dispose=()=>{var t$1;!p$5||f$3||d$2||(f$3=!0,(t$1=l$1.PThread)==null||t$1.terminateAllThreads(),l$1=void 0,f$3=!1,p$5=!1,d$2=!0)}},9710:(t,e$3,n$2)=>{"use strict";n$2.d(e$3,{Z:()=>o$1});var r$2=n$2(477),i$1=n$2.n(r$2);function o$1(){return i$1()('/*!\n* ONNX Runtime Web v1.14.0\n* Copyright (c) Microsoft Corporation. All rights reserved.\n* Licensed under the MIT License.\n*/\n(()=>{var t={474:(t,e,n)=>{var _scriptDir,r=(_scriptDir=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){function e(){return j.buffer!=D&&N(j.buffer),P}function r(){return j.buffer!=D&&N(j.buffer),U}function a(){return j.buffer!=D&&N(j.buffer),F}function i(){return j.buffer!=D&&N(j.buffer),I}function o(){return j.buffer!=D&&N(j.buffer),W}var u,c,s;t=t||{},u||(u=void 0!==t?t:{}),u.ready=new Promise((function(t,e){c=t,s=e}));var l,f,p,h,d,y,b=Object.assign({},u),m="./this.program",g=(t,e)=>{throw e},v="object"==typeof window,w="function"==typeof importScripts,_="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,O=u.ENVIRONMENT_IS_PTHREAD||!1,A="";function S(t){return u.locateFile?u.locateFile(t,A):A+t}if(_){let e;A=w?n(908).dirname(A)+"/":"//",y=()=>{d||(h=n(384),d=n(908))},l=function(t,e){return y(),t=d.normalize(t),h.readFileSync(t,e?void 0:"utf8")},p=t=>((t=l(t,!0)).buffer||(t=new Uint8Array(t)),t),f=(t,e,n)=>{y(),t=d.normalize(t),h.readFile(t,(function(t,r){t?n(t):e(r.buffer)}))},1{if(Q())throw process.exitCode=t,e;e instanceof ct||x("exiting due to exception: "+e),process.exit(t)},u.inspect=function(){return"[Emscripten Module object]"};try{e=n(925)}catch(t){throw console.error(\'The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?\'),t}n.g.Worker=e.Worker}else(v||w)&&(w?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),_scriptDir&&(A=_scriptDir),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",_||(l=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},w&&(p=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),f=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)}));_&&"undefined"==typeof performance&&(n.g.performance=n(953).performance);var T=console.log.bind(console),E=console.warn.bind(console);_&&(y(),T=t=>h.writeSync(1,t+"\\n"),E=t=>h.writeSync(2,t+"\\n"));var M,C=u.print||T,x=u.printErr||E;Object.assign(u,b),b=null,u.thisProgram&&(m=u.thisProgram),u.quit&&(g=u.quit),u.wasmBinary&&(M=u.wasmBinary);var R=u.noExitRuntime||!1;"object"!=typeof WebAssembly&&at("no native wasm support detected");var j,k,D,P,U,F,I,W,H=!1,L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function z(t,e,n){var r=(e>>>=0)+n;for(n=e;t[n]&&!(n>=r);)++n;if(16(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&t[e++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function Y(t,e){return(t>>>=0)?z(r(),t,e):""}function B(t,e,n,r){if(!(0>>=0;r=n+r-1;for(var i=0;i=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(n>=r)break;e[n++>>>0]=o}else{if(2047>=o){if(n+1>=r)break;e[n++>>>0]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;e[n++>>>0]=224|o>>12}else{if(n+3>=r)break;e[n++>>>0]=240|o>>18,e[n++>>>0]=128|o>>12&63}e[n++>>>0]=128|o>>6&63}e[n++>>>0]=128|63&o}}return e[n>>>0]=0,n-a}function G(t){for(var e=0,n=0;n=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++n):e+=3}return e}function N(t){D=t,u.HEAP8=P=new Int8Array(t),u.HEAP16=new Int16Array(t),u.HEAP32=F=new Int32Array(t),u.HEAPU8=U=new Uint8Array(t),u.HEAPU16=new Uint16Array(t),u.HEAPU32=I=new Uint32Array(t),u.HEAPF32=new Float32Array(t),u.HEAPF64=W=new Float64Array(t)}O&&(D=u.buffer);var V=u.INITIAL_MEMORY||16777216;if(O)j=u.wasmMemory,D=u.buffer;else if(u.wasmMemory)j=u.wasmMemory;else if(!((j=new WebAssembly.Memory({initial:V/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw x("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),_&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");j&&(D=j.buffer),V=D.byteLength,N(D);var $,q=[],X=[],J=[],Z=[];function Q(){return R||!1}function K(){var t=u.preRun.shift();q.unshift(t)}var tt,et=0,nt=null,rt=null;function at(t){throw O?postMessage({cmd:"onAbort",arg:t}):u.onAbort&&u.onAbort(t),x(t="Aborted("+t+")"),H=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),s(t),t}function it(){return tt.startsWith("data:application/octet-stream;base64,")}function ot(){var t=tt;try{if(t==tt&&M)return new Uint8Array(M);if(p)return p(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}tt="ort-wasm-threaded.wasm",it()||(tt=S(tt));var ut={};function ct(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function st(t){(t=ht.Vb[t])||at(),ht.mc(t)}function lt(t){var e=ht.Cc();if(!e)return 6;ht.ac.push(e),ht.Vb[t.Ub]=e,e.Ub=t.Ub;var n={cmd:"run",start_routine:t.Ic,arg:t.zc,pthread_ptr:t.Ub};return e.$b=()=>{n.time=performance.now(),e.postMessage(n,t.Nc)},e.loaded&&(e.$b(),delete e.$b),0}function ft(t){if(O)return $t(1,1,t);Q()||(ht.oc(),u.onExit&&u.onExit(t),H=!0),g(t,new ct(t))}function pt(t,e){if(!e&&O)throw bt(t),"unwind";Q()||O||(me(),dt(J),be(0),re[1].length&&ae(1,10),re[2].length&&ae(2,10),ht.oc()),ft(t)}var ht={Yb:[],ac:[],qc:[],Vb:{},fc:function(){O&&ht.Ec()},Pc:function(){},Ec:function(){ht.receiveObjectTransfer=ht.Gc,ht.threadInitTLS=ht.pc,ht.setExitStatus=ht.nc,R=!1},nc:function(){},oc:function(){for(var t of Object.values(ht.Vb))ht.mc(t);for(t of ht.Yb)t.terminate();ht.Yb=[]},mc:function(t){var e=t.Ub;delete ht.Vb[e],ht.Yb.push(t),ht.ac.splice(ht.ac.indexOf(t),1),t.Ub=0,Oe(e)},Gc:function(){},pc:function(){ht.qc.forEach((t=>t()))},Fc:function(t,e){t.onmessage=n=>{var r=(n=n.data).cmd;if(t.Ub&&(ht.Bc=t.Ub),n.targetThread&&n.targetThread!=he()){var a=ht.Vb[n.Qc];a?a.postMessage(n,n.transferList):x(\'Internal error! Worker sent a message "\'+r+\'" to target pthread \'+n.targetThread+", but that thread no longer exists!")}else"processProxyingQueue"===r?zt(n.queue):"spawnThread"===r?lt(n):"cleanupThread"===r?st(n.thread):"killThread"===r?(n=n.thread,r=ht.Vb[n],delete ht.Vb[n],r.terminate(),Oe(n),ht.ac.splice(ht.ac.indexOf(r),1),r.Ub=0):"cancelThread"===r?ht.Vb[n.thread].postMessage({cmd:"cancel"}):"loaded"===r?(t.loaded=!0,e&&e(t),t.$b&&(t.$b(),delete t.$b)):"print"===r?C("Thread "+n.threadId+": "+n.text):"printErr"===r?x("Thread "+n.threadId+": "+n.text):"alert"===r?alert("Thread "+n.threadId+": "+n.text):"setimmediate"===n.target?t.postMessage(n):"onAbort"===r?u.onAbort&&u.onAbort(n.arg):r&&x("worker sent an unknown command "+r);ht.Bc=void 0},t.onerror=t=>{throw x("worker sent an error! "+t.filename+":"+t.lineno+": "+t.message),t},_&&(t.on("message",(function(e){t.onmessage({data:e})})),t.on("error",(function(e){t.onerror(e)})),t.on("detachedExit",(function(){}))),t.postMessage({cmd:"load",urlOrBlob:u.mainScriptUrlOrBlob||_scriptDir,wasmMemory:j,wasmModule:k})},yc:function(){var t=S("ort-wasm-threaded.worker.js");ht.Yb.push(new Worker(t))},Cc:function(){return 0==ht.Yb.length&&(ht.yc(),ht.Fc(ht.Yb[0])),ht.Yb.pop()}};function dt(t){for(;0>2>>>0];t=a()[t+48>>2>>>0],Te(e,e-t),Me(e)};var mt=[];function gt(t){var e=mt[t];return e||(t>=mt.length&&(mt.length=t+1),mt[t]=e=$.get(t)),e}u.invokeEntryPoint=function(t,e){t=gt(t)(e),Q()?ht.nc(t):Ae(t)};var vt,wt,_t=[],Ot=0,At=0;function St(t){this.Zb=t,this.Sb=t-24,this.xc=function(t){i()[this.Sb+4>>2>>>0]=t},this.bc=function(){return i()[this.Sb+4>>2>>>0]},this.wc=function(t){i()[this.Sb+8>>2>>>0]=t},this.Dc=function(){return i()[this.Sb+8>>2>>>0]},this.rc=function(){a()[this.Sb>>2>>>0]=0},this.hc=function(t){t=t?1:0,e()[this.Sb+12>>0>>>0]=t},this.uc=function(){return 0!=e()[this.Sb+12>>0>>>0]},this.ic=function(t){t=t?1:0,e()[this.Sb+13>>0>>>0]=t},this.kc=function(){return 0!=e()[this.Sb+13>>0>>>0]},this.fc=function(t,e){this.cc(0),this.xc(t),this.wc(e),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(a(),this.Sb>>2,1)},this.Hc=function(){return 1===Atomics.sub(a(),this.Sb>>2,1)},this.cc=function(t){i()[this.Sb+16>>2>>>0]=t},this.tc=function(){return i()[this.Sb+16>>2>>>0]},this.vc=function(){if(Re(this.bc()))return i()[this.Zb>>2>>>0];var t=this.tc();return 0!==t?t:this.Zb}}function Tt(t){return ye(new St(t).Sb)}function Et(t,e,n,r){return O?$t(3,1,t,e,n,r):Mt(t,e,n,r)}function Mt(t,e,n,r){if("undefined"==typeof SharedArrayBuffer)return x("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];return O&&0===a.length?Et(t,e,n,r):(t={Ic:n,Ub:t,zc:r,Nc:a},O?(t.Oc="spawnThread",postMessage(t,a),0):lt(t))}function Ct(t,e,n){return O?$t(4,1,t,e,n):0}function xt(t,e){if(O)return $t(5,1,t,e)}function Rt(t,e){if(O)return $t(6,1,t,e)}function jt(t,e,n){if(O)return $t(7,1,t,e,n)}function kt(t,e,n){return O?$t(8,1,t,e,n):0}function Dt(t,e){if(O)return $t(9,1,t,e)}function Pt(t,e,n){if(O)return $t(10,1,t,e,n)}function Ut(t,e,n,r){if(O)return $t(11,1,t,e,n,r)}function Ft(t,e,n,r){if(O)return $t(12,1,t,e,n,r)}function It(t,e,n,r){if(O)return $t(13,1,t,e,n,r)}function Wt(t){if(O)return $t(14,1,t)}function Ht(t,e){if(O)return $t(15,1,t,e)}function Lt(t,e,n){if(O)return $t(16,1,t,e,n)}function zt(t){Atomics.store(a(),t>>2,1),he()&&_e(t),Atomics.compareExchange(a(),t>>2,1,0)}function Yt(t){return i()[t>>>2]+4294967296*a()[t+4>>>2]}function Bt(t,e,n,r,a,i){return O?$t(17,1,t,e,n,r,a,i):-52}function Gt(t,e,n,r,a,i){if(O)return $t(18,1,t,e,n,r,a,i)}function Nt(t){var n=G(t)+1,r=de(n);return r&&B(t,e(),r,n),r}function Vt(t,e,n){function r(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:"GMT"}if(O)return $t(19,1,t,e,n);var o=(new Date).getFullYear(),u=new Date(o,0,1),c=new Date(o,6,1);o=u.getTimezoneOffset();var s=c.getTimezoneOffset(),l=Math.max(o,s);a()[t>>2>>>0]=60*l,a()[e>>2>>>0]=Number(o!=s),t=r(u),e=r(c),t=Nt(t),e=Nt(e),s>2>>>0]=t,i()[n+4>>2>>>0]=e):(i()[n>>2>>>0]=e,i()[n+4>>2>>>0]=t)}function $t(t,e){var n=arguments.length-2,r=arguments;return yt((()=>{for(var a=Ce(8*n),i=a>>3,u=0;u>>0]=c}return we(t,n,a,e)}))}u.executeNotifiedProxyingQueue=zt,wt=_?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:O?()=>performance.now()-u.__performance_now_clock_drift:()=>performance.now();var qt,Xt=[],Jt={};function Zt(){if(!qt){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"};for(t in Jt)void 0===Jt[t]?delete e[t]:e[t]=Jt[t];var n=[];for(t in e)n.push(t+"="+e[t]);qt=n}return qt}function Qt(t,n){if(O)return $t(20,1,t,n);var r=0;return Zt().forEach((function(a,o){var u=n+r;for(o=i()[t+4*o>>2>>>0]=u,u=0;u>0>>>0]=a.charCodeAt(u);e()[o>>0>>>0]=0,r+=a.length+1})),0}function Kt(t,e){if(O)return $t(21,1,t,e);var n=Zt();i()[t>>2>>>0]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),i()[e>>2>>>0]=r,0}function te(t){return O?$t(22,1,t):52}function ee(t,e,n,r){return O?$t(23,1,t,e,n,r):52}function ne(t,e,n,r,a){return O?$t(24,1,t,e,n,r,a):70}var re=[null,[],[]];function ae(t,e){var n=re[t];0===e||10===e?((1===t?C:x)(z(n,0)),n.length=0):n.push(e)}function ie(t,e,n,a){if(O)return $t(25,1,t,e,n,a);for(var o=0,u=0;u>2>>>0],s=i()[e+4>>2>>>0];e+=8;for(var l=0;l>>0]);o+=s}return i()[a>>2>>>0]=o,0}var oe=0;function ue(t){return 0==t%4&&(0!=t%100||0==t%400)}var ce=[31,29,31,30,31,30,31,31,30,31,30,31],se=[31,28,31,30,31,30,31,31,30,31,30,31];function le(t,n,r,i){function o(t,e,n){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0r-t.getDate())){t.setDate(t.getDate()+e);break}e-=r-t.getDate()+1,t.setDate(1),11>n?t.setMonth(n+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return n=new Date(t.getFullYear()+1,0,4),e=s(new Date(t.getFullYear(),0,4)),n=s(n),0>=c(e,t)?0>=c(n,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var f=a()[i+40>>2>>>0];for(var p in i={Lc:a()[i>>2>>>0],Kc:a()[i+4>>2>>>0],dc:a()[i+8>>2>>>0],jc:a()[i+12>>2>>>0],ec:a()[i+16>>2>>>0],Xb:a()[i+20>>2>>>0],Tb:a()[i+24>>2>>>0],Wb:a()[i+28>>2>>>0],Rc:a()[i+32>>2>>>0],Jc:a()[i+36>>2>>>0],Mc:f?Y(f):""},r=Y(r),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(p,"g"),f[p]);var h="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d="January February March April May June July August September October November December".split(" ");for(p in f={"%a":function(t){return h[t.Tb].substring(0,3)},"%A":function(t){return h[t.Tb]},"%b":function(t){return d[t.ec].substring(0,3)},"%B":function(t){return d[t.ec]},"%C":function(t){return u((t.Xb+1900)/100|0,2)},"%d":function(t){return u(t.jc,2)},"%e":function(t){return o(t.jc,2," ")},"%g":function(t){return l(t).toString().substring(2)},"%G":function(t){return l(t)},"%H":function(t){return u(t.dc,2)},"%I":function(t){return 0==(t=t.dc)?t=12:12t.dc?"AM":"PM"},"%S":function(t){return u(t.Lc,2)},"%t":function(){return"\\t"},"%u":function(t){return t.Tb||7},"%U":function(t){return u(Math.floor((t.Wb+7-t.Tb)/7),2)},"%V":function(t){var e=Math.floor((t.Wb+7-(t.Tb+6)%7)/7);if(2>=(t.Tb+371-t.Wb-2)%7&&e++,e)53==e&&(4==(n=(t.Tb+371-t.Wb)%7)||3==n&&ue(t.Xb)||(e=1));else{e=52;var n=(t.Tb+7-t.Wb-1)%7;(4==n||5==n&&ue(t.Xb%400-1))&&e++}return u(e,2)},"%w":function(t){return t.Tb},"%W":function(t){return u(Math.floor((t.Wb+7-(t.Tb+6)%7)/7),2)},"%y":function(t){return(t.Xb+1900).toString().substring(2)},"%Y":function(t){return t.Xb+1900},"%z":function(t){var e=0<=(t=t.Jc);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.Mc},"%%":function(){return"%"}},r=r.replace(/%%/g,"\\0\\0"),f)r.includes(p)&&(r=r.replace(new RegExp(p,"g"),f[p](i)));return p=function(t){var e=Array(G(t)+1);return B(t,e,0,e.length),e}(r=r.replace(/\\0\\0/g,"%")),p.length>n?0:(function(t,n){e().set(t,n>>>0)}(p,t),p.length-1)}ht.fc();var fe=[null,ft,bt,Et,Ct,xt,Rt,jt,kt,Dt,Pt,Ut,Ft,It,Wt,Ht,Lt,Bt,Gt,Vt,Qt,Kt,te,ee,ne,ie],pe={b:function(t){return de(t+24)+24},n:function(t){return(t=new St(t)).uc()||(t.hc(!0),Ot--),t.ic(!1),_t.push(t),t.sc(),t.vc()},ma:function(t){throw x("Unexpected exception thrown, this is not properly supported - aborting"),H=!0,t},x:function(){Se(0);var t=_t.pop();if(t.Hc()&&!t.kc()){var e=t.Dc();e&>(e)(t.Zb),Tt(t.Zb)}At=0},e:function(){var t=At;if(!t)return oe=0;var e=new St(t);e.cc(t);var n=e.bc();if(!n)return oe=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;azt(r)));else if(O)postMessage({targetThread:t,cmd:"processProxyingQueue",queue:r});else{if(!(t=ht.Vb[t]))return;t.postMessage({cmd:"processProxyingQueue",queue:r})}return 1},Ea:function(){return-1},Pa:function(t,e){t=new Date(1e3*Yt(t)),a()[e>>2>>>0]=t.getUTCSeconds(),a()[e+4>>2>>>0]=t.getUTCMinutes(),a()[e+8>>2>>>0]=t.getUTCHours(),a()[e+12>>2>>>0]=t.getUTCDate(),a()[e+16>>2>>>0]=t.getUTCMonth(),a()[e+20>>2>>>0]=t.getUTCFullYear()-1900,a()[e+24>>2>>>0]=t.getUTCDay(),t=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,a()[e+28>>2>>>0]=t},Qa:function(t,e){t=new Date(1e3*Yt(t)),a()[e>>2>>>0]=t.getSeconds(),a()[e+4>>2>>>0]=t.getMinutes(),a()[e+8>>2>>>0]=t.getHours(),a()[e+12>>2>>>0]=t.getDate(),a()[e+16>>2>>>0]=t.getMonth(),a()[e+20>>2>>>0]=t.getFullYear()-1900,a()[e+24>>2>>>0]=t.getDay();var n=new Date(t.getFullYear(),0,1),r=(t.getTime()-n.getTime())/864e5|0;a()[e+28>>2>>>0]=r,a()[e+36>>2>>>0]=-60*t.getTimezoneOffset(),r=new Date(t.getFullYear(),6,1).getTimezoneOffset(),t=0|(r!=(n=n.getTimezoneOffset())&&t.getTimezoneOffset()==Math.min(n,r)),a()[e+32>>2>>>0]=t},Ra:function(t){var e=new Date(a()[t+20>>2>>>0]+1900,a()[t+16>>2>>>0],a()[t+12>>2>>>0],a()[t+8>>2>>>0],a()[t+4>>2>>>0],a()[t>>2>>>0],0),n=a()[t+32>>2>>>0],r=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),o=new Date(e.getFullYear(),6,1).getTimezoneOffset(),u=i.getTimezoneOffset(),c=Math.min(u,o);return 0>n?a()[t+32>>2>>>0]=Number(o!=u&&c==r):0>2>>>0]=e.getDay(),n=(e.getTime()-i.getTime())/864e5|0,a()[t+28>>2>>>0]=n,a()[t>>2>>>0]=e.getSeconds(),a()[t+4>>2>>>0]=e.getMinutes(),a()[t+8>>2>>>0]=e.getHours(),a()[t+12>>2>>>0]=e.getDate(),a()[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},Aa:Bt,Ba:Gt,Sa:function t(e,n,r){t.Ac||(t.Ac=!0,Vt(e,n,r))},y:function(){at("")},U:function(){if(!_&&!w){var t="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";vt||(vt={}),vt[t]||(vt[t]=1,_&&(t="warning: "+t),x(t))}},ra:function(){return 4294901760},B:wt,Ia:function(t,e,n){r().copyWithin(t>>>0,e>>>0,e+n>>>0)},F:function(){return _?n(993).cpus().length:navigator.hardwareConcurrency},Da:function(t,e,n){Xt.length=e,n>>=3;for(var r=0;r>>0];return(0>t?ut[-t-1]:fe[t]).apply(null,Xt)},qa:function(t){var e=r().length;if((t>>>=0)<=e||4294901760=n;n*=2){var a=e*(1+.2/n);a=Math.min(a,t+100663296);var i=Math;a=Math.max(t,a),i=i.min.call(i,4294901760,a+(65536-a%65536)%65536);t:{try{j.grow(i-D.byteLength+65535>>>16),N(j.buffer);var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},Na:function(){throw"unwind"},Ga:Qt,Ha:Kt,J:pt,I:te,S:ee,ga:ne,R:ie,d:function(){return oe},na:function t(r,a){t.lc||(t.lc=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(_)try{var e=n(Object(function(){var t=new Error("Cannot find module \'crypto\'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>at("randomDevice")}());for(var i=0;i>0>>>0]=t.lc();return 0},ia:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},ja:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},K:function(t){var e=Ee();try{return gt(t)()}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},f:function(t,e){var n=Ee();try{return gt(t)(e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},P:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},Q:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},k:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},p:function(t,e,n,r){var a=Ee();try{return gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},q:function(t,e,n,r,a){var i=Ee();try{return gt(t)(e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},N:function(t,e,n,r,a,i){var o=Ee();try{return gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},s:function(t,e,n,r,a,i){var o=Ee();try{return gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},w:function(t,e,n,r,a,i,o){var u=Ee();try{return gt(t)(e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},L:function(t,e,n,r,a,i,o,u){var c=Ee();try{return gt(t)(e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},E:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=Ee();try{return gt(t)(e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(Me(p),t!==t+0)throw t;Se(1,0)}},aa:function(t,e,n,r,a,i,o,u){var c=Ee();try{return He(t,e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},_:function(t,e,n,r,a,i,o){var u=Ee();try{return ke(t,e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},Z:function(t,e,n,r,a){var i=Ee();try{return Le(t,e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},ca:function(t,e,n,r){var a=Ee();try{return Ie(t,e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},$:function(t){var e=Ee();try{return je(t)}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},ba:function(t,e){var n=Ee();try{return We(t,e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},Y:function(t,e,n){var r=Ee();try{return De(t,e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},g:function(t){var e=Ee();try{gt(t)()}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},r:function(t,e){var n=Ee();try{gt(t)(e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},i:function(t,e,n){var r=Ee();try{gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},ha:function(t,e,n,r){var a=Ee();try{gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},m:function(t,e,n,r){var a=Ee();try{gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},v:function(t,e,n,r,a){var i=Ee();try{gt(t)(e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},u:function(t,e,n,r,a,i){var o=Ee();try{gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},O:function(t,e,n,r,a,i,o){var u=Ee();try{gt(t)(e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},A:function(t,e,n,r,a,i,o,u){var c=Ee();try{gt(t)(e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},ka:function(t,e,n,r,a,i,o,u,c){var s=Ee();try{gt(t)(e,n,r,a,i,o,u,c)}catch(t){if(Me(s),t!==t+0)throw t;Se(1,0)}},C:function(t,e,n,r,a,i,o,u,c,s,l){var f=Ee();try{gt(t)(e,n,r,a,i,o,u,c,s,l)}catch(t){if(Me(f),t!==t+0)throw t;Se(1,0)}},D:function(t,e,n,r,a,i,o,u,c,s,l,f,p,h,d,y){var b=Ee();try{gt(t)(e,n,r,a,i,o,u,c,s,l,f,p,h,d,y)}catch(t){if(Me(b),t!==t+0)throw t;Se(1,0)}},fa:function(t,e,n,r,a,i,o,u){var c=Ee();try{Pe(t,e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},da:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=Ee();try{Fe(t,e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(Me(p),t!==t+0)throw t;Se(1,0)}},ea:function(t,e,n,r,a,i){var o=Ee();try{Ue(t,e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},o:function(t){return t},a:j||u.wasmMemory,G:function(t){oe=t},la:le,z:function(t,e,n,r){return le(t,e,n,r)}};!function(){function t(t,e){u.asm=t.exports,ht.qc.push(u.asm.sb),$=u.asm.ub,X.unshift(u.asm.Va),k=e,O||(et--,u.monitorRunDependencies&&u.monitorRunDependencies(et),0==et&&(null!==nt&&(clearInterval(nt),nt=null),rt&&(t=rt,rt=null,t())))}function e(e){t(e.instance,e.module)}function n(t){return function(){if(!M&&(v||w)){if("function"==typeof fetch&&!tt.startsWith("file://"))return fetch(tt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at \'"+tt+"\'";return t.arrayBuffer()})).catch((function(){return ot()}));if(f)return new Promise((function(t,e){f(tt,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return ot()}))}().then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(t,(function(t){x("failed to asynchronously prepare wasm: "+t),at(t)}))}var r={a:pe};if(O||(et++,u.monitorRunDependencies&&u.monitorRunDependencies(et)),u.instantiateWasm)try{return u.instantiateWasm(r,t)}catch(t){return x("Module.instantiateWasm callback failed with error: "+t),!1}(M||"function"!=typeof WebAssembly.instantiateStreaming||it()||tt.startsWith("file://")||_||"function"!=typeof fetch?n(e):fetch(tt,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,r).then(e,(function(t){return x("wasm streaming compile failed: "+t),x("falling back to ArrayBuffer instantiation"),n(e)}))}))).catch(s)}(),u.___wasm_call_ctors=function(){return(u.___wasm_call_ctors=u.asm.Va).apply(null,arguments)},u._OrtInit=function(){return(u._OrtInit=u.asm.Wa).apply(null,arguments)},u._OrtCreateSessionOptions=function(){return(u._OrtCreateSessionOptions=u.asm.Xa).apply(null,arguments)},u._OrtAppendExecutionProvider=function(){return(u._OrtAppendExecutionProvider=u.asm.Ya).apply(null,arguments)},u._OrtAddSessionConfigEntry=function(){return(u._OrtAddSessionConfigEntry=u.asm.Za).apply(null,arguments)},u._OrtReleaseSessionOptions=function(){return(u._OrtReleaseSessionOptions=u.asm._a).apply(null,arguments)},u._OrtCreateSession=function(){return(u._OrtCreateSession=u.asm.$a).apply(null,arguments)},u._OrtReleaseSession=function(){return(u._OrtReleaseSession=u.asm.ab).apply(null,arguments)},u._OrtGetInputCount=function(){return(u._OrtGetInputCount=u.asm.bb).apply(null,arguments)},u._OrtGetOutputCount=function(){return(u._OrtGetOutputCount=u.asm.cb).apply(null,arguments)},u._OrtGetInputName=function(){return(u._OrtGetInputName=u.asm.db).apply(null,arguments)},u._OrtGetOutputName=function(){return(u._OrtGetOutputName=u.asm.eb).apply(null,arguments)},u._OrtFree=function(){return(u._OrtFree=u.asm.fb).apply(null,arguments)},u._OrtCreateTensor=function(){return(u._OrtCreateTensor=u.asm.gb).apply(null,arguments)},u._OrtGetTensorData=function(){return(u._OrtGetTensorData=u.asm.hb).apply(null,arguments)},u._OrtReleaseTensor=function(){return(u._OrtReleaseTensor=u.asm.ib).apply(null,arguments)},u._OrtCreateRunOptions=function(){return(u._OrtCreateRunOptions=u.asm.jb).apply(null,arguments)},u._OrtAddRunConfigEntry=function(){return(u._OrtAddRunConfigEntry=u.asm.kb).apply(null,arguments)},u._OrtReleaseRunOptions=function(){return(u._OrtReleaseRunOptions=u.asm.lb).apply(null,arguments)},u._OrtRun=function(){return(u._OrtRun=u.asm.mb).apply(null,arguments)},u._OrtEndProfiling=function(){return(u._OrtEndProfiling=u.asm.nb).apply(null,arguments)};var he=u._pthread_self=function(){return(he=u._pthread_self=u.asm.ob).apply(null,arguments)},de=u._malloc=function(){return(de=u._malloc=u.asm.pb).apply(null,arguments)},ye=u._free=function(){return(ye=u._free=u.asm.qb).apply(null,arguments)},be=u._fflush=function(){return(be=u._fflush=u.asm.rb).apply(null,arguments)};u.__emscripten_tls_init=function(){return(u.__emscripten_tls_init=u.asm.sb).apply(null,arguments)};var me=u.___funcs_on_exit=function(){return(me=u.___funcs_on_exit=u.asm.tb).apply(null,arguments)},ge=u.__emscripten_thread_init=function(){return(ge=u.__emscripten_thread_init=u.asm.vb).apply(null,arguments)};u.__emscripten_thread_crashed=function(){return(u.__emscripten_thread_crashed=u.asm.wb).apply(null,arguments)};var ve,we=u._emscripten_run_in_main_runtime_thread_js=function(){return(we=u._emscripten_run_in_main_runtime_thread_js=u.asm.xb).apply(null,arguments)},_e=u.__emscripten_proxy_execute_task_queue=function(){return(_e=u.__emscripten_proxy_execute_task_queue=u.asm.yb).apply(null,arguments)},Oe=u.__emscripten_thread_free_data=function(){return(Oe=u.__emscripten_thread_free_data=u.asm.zb).apply(null,arguments)},Ae=u.__emscripten_thread_exit=function(){return(Ae=u.__emscripten_thread_exit=u.asm.Ab).apply(null,arguments)},Se=u._setThrew=function(){return(Se=u._setThrew=u.asm.Bb).apply(null,arguments)},Te=u._emscripten_stack_set_limits=function(){return(Te=u._emscripten_stack_set_limits=u.asm.Cb).apply(null,arguments)},Ee=u.stackSave=function(){return(Ee=u.stackSave=u.asm.Db).apply(null,arguments)},Me=u.stackRestore=function(){return(Me=u.stackRestore=u.asm.Eb).apply(null,arguments)},Ce=u.stackAlloc=function(){return(Ce=u.stackAlloc=u.asm.Fb).apply(null,arguments)},xe=u.___cxa_can_catch=function(){return(xe=u.___cxa_can_catch=u.asm.Gb).apply(null,arguments)},Re=u.___cxa_is_pointer_type=function(){return(Re=u.___cxa_is_pointer_type=u.asm.Hb).apply(null,arguments)},je=u.dynCall_j=function(){return(je=u.dynCall_j=u.asm.Ib).apply(null,arguments)},ke=u.dynCall_iiiiij=function(){return(ke=u.dynCall_iiiiij=u.asm.Jb).apply(null,arguments)},De=u.dynCall_jii=function(){return(De=u.dynCall_jii=u.asm.Kb).apply(null,arguments)},Pe=u.dynCall_viiiiij=function(){return(Pe=u.dynCall_viiiiij=u.asm.Lb).apply(null,arguments)},Ue=u.dynCall_vjji=function(){return(Ue=u.dynCall_vjji=u.asm.Mb).apply(null,arguments)},Fe=u.dynCall_viiijjjii=function(){return(Fe=u.dynCall_viiijjjii=u.asm.Nb).apply(null,arguments)},Ie=u.dynCall_iij=function(){return(Ie=u.dynCall_iij=u.asm.Ob).apply(null,arguments)},We=u.dynCall_ji=function(){return(We=u.dynCall_ji=u.asm.Pb).apply(null,arguments)},He=u.dynCall_iiiiiij=function(){return(He=u.dynCall_iiiiiij=u.asm.Qb).apply(null,arguments)},Le=u.dynCall_iiij=function(){return(Le=u.dynCall_iiij=u.asm.Rb).apply(null,arguments)};function ze(){function t(){if(!ve&&(ve=!0,u.calledRun=!0,!H)&&(O||dt(X),c(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),!O)){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;){var t=u.postRun.shift();Z.unshift(t)}dt(Z)}}if(!(0{var _scriptDir,r=(_scriptDir=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,r,a;t=t||{},e||(e=void 0!==t?t:{}),e.ready=new Promise((function(t,e){r=t,a=e}));var i,o,u,c,s,l,f=Object.assign({},e),p="./this.program",h=(t,e)=>{throw e},d="object"==typeof window,y="function"==typeof importScripts,b="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";b?(m=y?n(908).dirname(m)+"/":"//",l=()=>{s||(c=n(384),s=n(908))},i=function(t,e){return l(),t=s.normalize(t),c.readFileSync(t,e?void 0:"utf8")},u=t=>((t=i(t,!0)).buffer||(t=new Uint8Array(t)),t),o=(t,e,n)=>{l(),t=s.normalize(t),c.readFile(t,(function(t,r){t?n(t):e(r.buffer)}))},1{if(_||0{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},y&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),o=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)});var g,v=e.print||console.log.bind(console),w=e.printErr||console.warn.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(p=e.thisProgram),e.quit&&(h=e.quit),e.wasmBinary&&(g=e.wasmBinary);var _=e.noExitRuntime||!1;"object"!=typeof WebAssembly&&V("no native wasm support detected");var O,A,S,T,E,M,C=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function R(t,e,n){var r=(e>>>=0)+n;for(n=e;t[n]&&!(n>=r);)++n;if(16(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&t[e++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function j(t,e){return(t>>>=0)?R(T,t,e):""}function k(t,e,n,r){if(!(0>>=0;r=n+r-1;for(var i=0;i=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(n>=r)break;e[n++>>>0]=o}else{if(2047>=o){if(n+1>=r)break;e[n++>>>0]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;e[n++>>>0]=224|o>>12}else{if(n+3>=r)break;e[n++>>>0]=240|o>>18,e[n++>>>0]=128|o>>12&63}e[n++>>>0]=128|o>>6&63}e[n++>>>0]=128|63&o}}return e[n>>>0]=0,n-a}function D(t){for(var e=0,n=0;n=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++n):e+=3}return e}function P(){var t=O.buffer;A=t,e.HEAP8=S=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=E=new Int32Array(t),e.HEAPU8=T=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=M=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}var U,F=[],I=[],W=[],H=[],L=0;function z(){var t=e.preRun.shift();F.unshift(t)}var Y,B=0,G=null,N=null;function V(t){throw e.onAbort&&e.onAbort(t),w(t="Aborted("+t+")"),C=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),a(t),t}function $(){return Y.startsWith("data:application/octet-stream;base64,")}if(Y="ort-wasm.wasm",!$()){var q=Y;Y=e.locateFile?e.locateFile(q,m):m+q}function X(){var t=Y;try{if(t==Y&&g)return new Uint8Array(g);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){V(t)}}function J(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Z(t){for(;0>2>>>0]=t},this.Eb=function(){return M[this.zb+4>>2>>>0]},this.Sb=function(t){M[this.zb+8>>2>>>0]=t},this.Wb=function(){return M[this.zb+8>>2>>>0]},this.Tb=function(){E[this.zb>>2>>>0]=0},this.Ib=function(t){S[this.zb+12>>0>>>0]=t?1:0},this.Pb=function(){return 0!=S[this.zb+12>>0>>>0]},this.Jb=function(t){S[this.zb+13>>0>>>0]=t?1:0},this.Lb=function(){return 0!=S[this.zb+13>>0>>>0]},this.Rb=function(t,e){this.Fb(0),this.Ub(t),this.Sb(e),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){E[this.zb>>2>>>0]+=1},this.Xb=function(){var t=E[this.zb>>2>>>0];return E[this.zb>>2>>>0]=t-1,1===t},this.Fb=function(t){M[this.zb+16>>2>>>0]=t},this.Ob=function(){return M[this.zb+16>>2>>>0]},this.Qb=function(){if(Mt(this.Eb()))return M[this.Db>>2>>>0];var t=this.Ob();return 0!==t?t:this.Db}}function nt(t){return vt(new et(t).zb)}var rt=[];function at(t){var e=rt[t];return e||(t>=rt.length&&(rt.length=t+1),rt[t]=e=U.get(t)),e}function it(t){var e=D(t)+1,n=gt(e);return n&&k(t,S,n,e),n}var ot={};function ut(){if(!ct){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(t in ot)void 0===ot[t]?delete e[t]:e[t]=ot[t];var n=[];for(t in e)n.push(t+"="+e[t]);ct=n}return ct}var ct,st=[null,[],[]];function lt(t,e){var n=st[t];0===e||10===e?((1===t?v:w)(R(n,0)),n.length=0):n.push(e)}var ft=0;function pt(t){return 0==t%4&&(0!=t%100||0==t%400)}var ht=[31,29,31,30,31,30,31,31,30,31,30,31],dt=[31,28,31,30,31,30,31,31,30,31,30,31];function yt(t,e,n,r){function a(t,e,n){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0r-t.getDate())){t.setDate(t.getDate()+e);break}e-=r-t.getDate()+1,t.setDate(1),11>n?t.setMonth(n+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return n=new Date(t.getFullYear()+1,0,4),e=u(new Date(t.getFullYear(),0,4)),n=u(n),0>=o(e,t)?0>=o(n,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var s=E[r+40>>2>>>0];for(var l in r={$b:E[r>>2>>>0],Zb:E[r+4>>2>>>0],Gb:E[r+8>>2>>>0],Kb:E[r+12>>2>>>0],Hb:E[r+16>>2>>>0],Cb:E[r+20>>2>>>0],Ab:E[r+24>>2>>>0],Bb:E[r+28>>2>>>0],bc:E[r+32>>2>>>0],Yb:E[r+36>>2>>>0],ac:s?j(s):""},n=j(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(new RegExp(l,"g"),s[l]);var f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),p="January February March April May June July August September October November December".split(" ");for(l in s={"%a":function(t){return f[t.Ab].substring(0,3)},"%A":function(t){return f[t.Ab]},"%b":function(t){return p[t.Hb].substring(0,3)},"%B":function(t){return p[t.Hb]},"%C":function(t){return i((t.Cb+1900)/100|0,2)},"%d":function(t){return i(t.Kb,2)},"%e":function(t){return a(t.Kb,2," ")},"%g":function(t){return c(t).toString().substring(2)},"%G":function(t){return c(t)},"%H":function(t){return i(t.Gb,2)},"%I":function(t){return 0==(t=t.Gb)?t=12:12t.Gb?"AM":"PM"},"%S":function(t){return i(t.$b,2)},"%t":function(){return"\\t"},"%u":function(t){return t.Ab||7},"%U":function(t){return i(Math.floor((t.Bb+7-t.Ab)/7),2)},"%V":function(t){var e=Math.floor((t.Bb+7-(t.Ab+6)%7)/7);if(2>=(t.Ab+371-t.Bb-2)%7&&e++,e)53==e&&(4==(n=(t.Ab+371-t.Bb)%7)||3==n&&pt(t.Cb)||(e=1));else{e=52;var n=(t.Ab+7-t.Bb-1)%7;(4==n||5==n&&pt(t.Cb%400-1))&&e++}return i(e,2)},"%w":function(t){return t.Ab},"%W":function(t){return i(Math.floor((t.Bb+7-(t.Ab+6)%7)/7),2)},"%y":function(t){return(t.Cb+1900).toString().substring(2)},"%Y":function(t){return t.Cb+1900},"%z":function(t){var e=0<=(t=t.Yb);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.ac},"%%":function(){return"%"}},n=n.replace(/%%/g,"\\0\\0"),s)n.includes(l)&&(n=n.replace(new RegExp(l,"g"),s[l](r)));return l=function(t){var e=Array(D(t)+1);return k(t,e,0,e.length),e}(n=n.replace(/\\0\\0/g,"%")),l.length>e?0:(S.set(l,t>>>0),l.length-1)}var bt={a:function(t){return gt(t+24)+24},m:function(t){return(t=new et(t)).Pb()||(t.Ib(!0),K--),t.Jb(!1),Q.push(t),t.Nb(),t.Qb()},ia:function(t){throw w("Unexpected exception thrown, this is not properly supported - aborting"),C=!0,t},w:function(){Ot(0);var t=Q.pop();if(t.Xb()&&!t.Lb()){var e=t.Wb();e&&at(e)(t.Db),nt(t.Db)}tt=0},d:function(){var t=tt;if(!t)return ft=0;var e=new et(t);e.Fb(t);var n=e.Eb();if(!n)return ft=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getUTCSeconds(),E[e+4>>2>>>0]=t.getUTCMinutes(),E[e+8>>2>>>0]=t.getUTCHours(),E[e+12>>2>>>0]=t.getUTCDate(),E[e+16>>2>>>0]=t.getUTCMonth(),E[e+20>>2>>>0]=t.getUTCFullYear()-1900,E[e+24>>2>>>0]=t.getUTCDay(),E[e+28>>2>>>0]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t,e){t=new Date(1e3*(M[t>>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getSeconds(),E[e+4>>2>>>0]=t.getMinutes(),E[e+8>>2>>>0]=t.getHours(),E[e+12>>2>>>0]=t.getDate(),E[e+16>>2>>>0]=t.getMonth(),E[e+20>>2>>>0]=t.getFullYear()-1900,E[e+24>>2>>>0]=t.getDay();var n=new Date(t.getFullYear(),0,1);E[e+28>>2>>>0]=(t.getTime()-n.getTime())/864e5|0,E[e+36>>2>>>0]=-60*t.getTimezoneOffset();var r=new Date(t.getFullYear(),6,1).getTimezoneOffset();n=n.getTimezoneOffset(),E[e+32>>2>>>0]=0|(r!=n&&t.getTimezoneOffset()==Math.min(n,r))},Fa:function(t){var e=new Date(E[t+20>>2>>>0]+1900,E[t+16>>2>>>0],E[t+12>>2>>>0],E[t+8>>2>>>0],E[t+4>>2>>>0],E[t>>2>>>0],0),n=E[t+32>>2>>>0],r=e.getTimezoneOffset(),a=new Date(e.getFullYear(),0,1),i=new Date(e.getFullYear(),6,1).getTimezoneOffset(),o=a.getTimezoneOffset(),u=Math.min(o,i);return 0>n?E[t+32>>2>>>0]=Number(i!=o&&u==r):0>2>>>0]=e.getDay(),E[t+28>>2>>>0]=(e.getTime()-a.getTime())/864e5|0,E[t>>2>>>0]=e.getSeconds(),E[t+4>>2>>>0]=e.getMinutes(),E[t+8>>2>>>0]=e.getHours(),E[t+12>>2>>>0]=e.getDate(),E[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},sa:function(){return-52},ta:function(){},Ga:function t(e,n,r){t.Vb||(t.Vb=!0,function(t,e,n){function r(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:"GMT"}var a=(new Date).getFullYear(),i=new Date(a,0,1),o=new Date(a,6,1);a=i.getTimezoneOffset();var u=o.getTimezoneOffset();E[t>>2>>>0]=60*Math.max(a,u),E[e>>2>>>0]=Number(a!=u),t=r(i),e=r(o),t=it(t),e=it(e),u>2>>>0]=t,M[n+4>>2>>>0]=e):(M[n>>2>>>0]=e,M[n+4>>2>>>0]=t)}(e,n,r))},B:function(){V("")},ma:function(){return 4294901760},I:b?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now(),xa:function(t,e,n){T.copyWithin(t>>>0,e>>>0,e+n>>>0)},G:function(t){var e=T.length;if(4294901760<(t>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=e*(1+.2/n);r=Math.min(r,t+100663296);var a=Math;r=Math.max(t,r),a=a.min.call(a,4294901760,r+(65536-r%65536)%65536);t:{try{O.grow(a-A.byteLength+65535>>>16),P();var i=1;break t}catch(t){}i=void 0}if(i)return!0}return!1},va:function(t,e){var n=0;return ut().forEach((function(r,a){var i=e+n;for(a=M[t+4*a>>2>>>0]=i,i=0;i>0>>>0]=r.charCodeAt(i);S[a>>0>>>0]=0,n+=r.length+1})),0},wa:function(t,e){var n=ut();M[t>>2>>>0]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),M[e>>2>>>0]=r,0},ba:function(t){_||0>2>>>0],u=M[e+4>>2>>>0];e+=8;for(var c=0;c>>0]);a+=u}return M[r>>2>>>0]=a,0},c:function(){return ft},ja:function t(e,r){t.Mb||(t.Mb=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(b)try{var e=n(Object(function(){var t=new Error("Cannot find module \'crypto\'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>V("randomDevice")}());for(var a=0;a>0>>>0]=t.Mb();return 0},ea:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},fa:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},J:function(t){var e=At();try{return at(t)()}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},e:function(t,e){var n=At();try{return at(t)(e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},N:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},O:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},j:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},o:function(t,e,n,r){var a=At();try{return at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},p:function(t,e,n,r,a){var i=At();try{return at(t)(e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},M:function(t,e,n,r,a,i){var o=At();try{return at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},r:function(t,e,n,r,a,i){var o=At();try{return at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},v:function(t,e,n,r,a,i,o){var u=At();try{return at(t)(e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},K:function(t,e,n,r,a,i,o,u){var c=At();try{return at(t)(e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},D:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=At();try{return at(t)(e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(St(p),t!==t+0)throw t;Ot(1,0)}},X:function(t,e,n,r,a,i,o,u){var c=At();try{return Ft(t,e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},V:function(t,e,n,r,a,i,o){var u=At();try{return xt(t,e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},U:function(t,e,n,r,a){var i=At();try{return It(t,e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},Z:function(t,e,n,r){var a=At();try{return Pt(t,e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},W:function(t){var e=At();try{return Ct(t)}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},Y:function(t,e){var n=At();try{return Ut(t,e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},T:function(t,e,n){var r=At();try{return Rt(t,e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},f:function(t){var e=At();try{at(t)()}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},q:function(t,e){var n=At();try{at(t)(e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},h:function(t,e,n){var r=At();try{at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},da:function(t,e,n,r){var a=At();try{at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},l:function(t,e,n,r){var a=At();try{at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},t:function(t,e,n,r,a){var i=At();try{at(t)(e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},u:function(t,e,n,r,a,i){var o=At();try{at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},x:function(t,e,n,r,a,i,o){var u=At();try{at(t)(e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},z:function(t,e,n,r,a,i,o,u){var c=At();try{at(t)(e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},ga:function(t,e,n,r,a,i,o,u,c){var s=At();try{at(t)(e,n,r,a,i,o,u,c)}catch(t){if(St(s),t!==t+0)throw t;Ot(1,0)}},A:function(t,e,n,r,a,i,o,u,c,s,l){var f=At();try{at(t)(e,n,r,a,i,o,u,c,s,l)}catch(t){if(St(f),t!==t+0)throw t;Ot(1,0)}},C:function(t,e,n,r,a,i,o,u,c,s,l,f,p,h,d,y){var b=At();try{at(t)(e,n,r,a,i,o,u,c,s,l,f,p,h,d,y)}catch(t){if(St(b),t!==t+0)throw t;Ot(1,0)}},aa:function(t,e,n,r,a,i,o,u){var c=At();try{jt(t,e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},_:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=At();try{Dt(t,e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(St(p),t!==t+0)throw t;Ot(1,0)}},$:function(t,e,n,r,a,i){var o=At();try{kt(t,e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},n:function(t){return t},F:function(t){ft=t},ha:yt,y:function(t,e,n,r){return yt(t,e,n,r)}};!function(){function t(t){e.asm=t.exports,O=e.asm.Ka,P(),U=e.asm.ib,I.unshift(e.asm.La),B--,e.monitorRunDependencies&&e.monitorRunDependencies(B),0==B&&(null!==G&&(clearInterval(G),G=null),N&&(t=N,N=null,t()))}function n(e){t(e.instance)}function r(t){return function(){if(!g&&(d||y)){if("function"==typeof fetch&&!Y.startsWith("file://"))return fetch(Y,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at \'"+Y+"\'";return t.arrayBuffer()})).catch((function(){return X()}));if(o)return new Promise((function(t,e){o(Y,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return X()}))}().then((function(t){return WebAssembly.instantiate(t,i)})).then((function(t){return t})).then(t,(function(t){w("failed to asynchronously prepare wasm: "+t),V(t)}))}var i={a:bt};if(B++,e.monitorRunDependencies&&e.monitorRunDependencies(B),e.instantiateWasm)try{return e.instantiateWasm(i,t)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}(g||"function"!=typeof WebAssembly.instantiateStreaming||$()||Y.startsWith("file://")||b||"function"!=typeof fetch?r(n):fetch(Y,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,i).then(n,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.La).apply(null,arguments)},e._OrtInit=function(){return(e._OrtInit=e.asm.Ma).apply(null,arguments)},e._OrtCreateSessionOptions=function(){return(e._OrtCreateSessionOptions=e.asm.Na).apply(null,arguments)},e._OrtAppendExecutionProvider=function(){return(e._OrtAppendExecutionProvider=e.asm.Oa).apply(null,arguments)},e._OrtAddSessionConfigEntry=function(){return(e._OrtAddSessionConfigEntry=e.asm.Pa).apply(null,arguments)},e._OrtReleaseSessionOptions=function(){return(e._OrtReleaseSessionOptions=e.asm.Qa).apply(null,arguments)},e._OrtCreateSession=function(){return(e._OrtCreateSession=e.asm.Ra).apply(null,arguments)},e._OrtReleaseSession=function(){return(e._OrtReleaseSession=e.asm.Sa).apply(null,arguments)},e._OrtGetInputCount=function(){return(e._OrtGetInputCount=e.asm.Ta).apply(null,arguments)},e._OrtGetOutputCount=function(){return(e._OrtGetOutputCount=e.asm.Ua).apply(null,arguments)},e._OrtGetInputName=function(){return(e._OrtGetInputName=e.asm.Va).apply(null,arguments)},e._OrtGetOutputName=function(){return(e._OrtGetOutputName=e.asm.Wa).apply(null,arguments)},e._OrtFree=function(){return(e._OrtFree=e.asm.Xa).apply(null,arguments)},e._OrtCreateTensor=function(){return(e._OrtCreateTensor=e.asm.Ya).apply(null,arguments)},e._OrtGetTensorData=function(){return(e._OrtGetTensorData=e.asm.Za).apply(null,arguments)},e._OrtReleaseTensor=function(){return(e._OrtReleaseTensor=e.asm._a).apply(null,arguments)},e._OrtCreateRunOptions=function(){return(e._OrtCreateRunOptions=e.asm.$a).apply(null,arguments)},e._OrtAddRunConfigEntry=function(){return(e._OrtAddRunConfigEntry=e.asm.ab).apply(null,arguments)},e._OrtReleaseRunOptions=function(){return(e._OrtReleaseRunOptions=e.asm.bb).apply(null,arguments)},e._OrtRun=function(){return(e._OrtRun=e.asm.cb).apply(null,arguments)},e._OrtEndProfiling=function(){return(e._OrtEndProfiling=e.asm.db).apply(null,arguments)};var mt,gt=e._malloc=function(){return(gt=e._malloc=e.asm.eb).apply(null,arguments)},vt=e._free=function(){return(vt=e._free=e.asm.fb).apply(null,arguments)},wt=e._fflush=function(){return(wt=e._fflush=e.asm.gb).apply(null,arguments)},_t=e.___funcs_on_exit=function(){return(_t=e.___funcs_on_exit=e.asm.hb).apply(null,arguments)},Ot=e._setThrew=function(){return(Ot=e._setThrew=e.asm.jb).apply(null,arguments)},At=e.stackSave=function(){return(At=e.stackSave=e.asm.kb).apply(null,arguments)},St=e.stackRestore=function(){return(St=e.stackRestore=e.asm.lb).apply(null,arguments)},Tt=e.stackAlloc=function(){return(Tt=e.stackAlloc=e.asm.mb).apply(null,arguments)},Et=e.___cxa_can_catch=function(){return(Et=e.___cxa_can_catch=e.asm.nb).apply(null,arguments)},Mt=e.___cxa_is_pointer_type=function(){return(Mt=e.___cxa_is_pointer_type=e.asm.ob).apply(null,arguments)},Ct=e.dynCall_j=function(){return(Ct=e.dynCall_j=e.asm.pb).apply(null,arguments)},xt=e.dynCall_iiiiij=function(){return(xt=e.dynCall_iiiiij=e.asm.qb).apply(null,arguments)},Rt=e.dynCall_jii=function(){return(Rt=e.dynCall_jii=e.asm.rb).apply(null,arguments)},jt=e.dynCall_viiiiij=function(){return(jt=e.dynCall_viiiiij=e.asm.sb).apply(null,arguments)},kt=e.dynCall_vjji=function(){return(kt=e.dynCall_vjji=e.asm.tb).apply(null,arguments)},Dt=e.dynCall_viiijjjii=function(){return(Dt=e.dynCall_viiijjjii=e.asm.ub).apply(null,arguments)},Pt=e.dynCall_iij=function(){return(Pt=e.dynCall_iij=e.asm.vb).apply(null,arguments)},Ut=e.dynCall_ji=function(){return(Ut=e.dynCall_ji=e.asm.wb).apply(null,arguments)},Ft=e.dynCall_iiiiiij=function(){return(Ft=e.dynCall_iiiiiij=e.asm.xb).apply(null,arguments)},It=e.dynCall_iiij=function(){return(It=e.dynCall_iiij=e.asm.yb).apply(null,arguments)};function Wt(){function t(){if(!mt&&(mt=!0,e.calledRun=!0,!C)){if(Z(I),r(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();H.unshift(t)}Z(H)}}if(!(0{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iterateExtraOptions=void 0,e.iterateExtraOptions=(t,n,r,a)=>{if("object"==typeof t&&null!==t){if(r.has(t))throw new Error("Circular reference in options");r.add(t)}Object.entries(t).forEach((([t,i])=>{const o=n?n+t:t;if("object"==typeof i)(0,e.iterateExtraOptions)(i,o+".",r,a);else if("string"==typeof i||"number"==typeof i)a(o,i.toString());else{if("boolean"!=typeof i)throw new Error("Can\'t handle extra config type: "+typeof i);a(o,i?"1":"0")}}))}},586:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setRunOptions=void 0;const r=n(967),a=n(983),i=n(361);e.setRunOptions=t=>{const e=(0,i.getInstance)();let n=0;const o=[],u=t||{};try{if(void 0===(null==t?void 0:t.logSeverityLevel))u.logSeverityLevel=2;else if("number"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${t.logSeverityLevel}`);if(void 0===(null==t?void 0:t.logVerbosityLevel))u.logVerbosityLevel=0;else if("number"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${t.logVerbosityLevel}`);void 0===(null==t?void 0:t.terminate)&&(u.terminate=!1);let i=0;if(void 0!==(null==t?void 0:t.tag)&&(i=(0,a.allocWasmString)(t.tag,o)),n=e._OrtCreateRunOptions(u.logSeverityLevel,u.logVerbosityLevel,!!u.terminate,i),0===n)throw new Error("Can\'t create run options");return void 0!==(null==t?void 0:t.extra)&&(0,r.iterateExtraOptions)(t.extra,"",new WeakSet,((t,r)=>{const i=(0,a.allocWasmString)(t,o),u=(0,a.allocWasmString)(r,o);if(0!==e._OrtAddRunConfigEntry(n,i,u))throw new Error(`Can\'t set a run config entry: ${t} - ${r}`)})),[n,o]}catch(t){throw 0!==n&&e._OrtReleaseRunOptions(n),o.forEach(e._free),t}}},919:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionOptions=void 0;const r=n(967),a=n(983),i=n(361);e.setSessionOptions=t=>{const e=(0,i.getInstance)();let n=0;const o=[],u=t||{};(t=>{t.extra||(t.extra={}),t.extra.session||(t.extra.session={});const e=t.extra.session;e.use_ort_model_bytes_directly||(e.use_ort_model_bytes_directly="1")})(u);try{void 0===(null==t?void 0:t.graphOptimizationLevel)&&(u.graphOptimizationLevel="all");const c=(t=>{switch(t){case"disabled":return 0;case"basic":return 1;case"extended":return 2;case"all":return 99;default:throw new Error(`unsupported graph optimization level: ${t}`)}})(u.graphOptimizationLevel);void 0===(null==t?void 0:t.enableCpuMemArena)&&(u.enableCpuMemArena=!0),void 0===(null==t?void 0:t.enableMemPattern)&&(u.enableMemPattern=!0),void 0===(null==t?void 0:t.executionMode)&&(u.executionMode="sequential");const s=(t=>{switch(t){case"sequential":return 0;case"parallel":return 1;default:throw new Error(`unsupported execution mode: ${t}`)}})(u.executionMode);let l=0;if(void 0!==(null==t?void 0:t.logId)&&(l=(0,a.allocWasmString)(t.logId,o)),void 0===(null==t?void 0:t.logSeverityLevel))u.logSeverityLevel=2;else if("number"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${t.logSeverityLevel}`);if(void 0===(null==t?void 0:t.logVerbosityLevel))u.logVerbosityLevel=0;else if("number"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${t.logVerbosityLevel}`);if(void 0===(null==t?void 0:t.enableProfiling)&&(u.enableProfiling=!1),n=e._OrtCreateSessionOptions(c,!!u.enableCpuMemArena,!!u.enableMemPattern,s,!!u.enableProfiling,0,l,u.logSeverityLevel,u.logVerbosityLevel),0===n)throw new Error("Can\'t create session options");return(null==t?void 0:t.executionProviders)&&((t,e,n)=>{for(const r of e){let e="string"==typeof r?r:r.name;switch(e){case"xnnpack":e="XNNPACK";break;case"wasm":case"cpu":continue;default:throw new Error(`not supported EP: ${e}`)}const o=(0,a.allocWasmString)(e,n);if(0!==(0,i.getInstance)()._OrtAppendExecutionProvider(t,o))throw new Error(`Can\'t append execution provider: ${e}`)}})(n,t.executionProviders,o),void 0!==(null==t?void 0:t.extra)&&(0,r.iterateExtraOptions)(t.extra,"",new WeakSet,((t,r)=>{const i=(0,a.allocWasmString)(t,o),u=(0,a.allocWasmString)(r,o);if(0!==e._OrtAddSessionConfigEntry(n,i,u))throw new Error(`Can\'t set a session config entry: ${t} - ${r}`)})),[n,o]}catch(t){throw 0!==n&&e._OrtReleaseSessionOptions(n),o.forEach(e._free),t}}},983:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.allocWasmString=void 0;const r=n(361);e.allocWasmString=(t,e)=>{const n=(0,r.getInstance)(),a=n.lengthBytesUTF8(t)+1,i=n._malloc(a);return n.stringToUTF8(t,i,a),e.push(i),i}},349:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractTransferableBuffers=e.endProfiling=e.run=e.releaseSession=e.createSession=e.createSessionFinalize=e.createSessionAllocate=e.initOrt=void 0;const r=n(586),a=n(919),i=n(983),o=n(361);e.initOrt=(t,e)=>{const n=(0,o.getInstance)()._OrtInit(t,e);if(0!==n)throw new Error(`Can\'t initialize onnxruntime. error code = ${n}`)};const u=new Map;e.createSessionAllocate=t=>{const e=(0,o.getInstance)(),n=e._malloc(t.byteLength);return e.HEAPU8.set(t,n),[n,t.byteLength]},e.createSessionFinalize=(t,e)=>{const n=(0,o.getInstance)();let r=0,i=0,c=[];try{if([i,c]=(0,a.setSessionOptions)(e),r=n._OrtCreateSession(t[0],t[1],i),0===r)throw new Error("Can\'t create a session")}finally{n._free(t[0]),n._OrtReleaseSessionOptions(i),c.forEach(n._free)}const s=n._OrtGetInputCount(r),l=n._OrtGetOutputCount(r),f=[],p=[],h=[],d=[];for(let t=0;t{const r=(0,e.createSessionAllocate)(t);return(0,e.createSessionFinalize)(r,n)},e.releaseSession=t=>{const e=(0,o.getInstance)(),n=u.get(t);if(!n)throw new Error("invalid session id");const r=n[0],a=n[1],i=n[2];a.forEach(e._OrtFree),i.forEach(e._OrtFree),e._OrtReleaseSession(r),u.delete(t)};const c=t=>{switch(t){case"int8":return 3;case"uint8":return 2;case"bool":return 9;case"int16":return 5;case"uint16":return 4;case"int32":return 6;case"uint32":return 12;case"float32":return 1;case"float64":return 11;case"string":return 8;case"int64":return 7;case"uint64":return 13;default:throw new Error(`unsupported data type: ${t}`)}},s=t=>{switch(t){case 3:return"int8";case 2:return"uint8";case 9:return"bool";case 5:return"int16";case 4:return"uint16";case 6:return"int32";case 12:return"uint32";case 1:return"float32";case 11:return"float64";case 8:return"string";case 7:return"int64";case 13:return"uint64";default:throw new Error(`unsupported data type: ${t}`)}},l=t=>{switch(t){case"float32":return Float32Array;case"uint8":case"bool":return Uint8Array;case"int8":return Int8Array;case"uint16":return Uint16Array;case"int16":return Int16Array;case"int32":return Int32Array;case"float64":return Float64Array;case"uint32":return Uint32Array;case"int64":return BigInt64Array;case"uint64":return BigUint64Array;default:throw new Error(`unsupported type: ${t}`)}};e.run=(t,e,n,a,f)=>{const p=(0,o.getInstance)(),h=u.get(t);if(!h)throw new Error("invalid session id");const d=h[0],y=h[1],b=h[2],m=e.length,g=a.length;let v=0,w=[];const _=[],O=[];try{[v,w]=(0,r.setRunOptions)(f);for(let t=0;tp.HEAP32[t++]=e));const n=p._OrtCreateTensor(c(e),o,u,l,r.length);if(0===n)throw new Error("Can\'t create a tensor");_.push(n)}finally{p.stackRestore(s)}}const t=p.stackSave(),o=p.stackAlloc(4*m),u=p.stackAlloc(4*m),h=p.stackAlloc(4*g),A=p.stackAlloc(4*g);try{let n=o/4,r=u/4,i=h/4,c=A/4;for(let t=0;tt*e));if(a=s(o),"string"===a){const t=[];let e=i/4;for(let n=0;n{const e=(0,o.getInstance)(),n=u.get(t);if(!n)throw new Error("invalid session id");const r=n[0],a=e._OrtEndProfiling(r);if(0===a)throw new Error("Can\'t get an profile file name");e._OrtFree(a)},e.extractTransferableBuffers=t=>{const e=[];for(const n of t){const t=n[2];!Array.isArray(t)&&t.buffer&&e.push(t.buffer)}return e}},361:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);a&&!("get"in a?!e.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.getInstance=e.initializeWebAssembly=void 0;const u=i(n(449)),c=o(n(932)),s=n(474);let l,f=!1,p=!1,h=!1;const d=(t,e)=>e?t?"ort-wasm-simd-threaded.wasm":"ort-wasm-threaded.wasm":t?"ort-wasm-simd.wasm":"ort-wasm.wasm";e.initializeWebAssembly=async t=>{if(f)return Promise.resolve();if(p)throw new Error("multiple calls to \'initializeWebAssembly()\' detected.");if(h)throw new Error("previous call to \'initializeWebAssembly()\' failed.");p=!0;const e=t.initTimeout,r=t.numThreads,a=t.simd,i=r>1&&(()=>{try{return"undefined"!=typeof SharedArrayBuffer&&("undefined"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(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])))}catch(t){return!1}})(),o=a&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(t){return!1}})(),y="string"==typeof t.wasmPaths?t.wasmPaths:void 0,b=d(!1,i),m=d(o,i),g="object"==typeof t.wasmPaths?t.wasmPaths[m]:void 0;let v=!1;const w=[];if(e>0&&w.push(new Promise((t=>{setTimeout((()=>{v=!0,t()}),e)}))),w.push(new Promise(((t,e)=>{const r=i?s:c.default,a={locateFile:(t,e)=>i&&t.endsWith(".worker.js")&&"undefined"!=typeof Blob?URL.createObjectURL(new Blob([n(154)],{type:"text/javascript"})):t===b?null!=g?g:(null!=y?y:e)+m:e+t};if(i)if("undefined"==typeof Blob)a.mainScriptUrlOrBlob=u.join("/","ort-wasm-threaded.js");else{const t=`var ortWasmThreaded=(function(){var _scriptDir;return ${r.toString()}})();`;a.mainScriptUrlOrBlob=new Blob([t],{type:"text/javascript"})}r(a).then((e=>{p=!1,f=!0,l=e,t()}),(t=>{p=!1,h=!0,e(t)}))}))),await Promise.race(w),v)throw new Error(`WebAssembly backend initializing failed due to timeout: ${e}ms`)},e.getInstance=()=>{if(f&&l)return l;throw new Error("WebAssembly is not initialized yet.")},e.dispose=()=>{var t;!f||p||h||(p=!0,null===(t=l.PThread)||void 0===t||t.terminateAllThreads(),l=void 0,p=!1,f=!1,h=!0)}},154:t=>{"use strict";t.exports=\'"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\\\\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};\\n\'},384:()=>{},993:()=>{},908:()=>{},953:()=>{},925:()=>{},449:()=>{}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{"use strict";const t=n(349),e=n(361);self.onmessage=n=>{switch(n.data.type){case"init-wasm":(0,e.initializeWebAssembly)(n.data.in).then((()=>postMessage({type:"init-wasm"})),(t=>postMessage({type:"init-wasm",err:t})));break;case"init-ort":try{const{numThreads:e,loggingLevel:r}=n.data.in;(0,t.initOrt)(e,r),postMessage({type:"init-ort"})}catch(t){postMessage({type:"init-ort",err:t})}break;case"create_allocate":try{const{model:e}=n.data.in,r=(0,t.createSessionAllocate)(e);postMessage({type:"create_allocate",out:r})}catch(t){postMessage({type:"create_allocate",err:t})}break;case"create_finalize":try{const{modeldata:e,options:r}=n.data.in,a=(0,t.createSessionFinalize)(e,r);postMessage({type:"create_finalize",out:a})}catch(t){postMessage({type:"create_finalize",err:t})}break;case"create":try{const{model:e,options:r}=n.data.in,a=(0,t.createSession)(e,r);postMessage({type:"create",out:a})}catch(t){postMessage({type:"create",err:t})}break;case"release":try{const e=n.data.in;(0,t.releaseSession)(e),postMessage({type:"release"})}catch(t){postMessage({type:"release",err:t})}break;case"run":try{const{sessionId:e,inputIndices:r,inputs:a,outputIndices:i,options:o}=n.data.in,u=(0,t.run)(e,r,a,i,o);postMessage({type:"run",out:u},(0,t.extractTransferableBuffers)(u))}catch(t){postMessage({type:"run",err:t})}break;case"end-profiling":try{const e=n.data.in;(0,t.endProfiling)(e),postMessage({type:"end-profiling"})}catch(t){postMessage({type:"end-profiling",err:t})}}}})()})();\n',`Worker`,void 0,void 0)}},477:t=>{"use strict";t.exports=function(t$1,e$3,n$2,r$2){var i$1=self||window;try{try{var o$1;try{o$1=new i$1.Blob([t$1])}catch{(o$1=new(i$1.BlobBuilder||i$1.WebKitBlobBuilder||i$1.MozBlobBuilder||i$1.MSBlobBuilder)).append(t$1),o$1=o$1.getBlob()}var a$2=i$1.URL||i$1.webkitURL,s$1=a$2.createObjectURL(o$1),u$1=new i$1[e$3](s$1,n$2);return a$2.revokeObjectURL(s$1),u$1}catch{return new i$1[e$3](`data:application/javascript,${encodeURIComponent(t$1)}`,n$2)}}catch{if(!r$2)throw Error(`Inline worker is not supported`);return new i$1[e$3](r$2,n$2)}}},4154:t=>{"use strict";t.exports=`"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}}; +`)},p$5=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Transpose requires 1 input.`);if(t$1[0].type!==`float32`&&t$1[0].type!==`float64`)throw Error(`input should be float tensor`)}},8710:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.encodeAsUint8=void 0;let r$2=n$2(5060),i$1=n$2(2039);e$3.encodeAsUint8=(t$1,e$4)=>{let n$3=e$4.shape,o$1=(0,r$2.getGlsl)(t$1.session.backend.glContext.version),a$2=`\n const float FLOAT_MAX = 1.70141184e38;\n const float FLOAT_MIN = 1.17549435e-38;\n\n bool isNaN(float val) {\n return (val < 1.0 || 0.0 < val || val == 0.0) ? false : true;\n }\n\n highp vec4 encodeAsUint8(highp float v) {\n if (isNaN(v)) {\n return vec4(255, 255, 255, 255);\n }\n\n highp float av = abs(v);\n\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 127.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(0.0, 0.0, 128.0, 255.0) / 255.0;\n }\n\n highp vec4 c = vec4(0,0,0,0);\n\n highp float e = floor(log2(av));\n highp float m = exp2(fract(log2(av))) - 1.0;\n\n c[2] = floor(128.0 * m);\n m -= c[2] / 128.0;\n c[1] = floor(32768.0 * m);\n m -= c[1] / 32768.0;\n c[0] = floor(8388608.0 * m);\n\n highp float ebias = e + 127.0;\n c[3] = floor(ebias / 2.0);\n ebias -= c[3] * 2.0;\n c[2] += floor(ebias) * 128.0;\n\n c[3] += 128.0 * step(0.0, -v);\n\n return c / 255.0;\n }\n\n void main() {\n float value = ${o$1.texture2D}(X,TexCoords).r;\n ${o$1.output} = encodeAsUint8(value);\n }`,s$1={name:`Uint8Encode`,inputTypes:[i$1.TextureType.unpacked],inputNames:[`X`],output:{dims:n$3,type:e$4.tensor.type,textureType:i$1.TextureType.downloadUint8AsFloat},shaderSource:a$2,hasMain:!0};return t$1.executeProgram(s$1,[e$4.tensor])}},4909:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.tanh=e$3.tan=e$3.sqrt=e$3.sin=e$3.sigmoid=e$3.relu=e$3.not=e$3.neg=e$3.log=e$3.parseLeakyReluAttributes=e$3.leakyRelu=e$3.identity=e$3.floor=e$3.exp=e$3.parseEluAttributes=e$3.elu=e$3.cos=e$3.ceil=e$3.clipV11=e$3.parseClipAttributes=e$3.clip=e$3.atan=e$3.asin=e$3.acos=e$3.abs=e$3.glslTanh=e$3.glslTan=e$3.glslSqrt=e$3.glslSigmoid=e$3.glslRelu=e$3.glslSin=e$3.glslNot=e$3.glslNeg=e$3.glslLog=e$3.glslLeakyRelu=e$3.glslIdentity=e$3.glslClip=e$3.glslFloor=e$3.glslExp=e$3.glslElu=e$3.glslCos=e$3.glslCeil=e$3.glslAtan=e$3.glslAsin=e$3.glslAcos=e$3.glslAbs=void 0;let r$2=n$2(246),i$1=n$2(2517),o$1=n$2(8520),a$2=n$2(5060),s$1=n$2(2039);function u$1(){return P$1(`abs`)}function c$4(){return P$1(`acos`)}function l$1(){return P$1(`asin`)}function p$5(){return P$1(`atan`)}function f$3(){return P$1(`ceil`)}function d$2(){return P$1(`cos`)}function h$3(t$1){let e$4=`elu`;return{body:`\n const float alpha = float(${t$1});\n\n float ${e$4}_(float a) {\n return a >= 0.0 ? a: (exp(a) - 1.0) * alpha;\n }\n vec4 ${e$4}_(vec4 v) {\n return vec4(${e$4}_(v.x), ${e$4}_(v.y), ${e$4}_(v.z), ${e$4}_(v.w));\n }\n `,name:e$4,type:o$1.FunctionType.ValueBased}}function g$2(){return P$1(`exp`)}function b$3(){return P$1(`floor`)}function m$2(t$1,e$4){let n$3=`clip`;return{body:`\n const float min = float(${t$1});\n const float max = float(${e$4});\n\n float ${n$3}_(float a) {\n return clamp(a, min, max);\n }\n vec4 ${n$3}_(vec4 v) {\n return clamp(v, min, max);\n }\n `,name:n$3,type:o$1.FunctionType.ValueBased}}function y$2(){let t$1=`indentity`;return{body:`\n float ${t$1}_(float a) {\n return a;\n }\n vec4 ${t$1}_(vec4 v) {\n return v;\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function _$2(t$1){let e$4=`leakyRelu`;return{body:`\n const float alpha = float(${t$1});\n\n float ${e$4}_(float a) {\n return a < 0.0 ? a * alpha : a;\n }\n vec4 ${e$4}_(vec4 v) {\n return vec4(${e$4}_(v.x), ${e$4}_(v.y), ${e$4}_(v.z), ${e$4}_(v.w));\n }\n `,name:e$4,type:o$1.FunctionType.ValueBased}}function v$1(){return P$1(`log`)}function w$1(){let t$1=`neg`;return{body:`\n float ${t$1}_(float a) {\n return -a;\n }\n vec4 ${t$1}_(vec4 v) {\n return -v;\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function x$3(){let t$1=`not`;return{body:`\n float ${t$1}_(float a) {\n return float( ! bool(a) );\n }\n bool ${t$1}_(bool a) {\n return !a;\n }\n vec4 ${t$1}_(vec4 v) {\n return vec4(!bool(v.x), !bool(v.y), !bool(v.z), !bool(v.w));\n }\n bvec4 ${t$1}_(bvec4 v) {\n return bvec4(!v.x, !v.y, !v.z, !v.w);\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function T$1(){return P$1(`sin`)}function S$2(){let t$1=`relu`;return{body:`\n float ${t$1}_(float a) {\n return max( a, 0.0 );\n }\n vec4 ${t$1}_(vec4 v) {\n return max( v, 0.0 );\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function O$2(){let t$1=`sigmoid`;return{body:`\n float ${t$1}_(float a) {\n return 1.0 / (1.0 + exp(-a));\n }\n vec4 ${t$1}_(vec4 v) {\n return 1.0 / (1.0 + exp(-v));\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function A$1(){return P$1(`sqrt`)}function E$2(){return P$1(`tan`)}function I(){let t$1=`tanh`;return{body:`\n float ${t$1}_(float a) {\n a = clamp(a, -10., 10.);\n a = exp(2.*a);\n return (a - 1.) / (a + 1.);\n }\n vec4 ${t$1}_(vec4 v) {\n v = clamp(v, -10., 10.);\n v = exp(2.*v);\n return (v - 1.) / (v + 1.);\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}function P$1(t$1){return{body:`\n float ${t$1}_(float a) {\n return ${t$1}(a);\n }\n vec4 ${t$1}_(vec4 v) {\n return ${t$1}(v);\n }\n `,name:t$1,type:o$1.FunctionType.ValueBased}}e$3.glslAbs=u$1,e$3.glslAcos=c$4,e$3.glslAsin=l$1,e$3.glslAtan=p$5,e$3.glslCeil=f$3,e$3.glslCos=d$2,e$3.glslElu=h$3,e$3.glslExp=g$2,e$3.glslFloor=b$3,e$3.glslClip=m$2,e$3.glslIdentity=y$2,e$3.glslLeakyRelu=_$2,e$3.glslLog=v$1,e$3.glslNeg=w$1,e$3.glslNot=x$3,e$3.glslSin=T$1,e$3.glslRelu=S$2,e$3.glslSigmoid=O$2,e$3.glslSqrt=A$1,e$3.glslTan=E$2,e$3.glslTanh=I;let D$1=(t$1,e$4,n$3,r$3)=>{let i$2=t$1.session.pack?s$1.TextureType.packed:s$1.TextureType.unpacked,o$2={name:n$3.name,inputTypes:[i$2],inputNames:[`A`],cacheHint:r$3};return Object.assign(Object.assign({},o$2),{get:()=>((t$2,e$5,n$4,r$4)=>{let i$3=t$2.session.pack?s$1.TextureType.packed:s$1.TextureType.unpacked,o$3=(0,a$2.getGlsl)(t$2.session.backend.glContext.version);return Object.assign(Object.assign({},e$5),{output:{dims:n$4.dims,type:n$4.type,textureType:i$3},shaderSource:`\n ${r$4.body}\n void main() {\n vec4 v = ${o$3.texture2D}(A, TexCoords);\n v = ${r$4.name}_(v);\n ${o$3.output} = v;\n }\n `,hasMain:!0})})(t$1,o$2,e$4,n$3)})};e$3.abs=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],u$1()),e$4)],e$3.acos=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],c$4()),e$4)],e$3.asin=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],l$1()),e$4)],e$3.atan=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],p$5()),e$4)],e$3.clip=(t$1,e$4,n$3)=>[t$1.run(D$1(t$1,e$4[0],m$2(n$3.min,n$3.max),n$3.cacheKey),e$4)],e$3.parseClipAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({min:t$1.attributes.getFloat(`min`,i$1.MIN_CLIP),max:t$1.attributes.getFloat(`max`,i$1.MAX_CLIP)}),e$3.clipV11=(t$1,n$3)=>{let r$3=$$1(t$1,n$3);return(0,e$3.clip)(t$1,[n$3[0]],r$3)};let $$1=(t$1,e$4)=>{if(e$4.length>=3&&(!t$1.session.isInitializer(e$4[1].dataId)||!t$1.session.isInitializer(e$4[2].dataId)))throw Error(`dynamic clip attributes are not allowed`);let n$3=e$4.length>=3?e$4[1].numberData[0]:i$1.MIN_CLIP,o$2=e$4.length>=3?e$4[2].numberData[0]:i$1.MAX_CLIP;return(0,r$2.createAttributeWithCacheKey)({min:n$3,max:o$2})};e$3.ceil=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],f$3()),e$4)],e$3.cos=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],d$2()),e$4)],e$3.elu=(t$1,e$4,n$3)=>[t$1.run(D$1(t$1,e$4[0],h$3(n$3.alpha),n$3.cacheKey),e$4)],e$3.parseEluAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({alpha:t$1.attributes.getFloat(`alpha`,1)}),e$3.exp=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],g$2()),e$4)],e$3.floor=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],b$3()),e$4)],e$3.identity=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],y$2()),e$4)],e$3.leakyRelu=(t$1,e$4,n$3)=>[t$1.run(D$1(t$1,e$4[0],_$2(n$3.alpha),n$3.cacheKey),e$4)],e$3.parseLeakyReluAttributes=t$1=>(0,r$2.createAttributeWithCacheKey)({alpha:t$1.attributes.getFloat(`alpha`,.01)}),e$3.log=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],v$1()),e$4)],e$3.neg=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],w$1()),e$4)],e$3.not=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],x$3()),e$4)],e$3.relu=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],S$2()),e$4)],e$3.sigmoid=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],O$2()),e$4)],e$3.sin=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],T$1()),e$4)],e$3.sqrt=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],A$1()),e$4)],e$3.tan=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],E$2()),e$4)],e$3.tanh=(t$1,e$4)=>[t$1.run(D$1(t$1,e$4[0],I()),e$4)]},5611:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createUnpackProgramInfoLoader=e$3.createUnpackProgramInfo=void 0;let r$2=n$2(5060),i$1=n$2(2039),o$1=n$2(9390),a$2=n$2(2827),s$1={name:`unpack`,inputNames:[`A`],inputTypes:[i$1.TextureType.packed]};e$3.createUnpackProgramInfo=(t$1,e$4)=>{let n$3=e$4.dims.length,u$1=(0,a$2.getChannels)(`rc`,n$3),c$4=u$1.slice(-2),l$1=(0,o$1.getCoordsDataType)(n$3),p$5=(0,a$2.unpackFromChannel)(),f$3=e$4.dims.length===0?``:function(t$2,e$5){if(t$2===1)return`rc`;let n$4=``;for(let r$3=0;r$3Object.assign(Object.assign({},s$1),{get:()=>(0,e$3.createUnpackProgramInfo)(t$1,n$3)})},8428:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.parseUnsqueezeAttributes=e$3.unsqueezeV13=e$3.unsqueeze=void 0;let r$2=n$2(2517);e$3.unsqueeze=(t$1,e$4,n$3)=>{i$1(e$4);let o$2=r$2.ShapeUtil.unsqueezeShape(e$4[0].dims,n$3);return[t$1.reshapeUnpacked(e$4[0],o$2)]},e$3.unsqueezeV13=(t$1,n$3)=>(o$1(n$3),(0,e$3.unsqueeze)(t$1,[n$3[0]],Array.from(n$3[1].integerData))),e$3.parseUnsqueezeAttributes=t$1=>t$1.attributes.getInts(`axes`);let i$1=t$1=>{if(!t$1||t$1.length!==1)throw Error(`Unsqueeze requires 1 input.`);if(t$1[0].type===`string`)throw Error(`invalid input tensor types.`)},o$1=t$1=>{if(!t$1||t$1.length!==2)throw Error(`Unsqueeze requires 2 inputs.`);if(t$1[1].type!==`int32`)throw Error(`Invalid input type.`)}},9793:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.scalesValidation=e$3.validateInputs=e$3.parseUpsampleAttributes=e$3.parseUpsampleAttributesV9=e$3.parseUpsampleAttributesV7=e$3.upsample=void 0;let r$2=n$2(246),i$1=n$2(5060),o$1=n$2(2039),a$2={name:`Upsample`,inputNames:[`X`],inputTypes:[o$1.TextureType.unpacked]};e$3.upsample=(t$1,n$3,r$3)=>((0,e$3.validateInputs)(n$3,r$3),[t$1.run(Object.assign(Object.assign({},a$2),{cacheHint:r$3.cacheKey,get:()=>s$1(t$1,n$3,r$3)}),n$3)]),e$3.parseUpsampleAttributesV7=t$1=>(0,e$3.parseUpsampleAttributes)(t$1,7),e$3.parseUpsampleAttributesV9=t$1=>(0,e$3.parseUpsampleAttributes)(t$1,9),e$3.parseUpsampleAttributes=(t$1,n$3)=>{let i$2=n$3>=10,o$2=t$1.attributes.getString(`mode`,`nearest`);if(o$2!==`nearest`&&o$2!==`linear`&&(n$3<11||o$2!==`cubic`))throw Error(`unrecognized mode: ${o$2}`);let a$3=[];n$3<9&&(a$3=t$1.attributes.getFloats(`scales`),(0,e$3.scalesValidation)(a$3,o$2,i$2));let s$2=t$1.attributes.getFloat(`extrapolation_value`,0),u$1=n$3>10?t$1.attributes.getString(`coordinate_transformation_mode`,`half_pixel`):`asymmetric`;if([`asymmetric`,`pytorch_half_pixel`,`tf_half_pixel_for_nn`,`align_corners`,`tf_crop_and_resize`,`half_pixel`].indexOf(u$1)===-1)throw Error(`coordinate_transform_mode '${u$1}' is not supported`);let c$4=u$1===`tf_crop_and_resize`,l$1=c$4,p$5=o$2===`nearest`&&n$3>=11?t$1.attributes.getString(`nearest_mode`,`round_prefer_floor`):``;if([`round_prefer_floor`,`round_prefer_ceil`,`floor`,`ceil`,``].indexOf(p$5)===-1)throw Error(`nearest_mode '${p$5}' is not supported`);let f$3=t$1.attributes.getFloat(`cubic_coeff_a`,-.75),d$2=t$1.attributes.getInt(`exclude_outside`,0)!==0;if(d$2&&o$2!==`cubic`)throw Error(`exclude_outside can be set to 1 only when mode is CUBIC.`);let h$3=n$3<11||o$2===`nearest`&&u$1===`asymmetric`&&p$5===`floor`,g$2=0,b$3=0,m$2=0;return n$3>10?t$1.inputs.length>2?(g$2=1,b$3=2,m$2=3):(b$3=1,m$2=2):n$3===9&&(b$3=1),(0,r$2.createAttributeWithCacheKey)({opset:n$3,isResize:i$2,mode:o$2,scales:a$3,extrapolationValue:s$2,coordinateTransformMode:u$1,useExtrapolation:l$1,needRoiInput:c$4,nearestMode:p$5,cubicCoefficientA:f$3,excludeOutside:d$2,useNearest2xOptimization:h$3,roiInputIdx:g$2,scalesInputIdx:b$3,sizesInputIdx:m$2})};let s$1=(t$1,e$4,n$3)=>{let r$3=(0,i$1.getGlsl)(t$1.session.backend.glContext.version),[s$2,u$1]=t$1.calculateTextureWidthAndHeight(e$4[0].dims,o$1.TextureType.unpacked),c$4=e$4[0].dims.map((t$2,e$5)=>Math.floor(t$2*n$3.scales[e$5])),[l$1,p$5]=t$1.calculateTextureWidthAndHeight(c$4,o$1.TextureType.unpacked),f$3=c$4.length,d$2=Array(f$3),h$3=Array(f$3),g$2=`\n int output_pitches[${f$3}];\n int input_pitches[${f$3}];\n `;for(let t$2=f$3-1;t$2>=0;t$2--)d$2[t$2]=t$2===f$3-1?1:d$2[t$2+1]*c$4[t$2+1],h$3[t$2]=t$2===f$3-1?1:h$3[t$2+1]*e$4[0].dims[t$2+1],g$2+=`\n output_pitches[${t$2}] = ${d$2[t$2]};\n input_pitches[${t$2}] = ${h$3[t$2]};\n `;let b$3=`\n float getInputFloat(int index) {\n vec2 coords = offsetToCoords(index, ${s$2}, ${u$1});\n float value = getColorAsFloat(${r$3.texture2D}(X, coords));\n return value;\n }\n `,m$2=n$3.mode===`nearest`?`\n ${b$3}\n float process(int indices[${f$3}]) {\n int input_index = 0;\n int output_index = coordsToOffset(TexCoords, ${l$1}, ${p$5});\n\n ${g$2}\n\n int d, m;\n for (int dim = 0; dim < ${f$3}; ++dim) {\n d = output_index / output_pitches[dim];\n m = output_index - d * output_pitches[dim];\n output_index = m;\n\n if (scales[dim] != 1 && d > 0) {\n int d2 = d / scales[dim];\n m = d - d2 * scales[dim];\n d = d2;\n }\n input_index += input_pitches[dim] * d;\n }\n\n return getInputFloat(input_index);\n }`:f$3===4?`\n ${b$3}\n float process(int indices[4]) {\n int input_index = 0;\n int output_index = coordsToOffset(TexCoords, ${l$1}, ${p$5});\n\n ${g$2}\n\n int m;\n int index_of_dim0, index_of_dim1, index_of_dim2, index_of_dim3;\n index_of_dim0 = output_index / output_pitches[0];\n m = output_index - index_of_dim0 * output_pitches[0];\n index_of_dim1 = m / output_pitches[1];\n m = m - index_of_dim1 * output_pitches[1];\n index_of_dim2 = m / output_pitches[2];\n m = m - index_of_dim2 * output_pitches[2];\n index_of_dim3 = m;\n\n int index_of_input_dim2, index_of_input_dim3, x_offset, y_offset;\n index_of_input_dim2 = index_of_dim2 / scales[2];\n y_offset = index_of_dim2 - index_of_input_dim2 * scales[2];\n index_of_input_dim3 = index_of_dim3 / scales[3];\n x_offset = index_of_dim3 - index_of_input_dim3 * scales[3];\n\n input_index = index_of_dim0 * input_pitches[0] +\n index_of_dim1 * input_pitches[1] +\n index_of_input_dim2 * input_pitches[2] +\n index_of_input_dim3;\n\n float x00 = getInputFloat(input_index);\n float x10, x01, x11;\n\n bool end_of_dim2 = false;\n if (index_of_input_dim2 == (${e$4[0].dims[2]} - 1)) {\n // It's the end in dimension 2\n x01 = x00;\n end_of_dim2 = true;\n } else {\n x01 = getInputFloat(input_index + input_pitches[2]);\n }\n\n if (index_of_input_dim3 == (input_pitches[2] - 1)) {\n // It's the end in dimension 3\n x10 = x00;\n x11 = x01;\n }\n else {\n x10 = getInputFloat(input_index + 1);\n x11 = end_of_dim2 ? x10 : getInputFloat(input_index + input_pitches[2] + 1);\n }\n\n float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[2]);\n float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[2]);\n return y0 + float(x_offset) * (y1 - y0) / float(scales[3]);\n }`:`\n ${b$3}\n float process(int indices[2]) {\n int input_index = 0;\n int output_index = coordsToOffset(TexCoords, ${l$1}, ${p$5});\n\n ${g$2}\n\n int m;\n int index_of_dim0, index_of_dim1;\n index_of_dim0 = output_index / output_pitches[0];\n m = output_index - index_of_dim0 * output_pitches[0];\n index_of_dim1 = m;\n\n int index_of_input_dim0, index_of_input_dim1, x_offset, y_offset;\n index_of_input_dim0 = index_of_dim0 / scales[0];\n y_offset = index_of_dim0 - index_of_input_dim0 * scales[0];\n index_of_input_dim1 = index_of_dim1 / scales[1];\n x_offset = index_of_dim1 - index_of_input_dim1 * scales[1];\n\n input_index = index_of_input_dim0 * input_pitches[0] + index_of_input_dim1;\n\n float x00 = getInputFloat(input_index);\n float x10, x01, x11;\n\n bool end_of_dim0 = false;\n if (index_of_input_dim0 == (${e$4[0].dims[0]} - 1)) {\n // It's the end in dimension 0\n x01 = x00;\n end_of_dim0 = true;\n } else {\n x01 = getInputFloat(input_index + input_pitches[0]);\n }\n\n if (index_of_input_dim1 == (input_pitches[0] - 1)) {\n // It's the end in dimension 1\n x10 = x00;\n x11 = x01;\n }\n else {\n x10 = getInputFloat(input_index + 1);\n x11 = end_of_dim0 ? x10 : getInputFloat(input_index + input_pitches[0] + 1);\n }\n\n float y0 = x00 + float(y_offset) * (x01 - x00) / float(scales[0]);\n float y1 = x10 + float(y_offset) * (x11 - x10) / float(scales[0]);\n return y0 + float(x_offset) * (y1 - y0) / float(scales[1]);\n }`;return Object.assign(Object.assign({},a$2),{output:{dims:c$4,type:e$4[0].type,textureType:o$1.TextureType.unpacked},shaderSource:m$2,variables:[{name:`scales`,type:`int`,arrayLength:n$3.scales.length,data:n$3.scales.map(t$2=>Math.ceil(t$2))}]})};e$3.validateInputs=(t$1,e$4)=>{if(!t$1||e$4.opset<9&&t$1.length!==1||e$4.opset>=9&&e$4.opset<11&&t$1.length!==2||e$4.opset>=11&&t$1.length<2)throw Error(`invalid inputs.`);if(e$4.scales.length>0&&t$1[0].dims.length!==e$4.scales.length)throw Error(`Invalid input shape.`);if(t$1[0].type===`string`)throw Error(`Invalid input tensor types.`)},e$3.scalesValidation=(t$1,e$4,n$3)=>{if(n$3){for(let e$5 of t$1)if(e$5<=0)throw Error(`Scale value should be greater than 0.`)}else for(let e$5 of t$1)if(e$5<1)throw Error(`Scale value should be greater than or equal to 1.`);if(!(e$4!==`linear`&&e$4!==`cubic`||t$1.length===2||t$1.length===4&&t$1[0]===1&&t$1[1]===1))throw Error(`'Linear' mode and 'Cubic' mode only support 2-D inputs ('Bilinear', 'Bicubic') or 4-D inputs with the corresponding outermost 2 scale values being 1 in the ${n$3?`Resize`:`Upsample`} opeartor.`)}},1958:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.ProgramManager=void 0;let r$2=n$2(1670),i$1=n$2(6231),o$1=n$2(8879),a$2=n$2(5060);e$3.ProgramManager=class{constructor(t$1,e$4,n$3){this.profiler=t$1,this.glContext=e$4,this.textureLayoutStrategy=n$3,this.repo=new Map,this.attributesBound=!1}getArtifact(t$1){return this.repo.get(t$1)}setArtifact(t$1,e$4){this.repo.set(t$1,e$4)}run(t$1,e$4,n$3){var r$3;this.profiler.event(`op`,`ProgramManager.run ${(r$3=t$1.programInfo.name)??`unknown kernel`}`,()=>{var r$4;let o$2=this.glContext.gl,a$3=t$1.program;o$2.useProgram(a$3);try{this.bindOutput(n$3),this.attributesBound||this.bindAttributes(t$1.attribLocations),this.bindUniforms(t$1.uniformLocations,(r$4=t$1.programInfo.variables)??[],e$4)}catch(e$5){throw i$1.Logger.error(`ProgramManager`,t$1.programInfo.shaderSource),e$5}this.profiler.event(`backend`,`GlContext.draw()`,()=>{this.glContext.draw()})},this.glContext)}dispose(){this.vertexShader&&this.glContext.deleteShader(this.vertexShader),this.repo.forEach(t$1=>this.glContext.deleteProgram(t$1.program))}build(t$1,e$4,n$3){return this.profiler.event(`backend`,`ProgramManager.build`,()=>{let r$3=new o$1.GlslPreprocessor(this.glContext,t$1,e$4,n$3),i$2=r$3.preprocess(),a$3=this.compile(i$2);return{programInfo:t$1,program:a$3,uniformLocations:this.getUniformLocations(a$3,r$3.context.programInfo.inputNames,r$3.context.programInfo.variables),attribLocations:this.getAttribLocations(a$3)}})}compile(t$1){if(!this.vertexShader){i$1.Logger.verbose(`ProrgramManager`,`Compiling and caching Vertex shader for the first time`);let t$2=(0,a$2.getVertexShaderSource)(this.glContext.version);this.vertexShader=this.glContext.compileShader(t$2,this.glContext.gl.VERTEX_SHADER)}r$2.env.debug&&i$1.Logger.verbose(`ProrgramManager`,`FragShader:\n${t$1}\n`);let e$4=this.glContext.compileShader(t$1,this.glContext.gl.FRAGMENT_SHADER),n$3=this.glContext.createProgram(this.vertexShader,e$4);return this.glContext.deleteShader(e$4),n$3}bindOutput(t$1){let e$4=t$1.width,n$3=t$1.height;i$1.Logger.verbose(`ProrgramManager`,`Binding output texture to Framebuffer: w/h=${e$4}/${n$3}, shape=${t$1.shape}, type=${t$1.tensor.type}`),this.glContext.attachFramebuffer(t$1.texture,e$4,n$3)}bindAttributes(t$1){let e$4=t$1.position,n$3=t$1.textureCoord;this.glContext.setVertexAttributes(e$4,n$3),this.attributesBound=!0}bindUniforms(t$1,e$4,n$3){var r$3;let i$2=this.glContext.gl,o$2=0;for(let{name:a$3,type:s$1,location:u$1,arrayLength:c$4}of t$1){let t$2=(r$3=e$4.find(t$3=>t$3.name===a$3))?.data;if(s$1!==`sampler2D`&&!t$2)throw Error(`variable '${a$3}' does not have data defined in program info`);switch(s$1){case`sampler2D`:this.bindTexture(n$3[o$2],u$1,o$2),o$2++;break;case`float`:c$4?i$2.uniform1fv(u$1,t$2):i$2.uniform1f(u$1,t$2);break;case`int`:c$4?i$2.uniform1iv(u$1,t$2):i$2.uniform1i(u$1,t$2);break;default:throw Error(`Uniform not implemented: ${s$1}`)}}}bindTexture(t$1,e$4,n$3){this.glContext.bindTextureToUniform(t$1.texture,n$3,e$4)}getAttribLocations(t$1){return{position:this.getAttribLocation(t$1,`position`),textureCoord:this.getAttribLocation(t$1,`textureCoord`)}}getUniformLocations(t$1,e$4,n$3){let r$3=[];if(e$4)for(let n$4 of e$4)r$3.push({name:n$4,type:`sampler2D`,location:this.getUniformLocation(t$1,n$4)});if(n$3)for(let e$5 of n$3)r$3.push(Object.assign(Object.assign({},e$5),{location:this.getUniformLocation(t$1,e$5.name)}));return r$3}getUniformLocation(t$1,e$4){let n$3=this.glContext.gl.getUniformLocation(t$1,e$4);if(n$3===null)throw Error(`Uniform ${e$4} not found.`);return n$3}getAttribLocation(t$1,e$4){return this.glContext.gl.getAttribLocation(t$1,e$4)}}},6416:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLSessionHandler=void 0;let r$2=n$2(6231),i$1=n$2(1047),o$1=n$2(8316),a$2=n$2(1640),s$1=n$2(1958),u$1=n$2(7859),c$4=n$2(5702);e$3.WebGLSessionHandler=class{constructor(t$1,e$4){this.backend=t$1,this.context=e$4,this.layoutStrategy=new u$1.PreferLogicalStrategy(t$1.glContext.maxTextureSize),this.programManager=new s$1.ProgramManager(this.context.profiler,t$1.glContext,this.layoutStrategy),this.textureManager=new c$4.TextureManager(t$1.glContext,this.layoutStrategy,this.context.profiler,{reuseTextures:t$1.textureCacheMode===`full`}),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache=new Map,this.pack=t$1.pack,this.pack2unpackMap=new Map,this.unpack2packMap=new Map}createInferenceHandler(){return new o$1.WebGLInferenceHandler(this)}onGraphInitialized(t$1){let e$4=t$1.getValues().filter(t$2=>t$2.from===-1&&t$2.tensor).map(t$2=>t$2.tensor.dataId);this.initializers=new Set(e$4)}isInitializer(t$1){return!!this.initializers&&this.initializers.has(t$1)}addInitializer(t$1){this.initializers.add(t$1)}getTextureData(t$1,e$4){return e$4?this.packedTextureDataCache.get(t$1):this.unpackedTextureDataCache.get(t$1)}setTextureData(t$1,e$4,n$3=!1){r$2.Logger.verbose(`WebGLSessionHandler`,`Storing Texture data in cache`),n$3?this.packedTextureDataCache.set(t$1,e$4):this.unpackedTextureDataCache.set(t$1,e$4)}dispose(){this.programManager.dispose(),this.textureManager.clearActiveTextures(),this.packedTextureDataCache.forEach(t$1=>this.textureManager.releaseTexture(t$1,!0)),this.packedTextureDataCache=new Map,this.unpackedTextureDataCache.forEach(t$1=>this.textureManager.releaseTexture(t$1,!0)),this.unpackedTextureDataCache=new Map}resolve(t$1,e$4,n$3){let r$3=(0,i$1.resolveOperator)(t$1,e$4,a$2.WEBGL_OP_RESOLVE_RULES);return{impl:r$3.opImpl,context:r$3.opInit?r$3.opInit(t$1,n$3):t$1}}}},7769:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Uint8DataEncoder=e$3.RGBAFloatDataEncoder=e$3.RedFloat32DataEncoder=void 0;let r$2=n$2(6231);e$3.RedFloat32DataEncoder=class{constructor(t$1,e$4=1){if(e$4===1)this.internalFormat=t$1.R32F,this.format=t$1.RED,this.textureType=t$1.FLOAT,this.channelSize=e$4;else{if(e$4!==4)throw Error(`Invalid number of channels: ${e$4}`);this.internalFormat=t$1.RGBA32F,this.format=t$1.RGBA,this.textureType=t$1.FLOAT,this.channelSize=e$4}}encode(t$1,e$4){let n$3,i$1;return t$1.constructor!==Float32Array&&(r$2.Logger.warning(`Encoder`,`data was not of type Float32; creating new Float32Array`),i$1=new Float32Array(t$1)),e$4*this.channelSize>t$1.length?(r$2.Logger.warning(`Encoder`,`Source data too small. Allocating larger array`),i$1=t$1,n$3=this.allocate(e$4*this.channelSize),i$1.forEach((t$2,e$5)=>n$3[e$5]=t$2)):(i$1=t$1,n$3=i$1),n$3}allocate(t$1){return new Float32Array(4*t$1)}decode(t$1,e$4){return this.channelSize===1?t$1.filter((t$2,e$5)=>e$5%4==0).subarray(0,e$4):t$1.subarray(0,e$4)}},e$3.RGBAFloatDataEncoder=class{constructor(t$1,e$4=1,n$3){if(e$4!==1&&e$4!==4)throw Error(`Invalid number of channels: ${e$4}`);this.internalFormat=t$1.RGBA,this.format=t$1.RGBA,this.channelSize=e$4,this.textureType=n$3||t$1.FLOAT}encode(t$1,e$4){let n$3=t$1;return this.channelSize===1&&(r$2.Logger.verbose(`Encoder`,`Exploding into a larger array`),n$3=this.allocate(e$4),t$1.forEach((t$2,e$5)=>n$3[4*e$5]=t$2)),n$3}allocate(t$1){return new Float32Array(4*t$1)}decode(t$1,e$4){return this.channelSize===1?t$1.filter((t$2,e$5)=>e$5%4==0).subarray(0,e$4):t$1.subarray(0,e$4)}},e$3.Uint8DataEncoder=class{constructor(t$1,e$4=1){if(this.channelSize=4,e$4===1)this.internalFormat=t$1.ALPHA,this.format=t$1.ALPHA,this.textureType=t$1.UNSIGNED_BYTE,this.channelSize=e$4;else{if(e$4!==4)throw Error(`Invalid number of channels: ${e$4}`);this.internalFormat=t$1.RGBA,this.format=t$1.RGBA,this.textureType=t$1.UNSIGNED_BYTE,this.channelSize=e$4}}encode(t$1,e$4){return new Uint8Array(t$1.buffer,t$1.byteOffset,t$1.byteLength)}allocate(t$1){return new Uint8Array(t$1*this.channelSize)}decode(t$1,e$4){if(t$1 instanceof Uint8Array)return t$1.subarray(0,e$4);throw Error(`Invalid array type: ${t$1.constructor}`)}}},7859:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getBatchDim=e$3.sizeToSquarishShape=e$3.getRowsCols=e$3.sizeFromShape=e$3.isInt=e$3.parseAxisParam=e$3.squeezeShape=e$3.PreferLogicalStrategy=e$3.AlwaysKeepOriginalSizeStrategy=void 0;let r$2=n$2(6231),i$1=n$2(2517);function o$1(t$1,e$4){let n$3=[],r$3=[],i$2=e$4!=null&&Array.isArray(e$4)&&e$4.length===0,o$2=e$4==null||i$2?null:a$2(e$4,t$1).sort(),s$2=0;for(let e$5=0;e$5e$5)&&t$1[e$5]===1&&(n$3.push(t$1[e$5]),r$3.push(e$5)),o$2[s$2]<=e$5&&s$2++}t$1[e$5]!==1&&(n$3.push(t$1[e$5]),r$3.push(e$5))}return{newShape:n$3,keptDims:r$3}}function a$2(t$1,e$4){let n$3=e$4.length;return t$1=t$1==null?e$4.map((t$2,e$5)=>e$5):[].concat(t$1),(0,i$1.assert)(t$1.every(t$2=>t$2>=-n$3&&t$2`All values in axis param must be in range [-${n$3}, ${n$3}) but got axis ${t$1}`),(0,i$1.assert)(t$1.every(s$1),()=>`All values in axis param must be integers but got axis ${t$1}`),t$1.map(t$2=>t$2<0?n$3+t$2:t$2)}function s$1(t$1){return t$1%1==0}function u$1(t$1){if(t$1.length===0)return 1;let e$4=t$1[0];for(let n$3=1;n$3=t$1.length?1:t$1.slice(e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5),o$3=e$4.breakAxis<=0?1:t$1.slice(0,e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5);if(!(i$3>n$3||o$3>n$3))return[i$3,o$3];r$2.Logger.verbose(`TextureLayout`,`Given width/height preferences were unattainable: shape:${t$1}, breakAxis:${e$4.breakAxis}`)}let i$2=t$1.reduce((t$2,e$5)=>t$2*e$5),o$2=Math.floor(Math.sqrt(i$2));for(;o$2=n$3||i$2%o$2!=0)throw Error(`The given dimensions are outside this GPU's boundaries: ${t$1}`);return[o$2,i$2/o$2]}},e$3.PreferLogicalStrategy=class{constructor(t$1){this.maxTextureSize=t$1}computeTextureWH(t$1,e$4){let n$3=this.computeTexture(t$1,e$4);return e$4&&e$4.isPacked&&(n$3[0]/=2,n$3[1]/=2),e$4&&e$4.reverseWH?[n$3[1],n$3[0]]:n$3}computeTexture(t$1,e$4){let n$3=e$4&&e$4.isPacked;if(t$1.length===0)return n$3?[2,2]:[1,1];let i$2=this.maxTextureSize;if(e$4&&e$4.breakAxis!==void 0){let n$4=e$4.breakAxis>=t$1.length?1:t$1.slice(e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5),o$2=e$4.breakAxis<=0?1:t$1.slice(0,e$4.breakAxis).reduce((t$2,e$5)=>t$2*e$5);if(!(n$4>i$2||o$2>i$2))return[n$4,o$2];r$2.Logger.verbose(`TextureLayout`,`Given width/height preferences were unattainable: shape:${t$1}, breakAxis:${e$4.breakAxis}`)}let a$3=t$1.slice(0);if(n$3&&(i$2*=2,a$3=a$3.map((t$2,e$5)=>e$5>=a$3.length-2?a$3[e$5]%2==0?a$3[e$5]:a$3[e$5]+1:a$3[e$5]),a$3.length===1&&(a$3=[2,a$3[0]])),a$3.length!==2){let t$2=o$1(a$3);a$3=t$2.newShape}let s$2=u$1(a$3);return a$3.length<=1&&s$2<=i$2?[1,s$2]:a$3.length===2&&a$3[0]<=i$2&&a$3[1]<=i$2?a$3:a$3.length===3&&a$3[0]*a$3[1]<=i$2&&a$3[2]<=i$2?[a$3[0]*a$3[1],a$3[2]]:a$3.length===3&&a$3[0]<=i$2&&a$3[1]*a$3[2]<=i$2?[a$3[0],a$3[1]*a$3[2]]:a$3.length===4&&a$3[0]*a$3[1]*a$3[2]<=i$2&&a$3[3]<=i$2?[a$3[0]*a$3[1]*a$3[2],a$3[3]]:a$3.length===4&&a$3[0]<=i$2&&a$3[1]*a$3[2]*a$3[3]<=i$2?[a$3[0],a$3[1]*a$3[2]*a$3[3]]:n$3?c$4(s$2/4).map(t$2=>2*t$2):c$4(s$2)}},e$3.squeezeShape=o$1,e$3.parseAxisParam=a$2,e$3.isInt=s$1,e$3.sizeFromShape=u$1,e$3.getRowsCols=function(t$1){if(t$1.length===0)throw Error(`Cannot get rows and columns of an empty shape array.`);return[t$1.length>1?t$1[t$1.length-2]:1,t$1[t$1.length-1]]},e$3.sizeToSquarishShape=c$4,e$3.getBatchDim=function(t$1,e$4=2){return u$1(t$1.slice(0,t$1.length-e$4))}},4057:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createTextureLayoutFromShape=e$3.calculateTextureWidthAndHeight=e$3.createTextureLayoutFromTextureType=void 0;let r$2=n$2(2517),i$1=n$2(2039);e$3.createTextureLayoutFromTextureType=(t$1,n$3,r$3)=>{let o$1=r$3===i$1.TextureType.unpacked||r$3===i$1.TextureType.unpackedReversed?1:4,a$2=r$3===i$1.TextureType.packed,s$1=r$3===i$1.TextureType.unpackedReversed||r$3===i$1.TextureType.packed,u$1=r$3===i$1.TextureType.packedLastDimension?n$3.length-1:void 0,c$4=r$3===i$1.TextureType.packedLastDimension?n$3.map((t$2,e$4)=>e$4===n$3.length-1?4*t$2:t$2):void 0;return(0,e$3.createTextureLayoutFromShape)(t$1,n$3,o$1,c$4,{isPacked:a$2,reverseWH:s$1,breakAxis:u$1})},e$3.calculateTextureWidthAndHeight=(t$1,n$3,r$3)=>{let i$2=(0,e$3.createTextureLayoutFromTextureType)(t$1,n$3,r$3);return[i$2.width,i$2.height]},e$3.createTextureLayoutFromShape=(t$1,e$4,n$3=1,i$2,o$1)=>{let a$2=!(!o$1||!o$1.isPacked),[s$1,u$1]=t$1.computeTextureWH(a$2&&i$2||e$4,o$1),c$4=e$4.length,l$1=e$4.slice(0);if(c$4===0&&(l$1=[1]),n$3===1)i$2=e$4;else if(a$2){if(n$3!==4)throw Error(`a packed texture must be 4-channel`);i$2=e$4,c$4>0&&(l$1[c$4-1]=Math.ceil(l$1[c$4-1]/2)),c$4>1&&(l$1[c$4-2]=Math.ceil(l$1[c$4-2]/2))}else if(!i$2)throw Error(`Unpacked shape is needed when using channels > 1`);return{width:s$1,height:u$1,channels:n$3,isPacked:a$2,shape:l$1,strides:r$2.ShapeUtil.computeStrides(l$1),unpackedShape:i$2,reversedWH:o$1&&o$1.reverseWH}}},5702:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.TextureManager=void 0;let r$2=n$2(6231);e$3.TextureManager=class{constructor(t$1,e$4,n$3,r$3){this.glContext=t$1,this.layoutStrategy=e$4,this.profiler=n$3,this.config=r$3,this.pendingRead=new Map,r$3.reuseTextures&&(this.inUseTextures=new Map,this.idleTextures=new Map,this.textureLookup=new Map)}createTextureFromLayout(t$1,e$4,n$3,i$1){let o$1=this.toEncoderType(t$1),a$2=this.glContext.getEncoder(o$1,e$4.channels||1,i$1);if(e$4.isPacked&&i$1===1)throw Error(`not implemented`);let s$1=e$4.width,u$1=e$4.height,c$4,l$1;if(this.config.reuseTextures){c$4=`${s$1}x${u$1}_${a$2.format}_${a$2.internalFormat}_${a$2.textureType}`,l$1=this.inUseTextures.get(c$4),l$1||(l$1=[],this.inUseTextures.set(c$4,l$1));let e$5=this.idleTextures.get(c$4);if(e$5&&e$5.length>0){let r$3=e$5.pop();return l$1.push(r$3),i$1===1&&this.glContext.updateTexture(r$3,s$1,u$1,a$2,this.toTextureData(t$1,n$3)),r$3}}r$2.Logger.verbose(`TextureManager`,`Creating new texture of size ${e$4.width}x${e$4.height}`);let p$5=this.glContext.allocateTexture(s$1,u$1,a$2,this.toTextureData(t$1,n$3));return this.config.reuseTextures&&(l$1.push(p$5),this.textureLookup.set(p$5,c$4)),p$5}readTexture(t$1,e$4,n$3){return n$3||=1,this.profiler.event(`backend`,`TextureManager.readTexture`,()=>{let r$3=t$1.shape.reduce((t$2,e$5)=>t$2*e$5)*n$3,i$1=this.glContext.readTexture(t$1.texture,t$1.width,t$1.height,r$3,this.toEncoderType(e$4),n$3);return this.toTensorData(e$4,i$1)})}async readTextureAsync(t$1,e$4,n$3){let r$3=t$1.tensor.dataId;if(n$3||=1,this.pendingRead.has(r$3)){let t$2=this.pendingRead.get(r$3);return new Promise(e$5=>t$2?.push(e$5))}return this.profiler.event(`backend`,`TextureManager.readTextureAsync`,async()=>{this.pendingRead.set(r$3,[]);let i$1=t$1.shape.reduce((t$2,e$5)=>t$2*e$5)*n$3;await this.glContext.createAndWaitForFence();let o$1=this.glContext.readTexture(t$1.texture,t$1.width,t$1.height,i$1,this.toEncoderType(e$4),n$3),a$2=this.toTensorData(e$4,o$1),s$1=this.pendingRead.get(r$3);return this.pendingRead.delete(r$3),s$1?.forEach(t$2=>t$2(a$2)),a$2})}readUint8TextureAsFloat(t$1){return this.profiler.event(`backend`,`TextureManager.readUint8TextureAsFloat`,()=>{let e$4=t$1.shape.reduce((t$2,e$5)=>t$2*e$5),n$3=this.glContext.readTexture(t$1.texture,t$1.width,t$1.height,4*e$4,`byte`,4);return new Float32Array(n$3.buffer,n$3.byteOffset,e$4)})}releaseTexture(t$1,e$4){let n$3;if(this.config.reuseTextures&&(n$3=this.textureLookup.get(t$1.texture),n$3)){e$4&&this.textureLookup.delete(n$3);let r$3=this.inUseTextures.get(n$3);if(r$3){let e$5=r$3.indexOf(t$1.texture);if(e$5!==-1){r$3.splice(e$5,1);let i$1=this.idleTextures.get(n$3);i$1||(i$1=[],this.idleTextures.set(n$3,i$1)),i$1.push(t$1.texture)}}}n$3&&!e$4||(r$2.Logger.verbose(`TextureManager`,`Deleting texture of size ${t$1.width}x${t$1.height}`),this.glContext.deleteTexture(t$1.texture))}toTensorData(t$1,e$4){switch(t$1){case`int16`:return e$4 instanceof Int16Array?e$4:Int16Array.from(e$4);case`int32`:return e$4 instanceof Int32Array?e$4:Int32Array.from(e$4);case`int8`:return e$4 instanceof Int8Array?e$4:Int8Array.from(e$4);case`uint16`:return e$4 instanceof Uint16Array?e$4:Uint16Array.from(e$4);case`uint32`:return e$4 instanceof Uint32Array?e$4:Uint32Array.from(e$4);case`uint8`:case`bool`:return e$4 instanceof Uint8Array?e$4:Uint8Array.from(e$4);case`float32`:return e$4 instanceof Float32Array?e$4:Float32Array.from(e$4);case`float64`:return e$4 instanceof Float64Array?e$4:Float64Array.from(e$4);default:throw Error(`TensorData type ${t$1} is not supported`)}}toTextureData(t$1,e$4){if(e$4)return e$4 instanceof Float32Array?e$4:new Float32Array(e$4)}toEncoderType(t$1){return`float`}clearActiveTextures(){this.glContext.clearActiveTextures()}}},2039:(t,e$3)=>{"use strict";var n$2;Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.TextureType=void 0,(n$2=e$3.TextureType||={})[n$2.unpacked=0]=`unpacked`,n$2[n$2.unpackedReversed=1]=`unpackedReversed`,n$2[n$2.packed=2]=`packed`,n$2[n$2.downloadUint8AsFloat=3]=`downloadUint8AsFloat`,n$2[n$2.packedLastDimension=4]=`packedLastDimension`},9390:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.getGlChannels=e$3.getCoordsDataType=e$3.getSqueezedParams=e$3.squeezeInputShape=e$3.generateShaderFuncNameFromInputSamplerNameAtOutCoords=e$3.generateShaderFuncNameFromInputSamplerName=e$3.repeatedTry=e$3.getPackedShape=void 0;let r$2=n$2(2517);e$3.getPackedShape=function(t$1){let e$4=t$1.length;return t$1.slice(0,e$4-1).concat(t$1[e$4-1]/4)},e$3.repeatedTry=async function(t$1,e$4=t$2=>0,n$3){return new Promise((r$3,i$1)=>{let o$1=0,a$2=()=>{if(t$1())return void r$3();o$1++;let s$1=e$4(o$1);n$3!=null&&o$1>=n$3?i$1():setTimeout(a$2,s$1)};a$2()})},e$3.generateShaderFuncNameFromInputSamplerName=function(t$1){return(0,r$2.assert)(t$1!==void 0&&t$1.length!==0,()=>`empty string found for sampler name`),`get`+t$1.charAt(0).toUpperCase()+t$1.slice(1)},e$3.generateShaderFuncNameFromInputSamplerNameAtOutCoords=function(t$1){return(0,r$2.assert)(t$1!==void 0&&t$1.length!==0,()=>`empty string found for sampler name`),`get`+t$1.charAt(0).toUpperCase()+t$1.slice(1)+`AtOutCoords`},e$3.squeezeInputShape=function(t$1,e$4){let n$3=JSON.parse(JSON.stringify(t$1));return n$3=e$4,n$3},e$3.getSqueezedParams=function(t$1,e$4){return e$4.map(e$5=>t$1[e$5]).join(`, `)},e$3.getCoordsDataType=function(t$1){if(t$1<=1)return`int`;if(t$1===2)return`ivec2`;if(t$1===3)return`ivec3`;if(t$1===4)return`ivec4`;if(t$1===5)return`ivec5`;if(t$1===6)return`ivec6`;throw Error(`GPU for rank ${t$1} is not yet supported`)},e$3.getGlChannels=function(t$1=6){return[`x`,`y`,`z`,`w`,`u`,`v`].slice(0,t$1)}},7305:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.createNewWebGLContext=e$3.createWebGLContext=void 0;let r$2=n$2(6231),i$1=n$2(1713),o$1={};function a$2(t$1){let e$4=function(){if(typeof document>`u`){if(typeof OffscreenCanvas>`u`)throw TypeError(`failed to create canvas: OffscreenCanvas is not supported`);return new OffscreenCanvas(1,1)}let t$2=document.createElement(`canvas`);return t$2.width=1,t$2.height=1,t$2}(),n$3,o$2={alpha:!1,depth:!1,antialias:!1,stencil:!1,preserveDrawingBuffer:!1,premultipliedAlpha:!1,failIfMajorPerformanceCaveat:!1};if((!t$1||t$1===`webgl2`)&&(n$3=e$4.getContext(`webgl2`,o$2),n$3))try{return new i$1.WebGLContext(n$3,2)}catch(t$2){r$2.Logger.warning(`GlContextFactory`,`failed to create WebGLContext using contextId 'webgl2'. Error: ${t$2}`)}if((!t$1||t$1===`webgl`)&&(n$3=e$4.getContext(`webgl`,o$2)||e$4.getContext(`experimental-webgl`,o$2),n$3))try{return new i$1.WebGLContext(n$3,1)}catch(t$2){r$2.Logger.warning(`GlContextFactory`,`failed to create WebGLContext using contextId 'webgl' or 'experimental-webgl'. Error: ${t$2}`)}throw Error(`WebGL is not supported`)}e$3.createWebGLContext=function t$1(e$4){let n$3;e$4&&e$4!==`webgl2`||!(`webgl2`in o$1)?e$4&&e$4!==`webgl`||!(`webgl`in o$1)||(n$3=o$1.webgl):n$3=o$1.webgl2,n$3||=a$2(e$4),e$4=e$4||n$3.version===1?`webgl`:`webgl2`;let r$3=n$3.gl;return o$1[e$4]=n$3,r$3.isContextLost()?(delete o$1[e$4],t$1(e$4)):(r$3.disable(r$3.DEPTH_TEST),r$3.disable(r$3.STENCIL_TEST),r$3.disable(r$3.BLEND),r$3.disable(r$3.DITHER),r$3.disable(r$3.POLYGON_OFFSET_FILL),r$3.disable(r$3.SAMPLE_COVERAGE),r$3.enable(r$3.SCISSOR_TEST),r$3.enable(r$3.CULL_FACE),r$3.cullFace(r$3.BACK),n$3)},e$3.createNewWebGLContext=a$2},1713:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),o$1=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&r$2(e$4,t$1,n$3);return i$1(e$4,t$1),e$4};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.WebGLContext=e$3.linearSearchLastTrue=void 0;let a$2=n$2(1670),s$1=o$1(n$2(7769)),u$1=n$2(9390);function c$4(t$1){let e$4=0;for(;e$4this.isTimerResultAvailable(t$1)),this.getTimerResult(t$1)}async createAndWaitForFence(){let t$1=this.createFence(this.gl);return this.pollFence(t$1)}createFence(t$1){let e$4,n$3=t$1,r$3=n$3.fenceSync(n$3.SYNC_GPU_COMMANDS_COMPLETE,0);return t$1.flush(),e$4=r$3===null?()=>!0:()=>{let t$2=n$3.clientWaitSync(r$3,0,0);return t$2===n$3.ALREADY_SIGNALED||t$2===n$3.CONDITION_SATISFIED},{query:r$3,isFencePassed:e$4}}async pollFence(t$1){return new Promise(e$4=>{this.addItemToPoll(()=>t$1.isFencePassed(),()=>e$4())})}pollItems(){let t$1=c$4(this.itemsToPoll.map(t$2=>t$2.isDoneFn));for(let e$4=0;e$4<=t$1;++e$4){let{resolveFn:t$2}=this.itemsToPoll[e$4];t$2()}this.itemsToPoll=this.itemsToPoll.slice(t$1+1)}async addItemToPoll(t$1,e$4){this.itemsToPoll.push({isDoneFn:t$1,resolveFn:e$4}),this.itemsToPoll.length>1||await(0,u$1.repeatedTry)(()=>(this.pollItems(),this.itemsToPoll.length===0))}}},1036:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.ExecutionPlan=void 0;let r$2=n$2(6231);class i$1{constructor(t$1,e$4){this.op=t$1,this.node=e$4}}e$3.ExecutionPlan=class{constructor(t$1,e$4,n$3){this.graph=t$1,this.profiler=n$3,this.initialize(e$4)}initialize(t$1){this.profiler.event(`session`,`ExecutionPlan.initialize`,()=>{let e$4=this.graph.getNodes();if(e$4.length!==t$1.length)throw Error(`The size of nodes and OPs do not match.`);this._ops=t$1.map((t$2,n$3)=>new i$1(t$2,e$4[n$3])),this.reset(),this._starter=[],this._ops.forEach((t$2,e$5)=>{let n$3=!0;for(let e$6 of t$2.node.inputs)if(!this._values[e$6]&&this.graph.getInputIndices().indexOf(e$6)===-1){n$3=!1;break}n$3&&this._starter.push(e$5)})})}reset(){this._values=this.graph.getValues().map(t$1=>t$1.tensor)}async execute(t$1,e$4){return this.profiler.event(`session`,`ExecutionPlan.execute`,async()=>{this.reset();let n$3=t$1.createInferenceHandler(),i$2=this.graph.getInputIndices();if(e$4.length!==i$2.length)throw Error(`number of input tensors don't match the number of inputs to the model: actual: ${e$4.length} expected: ${i$2.length}`);e$4.forEach((t$2,e$5)=>{let n$4=i$2[e$5];this._values[n$4]=t$2});let o$1=this._starter.slice(0),a$2=this.graph.getValues(),s$1=this.graph.getNodes(),u$1=0;for(;u$1this._values[t$3]);if(i$3.indexOf(void 0)!==-1)throw Error(`unresolved input detected: op: ${e$5.node}`);let c$5=i$3;r$2.Logger.verbose(`ExecPlan`,`Runing op:${e$5.node.name} (${c$5.map((t$3,n$4)=>`'${e$5.node.inputs[n$4]}': ${t$3.type}[${t$3.dims.join(`,`)}]`).join(`, `)})`);let l$1=await this.profiler.event(`node`,e$5.node.name,async()=>e$5.op.impl(n$3,c$5,e$5.op.context));if(l$1.length!==e$5.node.outputs.length)throw Error(`the size of output does not match model definition.`);l$1.forEach((t$3,n$4)=>{let r$3=e$5.node.outputs[n$4];if(this._values[r$3])throw Error(`output [${r$3}] already has value: op:${e$5.node.name}`);this._values[r$3]=t$3});let p$5=new Set;l$1.forEach((t$3,n$4)=>{let r$3=e$5.node.outputs[n$4];for(let t$4 of a$2[r$3].to){let e$6=s$1[t$4],n$5=!0;for(let t$5 of e$6.inputs)if(!this._values[t$5]){n$5=!1;break}n$5&&p$5.add(t$4)}}),o$1.push(...p$5)}let c$4=[];for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Graph=void 0;let r$2=n$2(1446),i$1=n$2(7778),o$1=n$2(9395),a$2=n$2(9162),s$1=n$2(2517);var u$1=o$1.onnxruntime.experimental.fbs;e$3.Graph={from:(t$1,e$4)=>new p$5(t$1,e$4)};class c$4{constructor(t$1){this._from=void 0,this._to=[],this.tensor=void 0,this.type=void 0,t$1&&(this.type=s$1.ProtoUtil.tensorValueTypeFromProto(t$1.type.tensorType))}get from(){return this._from}get to(){return this._to}}class l$1{constructor(t$1,e$4){t$1 instanceof r$2.onnx.NodeProto?(this.name=t$1.name,this.opType=t$1.opType,this.attributes=new i$1.Attribute(t$1.attribute)):t$1 instanceof u$1.Node&&(this.name=e$4??t$1.name(),this.opType=t$1.opType(),this.attributes=new i$1.Attribute(s$1.ProtoUtil.tensorAttributesFromORTFormat(t$1))),this.inputs=[],this.outputs=[],this.executeNode=!0}}class p$5{constructor(t$1,e$4){if(!t$1)throw TypeError(`graph is empty`);this.buildGraph(t$1),this.transformGraph(e$4),this.checkIsAcyclic()}getInputIndices(){return this._allInputIndices}getInputNames(){return this._allInputNames}getOutputIndices(){return this._allOutputIndices}getOutputNames(){return this._allOutputNames}getValues(){return this._allData}getNodes(){return this._nodes}buildGraph(t$1){if(t$1 instanceof r$2.onnx.GraphProto)this.buildGraphFromOnnxFormat(t$1);else{if(!(t$1 instanceof u$1.Graph))throw TypeError(`Graph type is not supported.`);this.buildGraphFromOrtFormat(t$1)}}buildGraphFromOnnxFormat(t$1){let e$4=new Map;this._allData=[],this._allInputIndices=[],this._allInputNames=[],this._allOutputIndices=[],this._allOutputNames=[],this._nodes=[];let n$3=new Map;if(!t$1.input)throw Error(`missing information in graph: input`);let r$3=[];for(let n$4 of t$1.input){if(e$4.has(n$4.name))throw Error(`duplicated input name: ${n$4.name}`);let t$2=this._allData.push(new c$4(n$4))-1;e$4.set(n$4.name,t$2),r$3.push(n$4.name)}if(!t$1.initializer)throw Error(`missing information in graph: initializer`);for(let n$4 of t$1.initializer){let t$2=e$4.get(n$4.name);if(t$2===void 0){let r$4=new c$4;r$4.type={shape:{dims:s$1.ProtoUtil.tensorDimsFromProto(n$4.dims)},tensorType:s$1.ProtoUtil.tensorDataTypeFromProto(n$4.dataType)},t$2=this._allData.push(r$4)-1,e$4.set(n$4.name,t$2)}this._allData[t$2]._from=-1,this._allData[t$2].tensor=a$2.Tensor.fromProto(n$4)}for(let t$2=0;t$2{this._allData[e$5]._to.forEach(e$6=>{t$1.add(e$6)})});let e$4=Array.from(t$1),n$3=Array(this._nodes.length).fill(`white`);for(;e$4.length>0;){let t$2=e$4.pop();n$3[t$2]===`gray`?n$3[t$2]=`black`:(e$4.push(t$2),n$3[t$2]=`gray`,this._nodes[t$2].outputs.forEach(r$3=>{let i$2=this._allData[r$3];if(i$2.tensor!==void 0)throw Error(`node outputs should not be initialized`);if(i$2._from!==t$2)throw Error(`from property of the Value object doesn't match index of Node being processed`);i$2._to.forEach(t$3=>{if(n$3[t$3]===`gray`)throw Error(`model graph is cyclic`);n$3[t$3]===`white`&&e$4.push(t$3)})}))}}transformGraph(t$1){this.removeAllIdentityNodes(),this.removeAllDropoutNodes(),this.fuseConvActivationNodes(),t$1&&t$1.transformGraph(this),this.finalizeGraph()}finalizeGraph(){let t$1=0;for(let e$4=0;e$40&&(this._nodes[e$4].inputs.forEach(n$3=>{let r$3=this._allData[n$3]._to.indexOf(e$4+t$1);r$3!==-1&&(this._allData[n$3]._to[r$3]=e$4)}),this._nodes[e$4].outputs.forEach(n$3=>{this._allData[n$3]._from&&this._allData[n$3]._from===e$4+t$1&&(this._allData[n$3]._from=e$4)})):(t$1++,this._nodes[e$4].outputs.forEach(t$2=>{this._allData[t$2]._from=-2}),this._nodes.splice(e$4,1),e$4--);t$1=0;for(let e$4=0;e$40){let n$3=-1;this._allData[e$4].from!==void 0&&this._allData[e$4].from!==-1?(n$3=this._nodes[this._allData[e$4].from].outputs.indexOf(e$4+t$1),n$3!==-1&&(this._nodes[this._allData[e$4].from].outputs[n$3]=e$4)):(n$3=this._allInputIndices.indexOf(e$4+t$1),n$3!==-1&&(this._allInputIndices[n$3]=e$4)),this._allData[e$4].to.forEach(r$3=>{n$3=this._nodes[r$3].inputs.indexOf(e$4+t$1),n$3!==-1&&(this._nodes[r$3].inputs[n$3]=e$4)}),this._allData[e$4].to.length===0&&(n$3=this._allOutputIndices.indexOf(e$4+t$1),n$3!==-1&&(this._allOutputIndices[n$3]=e$4))}}else t$1++,this._allData.splice(e$4,1),e$4--}deleteNode(t$1){let e$4=this._nodes[t$1];if(e$4.outputs.length>1){for(let t$2=1;t$20)throw Error(`Node deletion with more than one output connected to other nodes is not supported. `)}e$4.executeNode=!1;let n$3=e$4.inputs[0],r$3=e$4.outputs[0],i$2=this._allData[r$3].to,o$2=this._allData[n$3].to.indexOf(t$1);if(o$2===-1)throw Error(`The Value object doesn't have the current Node in it's 'to' property `);this._allData[n$3].to.splice(o$2,1),this._allData[r$3]._to=[];let a$3=this._allOutputIndices.indexOf(r$3);if(a$3!==-1&&(this._allOutputIndices[a$3]=n$3),i$2&&i$2.length>0)for(let t$2 of i$2){let e$5=this._nodes[t$2].inputs.indexOf(r$3);if(e$5===-1)throw Error(`The Node object doesn't have the output Value in it's 'inputs' property `);this._nodes[t$2].inputs[e$5]=n$3,this._allData[n$3].to.push(t$2)}}removeAllDropoutNodes(){let t$1=0;for(let e$4 of this._nodes){if(e$4.opType===`Dropout`){if(e$4.inputs.length!==1)throw Error(`Dropout nodes should only contain one input. `);if(e$4.outputs.length!==1&&e$4.outputs.length!==2)throw Error(`Dropout nodes should contain either 1 or 2 output(s)`);if(e$4.outputs.length===2&&this._allData[e$4.outputs[1]]._to.length!==0)throw Error(`Dropout nodes's second output should not be referenced by other nodes`);this.deleteNode(t$1)}t$1++}}removeAllIdentityNodes(){let t$1=0;for(let e$4 of this._nodes)e$4.opType===`Identity`&&this.deleteNode(t$1),t$1++}isActivation(t$1){switch(t$1.opType){case`Relu`:case`Sigmoid`:case`Clip`:return!0;default:return!1}}fuseConvActivationNodes(){for(let t$1 of this._nodes)if(t$1.opType===`Conv`){let e$4=this._allData[t$1.outputs[0]]._to;if(e$4.length===1&&this.isActivation(this._nodes[e$4[0]])){let n$3=this._nodes[e$4[0]];if(n$3.opType===`Clip`)if(n$3.inputs.length===1)try{t$1.attributes.set(`activation_params`,`floats`,[n$3.attributes.getFloat(`min`),n$3.attributes.getFloat(`max`)])}catch{t$1.attributes.set(`activation_params`,`floats`,[s$1.MIN_CLIP,s$1.MAX_CLIP])}else{if(!(n$3.inputs.length>=3&&this._allData[n$3.inputs[1]].tensor!==void 0&&this._allData[n$3.inputs[2]].tensor!==void 0))continue;t$1.attributes.set(`activation_params`,`floats`,[this._allData[n$3.inputs[1]].tensor.floatData[0],this._allData[n$3.inputs[2]].tensor.floatData[0]])}t$1.attributes.set(`activation`,`string`,n$3.opType),this.deleteNode(e$4[0])}}}}},6231:(t,e$3)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.now=e$3.Profiler=e$3.Logger=void 0;let n$2={verbose:1e3,info:2e3,warning:4e3,error:5e3,fatal:6e3},r$2={none:new class{log(t$1,e$4,n$3){}},console:new class{log(t$1,e$4,n$3){console.log(`${this.color(t$1)} ${n$3?`\x1B[35m`+n$3+`\x1B[0m `:``}${e$4}`)}color(t$1){switch(t$1){case`verbose`:return`\x1B[34;40mv\x1B[0m`;case`info`:return`\x1B[32mi\x1B[0m`;case`warning`:return`\x1B[30;43mw\x1B[0m`;case`error`:return`\x1B[31;40me\x1B[0m`;case`fatal`:return`\x1B[101mf\x1B[0m`;default:throw Error(`unsupported severity: ${t$1}`)}}}},i$1={provider:`console`,minimalSeverity:`warning`,logDateTime:!0,logSourceLocation:!1},o$1={"":i$1};function a$2(t$1,e$4,n$3,r$3){if(e$4===void 0)return i$2=t$1,{verbose:a$2.verbose.bind(null,i$2),info:a$2.info.bind(null,i$2),warning:a$2.warning.bind(null,i$2),error:a$2.error.bind(null,i$2),fatal:a$2.fatal.bind(null,i$2)};if(n$3===void 0)s$1(t$1,e$4);else if(typeof n$3==`number`&&r$3===void 0)s$1(t$1,e$4);else if(typeof n$3==`string`&&r$3===void 0)s$1(t$1,n$3,0,e$4);else{if(typeof n$3!=`string`||typeof r$3!=`number`)throw TypeError(`input is valid`);s$1(t$1,n$3,0,e$4)}var i$2}function s$1(t$1,e$4,i$2,a$3){let s$2=o$1[a$3||``]||o$1[``];n$2[t$1]{a$3.then(async e$6=>{i$2&&await i$2.end(),t$2(e$6)},async t$3=>{i$2&&await i$2.end(),e$5(t$3)})});if(!o$2&&i$2){let t$2=i$2.end();if(t$2&&typeof t$2.then==`function`)return new Promise((e$5,n$4)=>{t$2.then(()=>{e$5(a$3)},t$3=>{n$4(t$3)})})}return a$3}begin(t$1,n$3,r$3){if(!this._started)throw Error(`profiler is not started yet`);if(r$3===void 0){let r$4=(0,e$3.now)();return this.flush(r$4),new u$1(t$1,n$3,r$4,t$2=>this.endSync(t$2))}{let e$4=r$3.beginTimer();return new u$1(t$1,n$3,0,async t$2=>this.end(t$2),e$4,r$3)}}async end(t$1){let e$4=await t$1.checkTimer();this._timingEvents.length=this._flushBatchSize||t$1-this._flushTime>=this._flushIntervalInMilliseconds){for(let t$2=this._flushPointer;this._flushPointerperformance.now():Date.now},2644:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Model=void 0;let r$2=n$2(5686),i$1=n$2(1446),o$1=n$2(7070),a$2=n$2(9395),s$1=n$2(2517);var u$1=a$2.onnxruntime.experimental.fbs;e$3.Model=class{constructor(){}load(t$1,e$4,n$3){if(!n$3)try{return void this.loadFromOnnxFormat(t$1,e$4)}catch(t$2){if(n$3!==void 0)throw t$2}this.loadFromOrtFormat(t$1,e$4)}loadFromOnnxFormat(t$1,e$4){let n$3=i$1.onnx.ModelProto.decode(t$1);if(s$1.LongUtil.longToNumber(n$3.irVersion)<3)throw Error(`only support ONNX model with IR_VERSION>=3`);this._opsets=n$3.opsetImport.map(t$2=>({domain:t$2.domain,version:s$1.LongUtil.longToNumber(t$2.version)})),this._graph=o$1.Graph.from(n$3.graph,e$4)}loadFromOrtFormat(t$1,e$4){let n$3=new r$2.flatbuffers.ByteBuffer(t$1),i$2=u$1.InferenceSession.getRootAsInferenceSession(n$3).model();if(s$1.LongUtil.longToNumber(i$2.irVersion())<3)throw Error(`only support ONNX model with IR_VERSION>=3`);this._opsets=[];for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.FLOAT_TYPES=e$3.INT_TYPES=e$3.NUMBER_TYPES=void 0,e$3.NUMBER_TYPES=[`float32`,`float64`,`int32`,`int16`,`int8`,`uint16`,`uint32`,`uint8`],e$3.INT_TYPES=[`int32`,`int16`,`int8`,`uint16`,`uint32`,`uint8`],e$3.FLOAT_TYPES=[`float32`,`float64`]},1047:(t,e$3)=>{"use strict";function n$2(t$1,e$4){if(e$4.endsWith(`+`)){let n$3=Number.parseInt(e$4.substring(0,e$4.length-1),10);return!isNaN(n$3)&&n$3<=t$1}if(e$4.split(`-`).length===2){let n$3=e$4.split(`-`),r$2=Number.parseInt(n$3[0],10),i$1=Number.parseInt(n$3[1],10);return!isNaN(r$2)&&!isNaN(i$1)&&r$2<=t$1&&t$1<=i$1}return Number.parseInt(e$4,10)===t$1}Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.resolveOperator=void 0,e$3.resolveOperator=function(t$1,e$4,r$2){for(let i$1 of r$2){let r$3=i$1[0],o$1=i$1[1],a$2=i$1[2],s$1=i$1[3],u$1=i$1[4];if(t$1.opType===r$3){for(let t$2 of e$4)if((t$2.domain===o$1||t$2.domain===`ai.onnx`&&o$1===``)&&n$2(t$2.version,a$2))return{opImpl:s$1,opInit:u$1}}}throw TypeError(`cannot resolve operator '${t$1.opType}' with opsets: ${e$4.map(t$2=>`${t$2.domain||`ai.onnx`} v${t$2.version}`).join(`, `)}`)}},9395:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.onnxruntime=void 0;let r$2=n$2(5686);var i$1,o$1;i$1=e$3.onnxruntime||={},function(t$1){let e$4;(function(t$2){t$2[t$2.UNDEFINED=0]=`UNDEFINED`,t$2[t$2.FLOAT=1]=`FLOAT`,t$2[t$2.INT=2]=`INT`,t$2[t$2.STRING=3]=`STRING`,t$2[t$2.TENSOR=4]=`TENSOR`,t$2[t$2.GRAPH=5]=`GRAPH`,t$2[t$2.FLOATS=6]=`FLOATS`,t$2[t$2.INTS=7]=`INTS`,t$2[t$2.STRINGS=8]=`STRINGS`,t$2[t$2.TENSORS=9]=`TENSORS`,t$2[t$2.GRAPHS=10]=`GRAPHS`,t$2[t$2.SPARSE_TENSOR=11]=`SPARSE_TENSOR`,t$2[t$2.SPARSE_TENSORS=12]=`SPARSE_TENSORS`})(e$4=t$1.AttributeType||={})}((o$1=i$1.experimental||={}).fbs||(o$1.fbs={})),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.UNKNOWN=0]=`UNKNOWN`,t$4[t$4.VALUE=1]=`VALUE`,t$4[t$4.PARAM=2]=`PARAM`})(e$4=t$3.DimensionValueType||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.UNDEFINED=0]=`UNDEFINED`,t$4[t$4.FLOAT=1]=`FLOAT`,t$4[t$4.UINT8=2]=`UINT8`,t$4[t$4.INT8=3]=`INT8`,t$4[t$4.UINT16=4]=`UINT16`,t$4[t$4.INT16=5]=`INT16`,t$4[t$4.INT32=6]=`INT32`,t$4[t$4.INT64=7]=`INT64`,t$4[t$4.STRING=8]=`STRING`,t$4[t$4.BOOL=9]=`BOOL`,t$4[t$4.FLOAT16=10]=`FLOAT16`,t$4[t$4.DOUBLE=11]=`DOUBLE`,t$4[t$4.UINT32=12]=`UINT32`,t$4[t$4.UINT64=13]=`UINT64`,t$4[t$4.COMPLEX64=14]=`COMPLEX64`,t$4[t$4.COMPLEX128=15]=`COMPLEX128`,t$4[t$4.BFLOAT16=16]=`BFLOAT16`})(e$4=t$3.TensorDataType||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.Primitive=0]=`Primitive`,t$4[t$4.Fused=1]=`Fused`})(e$4=t$3.NodeType||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){let e$4;(function(t$4){t$4[t$4.NONE=0]=`NONE`,t$4[t$4.tensor_type=1]=`tensor_type`,t$4[t$4.sequence_type=2]=`sequence_type`,t$4[t$4.map_type=3]=`map_type`})(e$4=t$3.TypeInfoValue||={})})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsShape(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsShape(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}dim(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,4);return r$3?(n$4||new t$1.experimental.fbs.Dimension).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}dimLength(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startShape(t$2){t$2.startObject(1)}static addDim(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static createDimVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startDimVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endShape(t$2){return t$2.endObject()}static createShape(t$2,e$6){return n$3.startShape(t$2),n$3.addDim(t$2,e$6),n$3.endShape(t$2)}}e$5.Shape=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsDimension(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsDimension(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}value(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.DimensionValue).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}denotation(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}static startDimension(t$2){t$2.startObject(2)}static addValue(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDenotation(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endDimension(t$2){return t$2.endObject()}static createDimension(t$2,e$6,r$3){return n$3.startDimension(t$2),n$3.addValue(t$2,e$6),n$3.addDenotation(t$2,r$3),n$3.endDimension(t$2)}}e$5.Dimension=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsDimensionValue(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsDimensionValue(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}dimType(){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.readInt8(this.bb_pos+e$6):t$1.experimental.fbs.DimensionValueType.UNKNOWN}dimValue(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}dimParam(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}static startDimensionValue(t$2){t$2.startObject(3)}static addDimType(e$6,n$4){e$6.addFieldInt8(0,n$4,t$1.experimental.fbs.DimensionValueType.UNKNOWN)}static addDimValue(t$2,e$6){t$2.addFieldInt64(1,e$6,t$2.createLong(0,0))}static addDimParam(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endDimensionValue(t$2){return t$2.endObject()}static createDimensionValue(t$2,e$6,r$3,i$2){return n$3.startDimensionValue(t$2),n$3.addDimType(t$2,e$6),n$3.addDimValue(t$2,r$3),n$3.addDimParam(t$2,i$2),n$3.endDimensionValue(t$2)}}e$5.DimensionValue=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsTensorTypeAndShape(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsTensorTypeAndShape(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}elemType(){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.TensorDataType.UNDEFINED}shape(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.Shape).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startTensorTypeAndShape(t$2){t$2.startObject(2)}static addElemType(e$6,n$4){e$6.addFieldInt32(0,n$4,t$1.experimental.fbs.TensorDataType.UNDEFINED)}static addShape(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endTensorTypeAndShape(t$2){return t$2.endObject()}static createTensorTypeAndShape(t$2,e$6,r$3){return n$3.startTensorTypeAndShape(t$2),n$3.addElemType(t$2,e$6),n$3.addShape(t$2,r$3),n$3.endTensorTypeAndShape(t$2)}}e$5.TensorTypeAndShape=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsMapType(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsMapType(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}keyType(){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.TensorDataType.UNDEFINED}valueType(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startMapType(t$2){t$2.startObject(2)}static addKeyType(e$6,n$4){e$6.addFieldInt32(0,n$4,t$1.experimental.fbs.TensorDataType.UNDEFINED)}static addValueType(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endMapType(t$2){return t$2.endObject()}static createMapType(t$2,e$6,r$3){return n$3.startMapType(t$2),n$3.addKeyType(t$2,e$6),n$3.addValueType(t$2,r$3),n$3.endMapType(t$2)}}e$5.MapType=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSequenceType(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSequenceType(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}elemType(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startSequenceType(t$2){t$2.startObject(1)}static addElemType(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static endSequenceType(t$2){return t$2.endObject()}static createSequenceType(t$2,e$6){return n$3.startSequenceType(t$2),n$3.addElemType(t$2,e$6),n$3.endSequenceType(t$2)}}e$5.SequenceType=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(t$2.fbs||={}).EdgeEnd=class{constructor(){this.bb=null,this.bb_pos=0}__init(t$3,e$4){return this.bb_pos=t$3,this.bb=e$4,this}nodeIndex(){return this.bb.readUint32(this.bb_pos)}srcArgIndex(){return this.bb.readInt32(this.bb_pos+4)}dstArgIndex(){return this.bb.readInt32(this.bb_pos+8)}static createEdgeEnd(t$3,e$4,n$3,r$3){return t$3.prep(4,12),t$3.writeInt32(r$3),t$3.writeInt32(n$3),t$3.writeInt32(e$4),t$3.offset()}}})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsNodeEdge(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsNodeEdge(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}nodeIndex(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.readUint32(this.bb_pos+t$2):0}inputEdges(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+r$3)+12*e$6,this.bb):null}inputEdgesLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}outputEdges(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,8);return r$3?(n$4||new t$1.experimental.fbs.EdgeEnd).__init(this.bb.__vector(this.bb_pos+r$3)+12*e$6,this.bb):null}outputEdgesLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startNodeEdge(t$2){t$2.startObject(3)}static addNodeIndex(t$2,e$6){t$2.addFieldInt32(0,e$6,0)}static addInputEdges(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static startInputEdgesVector(t$2,e$6){t$2.startVector(12,e$6,4)}static addOutputEdges(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static startOutputEdgesVector(t$2,e$6){t$2.startVector(12,e$6,4)}static endNodeEdge(t$2){return t$2.endObject()}static createNodeEdge(t$2,e$6,r$3,i$2){return n$3.startNodeEdge(t$2),n$3.addNodeIndex(t$2,e$6),n$3.addInputEdges(t$2,r$3),n$3.addOutputEdges(t$2,i$2),n$3.endNodeEdge(t$2)}}e$5.NodeEdge=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsNode(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsNode(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}domain(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}sinceVersion(){let t$2=this.bb.__offset(this.bb_pos,10);return t$2?this.bb.readInt32(this.bb_pos+t$2):0}index(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.readUint32(this.bb_pos+t$2):0}opType(t$2){let e$6=this.bb.__offset(this.bb_pos,14);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}type(){let e$6=this.bb.__offset(this.bb_pos,16);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.NodeType.Primitive}executionProviderType(t$2){let e$6=this.bb.__offset(this.bb_pos,18);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}inputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,20);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}inputsLength(){let t$2=this.bb.__offset(this.bb_pos,20);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}outputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,22);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}outputsLength(){let t$2=this.bb.__offset(this.bb_pos,22);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}attributes(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,24);return r$3?(n$4||new t$1.experimental.fbs.Attribute).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}attributesLength(){let t$2=this.bb.__offset(this.bb_pos,24);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}inputArgCounts(t$2){let e$6=this.bb.__offset(this.bb_pos,26);return e$6?this.bb.readInt32(this.bb.__vector(this.bb_pos+e$6)+4*t$2):0}inputArgCountsLength(){let t$2=this.bb.__offset(this.bb_pos,26);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}inputArgCountsArray(){let t$2=this.bb.__offset(this.bb_pos,26);return t$2?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$2),this.bb.__vector_len(this.bb_pos+t$2)):null}implicitInputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,28);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}implicitInputsLength(){let t$2=this.bb.__offset(this.bb_pos,28);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startNode(t$2){t$2.startObject(13)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addDomain(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static addSinceVersion(t$2,e$6){t$2.addFieldInt32(3,e$6,0)}static addIndex(t$2,e$6){t$2.addFieldInt32(4,e$6,0)}static addOpType(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static addType(e$6,n$4){e$6.addFieldInt32(6,n$4,t$1.experimental.fbs.NodeType.Primitive)}static addExecutionProviderType(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static addInputs(t$2,e$6){t$2.addFieldOffset(8,e$6,0)}static createInputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startInputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addOutputs(t$2,e$6){t$2.addFieldOffset(9,e$6,0)}static createOutputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startOutputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addAttributes(t$2,e$6){t$2.addFieldOffset(10,e$6,0)}static createAttributesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startAttributesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addInputArgCounts(t$2,e$6){t$2.addFieldOffset(11,e$6,0)}static createInputArgCountsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt32(e$6[n$4]);return t$2.endVector()}static startInputArgCountsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addImplicitInputs(t$2,e$6){t$2.addFieldOffset(12,e$6,0)}static createImplicitInputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startImplicitInputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endNode(t$2){return t$2.endObject()}static createNode(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4,l$1,p$5,f$3,d$2,h$3){return n$3.startNode(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addDomain(t$2,i$2),n$3.addSinceVersion(t$2,o$2),n$3.addIndex(t$2,a$2),n$3.addOpType(t$2,s$1),n$3.addType(t$2,u$1),n$3.addExecutionProviderType(t$2,c$4),n$3.addInputs(t$2,l$1),n$3.addOutputs(t$2,p$5),n$3.addAttributes(t$2,f$3),n$3.addInputArgCounts(t$2,d$2),n$3.addImplicitInputs(t$2,h$3),n$3.endNode(t$2)}}e$5.Node=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsValueInfo(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsValueInfo(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}type(e$6){let n$4=this.bb.__offset(this.bb_pos,8);return n$4?(e$6||new t$1.experimental.fbs.TypeInfo).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startValueInfo(t$2){t$2.startObject(3)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addType(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endValueInfo(t$2){return t$2.endObject()}static createValueInfo(t$2,e$6,r$3,i$2){return n$3.startValueInfo(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addType(t$2,i$2),n$3.endValueInfo(t$2)}}e$5.ValueInfo=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsTypeInfo(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsTypeInfo(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}denotation(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}valueType(){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.readUint8(this.bb_pos+e$6):t$1.experimental.fbs.TypeInfoValue.NONE}value(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__union(t$2,this.bb_pos+e$6):null}static startTypeInfo(t$2){t$2.startObject(3)}static addDenotation(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addValueType(e$6,n$4){e$6.addFieldInt8(1,n$4,t$1.experimental.fbs.TypeInfoValue.NONE)}static addValue(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endTypeInfo(t$2){return t$2.endObject()}static createTypeInfo(t$2,e$6,r$3,i$2){return n$3.startTypeInfo(t$2),n$3.addDenotation(t$2,e$6),n$3.addValueType(t$2,r$3),n$3.addValue(t$2,i$2),n$3.endTypeInfo(t$2)}}e$5.TypeInfo=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){class e$4{constructor(){this.bb=null,this.bb_pos=0}__init(t$4,e$5){return this.bb_pos=t$4,this.bb=e$5,this}static getRootAsOperatorSetId(t$4,n$3){return(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}static getSizePrefixedRootAsOperatorSetId(t$4,n$3){return t$4.setPosition(t$4.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}domain(t$4){let e$5=this.bb.__offset(this.bb_pos,4);return e$5?this.bb.__string(this.bb_pos+e$5,t$4):null}version(){let t$4=this.bb.__offset(this.bb_pos,6);return t$4?this.bb.readInt64(this.bb_pos+t$4):this.bb.createLong(0,0)}static startOperatorSetId(t$4){t$4.startObject(2)}static addDomain(t$4,e$5){t$4.addFieldOffset(0,e$5,0)}static addVersion(t$4,e$5){t$4.addFieldInt64(1,e$5,t$4.createLong(0,0))}static endOperatorSetId(t$4){return t$4.endObject()}static createOperatorSetId(t$4,n$3,r$3){return e$4.startOperatorSetId(t$4),e$4.addDomain(t$4,n$3),e$4.addVersion(t$4,r$3),e$4.endOperatorSetId(t$4)}}t$3.OperatorSetId=e$4})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsTensor(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsTensor(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}dims(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.readInt64(this.bb.__vector(this.bb_pos+e$6)+8*t$2):this.bb.createLong(0,0)}dimsLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}dataType(){let e$6=this.bb.__offset(this.bb_pos,10);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.TensorDataType.UNDEFINED}rawData(t$2){let e$6=this.bb.__offset(this.bb_pos,12);return e$6?this.bb.readUint8(this.bb.__vector(this.bb_pos+e$6)+t$2):0}rawDataLength(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}rawDataArray(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$2),this.bb.__vector_len(this.bb_pos+t$2)):null}stringData(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,14);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}stringDataLength(){let t$2=this.bb.__offset(this.bb_pos,14);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startTensor(t$2){t$2.startObject(6)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addDims(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static createDimsVector(t$2,e$6){t$2.startVector(8,e$6.length,8);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt64(e$6[n$4]);return t$2.endVector()}static startDimsVector(t$2,e$6){t$2.startVector(8,e$6,8)}static addDataType(e$6,n$4){e$6.addFieldInt32(3,n$4,t$1.experimental.fbs.TensorDataType.UNDEFINED)}static addRawData(t$2,e$6){t$2.addFieldOffset(4,e$6,0)}static createRawDataVector(t$2,e$6){t$2.startVector(1,e$6.length,1);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt8(e$6[n$4]);return t$2.endVector()}static startRawDataVector(t$2,e$6){t$2.startVector(1,e$6,1)}static addStringData(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static createStringDataVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startStringDataVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endTensor(t$2){return t$2.endObject()}static createTensor(t$2,e$6,r$3,i$2,o$2,a$2,s$1){return n$3.startTensor(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addDims(t$2,i$2),n$3.addDataType(t$2,o$2),n$3.addRawData(t$2,a$2),n$3.addStringData(t$2,s$1),n$3.endTensor(t$2)}}e$5.Tensor=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSparseTensor(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSparseTensor(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}values(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}indices(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}dims(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.readInt64(this.bb.__vector(this.bb_pos+e$6)+8*t$2):this.bb.createLong(0,0)}dimsLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startSparseTensor(t$2){t$2.startObject(3)}static addValues(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addIndices(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addDims(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static createDimsVector(t$2,e$6){t$2.startVector(8,e$6.length,8);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt64(e$6[n$4]);return t$2.endVector()}static startDimsVector(t$2,e$6){t$2.startVector(8,e$6,8)}static endSparseTensor(t$2){return t$2.endObject()}static createSparseTensor(t$2,e$6,r$3,i$2){return n$3.startSparseTensor(t$2),n$3.addValues(t$2,e$6),n$3.addIndices(t$2,r$3),n$3.addDims(t$2,i$2),n$3.endSparseTensor(t$2)}}e$5.SparseTensor=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsAttribute(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsAttribute(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}name(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,6);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}type(){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.readInt32(this.bb_pos+e$6):t$1.experimental.fbs.AttributeType.UNDEFINED}f(){let t$2=this.bb.__offset(this.bb_pos,10);return t$2?this.bb.readFloat32(this.bb_pos+t$2):0}i(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}s(t$2){let e$6=this.bb.__offset(this.bb_pos,14);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}t(e$6){let n$4=this.bb.__offset(this.bb_pos,16);return n$4?(e$6||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}g(e$6){let n$4=this.bb.__offset(this.bb_pos,18);return n$4?(e$6||new t$1.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}floats(t$2){let e$6=this.bb.__offset(this.bb_pos,20);return e$6?this.bb.readFloat32(this.bb.__vector(this.bb_pos+e$6)+4*t$2):0}floatsLength(){let t$2=this.bb.__offset(this.bb_pos,20);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}floatsArray(){let t$2=this.bb.__offset(this.bb_pos,20);return t$2?new Float32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$2),this.bb.__vector_len(this.bb_pos+t$2)):null}ints(t$2){let e$6=this.bb.__offset(this.bb_pos,22);return e$6?this.bb.readInt64(this.bb.__vector(this.bb_pos+e$6)+8*t$2):this.bb.createLong(0,0)}intsLength(){let t$2=this.bb.__offset(this.bb_pos,22);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}strings(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,24);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}stringsLength(){let t$2=this.bb.__offset(this.bb_pos,24);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}tensors(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,26);return r$3?(n$4||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}tensorsLength(){let t$2=this.bb.__offset(this.bb_pos,26);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}graphs(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,28);return r$3?(n$4||new t$1.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}graphsLength(){let t$2=this.bb.__offset(this.bb_pos,28);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startAttribute(t$2){t$2.startObject(13)}static addName(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addDocString(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addType(e$6,n$4){e$6.addFieldInt32(2,n$4,t$1.experimental.fbs.AttributeType.UNDEFINED)}static addF(t$2,e$6){t$2.addFieldFloat32(3,e$6,0)}static addI(t$2,e$6){t$2.addFieldInt64(4,e$6,t$2.createLong(0,0))}static addS(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static addT(t$2,e$6){t$2.addFieldOffset(6,e$6,0)}static addG(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static addFloats(t$2,e$6){t$2.addFieldOffset(8,e$6,0)}static createFloatsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addFloat32(e$6[n$4]);return t$2.endVector()}static startFloatsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addInts(t$2,e$6){t$2.addFieldOffset(9,e$6,0)}static createIntsVector(t$2,e$6){t$2.startVector(8,e$6.length,8);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addInt64(e$6[n$4]);return t$2.endVector()}static startIntsVector(t$2,e$6){t$2.startVector(8,e$6,8)}static addStrings(t$2,e$6){t$2.addFieldOffset(10,e$6,0)}static createStringsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startStringsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addTensors(t$2,e$6){t$2.addFieldOffset(11,e$6,0)}static createTensorsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startTensorsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addGraphs(t$2,e$6){t$2.addFieldOffset(12,e$6,0)}static createGraphsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startGraphsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endAttribute(t$2){return t$2.endObject()}static createAttribute(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4,l$1,p$5,f$3,d$2,h$3){return n$3.startAttribute(t$2),n$3.addName(t$2,e$6),n$3.addDocString(t$2,r$3),n$3.addType(t$2,i$2),n$3.addF(t$2,o$2),n$3.addI(t$2,a$2),n$3.addS(t$2,s$1),n$3.addT(t$2,u$1),n$3.addG(t$2,c$4),n$3.addFloats(t$2,l$1),n$3.addInts(t$2,p$5),n$3.addStrings(t$2,f$3),n$3.addTensors(t$2,d$2),n$3.addGraphs(t$2,h$3),n$3.endAttribute(t$2)}}e$5.Attribute=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsGraph(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsGraph(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}initializers(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,4);return r$3?(n$4||new t$1.experimental.fbs.Tensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}initializersLength(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}nodeArgs(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.ValueInfo).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}nodeArgsLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}nodes(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,8);return r$3?(n$4||new t$1.experimental.fbs.Node).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}nodesLength(){let t$2=this.bb.__offset(this.bb_pos,8);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}maxNodeIndex(){let t$2=this.bb.__offset(this.bb_pos,10);return t$2?this.bb.readUint32(this.bb_pos+t$2):0}nodeEdges(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,12);return r$3?(n$4||new t$1.experimental.fbs.NodeEdge).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}nodeEdgesLength(){let t$2=this.bb.__offset(this.bb_pos,12);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}inputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,14);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}inputsLength(){let t$2=this.bb.__offset(this.bb_pos,14);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}outputs(t$2,e$6){let n$4=this.bb.__offset(this.bb_pos,16);return n$4?this.bb.__string(this.bb.__vector(this.bb_pos+n$4)+4*t$2,e$6):null}outputsLength(){let t$2=this.bb.__offset(this.bb_pos,16);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}sparseInitializers(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,18);return r$3?(n$4||new t$1.experimental.fbs.SparseTensor).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}sparseInitializersLength(){let t$2=this.bb.__offset(this.bb_pos,18);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startGraph(t$2){t$2.startObject(8)}static addInitializers(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static createInitializersVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startInitializersVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addNodeArgs(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static createNodeArgsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startNodeArgsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addNodes(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static createNodesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startNodesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addMaxNodeIndex(t$2,e$6){t$2.addFieldInt32(3,e$6,0)}static addNodeEdges(t$2,e$6){t$2.addFieldOffset(4,e$6,0)}static createNodeEdgesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startNodeEdgesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addInputs(t$2,e$6){t$2.addFieldOffset(5,e$6,0)}static createInputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startInputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addOutputs(t$2,e$6){t$2.addFieldOffset(6,e$6,0)}static createOutputsVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startOutputsVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addSparseInitializers(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static createSparseInitializersVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startSparseInitializersVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endGraph(t$2){return t$2.endObject()}static createGraph(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4){return n$3.startGraph(t$2),n$3.addInitializers(t$2,e$6),n$3.addNodeArgs(t$2,r$3),n$3.addNodes(t$2,i$2),n$3.addMaxNodeIndex(t$2,o$2),n$3.addNodeEdges(t$2,a$2),n$3.addInputs(t$2,s$1),n$3.addOutputs(t$2,u$1),n$3.addSparseInitializers(t$2,c$4),n$3.endGraph(t$2)}}e$5.Graph=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsModel(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsModel(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}irVersion(){let t$2=this.bb.__offset(this.bb_pos,4);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}opsetImport(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.OperatorSetId).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}opsetImportLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}producerName(t$2){let e$6=this.bb.__offset(this.bb_pos,8);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}producerVersion(t$2){let e$6=this.bb.__offset(this.bb_pos,10);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}domain(t$2){let e$6=this.bb.__offset(this.bb_pos,12);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}modelVersion(){let t$2=this.bb.__offset(this.bb_pos,14);return t$2?this.bb.readInt64(this.bb_pos+t$2):this.bb.createLong(0,0)}docString(t$2){let e$6=this.bb.__offset(this.bb_pos,16);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}graph(e$6){let n$4=this.bb.__offset(this.bb_pos,18);return n$4?(e$6||new t$1.experimental.fbs.Graph).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}graphDocString(t$2){let e$6=this.bb.__offset(this.bb_pos,20);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}static startModel(t$2){t$2.startObject(9)}static addIrVersion(t$2,e$6){t$2.addFieldInt64(0,e$6,t$2.createLong(0,0))}static addOpsetImport(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static createOpsetImportVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startOpsetImportVector(t$2,e$6){t$2.startVector(4,e$6,4)}static addProducerName(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static addProducerVersion(t$2,e$6){t$2.addFieldOffset(3,e$6,0)}static addDomain(t$2,e$6){t$2.addFieldOffset(4,e$6,0)}static addModelVersion(t$2,e$6){t$2.addFieldInt64(5,e$6,t$2.createLong(0,0))}static addDocString(t$2,e$6){t$2.addFieldOffset(6,e$6,0)}static addGraph(t$2,e$6){t$2.addFieldOffset(7,e$6,0)}static addGraphDocString(t$2,e$6){t$2.addFieldOffset(8,e$6,0)}static endModel(t$2){return t$2.endObject()}static createModel(t$2,e$6,r$3,i$2,o$2,a$2,s$1,u$1,c$4,l$1){return n$3.startModel(t$2),n$3.addIrVersion(t$2,e$6),n$3.addOpsetImport(t$2,r$3),n$3.addProducerName(t$2,i$2),n$3.addProducerVersion(t$2,o$2),n$3.addDomain(t$2,a$2),n$3.addModelVersion(t$2,s$1),n$3.addDocString(t$2,u$1),n$3.addGraph(t$2,c$4),n$3.addGraphDocString(t$2,l$1),n$3.endModel(t$2)}}e$5.Model=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(t$2){(function(t$3){class e$4{constructor(){this.bb=null,this.bb_pos=0}__init(t$4,e$5){return this.bb_pos=t$4,this.bb=e$5,this}static getRootAsKernelCreateInfos(t$4,n$3){return(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}static getSizePrefixedRootAsKernelCreateInfos(t$4,n$3){return t$4.setPosition(t$4.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(n$3||new e$4).__init(t$4.readInt32(t$4.position())+t$4.position(),t$4)}nodeIndices(t$4){let e$5=this.bb.__offset(this.bb_pos,4);return e$5?this.bb.readUint32(this.bb.__vector(this.bb_pos+e$5)+4*t$4):0}nodeIndicesLength(){let t$4=this.bb.__offset(this.bb_pos,4);return t$4?this.bb.__vector_len(this.bb_pos+t$4):0}nodeIndicesArray(){let t$4=this.bb.__offset(this.bb_pos,4);return t$4?new Uint32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t$4),this.bb.__vector_len(this.bb_pos+t$4)):null}kernelDefHashes(t$4){let e$5=this.bb.__offset(this.bb_pos,6);return e$5?this.bb.readUint64(this.bb.__vector(this.bb_pos+e$5)+8*t$4):this.bb.createLong(0,0)}kernelDefHashesLength(){let t$4=this.bb.__offset(this.bb_pos,6);return t$4?this.bb.__vector_len(this.bb_pos+t$4):0}static startKernelCreateInfos(t$4){t$4.startObject(2)}static addNodeIndices(t$4,e$5){t$4.addFieldOffset(0,e$5,0)}static createNodeIndicesVector(t$4,e$5){t$4.startVector(4,e$5.length,4);for(let n$3=e$5.length-1;n$3>=0;n$3--)t$4.addInt32(e$5[n$3]);return t$4.endVector()}static startNodeIndicesVector(t$4,e$5){t$4.startVector(4,e$5,4)}static addKernelDefHashes(t$4,e$5){t$4.addFieldOffset(1,e$5,0)}static createKernelDefHashesVector(t$4,e$5){t$4.startVector(8,e$5.length,8);for(let n$3=e$5.length-1;n$3>=0;n$3--)t$4.addInt64(e$5[n$3]);return t$4.endVector()}static startKernelDefHashesVector(t$4,e$5){t$4.startVector(8,e$5,8)}static endKernelCreateInfos(t$4){return t$4.endObject()}static createKernelCreateInfos(t$4,n$3,r$3){return e$4.startKernelCreateInfos(t$4),e$4.addNodeIndices(t$4,n$3),e$4.addKernelDefHashes(t$4,r$3),e$4.endKernelCreateInfos(t$4)}}t$3.KernelCreateInfos=e$4})(t$2.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSubGraphSessionState(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSubGraphSessionState(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}graphId(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}sessionState(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startSubGraphSessionState(t$2){t$2.startObject(2)}static addGraphId(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addSessionState(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static endSubGraphSessionState(t$2){let e$6=t$2.endObject();return t$2.requiredField(e$6,4),e$6}static createSubGraphSessionState(t$2,e$6,r$3){return n$3.startSubGraphSessionState(t$2),n$3.addGraphId(t$2,e$6),n$3.addSessionState(t$2,r$3),n$3.endSubGraphSessionState(t$2)}}e$5.SubGraphSessionState=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsSessionState(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsSessionState(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}kernels(e$6){let n$4=this.bb.__offset(this.bb_pos,4);return n$4?(e$6||new t$1.experimental.fbs.KernelCreateInfos).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}subGraphSessionStates(e$6,n$4){let r$3=this.bb.__offset(this.bb_pos,6);return r$3?(n$4||new t$1.experimental.fbs.SubGraphSessionState).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r$3)+4*e$6),this.bb):null}subGraphSessionStatesLength(){let t$2=this.bb.__offset(this.bb_pos,6);return t$2?this.bb.__vector_len(this.bb_pos+t$2):0}static startSessionState(t$2){t$2.startObject(2)}static addKernels(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addSubGraphSessionStates(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static createSubGraphSessionStatesVector(t$2,e$6){t$2.startVector(4,e$6.length,4);for(let n$4=e$6.length-1;n$4>=0;n$4--)t$2.addOffset(e$6[n$4]);return t$2.endVector()}static startSubGraphSessionStatesVector(t$2,e$6){t$2.startVector(4,e$6,4)}static endSessionState(t$2){return t$2.endObject()}static createSessionState(t$2,e$6,r$3){return n$3.startSessionState(t$2),n$3.addKernels(t$2,e$6),n$3.addSubGraphSessionStates(t$2,r$3),n$3.endSessionState(t$2)}}e$5.SessionState=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={}),function(t$1){(function(e$4){(function(e$5){class n$3{constructor(){this.bb=null,this.bb_pos=0}__init(t$2,e$6){return this.bb_pos=t$2,this.bb=e$6,this}static getRootAsInferenceSession(t$2,e$6){return(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static getSizePrefixedRootAsInferenceSession(t$2,e$6){return t$2.setPosition(t$2.position()+r$2.flatbuffers.SIZE_PREFIX_LENGTH),(e$6||new n$3).__init(t$2.readInt32(t$2.position())+t$2.position(),t$2)}static bufferHasIdentifier(t$2){return t$2.__has_identifier(`ORTM`)}ortVersion(t$2){let e$6=this.bb.__offset(this.bb_pos,4);return e$6?this.bb.__string(this.bb_pos+e$6,t$2):null}model(e$6){let n$4=this.bb.__offset(this.bb_pos,6);return n$4?(e$6||new t$1.experimental.fbs.Model).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}sessionState(e$6){let n$4=this.bb.__offset(this.bb_pos,8);return n$4?(e$6||new t$1.experimental.fbs.SessionState).__init(this.bb.__indirect(this.bb_pos+n$4),this.bb):null}static startInferenceSession(t$2){t$2.startObject(3)}static addOrtVersion(t$2,e$6){t$2.addFieldOffset(0,e$6,0)}static addModel(t$2,e$6){t$2.addFieldOffset(1,e$6,0)}static addSessionState(t$2,e$6){t$2.addFieldOffset(2,e$6,0)}static endInferenceSession(t$2){return t$2.endObject()}static finishInferenceSessionBuffer(t$2,e$6){t$2.finish(e$6,`ORTM`)}static finishSizePrefixedInferenceSessionBuffer(t$2,e$6){t$2.finish(e$6,`ORTM`,!0)}static createInferenceSession(t$2,e$6,r$3,i$2){return n$3.startInferenceSession(t$2),n$3.addOrtVersion(t$2,e$6),n$3.addModel(t$2,r$3),n$3.addSessionState(t$2,i$2),n$3.endInferenceSession(t$2)}}e$5.InferenceSession=n$3})(e$4.fbs||={})})(t$1.experimental||={})}(e$3.onnxruntime||={})},7448:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.OnnxjsSessionHandler=void 0;let r$2=n$2(1670),i$1=n$2(9162);e$3.OnnxjsSessionHandler=class{constructor(t$1){this.session=t$1,this.inputNames=this.session.inputNames,this.outputNames=this.session.outputNames}async dispose(){}async run(t$1,e$4,n$3){let o$1=new Map;for(let e$5 in t$1)if(Object.hasOwnProperty.call(t$1,e$5)){let n$4=t$1[e$5];o$1.set(e$5,new i$1.Tensor(n$4.dims,n$4.type,void 0,void 0,n$4.data))}let a$2=await this.session.run(o$1),s$1={};return a$2.forEach((t$2,e$5)=>{s$1[e$5]=new r$2.Tensor(t$2.type,t$2.data,t$2.dims)}),s$1}startProfiling(){this.session.startProfiling()}endProfiling(){this.session.endProfiling()}}},6919:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.Session=void 0;let r$2=n$2(7067),i$1=n$2(1296),o$1=n$2(7091),a$2=n$2(1036),s$1=n$2(6231),u$1=n$2(2644);e$3.Session=class{constructor(t$1={}){this._initialized=!1,this.backendHint=t$1.backendHint,this.profiler=s$1.Profiler.create(t$1.profiler),this.context={profiler:this.profiler,graphInputTypes:[],graphInputDims:[]}}get inputNames(){return this._model.graph.getInputNames()}get outputNames(){return this._model.graph.getOutputNames()}startProfiling(){this.profiler.start()}endProfiling(){this.profiler.stop()}async loadModel(t$1,e$4,n$3){await this.profiler.event(`session`,`Session.loadModel`,async()=>{let a$3=await(0,o$1.resolveBackend)(this.backendHint);if(this.sessionHandler=a$3.createSessionHandler(this.context),this._model=new u$1.Model,typeof t$1==`string`){let e$5=t$1.endsWith(`.ort`);if(typeof fetch>`u`){let n$4=await(0,i$1.promisify)(r$2.readFile)(t$1);this.initialize(n$4,e$5)}else{let n$4=await fetch(t$1),r$3=await n$4.arrayBuffer();this.initialize(new Uint8Array(r$3),e$5)}}else if(ArrayBuffer.isView(t$1))this.initialize(t$1);else{let r$3=new Uint8Array(t$1,e$4||0,n$3||t$1.byteLength);this.initialize(r$3)}})}initialize(t$1,e$4){if(this._initialized)throw Error(`already initialized`);this.profiler.event(`session`,`Session.initialize`,()=>{let n$3=this.sessionHandler.transformGraph?this.sessionHandler:void 0;this._model.load(t$1,n$3,e$4),this.sessionHandler.onGraphInitialized&&this.sessionHandler.onGraphInitialized(this._model.graph),this.initializeOps(this._model.graph),this._executionPlan=new a$2.ExecutionPlan(this._model.graph,this._ops,this.profiler)}),this._initialized=!0}async run(t$1){if(!this._initialized)throw Error(`session not initialized yet`);return this.profiler.event(`session`,`Session.run`,async()=>{let e$4=this.normalizeAndValidateInputs(t$1),n$3=await this._executionPlan.execute(this.sessionHandler,e$4);return this.createOutput(n$3)})}normalizeAndValidateInputs(t$1){let e$4=this._model.graph.getInputNames();if(Array.isArray(t$1)){if(t$1.length!==e$4.length)throw Error(`incorrect input array length: expected ${e$4.length} but got ${t$1.length}`)}else{if(t$1.size!==e$4.length)throw Error(`incorrect input map size: expected ${e$4.length} but got ${t$1.size}`);let n$3=Array(t$1.size),r$3=0;for(let i$2=0;i$2typeof t$2==`string`)))throw TypeError(`cache should be a string array`);c$5&&(this.cache=Array(s$2))}else{if(o$2!==void 0){let t$2=f$3(e$4);if(!(o$2 instanceof t$2))throw TypeError(`cache should be type ${t$2.name}`)}if(c$5){let t$2=new ArrayBuffer(s$2*function(t$3){switch(t$3){case`bool`:case`int8`:case`uint8`:return 1;case`int16`:case`uint16`:return 2;case`int32`:case`uint32`:case`float32`:return 4;case`float64`:return 8;default:throw Error(`cannot calculate sizeof() on type ${t$3}`)}}(e$4));this.cache=function(t$3,e$5){return new(f$3(e$5))(t$3)}(t$2,e$4)}}}static fromProto(t$1){if(!t$1)throw Error(`cannot construct Value from an empty tensor`);let e$4=u$1.ProtoUtil.tensorDataTypeFromProto(t$1.dataType),n$3=u$1.ProtoUtil.tensorDimsFromProto(t$1.dims),r$3=new l$1(n$3,e$4);if(e$4===`string`)t$1.stringData.forEach((t$2,e$5)=>{r$3.data[e$5]=(0,u$1.decodeUtf8String)(t$2)});else if(t$1.rawData&&typeof t$1.rawData.byteLength==`number`&&t$1.rawData.byteLength>0){let e$5=r$3.data,n$4=new DataView(t$1.rawData.buffer,t$1.rawData.byteOffset,t$1.rawData.byteLength),i$2=p$5(t$1.dataType),o$2=t$1.rawData.byteLength/i$2;if(t$1.rawData.byteLength%i$2!=0)throw Error(`invalid buffer length`);if(e$5.length!==o$2)throw Error(`buffer length mismatch`);for(let r$4=0;r$40){let e$5=r$3.data,n$4=new DataView(t$1.rawDataArray().buffer,t$1.rawDataArray().byteOffset,t$1.rawDataLength()),i$2=p$5(t$1.dataType()),o$2=t$1.rawDataLength()/i$2;if(t$1.rawDataLength()%i$2!=0)throw Error(`invalid buffer length`);if(e$5.length!==o$2)throw Error(`buffer length mismatch`);for(let r$4=0;r$41&&u$2>1)return;a$3[o$2-s$2]=Math.max(n$4,u$2)}return a$3}static index(t$1,e$4){let n$3=Array(e$4.length);return c$4.fillIndex(t$1,e$4,n$3),n$3}static fillIndex(t$1,e$4,n$3){let r$3=t$1.length-e$4.length;for(let i$2=0;i$2=0;t$2--)r$4[t$2]=l$2%o$2[t$2],l$2=Math.floor(l$2/o$2[t$2]);d$3||(c$4.fillIndex(r$4,t$1.dims,i$3),p$6=t$1.get(i$3)),h$4||(c$4.fillIndex(r$4,e$4.dims,s$2),f$4=e$4.get(s$2)),u$2.set(r$4,n$3(p$6,f$4))}}return u$2}}static isValidBroadcast(t$1,e$4){let n$3=t$1.length,r$3=e$4.length;if(n$3>r$3)return!1;for(let i$2=1;i$2<=n$3;i$2++)if(t$1[n$3-i$2]!==1&&t$1[n$3-i$2]!==e$4[r$3-i$2])return!1;return!0}static getBroadcastDims(t$1,e$4){let n$3=t$1.length,r$3=[];for(let i$2=0;i$21&&a$3===1&&r$3.unshift(o$2)}return r$3}}e$3.BroadcastUtil=c$4,e$3.arrayCopyHelper=function(t$1,e$4,n$3,r$3,i$2){if(r$3<0||r$3>=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let o$2=0;o$2o$1.default.isLong(t$2)?t$2.toNumber():t$2)}static tensorValueTypeFromProto(t$1){return{tensorType:l$1.tensorDataTypeFromProto(t$1.elemType),shape:{dims:l$1.tensorDimsFromProto(t$1.shape.dim.map(t$2=>t$2.dimValue))}}}static tensorDimsFromORTFormat(t$1){let e$4=[];for(let n$3=0;n$3t$1.length)throw Error(`invalid dimension of ${e$4} for sizeFromDimension as Tensor has ${t$1.length} dimensions.`);return f$3.getSizeFromDimensionRange(t$1,e$4,t$1.length)}static sizeToDimension(t$1,e$4){if(e$4<0||e$4>t$1.length)throw Error(`invalid dimension of ${e$4} for sizeToDimension as Tensor has ${t$1.length} dimensions.`);return f$3.getSizeFromDimensionRange(t$1,0,e$4)}static getSizeFromDimensionRange(t$1,e$4,n$3){let r$3=1;for(let i$2=e$4;i$2=0;--r$3)n$3[r$3]=n$3[r$3+1]*t$1[r$3+1];return n$3}static transpose(t$1){return t$1.slice().reverse()}static indicesToOffset(t$1,e$4,n$3){n$3===void 0&&(n$3=t$1.length);let r$3=0;for(let i$2=0;i$2=e$4)throw Error(`unsupported axis for this operation.`);return t$1<0?t$1+e$4:t$1}static normalizeAxes(t$1,e$4){return t$1.map(t$2=>this.normalizeAxis(t$2,e$4))}static incrementIndex(t$1,e$4,n$3){if(e$4.length===0||t$1.length===0)throw Error(`Index incrementing unsupported for scalar Tensor`);if(n$3===void 0)n$3=e$4.length;else if(n$3<=0||n$3>e$4.length)throw Error(`Incorrect axis to increment on`);for(let r$3=n$3-1;r$3>=0&&(t$1[r$3]++,!(t$1[r$3]=t$1.length)throw Error(`the dimension with value zero exceeds the dimension size of the input tensor`);r$3[a$4]=t$1[a$4]}else r$3[a$4]=e$4[a$4];o$2*=r$3[a$4]}}let a$3=f$3.size(t$1);if(i$2!==-1){if(a$3%o$2!=0)throw Error(`the input tensor cannot be reshaped to the requested shape. Input shape: [${t$1}] Output shape: [${e$4}]`);r$3[i$2]=a$3/o$2}else if(o$2!==a$3)throw Error(`reshapedDims and originalDims don't have matching sizes`);return r$3}static sortBasedOnPerm(t$1,e$4){return e$4?e$4.map(e$5=>t$1[e$5]):t$1.slice().reverse()}static padShape(t$1,e$4){let n$3=t$1.length;return t$1.map((t$2,r$3)=>t$2+e$4[r$3]+e$4[r$3+n$3])}static areEqual(t$1,e$4){return t$1.length===e$4.length&&t$1.every((t$2,n$3)=>t$2===e$4[n$3])}static validateDimsAndCalcSize(t$1){if(t$1.length>6)throw TypeError(`Only rank 0 to 6 is supported for tensor shape.`);let e$4=1;for(let n$3 of t$1){if(!Number.isInteger(n$3))throw TypeError(`Invalid shape: ${n$3} is not an integer`);if(n$3<0||n$3>2147483647)throw TypeError(`Invalid shape: length ${n$3} is not allowed`);e$4*=n$3}return e$4}static flattenShape(t$1,e$4){e$4<0&&(e$4+=t$1.length);let n$3=t$1.reduce((t$2,e$5)=>t$2*e$5,1),r$3=t$1.slice(e$4).reduce((t$2,e$5)=>t$2*e$5,1);return[n$3/r$3,r$3]}static squeezeShape(t$1,e$4){let n$3=[];e$4=f$3.normalizeAxes(e$4,t$1.length);for(let r$3=0;r$3=0;if(i$2&&t$1[r$3]!==1)throw Error(`squeeze an axis of size different than 1`);(e$4.length===0&&t$1[r$3]>1||e$4.length>0&&!i$2)&&n$3.push(t$1[r$3])}return n$3}static unsqueezeShape(t$1,e$4){let n$3=Array(t$1.length+e$4.length);n$3.fill(0);for(let t$2=0;t$2=n$3.length)throw Error(`'axes' has an out of range axis`);if(n$3[r$4]!==0)throw Error(`'axes' has a duplicate axis`);n$3[r$4]=1}let r$3=0;for(let e$5=0;e$5=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let o$2=0;o$2=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let a$3=0;a$3=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let a$3=0;a$3=e$4.length)throw Error(`sourceIndex out of bounds`);if(n$3<0||n$3>=t$1.length)throw Error(`targetIndex out of bounds`);if(r$3+i$2>e$4.length)throw Error(`source indices to be copied are outside bounds`);if(n$3+i$2>t$1.length)throw Error(`target array is too small to hold result`);for(let o$2=0;o$2e$4.push(n$4));let a$3=h$3.calcReduceShape(o$2,e$4,!0),u$2=f$3.size(a$3),l$2=new s$1.Tensor(a$3,t$1.type),p$6=f$3.computeStrides(a$3),d$3=f$3.computeStrides(o$2),g$3=Array(o$2.length);for(let n$4=0;n$4=e$4.length)return o$2(t$1[i$2]);let u$2=e$4[r$3],c$5=u$2>=n$3.length?1:f$3.size(n$3.slice(u$2+1));for(let l$2=0;l$2t$2!==0)}}e$3.ReduceUtil=h$3;class g$2{static adjustPoolAttributes(t$1,e$4,n$3,r$3,i$2,o$2){if(!t$1&&n$3.length!==e$4.length-2)throw Error(`length of specified kernel shapes should be 2 less than length of input dimensions`);if(t$1)for(let t$2=0;t$2=n$3.length?n$3.push(e$4[t$2+2]):n$3[t$2]=e$4[t$2+2];for(let t$2=0;t$2=n$3[t$2]||o$2[t$2+n$3.length]>=n$3[t$2])throw Error(`pads should be smaller than kernel`)}}static adjustPadsBasedOnAutoPad(t$1,e$4,n$3,r$3,i$2,o$2){if(o$2){if(i$2.length!==2*(t$1.length-2))throw Error(`length of pads should be twice the length of data dimensions`);if(e$4.length!==t$1.length-2)throw Error(`length of strides should be the length of data dimensions`);if(r$3.length!==t$1.length-2)throw Error(`length of kernel shapes should be the length of data dimensions`);for(let a$3=0;a$3{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.iterateExtraOptions=void 0,e$3.iterateExtraOptions=(t$1,n$2,r$2,i$1)=>{if(typeof t$1==`object`&&t$1){if(r$2.has(t$1))throw Error(`Circular reference in options`);r$2.add(t$1)}Object.entries(t$1).forEach(([t$2,o$1])=>{let a$2=n$2?n$2+t$2:t$2;if(typeof o$1==`object`)(0,e$3.iterateExtraOptions)(o$1,a$2+`.`,r$2,i$1);else if(typeof o$1==`string`||typeof o$1==`number`)i$1(a$2,o$1.toString());else{if(typeof o$1!=`boolean`)throw Error(`Can't handle extra config type: `+typeof o$1);i$1(a$2,o$1?`1`:`0`)}})}},2157:function(t,e$3,n$2){"use strict";var r$2,i$1=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),o$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),a$2=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&i$1(e$4,t$1,n$3);return o$1(e$4,t$1),e$4};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.endProfiling=e$3.run=e$3.releaseSession=e$3.createSession=e$3.createSessionFinalize=e$3.createSessionAllocate=e$3.initOrt=e$3.initWasm=void 0;let s$1=n$2(1670),u$1=a$2(n$2(349)),c$4=n$2(6361),l$1=()=>!!s$1.env.wasm.proxy&&typeof document<`u`,p$5,f$3,d$2,h$3=!1,g$2=!1,b$3=!1,m$2=[],y$2=[],_$2=[],v$1=[],w$1=[],x$3=[],T$1=()=>{if(h$3||!g$2||b$3||!p$5)throw Error(`worker not ready`)},S$2=t$1=>{switch(t$1.data.type){case`init-wasm`:h$3=!1,t$1.data.err?(b$3=!0,f$3[1](t$1.data.err)):(g$2=!0,f$3[0]());break;case`init-ort`:t$1.data.err?d$2[1](t$1.data.err):d$2[0]();break;case`create_allocate`:t$1.data.err?m$2.shift()[1](t$1.data.err):m$2.shift()[0](t$1.data.out);break;case`create_finalize`:t$1.data.err?y$2.shift()[1](t$1.data.err):y$2.shift()[0](t$1.data.out);break;case`create`:t$1.data.err?_$2.shift()[1](t$1.data.err):_$2.shift()[0](t$1.data.out);break;case`release`:t$1.data.err?v$1.shift()[1](t$1.data.err):v$1.shift()[0]();break;case`run`:t$1.data.err?w$1.shift()[1](t$1.data.err):w$1.shift()[0](t$1.data.out);break;case`end-profiling`:t$1.data.err?x$3.shift()[1](t$1.data.err):x$3.shift()[0]()}},O$2=typeof document<`u`?(r$2=document==null?void 0:document.currentScript)?.src:void 0;e$3.initWasm=async()=>{if(l$1()){if(g$2)return;if(h$3)throw Error(`multiple calls to 'initWasm()' detected.`);if(b$3)throw Error(`previous call to 'initWasm()' failed.`);return h$3=!0,s$1.env.wasm.wasmPaths===void 0&&O$2&&O$2.indexOf(`blob:`)!==0&&(s$1.env.wasm.wasmPaths=O$2.substr(0,+O$2.lastIndexOf(`/`)+1)),new Promise((t$1,e$4)=>{p$5?.terminate(),p$5=n$2(9710).Z(),p$5.onmessage=S$2,f$3=[t$1,e$4];let r$3={type:`init-wasm`,in:s$1.env.wasm};p$5.postMessage(r$3)})}return(0,c$4.initializeWebAssembly)(s$1.env.wasm)},e$3.initOrt=async(t$1,e$4)=>{if(l$1())return T$1(),new Promise((n$3,r$3)=>{d$2=[n$3,r$3];let i$2={type:`init-ort`,in:{numThreads:t$1,loggingLevel:e$4}};p$5.postMessage(i$2)});u$1.initOrt(t$1,e$4)},e$3.createSessionAllocate=async t$1=>l$1()?(T$1(),new Promise((e$4,n$3)=>{m$2.push([e$4,n$3]);let r$3={type:`create_allocate`,in:{model:t$1}};p$5.postMessage(r$3,[t$1.buffer])})):u$1.createSessionAllocate(t$1),e$3.createSessionFinalize=async(t$1,e$4)=>l$1()?(T$1(),new Promise((n$3,r$3)=>{y$2.push([n$3,r$3]);let i$2={type:`create_finalize`,in:{modeldata:t$1,options:e$4}};p$5.postMessage(i$2)})):u$1.createSessionFinalize(t$1,e$4),e$3.createSession=async(t$1,e$4)=>l$1()?(T$1(),new Promise((n$3,r$3)=>{_$2.push([n$3,r$3]);let i$2={type:`create`,in:{model:t$1,options:e$4}};p$5.postMessage(i$2,[t$1.buffer])})):u$1.createSession(t$1,e$4),e$3.releaseSession=async t$1=>{if(l$1())return T$1(),new Promise((e$4,n$3)=>{v$1.push([e$4,n$3]);let r$3={type:`release`,in:t$1};p$5.postMessage(r$3)});u$1.releaseSession(t$1)},e$3.run=async(t$1,e$4,n$3,r$3,i$2)=>l$1()?(T$1(),new Promise((o$2,a$3)=>{w$1.push([o$2,a$3]);let s$2={type:`run`,in:{sessionId:t$1,inputIndices:e$4,inputs:n$3,outputIndices:r$3,options:i$2}};p$5.postMessage(s$2,u$1.extractTransferableBuffers(n$3))})):u$1.run(t$1,e$4,n$3,r$3,i$2),e$3.endProfiling=async t$1=>{if(l$1())return T$1(),new Promise((e$4,n$3)=>{x$3.push([e$4,n$3]);let r$3={type:`end-profiling`,in:t$1};p$5.postMessage(r$3)});u$1.endProfiling(t$1)}},586:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.setRunOptions=void 0;let r$2=n$2(7967),i$1=n$2(4983),o$1=n$2(6361);e$3.setRunOptions=t$1=>{let e$4=(0,o$1.getInstance)(),n$3=0,a$2=[],s$1=t$1||{};try{if(t$1?.logSeverityLevel===void 0)s$1.logSeverityLevel=2;else if(typeof t$1.logSeverityLevel!=`number`||!Number.isInteger(t$1.logSeverityLevel)||t$1.logSeverityLevel<0||t$1.logSeverityLevel>4)throw Error(`log serverity level is not valid: ${t$1.logSeverityLevel}`);if(t$1?.logVerbosityLevel===void 0)s$1.logVerbosityLevel=0;else if(typeof t$1.logVerbosityLevel!=`number`||!Number.isInteger(t$1.logVerbosityLevel))throw Error(`log verbosity level is not valid: ${t$1.logVerbosityLevel}`);t$1?.terminate===void 0&&(s$1.terminate=!1);let o$2=0;if(t$1?.tag!==void 0&&(o$2=(0,i$1.allocWasmString)(t$1.tag,a$2)),n$3=e$4._OrtCreateRunOptions(s$1.logSeverityLevel,s$1.logVerbosityLevel,!!s$1.terminate,o$2),n$3===0)throw Error(`Can't create run options`);return t$1?.extra!==void 0&&(0,r$2.iterateExtraOptions)(t$1.extra,``,new WeakSet,(t$2,r$3)=>{let o$3=(0,i$1.allocWasmString)(t$2,a$2),s$2=(0,i$1.allocWasmString)(r$3,a$2);if(e$4._OrtAddRunConfigEntry(n$3,o$3,s$2)!==0)throw Error(`Can't set a run config entry: ${t$2} - ${r$3}`)}),[n$3,a$2]}catch(t$2){throw n$3!==0&&e$4._OrtReleaseRunOptions(n$3),a$2.forEach(e$4._free),t$2}}},2306:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.OnnxruntimeWebAssemblySessionHandler=void 0;let r$2=n$2(2806),i$1=n$2(1670),o$1=n$2(2850),a$2=n$2(2157),s$1;e$3.OnnxruntimeWebAssemblySessionHandler=class{async createSessionAllocate(t$1){let e$4=await fetch(t$1),n$3=await e$4.arrayBuffer();return(0,a$2.createSessionAllocate)(new Uint8Array(n$3))}async loadModel(t$1,e$4){if(s$1||(await(0,a$2.initOrt)(i$1.env.wasm.numThreads,(t$2=>{switch(t$2){case`verbose`:return 0;case`info`:return 1;case`warning`:return 2;case`error`:return 3;case`fatal`:return 4;default:throw Error(`unsupported logging level: ${t$2}`)}})(i$1.env.logLevel)),s$1=!0),typeof t$1==`string`)if(typeof fetch>`u`){let n$3=await(0,o$1.promisify)(r$2.readFile)(t$1);[this.sessionId,this.inputNames,this.outputNames]=await(0,a$2.createSession)(n$3,e$4)}else{let n$3=await this.createSessionAllocate(t$1);[this.sessionId,this.inputNames,this.outputNames]=await(0,a$2.createSessionFinalize)(n$3,e$4)}else [this.sessionId,this.inputNames,this.outputNames]=await(0,a$2.createSession)(t$1,e$4)}async dispose(){return(0,a$2.releaseSession)(this.sessionId)}async run(t$1,e$4,n$3){let r$3=[],o$2=[];Object.entries(t$1).forEach(t$2=>{let e$5=t$2[0],n$4=t$2[1],i$2=this.inputNames.indexOf(e$5);if(i$2===-1)throw Error(`invalid input '${e$5}'`);r$3.push(n$4),o$2.push(i$2)});let s$2=[];Object.entries(e$4).forEach(t$2=>{let e$5=t$2[0],n$4=this.outputNames.indexOf(e$5);if(n$4===-1)throw Error(`invalid output '${e$5}'`);s$2.push(n$4)});let u$1=await(0,a$2.run)(this.sessionId,o$2,r$3.map(t$2=>[t$2.type,t$2.dims,t$2.data]),s$2,n$3),c$4={};for(let t$2=0;t$2{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.setSessionOptions=void 0;let r$2=n$2(7967),i$1=n$2(4983),o$1=n$2(6361);e$3.setSessionOptions=t$1=>{let e$4=(0,o$1.getInstance)(),n$3=0,a$2=[],s$1=t$1||{};(t$2=>{t$2.extra||={},t$2.extra.session||(t$2.extra.session={});let e$5=t$2.extra.session;e$5.use_ort_model_bytes_directly||=`1`})(s$1);try{t$1?.graphOptimizationLevel===void 0&&(s$1.graphOptimizationLevel=`all`);let u$1=(t$2=>{switch(t$2){case`disabled`:return 0;case`basic`:return 1;case`extended`:return 2;case`all`:return 99;default:throw Error(`unsupported graph optimization level: ${t$2}`)}})(s$1.graphOptimizationLevel);t$1?.enableCpuMemArena===void 0&&(s$1.enableCpuMemArena=!0),t$1?.enableMemPattern===void 0&&(s$1.enableMemPattern=!0),t$1?.executionMode===void 0&&(s$1.executionMode=`sequential`);let c$4=(t$2=>{switch(t$2){case`sequential`:return 0;case`parallel`:return 1;default:throw Error(`unsupported execution mode: ${t$2}`)}})(s$1.executionMode),l$1=0;if(t$1?.logId!==void 0&&(l$1=(0,i$1.allocWasmString)(t$1.logId,a$2)),t$1?.logSeverityLevel===void 0)s$1.logSeverityLevel=2;else if(typeof t$1.logSeverityLevel!=`number`||!Number.isInteger(t$1.logSeverityLevel)||t$1.logSeverityLevel<0||t$1.logSeverityLevel>4)throw Error(`log serverity level is not valid: ${t$1.logSeverityLevel}`);if(t$1?.logVerbosityLevel===void 0)s$1.logVerbosityLevel=0;else if(typeof t$1.logVerbosityLevel!=`number`||!Number.isInteger(t$1.logVerbosityLevel))throw Error(`log verbosity level is not valid: ${t$1.logVerbosityLevel}`);if(t$1?.enableProfiling===void 0&&(s$1.enableProfiling=!1),n$3=e$4._OrtCreateSessionOptions(u$1,!!s$1.enableCpuMemArena,!!s$1.enableMemPattern,c$4,!!s$1.enableProfiling,0,l$1,s$1.logSeverityLevel,s$1.logVerbosityLevel),n$3===0)throw Error(`Can't create session options`);return t$1!=null&&t$1.executionProviders&&((t$2,e$5,n$4)=>{for(let r$3 of e$5){let e$6=typeof r$3==`string`?r$3:r$3.name;switch(e$6){case`xnnpack`:e$6=`XNNPACK`;break;case`wasm`:case`cpu`:continue;default:throw Error(`not supported EP: ${e$6}`)}let a$3=(0,i$1.allocWasmString)(e$6,n$4);if((0,o$1.getInstance)()._OrtAppendExecutionProvider(t$2,a$3)!==0)throw Error(`Can't append execution provider: ${e$6}`)}})(n$3,t$1.executionProviders,a$2),t$1?.extra!==void 0&&(0,r$2.iterateExtraOptions)(t$1.extra,``,new WeakSet,(t$2,r$3)=>{let o$2=(0,i$1.allocWasmString)(t$2,a$2),s$2=(0,i$1.allocWasmString)(r$3,a$2);if(e$4._OrtAddSessionConfigEntry(n$3,o$2,s$2)!==0)throw Error(`Can't set a session config entry: ${t$2} - ${r$3}`)}),[n$3,a$2]}catch(t$2){throw n$3!==0&&e$4._OrtReleaseSessionOptions(n$3),a$2.forEach(e$4._free),t$2}}},4983:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.allocWasmString=void 0;let r$2=n$2(6361);e$3.allocWasmString=(t$1,e$4)=>{let n$3=(0,r$2.getInstance)(),i$1=n$3.lengthBytesUTF8(t$1)+1,o$1=n$3._malloc(i$1);return n$3.stringToUTF8(t$1,o$1,i$1),e$4.push(o$1),o$1}},349:(t,e$3,n$2)=>{"use strict";Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.extractTransferableBuffers=e$3.endProfiling=e$3.run=e$3.releaseSession=e$3.createSession=e$3.createSessionFinalize=e$3.createSessionAllocate=e$3.initOrt=void 0;let r$2=n$2(586),i$1=n$2(4919),o$1=n$2(4983),a$2=n$2(6361);e$3.initOrt=(t$1,e$4)=>{let n$3=(0,a$2.getInstance)()._OrtInit(t$1,e$4);if(n$3!==0)throw Error(`Can't initialize onnxruntime. error code = ${n$3}`)};let s$1=new Map;e$3.createSessionAllocate=t$1=>{let e$4=(0,a$2.getInstance)(),n$3=e$4._malloc(t$1.byteLength);return e$4.HEAPU8.set(t$1,n$3),[n$3,t$1.byteLength]},e$3.createSessionFinalize=(t$1,e$4)=>{let n$3=(0,a$2.getInstance)(),r$3=0,o$2=0,u$2=[];try{if([o$2,u$2]=(0,i$1.setSessionOptions)(e$4),r$3=n$3._OrtCreateSession(t$1[0],t$1[1],o$2),r$3===0)throw Error(`Can't create a session`)}finally{n$3._free(t$1[0]),n$3._OrtReleaseSessionOptions(o$2),u$2.forEach(n$3._free)}let c$5=n$3._OrtGetInputCount(r$3),l$2=n$3._OrtGetOutputCount(r$3),p$5=[],f$3=[],d$2=[],h$3=[];for(let t$2=0;t$2{let r$3=(0,e$3.createSessionAllocate)(t$1);return(0,e$3.createSessionFinalize)(r$3,n$3)},e$3.releaseSession=t$1=>{let e$4=(0,a$2.getInstance)(),n$3=s$1.get(t$1);if(!n$3)throw Error(`invalid session id`);let r$3=n$3[0],i$2=n$3[1],o$2=n$3[2];i$2.forEach(e$4._OrtFree),o$2.forEach(e$4._OrtFree),e$4._OrtReleaseSession(r$3),s$1.delete(t$1)};let u$1=t$1=>{switch(t$1){case`int8`:return 3;case`uint8`:return 2;case`bool`:return 9;case`int16`:return 5;case`uint16`:return 4;case`int32`:return 6;case`uint32`:return 12;case`float32`:return 1;case`float64`:return 11;case`string`:return 8;case`int64`:return 7;case`uint64`:return 13;default:throw Error(`unsupported data type: ${t$1}`)}},c$4=t$1=>{switch(t$1){case 3:return`int8`;case 2:return`uint8`;case 9:return`bool`;case 5:return`int16`;case 4:return`uint16`;case 6:return`int32`;case 12:return`uint32`;case 1:return`float32`;case 11:return`float64`;case 8:return`string`;case 7:return`int64`;case 13:return`uint64`;default:throw Error(`unsupported data type: ${t$1}`)}},l$1=t$1=>{switch(t$1){case`float32`:return Float32Array;case`uint8`:case`bool`:return Uint8Array;case`int8`:return Int8Array;case`uint16`:return Uint16Array;case`int16`:return Int16Array;case`int32`:return Int32Array;case`float64`:return Float64Array;case`uint32`:return Uint32Array;case`int64`:return BigInt64Array;case`uint64`:return BigUint64Array;default:throw Error(`unsupported type: ${t$1}`)}};e$3.run=(t$1,e$4,n$3,i$2,p$5)=>{let f$3=(0,a$2.getInstance)(),d$2=s$1.get(t$1);if(!d$2)throw Error(`invalid session id`);let h$3=d$2[0],g$2=d$2[1],b$3=d$2[2],m$2=e$4.length,y$2=i$2.length,_$2=0,v$1=[],w$1=[],x$3=[];try{[_$2,v$1]=(0,r$2.setRunOptions)(p$5);for(let t$3=0;t$3f$3.HEAP32[t$4++]=e$6);let n$4=f$3._OrtCreateTensor(u$1(e$5),a$4,s$3,l$2,r$3.length);if(n$4===0)throw Error(`Can't create a tensor`);w$1.push(n$4)}finally{f$3.stackRestore(c$5)}}let t$2=f$3.stackSave(),a$3=f$3.stackAlloc(4*m$2),s$2=f$3.stackAlloc(4*m$2),d$3=f$3.stackAlloc(4*y$2),T$1=f$3.stackAlloc(4*y$2);try{let n$4=a$3/4,r$3=s$2/4,o$2=d$3/4,u$2=T$1/4;for(let t$3=0;t$3t$5*e$6);if(i$3=c$4(a$4),i$3===`string`){let t$5=[],e$6=o$3/4;for(let n$6=0;n$6{let e$4=(0,a$2.getInstance)(),n$3=s$1.get(t$1);if(!n$3)throw Error(`invalid session id`);let r$3=n$3[0],i$2=e$4._OrtEndProfiling(r$3);if(i$2===0)throw Error(`Can't get an profile file name`);e$4._OrtFree(i$2)},e$3.extractTransferableBuffers=t$1=>{let e$4=[];for(let n$3 of t$1){let t$2=n$3[2];!Array.isArray(t$2)&&t$2.buffer&&e$4.push(t$2.buffer)}return e$4}},6361:function(t,e$3,n$2){"use strict";var r$2=this&&this.__createBinding||(Object.create?function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3);var i$2=Object.getOwnPropertyDescriptor(e$4,n$3);i$2&&!(`get`in i$2?!e$4.__esModule:i$2.writable||i$2.configurable)||(i$2={enumerable:!0,get:function(){return e$4[n$3]}}),Object.defineProperty(t$1,r$3,i$2)}:function(t$1,e$4,n$3,r$3){r$3===void 0&&(r$3=n$3),t$1[r$3]=e$4[n$3]}),i$1=this&&this.__setModuleDefault||(Object.create?function(t$1,e$4){Object.defineProperty(t$1,`default`,{enumerable:!0,value:e$4})}:function(t$1,e$4){t$1.default=e$4}),o$1=this&&this.__importStar||function(t$1){if(t$1&&t$1.__esModule)return t$1;var e$4={};if(t$1!=null)for(var n$3 in t$1)n$3!==`default`&&Object.prototype.hasOwnProperty.call(t$1,n$3)&&r$2(e$4,t$1,n$3);return i$1(e$4,t$1),e$4},a$2=this&&this.__importDefault||function(t$1){return t$1&&t$1.__esModule?t$1:{default:t$1}};Object.defineProperty(e$3,`__esModule`,{value:!0}),e$3.dispose=e$3.getInstance=e$3.initializeWebAssembly=void 0;let s$1=o$1(n$2(6449)),u$1=a$2(n$2(932)),c$4=n$2(3474),l$1,p$5=!1,f$3=!1,d$2=!1,h$3=(t$1,e$4)=>e$4?t$1?`ort-wasm-simd-threaded.wasm`:`ort-wasm-threaded.wasm`:t$1?`ort-wasm-simd.wasm`:`ort-wasm.wasm`;e$3.initializeWebAssembly=async t$1=>{if(p$5)return Promise.resolve();if(f$3)throw Error(`multiple calls to 'initializeWebAssembly()' detected.`);if(d$2)throw Error(`previous call to 'initializeWebAssembly()' failed.`);f$3=!0;let e$4=t$1.initTimeout,r$3=t$1.numThreads,i$2=t$1.simd,o$2=r$3>1&&(()=>{try{return typeof SharedArrayBuffer<`u`&&(typeof MessageChannel<`u`&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(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])))}catch{return!1}})(),a$3=i$2&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch{return!1}})(),g$2=typeof t$1.wasmPaths==`string`?t$1.wasmPaths:void 0,b$3=h$3(!1,o$2),m$2=h$3(a$3,o$2),y$2=typeof t$1.wasmPaths==`object`?t$1.wasmPaths[m$2]:void 0,_$2=!1,v$1=[];if(e$4>0&&v$1.push(new Promise(t$2=>{setTimeout(()=>{_$2=!0,t$2()},e$4)})),v$1.push(new Promise((t$2,e$5)=>{let r$4=o$2?c$4:u$1.default,i$3={locateFile:(t$3,e$6)=>o$2&&t$3.endsWith(`.worker.js`)&&typeof Blob<`u`?URL.createObjectURL(new Blob([n$2(4154)],{type:`text/javascript`})):t$3===b$3?y$2??(g$2??e$6)+m$2:e$6+t$3};if(o$2)if(typeof Blob>`u`)i$3.mainScriptUrlOrBlob=s$1.join(`/`,`ort-wasm-threaded.js`);else{let t$3=`var ortWasmThreaded=(function(){var _scriptDir;return ${r$4.toString()}})();`;i$3.mainScriptUrlOrBlob=new Blob([t$3],{type:`text/javascript`})}r$4(i$3).then(e$6=>{f$3=!1,p$5=!0,l$1=e$6,t$2()},t$3=>{f$3=!1,d$2=!0,e$5(t$3)})})),await Promise.race(v$1),_$2)throw Error(`WebAssembly backend initializing failed due to timeout: ${e$4}ms`)},e$3.getInstance=()=>{if(p$5&&l$1)return l$1;throw Error(`WebAssembly is not initialized yet.`)},e$3.dispose=()=>{var t$1;!p$5||f$3||d$2||(f$3=!0,(t$1=l$1.PThread)==null||t$1.terminateAllThreads(),l$1=void 0,f$3=!1,p$5=!1,d$2=!0)}},9710:(t,e$3,n$2)=>{"use strict";n$2.d(e$3,{Z:()=>o$1});var r$2=n$2(477),i$1=n$2.n(r$2);function o$1(){return i$1()('/*!\n* ONNX Runtime Web v1.14.0\n* Copyright (c) Microsoft Corporation. All rights reserved.\n* Licensed under the MIT License.\n*/\n(()=>{var t={474:(t,e,n)=>{var _scriptDir,r=(_scriptDir=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){function e(){return j.buffer!=D&&N(j.buffer),P}function r(){return j.buffer!=D&&N(j.buffer),U}function a(){return j.buffer!=D&&N(j.buffer),F}function i(){return j.buffer!=D&&N(j.buffer),I}function o(){return j.buffer!=D&&N(j.buffer),W}var u,c,s;t=t||{},u||(u=void 0!==t?t:{}),u.ready=new Promise((function(t,e){c=t,s=e}));var l,f,p,h,d,y,b=Object.assign({},u),m="./this.program",g=(t,e)=>{throw e},v="object"==typeof window,w="function"==typeof importScripts,_="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,O=u.ENVIRONMENT_IS_PTHREAD||!1,A="";function S(t){return u.locateFile?u.locateFile(t,A):A+t}if(_){let e;A=w?n(908).dirname(A)+"/":"//",y=()=>{d||(h=n(384),d=n(908))},l=function(t,e){return y(),t=d.normalize(t),h.readFileSync(t,e?void 0:"utf8")},p=t=>((t=l(t,!0)).buffer||(t=new Uint8Array(t)),t),f=(t,e,n)=>{y(),t=d.normalize(t),h.readFile(t,(function(t,r){t?n(t):e(r.buffer)}))},1{if(Q())throw process.exitCode=t,e;e instanceof ct||x("exiting due to exception: "+e),process.exit(t)},u.inspect=function(){return"[Emscripten Module object]"};try{e=n(925)}catch(t){throw console.error(\'The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?\'),t}n.g.Worker=e.Worker}else(v||w)&&(w?A=self.location.href:"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),_scriptDir&&(A=_scriptDir),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",_||(l=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},w&&(p=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),f=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)}));_&&"undefined"==typeof performance&&(n.g.performance=n(953).performance);var T=console.log.bind(console),E=console.warn.bind(console);_&&(y(),T=t=>h.writeSync(1,t+"\\n"),E=t=>h.writeSync(2,t+"\\n"));var M,C=u.print||T,x=u.printErr||E;Object.assign(u,b),b=null,u.thisProgram&&(m=u.thisProgram),u.quit&&(g=u.quit),u.wasmBinary&&(M=u.wasmBinary);var R=u.noExitRuntime||!1;"object"!=typeof WebAssembly&&at("no native wasm support detected");var j,k,D,P,U,F,I,W,H=!1,L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function z(t,e,n){var r=(e>>>=0)+n;for(n=e;t[n]&&!(n>=r);)++n;if(16(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&t[e++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function Y(t,e){return(t>>>=0)?z(r(),t,e):""}function B(t,e,n,r){if(!(0>>=0;r=n+r-1;for(var i=0;i=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(n>=r)break;e[n++>>>0]=o}else{if(2047>=o){if(n+1>=r)break;e[n++>>>0]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;e[n++>>>0]=224|o>>12}else{if(n+3>=r)break;e[n++>>>0]=240|o>>18,e[n++>>>0]=128|o>>12&63}e[n++>>>0]=128|o>>6&63}e[n++>>>0]=128|63&o}}return e[n>>>0]=0,n-a}function G(t){for(var e=0,n=0;n=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++n):e+=3}return e}function N(t){D=t,u.HEAP8=P=new Int8Array(t),u.HEAP16=new Int16Array(t),u.HEAP32=F=new Int32Array(t),u.HEAPU8=U=new Uint8Array(t),u.HEAPU16=new Uint16Array(t),u.HEAPU32=I=new Uint32Array(t),u.HEAPF32=new Float32Array(t),u.HEAPF64=W=new Float64Array(t)}O&&(D=u.buffer);var V=u.INITIAL_MEMORY||16777216;if(O)j=u.wasmMemory,D=u.buffer;else if(u.wasmMemory)j=u.wasmMemory;else if(!((j=new WebAssembly.Memory({initial:V/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw x("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),_&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");j&&(D=j.buffer),V=D.byteLength,N(D);var $,q=[],X=[],J=[],Z=[];function Q(){return R||!1}function K(){var t=u.preRun.shift();q.unshift(t)}var tt,et=0,nt=null,rt=null;function at(t){throw O?postMessage({cmd:"onAbort",arg:t}):u.onAbort&&u.onAbort(t),x(t="Aborted("+t+")"),H=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),s(t),t}function it(){return tt.startsWith("data:application/octet-stream;base64,")}function ot(){var t=tt;try{if(t==tt&&M)return new Uint8Array(M);if(p)return p(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}tt="ort-wasm-threaded.wasm",it()||(tt=S(tt));var ut={};function ct(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function st(t){(t=ht.Vb[t])||at(),ht.mc(t)}function lt(t){var e=ht.Cc();if(!e)return 6;ht.ac.push(e),ht.Vb[t.Ub]=e,e.Ub=t.Ub;var n={cmd:"run",start_routine:t.Ic,arg:t.zc,pthread_ptr:t.Ub};return e.$b=()=>{n.time=performance.now(),e.postMessage(n,t.Nc)},e.loaded&&(e.$b(),delete e.$b),0}function ft(t){if(O)return $t(1,1,t);Q()||(ht.oc(),u.onExit&&u.onExit(t),H=!0),g(t,new ct(t))}function pt(t,e){if(!e&&O)throw bt(t),"unwind";Q()||O||(me(),dt(J),be(0),re[1].length&&ae(1,10),re[2].length&&ae(2,10),ht.oc()),ft(t)}var ht={Yb:[],ac:[],qc:[],Vb:{},fc:function(){O&&ht.Ec()},Pc:function(){},Ec:function(){ht.receiveObjectTransfer=ht.Gc,ht.threadInitTLS=ht.pc,ht.setExitStatus=ht.nc,R=!1},nc:function(){},oc:function(){for(var t of Object.values(ht.Vb))ht.mc(t);for(t of ht.Yb)t.terminate();ht.Yb=[]},mc:function(t){var e=t.Ub;delete ht.Vb[e],ht.Yb.push(t),ht.ac.splice(ht.ac.indexOf(t),1),t.Ub=0,Oe(e)},Gc:function(){},pc:function(){ht.qc.forEach((t=>t()))},Fc:function(t,e){t.onmessage=n=>{var r=(n=n.data).cmd;if(t.Ub&&(ht.Bc=t.Ub),n.targetThread&&n.targetThread!=he()){var a=ht.Vb[n.Qc];a?a.postMessage(n,n.transferList):x(\'Internal error! Worker sent a message "\'+r+\'" to target pthread \'+n.targetThread+", but that thread no longer exists!")}else"processProxyingQueue"===r?zt(n.queue):"spawnThread"===r?lt(n):"cleanupThread"===r?st(n.thread):"killThread"===r?(n=n.thread,r=ht.Vb[n],delete ht.Vb[n],r.terminate(),Oe(n),ht.ac.splice(ht.ac.indexOf(r),1),r.Ub=0):"cancelThread"===r?ht.Vb[n.thread].postMessage({cmd:"cancel"}):"loaded"===r?(t.loaded=!0,e&&e(t),t.$b&&(t.$b(),delete t.$b)):"print"===r?C("Thread "+n.threadId+": "+n.text):"printErr"===r?x("Thread "+n.threadId+": "+n.text):"alert"===r?alert("Thread "+n.threadId+": "+n.text):"setimmediate"===n.target?t.postMessage(n):"onAbort"===r?u.onAbort&&u.onAbort(n.arg):r&&x("worker sent an unknown command "+r);ht.Bc=void 0},t.onerror=t=>{throw x("worker sent an error! "+t.filename+":"+t.lineno+": "+t.message),t},_&&(t.on("message",(function(e){t.onmessage({data:e})})),t.on("error",(function(e){t.onerror(e)})),t.on("detachedExit",(function(){}))),t.postMessage({cmd:"load",urlOrBlob:u.mainScriptUrlOrBlob||_scriptDir,wasmMemory:j,wasmModule:k})},yc:function(){var t=S("ort-wasm-threaded.worker.js");ht.Yb.push(new Worker(t))},Cc:function(){return 0==ht.Yb.length&&(ht.yc(),ht.Fc(ht.Yb[0])),ht.Yb.pop()}};function dt(t){for(;0>2>>>0];t=a()[t+48>>2>>>0],Te(e,e-t),Me(e)};var mt=[];function gt(t){var e=mt[t];return e||(t>=mt.length&&(mt.length=t+1),mt[t]=e=$.get(t)),e}u.invokeEntryPoint=function(t,e){t=gt(t)(e),Q()?ht.nc(t):Ae(t)};var vt,wt,_t=[],Ot=0,At=0;function St(t){this.Zb=t,this.Sb=t-24,this.xc=function(t){i()[this.Sb+4>>2>>>0]=t},this.bc=function(){return i()[this.Sb+4>>2>>>0]},this.wc=function(t){i()[this.Sb+8>>2>>>0]=t},this.Dc=function(){return i()[this.Sb+8>>2>>>0]},this.rc=function(){a()[this.Sb>>2>>>0]=0},this.hc=function(t){t=t?1:0,e()[this.Sb+12>>0>>>0]=t},this.uc=function(){return 0!=e()[this.Sb+12>>0>>>0]},this.ic=function(t){t=t?1:0,e()[this.Sb+13>>0>>>0]=t},this.kc=function(){return 0!=e()[this.Sb+13>>0>>>0]},this.fc=function(t,e){this.cc(0),this.xc(t),this.wc(e),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(a(),this.Sb>>2,1)},this.Hc=function(){return 1===Atomics.sub(a(),this.Sb>>2,1)},this.cc=function(t){i()[this.Sb+16>>2>>>0]=t},this.tc=function(){return i()[this.Sb+16>>2>>>0]},this.vc=function(){if(Re(this.bc()))return i()[this.Zb>>2>>>0];var t=this.tc();return 0!==t?t:this.Zb}}function Tt(t){return ye(new St(t).Sb)}function Et(t,e,n,r){return O?$t(3,1,t,e,n,r):Mt(t,e,n,r)}function Mt(t,e,n,r){if("undefined"==typeof SharedArrayBuffer)return x("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];return O&&0===a.length?Et(t,e,n,r):(t={Ic:n,Ub:t,zc:r,Nc:a},O?(t.Oc="spawnThread",postMessage(t,a),0):lt(t))}function Ct(t,e,n){return O?$t(4,1,t,e,n):0}function xt(t,e){if(O)return $t(5,1,t,e)}function Rt(t,e){if(O)return $t(6,1,t,e)}function jt(t,e,n){if(O)return $t(7,1,t,e,n)}function kt(t,e,n){return O?$t(8,1,t,e,n):0}function Dt(t,e){if(O)return $t(9,1,t,e)}function Pt(t,e,n){if(O)return $t(10,1,t,e,n)}function Ut(t,e,n,r){if(O)return $t(11,1,t,e,n,r)}function Ft(t,e,n,r){if(O)return $t(12,1,t,e,n,r)}function It(t,e,n,r){if(O)return $t(13,1,t,e,n,r)}function Wt(t){if(O)return $t(14,1,t)}function Ht(t,e){if(O)return $t(15,1,t,e)}function Lt(t,e,n){if(O)return $t(16,1,t,e,n)}function zt(t){Atomics.store(a(),t>>2,1),he()&&_e(t),Atomics.compareExchange(a(),t>>2,1,0)}function Yt(t){return i()[t>>>2]+4294967296*a()[t+4>>>2]}function Bt(t,e,n,r,a,i){return O?$t(17,1,t,e,n,r,a,i):-52}function Gt(t,e,n,r,a,i){if(O)return $t(18,1,t,e,n,r,a,i)}function Nt(t){var n=G(t)+1,r=de(n);return r&&B(t,e(),r,n),r}function Vt(t,e,n){function r(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:"GMT"}if(O)return $t(19,1,t,e,n);var o=(new Date).getFullYear(),u=new Date(o,0,1),c=new Date(o,6,1);o=u.getTimezoneOffset();var s=c.getTimezoneOffset(),l=Math.max(o,s);a()[t>>2>>>0]=60*l,a()[e>>2>>>0]=Number(o!=s),t=r(u),e=r(c),t=Nt(t),e=Nt(e),s>2>>>0]=t,i()[n+4>>2>>>0]=e):(i()[n>>2>>>0]=e,i()[n+4>>2>>>0]=t)}function $t(t,e){var n=arguments.length-2,r=arguments;return yt((()=>{for(var a=Ce(8*n),i=a>>3,u=0;u>>0]=c}return we(t,n,a,e)}))}u.executeNotifiedProxyingQueue=zt,wt=_?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:O?()=>performance.now()-u.__performance_now_clock_drift:()=>performance.now();var qt,Xt=[],Jt={};function Zt(){if(!qt){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:m||"./this.program"};for(t in Jt)void 0===Jt[t]?delete e[t]:e[t]=Jt[t];var n=[];for(t in e)n.push(t+"="+e[t]);qt=n}return qt}function Qt(t,n){if(O)return $t(20,1,t,n);var r=0;return Zt().forEach((function(a,o){var u=n+r;for(o=i()[t+4*o>>2>>>0]=u,u=0;u>0>>>0]=a.charCodeAt(u);e()[o>>0>>>0]=0,r+=a.length+1})),0}function Kt(t,e){if(O)return $t(21,1,t,e);var n=Zt();i()[t>>2>>>0]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),i()[e>>2>>>0]=r,0}function te(t){return O?$t(22,1,t):52}function ee(t,e,n,r){return O?$t(23,1,t,e,n,r):52}function ne(t,e,n,r,a){return O?$t(24,1,t,e,n,r,a):70}var re=[null,[],[]];function ae(t,e){var n=re[t];0===e||10===e?((1===t?C:x)(z(n,0)),n.length=0):n.push(e)}function ie(t,e,n,a){if(O)return $t(25,1,t,e,n,a);for(var o=0,u=0;u>2>>>0],s=i()[e+4>>2>>>0];e+=8;for(var l=0;l>>0]);o+=s}return i()[a>>2>>>0]=o,0}var oe=0;function ue(t){return 0==t%4&&(0!=t%100||0==t%400)}var ce=[31,29,31,30,31,30,31,31,30,31,30,31],se=[31,28,31,30,31,30,31,31,30,31,30,31];function le(t,n,r,i){function o(t,e,n){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0r-t.getDate())){t.setDate(t.getDate()+e);break}e-=r-t.getDate()+1,t.setDate(1),11>n?t.setMonth(n+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return n=new Date(t.getFullYear()+1,0,4),e=s(new Date(t.getFullYear(),0,4)),n=s(n),0>=c(e,t)?0>=c(n,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var f=a()[i+40>>2>>>0];for(var p in i={Lc:a()[i>>2>>>0],Kc:a()[i+4>>2>>>0],dc:a()[i+8>>2>>>0],jc:a()[i+12>>2>>>0],ec:a()[i+16>>2>>>0],Xb:a()[i+20>>2>>>0],Tb:a()[i+24>>2>>>0],Wb:a()[i+28>>2>>>0],Rc:a()[i+32>>2>>>0],Jc:a()[i+36>>2>>>0],Mc:f?Y(f):""},r=Y(r),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})r=r.replace(new RegExp(p,"g"),f[p]);var h="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d="January February March April May June July August September October November December".split(" ");for(p in f={"%a":function(t){return h[t.Tb].substring(0,3)},"%A":function(t){return h[t.Tb]},"%b":function(t){return d[t.ec].substring(0,3)},"%B":function(t){return d[t.ec]},"%C":function(t){return u((t.Xb+1900)/100|0,2)},"%d":function(t){return u(t.jc,2)},"%e":function(t){return o(t.jc,2," ")},"%g":function(t){return l(t).toString().substring(2)},"%G":function(t){return l(t)},"%H":function(t){return u(t.dc,2)},"%I":function(t){return 0==(t=t.dc)?t=12:12t.dc?"AM":"PM"},"%S":function(t){return u(t.Lc,2)},"%t":function(){return"\\t"},"%u":function(t){return t.Tb||7},"%U":function(t){return u(Math.floor((t.Wb+7-t.Tb)/7),2)},"%V":function(t){var e=Math.floor((t.Wb+7-(t.Tb+6)%7)/7);if(2>=(t.Tb+371-t.Wb-2)%7&&e++,e)53==e&&(4==(n=(t.Tb+371-t.Wb)%7)||3==n&&ue(t.Xb)||(e=1));else{e=52;var n=(t.Tb+7-t.Wb-1)%7;(4==n||5==n&&ue(t.Xb%400-1))&&e++}return u(e,2)},"%w":function(t){return t.Tb},"%W":function(t){return u(Math.floor((t.Wb+7-(t.Tb+6)%7)/7),2)},"%y":function(t){return(t.Xb+1900).toString().substring(2)},"%Y":function(t){return t.Xb+1900},"%z":function(t){var e=0<=(t=t.Jc);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.Mc},"%%":function(){return"%"}},r=r.replace(/%%/g,"\\0\\0"),f)r.includes(p)&&(r=r.replace(new RegExp(p,"g"),f[p](i)));return p=function(t){var e=Array(G(t)+1);return B(t,e,0,e.length),e}(r=r.replace(/\\0\\0/g,"%")),p.length>n?0:(function(t,n){e().set(t,n>>>0)}(p,t),p.length-1)}ht.fc();var fe=[null,ft,bt,Et,Ct,xt,Rt,jt,kt,Dt,Pt,Ut,Ft,It,Wt,Ht,Lt,Bt,Gt,Vt,Qt,Kt,te,ee,ne,ie],pe={b:function(t){return de(t+24)+24},n:function(t){return(t=new St(t)).uc()||(t.hc(!0),Ot--),t.ic(!1),_t.push(t),t.sc(),t.vc()},ma:function(t){throw x("Unexpected exception thrown, this is not properly supported - aborting"),H=!0,t},x:function(){Se(0);var t=_t.pop();if(t.Hc()&&!t.kc()){var e=t.Dc();e&>(e)(t.Zb),Tt(t.Zb)}At=0},e:function(){var t=At;if(!t)return oe=0;var e=new St(t);e.cc(t);var n=e.bc();if(!n)return oe=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;azt(r)));else if(O)postMessage({targetThread:t,cmd:"processProxyingQueue",queue:r});else{if(!(t=ht.Vb[t]))return;t.postMessage({cmd:"processProxyingQueue",queue:r})}return 1},Ea:function(){return-1},Pa:function(t,e){t=new Date(1e3*Yt(t)),a()[e>>2>>>0]=t.getUTCSeconds(),a()[e+4>>2>>>0]=t.getUTCMinutes(),a()[e+8>>2>>>0]=t.getUTCHours(),a()[e+12>>2>>>0]=t.getUTCDate(),a()[e+16>>2>>>0]=t.getUTCMonth(),a()[e+20>>2>>>0]=t.getUTCFullYear()-1900,a()[e+24>>2>>>0]=t.getUTCDay(),t=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,a()[e+28>>2>>>0]=t},Qa:function(t,e){t=new Date(1e3*Yt(t)),a()[e>>2>>>0]=t.getSeconds(),a()[e+4>>2>>>0]=t.getMinutes(),a()[e+8>>2>>>0]=t.getHours(),a()[e+12>>2>>>0]=t.getDate(),a()[e+16>>2>>>0]=t.getMonth(),a()[e+20>>2>>>0]=t.getFullYear()-1900,a()[e+24>>2>>>0]=t.getDay();var n=new Date(t.getFullYear(),0,1),r=(t.getTime()-n.getTime())/864e5|0;a()[e+28>>2>>>0]=r,a()[e+36>>2>>>0]=-60*t.getTimezoneOffset(),r=new Date(t.getFullYear(),6,1).getTimezoneOffset(),t=0|(r!=(n=n.getTimezoneOffset())&&t.getTimezoneOffset()==Math.min(n,r)),a()[e+32>>2>>>0]=t},Ra:function(t){var e=new Date(a()[t+20>>2>>>0]+1900,a()[t+16>>2>>>0],a()[t+12>>2>>>0],a()[t+8>>2>>>0],a()[t+4>>2>>>0],a()[t>>2>>>0],0),n=a()[t+32>>2>>>0],r=e.getTimezoneOffset(),i=new Date(e.getFullYear(),0,1),o=new Date(e.getFullYear(),6,1).getTimezoneOffset(),u=i.getTimezoneOffset(),c=Math.min(u,o);return 0>n?a()[t+32>>2>>>0]=Number(o!=u&&c==r):0>2>>>0]=e.getDay(),n=(e.getTime()-i.getTime())/864e5|0,a()[t+28>>2>>>0]=n,a()[t>>2>>>0]=e.getSeconds(),a()[t+4>>2>>>0]=e.getMinutes(),a()[t+8>>2>>>0]=e.getHours(),a()[t+12>>2>>>0]=e.getDate(),a()[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},Aa:Bt,Ba:Gt,Sa:function t(e,n,r){t.Ac||(t.Ac=!0,Vt(e,n,r))},y:function(){at("")},U:function(){if(!_&&!w){var t="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";vt||(vt={}),vt[t]||(vt[t]=1,_&&(t="warning: "+t),x(t))}},ra:function(){return 4294901760},B:wt,Ia:function(t,e,n){r().copyWithin(t>>>0,e>>>0,e+n>>>0)},F:function(){return _?n(993).cpus().length:navigator.hardwareConcurrency},Da:function(t,e,n){Xt.length=e,n>>=3;for(var r=0;r>>0];return(0>t?ut[-t-1]:fe[t]).apply(null,Xt)},qa:function(t){var e=r().length;if((t>>>=0)<=e||4294901760=n;n*=2){var a=e*(1+.2/n);a=Math.min(a,t+100663296);var i=Math;a=Math.max(t,a),i=i.min.call(i,4294901760,a+(65536-a%65536)%65536);t:{try{j.grow(i-D.byteLength+65535>>>16),N(j.buffer);var o=1;break t}catch(t){}o=void 0}if(o)return!0}return!1},Na:function(){throw"unwind"},Ga:Qt,Ha:Kt,J:pt,I:te,S:ee,ga:ne,R:ie,d:function(){return oe},na:function t(r,a){t.lc||(t.lc=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(_)try{var e=n(Object(function(){var t=new Error("Cannot find module \'crypto\'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>at("randomDevice")}());for(var i=0;i>0>>>0]=t.lc();return 0},ia:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},ja:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},K:function(t){var e=Ee();try{return gt(t)()}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},f:function(t,e){var n=Ee();try{return gt(t)(e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},P:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},Q:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},k:function(t,e,n){var r=Ee();try{return gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},p:function(t,e,n,r){var a=Ee();try{return gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},q:function(t,e,n,r,a){var i=Ee();try{return gt(t)(e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},N:function(t,e,n,r,a,i){var o=Ee();try{return gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},s:function(t,e,n,r,a,i){var o=Ee();try{return gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},w:function(t,e,n,r,a,i,o){var u=Ee();try{return gt(t)(e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},L:function(t,e,n,r,a,i,o,u){var c=Ee();try{return gt(t)(e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},E:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=Ee();try{return gt(t)(e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(Me(p),t!==t+0)throw t;Se(1,0)}},aa:function(t,e,n,r,a,i,o,u){var c=Ee();try{return He(t,e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},_:function(t,e,n,r,a,i,o){var u=Ee();try{return ke(t,e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},Z:function(t,e,n,r,a){var i=Ee();try{return Le(t,e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},ca:function(t,e,n,r){var a=Ee();try{return Ie(t,e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},$:function(t){var e=Ee();try{return je(t)}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},ba:function(t,e){var n=Ee();try{return We(t,e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},Y:function(t,e,n){var r=Ee();try{return De(t,e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},g:function(t){var e=Ee();try{gt(t)()}catch(t){if(Me(e),t!==t+0)throw t;Se(1,0)}},r:function(t,e){var n=Ee();try{gt(t)(e)}catch(t){if(Me(n),t!==t+0)throw t;Se(1,0)}},i:function(t,e,n){var r=Ee();try{gt(t)(e,n)}catch(t){if(Me(r),t!==t+0)throw t;Se(1,0)}},ha:function(t,e,n,r){var a=Ee();try{gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},m:function(t,e,n,r){var a=Ee();try{gt(t)(e,n,r)}catch(t){if(Me(a),t!==t+0)throw t;Se(1,0)}},v:function(t,e,n,r,a){var i=Ee();try{gt(t)(e,n,r,a)}catch(t){if(Me(i),t!==t+0)throw t;Se(1,0)}},u:function(t,e,n,r,a,i){var o=Ee();try{gt(t)(e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},O:function(t,e,n,r,a,i,o){var u=Ee();try{gt(t)(e,n,r,a,i,o)}catch(t){if(Me(u),t!==t+0)throw t;Se(1,0)}},A:function(t,e,n,r,a,i,o,u){var c=Ee();try{gt(t)(e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},ka:function(t,e,n,r,a,i,o,u,c){var s=Ee();try{gt(t)(e,n,r,a,i,o,u,c)}catch(t){if(Me(s),t!==t+0)throw t;Se(1,0)}},C:function(t,e,n,r,a,i,o,u,c,s,l){var f=Ee();try{gt(t)(e,n,r,a,i,o,u,c,s,l)}catch(t){if(Me(f),t!==t+0)throw t;Se(1,0)}},D:function(t,e,n,r,a,i,o,u,c,s,l,f,p,h,d,y){var b=Ee();try{gt(t)(e,n,r,a,i,o,u,c,s,l,f,p,h,d,y)}catch(t){if(Me(b),t!==t+0)throw t;Se(1,0)}},fa:function(t,e,n,r,a,i,o,u){var c=Ee();try{Pe(t,e,n,r,a,i,o,u)}catch(t){if(Me(c),t!==t+0)throw t;Se(1,0)}},da:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=Ee();try{Fe(t,e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(Me(p),t!==t+0)throw t;Se(1,0)}},ea:function(t,e,n,r,a,i){var o=Ee();try{Ue(t,e,n,r,a,i)}catch(t){if(Me(o),t!==t+0)throw t;Se(1,0)}},o:function(t){return t},a:j||u.wasmMemory,G:function(t){oe=t},la:le,z:function(t,e,n,r){return le(t,e,n,r)}};!function(){function t(t,e){u.asm=t.exports,ht.qc.push(u.asm.sb),$=u.asm.ub,X.unshift(u.asm.Va),k=e,O||(et--,u.monitorRunDependencies&&u.monitorRunDependencies(et),0==et&&(null!==nt&&(clearInterval(nt),nt=null),rt&&(t=rt,rt=null,t())))}function e(e){t(e.instance,e.module)}function n(t){return function(){if(!M&&(v||w)){if("function"==typeof fetch&&!tt.startsWith("file://"))return fetch(tt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at \'"+tt+"\'";return t.arrayBuffer()})).catch((function(){return ot()}));if(f)return new Promise((function(t,e){f(tt,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return ot()}))}().then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(t,(function(t){x("failed to asynchronously prepare wasm: "+t),at(t)}))}var r={a:pe};if(O||(et++,u.monitorRunDependencies&&u.monitorRunDependencies(et)),u.instantiateWasm)try{return u.instantiateWasm(r,t)}catch(t){return x("Module.instantiateWasm callback failed with error: "+t),!1}(M||"function"!=typeof WebAssembly.instantiateStreaming||it()||tt.startsWith("file://")||_||"function"!=typeof fetch?n(e):fetch(tt,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,r).then(e,(function(t){return x("wasm streaming compile failed: "+t),x("falling back to ArrayBuffer instantiation"),n(e)}))}))).catch(s)}(),u.___wasm_call_ctors=function(){return(u.___wasm_call_ctors=u.asm.Va).apply(null,arguments)},u._OrtInit=function(){return(u._OrtInit=u.asm.Wa).apply(null,arguments)},u._OrtCreateSessionOptions=function(){return(u._OrtCreateSessionOptions=u.asm.Xa).apply(null,arguments)},u._OrtAppendExecutionProvider=function(){return(u._OrtAppendExecutionProvider=u.asm.Ya).apply(null,arguments)},u._OrtAddSessionConfigEntry=function(){return(u._OrtAddSessionConfigEntry=u.asm.Za).apply(null,arguments)},u._OrtReleaseSessionOptions=function(){return(u._OrtReleaseSessionOptions=u.asm._a).apply(null,arguments)},u._OrtCreateSession=function(){return(u._OrtCreateSession=u.asm.$a).apply(null,arguments)},u._OrtReleaseSession=function(){return(u._OrtReleaseSession=u.asm.ab).apply(null,arguments)},u._OrtGetInputCount=function(){return(u._OrtGetInputCount=u.asm.bb).apply(null,arguments)},u._OrtGetOutputCount=function(){return(u._OrtGetOutputCount=u.asm.cb).apply(null,arguments)},u._OrtGetInputName=function(){return(u._OrtGetInputName=u.asm.db).apply(null,arguments)},u._OrtGetOutputName=function(){return(u._OrtGetOutputName=u.asm.eb).apply(null,arguments)},u._OrtFree=function(){return(u._OrtFree=u.asm.fb).apply(null,arguments)},u._OrtCreateTensor=function(){return(u._OrtCreateTensor=u.asm.gb).apply(null,arguments)},u._OrtGetTensorData=function(){return(u._OrtGetTensorData=u.asm.hb).apply(null,arguments)},u._OrtReleaseTensor=function(){return(u._OrtReleaseTensor=u.asm.ib).apply(null,arguments)},u._OrtCreateRunOptions=function(){return(u._OrtCreateRunOptions=u.asm.jb).apply(null,arguments)},u._OrtAddRunConfigEntry=function(){return(u._OrtAddRunConfigEntry=u.asm.kb).apply(null,arguments)},u._OrtReleaseRunOptions=function(){return(u._OrtReleaseRunOptions=u.asm.lb).apply(null,arguments)},u._OrtRun=function(){return(u._OrtRun=u.asm.mb).apply(null,arguments)},u._OrtEndProfiling=function(){return(u._OrtEndProfiling=u.asm.nb).apply(null,arguments)};var he=u._pthread_self=function(){return(he=u._pthread_self=u.asm.ob).apply(null,arguments)},de=u._malloc=function(){return(de=u._malloc=u.asm.pb).apply(null,arguments)},ye=u._free=function(){return(ye=u._free=u.asm.qb).apply(null,arguments)},be=u._fflush=function(){return(be=u._fflush=u.asm.rb).apply(null,arguments)};u.__emscripten_tls_init=function(){return(u.__emscripten_tls_init=u.asm.sb).apply(null,arguments)};var me=u.___funcs_on_exit=function(){return(me=u.___funcs_on_exit=u.asm.tb).apply(null,arguments)},ge=u.__emscripten_thread_init=function(){return(ge=u.__emscripten_thread_init=u.asm.vb).apply(null,arguments)};u.__emscripten_thread_crashed=function(){return(u.__emscripten_thread_crashed=u.asm.wb).apply(null,arguments)};var ve,we=u._emscripten_run_in_main_runtime_thread_js=function(){return(we=u._emscripten_run_in_main_runtime_thread_js=u.asm.xb).apply(null,arguments)},_e=u.__emscripten_proxy_execute_task_queue=function(){return(_e=u.__emscripten_proxy_execute_task_queue=u.asm.yb).apply(null,arguments)},Oe=u.__emscripten_thread_free_data=function(){return(Oe=u.__emscripten_thread_free_data=u.asm.zb).apply(null,arguments)},Ae=u.__emscripten_thread_exit=function(){return(Ae=u.__emscripten_thread_exit=u.asm.Ab).apply(null,arguments)},Se=u._setThrew=function(){return(Se=u._setThrew=u.asm.Bb).apply(null,arguments)},Te=u._emscripten_stack_set_limits=function(){return(Te=u._emscripten_stack_set_limits=u.asm.Cb).apply(null,arguments)},Ee=u.stackSave=function(){return(Ee=u.stackSave=u.asm.Db).apply(null,arguments)},Me=u.stackRestore=function(){return(Me=u.stackRestore=u.asm.Eb).apply(null,arguments)},Ce=u.stackAlloc=function(){return(Ce=u.stackAlloc=u.asm.Fb).apply(null,arguments)},xe=u.___cxa_can_catch=function(){return(xe=u.___cxa_can_catch=u.asm.Gb).apply(null,arguments)},Re=u.___cxa_is_pointer_type=function(){return(Re=u.___cxa_is_pointer_type=u.asm.Hb).apply(null,arguments)},je=u.dynCall_j=function(){return(je=u.dynCall_j=u.asm.Ib).apply(null,arguments)},ke=u.dynCall_iiiiij=function(){return(ke=u.dynCall_iiiiij=u.asm.Jb).apply(null,arguments)},De=u.dynCall_jii=function(){return(De=u.dynCall_jii=u.asm.Kb).apply(null,arguments)},Pe=u.dynCall_viiiiij=function(){return(Pe=u.dynCall_viiiiij=u.asm.Lb).apply(null,arguments)},Ue=u.dynCall_vjji=function(){return(Ue=u.dynCall_vjji=u.asm.Mb).apply(null,arguments)},Fe=u.dynCall_viiijjjii=function(){return(Fe=u.dynCall_viiijjjii=u.asm.Nb).apply(null,arguments)},Ie=u.dynCall_iij=function(){return(Ie=u.dynCall_iij=u.asm.Ob).apply(null,arguments)},We=u.dynCall_ji=function(){return(We=u.dynCall_ji=u.asm.Pb).apply(null,arguments)},He=u.dynCall_iiiiiij=function(){return(He=u.dynCall_iiiiiij=u.asm.Qb).apply(null,arguments)},Le=u.dynCall_iiij=function(){return(Le=u.dynCall_iiij=u.asm.Rb).apply(null,arguments)};function ze(){function t(){if(!ve&&(ve=!0,u.calledRun=!0,!H)&&(O||dt(X),c(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),!O)){if(u.postRun)for("function"==typeof u.postRun&&(u.postRun=[u.postRun]);u.postRun.length;){var t=u.postRun.shift();Z.unshift(t)}dt(Z)}}if(!(0{var _scriptDir,r=(_scriptDir=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,r,a;t=t||{},e||(e=void 0!==t?t:{}),e.ready=new Promise((function(t,e){r=t,a=e}));var i,o,u,c,s,l,f=Object.assign({},e),p="./this.program",h=(t,e)=>{throw e},d="object"==typeof window,y="function"==typeof importScripts,b="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,m="";b?(m=y?n(908).dirname(m)+"/":"//",l=()=>{s||(c=n(384),s=n(908))},i=function(t,e){return l(),t=s.normalize(t),c.readFileSync(t,e?void 0:"utf8")},u=t=>((t=i(t,!0)).buffer||(t=new Uint8Array(t)),t),o=(t,e,n)=>{l(),t=s.normalize(t),c.readFile(t,(function(t,r){t?n(t):e(r.buffer)}))},1{if(_||0{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},y&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),o=(t,e,n)=>{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)});var g,v=e.print||console.log.bind(console),w=e.printErr||console.warn.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(p=e.thisProgram),e.quit&&(h=e.quit),e.wasmBinary&&(g=e.wasmBinary);var _=e.noExitRuntime||!1;"object"!=typeof WebAssembly&&V("no native wasm support detected");var O,A,S,T,E,M,C=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function R(t,e,n){var r=(e>>>=0)+n;for(n=e;t[n]&&!(n>=r);)++n;if(16(a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&t[e++])?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else r+=String.fromCharCode(a)}return r}function j(t,e){return(t>>>=0)?R(T,t,e):""}function k(t,e,n,r){if(!(0>>=0;r=n+r-1;for(var i=0;i=o&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++i)),127>=o){if(n>=r)break;e[n++>>>0]=o}else{if(2047>=o){if(n+1>=r)break;e[n++>>>0]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;e[n++>>>0]=224|o>>12}else{if(n+3>=r)break;e[n++>>>0]=240|o>>18,e[n++>>>0]=128|o>>12&63}e[n++>>>0]=128|o>>6&63}e[n++>>>0]=128|63&o}}return e[n>>>0]=0,n-a}function D(t){for(var e=0,n=0;n=r?e++:2047>=r?e+=2:55296<=r&&57343>=r?(e+=4,++n):e+=3}return e}function P(){var t=O.buffer;A=t,e.HEAP8=S=new Int8Array(t),e.HEAP16=new Int16Array(t),e.HEAP32=E=new Int32Array(t),e.HEAPU8=T=new Uint8Array(t),e.HEAPU16=new Uint16Array(t),e.HEAPU32=M=new Uint32Array(t),e.HEAPF32=new Float32Array(t),e.HEAPF64=new Float64Array(t)}var U,F=[],I=[],W=[],H=[],L=0;function z(){var t=e.preRun.shift();F.unshift(t)}var Y,B=0,G=null,N=null;function V(t){throw e.onAbort&&e.onAbort(t),w(t="Aborted("+t+")"),C=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),a(t),t}function $(){return Y.startsWith("data:application/octet-stream;base64,")}if(Y="ort-wasm.wasm",!$()){var q=Y;Y=e.locateFile?e.locateFile(q,m):m+q}function X(){var t=Y;try{if(t==Y&&g)return new Uint8Array(g);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){V(t)}}function J(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Z(t){for(;0>2>>>0]=t},this.Eb=function(){return M[this.zb+4>>2>>>0]},this.Sb=function(t){M[this.zb+8>>2>>>0]=t},this.Wb=function(){return M[this.zb+8>>2>>>0]},this.Tb=function(){E[this.zb>>2>>>0]=0},this.Ib=function(t){S[this.zb+12>>0>>>0]=t?1:0},this.Pb=function(){return 0!=S[this.zb+12>>0>>>0]},this.Jb=function(t){S[this.zb+13>>0>>>0]=t?1:0},this.Lb=function(){return 0!=S[this.zb+13>>0>>>0]},this.Rb=function(t,e){this.Fb(0),this.Ub(t),this.Sb(e),this.Tb(),this.Ib(!1),this.Jb(!1)},this.Nb=function(){E[this.zb>>2>>>0]+=1},this.Xb=function(){var t=E[this.zb>>2>>>0];return E[this.zb>>2>>>0]=t-1,1===t},this.Fb=function(t){M[this.zb+16>>2>>>0]=t},this.Ob=function(){return M[this.zb+16>>2>>>0]},this.Qb=function(){if(Mt(this.Eb()))return M[this.Db>>2>>>0];var t=this.Ob();return 0!==t?t:this.Db}}function nt(t){return vt(new et(t).zb)}var rt=[];function at(t){var e=rt[t];return e||(t>=rt.length&&(rt.length=t+1),rt[t]=e=U.get(t)),e}function it(t){var e=D(t)+1,n=gt(e);return n&&k(t,S,n,e),n}var ot={};function ut(){if(!ct){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(t in ot)void 0===ot[t]?delete e[t]:e[t]=ot[t];var n=[];for(t in e)n.push(t+"="+e[t]);ct=n}return ct}var ct,st=[null,[],[]];function lt(t,e){var n=st[t];0===e||10===e?((1===t?v:w)(R(n,0)),n.length=0):n.push(e)}var ft=0;function pt(t){return 0==t%4&&(0!=t%100||0==t%400)}var ht=[31,29,31,30,31,30,31,31,30,31,30,31],dt=[31,28,31,30,31,30,31,31,30,31,30,31];function yt(t,e,n,r){function a(t,e,n){for(t="number"==typeof t?t.toString():t||"";t.lengtht?-1:0r-t.getDate())){t.setDate(t.getDate()+e);break}e-=r-t.getDate()+1,t.setDate(1),11>n?t.setMonth(n+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return n=new Date(t.getFullYear()+1,0,4),e=u(new Date(t.getFullYear(),0,4)),n=u(n),0>=o(e,t)?0>=o(n,t)?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var s=E[r+40>>2>>>0];for(var l in r={$b:E[r>>2>>>0],Zb:E[r+4>>2>>>0],Gb:E[r+8>>2>>>0],Kb:E[r+12>>2>>>0],Hb:E[r+16>>2>>>0],Cb:E[r+20>>2>>>0],Ab:E[r+24>>2>>>0],Bb:E[r+28>>2>>>0],bc:E[r+32>>2>>>0],Yb:E[r+36>>2>>>0],ac:s?j(s):""},n=j(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(new RegExp(l,"g"),s[l]);var f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),p="January February March April May June July August September October November December".split(" ");for(l in s={"%a":function(t){return f[t.Ab].substring(0,3)},"%A":function(t){return f[t.Ab]},"%b":function(t){return p[t.Hb].substring(0,3)},"%B":function(t){return p[t.Hb]},"%C":function(t){return i((t.Cb+1900)/100|0,2)},"%d":function(t){return i(t.Kb,2)},"%e":function(t){return a(t.Kb,2," ")},"%g":function(t){return c(t).toString().substring(2)},"%G":function(t){return c(t)},"%H":function(t){return i(t.Gb,2)},"%I":function(t){return 0==(t=t.Gb)?t=12:12t.Gb?"AM":"PM"},"%S":function(t){return i(t.$b,2)},"%t":function(){return"\\t"},"%u":function(t){return t.Ab||7},"%U":function(t){return i(Math.floor((t.Bb+7-t.Ab)/7),2)},"%V":function(t){var e=Math.floor((t.Bb+7-(t.Ab+6)%7)/7);if(2>=(t.Ab+371-t.Bb-2)%7&&e++,e)53==e&&(4==(n=(t.Ab+371-t.Bb)%7)||3==n&&pt(t.Cb)||(e=1));else{e=52;var n=(t.Ab+7-t.Bb-1)%7;(4==n||5==n&&pt(t.Cb%400-1))&&e++}return i(e,2)},"%w":function(t){return t.Ab},"%W":function(t){return i(Math.floor((t.Bb+7-(t.Ab+6)%7)/7),2)},"%y":function(t){return(t.Cb+1900).toString().substring(2)},"%Y":function(t){return t.Cb+1900},"%z":function(t){var e=0<=(t=t.Yb);return t=Math.abs(t)/60,(e?"+":"-")+String("0000"+(t/60*100+t%60)).slice(-4)},"%Z":function(t){return t.ac},"%%":function(){return"%"}},n=n.replace(/%%/g,"\\0\\0"),s)n.includes(l)&&(n=n.replace(new RegExp(l,"g"),s[l](r)));return l=function(t){var e=Array(D(t)+1);return k(t,e,0,e.length),e}(n=n.replace(/\\0\\0/g,"%")),l.length>e?0:(S.set(l,t>>>0),l.length-1)}var bt={a:function(t){return gt(t+24)+24},m:function(t){return(t=new et(t)).Pb()||(t.Ib(!0),K--),t.Jb(!1),Q.push(t),t.Nb(),t.Qb()},ia:function(t){throw w("Unexpected exception thrown, this is not properly supported - aborting"),C=!0,t},w:function(){Ot(0);var t=Q.pop();if(t.Xb()&&!t.Lb()){var e=t.Wb();e&&at(e)(t.Db),nt(t.Db)}tt=0},d:function(){var t=tt;if(!t)return ft=0;var e=new et(t);e.Fb(t);var n=e.Eb();if(!n)return ft=0,t;for(var r=Array.prototype.slice.call(arguments),a=0;a>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getUTCSeconds(),E[e+4>>2>>>0]=t.getUTCMinutes(),E[e+8>>2>>>0]=t.getUTCHours(),E[e+12>>2>>>0]=t.getUTCDate(),E[e+16>>2>>>0]=t.getUTCMonth(),E[e+20>>2>>>0]=t.getUTCFullYear()-1900,E[e+24>>2>>>0]=t.getUTCDay(),E[e+28>>2>>>0]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},Ea:function(t,e){t=new Date(1e3*(M[t>>>2]+4294967296*E[t+4>>>2])),E[e>>2>>>0]=t.getSeconds(),E[e+4>>2>>>0]=t.getMinutes(),E[e+8>>2>>>0]=t.getHours(),E[e+12>>2>>>0]=t.getDate(),E[e+16>>2>>>0]=t.getMonth(),E[e+20>>2>>>0]=t.getFullYear()-1900,E[e+24>>2>>>0]=t.getDay();var n=new Date(t.getFullYear(),0,1);E[e+28>>2>>>0]=(t.getTime()-n.getTime())/864e5|0,E[e+36>>2>>>0]=-60*t.getTimezoneOffset();var r=new Date(t.getFullYear(),6,1).getTimezoneOffset();n=n.getTimezoneOffset(),E[e+32>>2>>>0]=0|(r!=n&&t.getTimezoneOffset()==Math.min(n,r))},Fa:function(t){var e=new Date(E[t+20>>2>>>0]+1900,E[t+16>>2>>>0],E[t+12>>2>>>0],E[t+8>>2>>>0],E[t+4>>2>>>0],E[t>>2>>>0],0),n=E[t+32>>2>>>0],r=e.getTimezoneOffset(),a=new Date(e.getFullYear(),0,1),i=new Date(e.getFullYear(),6,1).getTimezoneOffset(),o=a.getTimezoneOffset(),u=Math.min(o,i);return 0>n?E[t+32>>2>>>0]=Number(i!=o&&u==r):0>2>>>0]=e.getDay(),E[t+28>>2>>>0]=(e.getTime()-a.getTime())/864e5|0,E[t>>2>>>0]=e.getSeconds(),E[t+4>>2>>>0]=e.getMinutes(),E[t+8>>2>>>0]=e.getHours(),E[t+12>>2>>>0]=e.getDate(),E[t+16>>2>>>0]=e.getMonth(),e.getTime()/1e3|0},sa:function(){return-52},ta:function(){},Ga:function t(e,n,r){t.Vb||(t.Vb=!0,function(t,e,n){function r(t){return(t=t.toTimeString().match(/\\(([A-Za-z ]+)\\)$/))?t[1]:"GMT"}var a=(new Date).getFullYear(),i=new Date(a,0,1),o=new Date(a,6,1);a=i.getTimezoneOffset();var u=o.getTimezoneOffset();E[t>>2>>>0]=60*Math.max(a,u),E[e>>2>>>0]=Number(a!=u),t=r(i),e=r(o),t=it(t),e=it(e),u>2>>>0]=t,M[n+4>>2>>>0]=e):(M[n>>2>>>0]=e,M[n+4>>2>>>0]=t)}(e,n,r))},B:function(){V("")},ma:function(){return 4294901760},I:b?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now(),xa:function(t,e,n){T.copyWithin(t>>>0,e>>>0,e+n>>>0)},G:function(t){var e=T.length;if(4294901760<(t>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=e*(1+.2/n);r=Math.min(r,t+100663296);var a=Math;r=Math.max(t,r),a=a.min.call(a,4294901760,r+(65536-r%65536)%65536);t:{try{O.grow(a-A.byteLength+65535>>>16),P();var i=1;break t}catch(t){}i=void 0}if(i)return!0}return!1},va:function(t,e){var n=0;return ut().forEach((function(r,a){var i=e+n;for(a=M[t+4*a>>2>>>0]=i,i=0;i>0>>>0]=r.charCodeAt(i);S[a>>0>>>0]=0,n+=r.length+1})),0},wa:function(t,e){var n=ut();M[t>>2>>>0]=n.length;var r=0;return n.forEach((function(t){r+=t.length+1})),M[e>>2>>>0]=r,0},ba:function(t){_||0>2>>>0],u=M[e+4>>2>>>0];e+=8;for(var c=0;c>>0]);a+=u}return M[r>>2>>>0]=a,0},c:function(){return ft},ja:function t(e,r){t.Mb||(t.Mb=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(b)try{var e=n(Object(function(){var t=new Error("Cannot find module \'crypto\'");throw t.code="MODULE_NOT_FOUND",t}()));return()=>e.randomBytes(1)[0]}catch(t){}return()=>V("randomDevice")}());for(var a=0;a>0>>>0]=t.Mb();return 0},ea:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},fa:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},J:function(t){var e=At();try{return at(t)()}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},e:function(t,e){var n=At();try{return at(t)(e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},N:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},O:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},j:function(t,e,n){var r=At();try{return at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},o:function(t,e,n,r){var a=At();try{return at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},p:function(t,e,n,r,a){var i=At();try{return at(t)(e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},M:function(t,e,n,r,a,i){var o=At();try{return at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},r:function(t,e,n,r,a,i){var o=At();try{return at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},v:function(t,e,n,r,a,i,o){var u=At();try{return at(t)(e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},K:function(t,e,n,r,a,i,o,u){var c=At();try{return at(t)(e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},D:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=At();try{return at(t)(e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(St(p),t!==t+0)throw t;Ot(1,0)}},X:function(t,e,n,r,a,i,o,u){var c=At();try{return Ft(t,e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},V:function(t,e,n,r,a,i,o){var u=At();try{return xt(t,e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},U:function(t,e,n,r,a){var i=At();try{return It(t,e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},Z:function(t,e,n,r){var a=At();try{return Pt(t,e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},W:function(t){var e=At();try{return Ct(t)}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},Y:function(t,e){var n=At();try{return Ut(t,e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},T:function(t,e,n){var r=At();try{return Rt(t,e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},f:function(t){var e=At();try{at(t)()}catch(t){if(St(e),t!==t+0)throw t;Ot(1,0)}},q:function(t,e){var n=At();try{at(t)(e)}catch(t){if(St(n),t!==t+0)throw t;Ot(1,0)}},h:function(t,e,n){var r=At();try{at(t)(e,n)}catch(t){if(St(r),t!==t+0)throw t;Ot(1,0)}},da:function(t,e,n,r){var a=At();try{at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},l:function(t,e,n,r){var a=At();try{at(t)(e,n,r)}catch(t){if(St(a),t!==t+0)throw t;Ot(1,0)}},t:function(t,e,n,r,a){var i=At();try{at(t)(e,n,r,a)}catch(t){if(St(i),t!==t+0)throw t;Ot(1,0)}},u:function(t,e,n,r,a,i){var o=At();try{at(t)(e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},x:function(t,e,n,r,a,i,o){var u=At();try{at(t)(e,n,r,a,i,o)}catch(t){if(St(u),t!==t+0)throw t;Ot(1,0)}},z:function(t,e,n,r,a,i,o,u){var c=At();try{at(t)(e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},ga:function(t,e,n,r,a,i,o,u,c){var s=At();try{at(t)(e,n,r,a,i,o,u,c)}catch(t){if(St(s),t!==t+0)throw t;Ot(1,0)}},A:function(t,e,n,r,a,i,o,u,c,s,l){var f=At();try{at(t)(e,n,r,a,i,o,u,c,s,l)}catch(t){if(St(f),t!==t+0)throw t;Ot(1,0)}},C:function(t,e,n,r,a,i,o,u,c,s,l,f,p,h,d,y){var b=At();try{at(t)(e,n,r,a,i,o,u,c,s,l,f,p,h,d,y)}catch(t){if(St(b),t!==t+0)throw t;Ot(1,0)}},aa:function(t,e,n,r,a,i,o,u){var c=At();try{jt(t,e,n,r,a,i,o,u)}catch(t){if(St(c),t!==t+0)throw t;Ot(1,0)}},_:function(t,e,n,r,a,i,o,u,c,s,l,f){var p=At();try{Dt(t,e,n,r,a,i,o,u,c,s,l,f)}catch(t){if(St(p),t!==t+0)throw t;Ot(1,0)}},$:function(t,e,n,r,a,i){var o=At();try{kt(t,e,n,r,a,i)}catch(t){if(St(o),t!==t+0)throw t;Ot(1,0)}},n:function(t){return t},F:function(t){ft=t},ha:yt,y:function(t,e,n,r){return yt(t,e,n,r)}};!function(){function t(t){e.asm=t.exports,O=e.asm.Ka,P(),U=e.asm.ib,I.unshift(e.asm.La),B--,e.monitorRunDependencies&&e.monitorRunDependencies(B),0==B&&(null!==G&&(clearInterval(G),G=null),N&&(t=N,N=null,t()))}function n(e){t(e.instance)}function r(t){return function(){if(!g&&(d||y)){if("function"==typeof fetch&&!Y.startsWith("file://"))return fetch(Y,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at \'"+Y+"\'";return t.arrayBuffer()})).catch((function(){return X()}));if(o)return new Promise((function(t,e){o(Y,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return X()}))}().then((function(t){return WebAssembly.instantiate(t,i)})).then((function(t){return t})).then(t,(function(t){w("failed to asynchronously prepare wasm: "+t),V(t)}))}var i={a:bt};if(B++,e.monitorRunDependencies&&e.monitorRunDependencies(B),e.instantiateWasm)try{return e.instantiateWasm(i,t)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}(g||"function"!=typeof WebAssembly.instantiateStreaming||$()||Y.startsWith("file://")||b||"function"!=typeof fetch?r(n):fetch(Y,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,i).then(n,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(a)}(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.La).apply(null,arguments)},e._OrtInit=function(){return(e._OrtInit=e.asm.Ma).apply(null,arguments)},e._OrtCreateSessionOptions=function(){return(e._OrtCreateSessionOptions=e.asm.Na).apply(null,arguments)},e._OrtAppendExecutionProvider=function(){return(e._OrtAppendExecutionProvider=e.asm.Oa).apply(null,arguments)},e._OrtAddSessionConfigEntry=function(){return(e._OrtAddSessionConfigEntry=e.asm.Pa).apply(null,arguments)},e._OrtReleaseSessionOptions=function(){return(e._OrtReleaseSessionOptions=e.asm.Qa).apply(null,arguments)},e._OrtCreateSession=function(){return(e._OrtCreateSession=e.asm.Ra).apply(null,arguments)},e._OrtReleaseSession=function(){return(e._OrtReleaseSession=e.asm.Sa).apply(null,arguments)},e._OrtGetInputCount=function(){return(e._OrtGetInputCount=e.asm.Ta).apply(null,arguments)},e._OrtGetOutputCount=function(){return(e._OrtGetOutputCount=e.asm.Ua).apply(null,arguments)},e._OrtGetInputName=function(){return(e._OrtGetInputName=e.asm.Va).apply(null,arguments)},e._OrtGetOutputName=function(){return(e._OrtGetOutputName=e.asm.Wa).apply(null,arguments)},e._OrtFree=function(){return(e._OrtFree=e.asm.Xa).apply(null,arguments)},e._OrtCreateTensor=function(){return(e._OrtCreateTensor=e.asm.Ya).apply(null,arguments)},e._OrtGetTensorData=function(){return(e._OrtGetTensorData=e.asm.Za).apply(null,arguments)},e._OrtReleaseTensor=function(){return(e._OrtReleaseTensor=e.asm._a).apply(null,arguments)},e._OrtCreateRunOptions=function(){return(e._OrtCreateRunOptions=e.asm.$a).apply(null,arguments)},e._OrtAddRunConfigEntry=function(){return(e._OrtAddRunConfigEntry=e.asm.ab).apply(null,arguments)},e._OrtReleaseRunOptions=function(){return(e._OrtReleaseRunOptions=e.asm.bb).apply(null,arguments)},e._OrtRun=function(){return(e._OrtRun=e.asm.cb).apply(null,arguments)},e._OrtEndProfiling=function(){return(e._OrtEndProfiling=e.asm.db).apply(null,arguments)};var mt,gt=e._malloc=function(){return(gt=e._malloc=e.asm.eb).apply(null,arguments)},vt=e._free=function(){return(vt=e._free=e.asm.fb).apply(null,arguments)},wt=e._fflush=function(){return(wt=e._fflush=e.asm.gb).apply(null,arguments)},_t=e.___funcs_on_exit=function(){return(_t=e.___funcs_on_exit=e.asm.hb).apply(null,arguments)},Ot=e._setThrew=function(){return(Ot=e._setThrew=e.asm.jb).apply(null,arguments)},At=e.stackSave=function(){return(At=e.stackSave=e.asm.kb).apply(null,arguments)},St=e.stackRestore=function(){return(St=e.stackRestore=e.asm.lb).apply(null,arguments)},Tt=e.stackAlloc=function(){return(Tt=e.stackAlloc=e.asm.mb).apply(null,arguments)},Et=e.___cxa_can_catch=function(){return(Et=e.___cxa_can_catch=e.asm.nb).apply(null,arguments)},Mt=e.___cxa_is_pointer_type=function(){return(Mt=e.___cxa_is_pointer_type=e.asm.ob).apply(null,arguments)},Ct=e.dynCall_j=function(){return(Ct=e.dynCall_j=e.asm.pb).apply(null,arguments)},xt=e.dynCall_iiiiij=function(){return(xt=e.dynCall_iiiiij=e.asm.qb).apply(null,arguments)},Rt=e.dynCall_jii=function(){return(Rt=e.dynCall_jii=e.asm.rb).apply(null,arguments)},jt=e.dynCall_viiiiij=function(){return(jt=e.dynCall_viiiiij=e.asm.sb).apply(null,arguments)},kt=e.dynCall_vjji=function(){return(kt=e.dynCall_vjji=e.asm.tb).apply(null,arguments)},Dt=e.dynCall_viiijjjii=function(){return(Dt=e.dynCall_viiijjjii=e.asm.ub).apply(null,arguments)},Pt=e.dynCall_iij=function(){return(Pt=e.dynCall_iij=e.asm.vb).apply(null,arguments)},Ut=e.dynCall_ji=function(){return(Ut=e.dynCall_ji=e.asm.wb).apply(null,arguments)},Ft=e.dynCall_iiiiiij=function(){return(Ft=e.dynCall_iiiiiij=e.asm.xb).apply(null,arguments)},It=e.dynCall_iiij=function(){return(It=e.dynCall_iiij=e.asm.yb).apply(null,arguments)};function Wt(){function t(){if(!mt&&(mt=!0,e.calledRun=!0,!C)){if(Z(I),r(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();H.unshift(t)}Z(H)}}if(!(0{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iterateExtraOptions=void 0,e.iterateExtraOptions=(t,n,r,a)=>{if("object"==typeof t&&null!==t){if(r.has(t))throw new Error("Circular reference in options");r.add(t)}Object.entries(t).forEach((([t,i])=>{const o=n?n+t:t;if("object"==typeof i)(0,e.iterateExtraOptions)(i,o+".",r,a);else if("string"==typeof i||"number"==typeof i)a(o,i.toString());else{if("boolean"!=typeof i)throw new Error("Can\'t handle extra config type: "+typeof i);a(o,i?"1":"0")}}))}},586:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setRunOptions=void 0;const r=n(967),a=n(983),i=n(361);e.setRunOptions=t=>{const e=(0,i.getInstance)();let n=0;const o=[],u=t||{};try{if(void 0===(null==t?void 0:t.logSeverityLevel))u.logSeverityLevel=2;else if("number"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${t.logSeverityLevel}`);if(void 0===(null==t?void 0:t.logVerbosityLevel))u.logVerbosityLevel=0;else if("number"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${t.logVerbosityLevel}`);void 0===(null==t?void 0:t.terminate)&&(u.terminate=!1);let i=0;if(void 0!==(null==t?void 0:t.tag)&&(i=(0,a.allocWasmString)(t.tag,o)),n=e._OrtCreateRunOptions(u.logSeverityLevel,u.logVerbosityLevel,!!u.terminate,i),0===n)throw new Error("Can\'t create run options");return void 0!==(null==t?void 0:t.extra)&&(0,r.iterateExtraOptions)(t.extra,"",new WeakSet,((t,r)=>{const i=(0,a.allocWasmString)(t,o),u=(0,a.allocWasmString)(r,o);if(0!==e._OrtAddRunConfigEntry(n,i,u))throw new Error(`Can\'t set a run config entry: ${t} - ${r}`)})),[n,o]}catch(t){throw 0!==n&&e._OrtReleaseRunOptions(n),o.forEach(e._free),t}}},919:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setSessionOptions=void 0;const r=n(967),a=n(983),i=n(361);e.setSessionOptions=t=>{const e=(0,i.getInstance)();let n=0;const o=[],u=t||{};(t=>{t.extra||(t.extra={}),t.extra.session||(t.extra.session={});const e=t.extra.session;e.use_ort_model_bytes_directly||(e.use_ort_model_bytes_directly="1")})(u);try{void 0===(null==t?void 0:t.graphOptimizationLevel)&&(u.graphOptimizationLevel="all");const c=(t=>{switch(t){case"disabled":return 0;case"basic":return 1;case"extended":return 2;case"all":return 99;default:throw new Error(`unsupported graph optimization level: ${t}`)}})(u.graphOptimizationLevel);void 0===(null==t?void 0:t.enableCpuMemArena)&&(u.enableCpuMemArena=!0),void 0===(null==t?void 0:t.enableMemPattern)&&(u.enableMemPattern=!0),void 0===(null==t?void 0:t.executionMode)&&(u.executionMode="sequential");const s=(t=>{switch(t){case"sequential":return 0;case"parallel":return 1;default:throw new Error(`unsupported execution mode: ${t}`)}})(u.executionMode);let l=0;if(void 0!==(null==t?void 0:t.logId)&&(l=(0,a.allocWasmString)(t.logId,o)),void 0===(null==t?void 0:t.logSeverityLevel))u.logSeverityLevel=2;else if("number"!=typeof t.logSeverityLevel||!Number.isInteger(t.logSeverityLevel)||t.logSeverityLevel<0||t.logSeverityLevel>4)throw new Error(`log serverity level is not valid: ${t.logSeverityLevel}`);if(void 0===(null==t?void 0:t.logVerbosityLevel))u.logVerbosityLevel=0;else if("number"!=typeof t.logVerbosityLevel||!Number.isInteger(t.logVerbosityLevel))throw new Error(`log verbosity level is not valid: ${t.logVerbosityLevel}`);if(void 0===(null==t?void 0:t.enableProfiling)&&(u.enableProfiling=!1),n=e._OrtCreateSessionOptions(c,!!u.enableCpuMemArena,!!u.enableMemPattern,s,!!u.enableProfiling,0,l,u.logSeverityLevel,u.logVerbosityLevel),0===n)throw new Error("Can\'t create session options");return(null==t?void 0:t.executionProviders)&&((t,e,n)=>{for(const r of e){let e="string"==typeof r?r:r.name;switch(e){case"xnnpack":e="XNNPACK";break;case"wasm":case"cpu":continue;default:throw new Error(`not supported EP: ${e}`)}const o=(0,a.allocWasmString)(e,n);if(0!==(0,i.getInstance)()._OrtAppendExecutionProvider(t,o))throw new Error(`Can\'t append execution provider: ${e}`)}})(n,t.executionProviders,o),void 0!==(null==t?void 0:t.extra)&&(0,r.iterateExtraOptions)(t.extra,"",new WeakSet,((t,r)=>{const i=(0,a.allocWasmString)(t,o),u=(0,a.allocWasmString)(r,o);if(0!==e._OrtAddSessionConfigEntry(n,i,u))throw new Error(`Can\'t set a session config entry: ${t} - ${r}`)})),[n,o]}catch(t){throw 0!==n&&e._OrtReleaseSessionOptions(n),o.forEach(e._free),t}}},983:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.allocWasmString=void 0;const r=n(361);e.allocWasmString=(t,e)=>{const n=(0,r.getInstance)(),a=n.lengthBytesUTF8(t)+1,i=n._malloc(a);return n.stringToUTF8(t,i,a),e.push(i),i}},349:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractTransferableBuffers=e.endProfiling=e.run=e.releaseSession=e.createSession=e.createSessionFinalize=e.createSessionAllocate=e.initOrt=void 0;const r=n(586),a=n(919),i=n(983),o=n(361);e.initOrt=(t,e)=>{const n=(0,o.getInstance)()._OrtInit(t,e);if(0!==n)throw new Error(`Can\'t initialize onnxruntime. error code = ${n}`)};const u=new Map;e.createSessionAllocate=t=>{const e=(0,o.getInstance)(),n=e._malloc(t.byteLength);return e.HEAPU8.set(t,n),[n,t.byteLength]},e.createSessionFinalize=(t,e)=>{const n=(0,o.getInstance)();let r=0,i=0,c=[];try{if([i,c]=(0,a.setSessionOptions)(e),r=n._OrtCreateSession(t[0],t[1],i),0===r)throw new Error("Can\'t create a session")}finally{n._free(t[0]),n._OrtReleaseSessionOptions(i),c.forEach(n._free)}const s=n._OrtGetInputCount(r),l=n._OrtGetOutputCount(r),f=[],p=[],h=[],d=[];for(let t=0;t{const r=(0,e.createSessionAllocate)(t);return(0,e.createSessionFinalize)(r,n)},e.releaseSession=t=>{const e=(0,o.getInstance)(),n=u.get(t);if(!n)throw new Error("invalid session id");const r=n[0],a=n[1],i=n[2];a.forEach(e._OrtFree),i.forEach(e._OrtFree),e._OrtReleaseSession(r),u.delete(t)};const c=t=>{switch(t){case"int8":return 3;case"uint8":return 2;case"bool":return 9;case"int16":return 5;case"uint16":return 4;case"int32":return 6;case"uint32":return 12;case"float32":return 1;case"float64":return 11;case"string":return 8;case"int64":return 7;case"uint64":return 13;default:throw new Error(`unsupported data type: ${t}`)}},s=t=>{switch(t){case 3:return"int8";case 2:return"uint8";case 9:return"bool";case 5:return"int16";case 4:return"uint16";case 6:return"int32";case 12:return"uint32";case 1:return"float32";case 11:return"float64";case 8:return"string";case 7:return"int64";case 13:return"uint64";default:throw new Error(`unsupported data type: ${t}`)}},l=t=>{switch(t){case"float32":return Float32Array;case"uint8":case"bool":return Uint8Array;case"int8":return Int8Array;case"uint16":return Uint16Array;case"int16":return Int16Array;case"int32":return Int32Array;case"float64":return Float64Array;case"uint32":return Uint32Array;case"int64":return BigInt64Array;case"uint64":return BigUint64Array;default:throw new Error(`unsupported type: ${t}`)}};e.run=(t,e,n,a,f)=>{const p=(0,o.getInstance)(),h=u.get(t);if(!h)throw new Error("invalid session id");const d=h[0],y=h[1],b=h[2],m=e.length,g=a.length;let v=0,w=[];const _=[],O=[];try{[v,w]=(0,r.setRunOptions)(f);for(let t=0;tp.HEAP32[t++]=e));const n=p._OrtCreateTensor(c(e),o,u,l,r.length);if(0===n)throw new Error("Can\'t create a tensor");_.push(n)}finally{p.stackRestore(s)}}const t=p.stackSave(),o=p.stackAlloc(4*m),u=p.stackAlloc(4*m),h=p.stackAlloc(4*g),A=p.stackAlloc(4*g);try{let n=o/4,r=u/4,i=h/4,c=A/4;for(let t=0;tt*e));if(a=s(o),"string"===a){const t=[];let e=i/4;for(let n=0;n{const e=(0,o.getInstance)(),n=u.get(t);if(!n)throw new Error("invalid session id");const r=n[0],a=e._OrtEndProfiling(r);if(0===a)throw new Error("Can\'t get an profile file name");e._OrtFree(a)},e.extractTransferableBuffers=t=>{const e=[];for(const n of t){const t=n[2];!Array.isArray(t)&&t.buffer&&e.push(t.buffer)}return e}},361:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);a&&!("get"in a?!e.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return a(e,t),e},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.getInstance=e.initializeWebAssembly=void 0;const u=i(n(449)),c=o(n(932)),s=n(474);let l,f=!1,p=!1,h=!1;const d=(t,e)=>e?t?"ort-wasm-simd-threaded.wasm":"ort-wasm-threaded.wasm":t?"ort-wasm-simd.wasm":"ort-wasm.wasm";e.initializeWebAssembly=async t=>{if(f)return Promise.resolve();if(p)throw new Error("multiple calls to \'initializeWebAssembly()\' detected.");if(h)throw new Error("previous call to \'initializeWebAssembly()\' failed.");p=!0;const e=t.initTimeout,r=t.numThreads,a=t.simd,i=r>1&&(()=>{try{return"undefined"!=typeof SharedArrayBuffer&&("undefined"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(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])))}catch(t){return!1}})(),o=a&&(()=>{try{return WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,30,1,28,0,65,0,253,15,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,253,186,1,26,11]))}catch(t){return!1}})(),y="string"==typeof t.wasmPaths?t.wasmPaths:void 0,b=d(!1,i),m=d(o,i),g="object"==typeof t.wasmPaths?t.wasmPaths[m]:void 0;let v=!1;const w=[];if(e>0&&w.push(new Promise((t=>{setTimeout((()=>{v=!0,t()}),e)}))),w.push(new Promise(((t,e)=>{const r=i?s:c.default,a={locateFile:(t,e)=>i&&t.endsWith(".worker.js")&&"undefined"!=typeof Blob?URL.createObjectURL(new Blob([n(154)],{type:"text/javascript"})):t===b?null!=g?g:(null!=y?y:e)+m:e+t};if(i)if("undefined"==typeof Blob)a.mainScriptUrlOrBlob=u.join("/","ort-wasm-threaded.js");else{const t=`var ortWasmThreaded=(function(){var _scriptDir;return ${r.toString()}})();`;a.mainScriptUrlOrBlob=new Blob([t],{type:"text/javascript"})}r(a).then((e=>{p=!1,f=!0,l=e,t()}),(t=>{p=!1,h=!0,e(t)}))}))),await Promise.race(w),v)throw new Error(`WebAssembly backend initializing failed due to timeout: ${e}ms`)},e.getInstance=()=>{if(f&&l)return l;throw new Error("WebAssembly is not initialized yet.")},e.dispose=()=>{var t;!f||p||h||(p=!0,null===(t=l.PThread)||void 0===t||t.terminateAllThreads(),l=void 0,p=!1,f=!1,h=!0)}},154:t=>{"use strict";t.exports=\'"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\\\\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}};\\n\'},384:()=>{},993:()=>{},908:()=>{},953:()=>{},925:()=>{},449:()=>{}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{"use strict";const t=n(349),e=n(361);self.onmessage=n=>{switch(n.data.type){case"init-wasm":(0,e.initializeWebAssembly)(n.data.in).then((()=>postMessage({type:"init-wasm"})),(t=>postMessage({type:"init-wasm",err:t})));break;case"init-ort":try{const{numThreads:e,loggingLevel:r}=n.data.in;(0,t.initOrt)(e,r),postMessage({type:"init-ort"})}catch(t){postMessage({type:"init-ort",err:t})}break;case"create_allocate":try{const{model:e}=n.data.in,r=(0,t.createSessionAllocate)(e);postMessage({type:"create_allocate",out:r})}catch(t){postMessage({type:"create_allocate",err:t})}break;case"create_finalize":try{const{modeldata:e,options:r}=n.data.in,a=(0,t.createSessionFinalize)(e,r);postMessage({type:"create_finalize",out:a})}catch(t){postMessage({type:"create_finalize",err:t})}break;case"create":try{const{model:e,options:r}=n.data.in,a=(0,t.createSession)(e,r);postMessage({type:"create",out:a})}catch(t){postMessage({type:"create",err:t})}break;case"release":try{const e=n.data.in;(0,t.releaseSession)(e),postMessage({type:"release"})}catch(t){postMessage({type:"release",err:t})}break;case"run":try{const{sessionId:e,inputIndices:r,inputs:a,outputIndices:i,options:o}=n.data.in,u=(0,t.run)(e,r,a,i,o);postMessage({type:"run",out:u},(0,t.extractTransferableBuffers)(u))}catch(t){postMessage({type:"run",err:t})}break;case"end-profiling":try{const e=n.data.in;(0,t.endProfiling)(e),postMessage({type:"end-profiling"})}catch(t){postMessage({type:"end-profiling",err:t})}}}})()})();\n',`Worker`,void 0,void 0)}},477:t=>{"use strict";t.exports=function(t$1,e$3,n$2,r$2){var i$1=self||window;try{try{var o$1;try{o$1=new i$1.Blob([t$1])}catch{(o$1=new(i$1.BlobBuilder||i$1.WebKitBlobBuilder||i$1.MozBlobBuilder||i$1.MSBlobBuilder)).append(t$1),o$1=o$1.getBlob()}var a$2=i$1.URL||i$1.webkitURL,s$1=a$2.createObjectURL(o$1),u$1=new i$1[e$3](s$1,n$2);return a$2.revokeObjectURL(s$1),u$1}catch{return new i$1[e$3](`data:application/javascript,${encodeURIComponent(t$1)}`,n$2)}}catch{if(!r$2)throw Error(`Inline worker is not supported`);return new i$1[e$3](r$2,n$2)}}},4154:t=>{"use strict";t.exports=`"use strict";var e={},t="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;if(t){var r=require("worker_threads"),a=r.parentPort;a.on("message",(e=>onmessage({data:e})));var o=require("fs");Object.assign(global,{self:global,require:require,Module:e,location:{href:__filename},Worker:r.Worker,importScripts:function(e){(0,eval)(o.readFileSync(e,"utf8"))},postMessage:function(e){a.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}})}var s=!1,n=[],i=function(){var e=Array.prototype.slice.call(arguments).join(" ");t?o.writeSync(2,e+"\\n"):console.error(e)};self.alert=function(){var t=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:t,threadId:e._pthread_self()})},e.instantiateWasm=(t,r)=>{var a=new WebAssembly.Instance(e.wasmModule,t);return r(a),e.wasmModule=null,a.exports},self.onunhandledrejection=e=>{throw e.reason??e},self.onmessage=t=>{try{if("load"===t.data.cmd){if(e.wasmModule=t.data.wasmModule,e.wasmMemory=t.data.wasmMemory,e.buffer=e.wasmMemory.buffer,e.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof t.data.urlOrBlob)importScripts(t.data.urlOrBlob);else{var r=URL.createObjectURL(t.data.urlOrBlob);importScripts(r),URL.revokeObjectURL(r)}ortWasmThreaded(e).then((function(t){e=t}))}else if("run"===t.data.cmd){e.__performance_now_clock_drift=performance.now()-t.data.time,e.__emscripten_thread_init(t.data.pthread_ptr,0,0,1),e.establishStackSpace(),e.PThread.receiveObjectTransfer(t.data),e.PThread.threadInitTLS(),s||(n.forEach((t=>{e.executeNotifiedProxyingQueue(t)})),n=[],s=!0);try{e.invokeEntryPoint(t.data.start_routine,t.data.arg)}catch(t){if("unwind"!=t){if(!(t instanceof e.ExitStatus))throw t;e.keepRuntimeAlive()||e.__emscripten_thread_exit(t.status)}}}else"cancel"===t.data.cmd?e._pthread_self()&&e.__emscripten_thread_exit(-1):"setimmediate"===t.data.target||("processProxyingQueue"===t.data.cmd?s?e.executeNotifiedProxyingQueue(t.data.queue):n.push(t.data.queue):(i("worker.js received unknown command "+t.data.cmd),i(t.data)))}catch(t){throw i("worker.js onmessage() captured an uncaught exception: "+t),t&&t.stack&&i(t.stack),e.__emscripten_thread_crashed&&e.__emscripten_thread_crashed(),t}}; `},1670:t=>{"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__1670__},7067:()=>{},1296:()=>{},1384:()=>{},3993:()=>{},908:()=>{},6953:()=>{},9925:()=>{},2806:()=>{},6449:()=>{},2850:()=>{},5381:()=>{},5686:(t,e$3,n$2)=>{"use strict";n$2.r(e$3),n$2.d(e$3,{flatbuffers:()=>r$2});var r$2={};r$2.Offset,r$2.Table,r$2.SIZEOF_SHORT=2,r$2.SIZEOF_INT=4,r$2.FILE_IDENTIFIER_LENGTH=4,r$2.SIZE_PREFIX_LENGTH=4,r$2.Encoding={UTF8_BYTES:1,UTF16_STRING:2},r$2.int32=new Int32Array(2),r$2.float32=new Float32Array(r$2.int32.buffer),r$2.float64=new Float64Array(r$2.int32.buffer),r$2.isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1,r$2.Long=function(t$1,e$4){this.low=0|t$1,this.high=0|e$4},r$2.Long.create=function(t$1,e$4){return t$1==0&&e$4==0?r$2.Long.ZERO:new r$2.Long(t$1,e$4)},r$2.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},r$2.Long.prototype.equals=function(t$1){return this.low==t$1.low&&this.high==t$1.high},r$2.Long.ZERO=new r$2.Long(0,0),r$2.Builder=function(t$1){if(t$1)e$4=t$1;else var e$4=1024;this.bb=r$2.ByteBuffer.allocate(e$4),this.space=e$4,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},r$2.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1},r$2.Builder.prototype.forceDefaults=function(t$1){this.force_defaults=t$1},r$2.Builder.prototype.dataBuffer=function(){return this.bb},r$2.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},r$2.Builder.prototype.prep=function(t$1,e$4){t$1>this.minalign&&(this.minalign=t$1);for(var n$3=1+~(this.bb.capacity()-this.space+e$4)&t$1-1;this.space=0&&this.vtable[e$4]==0;e$4--);for(var n$3=e$4+1;e$4>=0;e$4--)this.addInt16(this.vtable[e$4]==0?0:t$1-this.vtable[e$4]);this.addInt16(t$1-this.object_start);var i$1=(n$3+2)*r$2.SIZEOF_SHORT;this.addInt16(i$1);var o$1=0,a$2=this.space;t:for(e$4=0;e$4=0;a$2--)this.writeInt8(o$1.charCodeAt(a$2))}this.prep(this.minalign,r$2.SIZEOF_INT+i$1),this.addOffset(t$1),i$1&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)},r$2.Builder.prototype.finishSizePrefixed=function(t$1,e$4){this.finish(t$1,e$4,!0)},r$2.Builder.prototype.requiredField=function(t$1,e$4){var n$3=this.bb.capacity()-t$1,r$3=n$3-this.bb.readInt32(n$3);if(this.bb.readInt16(r$3+e$4)==0)throw Error(`FlatBuffers: field `+e$4+` must be set`)},r$2.Builder.prototype.startVector=function(t$1,e$4,n$3){this.notNested(),this.vector_num_elems=e$4,this.prep(r$2.SIZEOF_INT,t$1*e$4),this.prep(n$3,t$1*e$4)},r$2.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},r$2.Builder.prototype.createString=function(t$1){if(t$1 instanceof Uint8Array)var e$4=t$1;else{e$4=[];for(var n$3=0;n$3=56320?i$1:(i$1<<10)+t$1.charCodeAt(n$3++)+-56613888)<128?e$4.push(r$3):(r$3<2048?e$4.push(r$3>>6&31|192):(r$3<65536?e$4.push(r$3>>12&15|224):e$4.push(r$3>>18&7|240,r$3>>12&63|128),e$4.push(r$3>>6&63|128)),e$4.push(63&r$3|128))}}this.addInt8(0),this.startVector(1,e$4.length,1),this.bb.setPosition(this.space-=e$4.length),n$3=0;for(var o$1=this.space,a$2=this.bb.bytes();n$3>24},r$2.ByteBuffer.prototype.readUint8=function(t$1){return this.bytes_[t$1]},r$2.ByteBuffer.prototype.readInt16=function(t$1){return this.readUint16(t$1)<<16>>16},r$2.ByteBuffer.prototype.readUint16=function(t$1){return this.bytes_[t$1]|this.bytes_[t$1+1]<<8},r$2.ByteBuffer.prototype.readInt32=function(t$1){return this.bytes_[t$1]|this.bytes_[t$1+1]<<8|this.bytes_[t$1+2]<<16|this.bytes_[t$1+3]<<24},r$2.ByteBuffer.prototype.readUint32=function(t$1){return this.readInt32(t$1)>>>0},r$2.ByteBuffer.prototype.readInt64=function(t$1){return new r$2.Long(this.readInt32(t$1),this.readInt32(t$1+4))},r$2.ByteBuffer.prototype.readUint64=function(t$1){return new r$2.Long(this.readUint32(t$1),this.readUint32(t$1+4))},r$2.ByteBuffer.prototype.readFloat32=function(t$1){return r$2.int32[0]=this.readInt32(t$1),r$2.float32[0]},r$2.ByteBuffer.prototype.readFloat64=function(t$1){return r$2.int32[r$2.isLittleEndian?0:1]=this.readInt32(t$1),r$2.int32[r$2.isLittleEndian?1:0]=this.readInt32(t$1+4),r$2.float64[0]},r$2.ByteBuffer.prototype.writeInt8=function(t$1,e$4){this.bytes_[t$1]=e$4},r$2.ByteBuffer.prototype.writeUint8=function(t$1,e$4){this.bytes_[t$1]=e$4},r$2.ByteBuffer.prototype.writeInt16=function(t$1,e$4){this.bytes_[t$1]=e$4,this.bytes_[t$1+1]=e$4>>8},r$2.ByteBuffer.prototype.writeUint16=function(t$1,e$4){this.bytes_[t$1]=e$4,this.bytes_[t$1+1]=e$4>>8},r$2.ByteBuffer.prototype.writeInt32=function(t$1,e$4){this.bytes_[t$1]=e$4,this.bytes_[t$1+1]=e$4>>8,this.bytes_[t$1+2]=e$4>>16,this.bytes_[t$1+3]=e$4>>24},r$2.ByteBuffer.prototype.writeUint32=function(t$1,e$4){this.bytes_[t$1]=e$4,this.bytes_[t$1+1]=e$4>>8,this.bytes_[t$1+2]=e$4>>16,this.bytes_[t$1+3]=e$4>>24},r$2.ByteBuffer.prototype.writeInt64=function(t$1,e$4){this.writeInt32(t$1,e$4.low),this.writeInt32(t$1+4,e$4.high)},r$2.ByteBuffer.prototype.writeUint64=function(t$1,e$4){this.writeUint32(t$1,e$4.low),this.writeUint32(t$1+4,e$4.high)},r$2.ByteBuffer.prototype.writeFloat32=function(t$1,e$4){r$2.float32[0]=e$4,this.writeInt32(t$1,r$2.int32[0])},r$2.ByteBuffer.prototype.writeFloat64=function(t$1,e$4){r$2.float64[0]=e$4,this.writeInt32(t$1,r$2.int32[r$2.isLittleEndian?0:1]),this.writeInt32(t$1+4,r$2.int32[r$2.isLittleEndian?1:0])},r$2.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length>10),56320+(1023&a$2)))}return i$1},r$2.ByteBuffer.prototype.__indirect=function(t$1){return t$1+this.readInt32(t$1)},r$2.ByteBuffer.prototype.__vector=function(t$1){return t$1+this.readInt32(t$1)+r$2.SIZEOF_INT},r$2.ByteBuffer.prototype.__vector_len=function(t$1){return this.readInt32(t$1+this.readInt32(t$1))},r$2.ByteBuffer.prototype.__has_identifier=function(t$1){if(t$1.length!=r$2.FILE_IDENTIFIER_LENGTH)throw Error(`FlatBuffers: file identifier must be length `+r$2.FILE_IDENTIFIER_LENGTH);for(var e$4=0;e$4{var e$3=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e$3,{a:e$3}),e$3},__webpack_require__.d=(t,e$3)=>{for(var n$2 in e$3)__webpack_require__.o(e$3,n$2)&&!__webpack_require__.o(t,n$2)&&Object.defineProperty(t,n$2,{enumerable:!0,get:e$3[n$2]})},__webpack_require__.g=function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}}(),__webpack_require__.o=(t,e$3)=>Object.prototype.hasOwnProperty.call(t,e$3),__webpack_require__.r=t=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(t,`__esModule`,{value:!0})};var __webpack_exports__=__webpack_require__(6018);return __webpack_exports__})())}),require_common=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0})}),require_legacy=__commonJSMin(exports=>{var _a$1;Object.defineProperty(exports,`__esModule`,{value:!0}),exports.SileroLegacy=void 0;let logging_1$3=require_logging();var SileroLegacy=class{constructor(ortInstance$2,_session,_h,_c,_sr){this.ortInstance=ortInstance$2,this._session=_session,this._h=_h,this._c=_c,this._sr=_sr,this.reset_state=()=>{let zeroes=Array(2*64).fill(0);this._h=new this.ortInstance.Tensor(`float32`,zeroes,[2,1,64]),this._c=new this.ortInstance.Tensor(`float32`,zeroes,[2,1,64])},this.process=async audioFrame=>{var _out$output;let t=new this.ortInstance.Tensor(`float32`,audioFrame,[1,audioFrame.length]),inputs={input:t,h:this._h,c:this._c,sr:this._sr},out=await this._session.run(inputs);this._h=out.hn,this._c=out.cn;let[isSpeech]=(_out$output=out.output)?.data,notSpeech=1-isSpeech;return{notSpeech,isSpeech}}}};exports.SileroLegacy=SileroLegacy,_a$1=SileroLegacy,SileroLegacy.new=async(ortInstance$2,modelFetcher)=>{logging_1$3.log.debug(`initializing vad`);let modelArrayBuffer=await modelFetcher(),_session=await ortInstance$2.InferenceSession.create(modelArrayBuffer),_sr=new ortInstance$2.Tensor(`int64`,[16000n]),zeroes=Array(2*64).fill(0),_h=new ortInstance$2.Tensor(`float32`,zeroes,[2,1,64]),_c=new ortInstance$2.Tensor(`float32`,zeroes,[2,1,64]);logging_1$3.log.debug(`vad is initialized`);let model=new _a$1(ortInstance$2,_session,_h,_c,_sr);return model}}),require_v5=__commonJSMin(exports=>{var _a;Object.defineProperty(exports,`__esModule`,{value:!0}),exports.SileroV5=void 0;let logging_1$2=require_logging();function getNewState(ortInstance$2){let zeroes=Array(2*128).fill(0);return new ortInstance$2.Tensor(`float32`,zeroes,[2,1,128])}var SileroV5=class{constructor(_session,_state,_sr,ortInstance$2){this._session=_session,this._state=_state,this._sr=_sr,this.ortInstance=ortInstance$2,this.reset_state=()=>{this._state=getNewState(this.ortInstance)},this.process=async audioFrame=>{var _out$output2;let t=new this.ortInstance.Tensor(`float32`,audioFrame,[1,audioFrame.length]),inputs={input:t,state:this._state,sr:this._sr},out=await this._session.run(inputs);this._state=out.stateN;let[isSpeech]=(_out$output2=out.output)?.data,notSpeech=1-isSpeech;return{notSpeech,isSpeech}}}};exports.SileroV5=SileroV5,_a=SileroV5,SileroV5.new=async(ortInstance$2,modelFetcher)=>{logging_1$2.log.debug(`Loading VAD...`);let modelArrayBuffer=await modelFetcher(),_session=await ortInstance$2.InferenceSession.create(modelArrayBuffer),_sr=new ortInstance$2.Tensor(`int64`,[16000n]),_state=getNewState(ortInstance$2);return logging_1$2.log.debug(`...finished loading VAD`),new _a(_session,_state,_sr,ortInstance$2)}}),require_models=__commonJSMin(exports=>{var __createBinding$2=Object.create?function(o$1,m$2,k$4,k2){k2===void 0&&(k2=k$4);var desc=Object.getOwnPropertyDescriptor(m$2,k$4);(!desc||(`get`in desc?!m$2.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m$2[k$4]}}),Object.defineProperty(o$1,k2,desc)}:function(o$1,m$2,k$4,k2){k2===void 0&&(k2=k$4),o$1[k2]=m$2[k$4]},__exportStar=function(m$2,exports$1){for(var p$5 in m$2)p$5!==`default`&&!Object.prototype.hasOwnProperty.call(exports$1,p$5)&&__createBinding$2(exports$1,m$2,p$5)};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.SileroV5=exports.SileroLegacy=void 0,__exportStar(require_common(),exports);var legacy_1=require_legacy();Object.defineProperty(exports,`SileroLegacy`,{enumerable:!0,get:function(){return legacy_1.SileroLegacy}});var v5_1=require_v5();Object.defineProperty(exports,`SileroV5`,{enumerable:!0,get:function(){return v5_1.SileroV5}})}),require_resampler=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.Resampler=void 0;let logging_1$1=require_logging();var Resampler=class{constructor(options$1){this.options=options$1,this.process=audioFrame=>{let outputFrames=[];for(let sample of audioFrame)for(this.inputBuffer.push(sample);this.hasEnoughDataForFrame();){let outputFrame=this.generateOutputFrame();outputFrames.push(outputFrame)}return outputFrames},options$1.nativeSampleRate<16e3&&logging_1$1.log.error(`nativeSampleRate is too low. Should have 16000 = targetSampleRate <= nativeSampleRate`),this.inputBuffer=[]}async*stream(audioInput){for(let sample of audioInput)for(this.inputBuffer.push(sample);this.hasEnoughDataForFrame();){let outputFrame=this.generateOutputFrame();yield outputFrame}}hasEnoughDataForFrame(){return this.inputBuffer.length*this.options.targetSampleRate/this.options.nativeSampleRate>=this.options.targetFrameSize}generateOutputFrame(){let outputFrame=new Float32Array(this.options.targetFrameSize),outputIndex=0,inputIndex=0;for(;outputIndex{var __createBinding$1=Object.create?function(o$1,m$2,k$4,k2){k2===void 0&&(k2=k$4);var desc=Object.getOwnPropertyDescriptor(m$2,k$4);(!desc||(`get`in desc?!m$2.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m$2[k$4]}}),Object.defineProperty(o$1,k2,desc)}:function(o$1,m$2,k$4,k2){k2===void 0&&(k2=k$4),o$1[k2]=m$2[k$4]},__setModuleDefault$1=Object.create?function(o$1,v$1){Object.defineProperty(o$1,`default`,{enumerable:!0,value:v$1})}:function(o$1,v$1){o$1.default=v$1},__importStar$1=function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k$4 in mod)k$4!==`default`&&Object.prototype.hasOwnProperty.call(mod,k$4)&&__createBinding$1(result,mod,k$4);return __setModuleDefault$1(result,mod),result};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.NonRealTimeVAD=exports.defaultNonRealTimeVADOptions=void 0;let ortInstance$1=__importStar$1(require_ort_web_min()),asset_path_1$1=require_asset_path(),default_model_fetcher_1$2=require_default_model_fetcher(),frame_processor_1$2=require_frame_processor(),messages_1$2=require_messages(),models_1$1=require_models(),resampler_1$1=require_resampler();exports.defaultNonRealTimeVADOptions={...frame_processor_1$2.defaultLegacyFrameProcessorOptions,ortConfig:void 0,modelURL:asset_path_1$1.baseAssetPath+`silero_vad_legacy.onnx`,modelFetcher:default_model_fetcher_1$2.defaultModelFetcher};var NonRealTimeVAD=class{static async new(options$1={}){let fullOptions={...exports.defaultNonRealTimeVADOptions,...options$1};(0,frame_processor_1$2.validateOptions)(fullOptions),fullOptions.ortConfig!==void 0&&fullOptions.ortConfig(ortInstance$1);let modelFetcher=()=>fullOptions.modelFetcher(fullOptions.modelURL),model=await models_1$1.SileroLegacy.new(ortInstance$1,modelFetcher),frameProcessor=new frame_processor_1$2.FrameProcessor(model.process,model.reset_state,{frameSamples:fullOptions.frameSamples,positiveSpeechThreshold:fullOptions.positiveSpeechThreshold,negativeSpeechThreshold:fullOptions.negativeSpeechThreshold,redemptionFrames:fullOptions.redemptionFrames,preSpeechPadFrames:fullOptions.preSpeechPadFrames,minSpeechFrames:fullOptions.minSpeechFrames,submitUserSpeechOnPause:fullOptions.submitUserSpeechOnPause});frameProcessor.resume();let vad=new this(modelFetcher,ortInstance$1,fullOptions,frameProcessor);return vad}constructor(modelFetcher,ort,options$1,frameProcessor){this.modelFetcher=modelFetcher,this.ort=ort,this.options=options$1,this.frameProcessor=frameProcessor}async*run(inputAudio,sampleRate){let resamplerOptions={nativeSampleRate:sampleRate,targetSampleRate:16e3,targetFrameSize:this.options.frameSamples},resampler=new resampler_1$1.Resampler(resamplerOptions),start=0,end=0,frameIndex=0,messageContainer=[];for await(let frame$1 of resampler.stream(inputAudio)){await this.frameProcessor.process(frame$1,event=>{messageContainer.push(event)});for(let event of messageContainer)switch(event.msg){case messages_1$2.Message.SpeechStart:start=frameIndex*this.options.frameSamples/16;break;case messages_1$2.Message.SpeechEnd:end=(frameIndex+1)*this.options.frameSamples/16,yield{audio:event.audio,start,end};break;default:break}frameIndex++}let{msg,audio}=this.frameProcessor.endSegment(event=>{messageContainer.push(event)});for(let event of messageContainer)switch(event.msg){case messages_1$2.Message.SpeechEnd:yield{audio:event.audio,start,end:frameIndex*this.options.frameSamples/16}}}};exports.NonRealTimeVAD=NonRealTimeVAD}),require_utils=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.audioFileToArray=exports.encodeWAV=exports.arrayBufferToBase64=exports.minFramesForTargetMS=void 0;function minFramesForTargetMS(targetDuration,frameSamples,sr=16e3){return Math.ceil(targetDuration*sr/1e3/frameSamples)}exports.minFramesForTargetMS=minFramesForTargetMS;function arrayBufferToBase64(buffer$1){let bytes=new Uint8Array(buffer$1),len=bytes.byteLength,binary=Array(len);for(var i$1=0;i$1{reader.addEventListener(`loadend`,ev=>{let audioData=reader.result;ctx.decodeAudioData(audioData,buffer$1=>{audioBuffer=buffer$1,ctx.startRendering().then(renderedBuffer=>{console.log(`Rendering completed successfully`),res()}).catch(err=>{console.error(`Rendering failed: ${err}`)})},e$3=>{console.log(`Error with decoding audio data: ${e$3}`)})}),reader.readAsArrayBuffer(audioFileData)}),audioBuffer===null)throw Error(`some shit`);let _audioBuffer=audioBuffer,out=new Float32Array(_audioBuffer.length);for(let i$1=0;i$1<_audioBuffer.length;i$1++)for(let j$1=0;j$1<_audioBuffer.numberOfChannels;j$1++)out[i$1]+=_audioBuffer.getChannelData(j$1)[i$1];return{audio:out,sampleRate:_audioBuffer.sampleRate}}exports.audioFileToArray=audioFileToArray}),require_real_time_vad=__commonJSMin(exports=>{var __createBinding=Object.create?function(o$1,m$2,k$4,k2){k2===void 0&&(k2=k$4);var desc=Object.getOwnPropertyDescriptor(m$2,k$4);(!desc||(`get`in desc?!m$2.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m$2[k$4]}}),Object.defineProperty(o$1,k2,desc)}:function(o$1,m$2,k$4,k2){k2===void 0&&(k2=k$4),o$1[k2]=m$2[k$4]},__setModuleDefault=Object.create?function(o$1,v$1){Object.defineProperty(o$1,`default`,{enumerable:!0,value:v$1})}:function(o$1,v$1){o$1.default=v$1},__importStar=function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k$4 in mod)k$4!==`default`&&Object.prototype.hasOwnProperty.call(mod,k$4)&&__createBinding(result,mod,k$4);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,`__esModule`,{value:!0}),exports.AudioNodeVAD=exports.MicVAD=exports.getDefaultRealTimeVADOptions=exports.ort=exports.DEFAULT_MODEL=void 0;let ortInstance=__importStar(require_ort_web_min()),default_model_fetcher_1$1=require_default_model_fetcher(),frame_processor_1$1=require_frame_processor(),logging_1=require_logging(),messages_1$1=require_messages(),models_1=require_models(),resampler_1=require_resampler();exports.DEFAULT_MODEL=`legacy`,exports.ort=ortInstance;let workletFile=`vad.worklet.bundle.min.js`,sileroV5File=`silero_vad_v5.onnx`,sileroLegacyFile=`silero_vad_legacy.onnx`,getDefaultRealTimeVADOptions$1=model=>{let frameProcessorOptions=model===`v5`?frame_processor_1$1.defaultV5FrameProcessorOptions:frame_processor_1$1.defaultLegacyFrameProcessorOptions;return{...frameProcessorOptions,onFrameProcessed:(probabilities,frame$1)=>{},onVADMisfire:()=>{logging_1.log.debug(`VAD misfire`)},onSpeechStart:()=>{logging_1.log.debug(`Detected speech start`)},onSpeechEnd:()=>{logging_1.log.debug(`Detected speech end`)},onSpeechRealStart:()=>{logging_1.log.debug(`Detected real speech start`)},baseAssetPath:`https://cdn.jsdelivr.net/npm/@ricky0123/vad-web@latest/dist/`,onnxWASMBasePath:`https://cdn.jsdelivr.net/npm/onnxruntime-web@1.14.0/dist/`,stream:void 0,ortConfig:void 0,model,workletOptions:{}}};exports.getDefaultRealTimeVADOptions=getDefaultRealTimeVADOptions$1;var MicVAD$1=class MicVAD$1{static async new(options$1={}){let fullOptions={...(0,exports.getDefaultRealTimeVADOptions)(options$1.model??exports.DEFAULT_MODEL),...options$1};(0,frame_processor_1$1.validateOptions)(fullOptions);let stream;stream=fullOptions.stream===void 0?await navigator.mediaDevices.getUserMedia({audio:{...fullOptions.additionalAudioConstraints,channelCount:1,echoCancellation:!0,autoGainControl:!0,noiseSuppression:!0}}):fullOptions.stream;let audioContext=new AudioContext,sourceNode=new MediaStreamAudioSourceNode(audioContext,{mediaStream:stream}),audioNodeVAD=await AudioNodeVAD.new(audioContext,fullOptions);return audioNodeVAD.receive(sourceNode),new MicVAD$1(fullOptions,audioContext,stream,audioNodeVAD,sourceNode)}constructor(options$1,audioContext,stream,audioNodeVAD,sourceNode,listening=!1){this.options=options$1,this.audioContext=audioContext,this.stream=stream,this.audioNodeVAD=audioNodeVAD,this.sourceNode=sourceNode,this.listening=listening,this.pause=()=>{this.audioNodeVAD.pause(),this.listening=!1},this.start=()=>{this.audioNodeVAD.start(),this.listening=!0},this.destroy=()=>{this.listening&&this.pause(),this.options.stream===void 0&&this.stream.getTracks().forEach(track$1=>track$1.stop()),this.sourceNode.disconnect(),this.audioNodeVAD.destroy(),this.audioContext.close()},this.setOptions=options$2=>{this.audioNodeVAD.setFrameProcessorOptions(options$2)}}};exports.MicVAD=MicVAD$1;var AudioNodeVAD=class AudioNodeVAD{static async new(ctx,options$1={}){let fullOptions={...(0,exports.getDefaultRealTimeVADOptions)(options$1.model??exports.DEFAULT_MODEL),...options$1};(0,frame_processor_1$1.validateOptions)(fullOptions),exports.ort.env.wasm.wasmPaths=fullOptions.onnxWASMBasePath,fullOptions.ortConfig!==void 0&&fullOptions.ortConfig(exports.ort);let modelFile=fullOptions.model===`v5`?sileroV5File:sileroLegacyFile,modelURL=fullOptions.baseAssetPath+modelFile,modelFactory=fullOptions.model===`v5`?models_1.SileroV5.new:models_1.SileroLegacy.new,model;try{model=await modelFactory(exports.ort,()=>(0,default_model_fetcher_1$1.defaultModelFetcher)(modelURL))}catch(e$3){throw console.error(`Encountered an error while loading model file ${modelURL}`),e$3}let frameProcessor=new frame_processor_1$1.FrameProcessor(model.process,model.reset_state,{frameSamples:fullOptions.frameSamples,positiveSpeechThreshold:fullOptions.positiveSpeechThreshold,negativeSpeechThreshold:fullOptions.negativeSpeechThreshold,redemptionFrames:fullOptions.redemptionFrames,preSpeechPadFrames:fullOptions.preSpeechPadFrames,minSpeechFrames:fullOptions.minSpeechFrames,submitUserSpeechOnPause:fullOptions.submitUserSpeechOnPause}),audioNodeVAD=new AudioNodeVAD(ctx,fullOptions,frameProcessor);return await audioNodeVAD.setupAudioNode(),audioNodeVAD}constructor(ctx,options$1,frameProcessor){this.ctx=ctx,this.options=options$1,this.bufferIndex=0,this.pause=()=>{this.frameProcessor.pause(this.handleFrameProcessorEvent)},this.start=()=>{this.frameProcessor.resume()},this.receive=node$1=>{node$1.connect(this.audioNode)},this.processFrame=async frame$1=>{await this.frameProcessor.process(frame$1,this.handleFrameProcessorEvent)},this.handleFrameProcessorEvent=ev=>{switch(ev.msg){case messages_1$1.Message.FrameProcessed:this.options.onFrameProcessed(ev.probs,ev.frame);break;case messages_1$1.Message.SpeechStart:this.options.onSpeechStart();break;case messages_1$1.Message.SpeechRealStart:this.options.onSpeechRealStart();break;case messages_1$1.Message.VADMisfire:this.options.onVADMisfire();break;case messages_1$1.Message.SpeechEnd:this.options.onSpeechEnd(ev.audio);break}},this.destroy=()=>{var _this$gainNode;this.audioNode instanceof AudioWorkletNode&&this.audioNode.port.postMessage({message:messages_1$1.Message.SpeechStop}),this.audioNode.disconnect(),(_this$gainNode=this.gainNode)?.disconnect()},this.setFrameProcessorOptions=options$2=>{this.frameProcessor.options={...this.frameProcessor.options,...options$2}},this.frameProcessor=frameProcessor}async setupAudioNode(){let hasAudioWorklet=`audioWorklet`in this.ctx&&typeof AudioWorkletNode==`function`;if(hasAudioWorklet)try{let workletURL=this.options.baseAssetPath+workletFile;await this.ctx.audioWorklet.addModule(workletURL);let workletOptions=this.options.workletOptions??{};workletOptions.processorOptions={...workletOptions.processorOptions??{},frameSamples:this.options.frameSamples},this.audioNode=new AudioWorkletNode(this.ctx,`vad-helper-worklet`,workletOptions),this.audioNode.port.onmessage=async ev=>{var _ev$data;switch((_ev$data=ev.data)?.message){case messages_1$1.Message.AudioFrame:let buffer$1=ev.data.data;buffer$1 instanceof ArrayBuffer||(buffer$1=new ArrayBuffer(ev.data.data.byteLength),new Uint8Array(buffer$1).set(new Uint8Array(ev.data.data)));let frame$1=new Float32Array(buffer$1);await this.processFrame(frame$1);break}};return}catch(e$3){console.log(`AudioWorklet setup failed, falling back to ScriptProcessor`,e$3)}this.resampler=new resampler_1.Resampler({nativeSampleRate:this.ctx.sampleRate,targetSampleRate:16e3,targetFrameSize:this.options.frameSamples??480});let bufferSize=4096;this.audioNode=this.ctx.createScriptProcessor(bufferSize,1,1),this.gainNode=this.ctx.createGain(),this.gainNode.gain.value=0;let processingAudio=!1;this.audioNode.onaudioprocess=async e$3=>{if(!processingAudio){processingAudio=!0;try{let input=e$3.inputBuffer.getChannelData(0),output=e$3.outputBuffer.getChannelData(0);if(output.fill(0),this.resampler){let frames=this.resampler.process(input);for(let frame$1 of frames)await this.processFrame(frame$1)}}catch(error){console.error(`Error processing audio:`,error)}finally{processingAudio=!1}}},this.audioNode.connect(this.gainNode),this.gainNode.connect(this.ctx.destination)}};exports.AudioNodeVAD=AudioNodeVAD}),require_dist=__commonJSMin(exports=>{Object.defineProperty(exports,`__esModule`,{value:!0}),exports.getDefaultRealTimeVADOptions=exports.MicVAD=exports.DEFAULT_MODEL=exports.AudioNodeVAD=exports.utils=exports.NonRealTimeVAD=exports.Message=exports.FrameProcessor=exports.defaultModelFetcher=exports.baseAssetPath=void 0;var asset_path_1=require_asset_path();Object.defineProperty(exports,`baseAssetPath`,{enumerable:!0,get:function(){return asset_path_1.baseAssetPath}});var default_model_fetcher_1=require_default_model_fetcher();Object.defineProperty(exports,`defaultModelFetcher`,{enumerable:!0,get:function(){return default_model_fetcher_1.defaultModelFetcher}});var frame_processor_1=require_frame_processor();Object.defineProperty(exports,`FrameProcessor`,{enumerable:!0,get:function(){return frame_processor_1.FrameProcessor}});var messages_1=require_messages();Object.defineProperty(exports,`Message`,{enumerable:!0,get:function(){return messages_1.Message}});var non_real_time_vad_1=require_non_real_time_vad();Object.defineProperty(exports,`NonRealTimeVAD`,{enumerable:!0,get:function(){return non_real_time_vad_1.NonRealTimeVAD}});let utils_1=require_utils();exports.utils={audioFileToArray:utils_1.audioFileToArray,minFramesForTargetMS:utils_1.minFramesForTargetMS,arrayBufferToBase64:utils_1.arrayBufferToBase64,encodeWAV:utils_1.encodeWAV};var real_time_vad_1=require_real_time_vad();Object.defineProperty(exports,`AudioNodeVAD`,{enumerable:!0,get:function(){return real_time_vad_1.AudioNodeVAD}}),Object.defineProperty(exports,`DEFAULT_MODEL`,{enumerable:!0,get:function(){return real_time_vad_1.DEFAULT_MODEL}}),Object.defineProperty(exports,`MicVAD`,{enumerable:!0,get:function(){return real_time_vad_1.MicVAD}}),Object.defineProperty(exports,`getDefaultRealTimeVADOptions`,{enumerable:!0,get:function(){return real_time_vad_1.getDefaultRealTimeVADOptions}})}),import_dist=__toESM(require_dist());function useMicVAD(deviceId,options$1={}){let opts=merge$2({...(0,import_dist.getDefaultRealTimeVADOptions)(`v5`),preSpeechPadFrames:30,positiveSpeechThreshold:.5,negativeSpeechThreshold:.35,minSpeechFrames:30,auto:!0},options$1),micVad=ref(),microphoneAccess=usePermission(`microphone`);async function update(){if(micVad.value&&(micVad.value.destroy(),micVad.value=void 0,console.warn(`existing MicVAD destroyed`)),!microphoneAccess.value)return;let id=unref(deviceId);if(!id)return;let media=await navigator.mediaDevices.getUserMedia({audio:{deviceId:id}});micVad.value=await import_dist.MicVAD.new({...opts,stream:media}),opts.auto&&micVad.value.start()}return watch(microphoneAccess,update,{immediate:!0}),watch(toRef(deviceId),update,{immediate:!0}),tryOnMounted(update),onUnmounted(()=>{micVad.value&&(micVad.value.destroy(),micVad.value=void 0)}),{destroy:()=>{micVad.value&&(micVad.value.destroy(),micVad.value=void 0)},start:()=>{micVad.value&&micVad.value.start()}}}function useQueue(options$1){let queue$1=ref([]),isProcessing$1=ref(!1),internalEventHandler={add:[],pick:[],processing:[],error:[],processed:[],done:[]},internalHandlerEventHandler={};function on$1(eventName,handler){internalEventHandler[eventName].push(handler)}function emit$1(eventName,...params){let handlers$3=internalEventHandler[eventName];handlers$3.forEach(handler=>{handler(...params)})}function onHandlerEvent(eventName,handler){internalHandlerEventHandler[eventName]=internalHandlerEventHandler[eventName]||[],internalHandlerEventHandler[eventName].push(handler)}function emitHandlerEvent(eventName,...params){let handlers$3=internalHandlerEventHandler[eventName]||[];handlers$3.forEach(handler=>{handler(...params)})}async function add$1(payload){queue$1.value.push(payload),emit$1(`add`,payload)}function pick(){let payload=queue$1.value.shift();if(payload)return emit$1(`pick`,payload),payload}async function handleItem(){if(isProcessing$1.value)return;let payload=pick();if(payload){isProcessing$1.value=!0;for(let handler of options$1.handlers){emit$1(`processing`,payload,handler);try{let result=await handler({data:payload,itemsToBeProcessed:()=>queue$1.value.length,emit:emitHandlerEvent});emit$1(`processed`,payload,result,handler)}catch(err){emit$1(`error`,payload,err,handler);continue}}isProcessing$1.value=!1,emit$1(`done`,payload),queue$1.value.length>0&&handleItem()}}return on$1(`add`,handleItem),on$1(`done`,handleItem),{add:add$1,on:on$1,onHandlerEvent,queue:queue$1}}let Emotion=function(Emotion$1){return Emotion$1.Idle=`<|EMOTE_NEUTRAL|>`,Emotion$1.Happy=`<|EMOTE_HAPPY|>`,Emotion$1.Sad=`<|EMOTE_SAD|>`,Emotion$1.Angry=`<|EMOTE_ANGRY|>`,Emotion$1.Think=`<|EMOTE_THINK|>`,Emotion$1.Surprise=`<|EMOTE_SURPRISE|>`,Emotion$1.Awkward=`<|EMOTE_AWKWARD|>`,Emotion$1.Question=`<|EMOTE_QUESTION|>`,Emotion$1}({});const EMOTION_VALUES=Object.values(Emotion),EmotionHappyMotionName=`Happy`,EmotionSadMotionName=`Sad`,EmotionAngryMotionName=`Angry`,EmotionAwkwardMotionName=`Awkward`,EmotionThinkMotionName=`Think`,EmotionSurpriseMotionName=`Surprise`,EmotionQuestionMotionName=`Question`,EmotionNeutralMotionName=`Idle`,EMOTION_EmotionMotionName_value={[Emotion.Happy]:EmotionHappyMotionName,[Emotion.Sad]:EmotionSadMotionName,[Emotion.Angry]:EmotionAngryMotionName,[Emotion.Think]:EmotionThinkMotionName,[Emotion.Surprise]:EmotionSurpriseMotionName,[Emotion.Awkward]:EmotionAwkwardMotionName,[Emotion.Question]:EmotionQuestionMotionName,[Emotion.Idle]:EmotionNeutralMotionName},EMOTION_VRMExpressionName_value={[Emotion.Happy]:`happy`,[Emotion.Sad]:`sad`,[Emotion.Angry]:`angry`,[Emotion.Think]:void 0,[Emotion.Surprise]:`surprised`,[Emotion.Awkward]:void 0,[Emotion.Question]:void 0,[Emotion.Idle]:void 0},chromaticHue=Symbol(`@proj-airi/chromatic-hue`);function message(prefix,suffix){return{role:`system`,content:[prefix,EMOTION_VALUES.map(emotion=>`- ${emotion}`).join(` `),suffix].join(` @@ -3986,7 +3986,7 @@ function defineStore(id,setup,setupOptions){let options$1,isSetupStore=typeof se * @pixiv/three-vrm-animation is distributed under MIT License * https://github.com/pixiv/three-vrm/blob/release/LICENSE */ -var __async$1=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),__async2$1=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),VRMExpression$1=class extends Object3D{constructor(expressionName){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${expressionName}`,this.expressionName=expressionName,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(bind){this._binds.push(bind)}deleteBind(bind){let index$1=this._binds.indexOf(bind);index$1>=0&&this._binds.splice(index$1,1)}applyWeight(options$1){var _a$2;let actualWeight=this.outputWeight;actualWeight*=(_a$2=options$1?.multiplier)??1,this.isBinary&&actualWeight<1&&(actualWeight=0),this._binds.forEach(bind=>bind.applyWeight(actualWeight))}clearAppliedWeight(){this._binds.forEach(bind=>bind.clearAppliedWeight())}};function extractPrimitivesInternal$1(gltf,nodeIndex,node$1){var _a$2,_b;let json=gltf.parser.json,schemaNode=(_a$2=json.nodes)?.[nodeIndex];if(schemaNode==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${nodeIndex}] of glTF but the node doesn't exist`),null;let meshIndex=schemaNode.mesh;if(meshIndex==null)return null;let schemaMesh=(_b=json.meshes)?.[meshIndex];if(schemaMesh==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${meshIndex}] of glTF but the mesh doesn't exist`),null;let primitiveCount=schemaMesh.primitives.length,primitives=[];return node$1.traverse(object=>{primitives.length{presetNameSet.has(name$2)&&(result[name$2]=expression)}),result}get customExpressionMap(){let result={},presetNameSet=new Set(Object.values(VRMExpressionPresetName$1));return Object.entries(this._expressionMap).forEach(([name$2,expression])=>{presetNameSet.has(name$2)||(result[name$2]=expression)}),result}copy(source){let expressions=this._expressions.concat();return expressions.forEach(expression=>{this.unregisterExpression(expression)}),source._expressions.forEach(expression=>{this.registerExpression(expression)}),this.blinkExpressionNames=source.blinkExpressionNames.concat(),this.lookAtExpressionNames=source.lookAtExpressionNames.concat(),this.mouthExpressionNames=source.mouthExpressionNames.concat(),this}clone(){return new _VRMExpressionManager().copy(this)}getExpression(name$2){var _a$2;return(_a$2=this._expressionMap[name$2])??null}registerExpression(expression){this._expressions.push(expression),this._expressionMap[expression.expressionName]=expression}unregisterExpression(expression){let index$1=this._expressions.indexOf(expression);index$1===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(index$1,1),delete this._expressionMap[expression.expressionName]}getValue(name$2){var _a$2;let expression=this.getExpression(name$2);return(_a$2=expression?.weight)??null}setValue(name$2,weight){let expression=this.getExpression(name$2);expression&&(expression.weight=saturate$1(weight))}resetValues(){this._expressions.forEach(expression=>{expression.weight=0})}getExpressionTrackName(name$2){let expression=this.getExpression(name$2);return expression?`${expression.name}.weight`:null}update(){let weightMultipliers=this._calculateWeightMultipliers();this._expressions.forEach(expression=>{expression.clearAppliedWeight()}),this._expressions.forEach(expression=>{let multiplier=1,name$2=expression.expressionName;this.blinkExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.blink),this.lookAtExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.lookAt),this.mouthExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.mouth),expression.applyWeight({multiplier})})}_calculateWeightMultipliers(){let blink=1,lookAt=1,mouth=1;return this._expressions.forEach(expression=>{blink-=expression.overrideBlinkAmount,lookAt-=expression.overrideLookAtAmount,mouth-=expression.overrideMouthAmount}),blink=Math.max(0,blink),lookAt=Math.max(0,lookAt),mouth=Math.max(0,mouth),{blink,lookAt,mouth}}},VRMExpressionMaterialColorType$1={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},v0ExpressionMaterialColorMap$1={_Color:VRMExpressionMaterialColorType$1.Color,_EmissionColor:VRMExpressionMaterialColorType$1.EmissionColor,_ShadeColor:VRMExpressionMaterialColorType$1.ShadeColor,_RimColor:VRMExpressionMaterialColorType$1.RimColor,_OutlineColor:VRMExpressionMaterialColorType$1.OutlineColor},_color$1=new Color,_VRMExpressionMaterialColorBind$1=class _VRMExpressionMaterialColorBind2{constructor({material,type,targetValue,targetAlpha}){this.material=material,this.type=type,this.targetValue=targetValue,this.targetAlpha=targetAlpha??1;let color$2=this._initColorBindState(),alpha$1=this._initAlphaBindState();this._state={color:color$2,alpha:alpha$1}}applyWeight(weight){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,deltaValue}=color$2,target$1=this.material[propertyName];target$1?.add(_color$1.copy(deltaValue).multiplyScalar(weight))}if(alpha$1!=null){let{propertyName,deltaValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]+=deltaValue*weight)}}clearAppliedWeight(){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,initialValue}=color$2,target$1=this.material[propertyName];target$1?.copy(initialValue)}if(alpha$1!=null){let{propertyName,initialValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]=initialValue)}}_initColorBindState(){var _a$2,_b,_c;let{material,type,targetValue}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[0])??null;if(propertyName==null)return console.warn(`Tried to add a material color bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type is not supported.`),null;let target$1=material[propertyName],initialValue=target$1.clone(),deltaValue=new Color(targetValue.r-initialValue.r,targetValue.g-initialValue.g,targetValue.b-initialValue.b);return{propertyName,initialValue,deltaValue}}_initAlphaBindState(){var _a$2,_b,_c;let{material,type,targetAlpha}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[1])??null;if(propertyName==null&&targetAlpha!==1)return console.warn(`Tried to add a material alpha bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type does not support alpha.`),null;if(propertyName==null)return null;let initialValue=material[propertyName],deltaValue=targetAlpha-initialValue;return{propertyName,initialValue,deltaValue}}_getPropertyNameMap(){var _a$2,_b;return(_b=(_a$2=Object.entries(_VRMExpressionMaterialColorBind2._propertyNameMapMap).find(([distinguisher])=>this.material[distinguisher]===!0))?.[1])??null}};_VRMExpressionMaterialColorBind$1._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 VRMExpressionMaterialColorBind$1=_VRMExpressionMaterialColorBind$1,VRMExpressionMorphTargetBind$1=class{constructor({primitives,index:index$1,weight}){this.primitives=primitives,this.index=index$1,this.weight=weight}applyWeight(weight){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]+=this.weight*weight)})}clearAppliedWeight(){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]=0)})}},_v2$1=new Vector2,_VRMExpressionTextureTransformBind$1=class _VRMExpressionTextureTransformBind2{constructor({material,scale:scale$1,offset:offset$1}){var _a$2,_b;this.material=material,this.scale=scale$1,this.offset=offset$1;let propertyNames=(_a$2=Object.entries(_VRMExpressionTextureTransformBind2._propertyNamesMap).find(([distinguisher])=>material[distinguisher]===!0))?.[1];propertyNames==null?(console.warn(`Tried to add a texture transform bind to the material ${(_b=material.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],propertyNames.forEach(propertyName=>{var _a2;let texture=(_a2=material[propertyName])?.clone();if(!texture)return null;material[propertyName]=texture;let initialOffset=texture.offset.clone(),initialScale=texture.repeat.clone(),deltaOffset=offset$1.clone().sub(initialOffset),deltaScale=scale$1.clone().sub(initialScale);this._properties.push({name:propertyName,initialOffset,deltaOffset,initialScale,deltaScale})}))}applyWeight(weight){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.add(_v2$1.copy(property.deltaOffset).multiplyScalar(weight)),target$1.repeat.add(_v2$1.copy(property.deltaScale).multiplyScalar(weight)))})}clearAppliedWeight(){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.copy(property.initialOffset),target$1.repeat.copy(property.initialScale))})}};_VRMExpressionTextureTransformBind$1._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var VRMExpressionTextureTransformBind$1=_VRMExpressionTextureTransformBind$1,POSSIBLE_SPEC_VERSIONS$1=new Set([`1.0`,`1.0-beta`]),_VRMExpressionLoaderPlugin$1=class _VRMExpressionLoaderPlugin2{get name(){return`VRMExpressionLoaderPlugin`}constructor(parser){this.parser=parser}afterRoot(gltf){return __async2$1(this,null,function*(){gltf.userData.vrmExpressionManager=yield this._import(gltf)})}_import(gltf){return __async2$1(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result||null})}_v1Import(gltf){return __async2$1(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS$1.has(specVersion))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaExpressions=extension$1.expressions;if(!schemaExpressions)return null;let presetNameSet=new Set(Object.values(VRMExpressionPresetName$1)),nameSchemaExpressionMap=new Map;schemaExpressions.preset!=null&&Object.entries(schemaExpressions.preset).forEach(([name$2,schemaExpression])=>{if(schemaExpression!=null){if(!presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${name$2}" detected. Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)}}),schemaExpressions.custom!=null&&Object.entries(schemaExpressions.custom).forEach(([name$2,schemaExpression])=>{if(presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${name$2}". Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)});let manager=new VRMExpressionManager$1;return yield Promise.all(Array.from(nameSchemaExpressionMap.entries()).map(_0=>__async2$1(this,[_0],function*([name$2,schemaExpression]){var _a2,_b2,_c,_d,_e$1,_f,_g;let expression=new VRMExpression$1(name$2);if(gltf.scene.add(expression),expression.isBinary=(_a2=schemaExpression.isBinary)??!1,expression.overrideBlink=(_b2=schemaExpression.overrideBlink)??`none`,expression.overrideLookAt=(_c=schemaExpression.overrideLookAt)??`none`,expression.overrideMouth=(_d=schemaExpression.overrideMouth)??`none`,(_e$1=schemaExpression.morphTargetBinds)==null||_e$1.forEach(bind=>__async2$1(this,null,function*(){var _a3;if(bind.node===void 0||bind.index===void 0)return;let primitives=yield gltfExtractPrimitivesFromNode$1(gltf,bind.node),morphTargetIndex=bind.index;if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{let material=object.material;material&&(Array.isArray(material)?gltfMaterials.push(...material):gltfMaterials.push(material))}),(_f=schemaExpression.materialColorBinds)==null||_f.forEach(bind=>__async2$1(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{expression.addBind(new VRMExpressionMaterialColorBind$1({material,type:bind.type,targetValue:new Color().fromArray(bind.targetValue),targetAlpha:bind.targetValue[3]}))})})),(_g=schemaExpression.textureTransformBinds)==null||_g.forEach(bind=>__async2$1(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{var _a3,_b3;expression.addBind(new VRMExpressionTextureTransformBind$1({material,offset:new Vector2().fromArray((_a3=bind.offset)??[0,0]),scale:new Vector2().fromArray((_b3=bind.scale)??[1,1])}))})}))}manager.registerExpression(expression)}))),manager})}_v0Import(gltf){return __async2$1(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaBlendShape=vrmExt.blendShapeMaster;if(!schemaBlendShape)return null;let manager=new VRMExpressionManager$1,schemaBlendShapeGroups=schemaBlendShape.blendShapeGroups;if(!schemaBlendShapeGroups)return manager;let blendShapeNameSet=new Set;return yield Promise.all(schemaBlendShapeGroups.map(schemaGroup=>__async2$1(this,null,function*(){var _a2;let v0PresetName=schemaGroup.presetName,v1PresetName=v0PresetName!=null&&_VRMExpressionLoaderPlugin2.v0v1PresetNameMap[v0PresetName]||null,name$2=v1PresetName??schemaGroup.name;if(name$2==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(blendShapeNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${v0PresetName} has duplicated entries. Ignoring the expression`);return}blendShapeNameSet.add(name$2);let expression=new VRMExpression$1(name$2);gltf.scene.add(expression),expression.isBinary=(_a2=schemaGroup.isBinary)??!1,schemaGroup.binds&&schemaGroup.binds.forEach(bind=>__async2$1(this,null,function*(){var _a3;if(bind.mesh===void 0||bind.index===void 0)return;let nodesUsingMesh=[];(_a3=json.nodes)==null||_a3.forEach((node$1,i$1)=>{node$1.mesh===bind.mesh&&nodesUsingMesh.push(i$1)});let morphTargetIndex=bind.index;yield Promise.all(nodesUsingMesh.map(nodeIndex=>__async2$1(this,null,function*(){var _a4;let primitives=yield gltfExtractPrimitivesFromNode$1(gltf,nodeIndex);if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{if(materialValue.materialName===void 0||materialValue.propertyName===void 0||materialValue.targetValue===void 0)return;let materials=[];gltf.scene.traverse(object=>{if(object.material){let material=object.material;Array.isArray(material)?materials.push(...material.filter(mtl=>(mtl.name===materialValue.materialName||mtl.name===materialValue.materialName+` (Outline)`)&&materials.indexOf(mtl)===-1)):material.name===materialValue.materialName&&materials.indexOf(material)===-1&&materials.push(material)}});let materialPropertyName=materialValue.propertyName;materials.forEach(material=>{if(materialPropertyName===`_MainTex_ST`){let scale$1=new Vector2(materialValue.targetValue[0],materialValue.targetValue[1]),offset$1=new Vector2(materialValue.targetValue[2],materialValue.targetValue[3]);offset$1.y=1-offset$1.y-scale$1.y,expression.addBind(new VRMExpressionTextureTransformBind$1({material,scale:scale$1,offset:offset$1}));return}let materialColorType=v0ExpressionMaterialColorMap$1[materialPropertyName];if(materialColorType){expression.addBind(new VRMExpressionMaterialColorBind$1({material,type:materialColorType,targetValue:new Color().fromArray(materialValue.targetValue),targetAlpha:materialValue.targetValue[3]}));return}console.warn(materialPropertyName+` is not supported`)})}),manager.registerExpression(expression)}))),manager})}};_VRMExpressionLoaderPlugin$1.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 _VRMFirstPerson$1=class _VRMFirstPerson2{constructor(humanoid,meshAnnotations){this._firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=humanoid,this.meshAnnotations=meshAnnotations}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=source.meshAnnotations.map(annotation=>({meshes:annotation.meshes.concat(),type:annotation.type})),this}clone(){return new _VRMFirstPerson2(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||(this._firstPersonOnlyLayer=firstPersonOnlyLayer,this._thirdPersonOnlyLayer=thirdPersonOnlyLayer,this.meshAnnotations.forEach(item=>{item.meshes.forEach(mesh=>{item.type===`firstPersonOnly`?(mesh.layers.set(this._firstPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._firstPersonOnlyLayer))):item.type===`thirdPersonOnly`?(mesh.layers.set(this._thirdPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer))):item.type===`auto`&&this._createHeadlessModel(mesh)})}),this._initializedLayers=!0)}_excludeTriangles(triangles,bws,skinIndex,exclude){let count$1=0;if(bws!=null&&bws.length>0)for(let i$1=0;i$10&&exclude.includes(skin0[0])||bw0[1]>0&&exclude.includes(skin0[1])||bw0[2]>0&&exclude.includes(skin0[2])||bw0[3]>0&&exclude.includes(skin0[3]))continue;let bw1=bws[b$3],skin1=skinIndex[b$3];if(bw1[0]>0&&exclude.includes(skin1[0])||bw1[1]>0&&exclude.includes(skin1[1])||bw1[2]>0&&exclude.includes(skin1[2])||bw1[3]>0&&exclude.includes(skin1[3]))continue;let bw2=bws[c$4],skin2=skinIndex[c$4];bw2[0]>0&&exclude.includes(skin2[0])||bw2[1]>0&&exclude.includes(skin2[1])||bw2[2]>0&&exclude.includes(skin2[2])||bw2[3]>0&&exclude.includes(skin2[3])||(triangles[count$1++]=a$2,triangles[count$1++]=b$3,triangles[count$1++]=c$4)}return count$1}_createErasedMesh(src,erasingBonesIndex){let dst=new SkinnedMesh(src.geometry.clone(),src.material);dst.name=`${src.name}(erase)`,dst.frustumCulled=src.frustumCulled,dst.layers.set(this._firstPersonOnlyLayer);let geometry=dst.geometry,skinIndexAttr=geometry.getAttribute(`skinIndex`),skinIndexAttrArray=skinIndexAttr instanceof GLBufferAttribute?[]:skinIndexAttr.array,skinIndex=[];for(let i$1=0;i$1{this._isEraseTarget(bone)&&eraseBoneIndexes.push(index$1)}),!eraseBoneIndexes.length){mesh.layers.enable(this._thirdPersonOnlyLayer),mesh.layers.enable(this._firstPersonOnlyLayer);return}mesh.layers.set(this._thirdPersonOnlyLayer);let newMesh=this._createErasedMesh(mesh,eraseBoneIndexes);parent.add(newMesh)}_createHeadlessModel(node$1){if(node$1.type===`Group`)if(node$1.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(node$1))node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer));else{let parent=new Group;parent.name=`_headless_${node$1.name}`,parent.layers.set(this._firstPersonOnlyLayer),node$1.parent.add(parent),node$1.children.filter(child=>child.type===`SkinnedMesh`).forEach(child=>{let skinnedMesh=child;this._createHeadlessModelForSkinnedMesh(parent,skinnedMesh)})}else if(node$1.type===`SkinnedMesh`){let skinnedMesh=node$1;this._createHeadlessModelForSkinnedMesh(node$1.parent,skinnedMesh)}else this._isEraseTarget(node$1)&&(node$1.layers.set(this._thirdPersonOnlyLayer),node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(bone){return bone===this.humanoid.getRawBoneNode(`head`)?!0:bone.parent?this._isEraseTarget(bone.parent):!1}};_VRMFirstPerson$1.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,_VRMFirstPerson$1.DEFAULT_THIRDPERSON_ONLY_LAYER=10;var _v3A$1=new Vector3,_v3B$1=new Vector3,_quatA$1=new Quaternion,VRMHumanBoneParentMap$1={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 quatInvertCompat$1(target$1){return target$1.invert?target$1.invert():target$1.inverse(),target$1}var _v3A2$1=new Vector3,_quatA2$1=new Quaternion,_v3A3$1=new Vector3,_quatA3$1=new Quaternion,_boneWorldPos$1=new Vector3,_quatA4$1=new Quaternion,_quatB$1=new Quaternion,_v3A4$1=new Vector3,_v3B2$1=new Vector3,SQRT_2_OVER_2$1=Math.sqrt(2)/2,QUAT_XY_CW90$1=new Quaternion(0,0,-SQRT_2_OVER_2$1,SQRT_2_OVER_2$1),VEC3_POSITIVE_Y$1=new Vector3(0,1,0),_position$1=new Vector3,_scale$1=new Vector3;function getWorldQuaternionLite$1(object,out){return object.matrixWorld.decompose(_position$1,out,_scale$1),out}function calcAzimuthAltitude$1(vector){return[Math.atan2(-vector.z,vector.x),Math.atan2(vector.y,Math.sqrt(vector.x*vector.x+vector.z*vector.z))]}function sanitizeAngle$1(angle){let roundTurn=Math.round(angle/2/Math.PI);return angle-2*Math.PI*roundTurn}var VEC3_POSITIVE_Z$1=new Vector3(0,0,1),_v3A5$1=new Vector3,_v3B3$1=new Vector3,_v3C$1=new Vector3,_quatA5$1=new Quaternion,_quatB2$1=new Quaternion,_quatC$1=new Quaternion,_quatD$1=new Quaternion,_eulerA$1=new Euler,_VRMLookAt$1=class _VRMLookAt2{constructor(humanoid,applier){this.offsetFromHeadBone=new Vector3,this.autoUpdate=!0,this.faceFront=new Vector3(0,0,1),this.humanoid=humanoid,this.applier=applier,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new Quaternion)}get yaw(){return this._yaw}set yaw(value$1){this._yaw=value$1,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(value$1){this._pitch=value$1,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new Euler)}getEuler(target$1){return target$1.set(MathUtils.DEG2RAD*this._pitch,MathUtils.DEG2RAD*this._yaw,0,`YXZ`)}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(source.offsetFromHeadBone),this.applier=source.applier,this.autoUpdate=source.autoUpdate,this.target=source.target,this.faceFront.copy(source.faceFront),this}clone(){return new _VRMLookAt2(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return target$1.copy(this.offsetFromHeadBone).applyMatrix4(head$1.matrixWorld)}getLookAtWorldQuaternion(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return getWorldQuaternionLite$1(head$1,target$1)}getFaceFrontQuaternion(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z$1)<.01)return target$1.copy(this._restHeadWorldQuaternion).invert();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude$1(this.faceFront);return _eulerA$1.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA$1).premultiply(_quatD$1.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(target$1){return this.getLookAtWorldQuaternion(_quatB2$1),this.getFaceFrontQuaternion(_quatC$1),target$1.copy(VEC3_POSITIVE_Z$1).applyQuaternion(_quatB2$1).applyQuaternion(_quatC$1).applyEuler(this.getEuler(_eulerA$1))}lookAt(position$2){let headRotDiffInv=_quatA5$1.copy(this._restHeadWorldQuaternion).multiply(quatInvertCompat$1(this.getLookAtWorldQuaternion(_quatB2$1))),headPos=this.getLookAtWorldPosition(_v3B3$1),lookAtDir=_v3C$1.copy(position$2).sub(headPos).applyQuaternion(headRotDiffInv).normalize(),[azimuthFrom,altitudeFrom]=calcAzimuthAltitude$1(this.faceFront),[azimuthTo,altitudeTo]=calcAzimuthAltitude$1(lookAtDir),yaw=sanitizeAngle$1(azimuthTo-azimuthFrom),pitch=sanitizeAngle$1(altitudeFrom-altitudeTo);this._yaw=MathUtils.RAD2DEG*yaw,this._pitch=MathUtils.RAD2DEG*pitch,this._needsUpdate=!0}update(delta){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(_v3A5$1)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};_VRMLookAt$1.EULER_ORDER=`YXZ`;var VRMLookAt$1=_VRMLookAt$1,VEC3_POSITIVE_Z2$1=new Vector3(0,0,1),_quatA6$1=new Quaternion,_quatB3$1=new Quaternion,_eulerA2$1=new Euler(0,0,0,`YXZ`),VRMLookAtBoneApplier$1=class{constructor(humanoid,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.humanoid=humanoid,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp,this.faceFront=new Vector3(0,0,1),this._restQuatLeftEye=new Quaternion,this._restQuatRightEye=new Quaternion,this._restLeftEyeParentWorldQuat=new Quaternion,this._restRightEyeParentWorldQuat=new Quaternion;let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`);leftEye&&(this._restQuatLeftEye.copy(leftEye.quaternion),getWorldQuaternionLite$1(leftEye.parent,this._restLeftEyeParentWorldQuat)),rightEye&&(this._restQuatRightEye.copy(rightEye.quaternion),getWorldQuaternionLite$1(rightEye.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(yaw,pitch){let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`),leftEyeNormalized=this.humanoid.getNormalizedBoneNode(`leftEye`),rightEyeNormalized=this.humanoid.getNormalizedBoneNode(`rightEye`);leftEye&&(pitch<0?_eulerA2$1.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2$1.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2$1.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(-yaw):_eulerA2$1.y=MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(yaw),_quatA6$1.setFromEuler(_eulerA2$1),this._getWorldFaceFrontQuat(_quatB3$1),leftEyeNormalized.quaternion.copy(_quatB3$1).multiply(_quatA6$1).multiply(_quatB3$1.invert()),_quatA6$1.copy(this._restLeftEyeParentWorldQuat),leftEye.quaternion.copy(leftEyeNormalized.quaternion).multiply(_quatA6$1).premultiply(_quatA6$1.invert()).multiply(this._restQuatLeftEye)),rightEye&&(pitch<0?_eulerA2$1.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2$1.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2$1.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(-yaw):_eulerA2$1.y=MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(yaw),_quatA6$1.setFromEuler(_eulerA2$1),this._getWorldFaceFrontQuat(_quatB3$1),rightEyeNormalized.quaternion.copy(_quatB3$1).multiply(_quatA6$1).multiply(_quatB3$1.invert()),_quatA6$1.copy(this._restRightEyeParentWorldQuat),rightEye.quaternion.copy(rightEyeNormalized.quaternion).multiply(_quatA6$1).premultiply(_quatA6$1.invert()).multiply(this._restQuatRightEye))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}_getWorldFaceFrontQuat(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z2$1)<.01)return target$1.identity();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude$1(this.faceFront);return _eulerA2$1.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA2$1)}};VRMLookAtBoneApplier$1.type=`bone`;var VRMLookAtExpressionApplier$1=class{constructor(expressions,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.expressions=expressions,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp}applyYawPitch(yaw,pitch){pitch<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-pitch))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(pitch))),yaw<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-yaw))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(yaw)))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}};VRMLookAtExpressionApplier$1.type=`expression`;var RAD2DEG$1=180/Math.PI,_eulerA3=new Euler,VRMLookAtQuaternionProxy=class extends Object3D{constructor(lookAt){super(),this.vrmLookAt=lookAt,this.type=`VRMLookAtQuaternionProxy`;let prevRotationOnChangeCallback=this.rotation._onChangeCallback;this.rotation._onChange(()=>{prevRotationOnChangeCallback(),this._applyToLookAt()});let prevQuaternionOnChangeCallback=this.quaternion._onChangeCallback;this.quaternion._onChange(()=>{prevQuaternionOnChangeCallback(),this._applyToLookAt()})}_applyToLookAt(){_eulerA3.setFromQuaternion(this.quaternion,VRMLookAt$1.EULER_ORDER),this.vrmLookAt.yaw=RAD2DEG$1*_eulerA3.y,this.vrmLookAt.pitch=RAD2DEG$1*_eulerA3.x}};function createVRMAnimationHumanoidTracks(vrmAnimation,humanoid,metaVersion){var _a$2,_b;let translation=new Map,rotation=new Map;for(let[name$2,origTrack]of vrmAnimation.humanoidTracks.rotation.entries()){let nodeName=(_a$2=humanoid.getNormalizedBoneNode(name$2))?.name;if(nodeName!=null){let track$1=new QuaternionKeyframeTrack(`${nodeName}.quaternion`,origTrack.times,origTrack.values.map((v$1,i$1)=>metaVersion===`0`&&i$1%2==0?-v$1:v$1));rotation.set(name$2,track$1)}}for(let[name$2,origTrack]of vrmAnimation.humanoidTracks.translation.entries()){let nodeName=(_b=humanoid.getNormalizedBoneNode(name$2))?.name;if(nodeName!=null){let animationY=vrmAnimation.restHipsPosition.y,humanoidY=humanoid.normalizedRestPose.hips.position[1],scale$1=humanoidY/animationY,track$1=origTrack.clone();track$1.values=track$1.values.map((v$1,i$1)=>(metaVersion===`0`&&i$1%3!=1?-v$1:v$1)*scale$1),track$1.name=`${nodeName}.position`,translation.set(name$2,track$1)}}return{translation,rotation}}function createVRMAnimationExpressionTracks(vrmAnimation,expressionManager){let preset=new Map,custom=new Map;for(let[name$2,origTrack]of vrmAnimation.expressionTracks.preset.entries()){let trackName=expressionManager.getExpressionTrackName(name$2);if(trackName!=null){let track$1=origTrack.clone();track$1.name=trackName,preset.set(name$2,track$1)}}for(let[name$2,origTrack]of vrmAnimation.expressionTracks.custom.entries()){let trackName=expressionManager.getExpressionTrackName(name$2);if(trackName!=null){let track$1=origTrack.clone();track$1.name=trackName,custom.set(name$2,track$1)}}return{preset,custom}}function createVRMAnimationLookAtTrack(vrmAnimation,trackName){if(vrmAnimation.lookAtTrack==null)return null;let track$1=vrmAnimation.lookAtTrack.clone();return track$1.name=trackName,track$1}function createVRMAnimationClip(vrmAnimation,vrm){let tracks=[],humanoidTracks=createVRMAnimationHumanoidTracks(vrmAnimation,vrm.humanoid,vrm.meta.metaVersion);if(tracks.push(...humanoidTracks.translation.values()),tracks.push(...humanoidTracks.rotation.values()),vrm.expressionManager!=null){let expressionTracks=createVRMAnimationExpressionTracks(vrmAnimation,vrm.expressionManager);tracks.push(...expressionTracks.preset.values()),tracks.push(...expressionTracks.custom.values())}if(vrm.lookAt!=null){let proxy=vrm.scene.children.find(obj=>obj instanceof VRMLookAtQuaternionProxy);proxy==null?(console.warn(`createVRMAnimationClip: VRMLookAtQuaternionProxy is not found. Creating a new one automatically. To suppress this warning, create a VRMLookAtQuaternionProxy manually`),proxy=new VRMLookAtQuaternionProxy(vrm.lookAt),proxy.name=`VRMLookAtQuaternionProxy`,vrm.scene.add(proxy)):proxy.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`),proxy.name=`VRMLookAtQuaternionProxy`);let track$1=createVRMAnimationLookAtTrack(vrmAnimation,`${proxy.name}.quaternion`);track$1!=null&&tracks.push(track$1)}return new AnimationClip(`Clip`,vrmAnimation.duration,tracks)}var VRMAnimation=class{constructor(){this.duration=0,this.restHipsPosition=new Vector3,this.humanoidTracks={translation:new Map,rotation:new Map},this.expressionTracks={preset:new Map,custom:new Map},this.lookAtTrack=null}};function arrayChunk(array,every){let N$1=array.length,ret=[],current=[],remaining=0;for(let i$1=0;i$1{let defAnimation=defGltf.animations[iAnimation],animation=this._parseAnimation(clip,defAnimation,nodeMap,worldMatrixMap);return animation.restHipsPosition=restHipsPosition,animation});gltf.userData.vrmAnimations=animations$1})}_createNodeMap(defExtension){var _a$2,_b,_c,_d,_e$1;let humanoidIndexToName=new Map,expressionsIndexToName=new Map,humanBones=(_a$2=defExtension.humanoid)?.humanBones;humanBones&&Object.entries(humanBones).forEach(([name$2,bone])=>{let node$1=bone?.node;node$1!=null&&humanoidIndexToName.set(node$1,name$2)});let preset=(_b=defExtension.expressions)?.preset;preset&&Object.entries(preset).forEach(([name$2,expression])=>{let node$1=expression?.node;node$1!=null&&expressionsIndexToName.set(node$1,name$2)});let custom=(_c=defExtension.expressions)?.custom;custom&&Object.entries(custom).forEach(([name$2,expression])=>{let{node:node$1}=expression;expressionsIndexToName.set(node$1,name$2)});let lookAtIndex=(_e$1=(_d=defExtension.lookAt)?.node)??null;return{humanoidIndexToName,expressionsIndexToName,lookAtIndex}}_createBoneWorldMatrixMap(gltf,defExtension){return __async$1(this,null,function*(){var _a$2,_b;gltf.scene.updateWorldMatrix(!1,!0);let threeNodes=yield gltf.parser.getDependencies(`node`),worldMatrixMap=new Map;if(defExtension.humanoid==null)return worldMatrixMap;for(let[boneName,humanBone]of Object.entries(defExtension.humanoid.humanBones)){let node$1=humanBone?.node;if(node$1!=null){let threeNode=threeNodes[node$1];worldMatrixMap.set(boneName,threeNode.matrixWorld),boneName===`hips`&&worldMatrixMap.set(`hipsParent`,(_b=(_a$2=threeNode.parent)?.matrixWorld)??MAT4_IDENTITY)}}return worldMatrixMap})}_parseAnimation(animationClip,defAnimation,nodeMap,worldMatrixMap){let tracks=animationClip.tracks,defChannels=defAnimation.channels,result=new VRMAnimation;return result.duration=animationClip.duration,defChannels.forEach((channel,iChannel)=>{let{node:node$1,path}=channel.target,origTrack=tracks[iChannel];if(node$1==null)return;let boneName=nodeMap.humanoidIndexToName.get(node$1);if(boneName!=null){let parentBoneName=VRMHumanBoneParentMap$1[boneName];for(;parentBoneName!=null&&worldMatrixMap.get(parentBoneName)==null;)parentBoneName=VRMHumanBoneParentMap$1[parentBoneName];if(parentBoneName??=`hipsParent`,path===`translation`)if(boneName!==`hips`)console.warn(`The loading animation contains a translation track for ${boneName}, which is not permitted in the VRMC_vrm_animation spec. ignoring the track`);else{let hipsParentWorldMatrix=worldMatrixMap.get(`hipsParent`),trackValues=arrayChunk(origTrack.values,3).flatMap(v$1=>_v3A6$1.fromArray(v$1).applyMatrix4(hipsParentWorldMatrix).toArray()),track$1=origTrack.clone();track$1.values=new Float32Array(trackValues),result.humanoidTracks.translation.set(boneName,track$1)}else if(path===`rotation`){let worldMatrix=worldMatrixMap.get(boneName),parentWorldMatrix=worldMatrixMap.get(parentBoneName);worldMatrix.decompose(_v3A6$1,_quatA7$1,_v3A6$1),_quatA7$1.invert(),parentWorldMatrix.decompose(_v3A6$1,_quatB4$1,_v3A6$1);let trackValues=arrayChunk(origTrack.values,4).flatMap(q$1=>_quatC2$1.fromArray(q$1).premultiply(_quatB4$1).multiply(_quatA7$1).toArray()),track$1=origTrack.clone();track$1.values=new Float32Array(trackValues),result.humanoidTracks.rotation.set(boneName,track$1)}else throw Error(`Invalid path "${path}"`);return}let expressionName=nodeMap.expressionsIndexToName.get(node$1);if(expressionName!=null){if(path===`translation`){let times=origTrack.times,values=new Float32Array(origTrack.values.length/3);for(let i$1=0;i$1new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),__async2$1=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),VRMExpression$1=class extends Object3D{constructor(expressionName){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${expressionName}`,this.expressionName=expressionName,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(bind){this._binds.push(bind)}deleteBind(bind){let index$1=this._binds.indexOf(bind);index$1>=0&&this._binds.splice(index$1,1)}applyWeight(options$1){var _a$2;let actualWeight=this.outputWeight;actualWeight*=(_a$2=options$1?.multiplier)??1,this.isBinary&&actualWeight<1&&(actualWeight=0),this._binds.forEach(bind=>bind.applyWeight(actualWeight))}clearAppliedWeight(){this._binds.forEach(bind=>bind.clearAppliedWeight())}};function extractPrimitivesInternal$1(gltf,nodeIndex,node$1){var _a$2,_b;let json=gltf.parser.json,schemaNode=(_a$2=json.nodes)?.[nodeIndex];if(schemaNode==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${nodeIndex}] of glTF but the node doesn't exist`),null;let meshIndex=schemaNode.mesh;if(meshIndex==null)return null;let schemaMesh=(_b=json.meshes)?.[meshIndex];if(schemaMesh==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${meshIndex}] of glTF but the mesh doesn't exist`),null;let primitiveCount=schemaMesh.primitives.length,primitives=[];return node$1.traverse(object=>{primitives.length{presetNameSet.has(name$2)&&(result[name$2]=expression)}),result}get customExpressionMap(){let result={},presetNameSet=new Set(Object.values(VRMExpressionPresetName$1));return Object.entries(this._expressionMap).forEach(([name$2,expression])=>{presetNameSet.has(name$2)||(result[name$2]=expression)}),result}copy(source){let expressions=this._expressions.concat();return expressions.forEach(expression=>{this.unregisterExpression(expression)}),source._expressions.forEach(expression=>{this.registerExpression(expression)}),this.blinkExpressionNames=source.blinkExpressionNames.concat(),this.lookAtExpressionNames=source.lookAtExpressionNames.concat(),this.mouthExpressionNames=source.mouthExpressionNames.concat(),this}clone(){return new _VRMExpressionManager().copy(this)}getExpression(name$2){var _a$2;return(_a$2=this._expressionMap[name$2])??null}registerExpression(expression){this._expressions.push(expression),this._expressionMap[expression.expressionName]=expression}unregisterExpression(expression){let index$1=this._expressions.indexOf(expression);index$1===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(index$1,1),delete this._expressionMap[expression.expressionName]}getValue(name$2){var _a$2;let expression=this.getExpression(name$2);return(_a$2=expression?.weight)??null}setValue(name$2,weight){let expression=this.getExpression(name$2);expression&&(expression.weight=saturate$1(weight))}resetValues(){this._expressions.forEach(expression=>{expression.weight=0})}getExpressionTrackName(name$2){let expression=this.getExpression(name$2);return expression?`${expression.name}.weight`:null}update(){let weightMultipliers=this._calculateWeightMultipliers();this._expressions.forEach(expression=>{expression.clearAppliedWeight()}),this._expressions.forEach(expression=>{let multiplier=1,name$2=expression.expressionName;this.blinkExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.blink),this.lookAtExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.lookAt),this.mouthExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.mouth),expression.applyWeight({multiplier})})}_calculateWeightMultipliers(){let blink=1,lookAt=1,mouth=1;return this._expressions.forEach(expression=>{blink-=expression.overrideBlinkAmount,lookAt-=expression.overrideLookAtAmount,mouth-=expression.overrideMouthAmount}),blink=Math.max(0,blink),lookAt=Math.max(0,lookAt),mouth=Math.max(0,mouth),{blink,lookAt,mouth}}},VRMExpressionMaterialColorType$1={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},v0ExpressionMaterialColorMap$1={_Color:VRMExpressionMaterialColorType$1.Color,_EmissionColor:VRMExpressionMaterialColorType$1.EmissionColor,_ShadeColor:VRMExpressionMaterialColorType$1.ShadeColor,_RimColor:VRMExpressionMaterialColorType$1.RimColor,_OutlineColor:VRMExpressionMaterialColorType$1.OutlineColor},_color$1=new Color,_VRMExpressionMaterialColorBind$1=class _VRMExpressionMaterialColorBind2{constructor({material,type,targetValue,targetAlpha}){this.material=material,this.type=type,this.targetValue=targetValue,this.targetAlpha=targetAlpha??1;let color$2=this._initColorBindState(),alpha$1=this._initAlphaBindState();this._state={color:color$2,alpha:alpha$1}}applyWeight(weight){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,deltaValue}=color$2,target$1=this.material[propertyName];target$1?.add(_color$1.copy(deltaValue).multiplyScalar(weight))}if(alpha$1!=null){let{propertyName,deltaValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]+=deltaValue*weight)}}clearAppliedWeight(){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,initialValue}=color$2,target$1=this.material[propertyName];target$1?.copy(initialValue)}if(alpha$1!=null){let{propertyName,initialValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]=initialValue)}}_initColorBindState(){var _a$2,_b,_c;let{material,type,targetValue}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[0])??null;if(propertyName==null)return console.warn(`Tried to add a material color bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type is not supported.`),null;let target$1=material[propertyName],initialValue=target$1.clone(),deltaValue=new Color(targetValue.r-initialValue.r,targetValue.g-initialValue.g,targetValue.b-initialValue.b);return{propertyName,initialValue,deltaValue}}_initAlphaBindState(){var _a$2,_b,_c;let{material,type,targetAlpha}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[1])??null;if(propertyName==null&&targetAlpha!==1)return console.warn(`Tried to add a material alpha bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type does not support alpha.`),null;if(propertyName==null)return null;let initialValue=material[propertyName],deltaValue=targetAlpha-initialValue;return{propertyName,initialValue,deltaValue}}_getPropertyNameMap(){var _a$2,_b;return(_b=(_a$2=Object.entries(_VRMExpressionMaterialColorBind2._propertyNameMapMap).find(([distinguisher])=>this.material[distinguisher]===!0))?.[1])??null}};_VRMExpressionMaterialColorBind$1._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 VRMExpressionMaterialColorBind$1=_VRMExpressionMaterialColorBind$1,VRMExpressionMorphTargetBind$1=class{constructor({primitives,index:index$1,weight}){this.primitives=primitives,this.index=index$1,this.weight=weight}applyWeight(weight){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]+=this.weight*weight)})}clearAppliedWeight(){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]=0)})}},_v2$1=new Vector2,_VRMExpressionTextureTransformBind$1=class _VRMExpressionTextureTransformBind2{constructor({material,scale:scale$1,offset:offset$1}){var _a$2,_b;this.material=material,this.scale=scale$1,this.offset=offset$1;let propertyNames=(_a$2=Object.entries(_VRMExpressionTextureTransformBind2._propertyNamesMap).find(([distinguisher])=>material[distinguisher]===!0))?.[1];propertyNames==null?(console.warn(`Tried to add a texture transform bind to the material ${(_b=material.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],propertyNames.forEach(propertyName=>{var _a2;let texture=(_a2=material[propertyName])?.clone();if(!texture)return null;material[propertyName]=texture;let initialOffset=texture.offset.clone(),initialScale=texture.repeat.clone(),deltaOffset=offset$1.clone().sub(initialOffset),deltaScale=scale$1.clone().sub(initialScale);this._properties.push({name:propertyName,initialOffset,deltaOffset,initialScale,deltaScale})}))}applyWeight(weight){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.add(_v2$1.copy(property.deltaOffset).multiplyScalar(weight)),target$1.repeat.add(_v2$1.copy(property.deltaScale).multiplyScalar(weight)))})}clearAppliedWeight(){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.copy(property.initialOffset),target$1.repeat.copy(property.initialScale))})}};_VRMExpressionTextureTransformBind$1._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var VRMExpressionTextureTransformBind$1=_VRMExpressionTextureTransformBind$1,POSSIBLE_SPEC_VERSIONS$1=new Set([`1.0`,`1.0-beta`]),_VRMExpressionLoaderPlugin$1=class _VRMExpressionLoaderPlugin2{get name(){return`VRMExpressionLoaderPlugin`}constructor(parser){this.parser=parser}afterRoot(gltf){return __async2$1(this,null,function*(){gltf.userData.vrmExpressionManager=yield this._import(gltf)})}_import(gltf){return __async2$1(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result||null})}_v1Import(gltf){return __async2$1(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS$1.has(specVersion))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaExpressions=extension$1.expressions;if(!schemaExpressions)return null;let presetNameSet=new Set(Object.values(VRMExpressionPresetName$1)),nameSchemaExpressionMap=new Map;schemaExpressions.preset!=null&&Object.entries(schemaExpressions.preset).forEach(([name$2,schemaExpression])=>{if(schemaExpression!=null){if(!presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${name$2}" detected. Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)}}),schemaExpressions.custom!=null&&Object.entries(schemaExpressions.custom).forEach(([name$2,schemaExpression])=>{if(presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${name$2}". Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)});let manager=new VRMExpressionManager$1;return yield Promise.all(Array.from(nameSchemaExpressionMap.entries()).map(_0=>__async2$1(this,[_0],function*([name$2,schemaExpression]){var _a2,_b2,_c,_d,_e$2,_f,_g;let expression=new VRMExpression$1(name$2);if(gltf.scene.add(expression),expression.isBinary=(_a2=schemaExpression.isBinary)??!1,expression.overrideBlink=(_b2=schemaExpression.overrideBlink)??`none`,expression.overrideLookAt=(_c=schemaExpression.overrideLookAt)??`none`,expression.overrideMouth=(_d=schemaExpression.overrideMouth)??`none`,(_e$2=schemaExpression.morphTargetBinds)==null||_e$2.forEach(bind=>__async2$1(this,null,function*(){var _a3;if(bind.node===void 0||bind.index===void 0)return;let primitives=yield gltfExtractPrimitivesFromNode$1(gltf,bind.node),morphTargetIndex=bind.index;if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{let material=object.material;material&&(Array.isArray(material)?gltfMaterials.push(...material):gltfMaterials.push(material))}),(_f=schemaExpression.materialColorBinds)==null||_f.forEach(bind=>__async2$1(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{expression.addBind(new VRMExpressionMaterialColorBind$1({material,type:bind.type,targetValue:new Color().fromArray(bind.targetValue),targetAlpha:bind.targetValue[3]}))})})),(_g=schemaExpression.textureTransformBinds)==null||_g.forEach(bind=>__async2$1(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{var _a3,_b3;expression.addBind(new VRMExpressionTextureTransformBind$1({material,offset:new Vector2().fromArray((_a3=bind.offset)??[0,0]),scale:new Vector2().fromArray((_b3=bind.scale)??[1,1])}))})}))}manager.registerExpression(expression)}))),manager})}_v0Import(gltf){return __async2$1(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaBlendShape=vrmExt.blendShapeMaster;if(!schemaBlendShape)return null;let manager=new VRMExpressionManager$1,schemaBlendShapeGroups=schemaBlendShape.blendShapeGroups;if(!schemaBlendShapeGroups)return manager;let blendShapeNameSet=new Set;return yield Promise.all(schemaBlendShapeGroups.map(schemaGroup=>__async2$1(this,null,function*(){var _a2;let v0PresetName=schemaGroup.presetName,v1PresetName=v0PresetName!=null&&_VRMExpressionLoaderPlugin2.v0v1PresetNameMap[v0PresetName]||null,name$2=v1PresetName??schemaGroup.name;if(name$2==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(blendShapeNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${v0PresetName} has duplicated entries. Ignoring the expression`);return}blendShapeNameSet.add(name$2);let expression=new VRMExpression$1(name$2);gltf.scene.add(expression),expression.isBinary=(_a2=schemaGroup.isBinary)??!1,schemaGroup.binds&&schemaGroup.binds.forEach(bind=>__async2$1(this,null,function*(){var _a3;if(bind.mesh===void 0||bind.index===void 0)return;let nodesUsingMesh=[];(_a3=json.nodes)==null||_a3.forEach((node$1,i$1)=>{node$1.mesh===bind.mesh&&nodesUsingMesh.push(i$1)});let morphTargetIndex=bind.index;yield Promise.all(nodesUsingMesh.map(nodeIndex=>__async2$1(this,null,function*(){var _a4;let primitives=yield gltfExtractPrimitivesFromNode$1(gltf,nodeIndex);if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{if(materialValue.materialName===void 0||materialValue.propertyName===void 0||materialValue.targetValue===void 0)return;let materials=[];gltf.scene.traverse(object=>{if(object.material){let material=object.material;Array.isArray(material)?materials.push(...material.filter(mtl=>(mtl.name===materialValue.materialName||mtl.name===materialValue.materialName+` (Outline)`)&&materials.indexOf(mtl)===-1)):material.name===materialValue.materialName&&materials.indexOf(material)===-1&&materials.push(material)}});let materialPropertyName=materialValue.propertyName;materials.forEach(material=>{if(materialPropertyName===`_MainTex_ST`){let scale$1=new Vector2(materialValue.targetValue[0],materialValue.targetValue[1]),offset$1=new Vector2(materialValue.targetValue[2],materialValue.targetValue[3]);offset$1.y=1-offset$1.y-scale$1.y,expression.addBind(new VRMExpressionTextureTransformBind$1({material,scale:scale$1,offset:offset$1}));return}let materialColorType=v0ExpressionMaterialColorMap$1[materialPropertyName];if(materialColorType){expression.addBind(new VRMExpressionMaterialColorBind$1({material,type:materialColorType,targetValue:new Color().fromArray(materialValue.targetValue),targetAlpha:materialValue.targetValue[3]}));return}console.warn(materialPropertyName+` is not supported`)})}),manager.registerExpression(expression)}))),manager})}};_VRMExpressionLoaderPlugin$1.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 _VRMFirstPerson$1=class _VRMFirstPerson2{constructor(humanoid,meshAnnotations){this._firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=humanoid,this.meshAnnotations=meshAnnotations}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=source.meshAnnotations.map(annotation=>({meshes:annotation.meshes.concat(),type:annotation.type})),this}clone(){return new _VRMFirstPerson2(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||(this._firstPersonOnlyLayer=firstPersonOnlyLayer,this._thirdPersonOnlyLayer=thirdPersonOnlyLayer,this.meshAnnotations.forEach(item=>{item.meshes.forEach(mesh=>{item.type===`firstPersonOnly`?(mesh.layers.set(this._firstPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._firstPersonOnlyLayer))):item.type===`thirdPersonOnly`?(mesh.layers.set(this._thirdPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer))):item.type===`auto`&&this._createHeadlessModel(mesh)})}),this._initializedLayers=!0)}_excludeTriangles(triangles,bws,skinIndex,exclude){let count$1=0;if(bws!=null&&bws.length>0)for(let i$1=0;i$10&&exclude.includes(skin0[0])||bw0[1]>0&&exclude.includes(skin0[1])||bw0[2]>0&&exclude.includes(skin0[2])||bw0[3]>0&&exclude.includes(skin0[3]))continue;let bw1=bws[b$3],skin1=skinIndex[b$3];if(bw1[0]>0&&exclude.includes(skin1[0])||bw1[1]>0&&exclude.includes(skin1[1])||bw1[2]>0&&exclude.includes(skin1[2])||bw1[3]>0&&exclude.includes(skin1[3]))continue;let bw2=bws[c$4],skin2=skinIndex[c$4];bw2[0]>0&&exclude.includes(skin2[0])||bw2[1]>0&&exclude.includes(skin2[1])||bw2[2]>0&&exclude.includes(skin2[2])||bw2[3]>0&&exclude.includes(skin2[3])||(triangles[count$1++]=a$2,triangles[count$1++]=b$3,triangles[count$1++]=c$4)}return count$1}_createErasedMesh(src,erasingBonesIndex){let dst=new SkinnedMesh(src.geometry.clone(),src.material);dst.name=`${src.name}(erase)`,dst.frustumCulled=src.frustumCulled,dst.layers.set(this._firstPersonOnlyLayer);let geometry=dst.geometry,skinIndexAttr=geometry.getAttribute(`skinIndex`),skinIndexAttrArray=skinIndexAttr instanceof GLBufferAttribute?[]:skinIndexAttr.array,skinIndex=[];for(let i$1=0;i$1{this._isEraseTarget(bone)&&eraseBoneIndexes.push(index$1)}),!eraseBoneIndexes.length){mesh.layers.enable(this._thirdPersonOnlyLayer),mesh.layers.enable(this._firstPersonOnlyLayer);return}mesh.layers.set(this._thirdPersonOnlyLayer);let newMesh=this._createErasedMesh(mesh,eraseBoneIndexes);parent.add(newMesh)}_createHeadlessModel(node$1){if(node$1.type===`Group`)if(node$1.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(node$1))node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer));else{let parent=new Group;parent.name=`_headless_${node$1.name}`,parent.layers.set(this._firstPersonOnlyLayer),node$1.parent.add(parent),node$1.children.filter(child=>child.type===`SkinnedMesh`).forEach(child=>{let skinnedMesh=child;this._createHeadlessModelForSkinnedMesh(parent,skinnedMesh)})}else if(node$1.type===`SkinnedMesh`){let skinnedMesh=node$1;this._createHeadlessModelForSkinnedMesh(node$1.parent,skinnedMesh)}else this._isEraseTarget(node$1)&&(node$1.layers.set(this._thirdPersonOnlyLayer),node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(bone){return bone===this.humanoid.getRawBoneNode(`head`)?!0:bone.parent?this._isEraseTarget(bone.parent):!1}};_VRMFirstPerson$1.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,_VRMFirstPerson$1.DEFAULT_THIRDPERSON_ONLY_LAYER=10;var _v3A$1=new Vector3,_v3B$1=new Vector3,_quatA$1=new Quaternion,VRMHumanBoneParentMap$1={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 quatInvertCompat$1(target$1){return target$1.invert?target$1.invert():target$1.inverse(),target$1}var _v3A2$1=new Vector3,_quatA2$1=new Quaternion,_v3A3$1=new Vector3,_quatA3$1=new Quaternion,_boneWorldPos$1=new Vector3,_quatA4$1=new Quaternion,_quatB$1=new Quaternion,_v3A4$1=new Vector3,_v3B2$1=new Vector3,SQRT_2_OVER_2$1=Math.sqrt(2)/2,QUAT_XY_CW90$1=new Quaternion(0,0,-SQRT_2_OVER_2$1,SQRT_2_OVER_2$1),VEC3_POSITIVE_Y$1=new Vector3(0,1,0),_position$1=new Vector3,_scale$1=new Vector3;function getWorldQuaternionLite$1(object,out){return object.matrixWorld.decompose(_position$1,out,_scale$1),out}function calcAzimuthAltitude$1(vector){return[Math.atan2(-vector.z,vector.x),Math.atan2(vector.y,Math.sqrt(vector.x*vector.x+vector.z*vector.z))]}function sanitizeAngle$1(angle){let roundTurn=Math.round(angle/2/Math.PI);return angle-2*Math.PI*roundTurn}var VEC3_POSITIVE_Z$1=new Vector3(0,0,1),_v3A5$1=new Vector3,_v3B3$1=new Vector3,_v3C$1=new Vector3,_quatA5$1=new Quaternion,_quatB2$1=new Quaternion,_quatC$1=new Quaternion,_quatD$1=new Quaternion,_eulerA$1=new Euler,_VRMLookAt$1=class _VRMLookAt2{constructor(humanoid,applier){this.offsetFromHeadBone=new Vector3,this.autoUpdate=!0,this.faceFront=new Vector3(0,0,1),this.humanoid=humanoid,this.applier=applier,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new Quaternion)}get yaw(){return this._yaw}set yaw(value$1){this._yaw=value$1,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(value$1){this._pitch=value$1,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new Euler)}getEuler(target$1){return target$1.set(MathUtils.DEG2RAD*this._pitch,MathUtils.DEG2RAD*this._yaw,0,`YXZ`)}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(source.offsetFromHeadBone),this.applier=source.applier,this.autoUpdate=source.autoUpdate,this.target=source.target,this.faceFront.copy(source.faceFront),this}clone(){return new _VRMLookAt2(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return target$1.copy(this.offsetFromHeadBone).applyMatrix4(head$1.matrixWorld)}getLookAtWorldQuaternion(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return getWorldQuaternionLite$1(head$1,target$1)}getFaceFrontQuaternion(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z$1)<.01)return target$1.copy(this._restHeadWorldQuaternion).invert();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude$1(this.faceFront);return _eulerA$1.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA$1).premultiply(_quatD$1.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(target$1){return this.getLookAtWorldQuaternion(_quatB2$1),this.getFaceFrontQuaternion(_quatC$1),target$1.copy(VEC3_POSITIVE_Z$1).applyQuaternion(_quatB2$1).applyQuaternion(_quatC$1).applyEuler(this.getEuler(_eulerA$1))}lookAt(position$2){let headRotDiffInv=_quatA5$1.copy(this._restHeadWorldQuaternion).multiply(quatInvertCompat$1(this.getLookAtWorldQuaternion(_quatB2$1))),headPos=this.getLookAtWorldPosition(_v3B3$1),lookAtDir=_v3C$1.copy(position$2).sub(headPos).applyQuaternion(headRotDiffInv).normalize(),[azimuthFrom,altitudeFrom]=calcAzimuthAltitude$1(this.faceFront),[azimuthTo,altitudeTo]=calcAzimuthAltitude$1(lookAtDir),yaw=sanitizeAngle$1(azimuthTo-azimuthFrom),pitch=sanitizeAngle$1(altitudeFrom-altitudeTo);this._yaw=MathUtils.RAD2DEG*yaw,this._pitch=MathUtils.RAD2DEG*pitch,this._needsUpdate=!0}update(delta){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(_v3A5$1)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};_VRMLookAt$1.EULER_ORDER=`YXZ`;var VRMLookAt$1=_VRMLookAt$1,VEC3_POSITIVE_Z2$1=new Vector3(0,0,1),_quatA6$1=new Quaternion,_quatB3$1=new Quaternion,_eulerA2$1=new Euler(0,0,0,`YXZ`),VRMLookAtBoneApplier$1=class{constructor(humanoid,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.humanoid=humanoid,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp,this.faceFront=new Vector3(0,0,1),this._restQuatLeftEye=new Quaternion,this._restQuatRightEye=new Quaternion,this._restLeftEyeParentWorldQuat=new Quaternion,this._restRightEyeParentWorldQuat=new Quaternion;let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`);leftEye&&(this._restQuatLeftEye.copy(leftEye.quaternion),getWorldQuaternionLite$1(leftEye.parent,this._restLeftEyeParentWorldQuat)),rightEye&&(this._restQuatRightEye.copy(rightEye.quaternion),getWorldQuaternionLite$1(rightEye.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(yaw,pitch){let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`),leftEyeNormalized=this.humanoid.getNormalizedBoneNode(`leftEye`),rightEyeNormalized=this.humanoid.getNormalizedBoneNode(`rightEye`);leftEye&&(pitch<0?_eulerA2$1.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2$1.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2$1.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(-yaw):_eulerA2$1.y=MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(yaw),_quatA6$1.setFromEuler(_eulerA2$1),this._getWorldFaceFrontQuat(_quatB3$1),leftEyeNormalized.quaternion.copy(_quatB3$1).multiply(_quatA6$1).multiply(_quatB3$1.invert()),_quatA6$1.copy(this._restLeftEyeParentWorldQuat),leftEye.quaternion.copy(leftEyeNormalized.quaternion).multiply(_quatA6$1).premultiply(_quatA6$1.invert()).multiply(this._restQuatLeftEye)),rightEye&&(pitch<0?_eulerA2$1.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2$1.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2$1.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(-yaw):_eulerA2$1.y=MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(yaw),_quatA6$1.setFromEuler(_eulerA2$1),this._getWorldFaceFrontQuat(_quatB3$1),rightEyeNormalized.quaternion.copy(_quatB3$1).multiply(_quatA6$1).multiply(_quatB3$1.invert()),_quatA6$1.copy(this._restRightEyeParentWorldQuat),rightEye.quaternion.copy(rightEyeNormalized.quaternion).multiply(_quatA6$1).premultiply(_quatA6$1.invert()).multiply(this._restQuatRightEye))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}_getWorldFaceFrontQuat(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z2$1)<.01)return target$1.identity();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude$1(this.faceFront);return _eulerA2$1.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA2$1)}};VRMLookAtBoneApplier$1.type=`bone`;var VRMLookAtExpressionApplier$1=class{constructor(expressions,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.expressions=expressions,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp}applyYawPitch(yaw,pitch){pitch<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-pitch))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(pitch))),yaw<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-yaw))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(yaw)))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}};VRMLookAtExpressionApplier$1.type=`expression`;var RAD2DEG$1=180/Math.PI,_eulerA3=new Euler,VRMLookAtQuaternionProxy=class extends Object3D{constructor(lookAt){super(),this.vrmLookAt=lookAt,this.type=`VRMLookAtQuaternionProxy`;let prevRotationOnChangeCallback=this.rotation._onChangeCallback;this.rotation._onChange(()=>{prevRotationOnChangeCallback(),this._applyToLookAt()});let prevQuaternionOnChangeCallback=this.quaternion._onChangeCallback;this.quaternion._onChange(()=>{prevQuaternionOnChangeCallback(),this._applyToLookAt()})}_applyToLookAt(){_eulerA3.setFromQuaternion(this.quaternion,VRMLookAt$1.EULER_ORDER),this.vrmLookAt.yaw=RAD2DEG$1*_eulerA3.y,this.vrmLookAt.pitch=RAD2DEG$1*_eulerA3.x}};function createVRMAnimationHumanoidTracks(vrmAnimation,humanoid,metaVersion){var _a$2,_b;let translation=new Map,rotation=new Map;for(let[name$2,origTrack]of vrmAnimation.humanoidTracks.rotation.entries()){let nodeName=(_a$2=humanoid.getNormalizedBoneNode(name$2))?.name;if(nodeName!=null){let track$1=new QuaternionKeyframeTrack(`${nodeName}.quaternion`,origTrack.times,origTrack.values.map((v$1,i$1)=>metaVersion===`0`&&i$1%2==0?-v$1:v$1));rotation.set(name$2,track$1)}}for(let[name$2,origTrack]of vrmAnimation.humanoidTracks.translation.entries()){let nodeName=(_b=humanoid.getNormalizedBoneNode(name$2))?.name;if(nodeName!=null){let animationY=vrmAnimation.restHipsPosition.y,humanoidY=humanoid.normalizedRestPose.hips.position[1],scale$1=humanoidY/animationY,track$1=origTrack.clone();track$1.values=track$1.values.map((v$1,i$1)=>(metaVersion===`0`&&i$1%3!=1?-v$1:v$1)*scale$1),track$1.name=`${nodeName}.position`,translation.set(name$2,track$1)}}return{translation,rotation}}function createVRMAnimationExpressionTracks(vrmAnimation,expressionManager){let preset=new Map,custom=new Map;for(let[name$2,origTrack]of vrmAnimation.expressionTracks.preset.entries()){let trackName=expressionManager.getExpressionTrackName(name$2);if(trackName!=null){let track$1=origTrack.clone();track$1.name=trackName,preset.set(name$2,track$1)}}for(let[name$2,origTrack]of vrmAnimation.expressionTracks.custom.entries()){let trackName=expressionManager.getExpressionTrackName(name$2);if(trackName!=null){let track$1=origTrack.clone();track$1.name=trackName,custom.set(name$2,track$1)}}return{preset,custom}}function createVRMAnimationLookAtTrack(vrmAnimation,trackName){if(vrmAnimation.lookAtTrack==null)return null;let track$1=vrmAnimation.lookAtTrack.clone();return track$1.name=trackName,track$1}function createVRMAnimationClip(vrmAnimation,vrm){let tracks=[],humanoidTracks=createVRMAnimationHumanoidTracks(vrmAnimation,vrm.humanoid,vrm.meta.metaVersion);if(tracks.push(...humanoidTracks.translation.values()),tracks.push(...humanoidTracks.rotation.values()),vrm.expressionManager!=null){let expressionTracks=createVRMAnimationExpressionTracks(vrmAnimation,vrm.expressionManager);tracks.push(...expressionTracks.preset.values()),tracks.push(...expressionTracks.custom.values())}if(vrm.lookAt!=null){let proxy=vrm.scene.children.find(obj=>obj instanceof VRMLookAtQuaternionProxy);proxy==null?(console.warn(`createVRMAnimationClip: VRMLookAtQuaternionProxy is not found. Creating a new one automatically. To suppress this warning, create a VRMLookAtQuaternionProxy manually`),proxy=new VRMLookAtQuaternionProxy(vrm.lookAt),proxy.name=`VRMLookAtQuaternionProxy`,vrm.scene.add(proxy)):proxy.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`),proxy.name=`VRMLookAtQuaternionProxy`);let track$1=createVRMAnimationLookAtTrack(vrmAnimation,`${proxy.name}.quaternion`);track$1!=null&&tracks.push(track$1)}return new AnimationClip(`Clip`,vrmAnimation.duration,tracks)}var VRMAnimation=class{constructor(){this.duration=0,this.restHipsPosition=new Vector3,this.humanoidTracks={translation:new Map,rotation:new Map},this.expressionTracks={preset:new Map,custom:new Map},this.lookAtTrack=null}};function arrayChunk(array,every){let N$1=array.length,ret=[],current=[],remaining=0;for(let i$1=0;i$1{let defAnimation=defGltf.animations[iAnimation],animation=this._parseAnimation(clip,defAnimation,nodeMap,worldMatrixMap);return animation.restHipsPosition=restHipsPosition,animation});gltf.userData.vrmAnimations=animations$1})}_createNodeMap(defExtension){var _a$2,_b,_c,_d,_e$2;let humanoidIndexToName=new Map,expressionsIndexToName=new Map,humanBones=(_a$2=defExtension.humanoid)?.humanBones;humanBones&&Object.entries(humanBones).forEach(([name$2,bone])=>{let node$1=bone?.node;node$1!=null&&humanoidIndexToName.set(node$1,name$2)});let preset=(_b=defExtension.expressions)?.preset;preset&&Object.entries(preset).forEach(([name$2,expression])=>{let node$1=expression?.node;node$1!=null&&expressionsIndexToName.set(node$1,name$2)});let custom=(_c=defExtension.expressions)?.custom;custom&&Object.entries(custom).forEach(([name$2,expression])=>{let{node:node$1}=expression;expressionsIndexToName.set(node$1,name$2)});let lookAtIndex=(_e$2=(_d=defExtension.lookAt)?.node)??null;return{humanoidIndexToName,expressionsIndexToName,lookAtIndex}}_createBoneWorldMatrixMap(gltf,defExtension){return __async$1(this,null,function*(){var _a$2,_b;gltf.scene.updateWorldMatrix(!1,!0);let threeNodes=yield gltf.parser.getDependencies(`node`),worldMatrixMap=new Map;if(defExtension.humanoid==null)return worldMatrixMap;for(let[boneName,humanBone]of Object.entries(defExtension.humanoid.humanBones)){let node$1=humanBone?.node;if(node$1!=null){let threeNode=threeNodes[node$1];worldMatrixMap.set(boneName,threeNode.matrixWorld),boneName===`hips`&&worldMatrixMap.set(`hipsParent`,(_b=(_a$2=threeNode.parent)?.matrixWorld)??MAT4_IDENTITY)}}return worldMatrixMap})}_parseAnimation(animationClip,defAnimation,nodeMap,worldMatrixMap){let tracks=animationClip.tracks,defChannels=defAnimation.channels,result=new VRMAnimation;return result.duration=animationClip.duration,defChannels.forEach((channel,iChannel)=>{let{node:node$1,path}=channel.target,origTrack=tracks[iChannel];if(node$1==null)return;let boneName=nodeMap.humanoidIndexToName.get(node$1);if(boneName!=null){let parentBoneName=VRMHumanBoneParentMap$1[boneName];for(;parentBoneName!=null&&worldMatrixMap.get(parentBoneName)==null;)parentBoneName=VRMHumanBoneParentMap$1[parentBoneName];if(parentBoneName??=`hipsParent`,path===`translation`)if(boneName!==`hips`)console.warn(`The loading animation contains a translation track for ${boneName}, which is not permitted in the VRMC_vrm_animation spec. ignoring the track`);else{let hipsParentWorldMatrix=worldMatrixMap.get(`hipsParent`),trackValues=arrayChunk(origTrack.values,3).flatMap(v$1=>_v3A6$1.fromArray(v$1).applyMatrix4(hipsParentWorldMatrix).toArray()),track$1=origTrack.clone();track$1.values=new Float32Array(trackValues),result.humanoidTracks.translation.set(boneName,track$1)}else if(path===`rotation`){let worldMatrix=worldMatrixMap.get(boneName),parentWorldMatrix=worldMatrixMap.get(parentBoneName);worldMatrix.decompose(_v3A6$1,_quatA7$1,_v3A6$1),_quatA7$1.invert(),parentWorldMatrix.decompose(_v3A6$1,_quatB4$1,_v3A6$1);let trackValues=arrayChunk(origTrack.values,4).flatMap(q$1=>_quatC2$1.fromArray(q$1).premultiply(_quatB4$1).multiply(_quatA7$1).toArray()),track$1=origTrack.clone();track$1.values=new Float32Array(trackValues),result.humanoidTracks.rotation.set(boneName,track$1)}else throw Error(`Invalid path "${path}"`);return}let expressionName=nodeMap.expressionsIndexToName.get(node$1);if(expressionName!=null){if(path===`translation`){let times=origTrack.times,values=new Float32Array(origTrack.values.length/3);for(let i$1=0;i$1new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),__async2=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),VRMExpression=class extends Object3D{constructor(expressionName){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${expressionName}`,this.expressionName=expressionName,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(bind){this._binds.push(bind)}deleteBind(bind){let index$1=this._binds.indexOf(bind);index$1>=0&&this._binds.splice(index$1,1)}applyWeight(options$1){var _a$2;let actualWeight=this.outputWeight;actualWeight*=(_a$2=options$1?.multiplier)??1,this.isBinary&&actualWeight<1&&(actualWeight=0),this._binds.forEach(bind=>bind.applyWeight(actualWeight))}clearAppliedWeight(){this._binds.forEach(bind=>bind.clearAppliedWeight())}};function extractPrimitivesInternal(gltf,nodeIndex,node$1){var _a$2,_b;let json=gltf.parser.json,schemaNode=(_a$2=json.nodes)?.[nodeIndex];if(schemaNode==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${nodeIndex}] of glTF but the node doesn't exist`),null;let meshIndex=schemaNode.mesh;if(meshIndex==null)return null;let schemaMesh=(_b=json.meshes)?.[meshIndex];if(schemaMesh==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${meshIndex}] of glTF but the mesh doesn't exist`),null;let primitiveCount=schemaMesh.primitives.length,primitives=[];return node$1.traverse(object=>{primitives.length{let result=extractPrimitivesInternal(gltf,index$1,node$1);result!=null&&map.set(index$1,result)}),map})}var VRMExpressionPresetName={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 saturate(value$1){return Math.max(Math.min(value$1,1),0)}var VRMExpressionManager=class _VRMExpressionManager{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 result={},presetNameSet=new Set(Object.values(VRMExpressionPresetName));return Object.entries(this._expressionMap).forEach(([name$2,expression])=>{presetNameSet.has(name$2)&&(result[name$2]=expression)}),result}get customExpressionMap(){let result={},presetNameSet=new Set(Object.values(VRMExpressionPresetName));return Object.entries(this._expressionMap).forEach(([name$2,expression])=>{presetNameSet.has(name$2)||(result[name$2]=expression)}),result}copy(source){let expressions=this._expressions.concat();return expressions.forEach(expression=>{this.unregisterExpression(expression)}),source._expressions.forEach(expression=>{this.registerExpression(expression)}),this.blinkExpressionNames=source.blinkExpressionNames.concat(),this.lookAtExpressionNames=source.lookAtExpressionNames.concat(),this.mouthExpressionNames=source.mouthExpressionNames.concat(),this}clone(){return new _VRMExpressionManager().copy(this)}getExpression(name$2){var _a$2;return(_a$2=this._expressionMap[name$2])??null}registerExpression(expression){this._expressions.push(expression),this._expressionMap[expression.expressionName]=expression}unregisterExpression(expression){let index$1=this._expressions.indexOf(expression);index$1===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(index$1,1),delete this._expressionMap[expression.expressionName]}getValue(name$2){var _a$2;let expression=this.getExpression(name$2);return(_a$2=expression?.weight)??null}setValue(name$2,weight){let expression=this.getExpression(name$2);expression&&(expression.weight=saturate(weight))}resetValues(){this._expressions.forEach(expression=>{expression.weight=0})}getExpressionTrackName(name$2){let expression=this.getExpression(name$2);return expression?`${expression.name}.weight`:null}update(){let weightMultipliers=this._calculateWeightMultipliers();this._expressions.forEach(expression=>{expression.clearAppliedWeight()}),this._expressions.forEach(expression=>{let multiplier=1,name$2=expression.expressionName;this.blinkExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.blink),this.lookAtExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.lookAt),this.mouthExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.mouth),expression.applyWeight({multiplier})})}_calculateWeightMultipliers(){let blink=1,lookAt=1,mouth=1;return this._expressions.forEach(expression=>{blink-=expression.overrideBlinkAmount,lookAt-=expression.overrideLookAtAmount,mouth-=expression.overrideMouthAmount}),blink=Math.max(0,blink),lookAt=Math.max(0,lookAt),mouth=Math.max(0,mouth),{blink,lookAt,mouth}}},VRMExpressionMaterialColorType={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},v0ExpressionMaterialColorMap={_Color:VRMExpressionMaterialColorType.Color,_EmissionColor:VRMExpressionMaterialColorType.EmissionColor,_ShadeColor:VRMExpressionMaterialColorType.ShadeColor,_RimColor:VRMExpressionMaterialColorType.RimColor,_OutlineColor:VRMExpressionMaterialColorType.OutlineColor},_color=new Color,_VRMExpressionMaterialColorBind=class _VRMExpressionMaterialColorBind2{constructor({material,type,targetValue,targetAlpha}){this.material=material,this.type=type,this.targetValue=targetValue,this.targetAlpha=targetAlpha??1;let color$2=this._initColorBindState(),alpha$1=this._initAlphaBindState();this._state={color:color$2,alpha:alpha$1}}applyWeight(weight){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,deltaValue}=color$2,target$1=this.material[propertyName];target$1?.add(_color.copy(deltaValue).multiplyScalar(weight))}if(alpha$1!=null){let{propertyName,deltaValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]+=deltaValue*weight)}}clearAppliedWeight(){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,initialValue}=color$2,target$1=this.material[propertyName];target$1?.copy(initialValue)}if(alpha$1!=null){let{propertyName,initialValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]=initialValue)}}_initColorBindState(){var _a$2,_b,_c;let{material,type,targetValue}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[0])??null;if(propertyName==null)return console.warn(`Tried to add a material color bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type is not supported.`),null;let target$1=material[propertyName],initialValue=target$1.clone(),deltaValue=new Color(targetValue.r-initialValue.r,targetValue.g-initialValue.g,targetValue.b-initialValue.b);return{propertyName,initialValue,deltaValue}}_initAlphaBindState(){var _a$2,_b,_c;let{material,type,targetAlpha}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[1])??null;if(propertyName==null&&targetAlpha!==1)return console.warn(`Tried to add a material alpha bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type does not support alpha.`),null;if(propertyName==null)return null;let initialValue=material[propertyName],deltaValue=targetAlpha-initialValue;return{propertyName,initialValue,deltaValue}}_getPropertyNameMap(){var _a$2,_b;return(_b=(_a$2=Object.entries(_VRMExpressionMaterialColorBind2._propertyNameMapMap).find(([distinguisher])=>this.material[distinguisher]===!0))?.[1])??null}};_VRMExpressionMaterialColorBind._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 VRMExpressionMaterialColorBind=_VRMExpressionMaterialColorBind,VRMExpressionMorphTargetBind=class{constructor({primitives,index:index$1,weight}){this.primitives=primitives,this.index=index$1,this.weight=weight}applyWeight(weight){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]+=this.weight*weight)})}clearAppliedWeight(){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]=0)})}},_v2=new Vector2,_VRMExpressionTextureTransformBind=class _VRMExpressionTextureTransformBind2{constructor({material,scale:scale$1,offset:offset$1}){var _a$2,_b;this.material=material,this.scale=scale$1,this.offset=offset$1;let propertyNames=(_a$2=Object.entries(_VRMExpressionTextureTransformBind2._propertyNamesMap).find(([distinguisher])=>material[distinguisher]===!0))?.[1];propertyNames==null?(console.warn(`Tried to add a texture transform bind to the material ${(_b=material.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],propertyNames.forEach(propertyName=>{var _a2;let texture=(_a2=material[propertyName])?.clone();if(!texture)return null;material[propertyName]=texture;let initialOffset=texture.offset.clone(),initialScale=texture.repeat.clone(),deltaOffset=offset$1.clone().sub(initialOffset),deltaScale=scale$1.clone().sub(initialScale);this._properties.push({name:propertyName,initialOffset,deltaOffset,initialScale,deltaScale})}))}applyWeight(weight){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.add(_v2.copy(property.deltaOffset).multiplyScalar(weight)),target$1.repeat.add(_v2.copy(property.deltaScale).multiplyScalar(weight)))})}clearAppliedWeight(){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.copy(property.initialOffset),target$1.repeat.copy(property.initialScale))})}};_VRMExpressionTextureTransformBind._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var VRMExpressionTextureTransformBind=_VRMExpressionTextureTransformBind,POSSIBLE_SPEC_VERSIONS=new Set([`1.0`,`1.0-beta`]),_VRMExpressionLoaderPlugin=class _VRMExpressionLoaderPlugin2{get name(){return`VRMExpressionLoaderPlugin`}constructor(parser){this.parser=parser}afterRoot(gltf){return __async2(this,null,function*(){gltf.userData.vrmExpressionManager=yield this._import(gltf)})}_import(gltf){return __async2(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result||null})}_v1Import(gltf){return __async2(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS.has(specVersion))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaExpressions=extension$1.expressions;if(!schemaExpressions)return null;let presetNameSet=new Set(Object.values(VRMExpressionPresetName)),nameSchemaExpressionMap=new Map;schemaExpressions.preset!=null&&Object.entries(schemaExpressions.preset).forEach(([name$2,schemaExpression])=>{if(schemaExpression!=null){if(!presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${name$2}" detected. Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)}}),schemaExpressions.custom!=null&&Object.entries(schemaExpressions.custom).forEach(([name$2,schemaExpression])=>{if(presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${name$2}". Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)});let manager=new VRMExpressionManager;return yield Promise.all(Array.from(nameSchemaExpressionMap.entries()).map(_0=>__async2(this,[_0],function*([name$2,schemaExpression]){var _a2,_b2,_c,_d,_e$1,_f,_g;let expression=new VRMExpression(name$2);if(gltf.scene.add(expression),expression.isBinary=(_a2=schemaExpression.isBinary)??!1,expression.overrideBlink=(_b2=schemaExpression.overrideBlink)??`none`,expression.overrideLookAt=(_c=schemaExpression.overrideLookAt)??`none`,expression.overrideMouth=(_d=schemaExpression.overrideMouth)??`none`,(_e$1=schemaExpression.morphTargetBinds)==null||_e$1.forEach(bind=>__async2(this,null,function*(){var _a3;if(bind.node===void 0||bind.index===void 0)return;let primitives=yield gltfExtractPrimitivesFromNode(gltf,bind.node),morphTargetIndex=bind.index;if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{let material=object.material;material&&(Array.isArray(material)?gltfMaterials.push(...material):gltfMaterials.push(material))}),(_f=schemaExpression.materialColorBinds)==null||_f.forEach(bind=>__async2(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{expression.addBind(new VRMExpressionMaterialColorBind({material,type:bind.type,targetValue:new Color().fromArray(bind.targetValue),targetAlpha:bind.targetValue[3]}))})})),(_g=schemaExpression.textureTransformBinds)==null||_g.forEach(bind=>__async2(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{var _a3,_b3;expression.addBind(new VRMExpressionTextureTransformBind({material,offset:new Vector2().fromArray((_a3=bind.offset)??[0,0]),scale:new Vector2().fromArray((_b3=bind.scale)??[1,1])}))})}))}manager.registerExpression(expression)}))),manager})}_v0Import(gltf){return __async2(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaBlendShape=vrmExt.blendShapeMaster;if(!schemaBlendShape)return null;let manager=new VRMExpressionManager,schemaBlendShapeGroups=schemaBlendShape.blendShapeGroups;if(!schemaBlendShapeGroups)return manager;let blendShapeNameSet=new Set;return yield Promise.all(schemaBlendShapeGroups.map(schemaGroup=>__async2(this,null,function*(){var _a2;let v0PresetName=schemaGroup.presetName,v1PresetName=v0PresetName!=null&&_VRMExpressionLoaderPlugin2.v0v1PresetNameMap[v0PresetName]||null,name$2=v1PresetName??schemaGroup.name;if(name$2==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(blendShapeNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${v0PresetName} has duplicated entries. Ignoring the expression`);return}blendShapeNameSet.add(name$2);let expression=new VRMExpression(name$2);gltf.scene.add(expression),expression.isBinary=(_a2=schemaGroup.isBinary)??!1,schemaGroup.binds&&schemaGroup.binds.forEach(bind=>__async2(this,null,function*(){var _a3;if(bind.mesh===void 0||bind.index===void 0)return;let nodesUsingMesh=[];(_a3=json.nodes)==null||_a3.forEach((node$1,i$1)=>{node$1.mesh===bind.mesh&&nodesUsingMesh.push(i$1)});let morphTargetIndex=bind.index;yield Promise.all(nodesUsingMesh.map(nodeIndex=>__async2(this,null,function*(){var _a4;let primitives=yield gltfExtractPrimitivesFromNode(gltf,nodeIndex);if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{if(materialValue.materialName===void 0||materialValue.propertyName===void 0||materialValue.targetValue===void 0)return;let materials=[];gltf.scene.traverse(object=>{if(object.material){let material=object.material;Array.isArray(material)?materials.push(...material.filter(mtl=>(mtl.name===materialValue.materialName||mtl.name===materialValue.materialName+` (Outline)`)&&materials.indexOf(mtl)===-1)):material.name===materialValue.materialName&&materials.indexOf(material)===-1&&materials.push(material)}});let materialPropertyName=materialValue.propertyName;materials.forEach(material=>{if(materialPropertyName===`_MainTex_ST`){let scale$1=new Vector2(materialValue.targetValue[0],materialValue.targetValue[1]),offset$1=new Vector2(materialValue.targetValue[2],materialValue.targetValue[3]);offset$1.y=1-offset$1.y-scale$1.y,expression.addBind(new VRMExpressionTextureTransformBind({material,scale:scale$1,offset:offset$1}));return}let materialColorType=v0ExpressionMaterialColorMap[materialPropertyName];if(materialColorType){expression.addBind(new VRMExpressionMaterialColorBind({material,type:materialColorType,targetValue:new Color().fromArray(materialValue.targetValue),targetAlpha:materialValue.targetValue[3]}));return}console.warn(materialPropertyName+` is not supported`)})}),manager.registerExpression(expression)}))),manager})}};_VRMExpressionLoaderPlugin.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 VRMExpressionLoaderPlugin=_VRMExpressionLoaderPlugin,_VRMFirstPerson=class _VRMFirstPerson2{constructor(humanoid,meshAnnotations){this._firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=humanoid,this.meshAnnotations=meshAnnotations}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=source.meshAnnotations.map(annotation=>({meshes:annotation.meshes.concat(),type:annotation.type})),this}clone(){return new _VRMFirstPerson2(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||(this._firstPersonOnlyLayer=firstPersonOnlyLayer,this._thirdPersonOnlyLayer=thirdPersonOnlyLayer,this.meshAnnotations.forEach(item=>{item.meshes.forEach(mesh=>{item.type===`firstPersonOnly`?(mesh.layers.set(this._firstPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._firstPersonOnlyLayer))):item.type===`thirdPersonOnly`?(mesh.layers.set(this._thirdPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer))):item.type===`auto`&&this._createHeadlessModel(mesh)})}),this._initializedLayers=!0)}_excludeTriangles(triangles,bws,skinIndex,exclude){let count$1=0;if(bws!=null&&bws.length>0)for(let i$1=0;i$10&&exclude.includes(skin0[0])||bw0[1]>0&&exclude.includes(skin0[1])||bw0[2]>0&&exclude.includes(skin0[2])||bw0[3]>0&&exclude.includes(skin0[3]))continue;let bw1=bws[b$3],skin1=skinIndex[b$3];if(bw1[0]>0&&exclude.includes(skin1[0])||bw1[1]>0&&exclude.includes(skin1[1])||bw1[2]>0&&exclude.includes(skin1[2])||bw1[3]>0&&exclude.includes(skin1[3]))continue;let bw2=bws[c$4],skin2=skinIndex[c$4];bw2[0]>0&&exclude.includes(skin2[0])||bw2[1]>0&&exclude.includes(skin2[1])||bw2[2]>0&&exclude.includes(skin2[2])||bw2[3]>0&&exclude.includes(skin2[3])||(triangles[count$1++]=a$2,triangles[count$1++]=b$3,triangles[count$1++]=c$4)}return count$1}_createErasedMesh(src,erasingBonesIndex){let dst=new SkinnedMesh(src.geometry.clone(),src.material);dst.name=`${src.name}(erase)`,dst.frustumCulled=src.frustumCulled,dst.layers.set(this._firstPersonOnlyLayer);let geometry=dst.geometry,skinIndexAttr=geometry.getAttribute(`skinIndex`),skinIndexAttrArray=skinIndexAttr instanceof GLBufferAttribute?[]:skinIndexAttr.array,skinIndex=[];for(let i$1=0;i$1{this._isEraseTarget(bone)&&eraseBoneIndexes.push(index$1)}),!eraseBoneIndexes.length){mesh.layers.enable(this._thirdPersonOnlyLayer),mesh.layers.enable(this._firstPersonOnlyLayer);return}mesh.layers.set(this._thirdPersonOnlyLayer);let newMesh=this._createErasedMesh(mesh,eraseBoneIndexes);parent.add(newMesh)}_createHeadlessModel(node$1){if(node$1.type===`Group`)if(node$1.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(node$1))node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer));else{let parent=new Group;parent.name=`_headless_${node$1.name}`,parent.layers.set(this._firstPersonOnlyLayer),node$1.parent.add(parent),node$1.children.filter(child=>child.type===`SkinnedMesh`).forEach(child=>{let skinnedMesh=child;this._createHeadlessModelForSkinnedMesh(parent,skinnedMesh)})}else if(node$1.type===`SkinnedMesh`){let skinnedMesh=node$1;this._createHeadlessModelForSkinnedMesh(node$1.parent,skinnedMesh)}else this._isEraseTarget(node$1)&&(node$1.layers.set(this._thirdPersonOnlyLayer),node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(bone){return bone===this.humanoid.getRawBoneNode(`head`)?!0:bone.parent?this._isEraseTarget(bone.parent):!1}};_VRMFirstPerson.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,_VRMFirstPerson.DEFAULT_THIRDPERSON_ONLY_LAYER=10;var VRMFirstPerson=_VRMFirstPerson,POSSIBLE_SPEC_VERSIONS2=new Set([`1.0`,`1.0-beta`]),VRMFirstPersonLoaderPlugin=class{get name(){return`VRMFirstPersonLoaderPlugin`}constructor(parser){this.parser=parser}afterRoot(gltf){return __async2(this,null,function*(){let vrmHumanoid=gltf.userData.vrmHumanoid;if(vrmHumanoid!==null){if(vrmHumanoid===void 0)throw Error(`VRMFirstPersonLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);gltf.userData.vrmFirstPerson=yield this._import(gltf,vrmHumanoid)}})}_import(gltf,humanoid){return __async2(this,null,function*(){if(humanoid==null)return null;let v1Result=yield this._v1Import(gltf,humanoid);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf,humanoid);return v0Result||null})}_v1Import(gltf,humanoid){return __async2(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS2.has(specVersion))return console.warn(`VRMFirstPersonLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaFirstPerson=extension$1.firstPerson,meshAnnotations=[],nodePrimitivesMap=yield gltfExtractPrimitivesFromNodes(gltf);return Array.from(nodePrimitivesMap.entries()).forEach(([nodeIndex,primitives])=>{var _a2,_b2;let annotation=(_a2=schemaFirstPerson?.meshAnnotations)?.find(a$2=>a$2.node===nodeIndex);meshAnnotations.push({meshes:primitives,type:(_b2=annotation?.type)??`auto`})}),new VRMFirstPerson(humanoid,meshAnnotations)})}_v0Import(gltf,humanoid){return __async2(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaFirstPerson=vrmExt.firstPerson;if(!schemaFirstPerson)return null;let meshAnnotations=[],nodePrimitivesMap=yield gltfExtractPrimitivesFromNodes(gltf);return Array.from(nodePrimitivesMap.entries()).forEach(([nodeIndex,primitives])=>{let schemaNode=json.nodes[nodeIndex],flag=schemaFirstPerson.meshAnnotations?schemaFirstPerson.meshAnnotations.find(a$2=>a$2.mesh===schemaNode.mesh):void 0;meshAnnotations.push({meshes:primitives,type:this._convertV0FlagToV1Type(flag?.firstPersonFlag)})}),new VRMFirstPerson(humanoid,meshAnnotations)})}_convertV0FlagToV1Type(flag){return flag===`FirstPersonOnly`?`firstPersonOnly`:flag===`ThirdPersonOnly`?`thirdPersonOnly`:flag===`Both`?`both`:`auto`}},_v3A=new Vector3,_v3B=new Vector3,_quatA=new Quaternion,VRMHumanoidHelper=class extends Group{constructor(humanoid){super(),this.vrmHumanoid=humanoid,this._boneAxesMap=new Map,Object.values(humanoid.humanBones).forEach(bone=>{let helper=new AxesHelper(1);helper.matrixAutoUpdate=!1,helper.material.depthTest=!1,helper.material.depthWrite=!1,this.add(helper),this._boneAxesMap.set(bone,helper)})}dispose(){Array.from(this._boneAxesMap.values()).forEach(axes=>{axes.geometry.dispose(),axes.material.dispose()})}updateMatrixWorld(force){Array.from(this._boneAxesMap.entries()).forEach(([bone,axes])=>{bone.node.updateWorldMatrix(!0,!1),bone.node.matrixWorld.decompose(_v3A,_quatA,_v3B);let scale$1=_v3A.set(.1,.1,.1).divide(_v3B);axes.matrix.copy(bone.node.matrixWorld).scale(scale$1)}),super.updateMatrixWorld(force)}},VRMHumanBoneList=`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(`.`),VRMHumanBoneParentMap={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 quatInvertCompat(target$1){return target$1.invert?target$1.invert():target$1.inverse(),target$1}var _v3A2=new Vector3,_quatA2=new Quaternion,VRMRig=class{constructor(humanBones){this.humanBones=humanBones,this.restPose=this.getAbsolutePose()}getAbsolutePose(){let pose={};return Object.keys(this.humanBones).forEach(vrmBoneNameString=>{let vrmBoneName=vrmBoneNameString,node$1=this.getBoneNode(vrmBoneName);node$1&&(_v3A2.copy(node$1.position),_quatA2.copy(node$1.quaternion),pose[vrmBoneName]={position:_v3A2.toArray(),rotation:_quatA2.toArray()})}),pose}getPose(){let pose={};return Object.keys(this.humanBones).forEach(boneNameString=>{let boneName=boneNameString,node$1=this.getBoneNode(boneName);if(!node$1)return;_v3A2.set(0,0,0),_quatA2.identity();let restState=this.restPose[boneName];restState?.position&&_v3A2.fromArray(restState.position).negate(),restState?.rotation&&quatInvertCompat(_quatA2.fromArray(restState.rotation)),_v3A2.add(node$1.position),_quatA2.premultiply(node$1.quaternion),pose[boneName]={position:_v3A2.toArray(),rotation:_quatA2.toArray()}}),pose}setPose(poseObject){Object.entries(poseObject).forEach(([boneNameString,state])=>{let boneName=boneNameString,node$1=this.getBoneNode(boneName);if(!node$1)return;let restState=this.restPose[boneName];restState&&(state?.position&&(node$1.position.fromArray(state.position),restState.position&&node$1.position.add(_v3A2.fromArray(restState.position))),state?.rotation&&(node$1.quaternion.fromArray(state.rotation),restState.rotation&&node$1.quaternion.multiply(_quatA2.fromArray(restState.rotation))))})}resetPose(){Object.entries(this.restPose).forEach(([boneName,rest])=>{let node$1=this.getBoneNode(boneName);node$1&&(rest?.position&&node$1.position.fromArray(rest.position),rest?.rotation&&node$1.quaternion.fromArray(rest.rotation))})}getBone(name$2){var _a$2;return(_a$2=this.humanBones[name$2])??void 0}getBoneNode(name$2){var _a$2,_b;return(_b=(_a$2=this.humanBones[name$2])?.node)??null}},_v3A3=new Vector3,_quatA3=new Quaternion,_boneWorldPos=new Vector3,VRMHumanoidRig=class _VRMHumanoidRig extends VRMRig{static _setupTransforms(modelRig){let root$3=new Object3D;root$3.name=`VRMHumanoidRig`;let boneWorldPositions={},boneWorldRotations={},boneRotations={},parentWorldRotations={};VRMHumanBoneList.forEach(boneName=>{var _a$2;let boneNode=modelRig.getBoneNode(boneName);if(boneNode){let boneWorldPosition=new Vector3,boneWorldRotation=new Quaternion;boneNode.updateWorldMatrix(!0,!1),boneNode.matrixWorld.decompose(boneWorldPosition,boneWorldRotation,_v3A3),boneWorldPositions[boneName]=boneWorldPosition,boneWorldRotations[boneName]=boneWorldRotation,boneRotations[boneName]=boneNode.quaternion.clone();let parentWorldRotation=new Quaternion;(_a$2=boneNode.parent)==null||_a$2.matrixWorld.decompose(_v3A3,parentWorldRotation,_v3A3),parentWorldRotations[boneName]=parentWorldRotation}});let rigBones={};return VRMHumanBoneList.forEach(boneName=>{var _a$2;let boneNode=modelRig.getBoneNode(boneName);if(boneNode){let boneWorldPosition=boneWorldPositions[boneName],currentBoneName=boneName,parentBoneWorldPosition;for(;parentBoneWorldPosition==null&&(currentBoneName=VRMHumanBoneParentMap[currentBoneName],currentBoneName!=null);)parentBoneWorldPosition=boneWorldPositions[currentBoneName];let rigBoneNode=new Object3D;rigBoneNode.name=`Normalized_`+boneNode.name;let parentRigBoneNode=currentBoneName?(_a$2=rigBones[currentBoneName])?.node:root$3;parentRigBoneNode.add(rigBoneNode),rigBoneNode.position.copy(boneWorldPosition),parentBoneWorldPosition&&rigBoneNode.position.sub(parentBoneWorldPosition),rigBones[boneName]={node:rigBoneNode}}}),{rigBones,root:root$3,parentWorldRotations,boneRotations}}constructor(humanoid){let{rigBones,root:root$3,parentWorldRotations,boneRotations}=_VRMHumanoidRig._setupTransforms(humanoid);super(rigBones),this.original=humanoid,this.root=root$3,this._parentWorldRotations=parentWorldRotations,this._boneRotations=boneRotations}update(){VRMHumanBoneList.forEach(boneName=>{let boneNode=this.original.getBoneNode(boneName);if(boneNode!=null){let rigBoneNode=this.getBoneNode(boneName),parentWorldRotation=this._parentWorldRotations[boneName],invParentWorldRotation=_quatA3.copy(parentWorldRotation).invert(),boneRotation=this._boneRotations[boneName];if(boneNode.quaternion.copy(rigBoneNode.quaternion).multiply(parentWorldRotation).premultiply(invParentWorldRotation).multiply(boneRotation),boneName===`hips`){let boneWorldPosition=rigBoneNode.getWorldPosition(_boneWorldPos);boneNode.parent.updateWorldMatrix(!0,!1);let parentWorldMatrix=boneNode.parent.matrixWorld,localPosition=boneWorldPosition.applyMatrix4(parentWorldMatrix.invert());boneNode.position.copy(localPosition)}}})}},VRMHumanoid=class _VRMHumanoid{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(humanBones,options$1){var _a$2;this.autoUpdateHumanBones=(_a$2=options$1?.autoUpdateHumanBones)??!0,this._rawHumanBones=new VRMRig(humanBones),this._normalizedHumanBones=new VRMHumanoidRig(this._rawHumanBones)}copy(source){return this.autoUpdateHumanBones=source.autoUpdateHumanBones,this._rawHumanBones=new VRMRig(source.humanBones),this._normalizedHumanBones=new VRMHumanoidRig(this._rawHumanBones),this}clone(){return new _VRMHumanoid(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(poseObject){return console.warn(`VRMHumanoid: setPose() is deprecated. Use either setRawPose() or setNormalizedPose() instead.`),this.setRawPose(poseObject)}setRawPose(poseObject){return this._rawHumanBones.setPose(poseObject)}setNormalizedPose(poseObject){return this._normalizedHumanBones.setPose(poseObject)}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(name$2){return console.warn(`VRMHumanoid: getBone() is deprecated. Use either getRawBone() or getNormalizedBone() instead.`),this.getRawBone(name$2)}getRawBone(name$2){return this._rawHumanBones.getBone(name$2)}getNormalizedBone(name$2){return this._normalizedHumanBones.getBone(name$2)}getBoneNode(name$2){return console.warn(`VRMHumanoid: getBoneNode() is deprecated. Use either getRawBoneNode() or getNormalizedBoneNode() instead.`),this.getRawBoneNode(name$2)}getRawBoneNode(name$2){return this._rawHumanBones.getBoneNode(name$2)}getNormalizedBoneNode(name$2){return this._normalizedHumanBones.getBoneNode(name$2)}update(){this.autoUpdateHumanBones&&this._normalizedHumanBones.update()}},VRMRequiredHumanBoneName={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`},POSSIBLE_SPEC_VERSIONS3=new Set([`1.0`,`1.0-beta`]),thumbBoneNameMap={leftThumbProximal:`leftThumbMetacarpal`,leftThumbIntermediate:`leftThumbProximal`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbIntermediate:`rightThumbProximal`},VRMHumanoidLoaderPlugin=class{get name(){return`VRMHumanoidLoaderPlugin`}constructor(parser,options$1){this.parser=parser,this.helperRoot=options$1?.helperRoot,this.autoUpdateHumanBones=options$1?.autoUpdateHumanBones}afterRoot(gltf){return __async2(this,null,function*(){gltf.userData.vrmHumanoid=yield this._import(gltf)})}_import(gltf){return __async2(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result||null})}_v1Import(gltf){return __async2(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS3.has(specVersion))return console.warn(`VRMHumanoidLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaHumanoid=extension$1.humanoid;if(!schemaHumanoid)return null;let existsPreviousThumbName=schemaHumanoid.humanBones.leftThumbIntermediate!=null||schemaHumanoid.humanBones.rightThumbIntermediate!=null,humanBones={};schemaHumanoid.humanBones!=null&&(yield Promise.all(Object.entries(schemaHumanoid.humanBones).map(_0=>__async2(this,[_0],function*([boneNameString,schemaHumanBone]){let boneName=boneNameString,index$1=schemaHumanBone.node;if(existsPreviousThumbName){let thumbBoneName=thumbBoneNameMap[boneName];thumbBoneName!=null&&(boneName=thumbBoneName)}let node$1=yield this.parser.getDependency(`node`,index$1);if(node$1==null){console.warn(`A glTF node bound to the humanoid bone ${boneName} (index = ${index$1}) does not exist`);return}humanBones[boneName]={node:node$1}}))));let humanoid=new VRMHumanoid(this._ensureRequiredBonesExist(humanBones),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(gltf.scene.add(humanoid.normalizedHumanBonesRoot),this.helperRoot){let helper=new VRMHumanoidHelper(humanoid);this.helperRoot.add(helper),helper.renderOrder=this.helperRoot.renderOrder}return humanoid})}_v0Import(gltf){return __async2(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaHumanoid=vrmExt.humanoid;if(!schemaHumanoid)return null;let humanBones={};schemaHumanoid.humanBones!=null&&(yield Promise.all(schemaHumanoid.humanBones.map(bone=>__async2(this,null,function*(){let boneName=bone.bone,index$1=bone.node;if(boneName==null||index$1==null)return;let node$1=yield this.parser.getDependency(`node`,index$1);if(node$1==null){console.warn(`A glTF node bound to the humanoid bone ${boneName} (index = ${index$1}) does not exist`);return}let thumbBoneName=thumbBoneNameMap[boneName],newBoneName=thumbBoneName??boneName;if(humanBones[newBoneName]!=null){console.warn(`Multiple bone entries for ${newBoneName} detected (index = ${index$1}), ignoring duplicated entries.`);return}humanBones[newBoneName]={node:node$1}}))));let humanoid=new VRMHumanoid(this._ensureRequiredBonesExist(humanBones),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(gltf.scene.add(humanoid.normalizedHumanBonesRoot),this.helperRoot){let helper=new VRMHumanoidHelper(humanoid);this.helperRoot.add(helper),helper.renderOrder=this.helperRoot.renderOrder}return humanoid})}_ensureRequiredBonesExist(humanBones){let missingRequiredBones=Object.values(VRMRequiredHumanBoneName).filter(requiredBoneName=>humanBones[requiredBoneName]==null);if(missingRequiredBones.length>0)throw Error(`VRMHumanoidLoaderPlugin: These humanoid bones are required but not exist: ${missingRequiredBones.join(`, `)}`);return humanBones}},FanBufferGeometry=class extends BufferGeometry{constructor(){super(),this._currentTheta=0,this._currentRadius=0,this.theta=0,this.radius=0,this._currentTheta=0,this._currentRadius=0,this._attrPos=new BufferAttribute(new Float32Array(65*3),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(3*63),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1;this._currentTheta!==this.theta&&(this._currentTheta=this.theta,shouldUpdateGeometry=!0),this._currentRadius!==this.radius&&(this._currentRadius=this.radius,shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){this._attrPos.setXYZ(0,0,0,0);for(let i$1=0;i$1<64;i$1++){let t=i$1/63*this._currentTheta;this._attrPos.setXYZ(i$1+1,this._currentRadius*Math.sin(t),0,this._currentRadius*Math.cos(t))}this._attrPos.needsUpdate=!0}_buildIndex(){for(let i$1=0;i$1<63;i$1++)this._attrIndex.setXYZ(i$1*3,0,i$1+1,i$1+2);this._attrIndex.needsUpdate=!0}},LineAndSphereBufferGeometry=class extends BufferGeometry{constructor(){super(),this.radius=0,this._currentRadius=0,this.tail=new Vector3,this._currentTail=new Vector3,this._attrPos=new BufferAttribute(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1;this._currentRadius!==this.radius&&(this._currentRadius=this.radius,shouldUpdateGeometry=!0),this._currentTail.equals(this.tail)||(this._currentTail.copy(this.tail),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+i$1,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+i$1,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 i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(64+i$1*2,32+i$1,32+i1),this._attrIndex.setXY(128+i$1*2,64+i$1,64+i1)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},_quatA4=new Quaternion,_quatB=new Quaternion,_v3A4=new Vector3,_v3B2=new Vector3,SQRT_2_OVER_2=Math.sqrt(2)/2,QUAT_XY_CW90=new Quaternion(0,0,-SQRT_2_OVER_2,SQRT_2_OVER_2),VEC3_POSITIVE_Y=new Vector3(0,1,0),VRMLookAtHelper=class extends Group{constructor(lookAt){super(),this.matrixAutoUpdate=!1,this.vrmLookAt=lookAt;{let geometry=new FanBufferGeometry;geometry.radius=.5;let material=new MeshBasicMaterial({color:65280,transparent:!0,opacity:.5,side:DoubleSide,depthTest:!1,depthWrite:!1});this._meshPitch=new Mesh(geometry,material),this.add(this._meshPitch)}{let geometry=new FanBufferGeometry;geometry.radius=.5;let material=new MeshBasicMaterial({color:16711680,transparent:!0,opacity:.5,side:DoubleSide,depthTest:!1,depthWrite:!1});this._meshYaw=new Mesh(geometry,material),this.add(this._meshYaw)}{let geometry=new LineAndSphereBufferGeometry;geometry.radius=.1;let material=new LineBasicMaterial({color:16777215,depthTest:!1,depthWrite:!1});this._lineTarget=new LineSegments(geometry,material),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(force){let yaw=MathUtils.DEG2RAD*this.vrmLookAt.yaw;this._meshYaw.geometry.theta=yaw,this._meshYaw.geometry.update();let pitch=MathUtils.DEG2RAD*this.vrmLookAt.pitch;this._meshPitch.geometry.theta=pitch,this._meshPitch.geometry.update(),this.vrmLookAt.getLookAtWorldPosition(_v3A4),this.vrmLookAt.getLookAtWorldQuaternion(_quatA4),_quatA4.multiply(this.vrmLookAt.getFaceFrontQuaternion(_quatB)),this._meshYaw.position.copy(_v3A4),this._meshYaw.quaternion.copy(_quatA4),this._meshPitch.position.copy(_v3A4),this._meshPitch.quaternion.copy(_quatA4),this._meshPitch.quaternion.multiply(_quatB.setFromAxisAngle(VEC3_POSITIVE_Y,yaw)),this._meshPitch.quaternion.multiply(QUAT_XY_CW90);let{target:target$1,autoUpdate}=this.vrmLookAt;target$1!=null&&autoUpdate&&(target$1.getWorldPosition(_v3B2).sub(_v3A4),this._lineTarget.geometry.tail.copy(_v3B2),this._lineTarget.geometry.update(),this._lineTarget.position.copy(_v3A4)),super.updateMatrixWorld(force)}},_position=new Vector3,_scale=new Vector3;function getWorldQuaternionLite(object,out){return object.matrixWorld.decompose(_position,out,_scale),out}function calcAzimuthAltitude(vector){return[Math.atan2(-vector.z,vector.x),Math.atan2(vector.y,Math.sqrt(vector.x*vector.x+vector.z*vector.z))]}function sanitizeAngle(angle){let roundTurn=Math.round(angle/2/Math.PI);return angle-2*Math.PI*roundTurn}var VEC3_POSITIVE_Z=new Vector3(0,0,1),_v3A5=new Vector3,_v3B3=new Vector3,_v3C=new Vector3,_quatA5=new Quaternion,_quatB2=new Quaternion,_quatC=new Quaternion,_quatD=new Quaternion,_eulerA=new Euler,_VRMLookAt=class _VRMLookAt2{constructor(humanoid,applier){this.offsetFromHeadBone=new Vector3,this.autoUpdate=!0,this.faceFront=new Vector3(0,0,1),this.humanoid=humanoid,this.applier=applier,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new Quaternion)}get yaw(){return this._yaw}set yaw(value$1){this._yaw=value$1,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(value$1){this._pitch=value$1,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new Euler)}getEuler(target$1){return target$1.set(MathUtils.DEG2RAD*this._pitch,MathUtils.DEG2RAD*this._yaw,0,`YXZ`)}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(source.offsetFromHeadBone),this.applier=source.applier,this.autoUpdate=source.autoUpdate,this.target=source.target,this.faceFront.copy(source.faceFront),this}clone(){return new _VRMLookAt2(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return target$1.copy(this.offsetFromHeadBone).applyMatrix4(head$1.matrixWorld)}getLookAtWorldQuaternion(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return getWorldQuaternionLite(head$1,target$1)}getFaceFrontQuaternion(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z)<.01)return target$1.copy(this._restHeadWorldQuaternion).invert();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude(this.faceFront);return _eulerA.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA).premultiply(_quatD.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(target$1){return this.getLookAtWorldQuaternion(_quatB2),this.getFaceFrontQuaternion(_quatC),target$1.copy(VEC3_POSITIVE_Z).applyQuaternion(_quatB2).applyQuaternion(_quatC).applyEuler(this.getEuler(_eulerA))}lookAt(position$2){let headRotDiffInv=_quatA5.copy(this._restHeadWorldQuaternion).multiply(quatInvertCompat(this.getLookAtWorldQuaternion(_quatB2))),headPos=this.getLookAtWorldPosition(_v3B3),lookAtDir=_v3C.copy(position$2).sub(headPos).applyQuaternion(headRotDiffInv).normalize(),[azimuthFrom,altitudeFrom]=calcAzimuthAltitude(this.faceFront),[azimuthTo,altitudeTo]=calcAzimuthAltitude(lookAtDir),yaw=sanitizeAngle(azimuthTo-azimuthFrom),pitch=sanitizeAngle(altitudeFrom-altitudeTo);this._yaw=MathUtils.RAD2DEG*yaw,this._pitch=MathUtils.RAD2DEG*pitch,this._needsUpdate=!0}update(delta){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(_v3A5)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};_VRMLookAt.EULER_ORDER=`YXZ`;var VRMLookAt=_VRMLookAt,VEC3_POSITIVE_Z2=new Vector3(0,0,1),_quatA6=new Quaternion,_quatB3=new Quaternion,_eulerA2=new Euler(0,0,0,`YXZ`),VRMLookAtBoneApplier=class{constructor(humanoid,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.humanoid=humanoid,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp,this.faceFront=new Vector3(0,0,1),this._restQuatLeftEye=new Quaternion,this._restQuatRightEye=new Quaternion,this._restLeftEyeParentWorldQuat=new Quaternion,this._restRightEyeParentWorldQuat=new Quaternion;let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`);leftEye&&(this._restQuatLeftEye.copy(leftEye.quaternion),getWorldQuaternionLite(leftEye.parent,this._restLeftEyeParentWorldQuat)),rightEye&&(this._restQuatRightEye.copy(rightEye.quaternion),getWorldQuaternionLite(rightEye.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(yaw,pitch){let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`),leftEyeNormalized=this.humanoid.getNormalizedBoneNode(`leftEye`),rightEyeNormalized=this.humanoid.getNormalizedBoneNode(`rightEye`);leftEye&&(pitch<0?_eulerA2.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(-yaw):_eulerA2.y=MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(yaw),_quatA6.setFromEuler(_eulerA2),this._getWorldFaceFrontQuat(_quatB3),leftEyeNormalized.quaternion.copy(_quatB3).multiply(_quatA6).multiply(_quatB3.invert()),_quatA6.copy(this._restLeftEyeParentWorldQuat),leftEye.quaternion.copy(leftEyeNormalized.quaternion).multiply(_quatA6).premultiply(_quatA6.invert()).multiply(this._restQuatLeftEye)),rightEye&&(pitch<0?_eulerA2.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(-yaw):_eulerA2.y=MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(yaw),_quatA6.setFromEuler(_eulerA2),this._getWorldFaceFrontQuat(_quatB3),rightEyeNormalized.quaternion.copy(_quatB3).multiply(_quatA6).multiply(_quatB3.invert()),_quatA6.copy(this._restRightEyeParentWorldQuat),rightEye.quaternion.copy(rightEyeNormalized.quaternion).multiply(_quatA6).premultiply(_quatA6.invert()).multiply(this._restQuatRightEye))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}_getWorldFaceFrontQuat(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z2)<.01)return target$1.identity();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude(this.faceFront);return _eulerA2.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA2)}};VRMLookAtBoneApplier.type=`bone`;var VRMLookAtExpressionApplier=class{constructor(expressions,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.expressions=expressions,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp}applyYawPitch(yaw,pitch){pitch<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-pitch))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(pitch))),yaw<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-yaw))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(yaw)))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}};VRMLookAtExpressionApplier.type=`expression`;var VRMLookAtRangeMap=class{constructor(inputMaxValue,outputScale){this.inputMaxValue=inputMaxValue,this.outputScale=outputScale}map(src){return this.outputScale*saturate(src/this.inputMaxValue)}},POSSIBLE_SPEC_VERSIONS4=new Set([`1.0`,`1.0-beta`]),INPUT_MAX_VALUE_MINIMUM=.01,VRMLookAtLoaderPlugin=class{get name(){return`VRMLookAtLoaderPlugin`}constructor(parser,options$1){this.parser=parser,this.helperRoot=options$1?.helperRoot}afterRoot(gltf){return __async2(this,null,function*(){let vrmHumanoid=gltf.userData.vrmHumanoid;if(vrmHumanoid===null)return;if(vrmHumanoid===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);let vrmExpressionManager=gltf.userData.vrmExpressionManager;if(vrmExpressionManager!==null){if(vrmExpressionManager===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmExpressionManager is undefined. VRMExpressionLoaderPlugin have to be used first`);gltf.userData.vrmLookAt=yield this._import(gltf,vrmHumanoid,vrmExpressionManager)}})}_import(gltf,humanoid,expressions){return __async2(this,null,function*(){if(humanoid==null||expressions==null)return null;let v1Result=yield this._v1Import(gltf,humanoid,expressions);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf,humanoid,expressions);return v0Result||null})}_v1Import(gltf,humanoid,expressions){return __async2(this,null,function*(){var _a$2,_b,_c;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS4.has(specVersion))return console.warn(`VRMLookAtLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaLookAt=extension$1.lookAt;if(!schemaLookAt)return null;let defaultOutputScale=schemaLookAt.type===`expression`?1:10,mapHI=this._v1ImportRangeMap(schemaLookAt.rangeMapHorizontalInner,defaultOutputScale),mapHO=this._v1ImportRangeMap(schemaLookAt.rangeMapHorizontalOuter,defaultOutputScale),mapVD=this._v1ImportRangeMap(schemaLookAt.rangeMapVerticalDown,defaultOutputScale),mapVU=this._v1ImportRangeMap(schemaLookAt.rangeMapVerticalUp,defaultOutputScale),applier;applier=schemaLookAt.type===`expression`?new VRMLookAtExpressionApplier(expressions,mapHI,mapHO,mapVD,mapVU):new VRMLookAtBoneApplier(humanoid,mapHI,mapHO,mapVD,mapVU);let lookAt=this._importLookAt(humanoid,applier);return lookAt.offsetFromHeadBone.fromArray((_c=schemaLookAt.offsetFromHeadBone)??[0,.06,0]),lookAt})}_v1ImportRangeMap(schemaRangeMap,defaultOutputScale){var _a$2,_b;let inputMaxValue=(_a$2=schemaRangeMap?.inputMaxValue)??90,outputScale=(_b=schemaRangeMap?.outputScale)??defaultOutputScale;return inputMaxValue(console.error(error),console.warn(`VRMMetaLoaderPlugin: Failed to load a thumbnail image`),null))})}},VRMCore=class{constructor(params){this.scene=params.scene,this.meta=params.meta,this.humanoid=params.humanoid,this.expressionManager=params.expressionManager,this.firstPerson=params.firstPerson,this.lookAt=params.lookAt}update(delta){this.humanoid.update(),this.lookAt&&this.lookAt.update(delta),this.expressionManager&&this.expressionManager.update()}},VRM=class extends VRMCore{constructor(params){super(params),this.materials=params.materials,this.springBoneManager=params.springBoneManager,this.nodeConstraintManager=params.nodeConstraintManager}update(delta){super.update(delta),this.nodeConstraintManager&&this.nodeConstraintManager.update(),this.springBoneManager&&this.springBoneManager.update(delta),this.materials&&this.materials.forEach(material=>{material.update&&material.update(delta)})}},__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(obj,key$1,value$1)=>key$1 in obj?__defProp(obj,key$1,{enumerable:!0,configurable:!0,writable:!0,value:value$1}):obj[key$1]=value$1,__spreadValues=(a$2,b$3)=>{for(var prop in b$3||={})__hasOwnProp.call(b$3,prop)&&__defNormalProp(a$2,prop,b$3[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b$3))__propIsEnum.call(b$3,prop)&&__defNormalProp(a$2,prop,b$3[prop]);return a$2},__async3=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),colorSpaceEncodingMap={"":3e3,srgb:3001};function setTextureColorSpace(texture,colorSpace){parseInt(REVISION,10)>=152?texture.colorSpace=colorSpace:texture.encoding=colorSpaceEncodingMap[colorSpace]}var GLTFMToonMaterialParamsAssignHelper=class{get pending(){return Promise.all(this._pendings)}constructor(parser,materialParams){this._parser=parser,this._materialParams=materialParams,this._pendings=[]}assignPrimitive(key$1,value$1){value$1!=null&&(this._materialParams[key$1]=value$1)}assignColor(key$1,value$1,convertSRGBToLinear){value$1!=null&&(this._materialParams[key$1]=new Color().fromArray(value$1),convertSRGBToLinear&&this._materialParams[key$1].convertSRGBToLinear())}assignTexture(key$1,texture,isColorTexture){return __async3(this,null,function*(){let promise=(()=>__async3(this,null,function*(){texture!=null&&(yield this._parser.assignTexture(this._materialParams,key$1,texture),isColorTexture&&setTextureColorSpace(this._materialParams[key$1],`srgb`))}))();return this._pendings.push(promise),promise})}assignTextureByIndex(key$1,textureIndex,isColorTexture){return __async3(this,null,function*(){return this.assignTexture(key$1,textureIndex==null?void 0:{index:textureIndex},isColorTexture)})}},mtoon_default=`// #define PHONG +var __async=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),__async2=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),VRMExpression=class extends Object3D{constructor(expressionName){super(),this.weight=0,this.isBinary=!1,this.overrideBlink=`none`,this.overrideLookAt=`none`,this.overrideMouth=`none`,this._binds=[],this.name=`VRMExpression_${expressionName}`,this.expressionName=expressionName,this.type=`VRMExpression`,this.visible=!1}get binds(){return this._binds}get overrideBlinkAmount(){return this.overrideBlink===`block`?0.5?1:0:this.weight}addBind(bind){this._binds.push(bind)}deleteBind(bind){let index$1=this._binds.indexOf(bind);index$1>=0&&this._binds.splice(index$1,1)}applyWeight(options$1){var _a$2;let actualWeight=this.outputWeight;actualWeight*=(_a$2=options$1?.multiplier)??1,this.isBinary&&actualWeight<1&&(actualWeight=0),this._binds.forEach(bind=>bind.applyWeight(actualWeight))}clearAppliedWeight(){this._binds.forEach(bind=>bind.clearAppliedWeight())}};function extractPrimitivesInternal(gltf,nodeIndex,node$1){var _a$2,_b;let json=gltf.parser.json,schemaNode=(_a$2=json.nodes)?.[nodeIndex];if(schemaNode==null)return console.warn(`extractPrimitivesInternal: Attempt to use nodes[${nodeIndex}] of glTF but the node doesn't exist`),null;let meshIndex=schemaNode.mesh;if(meshIndex==null)return null;let schemaMesh=(_b=json.meshes)?.[meshIndex];if(schemaMesh==null)return console.warn(`extractPrimitivesInternal: Attempt to use meshes[${meshIndex}] of glTF but the mesh doesn't exist`),null;let primitiveCount=schemaMesh.primitives.length,primitives=[];return node$1.traverse(object=>{primitives.length{let result=extractPrimitivesInternal(gltf,index$1,node$1);result!=null&&map.set(index$1,result)}),map})}var VRMExpressionPresetName={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 saturate(value$1){return Math.max(Math.min(value$1,1),0)}var VRMExpressionManager=class _VRMExpressionManager{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 result={},presetNameSet=new Set(Object.values(VRMExpressionPresetName));return Object.entries(this._expressionMap).forEach(([name$2,expression])=>{presetNameSet.has(name$2)&&(result[name$2]=expression)}),result}get customExpressionMap(){let result={},presetNameSet=new Set(Object.values(VRMExpressionPresetName));return Object.entries(this._expressionMap).forEach(([name$2,expression])=>{presetNameSet.has(name$2)||(result[name$2]=expression)}),result}copy(source){let expressions=this._expressions.concat();return expressions.forEach(expression=>{this.unregisterExpression(expression)}),source._expressions.forEach(expression=>{this.registerExpression(expression)}),this.blinkExpressionNames=source.blinkExpressionNames.concat(),this.lookAtExpressionNames=source.lookAtExpressionNames.concat(),this.mouthExpressionNames=source.mouthExpressionNames.concat(),this}clone(){return new _VRMExpressionManager().copy(this)}getExpression(name$2){var _a$2;return(_a$2=this._expressionMap[name$2])??null}registerExpression(expression){this._expressions.push(expression),this._expressionMap[expression.expressionName]=expression}unregisterExpression(expression){let index$1=this._expressions.indexOf(expression);index$1===-1&&console.warn(`VRMExpressionManager: The specified expressions is not registered`),this._expressions.splice(index$1,1),delete this._expressionMap[expression.expressionName]}getValue(name$2){var _a$2;let expression=this.getExpression(name$2);return(_a$2=expression?.weight)??null}setValue(name$2,weight){let expression=this.getExpression(name$2);expression&&(expression.weight=saturate(weight))}resetValues(){this._expressions.forEach(expression=>{expression.weight=0})}getExpressionTrackName(name$2){let expression=this.getExpression(name$2);return expression?`${expression.name}.weight`:null}update(){let weightMultipliers=this._calculateWeightMultipliers();this._expressions.forEach(expression=>{expression.clearAppliedWeight()}),this._expressions.forEach(expression=>{let multiplier=1,name$2=expression.expressionName;this.blinkExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.blink),this.lookAtExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.lookAt),this.mouthExpressionNames.indexOf(name$2)!==-1&&(multiplier*=weightMultipliers.mouth),expression.applyWeight({multiplier})})}_calculateWeightMultipliers(){let blink=1,lookAt=1,mouth=1;return this._expressions.forEach(expression=>{blink-=expression.overrideBlinkAmount,lookAt-=expression.overrideLookAtAmount,mouth-=expression.overrideMouthAmount}),blink=Math.max(0,blink),lookAt=Math.max(0,lookAt),mouth=Math.max(0,mouth),{blink,lookAt,mouth}}},VRMExpressionMaterialColorType={Color:`color`,EmissionColor:`emissionColor`,ShadeColor:`shadeColor`,MatcapColor:`matcapColor`,RimColor:`rimColor`,OutlineColor:`outlineColor`},v0ExpressionMaterialColorMap={_Color:VRMExpressionMaterialColorType.Color,_EmissionColor:VRMExpressionMaterialColorType.EmissionColor,_ShadeColor:VRMExpressionMaterialColorType.ShadeColor,_RimColor:VRMExpressionMaterialColorType.RimColor,_OutlineColor:VRMExpressionMaterialColorType.OutlineColor},_color=new Color,_VRMExpressionMaterialColorBind=class _VRMExpressionMaterialColorBind2{constructor({material,type,targetValue,targetAlpha}){this.material=material,this.type=type,this.targetValue=targetValue,this.targetAlpha=targetAlpha??1;let color$2=this._initColorBindState(),alpha$1=this._initAlphaBindState();this._state={color:color$2,alpha:alpha$1}}applyWeight(weight){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,deltaValue}=color$2,target$1=this.material[propertyName];target$1?.add(_color.copy(deltaValue).multiplyScalar(weight))}if(alpha$1!=null){let{propertyName,deltaValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]+=deltaValue*weight)}}clearAppliedWeight(){let{color:color$2,alpha:alpha$1}=this._state;if(color$2!=null){let{propertyName,initialValue}=color$2,target$1=this.material[propertyName];target$1?.copy(initialValue)}if(alpha$1!=null){let{propertyName,initialValue}=alpha$1,target$1=this.material[propertyName];target$1!=null&&(this.material[propertyName]=initialValue)}}_initColorBindState(){var _a$2,_b,_c;let{material,type,targetValue}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[0])??null;if(propertyName==null)return console.warn(`Tried to add a material color bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type is not supported.`),null;let target$1=material[propertyName],initialValue=target$1.clone(),deltaValue=new Color(targetValue.r-initialValue.r,targetValue.g-initialValue.g,targetValue.b-initialValue.b);return{propertyName,initialValue,deltaValue}}_initAlphaBindState(){var _a$2,_b,_c;let{material,type,targetAlpha}=this,propertyNameMap=this._getPropertyNameMap(),propertyName=(_b=(_a$2=propertyNameMap?.[type])?.[1])??null;if(propertyName==null&&targetAlpha!==1)return console.warn(`Tried to add a material alpha bind to the material ${(_c=material.name)??`(no name)`}, the type ${type} but the material or the type does not support alpha.`),null;if(propertyName==null)return null;let initialValue=material[propertyName],deltaValue=targetAlpha-initialValue;return{propertyName,initialValue,deltaValue}}_getPropertyNameMap(){var _a$2,_b;return(_b=(_a$2=Object.entries(_VRMExpressionMaterialColorBind2._propertyNameMapMap).find(([distinguisher])=>this.material[distinguisher]===!0))?.[1])??null}};_VRMExpressionMaterialColorBind._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 VRMExpressionMaterialColorBind=_VRMExpressionMaterialColorBind,VRMExpressionMorphTargetBind=class{constructor({primitives,index:index$1,weight}){this.primitives=primitives,this.index=index$1,this.weight=weight}applyWeight(weight){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]+=this.weight*weight)})}clearAppliedWeight(){this.primitives.forEach(mesh=>{var _a$2;(_a$2=mesh.morphTargetInfluences)?.[this.index]!=null&&(mesh.morphTargetInfluences[this.index]=0)})}},_v2=new Vector2,_VRMExpressionTextureTransformBind=class _VRMExpressionTextureTransformBind2{constructor({material,scale:scale$1,offset:offset$1}){var _a$2,_b;this.material=material,this.scale=scale$1,this.offset=offset$1;let propertyNames=(_a$2=Object.entries(_VRMExpressionTextureTransformBind2._propertyNamesMap).find(([distinguisher])=>material[distinguisher]===!0))?.[1];propertyNames==null?(console.warn(`Tried to add a texture transform bind to the material ${(_b=material.name)??`(no name)`} but the material is not supported.`),this._properties=[]):(this._properties=[],propertyNames.forEach(propertyName=>{var _a2;let texture=(_a2=material[propertyName])?.clone();if(!texture)return null;material[propertyName]=texture;let initialOffset=texture.offset.clone(),initialScale=texture.repeat.clone(),deltaOffset=offset$1.clone().sub(initialOffset),deltaScale=scale$1.clone().sub(initialScale);this._properties.push({name:propertyName,initialOffset,deltaOffset,initialScale,deltaScale})}))}applyWeight(weight){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.add(_v2.copy(property.deltaOffset).multiplyScalar(weight)),target$1.repeat.add(_v2.copy(property.deltaScale).multiplyScalar(weight)))})}clearAppliedWeight(){this._properties.forEach(property=>{let target$1=this.material[property.name];target$1!==void 0&&(target$1.offset.copy(property.initialOffset),target$1.repeat.copy(property.initialScale))})}};_VRMExpressionTextureTransformBind._propertyNamesMap={isMeshStandardMaterial:[`map`,`emissiveMap`,`bumpMap`,`normalMap`,`displacementMap`,`roughnessMap`,`metalnessMap`,`alphaMap`],isMeshBasicMaterial:[`map`,`specularMap`,`alphaMap`],isMToonMaterial:[`map`,`normalMap`,`emissiveMap`,`shadeMultiplyTexture`,`rimMultiplyTexture`,`outlineWidthMultiplyTexture`,`uvAnimationMaskTexture`]};var VRMExpressionTextureTransformBind=_VRMExpressionTextureTransformBind,POSSIBLE_SPEC_VERSIONS=new Set([`1.0`,`1.0-beta`]),_VRMExpressionLoaderPlugin=class _VRMExpressionLoaderPlugin2{get name(){return`VRMExpressionLoaderPlugin`}constructor(parser){this.parser=parser}afterRoot(gltf){return __async2(this,null,function*(){gltf.userData.vrmExpressionManager=yield this._import(gltf)})}_import(gltf){return __async2(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result||null})}_v1Import(gltf){return __async2(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS.has(specVersion))return console.warn(`VRMExpressionLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaExpressions=extension$1.expressions;if(!schemaExpressions)return null;let presetNameSet=new Set(Object.values(VRMExpressionPresetName)),nameSchemaExpressionMap=new Map;schemaExpressions.preset!=null&&Object.entries(schemaExpressions.preset).forEach(([name$2,schemaExpression])=>{if(schemaExpression!=null){if(!presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Unknown preset name "${name$2}" detected. Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)}}),schemaExpressions.custom!=null&&Object.entries(schemaExpressions.custom).forEach(([name$2,schemaExpression])=>{if(presetNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: Custom expression cannot have preset name "${name$2}". Ignoring the expression`);return}nameSchemaExpressionMap.set(name$2,schemaExpression)});let manager=new VRMExpressionManager;return yield Promise.all(Array.from(nameSchemaExpressionMap.entries()).map(_0=>__async2(this,[_0],function*([name$2,schemaExpression]){var _a2,_b2,_c,_d,_e$2,_f,_g;let expression=new VRMExpression(name$2);if(gltf.scene.add(expression),expression.isBinary=(_a2=schemaExpression.isBinary)??!1,expression.overrideBlink=(_b2=schemaExpression.overrideBlink)??`none`,expression.overrideLookAt=(_c=schemaExpression.overrideLookAt)??`none`,expression.overrideMouth=(_d=schemaExpression.overrideMouth)??`none`,(_e$2=schemaExpression.morphTargetBinds)==null||_e$2.forEach(bind=>__async2(this,null,function*(){var _a3;if(bind.node===void 0||bind.index===void 0)return;let primitives=yield gltfExtractPrimitivesFromNode(gltf,bind.node),morphTargetIndex=bind.index;if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{let material=object.material;material&&(Array.isArray(material)?gltfMaterials.push(...material):gltfMaterials.push(material))}),(_f=schemaExpression.materialColorBinds)==null||_f.forEach(bind=>__async2(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{expression.addBind(new VRMExpressionMaterialColorBind({material,type:bind.type,targetValue:new Color().fromArray(bind.targetValue),targetAlpha:bind.targetValue[3]}))})})),(_g=schemaExpression.textureTransformBinds)==null||_g.forEach(bind=>__async2(this,null,function*(){let materials=gltfMaterials.filter(material=>{var _a3;let materialIndex=(_a3=this.parser.associations.get(material))?.materials;return bind.material===materialIndex});materials.forEach(material=>{var _a3,_b3;expression.addBind(new VRMExpressionTextureTransformBind({material,offset:new Vector2().fromArray((_a3=bind.offset)??[0,0]),scale:new Vector2().fromArray((_b3=bind.scale)??[1,1])}))})}))}manager.registerExpression(expression)}))),manager})}_v0Import(gltf){return __async2(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaBlendShape=vrmExt.blendShapeMaster;if(!schemaBlendShape)return null;let manager=new VRMExpressionManager,schemaBlendShapeGroups=schemaBlendShape.blendShapeGroups;if(!schemaBlendShapeGroups)return manager;let blendShapeNameSet=new Set;return yield Promise.all(schemaBlendShapeGroups.map(schemaGroup=>__async2(this,null,function*(){var _a2;let v0PresetName=schemaGroup.presetName,v1PresetName=v0PresetName!=null&&_VRMExpressionLoaderPlugin2.v0v1PresetNameMap[v0PresetName]||null,name$2=v1PresetName??schemaGroup.name;if(name$2==null){console.warn(`VRMExpressionLoaderPlugin: One of custom expressions has no name. Ignoring the expression`);return}if(blendShapeNameSet.has(name$2)){console.warn(`VRMExpressionLoaderPlugin: An expression preset ${v0PresetName} has duplicated entries. Ignoring the expression`);return}blendShapeNameSet.add(name$2);let expression=new VRMExpression(name$2);gltf.scene.add(expression),expression.isBinary=(_a2=schemaGroup.isBinary)??!1,schemaGroup.binds&&schemaGroup.binds.forEach(bind=>__async2(this,null,function*(){var _a3;if(bind.mesh===void 0||bind.index===void 0)return;let nodesUsingMesh=[];(_a3=json.nodes)==null||_a3.forEach((node$1,i$1)=>{node$1.mesh===bind.mesh&&nodesUsingMesh.push(i$1)});let morphTargetIndex=bind.index;yield Promise.all(nodesUsingMesh.map(nodeIndex=>__async2(this,null,function*(){var _a4;let primitives=yield gltfExtractPrimitivesFromNode(gltf,nodeIndex);if(!primitives.every(primitive=>Array.isArray(primitive.morphTargetInfluences)&&morphTargetIndex{if(materialValue.materialName===void 0||materialValue.propertyName===void 0||materialValue.targetValue===void 0)return;let materials=[];gltf.scene.traverse(object=>{if(object.material){let material=object.material;Array.isArray(material)?materials.push(...material.filter(mtl=>(mtl.name===materialValue.materialName||mtl.name===materialValue.materialName+` (Outline)`)&&materials.indexOf(mtl)===-1)):material.name===materialValue.materialName&&materials.indexOf(material)===-1&&materials.push(material)}});let materialPropertyName=materialValue.propertyName;materials.forEach(material=>{if(materialPropertyName===`_MainTex_ST`){let scale$1=new Vector2(materialValue.targetValue[0],materialValue.targetValue[1]),offset$1=new Vector2(materialValue.targetValue[2],materialValue.targetValue[3]);offset$1.y=1-offset$1.y-scale$1.y,expression.addBind(new VRMExpressionTextureTransformBind({material,scale:scale$1,offset:offset$1}));return}let materialColorType=v0ExpressionMaterialColorMap[materialPropertyName];if(materialColorType){expression.addBind(new VRMExpressionMaterialColorBind({material,type:materialColorType,targetValue:new Color().fromArray(materialValue.targetValue),targetAlpha:materialValue.targetValue[3]}));return}console.warn(materialPropertyName+` is not supported`)})}),manager.registerExpression(expression)}))),manager})}};_VRMExpressionLoaderPlugin.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 VRMExpressionLoaderPlugin=_VRMExpressionLoaderPlugin,_VRMFirstPerson=class _VRMFirstPerson2{constructor(humanoid,meshAnnotations){this._firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,this._thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER,this._initializedLayers=!1,this.humanoid=humanoid,this.meshAnnotations=meshAnnotations}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMFirstPerson: humanoid must be same in order to copy`);return this.meshAnnotations=source.meshAnnotations.map(annotation=>({meshes:annotation.meshes.concat(),type:annotation.type})),this}clone(){return new _VRMFirstPerson2(this.humanoid,this.meshAnnotations).copy(this)}get firstPersonOnlyLayer(){return this._firstPersonOnlyLayer}get thirdPersonOnlyLayer(){return this._thirdPersonOnlyLayer}setup({firstPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_FIRSTPERSON_ONLY_LAYER,thirdPersonOnlyLayer=_VRMFirstPerson2.DEFAULT_THIRDPERSON_ONLY_LAYER}={}){this._initializedLayers||(this._firstPersonOnlyLayer=firstPersonOnlyLayer,this._thirdPersonOnlyLayer=thirdPersonOnlyLayer,this.meshAnnotations.forEach(item=>{item.meshes.forEach(mesh=>{item.type===`firstPersonOnly`?(mesh.layers.set(this._firstPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._firstPersonOnlyLayer))):item.type===`thirdPersonOnly`?(mesh.layers.set(this._thirdPersonOnlyLayer),mesh.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer))):item.type===`auto`&&this._createHeadlessModel(mesh)})}),this._initializedLayers=!0)}_excludeTriangles(triangles,bws,skinIndex,exclude){let count$1=0;if(bws!=null&&bws.length>0)for(let i$1=0;i$10&&exclude.includes(skin0[0])||bw0[1]>0&&exclude.includes(skin0[1])||bw0[2]>0&&exclude.includes(skin0[2])||bw0[3]>0&&exclude.includes(skin0[3]))continue;let bw1=bws[b$3],skin1=skinIndex[b$3];if(bw1[0]>0&&exclude.includes(skin1[0])||bw1[1]>0&&exclude.includes(skin1[1])||bw1[2]>0&&exclude.includes(skin1[2])||bw1[3]>0&&exclude.includes(skin1[3]))continue;let bw2=bws[c$4],skin2=skinIndex[c$4];bw2[0]>0&&exclude.includes(skin2[0])||bw2[1]>0&&exclude.includes(skin2[1])||bw2[2]>0&&exclude.includes(skin2[2])||bw2[3]>0&&exclude.includes(skin2[3])||(triangles[count$1++]=a$2,triangles[count$1++]=b$3,triangles[count$1++]=c$4)}return count$1}_createErasedMesh(src,erasingBonesIndex){let dst=new SkinnedMesh(src.geometry.clone(),src.material);dst.name=`${src.name}(erase)`,dst.frustumCulled=src.frustumCulled,dst.layers.set(this._firstPersonOnlyLayer);let geometry=dst.geometry,skinIndexAttr=geometry.getAttribute(`skinIndex`),skinIndexAttrArray=skinIndexAttr instanceof GLBufferAttribute?[]:skinIndexAttr.array,skinIndex=[];for(let i$1=0;i$1{this._isEraseTarget(bone)&&eraseBoneIndexes.push(index$1)}),!eraseBoneIndexes.length){mesh.layers.enable(this._thirdPersonOnlyLayer),mesh.layers.enable(this._firstPersonOnlyLayer);return}mesh.layers.set(this._thirdPersonOnlyLayer);let newMesh=this._createErasedMesh(mesh,eraseBoneIndexes);parent.add(newMesh)}_createHeadlessModel(node$1){if(node$1.type===`Group`)if(node$1.layers.set(this._thirdPersonOnlyLayer),this._isEraseTarget(node$1))node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer));else{let parent=new Group;parent.name=`_headless_${node$1.name}`,parent.layers.set(this._firstPersonOnlyLayer),node$1.parent.add(parent),node$1.children.filter(child=>child.type===`SkinnedMesh`).forEach(child=>{let skinnedMesh=child;this._createHeadlessModelForSkinnedMesh(parent,skinnedMesh)})}else if(node$1.type===`SkinnedMesh`){let skinnedMesh=node$1;this._createHeadlessModelForSkinnedMesh(node$1.parent,skinnedMesh)}else this._isEraseTarget(node$1)&&(node$1.layers.set(this._thirdPersonOnlyLayer),node$1.traverse(child=>child.layers.set(this._thirdPersonOnlyLayer)))}_isEraseTarget(bone){return bone===this.humanoid.getRawBoneNode(`head`)?!0:bone.parent?this._isEraseTarget(bone.parent):!1}};_VRMFirstPerson.DEFAULT_FIRSTPERSON_ONLY_LAYER=9,_VRMFirstPerson.DEFAULT_THIRDPERSON_ONLY_LAYER=10;var VRMFirstPerson=_VRMFirstPerson,POSSIBLE_SPEC_VERSIONS2=new Set([`1.0`,`1.0-beta`]),VRMFirstPersonLoaderPlugin=class{get name(){return`VRMFirstPersonLoaderPlugin`}constructor(parser){this.parser=parser}afterRoot(gltf){return __async2(this,null,function*(){let vrmHumanoid=gltf.userData.vrmHumanoid;if(vrmHumanoid!==null){if(vrmHumanoid===void 0)throw Error(`VRMFirstPersonLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);gltf.userData.vrmFirstPerson=yield this._import(gltf,vrmHumanoid)}})}_import(gltf,humanoid){return __async2(this,null,function*(){if(humanoid==null)return null;let v1Result=yield this._v1Import(gltf,humanoid);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf,humanoid);return v0Result||null})}_v1Import(gltf,humanoid){return __async2(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS2.has(specVersion))return console.warn(`VRMFirstPersonLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaFirstPerson=extension$1.firstPerson,meshAnnotations=[],nodePrimitivesMap=yield gltfExtractPrimitivesFromNodes(gltf);return Array.from(nodePrimitivesMap.entries()).forEach(([nodeIndex,primitives])=>{var _a2,_b2;let annotation=(_a2=schemaFirstPerson?.meshAnnotations)?.find(a$2=>a$2.node===nodeIndex);meshAnnotations.push({meshes:primitives,type:(_b2=annotation?.type)??`auto`})}),new VRMFirstPerson(humanoid,meshAnnotations)})}_v0Import(gltf,humanoid){return __async2(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaFirstPerson=vrmExt.firstPerson;if(!schemaFirstPerson)return null;let meshAnnotations=[],nodePrimitivesMap=yield gltfExtractPrimitivesFromNodes(gltf);return Array.from(nodePrimitivesMap.entries()).forEach(([nodeIndex,primitives])=>{let schemaNode=json.nodes[nodeIndex],flag=schemaFirstPerson.meshAnnotations?schemaFirstPerson.meshAnnotations.find(a$2=>a$2.mesh===schemaNode.mesh):void 0;meshAnnotations.push({meshes:primitives,type:this._convertV0FlagToV1Type(flag?.firstPersonFlag)})}),new VRMFirstPerson(humanoid,meshAnnotations)})}_convertV0FlagToV1Type(flag){return flag===`FirstPersonOnly`?`firstPersonOnly`:flag===`ThirdPersonOnly`?`thirdPersonOnly`:flag===`Both`?`both`:`auto`}},_v3A=new Vector3,_v3B=new Vector3,_quatA=new Quaternion,VRMHumanoidHelper=class extends Group{constructor(humanoid){super(),this.vrmHumanoid=humanoid,this._boneAxesMap=new Map,Object.values(humanoid.humanBones).forEach(bone=>{let helper=new AxesHelper(1);helper.matrixAutoUpdate=!1,helper.material.depthTest=!1,helper.material.depthWrite=!1,this.add(helper),this._boneAxesMap.set(bone,helper)})}dispose(){Array.from(this._boneAxesMap.values()).forEach(axes=>{axes.geometry.dispose(),axes.material.dispose()})}updateMatrixWorld(force){Array.from(this._boneAxesMap.entries()).forEach(([bone,axes])=>{bone.node.updateWorldMatrix(!0,!1),bone.node.matrixWorld.decompose(_v3A,_quatA,_v3B);let scale$1=_v3A.set(.1,.1,.1).divide(_v3B);axes.matrix.copy(bone.node.matrixWorld).scale(scale$1)}),super.updateMatrixWorld(force)}},VRMHumanBoneList=`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(`.`),VRMHumanBoneParentMap={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 quatInvertCompat(target$1){return target$1.invert?target$1.invert():target$1.inverse(),target$1}var _v3A2=new Vector3,_quatA2=new Quaternion,VRMRig=class{constructor(humanBones){this.humanBones=humanBones,this.restPose=this.getAbsolutePose()}getAbsolutePose(){let pose={};return Object.keys(this.humanBones).forEach(vrmBoneNameString=>{let vrmBoneName=vrmBoneNameString,node$1=this.getBoneNode(vrmBoneName);node$1&&(_v3A2.copy(node$1.position),_quatA2.copy(node$1.quaternion),pose[vrmBoneName]={position:_v3A2.toArray(),rotation:_quatA2.toArray()})}),pose}getPose(){let pose={};return Object.keys(this.humanBones).forEach(boneNameString=>{let boneName=boneNameString,node$1=this.getBoneNode(boneName);if(!node$1)return;_v3A2.set(0,0,0),_quatA2.identity();let restState=this.restPose[boneName];restState?.position&&_v3A2.fromArray(restState.position).negate(),restState?.rotation&&quatInvertCompat(_quatA2.fromArray(restState.rotation)),_v3A2.add(node$1.position),_quatA2.premultiply(node$1.quaternion),pose[boneName]={position:_v3A2.toArray(),rotation:_quatA2.toArray()}}),pose}setPose(poseObject){Object.entries(poseObject).forEach(([boneNameString,state])=>{let boneName=boneNameString,node$1=this.getBoneNode(boneName);if(!node$1)return;let restState=this.restPose[boneName];restState&&(state?.position&&(node$1.position.fromArray(state.position),restState.position&&node$1.position.add(_v3A2.fromArray(restState.position))),state?.rotation&&(node$1.quaternion.fromArray(state.rotation),restState.rotation&&node$1.quaternion.multiply(_quatA2.fromArray(restState.rotation))))})}resetPose(){Object.entries(this.restPose).forEach(([boneName,rest])=>{let node$1=this.getBoneNode(boneName);node$1&&(rest?.position&&node$1.position.fromArray(rest.position),rest?.rotation&&node$1.quaternion.fromArray(rest.rotation))})}getBone(name$2){var _a$2;return(_a$2=this.humanBones[name$2])??void 0}getBoneNode(name$2){var _a$2,_b;return(_b=(_a$2=this.humanBones[name$2])?.node)??null}},_v3A3=new Vector3,_quatA3=new Quaternion,_boneWorldPos=new Vector3,VRMHumanoidRig=class _VRMHumanoidRig extends VRMRig{static _setupTransforms(modelRig){let root$3=new Object3D;root$3.name=`VRMHumanoidRig`;let boneWorldPositions={},boneWorldRotations={},boneRotations={},parentWorldRotations={};VRMHumanBoneList.forEach(boneName=>{var _a$2;let boneNode=modelRig.getBoneNode(boneName);if(boneNode){let boneWorldPosition=new Vector3,boneWorldRotation=new Quaternion;boneNode.updateWorldMatrix(!0,!1),boneNode.matrixWorld.decompose(boneWorldPosition,boneWorldRotation,_v3A3),boneWorldPositions[boneName]=boneWorldPosition,boneWorldRotations[boneName]=boneWorldRotation,boneRotations[boneName]=boneNode.quaternion.clone();let parentWorldRotation=new Quaternion;(_a$2=boneNode.parent)==null||_a$2.matrixWorld.decompose(_v3A3,parentWorldRotation,_v3A3),parentWorldRotations[boneName]=parentWorldRotation}});let rigBones={};return VRMHumanBoneList.forEach(boneName=>{var _a$2;let boneNode=modelRig.getBoneNode(boneName);if(boneNode){let boneWorldPosition=boneWorldPositions[boneName],currentBoneName=boneName,parentBoneWorldPosition;for(;parentBoneWorldPosition==null&&(currentBoneName=VRMHumanBoneParentMap[currentBoneName],currentBoneName!=null);)parentBoneWorldPosition=boneWorldPositions[currentBoneName];let rigBoneNode=new Object3D;rigBoneNode.name=`Normalized_`+boneNode.name;let parentRigBoneNode=currentBoneName?(_a$2=rigBones[currentBoneName])?.node:root$3;parentRigBoneNode.add(rigBoneNode),rigBoneNode.position.copy(boneWorldPosition),parentBoneWorldPosition&&rigBoneNode.position.sub(parentBoneWorldPosition),rigBones[boneName]={node:rigBoneNode}}}),{rigBones,root:root$3,parentWorldRotations,boneRotations}}constructor(humanoid){let{rigBones,root:root$3,parentWorldRotations,boneRotations}=_VRMHumanoidRig._setupTransforms(humanoid);super(rigBones),this.original=humanoid,this.root=root$3,this._parentWorldRotations=parentWorldRotations,this._boneRotations=boneRotations}update(){VRMHumanBoneList.forEach(boneName=>{let boneNode=this.original.getBoneNode(boneName);if(boneNode!=null){let rigBoneNode=this.getBoneNode(boneName),parentWorldRotation=this._parentWorldRotations[boneName],invParentWorldRotation=_quatA3.copy(parentWorldRotation).invert(),boneRotation=this._boneRotations[boneName];if(boneNode.quaternion.copy(rigBoneNode.quaternion).multiply(parentWorldRotation).premultiply(invParentWorldRotation).multiply(boneRotation),boneName===`hips`){let boneWorldPosition=rigBoneNode.getWorldPosition(_boneWorldPos);boneNode.parent.updateWorldMatrix(!0,!1);let parentWorldMatrix=boneNode.parent.matrixWorld,localPosition=boneWorldPosition.applyMatrix4(parentWorldMatrix.invert());boneNode.position.copy(localPosition)}}})}},VRMHumanoid=class _VRMHumanoid{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(humanBones,options$1){var _a$2;this.autoUpdateHumanBones=(_a$2=options$1?.autoUpdateHumanBones)??!0,this._rawHumanBones=new VRMRig(humanBones),this._normalizedHumanBones=new VRMHumanoidRig(this._rawHumanBones)}copy(source){return this.autoUpdateHumanBones=source.autoUpdateHumanBones,this._rawHumanBones=new VRMRig(source.humanBones),this._normalizedHumanBones=new VRMHumanoidRig(this._rawHumanBones),this}clone(){return new _VRMHumanoid(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(poseObject){return console.warn(`VRMHumanoid: setPose() is deprecated. Use either setRawPose() or setNormalizedPose() instead.`),this.setRawPose(poseObject)}setRawPose(poseObject){return this._rawHumanBones.setPose(poseObject)}setNormalizedPose(poseObject){return this._normalizedHumanBones.setPose(poseObject)}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(name$2){return console.warn(`VRMHumanoid: getBone() is deprecated. Use either getRawBone() or getNormalizedBone() instead.`),this.getRawBone(name$2)}getRawBone(name$2){return this._rawHumanBones.getBone(name$2)}getNormalizedBone(name$2){return this._normalizedHumanBones.getBone(name$2)}getBoneNode(name$2){return console.warn(`VRMHumanoid: getBoneNode() is deprecated. Use either getRawBoneNode() or getNormalizedBoneNode() instead.`),this.getRawBoneNode(name$2)}getRawBoneNode(name$2){return this._rawHumanBones.getBoneNode(name$2)}getNormalizedBoneNode(name$2){return this._normalizedHumanBones.getBoneNode(name$2)}update(){this.autoUpdateHumanBones&&this._normalizedHumanBones.update()}},VRMRequiredHumanBoneName={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`},POSSIBLE_SPEC_VERSIONS3=new Set([`1.0`,`1.0-beta`]),thumbBoneNameMap={leftThumbProximal:`leftThumbMetacarpal`,leftThumbIntermediate:`leftThumbProximal`,rightThumbProximal:`rightThumbMetacarpal`,rightThumbIntermediate:`rightThumbProximal`},VRMHumanoidLoaderPlugin=class{get name(){return`VRMHumanoidLoaderPlugin`}constructor(parser,options$1){this.parser=parser,this.helperRoot=options$1?.helperRoot,this.autoUpdateHumanBones=options$1?.autoUpdateHumanBones}afterRoot(gltf){return __async2(this,null,function*(){gltf.userData.vrmHumanoid=yield this._import(gltf)})}_import(gltf){return __async2(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result||null})}_v1Import(gltf){return __async2(this,null,function*(){var _a$2,_b;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS3.has(specVersion))return console.warn(`VRMHumanoidLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaHumanoid=extension$1.humanoid;if(!schemaHumanoid)return null;let existsPreviousThumbName=schemaHumanoid.humanBones.leftThumbIntermediate!=null||schemaHumanoid.humanBones.rightThumbIntermediate!=null,humanBones={};schemaHumanoid.humanBones!=null&&(yield Promise.all(Object.entries(schemaHumanoid.humanBones).map(_0=>__async2(this,[_0],function*([boneNameString,schemaHumanBone]){let boneName=boneNameString,index$1=schemaHumanBone.node;if(existsPreviousThumbName){let thumbBoneName=thumbBoneNameMap[boneName];thumbBoneName!=null&&(boneName=thumbBoneName)}let node$1=yield this.parser.getDependency(`node`,index$1);if(node$1==null){console.warn(`A glTF node bound to the humanoid bone ${boneName} (index = ${index$1}) does not exist`);return}humanBones[boneName]={node:node$1}}))));let humanoid=new VRMHumanoid(this._ensureRequiredBonesExist(humanBones),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(gltf.scene.add(humanoid.normalizedHumanBonesRoot),this.helperRoot){let helper=new VRMHumanoidHelper(humanoid);this.helperRoot.add(helper),helper.renderOrder=this.helperRoot.renderOrder}return humanoid})}_v0Import(gltf){return __async2(this,null,function*(){var _a$2;let json=this.parser.json,vrmExt=(_a$2=json.extensions)?.VRM;if(!vrmExt)return null;let schemaHumanoid=vrmExt.humanoid;if(!schemaHumanoid)return null;let humanBones={};schemaHumanoid.humanBones!=null&&(yield Promise.all(schemaHumanoid.humanBones.map(bone=>__async2(this,null,function*(){let boneName=bone.bone,index$1=bone.node;if(boneName==null||index$1==null)return;let node$1=yield this.parser.getDependency(`node`,index$1);if(node$1==null){console.warn(`A glTF node bound to the humanoid bone ${boneName} (index = ${index$1}) does not exist`);return}let thumbBoneName=thumbBoneNameMap[boneName],newBoneName=thumbBoneName??boneName;if(humanBones[newBoneName]!=null){console.warn(`Multiple bone entries for ${newBoneName} detected (index = ${index$1}), ignoring duplicated entries.`);return}humanBones[newBoneName]={node:node$1}}))));let humanoid=new VRMHumanoid(this._ensureRequiredBonesExist(humanBones),{autoUpdateHumanBones:this.autoUpdateHumanBones});if(gltf.scene.add(humanoid.normalizedHumanBonesRoot),this.helperRoot){let helper=new VRMHumanoidHelper(humanoid);this.helperRoot.add(helper),helper.renderOrder=this.helperRoot.renderOrder}return humanoid})}_ensureRequiredBonesExist(humanBones){let missingRequiredBones=Object.values(VRMRequiredHumanBoneName).filter(requiredBoneName=>humanBones[requiredBoneName]==null);if(missingRequiredBones.length>0)throw Error(`VRMHumanoidLoaderPlugin: These humanoid bones are required but not exist: ${missingRequiredBones.join(`, `)}`);return humanBones}},FanBufferGeometry=class extends BufferGeometry{constructor(){super(),this._currentTheta=0,this._currentRadius=0,this.theta=0,this.radius=0,this._currentTheta=0,this._currentRadius=0,this._attrPos=new BufferAttribute(new Float32Array(65*3),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(3*63),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1;this._currentTheta!==this.theta&&(this._currentTheta=this.theta,shouldUpdateGeometry=!0),this._currentRadius!==this.radius&&(this._currentRadius=this.radius,shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){this._attrPos.setXYZ(0,0,0,0);for(let i$1=0;i$1<64;i$1++){let t=i$1/63*this._currentTheta;this._attrPos.setXYZ(i$1+1,this._currentRadius*Math.sin(t),0,this._currentRadius*Math.cos(t))}this._attrPos.needsUpdate=!0}_buildIndex(){for(let i$1=0;i$1<63;i$1++)this._attrIndex.setXYZ(i$1*3,0,i$1+1,i$1+2);this._attrIndex.needsUpdate=!0}},LineAndSphereBufferGeometry=class extends BufferGeometry{constructor(){super(),this.radius=0,this._currentRadius=0,this.tail=new Vector3,this._currentTail=new Vector3,this._attrPos=new BufferAttribute(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1;this._currentRadius!==this.radius&&(this._currentRadius=this.radius,shouldUpdateGeometry=!0),this._currentTail.equals(this.tail)||(this._currentTail.copy(this.tail),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+i$1,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+i$1,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 i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(64+i$1*2,32+i$1,32+i1),this._attrIndex.setXY(128+i$1*2,64+i$1,64+i1)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},_quatA4=new Quaternion,_quatB=new Quaternion,_v3A4=new Vector3,_v3B2=new Vector3,SQRT_2_OVER_2=Math.sqrt(2)/2,QUAT_XY_CW90=new Quaternion(0,0,-SQRT_2_OVER_2,SQRT_2_OVER_2),VEC3_POSITIVE_Y=new Vector3(0,1,0),VRMLookAtHelper=class extends Group{constructor(lookAt){super(),this.matrixAutoUpdate=!1,this.vrmLookAt=lookAt;{let geometry=new FanBufferGeometry;geometry.radius=.5;let material=new MeshBasicMaterial({color:65280,transparent:!0,opacity:.5,side:DoubleSide,depthTest:!1,depthWrite:!1});this._meshPitch=new Mesh(geometry,material),this.add(this._meshPitch)}{let geometry=new FanBufferGeometry;geometry.radius=.5;let material=new MeshBasicMaterial({color:16711680,transparent:!0,opacity:.5,side:DoubleSide,depthTest:!1,depthWrite:!1});this._meshYaw=new Mesh(geometry,material),this.add(this._meshYaw)}{let geometry=new LineAndSphereBufferGeometry;geometry.radius=.1;let material=new LineBasicMaterial({color:16777215,depthTest:!1,depthWrite:!1});this._lineTarget=new LineSegments(geometry,material),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(force){let yaw=MathUtils.DEG2RAD*this.vrmLookAt.yaw;this._meshYaw.geometry.theta=yaw,this._meshYaw.geometry.update();let pitch=MathUtils.DEG2RAD*this.vrmLookAt.pitch;this._meshPitch.geometry.theta=pitch,this._meshPitch.geometry.update(),this.vrmLookAt.getLookAtWorldPosition(_v3A4),this.vrmLookAt.getLookAtWorldQuaternion(_quatA4),_quatA4.multiply(this.vrmLookAt.getFaceFrontQuaternion(_quatB)),this._meshYaw.position.copy(_v3A4),this._meshYaw.quaternion.copy(_quatA4),this._meshPitch.position.copy(_v3A4),this._meshPitch.quaternion.copy(_quatA4),this._meshPitch.quaternion.multiply(_quatB.setFromAxisAngle(VEC3_POSITIVE_Y,yaw)),this._meshPitch.quaternion.multiply(QUAT_XY_CW90);let{target:target$1,autoUpdate}=this.vrmLookAt;target$1!=null&&autoUpdate&&(target$1.getWorldPosition(_v3B2).sub(_v3A4),this._lineTarget.geometry.tail.copy(_v3B2),this._lineTarget.geometry.update(),this._lineTarget.position.copy(_v3A4)),super.updateMatrixWorld(force)}},_position=new Vector3,_scale=new Vector3;function getWorldQuaternionLite(object,out){return object.matrixWorld.decompose(_position,out,_scale),out}function calcAzimuthAltitude(vector){return[Math.atan2(-vector.z,vector.x),Math.atan2(vector.y,Math.sqrt(vector.x*vector.x+vector.z*vector.z))]}function sanitizeAngle(angle){let roundTurn=Math.round(angle/2/Math.PI);return angle-2*Math.PI*roundTurn}var VEC3_POSITIVE_Z=new Vector3(0,0,1),_v3A5=new Vector3,_v3B3=new Vector3,_v3C=new Vector3,_quatA5=new Quaternion,_quatB2=new Quaternion,_quatC=new Quaternion,_quatD=new Quaternion,_eulerA=new Euler,_VRMLookAt=class _VRMLookAt2{constructor(humanoid,applier){this.offsetFromHeadBone=new Vector3,this.autoUpdate=!0,this.faceFront=new Vector3(0,0,1),this.humanoid=humanoid,this.applier=applier,this._yaw=0,this._pitch=0,this._needsUpdate=!0,this._restHeadWorldQuaternion=this.getLookAtWorldQuaternion(new Quaternion)}get yaw(){return this._yaw}set yaw(value$1){this._yaw=value$1,this._needsUpdate=!0}get pitch(){return this._pitch}set pitch(value$1){this._pitch=value$1,this._needsUpdate=!0}get euler(){return console.warn(`VRMLookAt: euler is deprecated. use getEuler() instead.`),this.getEuler(new Euler)}getEuler(target$1){return target$1.set(MathUtils.DEG2RAD*this._pitch,MathUtils.DEG2RAD*this._yaw,0,`YXZ`)}copy(source){if(this.humanoid!==source.humanoid)throw Error(`VRMLookAt: humanoid must be same in order to copy`);return this.offsetFromHeadBone.copy(source.offsetFromHeadBone),this.applier=source.applier,this.autoUpdate=source.autoUpdate,this.target=source.target,this.faceFront.copy(source.faceFront),this}clone(){return new _VRMLookAt2(this.humanoid,this.applier).copy(this)}reset(){this._yaw=0,this._pitch=0,this._needsUpdate=!0}getLookAtWorldPosition(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return target$1.copy(this.offsetFromHeadBone).applyMatrix4(head$1.matrixWorld)}getLookAtWorldQuaternion(target$1){let head$1=this.humanoid.getRawBoneNode(`head`);return getWorldQuaternionLite(head$1,target$1)}getFaceFrontQuaternion(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z)<.01)return target$1.copy(this._restHeadWorldQuaternion).invert();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude(this.faceFront);return _eulerA.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA).premultiply(_quatD.copy(this._restHeadWorldQuaternion).invert())}getLookAtWorldDirection(target$1){return this.getLookAtWorldQuaternion(_quatB2),this.getFaceFrontQuaternion(_quatC),target$1.copy(VEC3_POSITIVE_Z).applyQuaternion(_quatB2).applyQuaternion(_quatC).applyEuler(this.getEuler(_eulerA))}lookAt(position$2){let headRotDiffInv=_quatA5.copy(this._restHeadWorldQuaternion).multiply(quatInvertCompat(this.getLookAtWorldQuaternion(_quatB2))),headPos=this.getLookAtWorldPosition(_v3B3),lookAtDir=_v3C.copy(position$2).sub(headPos).applyQuaternion(headRotDiffInv).normalize(),[azimuthFrom,altitudeFrom]=calcAzimuthAltitude(this.faceFront),[azimuthTo,altitudeTo]=calcAzimuthAltitude(lookAtDir),yaw=sanitizeAngle(azimuthTo-azimuthFrom),pitch=sanitizeAngle(altitudeFrom-altitudeTo);this._yaw=MathUtils.RAD2DEG*yaw,this._pitch=MathUtils.RAD2DEG*pitch,this._needsUpdate=!0}update(delta){this.target!=null&&this.autoUpdate&&this.lookAt(this.target.getWorldPosition(_v3A5)),this._needsUpdate&&(this._needsUpdate=!1,this.applier.applyYawPitch(this._yaw,this._pitch))}};_VRMLookAt.EULER_ORDER=`YXZ`;var VRMLookAt=_VRMLookAt,VEC3_POSITIVE_Z2=new Vector3(0,0,1),_quatA6=new Quaternion,_quatB3=new Quaternion,_eulerA2=new Euler(0,0,0,`YXZ`),VRMLookAtBoneApplier=class{constructor(humanoid,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.humanoid=humanoid,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp,this.faceFront=new Vector3(0,0,1),this._restQuatLeftEye=new Quaternion,this._restQuatRightEye=new Quaternion,this._restLeftEyeParentWorldQuat=new Quaternion,this._restRightEyeParentWorldQuat=new Quaternion;let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`);leftEye&&(this._restQuatLeftEye.copy(leftEye.quaternion),getWorldQuaternionLite(leftEye.parent,this._restLeftEyeParentWorldQuat)),rightEye&&(this._restQuatRightEye.copy(rightEye.quaternion),getWorldQuaternionLite(rightEye.parent,this._restRightEyeParentWorldQuat))}applyYawPitch(yaw,pitch){let leftEye=this.humanoid.getRawBoneNode(`leftEye`),rightEye=this.humanoid.getRawBoneNode(`rightEye`),leftEyeNormalized=this.humanoid.getNormalizedBoneNode(`leftEye`),rightEyeNormalized=this.humanoid.getNormalizedBoneNode(`rightEye`);leftEye&&(pitch<0?_eulerA2.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(-yaw):_eulerA2.y=MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(yaw),_quatA6.setFromEuler(_eulerA2),this._getWorldFaceFrontQuat(_quatB3),leftEyeNormalized.quaternion.copy(_quatB3).multiply(_quatA6).multiply(_quatB3.invert()),_quatA6.copy(this._restLeftEyeParentWorldQuat),leftEye.quaternion.copy(leftEyeNormalized.quaternion).multiply(_quatA6).premultiply(_quatA6.invert()).multiply(this._restQuatLeftEye)),rightEye&&(pitch<0?_eulerA2.x=-MathUtils.DEG2RAD*this.rangeMapVerticalDown.map(-pitch):_eulerA2.x=MathUtils.DEG2RAD*this.rangeMapVerticalUp.map(pitch),yaw<0?_eulerA2.y=-MathUtils.DEG2RAD*this.rangeMapHorizontalOuter.map(-yaw):_eulerA2.y=MathUtils.DEG2RAD*this.rangeMapHorizontalInner.map(yaw),_quatA6.setFromEuler(_eulerA2),this._getWorldFaceFrontQuat(_quatB3),rightEyeNormalized.quaternion.copy(_quatB3).multiply(_quatA6).multiply(_quatB3.invert()),_quatA6.copy(this._restRightEyeParentWorldQuat),rightEye.quaternion.copy(rightEyeNormalized.quaternion).multiply(_quatA6).premultiply(_quatA6.invert()).multiply(this._restQuatRightEye))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}_getWorldFaceFrontQuat(target$1){if(this.faceFront.distanceToSquared(VEC3_POSITIVE_Z2)<.01)return target$1.identity();let[faceFrontAzimuth,faceFrontAltitude]=calcAzimuthAltitude(this.faceFront);return _eulerA2.set(0,.5*Math.PI+faceFrontAzimuth,faceFrontAltitude,`YZX`),target$1.setFromEuler(_eulerA2)}};VRMLookAtBoneApplier.type=`bone`;var VRMLookAtExpressionApplier=class{constructor(expressions,rangeMapHorizontalInner,rangeMapHorizontalOuter,rangeMapVerticalDown,rangeMapVerticalUp){this.expressions=expressions,this.rangeMapHorizontalInner=rangeMapHorizontalInner,this.rangeMapHorizontalOuter=rangeMapHorizontalOuter,this.rangeMapVerticalDown=rangeMapVerticalDown,this.rangeMapVerticalUp=rangeMapVerticalUp}applyYawPitch(yaw,pitch){pitch<0?(this.expressions.setValue(`lookDown`,0),this.expressions.setValue(`lookUp`,this.rangeMapVerticalUp.map(-pitch))):(this.expressions.setValue(`lookUp`,0),this.expressions.setValue(`lookDown`,this.rangeMapVerticalDown.map(pitch))),yaw<0?(this.expressions.setValue(`lookLeft`,0),this.expressions.setValue(`lookRight`,this.rangeMapHorizontalOuter.map(-yaw))):(this.expressions.setValue(`lookRight`,0),this.expressions.setValue(`lookLeft`,this.rangeMapHorizontalOuter.map(yaw)))}lookAt(euler){console.warn(`VRMLookAtBoneApplier: lookAt() is deprecated. use apply() instead.`);let yaw=MathUtils.RAD2DEG*euler.y,pitch=MathUtils.RAD2DEG*euler.x;this.applyYawPitch(yaw,pitch)}};VRMLookAtExpressionApplier.type=`expression`;var VRMLookAtRangeMap=class{constructor(inputMaxValue,outputScale){this.inputMaxValue=inputMaxValue,this.outputScale=outputScale}map(src){return this.outputScale*saturate(src/this.inputMaxValue)}},POSSIBLE_SPEC_VERSIONS4=new Set([`1.0`,`1.0-beta`]),INPUT_MAX_VALUE_MINIMUM=.01,VRMLookAtLoaderPlugin=class{get name(){return`VRMLookAtLoaderPlugin`}constructor(parser,options$1){this.parser=parser,this.helperRoot=options$1?.helperRoot}afterRoot(gltf){return __async2(this,null,function*(){let vrmHumanoid=gltf.userData.vrmHumanoid;if(vrmHumanoid===null)return;if(vrmHumanoid===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmHumanoid is undefined. VRMHumanoidLoaderPlugin have to be used first`);let vrmExpressionManager=gltf.userData.vrmExpressionManager;if(vrmExpressionManager!==null){if(vrmExpressionManager===void 0)throw Error(`VRMLookAtLoaderPlugin: vrmExpressionManager is undefined. VRMExpressionLoaderPlugin have to be used first`);gltf.userData.vrmLookAt=yield this._import(gltf,vrmHumanoid,vrmExpressionManager)}})}_import(gltf,humanoid,expressions){return __async2(this,null,function*(){if(humanoid==null||expressions==null)return null;let v1Result=yield this._v1Import(gltf,humanoid,expressions);if(v1Result)return v1Result;let v0Result=yield this._v0Import(gltf,humanoid,expressions);return v0Result||null})}_v1Import(gltf,humanoid,expressions){return __async2(this,null,function*(){var _a$2,_b,_c;let json=this.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRMC_vrm`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRMC_vrm;if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS4.has(specVersion))return console.warn(`VRMLookAtLoaderPlugin: Unknown VRMC_vrm specVersion "${specVersion}"`),null;let schemaLookAt=extension$1.lookAt;if(!schemaLookAt)return null;let defaultOutputScale=schemaLookAt.type===`expression`?1:10,mapHI=this._v1ImportRangeMap(schemaLookAt.rangeMapHorizontalInner,defaultOutputScale),mapHO=this._v1ImportRangeMap(schemaLookAt.rangeMapHorizontalOuter,defaultOutputScale),mapVD=this._v1ImportRangeMap(schemaLookAt.rangeMapVerticalDown,defaultOutputScale),mapVU=this._v1ImportRangeMap(schemaLookAt.rangeMapVerticalUp,defaultOutputScale),applier;applier=schemaLookAt.type===`expression`?new VRMLookAtExpressionApplier(expressions,mapHI,mapHO,mapVD,mapVU):new VRMLookAtBoneApplier(humanoid,mapHI,mapHO,mapVD,mapVU);let lookAt=this._importLookAt(humanoid,applier);return lookAt.offsetFromHeadBone.fromArray((_c=schemaLookAt.offsetFromHeadBone)??[0,.06,0]),lookAt})}_v1ImportRangeMap(schemaRangeMap,defaultOutputScale){var _a$2,_b;let inputMaxValue=(_a$2=schemaRangeMap?.inputMaxValue)??90,outputScale=(_b=schemaRangeMap?.outputScale)??defaultOutputScale;return inputMaxValue(console.error(error),console.warn(`VRMMetaLoaderPlugin: Failed to load a thumbnail image`),null))})}},VRMCore=class{constructor(params){this.scene=params.scene,this.meta=params.meta,this.humanoid=params.humanoid,this.expressionManager=params.expressionManager,this.firstPerson=params.firstPerson,this.lookAt=params.lookAt}update(delta){this.humanoid.update(),this.lookAt&&this.lookAt.update(delta),this.expressionManager&&this.expressionManager.update()}},VRM=class extends VRMCore{constructor(params){super(params),this.materials=params.materials,this.springBoneManager=params.springBoneManager,this.nodeConstraintManager=params.nodeConstraintManager}update(delta){super.update(delta),this.nodeConstraintManager&&this.nodeConstraintManager.update(),this.springBoneManager&&this.springBoneManager.update(delta),this.materials&&this.materials.forEach(material=>{material.update&&material.update(delta)})}},__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(obj,key$1,value$1)=>key$1 in obj?__defProp(obj,key$1,{enumerable:!0,configurable:!0,writable:!0,value:value$1}):obj[key$1]=value$1,__spreadValues=(a$2,b$3)=>{for(var prop in b$3||={})__hasOwnProp.call(b$3,prop)&&__defNormalProp(a$2,prop,b$3[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b$3))__propIsEnum.call(b$3,prop)&&__defNormalProp(a$2,prop,b$3[prop]);return a$2},__async3=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),colorSpaceEncodingMap={"":3e3,srgb:3001};function setTextureColorSpace(texture,colorSpace){parseInt(REVISION,10)>=152?texture.colorSpace=colorSpace:texture.encoding=colorSpaceEncodingMap[colorSpace]}var GLTFMToonMaterialParamsAssignHelper=class{get pending(){return Promise.all(this._pendings)}constructor(parser,materialParams){this._parser=parser,this._materialParams=materialParams,this._pendings=[]}assignPrimitive(key$1,value$1){value$1!=null&&(this._materialParams[key$1]=value$1)}assignColor(key$1,value$1,convertSRGBToLinear){value$1!=null&&(this._materialParams[key$1]=new Color().fromArray(value$1),convertSRGBToLinear&&this._materialParams[key$1].convertSRGBToLinear())}assignTexture(key$1,texture,isColorTexture){return __async3(this,null,function*(){let promise=(()=>__async3(this,null,function*(){texture!=null&&(yield this._parser.assignTexture(this._materialParams,key$1,texture),isColorTexture&&setTextureColorSpace(this._materialParams[key$1],`srgb`))}))();return this._pendings.push(promise),promise})}assignTextureByIndex(key$1,textureIndex,isColorTexture){return __async3(this,null,function*(){return this.assignTexture(key$1,textureIndex==null?void 0:{index:textureIndex},isColorTexture)})}},mtoon_default=`// #define PHONG varying vec3 vViewPosition; @@ -4926,7 +4926,7 @@ void main() { } `,MToonMaterialDebugMode={None:`none`,Normal:`normal`,LitShadeRate:`litShadeRate`,UV:`uv`},MToonMaterialOutlineWidthMode={None:`none`,WorldCoordinates:`worldCoordinates`,ScreenCoordinates:`screenCoordinates`},encodingColorSpaceMap={3e3:``,3001:`srgb`};function getTextureColorSpace(texture){return parseInt(REVISION,10)>=152?texture.colorSpace:encodingColorSpaceMap[texture.encoding]}var MToonMaterial=class extends ShaderMaterial{constructor(parameters={}){var _a$2;super({vertexShader:mtoon_default,fragmentShader:mtoon_default2}),this.uvAnimationScrollXSpeedFactor=0,this.uvAnimationScrollYSpeedFactor=0,this.uvAnimationRotationSpeedFactor=0,this.fog=!0,this.normalMapType=TangentSpaceNormalMap,this._ignoreVertexColor=!0,this._v0CompatShade=!1,this._debugMode=MToonMaterialDebugMode.None,this._outlineWidthMode=MToonMaterialOutlineWidthMode.None,this._isOutline=!1,parameters.transparentWithZWrite&&(parameters.depthWrite=!0),delete parameters.transparentWithZWrite,parameters.fog=!0,parameters.lights=!0,parameters.clipping=!0,this.uniforms=UniformsUtils.merge([UniformsLib.common,UniformsLib.normalmap,UniformsLib.emissivemap,UniformsLib.fog,UniformsLib.lights,{litFactor:{value:new Color(1,1,1)},mapUvTransform:{value:new Matrix3},colorAlpha:{value:1},normalMapUvTransform:{value:new Matrix3},shadeColorFactor:{value:new Color(0,0,0)},shadeMultiplyTexture:{value:null},shadeMultiplyTextureUvTransform:{value:new Matrix3},shadingShiftFactor:{value:0},shadingShiftTexture:{value:null},shadingShiftTextureUvTransform:{value:new Matrix3},shadingShiftTextureScale:{value:1},shadingToonyFactor:{value:.9},giEqualizationFactor:{value:.9},matcapFactor:{value:new Color(1,1,1)},matcapTexture:{value:null},matcapTextureUvTransform:{value:new Matrix3},parametricRimColorFactor:{value:new Color(0,0,0)},rimMultiplyTexture:{value:null},rimMultiplyTextureUvTransform:{value:new Matrix3},rimLightingMixFactor:{value:1},parametricRimFresnelPowerFactor:{value:5},parametricRimLiftFactor:{value:0},emissive:{value:new Color(0,0,0)},emissiveIntensity:{value:1},emissiveMapUvTransform:{value:new Matrix3},outlineWidthMultiplyTexture:{value:null},outlineWidthMultiplyTextureUvTransform:{value:new Matrix3},outlineWidthFactor:{value:0},outlineColorFactor:{value:new Color(0,0,0)},outlineLightingMixFactor:{value:1},uvAnimationMaskTexture:{value:null},uvAnimationMaskTextureUvTransform:{value:new Matrix3},uvAnimationScrollXOffset:{value:0},uvAnimationScrollYOffset:{value:0},uvAnimationRotationPhase:{value:0}},(_a$2=parameters.uniforms)??{}]),this.setValues(parameters),this._uploadUniformsWorkaround(),this.customProgramCacheKey=()=>[...Object.entries(this._generateDefines()).map(([token,macro])=>`${token}:${macro}`),this.matcapTexture?`matcapTextureColorSpace:${getTextureColorSpace(this.matcapTexture)}`:``,this.shadeMultiplyTexture?`shadeMultiplyTextureColorSpace:${getTextureColorSpace(this.shadeMultiplyTexture)}`:``,this.rimMultiplyTexture?`rimMultiplyTextureColorSpace:${getTextureColorSpace(this.rimMultiplyTexture)}`:``].join(`,`),this.onBeforeCompile=shader=>{let threeRevision=parseInt(REVISION,10),defines=Object.entries(__spreadValues(__spreadValues({},this._generateDefines()),this.defines)).filter(([token,macro])=>!!macro).map(([token,macro])=>`#define ${token} ${macro}`).join(` `)+` -`;shader.vertexShader=defines+shader.vertexShader,shader.fragmentShader=defines+shader.fragmentShader,threeRevision<154&&(shader.fragmentShader=shader.fragmentShader.replace(`#include `,`#include `))}}get color(){return this.uniforms.litFactor.value}set color(value$1){this.uniforms.litFactor.value=value$1}get map(){return this.uniforms.map.value}set map(value$1){this.uniforms.map.value=value$1}get normalMap(){return this.uniforms.normalMap.value}set normalMap(value$1){this.uniforms.normalMap.value=value$1}get normalScale(){return this.uniforms.normalScale.value}set normalScale(value$1){this.uniforms.normalScale.value=value$1}get emissive(){return this.uniforms.emissive.value}set emissive(value$1){this.uniforms.emissive.value=value$1}get emissiveIntensity(){return this.uniforms.emissiveIntensity.value}set emissiveIntensity(value$1){this.uniforms.emissiveIntensity.value=value$1}get emissiveMap(){return this.uniforms.emissiveMap.value}set emissiveMap(value$1){this.uniforms.emissiveMap.value=value$1}get shadeColorFactor(){return this.uniforms.shadeColorFactor.value}set shadeColorFactor(value$1){this.uniforms.shadeColorFactor.value=value$1}get shadeMultiplyTexture(){return this.uniforms.shadeMultiplyTexture.value}set shadeMultiplyTexture(value$1){this.uniforms.shadeMultiplyTexture.value=value$1}get shadingShiftFactor(){return this.uniforms.shadingShiftFactor.value}set shadingShiftFactor(value$1){this.uniforms.shadingShiftFactor.value=value$1}get shadingShiftTexture(){return this.uniforms.shadingShiftTexture.value}set shadingShiftTexture(value$1){this.uniforms.shadingShiftTexture.value=value$1}get shadingShiftTextureScale(){return this.uniforms.shadingShiftTextureScale.value}set shadingShiftTextureScale(value$1){this.uniforms.shadingShiftTextureScale.value=value$1}get shadingToonyFactor(){return this.uniforms.shadingToonyFactor.value}set shadingToonyFactor(value$1){this.uniforms.shadingToonyFactor.value=value$1}get giEqualizationFactor(){return this.uniforms.giEqualizationFactor.value}set giEqualizationFactor(value$1){this.uniforms.giEqualizationFactor.value=value$1}get matcapFactor(){return this.uniforms.matcapFactor.value}set matcapFactor(value$1){this.uniforms.matcapFactor.value=value$1}get matcapTexture(){return this.uniforms.matcapTexture.value}set matcapTexture(value$1){this.uniforms.matcapTexture.value=value$1}get parametricRimColorFactor(){return this.uniforms.parametricRimColorFactor.value}set parametricRimColorFactor(value$1){this.uniforms.parametricRimColorFactor.value=value$1}get rimMultiplyTexture(){return this.uniforms.rimMultiplyTexture.value}set rimMultiplyTexture(value$1){this.uniforms.rimMultiplyTexture.value=value$1}get rimLightingMixFactor(){return this.uniforms.rimLightingMixFactor.value}set rimLightingMixFactor(value$1){this.uniforms.rimLightingMixFactor.value=value$1}get parametricRimFresnelPowerFactor(){return this.uniforms.parametricRimFresnelPowerFactor.value}set parametricRimFresnelPowerFactor(value$1){this.uniforms.parametricRimFresnelPowerFactor.value=value$1}get parametricRimLiftFactor(){return this.uniforms.parametricRimLiftFactor.value}set parametricRimLiftFactor(value$1){this.uniforms.parametricRimLiftFactor.value=value$1}get outlineWidthMultiplyTexture(){return this.uniforms.outlineWidthMultiplyTexture.value}set outlineWidthMultiplyTexture(value$1){this.uniforms.outlineWidthMultiplyTexture.value=value$1}get outlineWidthFactor(){return this.uniforms.outlineWidthFactor.value}set outlineWidthFactor(value$1){this.uniforms.outlineWidthFactor.value=value$1}get outlineColorFactor(){return this.uniforms.outlineColorFactor.value}set outlineColorFactor(value$1){this.uniforms.outlineColorFactor.value=value$1}get outlineLightingMixFactor(){return this.uniforms.outlineLightingMixFactor.value}set outlineLightingMixFactor(value$1){this.uniforms.outlineLightingMixFactor.value=value$1}get uvAnimationMaskTexture(){return this.uniforms.uvAnimationMaskTexture.value}set uvAnimationMaskTexture(value$1){this.uniforms.uvAnimationMaskTexture.value=value$1}get uvAnimationScrollXOffset(){return this.uniforms.uvAnimationScrollXOffset.value}set uvAnimationScrollXOffset(value$1){this.uniforms.uvAnimationScrollXOffset.value=value$1}get uvAnimationScrollYOffset(){return this.uniforms.uvAnimationScrollYOffset.value}set uvAnimationScrollYOffset(value$1){this.uniforms.uvAnimationScrollYOffset.value=value$1}get uvAnimationRotationPhase(){return this.uniforms.uvAnimationRotationPhase.value}set uvAnimationRotationPhase(value$1){this.uniforms.uvAnimationRotationPhase.value=value$1}get ignoreVertexColor(){return this._ignoreVertexColor}set ignoreVertexColor(value$1){this._ignoreVertexColor=value$1,this.needsUpdate=!0}get v0CompatShade(){return this._v0CompatShade}set v0CompatShade(v$1){this._v0CompatShade=v$1,this.needsUpdate=!0}get debugMode(){return this._debugMode}set debugMode(m$2){this._debugMode=m$2,this.needsUpdate=!0}get outlineWidthMode(){return this._outlineWidthMode}set outlineWidthMode(m$2){this._outlineWidthMode=m$2,this.needsUpdate=!0}get isOutline(){return this._isOutline}set isOutline(b$3){this._isOutline=b$3,this.needsUpdate=!0}get isMToonMaterial(){return!0}update(delta){this._uploadUniformsWorkaround(),this._updateUVAnimation(delta)}copy(source){return super.copy(source),this.map=source.map,this.normalMap=source.normalMap,this.emissiveMap=source.emissiveMap,this.shadeMultiplyTexture=source.shadeMultiplyTexture,this.shadingShiftTexture=source.shadingShiftTexture,this.matcapTexture=source.matcapTexture,this.rimMultiplyTexture=source.rimMultiplyTexture,this.outlineWidthMultiplyTexture=source.outlineWidthMultiplyTexture,this.uvAnimationMaskTexture=source.uvAnimationMaskTexture,this.normalMapType=source.normalMapType,this.uvAnimationScrollXSpeedFactor=source.uvAnimationScrollXSpeedFactor,this.uvAnimationScrollYSpeedFactor=source.uvAnimationScrollYSpeedFactor,this.uvAnimationRotationSpeedFactor=source.uvAnimationRotationSpeedFactor,this.ignoreVertexColor=source.ignoreVertexColor,this.v0CompatShade=source.v0CompatShade,this.debugMode=source.debugMode,this.outlineWidthMode=source.outlineWidthMode,this.isOutline=source.isOutline,this.needsUpdate=!0,this}_updateUVAnimation(delta){this.uniforms.uvAnimationScrollXOffset.value+=delta*this.uvAnimationScrollXSpeedFactor,this.uniforms.uvAnimationScrollYOffset.value+=delta*this.uvAnimationScrollYSpeedFactor,this.uniforms.uvAnimationRotationPhase.value+=delta*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 threeRevision=parseInt(REVISION,10),useUvInVert=this.outlineWidthMultiplyTexture!==null,useUvInFrag=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:threeRevision,OUTLINE:this._isOutline,MTOON_USE_UV:useUvInVert||useUvInFrag,MTOON_UVS_VERTEX_ONLY:useUvInVert&&!useUvInFrag,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===MToonMaterialOutlineWidthMode.ScreenCoordinates}}_updateTextureMatrix(src,dst){src.value&&(src.value.matrixAutoUpdate&&src.value.updateMatrix(),dst.value.copy(src.value.matrix))}},POSSIBLE_SPEC_VERSIONS6=new Set([`1.0`,`1.0-beta`]),_MToonMaterialLoaderPlugin=class _MToonMaterialLoaderPlugin2{get name(){return _MToonMaterialLoaderPlugin2.EXTENSION_NAME}constructor(parser,options$1={}){var _a$2,_b,_c,_d;this.parser=parser,this.materialType=(_a$2=options$1.materialType)??MToonMaterial,this.renderOrderOffset=(_b=options$1.renderOrderOffset)??0,this.v0CompatShade=(_c=options$1.v0CompatShade)??!1,this.debugMode=(_d=options$1.debugMode)??`none`,this._mToonMaterialSet=new Set}beforeRoot(){return __async3(this,null,function*(){this._removeUnlitExtensionIfMToonExists()})}afterRoot(gltf){return __async3(this,null,function*(){gltf.userData.vrmMToonMaterials=Array.from(this._mToonMaterialSet)})}getMaterialType(materialIndex){let v1Extension=this._getMToonExtension(materialIndex);return v1Extension?this.materialType:null}extendMaterialParams(materialIndex,materialParams){let extension$1=this._getMToonExtension(materialIndex);return extension$1?this._extendMaterialParams(extension$1,materialParams):null}loadMesh(meshIndex){return __async3(this,null,function*(){var _a$2;let parser=this.parser,json=parser.json,meshDef=(_a$2=json.meshes)?.[meshIndex];if(meshDef==null)throw Error(`MToonMaterialLoaderPlugin: Attempt to use meshes[${meshIndex}] of glTF but the mesh doesn't exist`);let primitivesDef=meshDef.primitives,meshOrGroup=yield parser.loadMesh(meshIndex);if(primitivesDef.length===1){let mesh=meshOrGroup,materialIndex=primitivesDef[0].material;materialIndex!=null&&this._setupPrimitive(mesh,materialIndex)}else{let group=meshOrGroup;for(let i$1=0;i$1{var _a$2;let extension$1=this._getMToonExtension(iMaterial);extension$1&&(_a$2=materialDef.extensions)?.KHR_materials_unlit&&delete materialDef.extensions.KHR_materials_unlit})}_getMToonExtension(materialIndex){var _a$2,_b;let parser=this.parser,json=parser.json,materialDef=(_a$2=json.materials)?.[materialIndex];if(materialDef==null){console.warn(`MToonMaterialLoaderPlugin: Attempt to use materials[${materialIndex}] of glTF but the material doesn't exist`);return}let extension$1=(_b=materialDef.extensions)?.[_MToonMaterialLoaderPlugin2.EXTENSION_NAME];if(extension$1==null)return;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS6.has(specVersion)){console.warn(`MToonMaterialLoaderPlugin: Unknown ${_MToonMaterialLoaderPlugin2.EXTENSION_NAME} specVersion "${specVersion}"`);return}return extension$1}_extendMaterialParams(extension$1,materialParams){return __async3(this,null,function*(){var _a$2;delete materialParams.metalness,delete materialParams.roughness;let assignHelper=new GLTFMToonMaterialParamsAssignHelper(this.parser,materialParams);assignHelper.assignPrimitive(`transparentWithZWrite`,extension$1.transparentWithZWrite),assignHelper.assignColor(`shadeColorFactor`,extension$1.shadeColorFactor),assignHelper.assignTexture(`shadeMultiplyTexture`,extension$1.shadeMultiplyTexture,!0),assignHelper.assignPrimitive(`shadingShiftFactor`,extension$1.shadingShiftFactor),assignHelper.assignTexture(`shadingShiftTexture`,extension$1.shadingShiftTexture,!0),assignHelper.assignPrimitive(`shadingShiftTextureScale`,(_a$2=extension$1.shadingShiftTexture)?.scale),assignHelper.assignPrimitive(`shadingToonyFactor`,extension$1.shadingToonyFactor),assignHelper.assignPrimitive(`giEqualizationFactor`,extension$1.giEqualizationFactor),assignHelper.assignColor(`matcapFactor`,extension$1.matcapFactor),assignHelper.assignTexture(`matcapTexture`,extension$1.matcapTexture,!0),assignHelper.assignColor(`parametricRimColorFactor`,extension$1.parametricRimColorFactor),assignHelper.assignTexture(`rimMultiplyTexture`,extension$1.rimMultiplyTexture,!0),assignHelper.assignPrimitive(`rimLightingMixFactor`,extension$1.rimLightingMixFactor),assignHelper.assignPrimitive(`parametricRimFresnelPowerFactor`,extension$1.parametricRimFresnelPowerFactor),assignHelper.assignPrimitive(`parametricRimLiftFactor`,extension$1.parametricRimLiftFactor),assignHelper.assignPrimitive(`outlineWidthMode`,extension$1.outlineWidthMode),assignHelper.assignPrimitive(`outlineWidthFactor`,extension$1.outlineWidthFactor),assignHelper.assignTexture(`outlineWidthMultiplyTexture`,extension$1.outlineWidthMultiplyTexture,!1),assignHelper.assignColor(`outlineColorFactor`,extension$1.outlineColorFactor),assignHelper.assignPrimitive(`outlineLightingMixFactor`,extension$1.outlineLightingMixFactor),assignHelper.assignTexture(`uvAnimationMaskTexture`,extension$1.uvAnimationMaskTexture,!1),assignHelper.assignPrimitive(`uvAnimationScrollXSpeedFactor`,extension$1.uvAnimationScrollXSpeedFactor),assignHelper.assignPrimitive(`uvAnimationScrollYSpeedFactor`,extension$1.uvAnimationScrollYSpeedFactor),assignHelper.assignPrimitive(`uvAnimationRotationSpeedFactor`,extension$1.uvAnimationRotationSpeedFactor),assignHelper.assignPrimitive(`v0CompatShade`,this.v0CompatShade),assignHelper.assignPrimitive(`debugMode`,this.debugMode),yield assignHelper.pending})}_setupPrimitive(mesh,materialIndex){let extension$1=this._getMToonExtension(materialIndex);if(extension$1){let renderOrder=this._parseRenderOrder(extension$1);mesh.renderOrder=renderOrder+this.renderOrderOffset,this._generateOutline(mesh),this._addToMaterialSet(mesh);return}}_shouldGenerateOutline(surfaceMaterial){return typeof surfaceMaterial.outlineWidthMode==`string`&&surfaceMaterial.outlineWidthMode!==`none`&&typeof surfaceMaterial.outlineWidthFactor==`number`&&surfaceMaterial.outlineWidthFactor>0}_generateOutline(mesh){let surfaceMaterial=mesh.material;if(!(surfaceMaterial instanceof Material)||!this._shouldGenerateOutline(surfaceMaterial))return;mesh.material=[surfaceMaterial];let outlineMaterial=surfaceMaterial.clone();outlineMaterial.name+=` (Outline)`,outlineMaterial.isOutline=!0,outlineMaterial.side=BackSide,mesh.material.push(outlineMaterial);let geometry=mesh.geometry,primitiveVertices=geometry.index?geometry.index.count:geometry.attributes.position.count/3;geometry.addGroup(0,primitiveVertices,0),geometry.addGroup(0,primitiveVertices,1)}_addToMaterialSet(mesh){let materialOrMaterials=mesh.material,materialSet=new Set;Array.isArray(materialOrMaterials)?materialOrMaterials.forEach(material=>materialSet.add(material)):materialSet.add(materialOrMaterials);for(let material of materialSet)this._mToonMaterialSet.add(material)}_parseRenderOrder(extension$1){var _a$2;let enabledZWrite=extension$1.transparentWithZWrite;return(enabledZWrite?0:19)+((_a$2=extension$1.renderQueueOffsetNumber)??0)}};_MToonMaterialLoaderPlugin.EXTENSION_NAME=`VRMC_materials_mtoon`;var MToonMaterialLoaderPlugin=_MToonMaterialLoaderPlugin,__async4=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),_VRMMaterialsHDREmissiveMultiplierLoaderPlugin=class _VRMMaterialsHDREmissiveMultiplierLoaderPlugin2{get name(){return _VRMMaterialsHDREmissiveMultiplierLoaderPlugin2.EXTENSION_NAME}constructor(parser){this.parser=parser}extendMaterialParams(materialIndex,materialParams){return __async4(this,null,function*(){let extension$1=this._getHDREmissiveMultiplierExtension(materialIndex);if(extension$1==null)return;console.warn("VRMMaterialsHDREmissiveMultiplierLoaderPlugin: `VRMC_materials_hdr_emissiveMultiplier` is archived. Use `KHR_materials_emissive_strength` instead.");let emissiveMultiplier=extension$1.emissiveMultiplier;materialParams.emissiveIntensity=emissiveMultiplier})}_getHDREmissiveMultiplierExtension(materialIndex){var _a$2,_b;let parser=this.parser,json=parser.json,materialDef=(_a$2=json.materials)?.[materialIndex];if(materialDef==null){console.warn(`VRMMaterialsHDREmissiveMultiplierLoaderPlugin: Attempt to use materials[${materialIndex}] of glTF but the material doesn't exist`);return}let extension$1=(_b=materialDef.extensions)?.[_VRMMaterialsHDREmissiveMultiplierLoaderPlugin2.EXTENSION_NAME];if(extension$1!=null)return extension$1}};_VRMMaterialsHDREmissiveMultiplierLoaderPlugin.EXTENSION_NAME=`VRMC_materials_hdr_emissiveMultiplier`;var VRMMaterialsHDREmissiveMultiplierLoaderPlugin=_VRMMaterialsHDREmissiveMultiplierLoaderPlugin,__defProp2=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols2=Object.getOwnPropertySymbols,__hasOwnProp2=Object.prototype.hasOwnProperty,__propIsEnum2=Object.prototype.propertyIsEnumerable,__defNormalProp2=(obj,key$1,value$1)=>key$1 in obj?__defProp2(obj,key$1,{enumerable:!0,configurable:!0,writable:!0,value:value$1}):obj[key$1]=value$1,__spreadValues2=(a$2,b$3)=>{for(var prop in b$3||={})__hasOwnProp2.call(b$3,prop)&&__defNormalProp2(a$2,prop,b$3[prop]);if(__getOwnPropSymbols2)for(var prop of __getOwnPropSymbols2(b$3))__propIsEnum2.call(b$3,prop)&&__defNormalProp2(a$2,prop,b$3[prop]);return a$2},__spreadProps=(a$2,b$3)=>__defProps(a$2,__getOwnPropDescs(b$3)),__async5=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())});function gammaEOTF(e$3){return e$3**2.2}var VRMMaterialsV0CompatPlugin=class{get name(){return`VRMMaterialsV0CompatPlugin`}constructor(parser){var _a$2;this.parser=parser,this._renderQueueMapTransparent=new Map,this._renderQueueMapTransparentZWrite=new Map;let json=this.parser.json;json.extensionsUsed=(_a$2=json.extensionsUsed)??[],json.extensionsUsed.indexOf(`KHR_texture_transform`)===-1&&json.extensionsUsed.push(`KHR_texture_transform`)}beforeRoot(){return __async5(this,null,function*(){var _a$2;let json=this.parser.json,v0VRMExtension=(_a$2=json.extensions)?.VRM,v0MaterialProperties=v0VRMExtension?.materialProperties;v0MaterialProperties&&(this._populateRenderQueueMap(v0MaterialProperties),v0MaterialProperties.forEach((materialProperties,materialIndex)=>{var _a2,_b;let materialDef=(_a2=json.materials)?.[materialIndex];if(materialDef==null){console.warn(`VRMMaterialsV0CompatPlugin: Attempt to use materials[${materialIndex}] of glTF but the material doesn't exist`);return}if(materialProperties.shader===`VRM/MToon`){let material=this._parseV0MToonProperties(materialProperties,materialDef);json.materials[materialIndex]=material}else if((_b=materialProperties.shader)?.startsWith(`VRM/Unlit`)){let material=this._parseV0UnlitProperties(materialProperties,materialDef);json.materials[materialIndex]=material}else materialProperties.shader===`VRM_USE_GLTFSHADER`||console.warn(`VRMMaterialsV0CompatPlugin: Unknown shader: ${materialProperties.shader}`)}))})}_parseV0MToonProperties(materialProperties,schemaMaterial){var _a$2,_b,_c,_d,_e$1,_f,_g,_h,_i$1,_j,_k,_l,_m,_n$1,_o,_p,_q,_r$1,_s,_t$2,_u,_v,_w,_x$1,_y$1,_z$1,_A,_B,_C,_D,_E,_F,_G,_H,_I,_J,_K,_L,_M,_N,_O,_P,_Q,_R,_S,_T,_U,_V,_W,_X,_Y,_Z,__,_$,_aa;let isTransparent=(_b=(_a$2=materialProperties.keywordMap)?._ALPHABLEND_ON)??!1,enabledZWrite=(_c=materialProperties.floatProperties)?._ZWrite===1,transparentWithZWrite=enabledZWrite&&isTransparent,renderQueueOffsetNumber=this._v0ParseRenderQueue(materialProperties),isCutoff=(_e$1=(_d=materialProperties.keywordMap)?._ALPHATEST_ON)??!1,alphaMode=isTransparent?`BLEND`:isCutoff?`MASK`:`OPAQUE`,alphaCutoff=isCutoff?(_g=(_f=materialProperties.floatProperties)?._Cutoff)??.5:void 0,cullMode=(_i$1=(_h=materialProperties.floatProperties)?._CullMode)??2,doubleSided=cullMode===0,textureTransformExt=this._portTextureTransform(materialProperties),baseColorFactor=((_k=(_j=materialProperties.vectorProperties)?._Color)??[1,1,1,1]).map((v$1,i$1)=>i$1===3?v$1:gammaEOTF(v$1)),baseColorTextureIndex=(_l=materialProperties.textureProperties)?._MainTex,baseColorTexture=baseColorTextureIndex==null?void 0:{index:baseColorTextureIndex,extensions:__spreadValues2({},textureTransformExt)},normalTextureScale=(_n$1=(_m=materialProperties.floatProperties)?._BumpScale)??1,normalTextureIndex=(_o=materialProperties.textureProperties)?._BumpMap,normalTexture=normalTextureIndex==null?void 0:{index:normalTextureIndex,scale:normalTextureScale,extensions:__spreadValues2({},textureTransformExt)},emissiveFactor=((_q=(_p=materialProperties.vectorProperties)?._EmissionColor)??[0,0,0,1]).map(gammaEOTF),emissiveTextureIndex=(_r$1=materialProperties.textureProperties)?._EmissionMap,emissiveTexture=emissiveTextureIndex==null?void 0:{index:emissiveTextureIndex,extensions:__spreadValues2({},textureTransformExt)},shadeColorFactor=((_t$2=(_s=materialProperties.vectorProperties)?._ShadeColor)??[.97,.81,.86,1]).map(gammaEOTF),shadeMultiplyTextureIndex=(_u=materialProperties.textureProperties)?._ShadeTexture,shadeMultiplyTexture=shadeMultiplyTextureIndex==null?void 0:{index:shadeMultiplyTextureIndex,extensions:__spreadValues2({},textureTransformExt)},shadingShiftFactor=(_w=(_v=materialProperties.floatProperties)?._ShadeShift)??0,shadingToonyFactor=(_y$1=(_x$1=materialProperties.floatProperties)?._ShadeToony)??.9;shadingToonyFactor=MathUtils.lerp(shadingToonyFactor,1,.5+.5*shadingShiftFactor),shadingShiftFactor=-shadingShiftFactor-(1-shadingToonyFactor);let giIntensityFactor=(_A=(_z$1=materialProperties.floatProperties)?._IndirectLightIntensity)??.1,giEqualizationFactor=giIntensityFactor?1-giIntensityFactor:void 0,matcapTextureIndex=(_B=materialProperties.textureProperties)?._SphereAdd,matcapFactor=matcapTextureIndex==null?void 0:[1,1,1],matcapTexture=matcapTextureIndex==null?void 0:{index:matcapTextureIndex},rimLightingMixFactor=(_D=(_C=materialProperties.floatProperties)?._RimLightingMix)??0,rimMultiplyTextureIndex=(_E=materialProperties.textureProperties)?._RimTexture,rimMultiplyTexture=rimMultiplyTextureIndex==null?void 0:{index:rimMultiplyTextureIndex,extensions:__spreadValues2({},textureTransformExt)},parametricRimColorFactor=((_G=(_F=materialProperties.vectorProperties)?._RimColor)??[0,0,0,1]).map(gammaEOTF),parametricRimFresnelPowerFactor=(_I=(_H=materialProperties.floatProperties)?._RimFresnelPower)??1,parametricRimLiftFactor=(_K=(_J=materialProperties.floatProperties)?._RimLift)??0,outlineWidthMode=[`none`,`worldCoordinates`,`screenCoordinates`][(_M=(_L=materialProperties.floatProperties)?._OutlineWidthMode)??0],outlineWidthFactor=(_O=(_N=materialProperties.floatProperties)?._OutlineWidth)??0;outlineWidthFactor=.01*outlineWidthFactor;let outlineWidthMultiplyTextureIndex=(_P=materialProperties.textureProperties)?._OutlineWidthTexture,outlineWidthMultiplyTexture=outlineWidthMultiplyTextureIndex==null?void 0:{index:outlineWidthMultiplyTextureIndex,extensions:__spreadValues2({},textureTransformExt)},outlineColorFactor=((_R=(_Q=materialProperties.vectorProperties)?._OutlineColor)??[0,0,0]).map(gammaEOTF),outlineColorMode=(_T=(_S=materialProperties.floatProperties)?._OutlineColorMode)??0,outlineLightingMixFactor=outlineColorMode===1?(_V=(_U=materialProperties.floatProperties)?._OutlineLightingMix)??1:0,uvAnimationMaskTextureIndex=(_W=materialProperties.textureProperties)?._UvAnimMaskTexture,uvAnimationMaskTexture=uvAnimationMaskTextureIndex==null?void 0:{index:uvAnimationMaskTextureIndex,extensions:__spreadValues2({},textureTransformExt)},uvAnimationScrollXSpeedFactor=(_Y=(_X=materialProperties.floatProperties)?._UvAnimScrollX)??0,uvAnimationScrollYSpeedFactor=(__=(_Z=materialProperties.floatProperties)?._UvAnimScrollY)??0;uvAnimationScrollYSpeedFactor!=null&&(uvAnimationScrollYSpeedFactor=-uvAnimationScrollYSpeedFactor);let uvAnimationRotationSpeedFactor=(_aa=(_$=materialProperties.floatProperties)?._UvAnimRotation)??0,mtoonExtension={specVersion:`1.0`,transparentWithZWrite,renderQueueOffsetNumber,shadeColorFactor,shadeMultiplyTexture,shadingShiftFactor,shadingToonyFactor,giEqualizationFactor,matcapFactor,matcapTexture,rimLightingMixFactor,rimMultiplyTexture,parametricRimColorFactor,parametricRimFresnelPowerFactor,parametricRimLiftFactor,outlineWidthMode,outlineWidthFactor,outlineWidthMultiplyTexture,outlineColorFactor,outlineLightingMixFactor,uvAnimationMaskTexture,uvAnimationScrollXSpeedFactor,uvAnimationScrollYSpeedFactor,uvAnimationRotationSpeedFactor};return __spreadProps(__spreadValues2({},schemaMaterial),{pbrMetallicRoughness:{baseColorFactor,baseColorTexture},normalTexture,emissiveTexture,emissiveFactor,alphaMode,alphaCutoff,doubleSided,extensions:{VRMC_materials_mtoon:mtoonExtension}})}_parseV0UnlitProperties(materialProperties,schemaMaterial){var _a$2,_b,_c,_d,_e$1;let isTransparentZWrite=materialProperties.shader===`VRM/UnlitTransparentZWrite`,isTransparent=materialProperties.shader===`VRM/UnlitTransparent`||isTransparentZWrite,renderQueueOffsetNumber=this._v0ParseRenderQueue(materialProperties),isCutoff=materialProperties.shader===`VRM/UnlitCutout`,alphaMode=isTransparent?`BLEND`:isCutoff?`MASK`:`OPAQUE`,alphaCutoff=isCutoff?(_b=(_a$2=materialProperties.floatProperties)?._Cutoff)??.5:void 0,textureTransformExt=this._portTextureTransform(materialProperties),baseColorFactor=((_d=(_c=materialProperties.vectorProperties)?._Color)??[1,1,1,1]).map(gammaEOTF),baseColorTextureIndex=(_e$1=materialProperties.textureProperties)?._MainTex,baseColorTexture=baseColorTextureIndex==null?void 0:{index:baseColorTextureIndex,extensions:__spreadValues2({},textureTransformExt)},mtoonExtension={specVersion:`1.0`,transparentWithZWrite:isTransparentZWrite,renderQueueOffsetNumber,shadeColorFactor:baseColorFactor,shadeMultiplyTexture:baseColorTexture};return __spreadProps(__spreadValues2({},schemaMaterial),{pbrMetallicRoughness:{baseColorFactor,baseColorTexture},alphaMode,alphaCutoff,extensions:{VRMC_materials_mtoon:mtoonExtension}})}_portTextureTransform(materialProperties){var _a$2,_b,_c,_d,_e$1;let textureTransform=(_a$2=materialProperties.vectorProperties)?._MainTex;if(textureTransform==null)return{};let offset$1=[(_b=textureTransform?.[0])??0,(_c=textureTransform?.[1])??0],scale$1=[(_d=textureTransform?.[2])??1,(_e$1=textureTransform?.[3])??1];return offset$1[1]=1-scale$1[1]-offset$1[1],{KHR_texture_transform:{offset:offset$1,scale:scale$1}}}_v0ParseRenderQueue(materialProperties){var _a$2,_b;let isTransparentZWrite=materialProperties.shader===`VRM/UnlitTransparentZWrite`,isTransparent=(_a$2=materialProperties.keywordMap)?._ALPHABLEND_ON!=null||materialProperties.shader===`VRM/UnlitTransparent`||isTransparentZWrite,enabledZWrite=(_b=materialProperties.floatProperties)?._ZWrite===1||isTransparentZWrite,offset$1=0;if(isTransparent){let v0Queue=materialProperties.renderQueue;v0Queue!=null&&(offset$1=enabledZWrite?this._renderQueueMapTransparentZWrite.get(v0Queue):this._renderQueueMapTransparent.get(v0Queue))}return offset$1}_populateRenderQueueMap(materialPropertiesList){let renderQueuesTransparent=new Set,renderQueuesTransparentZWrite=new Set;materialPropertiesList.forEach(materialProperties=>{var _a$2,_b;let isTransparentZWrite=materialProperties.shader===`VRM/UnlitTransparentZWrite`,isTransparent=(_a$2=materialProperties.keywordMap)?._ALPHABLEND_ON!=null||materialProperties.shader===`VRM/UnlitTransparent`||isTransparentZWrite,enabledZWrite=(_b=materialProperties.floatProperties)?._ZWrite===1||isTransparentZWrite;if(isTransparent){let v0Queue=materialProperties.renderQueue;v0Queue!=null&&(enabledZWrite?renderQueuesTransparentZWrite.add(v0Queue):renderQueuesTransparent.add(v0Queue))}}),renderQueuesTransparent.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${renderQueuesTransparent.size} render queues for Transparent materials while VRM 1.0 only supports up to 10 render queues. The model might not be rendered correctly.`),renderQueuesTransparentZWrite.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${renderQueuesTransparentZWrite.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(renderQueuesTransparent).sort().forEach((queue$1,i$1)=>{let newQueueOffset=Math.min(Math.max(i$1-renderQueuesTransparent.size+1,-9),0);this._renderQueueMapTransparent.set(queue$1,newQueueOffset)}),Array.from(renderQueuesTransparentZWrite).sort().forEach((queue$1,i$1)=>{let newQueueOffset=Math.min(Math.max(i$1,0),9);this._renderQueueMapTransparentZWrite.set(queue$1,newQueueOffset)})}},__async6=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),_v3A6=new Vector3,VRMNodeConstraintHelper=class extends Group{constructor(constraint){super(),this._attrPosition=new BufferAttribute(new Float32Array([0,0,0,0,0,0]),3),this._attrPosition.setUsage(DynamicDrawUsage);let geometry=new BufferGeometry;geometry.setAttribute(`position`,this._attrPosition);let material=new LineBasicMaterial({color:16711935,depthTest:!1,depthWrite:!1});this._line=new Line(geometry,material),this.add(this._line),this.constraint=constraint}updateMatrixWorld(force){_v3A6.setFromMatrixPosition(this.constraint.destination.matrixWorld),this._attrPosition.setXYZ(0,_v3A6.x,_v3A6.y,_v3A6.z),this.constraint.source&&_v3A6.setFromMatrixPosition(this.constraint.source.matrixWorld),this._attrPosition.setXYZ(1,_v3A6.x,_v3A6.y,_v3A6.z),this._attrPosition.needsUpdate=!0,super.updateMatrixWorld(force)}};function decomposePosition(matrix,target$1){return target$1.set(matrix.elements[12],matrix.elements[13],matrix.elements[14])}var _v3A22=new Vector3,_v3B4=new Vector3;function decomposeRotation(matrix,target$1){return matrix.decompose(_v3A22,target$1,_v3B4),target$1}function quatInvertCompat2(target$1){return target$1.invert?target$1.invert():target$1.inverse(),target$1}var VRMNodeConstraint=class{constructor(destination,source){this.destination=destination,this.source=source,this.weight=1}},_v3A32=new Vector3,_v3B22=new Vector3,_v3C2=new Vector3,_quatA7=new Quaternion,_quatB4=new Quaternion,_quatC2=new Quaternion,VRMAimConstraint=class extends VRMNodeConstraint{get aimAxis(){return this._aimAxis}set aimAxis(aimAxis){this._aimAxis=aimAxis,this._v3AimAxis.set(aimAxis===`PositiveX`?1:aimAxis===`NegativeX`?-1:0,aimAxis===`PositiveY`?1:aimAxis===`NegativeY`?-1:0,aimAxis===`PositiveZ`?1:aimAxis===`NegativeZ`?-1:0)}get dependencies(){let set=new Set([this.source]);return this.destination.parent&&set.add(this.destination.parent),set}constructor(destination,source){super(destination,source),this._aimAxis=`PositiveX`,this._v3AimAxis=new Vector3(1,0,0),this._dstRestQuat=new Quaternion}setInitState(){this._dstRestQuat.copy(this.destination.quaternion)}update(){this.destination.updateWorldMatrix(!0,!1),this.source.updateWorldMatrix(!0,!1);let dstParentWorldQuat=_quatA7.identity(),invDstParentWorldQuat=_quatB4.identity();this.destination.parent&&(decomposeRotation(this.destination.parent.matrixWorld,dstParentWorldQuat),quatInvertCompat2(invDstParentWorldQuat.copy(dstParentWorldQuat)));let a0=_v3A32.copy(this._v3AimAxis).applyQuaternion(this._dstRestQuat).applyQuaternion(dstParentWorldQuat),a1=decomposePosition(this.source.matrixWorld,_v3B22).sub(decomposePosition(this.destination.matrixWorld,_v3C2)).normalize(),targetQuat=_quatC2.setFromUnitVectors(a0,a1).premultiply(invDstParentWorldQuat).multiply(dstParentWorldQuat).multiply(this._dstRestQuat);this.destination.quaternion.copy(this._dstRestQuat).slerp(targetQuat,this.weight)}};function traverseAncestorsFromRoot(object,callback){let ancestors=[object],head$1=object.parent;for(;head$1!==null;)ancestors.unshift(head$1),head$1=head$1.parent;ancestors.forEach(ancestor=>{callback(ancestor)})}var VRMNodeConstraintManager=class{constructor(){this._constraints=new Set,this._objectConstraintsMap=new Map}get constraints(){return this._constraints}addConstraint(constraint){this._constraints.add(constraint);let objectSet=this._objectConstraintsMap.get(constraint.destination);objectSet??(objectSet=new Set,this._objectConstraintsMap.set(constraint.destination,objectSet)),objectSet.add(constraint)}deleteConstraint(constraint){this._constraints.delete(constraint);let objectSet=this._objectConstraintsMap.get(constraint.destination);objectSet.delete(constraint)}setInitState(){let constraintsTried=new Set,constraintsDone=new Set;for(let constraint of this._constraints)this._processConstraint(constraint,constraintsTried,constraintsDone,constraint2=>constraint2.setInitState())}update(){let constraintsTried=new Set,constraintsDone=new Set;for(let constraint of this._constraints)this._processConstraint(constraint,constraintsTried,constraintsDone,constraint2=>constraint2.update())}_processConstraint(constraint,constraintsTried,constraintsDone,callback){if(constraintsDone.has(constraint))return;if(constraintsTried.has(constraint))throw Error(`VRMNodeConstraintManager: Circular dependency detected while updating constraints`);constraintsTried.add(constraint);let depObjects=constraint.dependencies;for(let depObject of depObjects)traverseAncestorsFromRoot(depObject,depObjectAncestor=>{let objectSet=this._objectConstraintsMap.get(depObjectAncestor);if(objectSet)for(let depConstraint of objectSet)this._processConstraint(depConstraint,constraintsTried,constraintsDone,callback)});callback(constraint),constraintsDone.add(constraint)}},_quatA22=new Quaternion,_quatB22=new Quaternion,VRMRotationConstraint=class extends VRMNodeConstraint{get dependencies(){return new Set([this.source])}constructor(destination,source){super(destination,source),this._dstRestQuat=new Quaternion,this._invSrcRestQuat=new Quaternion}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),quatInvertCompat2(this._invSrcRestQuat.copy(this.source.quaternion))}update(){let srcDeltaQuat=_quatA22.copy(this._invSrcRestQuat).multiply(this.source.quaternion),targetQuat=_quatB22.copy(this._dstRestQuat).multiply(srcDeltaQuat);this.destination.quaternion.copy(this._dstRestQuat).slerp(targetQuat,this.weight)}},_v3A42=new Vector3,_quatA32=new Quaternion,_quatB32=new Quaternion,VRMRollConstraint=class extends VRMNodeConstraint{get rollAxis(){return this._rollAxis}set rollAxis(rollAxis){this._rollAxis=rollAxis,this._v3RollAxis.set(rollAxis===`X`?1:0,rollAxis===`Y`?1:0,rollAxis===`Z`?1:0)}get dependencies(){return new Set([this.source])}constructor(destination,source){super(destination,source),this._rollAxis=`X`,this._v3RollAxis=new Vector3(1,0,0),this._dstRestQuat=new Quaternion,this._invDstRestQuat=new Quaternion,this._invSrcRestQuatMulDstRestQuat=new Quaternion}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),quatInvertCompat2(this._invDstRestQuat.copy(this._dstRestQuat)),quatInvertCompat2(this._invSrcRestQuatMulDstRestQuat.copy(this.source.quaternion)).multiply(this._dstRestQuat)}update(){let quatDelta=_quatA32.copy(this._invDstRestQuat).multiply(this.source.quaternion).multiply(this._invSrcRestQuatMulDstRestQuat),n1=_v3A42.copy(this._v3RollAxis).applyQuaternion(quatDelta),quatFromTo=_quatB32.setFromUnitVectors(n1,this._v3RollAxis),targetQuat=quatFromTo.premultiply(this._dstRestQuat).multiply(quatDelta);this.destination.quaternion.copy(this._dstRestQuat).slerp(targetQuat,this.weight)}},POSSIBLE_SPEC_VERSIONS7=new Set([`1.0`,`1.0-beta`]),_VRMNodeConstraintLoaderPlugin=class _VRMNodeConstraintLoaderPlugin2{get name(){return _VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME}constructor(parser,options$1){this.parser=parser,this.helperRoot=options$1?.helperRoot}afterRoot(gltf){return __async6(this,null,function*(){gltf.userData.vrmNodeConstraintManager=yield this._import(gltf)})}_import(gltf){return __async6(this,null,function*(){var _a$2;let json=this.parser.json,isConstraintsUsed=(_a$2=json.extensionsUsed)?.indexOf(_VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME)!==-1;if(!isConstraintsUsed)return null;let manager=new VRMNodeConstraintManager,threeNodes=yield this.parser.getDependencies(`node`);return threeNodes.forEach((node$1,nodeIndex)=>{var _a2;let schemaNode=json.nodes[nodeIndex],extension$1=(_a2=schemaNode?.extensions)?.[_VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME];if(extension$1==null)return;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS7.has(specVersion)){console.warn(`VRMNodeConstraintLoaderPlugin: Unknown ${_VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME} specVersion "${specVersion}"`);return}let constraintDef=extension$1.constraint;if(constraintDef.roll!=null){let constraint=this._importRollConstraint(node$1,threeNodes,constraintDef.roll);manager.addConstraint(constraint)}else if(constraintDef.aim!=null){let constraint=this._importAimConstraint(node$1,threeNodes,constraintDef.aim);manager.addConstraint(constraint)}else if(constraintDef.rotation!=null){let constraint=this._importRotationConstraint(node$1,threeNodes,constraintDef.rotation);manager.addConstraint(constraint)}}),gltf.scene.updateMatrixWorld(),manager.setInitState(),manager})}_importRollConstraint(destination,nodes,rollConstraintDef){let{source:sourceIndex,rollAxis,weight}=rollConstraintDef,source=nodes[sourceIndex],constraint=new VRMRollConstraint(destination,source);if(rollAxis!=null&&(constraint.rollAxis=rollAxis),weight!=null&&(constraint.weight=weight),this.helperRoot){let helper=new VRMNodeConstraintHelper(constraint);this.helperRoot.add(helper)}return constraint}_importAimConstraint(destination,nodes,aimConstraintDef){let{source:sourceIndex,aimAxis,weight}=aimConstraintDef,source=nodes[sourceIndex],constraint=new VRMAimConstraint(destination,source);if(aimAxis!=null&&(constraint.aimAxis=aimAxis),weight!=null&&(constraint.weight=weight),this.helperRoot){let helper=new VRMNodeConstraintHelper(constraint);this.helperRoot.add(helper)}return constraint}_importRotationConstraint(destination,nodes,rotationConstraintDef){let{source:sourceIndex,weight}=rotationConstraintDef,source=nodes[sourceIndex],constraint=new VRMRotationConstraint(destination,source);if(weight!=null&&(constraint.weight=weight),this.helperRoot){let helper=new VRMNodeConstraintHelper(constraint);this.helperRoot.add(helper)}return constraint}};_VRMNodeConstraintLoaderPlugin.EXTENSION_NAME=`VRMC_node_constraint`;var VRMNodeConstraintLoaderPlugin=_VRMNodeConstraintLoaderPlugin,__async7=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),VRMSpringBoneColliderShape=class{},_v3A7=new Vector3,_v3B5=new Vector3,VRMSpringBoneColliderShapeCapsule=class extends VRMSpringBoneColliderShape{get type(){return`capsule`}constructor(params){var _a$2,_b,_c,_d;super(),this.offset=(_a$2=params?.offset)??new Vector3(0,0,0),this.tail=(_b=params?.tail)??new Vector3(0,0,0),this.radius=(_c=params?.radius)??0,this.inside=(_d=params?.inside)??!1}calculateCollision(colliderMatrix,objectPosition,objectRadius,target$1){_v3A7.setFromMatrixPosition(colliderMatrix),_v3B5.subVectors(this.tail,this.offset).applyMatrix4(colliderMatrix),_v3B5.sub(_v3A7);let lengthSqCapsule=_v3B5.lengthSq();target$1.copy(objectPosition).sub(_v3A7);let dot=_v3B5.dot(target$1);dot<=0||(lengthSqCapsule<=dot||_v3B5.multiplyScalar(dot/lengthSqCapsule),target$1.sub(_v3B5));let length=target$1.length(),distance=this.inside?this.radius-objectRadius-length:length-objectRadius-this.radius;return distance<0&&(target$1.multiplyScalar(1/length),this.inside&&target$1.negate()),distance}},_v3A23=new Vector3,_mat3A=new Matrix3,VRMSpringBoneColliderShapePlane=class extends VRMSpringBoneColliderShape{get type(){return`plane`}constructor(params){var _a$2,_b;super(),this.offset=(_a$2=params?.offset)??new Vector3(0,0,0),this.normal=(_b=params?.normal)??new Vector3(0,0,1)}calculateCollision(colliderMatrix,objectPosition,objectRadius,target$1){target$1.setFromMatrixPosition(colliderMatrix),target$1.negate().add(objectPosition),_mat3A.getNormalMatrix(colliderMatrix),_v3A23.copy(this.normal).applyNormalMatrix(_mat3A).normalize();let distance=target$1.dot(_v3A23)-objectRadius;return target$1.copy(_v3A23),distance}},_v3A33=new Vector3,VRMSpringBoneColliderShapeSphere=class extends VRMSpringBoneColliderShape{get type(){return`sphere`}constructor(params){var _a$2,_b,_c;super(),this.offset=(_a$2=params?.offset)??new Vector3(0,0,0),this.radius=(_b=params?.radius)??0,this.inside=(_c=params?.inside)??!1}calculateCollision(colliderMatrix,objectPosition,objectRadius,target$1){target$1.subVectors(objectPosition,_v3A33.setFromMatrixPosition(colliderMatrix));let length=target$1.length(),distance=this.inside?this.radius-objectRadius-length:length-objectRadius-this.radius;return distance<0&&(target$1.multiplyScalar(1/length),this.inside&&target$1.negate()),distance}},_v3A43=new Vector3,ColliderShapeCapsuleBufferGeometry=class extends BufferGeometry{constructor(shape){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new Vector3,this._currentTail=new Vector3,this._shape=shape,this._attrPos=new BufferAttribute(new Float32Array(396),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(264),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1,radius=this._shape.radius/this.worldScale;this._currentRadius!==radius&&(this._currentRadius=radius,shouldUpdateGeometry=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),shouldUpdateGeometry=!0);let tail=_v3A43.copy(this._shape.tail).divideScalar(this.worldScale);this._currentTail.distanceToSquared(tail)>1e-10&&(this._currentTail.copy(tail),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){_v3A43.copy(this._currentTail).sub(this._currentOffset);let l$1=_v3A43.length()/this._currentRadius;for(let i$1=0;i$1<=16;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,-Math.sin(t),-Math.cos(t),0),this._attrPos.setXYZ(17+i$1,l$1+Math.sin(t),Math.cos(t),0),this._attrPos.setXYZ(34+i$1,-Math.sin(t),0,-Math.cos(t)),this._attrPos.setXYZ(51+i$1,l$1+Math.sin(t),0,Math.cos(t))}for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(68+i$1,0,Math.sin(t),Math.cos(t)),this._attrPos.setXYZ(100+i$1,l$1,Math.sin(t),Math.cos(t))}let theta=Math.atan2(_v3A43.y,Math.sqrt(_v3A43.x*_v3A43.x+_v3A43.z*_v3A43.z)),phi=-Math.atan2(_v3A43.z,_v3A43.x);this.rotateZ(theta),this.rotateY(phi),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 i$1=0;i$1<34;i$1++){let i1=(i$1+1)%34;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(68+i$1*2,34+i$1,34+i1)}for(let i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(136+i$1*2,68+i$1,68+i1),this._attrIndex.setXY(200+i$1*2,100+i$1,100+i1)}this._attrIndex.needsUpdate=!0}},ColliderShapePlaneBufferGeometry=class extends BufferGeometry{constructor(shape){super(),this.worldScale=1,this._currentOffset=new Vector3,this._currentNormal=new Vector3,this._shape=shape,this._attrPos=new BufferAttribute(new Float32Array(6*3),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(10),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1;this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),shouldUpdateGeometry=!0),this._currentNormal.equals(this._shape.normal)||(this._currentNormal.copy(this._shape.normal),shouldUpdateGeometry=!0),shouldUpdateGeometry&&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}},ColliderShapeSphereBufferGeometry=class extends BufferGeometry{constructor(shape){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new Vector3,this._shape=shape,this._attrPos=new BufferAttribute(new Float32Array(32*3*3),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(64*3),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1,radius=this._shape.radius/this.worldScale;this._currentRadius!==radius&&(this._currentRadius=radius,shouldUpdateGeometry=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+i$1,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+i$1,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 i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(64+i$1*2,32+i$1,32+i1),this._attrIndex.setXY(128+i$1*2,64+i$1,64+i1)}this._attrIndex.needsUpdate=!0}},_v3A52=new Vector3,VRMSpringBoneColliderHelper=class extends Group{constructor(collider){if(super(),this.matrixAutoUpdate=!1,this.collider=collider,this.collider.shape instanceof VRMSpringBoneColliderShapeSphere)this._geometry=new ColliderShapeSphereBufferGeometry(this.collider.shape);else if(this.collider.shape instanceof VRMSpringBoneColliderShapeCapsule)this._geometry=new ColliderShapeCapsuleBufferGeometry(this.collider.shape);else if(this.collider.shape instanceof VRMSpringBoneColliderShapePlane)this._geometry=new ColliderShapePlaneBufferGeometry(this.collider.shape);else throw Error(`VRMSpringBoneColliderHelper: Unknown collider shape type detected`);let material=new LineBasicMaterial({color:16711935,depthTest:!1,depthWrite:!1});this._line=new LineSegments(this._geometry,material),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(force){this.collider.updateWorldMatrix(!0,!1),this.matrix.copy(this.collider.matrixWorld);let matrixWorldElements=this.matrix.elements;this._geometry.worldScale=_v3A52.set(matrixWorldElements[0],matrixWorldElements[1],matrixWorldElements[2]).length(),this._geometry.update(),super.updateMatrixWorld(force)}},SpringBoneBufferGeometry=class extends BufferGeometry{constructor(springBone){super(),this.worldScale=1,this._currentRadius=0,this._currentTail=new Vector3,this._springBone=springBone,this._attrPos=new BufferAttribute(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1,radius=this._springBone.settings.hitRadius/this.worldScale;this._currentRadius!==radius&&(this._currentRadius=radius,shouldUpdateGeometry=!0),this._currentTail.equals(this._springBone.initialLocalChildPosition)||(this._currentTail.copy(this._springBone.initialLocalChildPosition),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+i$1,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+i$1,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 i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(64+i$1*2,32+i$1,32+i1),this._attrIndex.setXY(128+i$1*2,64+i$1,64+i1)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},_v3A62=new Vector3,VRMSpringBoneJointHelper=class extends Group{constructor(springBone){super(),this.matrixAutoUpdate=!1,this.springBone=springBone,this._geometry=new SpringBoneBufferGeometry(this.springBone);let material=new LineBasicMaterial({color:16776960,depthTest:!1,depthWrite:!1});this._line=new LineSegments(this._geometry,material),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(force){this.springBone.bone.updateWorldMatrix(!0,!1),this.matrix.copy(this.springBone.bone.matrixWorld);let matrixWorldElements=this.matrix.elements;this._geometry.worldScale=_v3A62.set(matrixWorldElements[0],matrixWorldElements[1],matrixWorldElements[2]).length(),this._geometry.update(),super.updateMatrixWorld(force)}},VRMSpringBoneCollider=class extends Object3D{constructor(shape){super(),this.colliderMatrix=new Matrix4,this.shape=shape}updateWorldMatrix(updateParents,updateChildren){super.updateWorldMatrix(updateParents,updateChildren),updateColliderMatrix(this.colliderMatrix,this.matrixWorld,this.shape.offset)}};function updateColliderMatrix(colliderMatrix,matrixWorld,offset$1){let me$1=matrixWorld.elements;colliderMatrix.copy(matrixWorld),offset$1&&(colliderMatrix.elements[12]=me$1[0]*offset$1.x+me$1[4]*offset$1.y+me$1[8]*offset$1.z+me$1[12],colliderMatrix.elements[13]=me$1[1]*offset$1.x+me$1[5]*offset$1.y+me$1[9]*offset$1.z+me$1[13],colliderMatrix.elements[14]=me$1[2]*offset$1.x+me$1[6]*offset$1.y+me$1[10]*offset$1.z+me$1[14])}var _matA=new Matrix4;function mat4InvertCompat(target$1){return target$1.invert?target$1.invert():target$1.getInverse(_matA.copy(target$1)),target$1}var Matrix4InverseCache=class{constructor(matrix){this._inverseCache=new Matrix4,this._shouldUpdateInverse=!0,this.matrix=matrix;let handler={set:(obj,prop,newVal)=>(this._shouldUpdateInverse=!0,obj[prop]=newVal,!0)};this._originalElements=matrix.elements,matrix.elements=new Proxy(matrix.elements,handler)}get inverse(){return this._shouldUpdateInverse&&(mat4InvertCompat(this._inverseCache.copy(this.matrix)),this._shouldUpdateInverse=!1),this._inverseCache}revert(){this.matrix.elements=this._originalElements}},IDENTITY_MATRIX4=new Matrix4,_v3A72=new Vector3,_v3B23=new Vector3,_worldSpacePosition=new Vector3,_nextTail=new Vector3,_matA2=new Matrix4,VRMSpringBoneJoint=class{constructor(bone,child,settings={},colliderGroups=[]){this._currentTail=new Vector3,this._prevTail=new Vector3,this._boneAxis=new Vector3,this._worldSpaceBoneLength=0,this._center=null,this._initialLocalMatrix=new Matrix4,this._initialLocalRotation=new Quaternion,this._initialLocalChildPosition=new Vector3;var _a$2,_b,_c,_d,_e$1,_f;this.bone=bone,this.bone.matrixAutoUpdate=!1,this.child=child,this.settings={hitRadius:(_a$2=settings.hitRadius)??0,stiffness:(_b=settings.stiffness)??1,gravityPower:(_c=settings.gravityPower)??0,gravityDir:(_e$1=(_d=settings.gravityDir)?.clone())??new Vector3(0,-1,0),dragForce:(_f=settings.dragForce)??.4},this.colliderGroups=colliderGroups}get dependencies(){let set=new Set,parent=this.bone.parent;parent&&set.add(parent);for(let cg=0;cg{callback(ancestor)})}function traverseChildrenUntilConditionMet(object,callback){object.children.forEach(child=>{let result=callback(child);result||traverseChildrenUntilConditionMet(child,callback)})}function lowestCommonAncestor(objects){var _a$2;let sharedAncestors=new Map;for(let object of objects){let current=object;do{let newValue=((_a$2=sharedAncestors.get(current))??0)+1;if(newValue===objects.size)return current;sharedAncestors.set(current,newValue),current=current.parent}while(current!==null)}return null}var VRMSpringBoneManager=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 set=new Set;return this._joints.forEach(springBone=>{springBone.colliderGroups.forEach(colliderGroup=>{set.add(colliderGroup)})}),Array.from(set)}get colliders(){let set=new Set;return this.colliderGroups.forEach(colliderGroup=>{colliderGroup.colliders.forEach(collider=>{set.add(collider)})}),Array.from(set)}addJoint(joint){this._joints.add(joint);let objectSet=this._objectSpringBonesMap.get(joint.bone);objectSet??(objectSet=new Set,this._objectSpringBonesMap.set(joint.bone,objectSet)),objectSet.add(joint),this._isSortedJointsDirty=!0}addSpringBone(joint){console.warn(`VRMSpringBoneManager: addSpringBone() is deprecated. use addJoint() instead.`),this.addJoint(joint)}deleteJoint(joint){this._joints.delete(joint);let objectSet=this._objectSpringBonesMap.get(joint.bone);objectSet.delete(joint),this._isSortedJointsDirty=!0}deleteSpringBone(joint){console.warn(`VRMSpringBoneManager: deleteSpringBone() is deprecated. use deleteJoint() instead.`),this.deleteJoint(joint)}setInitState(){this._sortJoints();for(let i$1=0;i$1{var _a$2,_b;return((_b=(_a$2=this._objectSpringBonesMap.get(object))?.size)??0)>0?!0:(this._ancestors.push(object),!1)})),this._isSortedJointsDirty=!1}_insertJointSort(springBone,springBonesTried,springBonesDone,springBoneOrder,ancestors){if(springBonesDone.has(springBone))return;if(springBonesTried.has(springBone)){this._hasWarnedCircularDependency||(console.warn(`VRMSpringBoneManager: Circular dependency detected`),this._hasWarnedCircularDependency=!0);return}springBonesTried.add(springBone);let depObjects=springBone.dependencies;for(let depObject of depObjects){let encounteredSpringBone=!1,ancestor=null;traverseAncestorsFromRoot2(depObject,depObjectAncestor=>{let objectSet=this._objectSpringBonesMap.get(depObjectAncestor);if(objectSet)for(let depSpringBone of objectSet)encounteredSpringBone=!0,this._insertJointSort(depSpringBone,springBonesTried,springBonesDone,springBoneOrder,ancestors);else encounteredSpringBone||(ancestor=depObjectAncestor)}),ancestor&&ancestors.add(ancestor)}springBoneOrder.push(springBone),springBonesDone.add(springBone)}_relevantChildrenUpdated(object){var _a$2,_b;return((_b=(_a$2=this._objectSpringBonesMap.get(object))?.size)??0)>0?!0:(object.updateWorldMatrix(!1,!1),!1)}},EXTENSION_NAME_EXTENDED_COLLIDER=`VRMC_springBone_extended_collider`,POSSIBLE_SPEC_VERSIONS8=new Set([`1.0`,`1.0-beta`]),POSSIBLE_SPEC_VERSIONS_EXTENDED_COLLIDERS=new Set([`1.0`]),_VRMSpringBoneLoaderPlugin=class _VRMSpringBoneLoaderPlugin2{get name(){return _VRMSpringBoneLoaderPlugin2.EXTENSION_NAME}constructor(parser,options$1){var _a$2;this.parser=parser,this.jointHelperRoot=options$1?.jointHelperRoot,this.colliderHelperRoot=options$1?.colliderHelperRoot,this.useExtendedColliders=(_a$2=options$1?.useExtendedColliders)??!0}afterRoot(gltf){return __async7(this,null,function*(){gltf.userData.vrmSpringBoneManager=yield this._import(gltf)})}_import(gltf){return __async7(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result!=null)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result??null})}_v1Import(gltf){return __async7(this,null,function*(){var _a$2,_b,_c,_d,_e$1;let json=gltf.parser.json,isSpringBoneUsed=(_a$2=json.extensionsUsed)?.indexOf(_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME)!==-1;if(!isSpringBoneUsed)return null;let manager=new VRMSpringBoneManager,threeNodes=yield gltf.parser.getDependencies(`node`),extension$1=(_b=json.extensions)?.[_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME];if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS8.has(specVersion))return console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME} specVersion "${specVersion}"`),null;let colliders=(_c=extension$1.colliders)?.map((schemaCollider,iCollider)=>{var _a2,_b2,_c2,_d2,_e2,_f,_g,_h,_i$1,_j,_k,_l,_m,_n$1,_o;let node$1=threeNodes[schemaCollider.node];if(node$1==null)return console.warn(`VRMSpringBoneLoaderPlugin: The collider #${iCollider} attempted to use the node #${schemaCollider.node} but not found`),null;let schemaShape=schemaCollider.shape,schemaExCollider=(_a2=schemaCollider.extensions)?.[EXTENSION_NAME_EXTENDED_COLLIDER];if(this.useExtendedColliders&&schemaExCollider!=null){let specVersionExCollider=schemaExCollider.specVersion;if(!POSSIBLE_SPEC_VERSIONS_EXTENDED_COLLIDERS.has(specVersionExCollider))console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${EXTENSION_NAME_EXTENDED_COLLIDER} specVersion "${specVersionExCollider}". Fallbacking to the ${_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME} definition`);else{let schemaExShape=schemaExCollider.shape;if(schemaExShape.sphere)return this._importSphereCollider(node$1,{offset:new Vector3().fromArray((_b2=schemaExShape.sphere.offset)??[0,0,0]),radius:(_c2=schemaExShape.sphere.radius)??0,inside:(_d2=schemaExShape.sphere.inside)??!1});if(schemaExShape.capsule)return this._importCapsuleCollider(node$1,{offset:new Vector3().fromArray((_e2=schemaExShape.capsule.offset)??[0,0,0]),radius:(_f=schemaExShape.capsule.radius)??0,tail:new Vector3().fromArray((_g=schemaExShape.capsule.tail)??[0,0,0]),inside:(_h=schemaExShape.capsule.inside)??!1});if(schemaExShape.plane)return this._importPlaneCollider(node$1,{offset:new Vector3().fromArray((_i$1=schemaExShape.plane.offset)??[0,0,0]),normal:new Vector3().fromArray((_j=schemaExShape.plane.normal)??[0,0,1])})}}if(schemaShape.sphere)return this._importSphereCollider(node$1,{offset:new Vector3().fromArray((_k=schemaShape.sphere.offset)??[0,0,0]),radius:(_l=schemaShape.sphere.radius)??0,inside:!1});if(schemaShape.capsule)return this._importCapsuleCollider(node$1,{offset:new Vector3().fromArray((_m=schemaShape.capsule.offset)??[0,0,0]),radius:(_n$1=schemaShape.capsule.radius)??0,tail:new Vector3().fromArray((_o=schemaShape.capsule.tail)??[0,0,0]),inside:!1});throw Error(`VRMSpringBoneLoaderPlugin: The collider #${iCollider} has no valid shape`)}),colliderGroups=(_d=extension$1.colliderGroups)?.map((schemaColliderGroup,iColliderGroup)=>{var _a2;let cols=((_a2=schemaColliderGroup.colliders)??[]).flatMap(iCollider=>{let col=colliders?.[iCollider];return col??(console.warn(`VRMSpringBoneLoaderPlugin: The colliderGroup #${iColliderGroup} attempted to use a collider #${iCollider} but not found`),[])});return{colliders:cols,name:schemaColliderGroup.name}});return(_e$1=extension$1.springs)==null||_e$1.forEach((schemaSpring,iSpring)=>{var _a2;let schemaJoints=schemaSpring.joints,colliderGroupsForSpring=(_a2=schemaSpring.colliderGroups)?.map(iColliderGroup=>{let group=colliderGroups?.[iColliderGroup];if(group==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${iSpring} attempted to use a colliderGroup ${iColliderGroup} but not found`);return group}),center=schemaSpring.center==null?void 0:threeNodes[schemaSpring.center],prevSchemaJoint;schemaJoints.forEach(schemaJoint=>{if(prevSchemaJoint){let nodeIndex=prevSchemaJoint.node,node$1=threeNodes[nodeIndex],childIndex=schemaJoint.node,child=threeNodes[childIndex],setting={hitRadius:prevSchemaJoint.hitRadius,dragForce:prevSchemaJoint.dragForce,gravityPower:prevSchemaJoint.gravityPower,stiffness:prevSchemaJoint.stiffness,gravityDir:prevSchemaJoint.gravityDir==null?void 0:new Vector3().fromArray(prevSchemaJoint.gravityDir)},joint=this._importJoint(node$1,child,setting,colliderGroupsForSpring);center&&(joint.center=center),manager.addJoint(joint)}prevSchemaJoint=schemaJoint})}),manager.setInitState(),manager})}_v0Import(gltf){return __async7(this,null,function*(){var _a$2,_b,_c;let json=gltf.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRM`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRM,schemaSecondaryAnimation=extension$1?.secondaryAnimation;if(!schemaSecondaryAnimation)return null;let schemaBoneGroups=schemaSecondaryAnimation?.boneGroups;if(!schemaBoneGroups)return null;let manager=new VRMSpringBoneManager,threeNodes=yield gltf.parser.getDependencies(`node`),colliderGroups=(_c=schemaSecondaryAnimation.colliderGroups)?.map(schemaColliderGroup=>{var _a2;let node$1=threeNodes[schemaColliderGroup.node],colliders=((_a2=schemaColliderGroup.colliders)??[]).map((schemaCollider,iCollider)=>{var _a3,_b2,_c2;let offset$1=new Vector3(0,0,0);return schemaCollider.offset&&offset$1.set((_a3=schemaCollider.offset.x)??0,(_b2=schemaCollider.offset.y)??0,schemaCollider.offset.z?-schemaCollider.offset.z:0),this._importSphereCollider(node$1,{offset:offset$1,radius:(_c2=schemaCollider.radius)??0,inside:!1})});return{colliders}});return schemaBoneGroups?.forEach((schemaBoneGroup,iBoneGroup)=>{let rootIndices=schemaBoneGroup.bones;rootIndices&&rootIndices.forEach(rootIndex=>{var _a2,_b2,_c2,_d;let root$3=threeNodes[rootIndex],gravityDir=new Vector3;schemaBoneGroup.gravityDir?gravityDir.set((_a2=schemaBoneGroup.gravityDir.x)??0,(_b2=schemaBoneGroup.gravityDir.y)??0,(_c2=schemaBoneGroup.gravityDir.z)??0):gravityDir.set(0,-1,0);let center=schemaBoneGroup.center==null?void 0:threeNodes[schemaBoneGroup.center],setting={hitRadius:schemaBoneGroup.hitRadius,dragForce:schemaBoneGroup.dragForce,gravityPower:schemaBoneGroup.gravityPower,stiffness:schemaBoneGroup.stiffiness,gravityDir},colliderGroupsForSpring=(_d=schemaBoneGroup.colliderGroups)?.map(iColliderGroup=>{let group=colliderGroups?.[iColliderGroup];if(group==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${iBoneGroup} attempted to use a colliderGroup ${iColliderGroup} but not found`);return group});root$3.traverse(node$1=>{var _a3;let child=(_a3=node$1.children[0])??null,joint=this._importJoint(node$1,child,setting,colliderGroupsForSpring);center&&(joint.center=center),manager.addJoint(joint)})})}),gltf.scene.updateMatrixWorld(),manager.setInitState(),manager})}_importJoint(node$1,child,setting,colliderGroupsForSpring){let springBone=new VRMSpringBoneJoint(node$1,child,setting,colliderGroupsForSpring);if(this.jointHelperRoot){let helper=new VRMSpringBoneJointHelper(springBone);this.jointHelperRoot.add(helper),helper.renderOrder=this.jointHelperRoot.renderOrder}return springBone}_importSphereCollider(destination,params){let shape=new VRMSpringBoneColliderShapeSphere(params),collider=new VRMSpringBoneCollider(shape);if(destination.add(collider),this.colliderHelperRoot){let helper=new VRMSpringBoneColliderHelper(collider);this.colliderHelperRoot.add(helper),helper.renderOrder=this.colliderHelperRoot.renderOrder}return collider}_importCapsuleCollider(destination,params){let shape=new VRMSpringBoneColliderShapeCapsule(params),collider=new VRMSpringBoneCollider(shape);if(destination.add(collider),this.colliderHelperRoot){let helper=new VRMSpringBoneColliderHelper(collider);this.colliderHelperRoot.add(helper),helper.renderOrder=this.colliderHelperRoot.renderOrder}return collider}_importPlaneCollider(destination,params){let shape=new VRMSpringBoneColliderShapePlane(params),collider=new VRMSpringBoneCollider(shape);if(destination.add(collider),this.colliderHelperRoot){let helper=new VRMSpringBoneColliderHelper(collider);this.colliderHelperRoot.add(helper),helper.renderOrder=this.colliderHelperRoot.renderOrder}return collider}};_VRMSpringBoneLoaderPlugin.EXTENSION_NAME=`VRMC_springBone`;var VRMSpringBoneLoaderPlugin=_VRMSpringBoneLoaderPlugin,VRMLoaderPlugin=class{get name(){return`VRMLoaderPlugin`}constructor(parser,options$1){var _a$2,_b,_c,_d,_e$1,_f,_g,_h,_i$1,_j;this.parser=parser;let helperRoot=options$1?.helperRoot,autoUpdateHumanBones=options$1?.autoUpdateHumanBones;this.expressionPlugin=(_a$2=options$1?.expressionPlugin)??new VRMExpressionLoaderPlugin(parser),this.firstPersonPlugin=(_b=options$1?.firstPersonPlugin)??new VRMFirstPersonLoaderPlugin(parser),this.humanoidPlugin=(_c=options$1?.humanoidPlugin)??new VRMHumanoidLoaderPlugin(parser,{helperRoot,autoUpdateHumanBones}),this.lookAtPlugin=(_d=options$1?.lookAtPlugin)??new VRMLookAtLoaderPlugin(parser,{helperRoot}),this.metaPlugin=(_e$1=options$1?.metaPlugin)??new VRMMetaLoaderPlugin(parser),this.mtoonMaterialPlugin=(_f=options$1?.mtoonMaterialPlugin)??new MToonMaterialLoaderPlugin(parser),this.materialsHDREmissiveMultiplierPlugin=(_g=options$1?.materialsHDREmissiveMultiplierPlugin)??new VRMMaterialsHDREmissiveMultiplierLoaderPlugin(parser),this.materialsV0CompatPlugin=(_h=options$1?.materialsV0CompatPlugin)??new VRMMaterialsV0CompatPlugin(parser),this.springBonePlugin=(_i$1=options$1?.springBonePlugin)??new VRMSpringBoneLoaderPlugin(parser,{colliderHelperRoot:helperRoot,jointHelperRoot:helperRoot}),this.nodeConstraintPlugin=(_j=options$1?.nodeConstraintPlugin)??new VRMNodeConstraintLoaderPlugin(parser,{helperRoot})}beforeRoot(){return __async(this,null,function*(){yield this.materialsV0CompatPlugin.beforeRoot(),yield this.mtoonMaterialPlugin.beforeRoot()})}loadMesh(meshIndex){return __async(this,null,function*(){return yield this.mtoonMaterialPlugin.loadMesh(meshIndex)})}getMaterialType(materialIndex){let mtoonType=this.mtoonMaterialPlugin.getMaterialType(materialIndex);return mtoonType??null}extendMaterialParams(materialIndex,materialParams){return __async(this,null,function*(){yield this.materialsHDREmissiveMultiplierPlugin.extendMaterialParams(materialIndex,materialParams),yield this.mtoonMaterialPlugin.extendMaterialParams(materialIndex,materialParams)})}afterRoot(gltf){return __async(this,null,function*(){yield this.metaPlugin.afterRoot(gltf),yield this.humanoidPlugin.afterRoot(gltf),yield this.expressionPlugin.afterRoot(gltf),yield this.lookAtPlugin.afterRoot(gltf),yield this.firstPersonPlugin.afterRoot(gltf),yield this.springBonePlugin.afterRoot(gltf),yield this.nodeConstraintPlugin.afterRoot(gltf),yield this.mtoonMaterialPlugin.afterRoot(gltf);let meta=gltf.userData.vrmMeta,humanoid=gltf.userData.vrmHumanoid;if(meta&&humanoid){let vrm=new VRM({scene:gltf.scene,expressionManager:gltf.userData.vrmExpressionManager,firstPerson:gltf.userData.vrmFirstPerson,humanoid,lookAt:gltf.userData.vrmLookAt,meta,materials:gltf.userData.vrmMToonMaterials,springBoneManager:gltf.userData.vrmSpringBoneManager,nodeConstraintManager:gltf.userData.vrmNodeConstraintManager});gltf.userData.vrm=vrm}})}};function collectMeshes(scene){let meshes=new Set;return scene.traverse(obj=>{if(!obj.isMesh)return;let mesh=obj;meshes.add(mesh)}),meshes}function combineMorph(positionAttributes,binds,morphTargetsRelative){if(binds.size===1){let bind=binds.values().next().value;if(bind.weight===1)return positionAttributes[bind.index]}let newArray=new Float32Array(positionAttributes[0].count*3),weightSum=0;if(morphTargetsRelative)weightSum=1;else for(let bind of binds)weightSum+=bind.weight;for(let bind of binds){let src=positionAttributes[bind.index],weight=bind.weight/weightSum;for(let i$1=0;i$1boneDispatcher.getOrCreate(bone)).join(`,`),key$1=`${skinIndexKey};${skeletonKey};${bonesKey}`,newSkinIndexAttr=cache$1.get(key$1);newSkinIndexAttr??(newSkinIndexAttr=skinIndexAttr.clone(),remapSkinIndexAttribute(newSkinIndexAttr,bones,newBones),cache$1.set(key$1,newSkinIndexAttr)),mesh.geometry.setAttribute(`skinIndex`,newSkinIndexAttr)}for(let mesh of meshes)mesh.bind(newSkeleton,new Matrix4)}}function collectSkinnedMeshes(scene){let skinnedMeshes=new Set;return scene.traverse(obj=>{if(!obj.isSkinnedMesh)return;let skinnedMesh=obj;skinnedMeshes.add(skinnedMesh)}),skinnedMeshes}function listUsedIndices(skinIndexAttr,skinWeightAttr){let usedIndices=new Set;for(let i$1=0;i$1tolerance)return!1}return!0}var ObjectIndexDispatcher=class{constructor(){this._objectIndexMap=new Map,this._index=0}get(obj){return this._objectIndexMap.get(obj)}getOrCreate(obj){let index$1=this._objectIndexMap.get(obj);return index$1??(index$1=this._index,this._objectIndexMap.set(obj,index$1),this._index++),index$1}};function shallowCloneBufferGeometry(geometry){var _a$2,_b,_c,_d;let clone$2=new BufferGeometry;clone$2.name=geometry.name,clone$2.setIndex(geometry.index);for(let[name$2,attribute]of Object.entries(geometry.attributes))clone$2.setAttribute(name$2,attribute);for(let[key$1,morphAttributes]of Object.entries(geometry.morphAttributes)){let attributeName=key$1;clone$2.morphAttributes[attributeName]=morphAttributes.concat()}clone$2.morphTargetsRelative=geometry.morphTargetsRelative,clone$2.groups=[];for(let group of geometry.groups)clone$2.addGroup(group.start,group.count,group.materialIndex);return clone$2.boundingSphere=(_b=(_a$2=geometry.boundingSphere)?.clone())??null,clone$2.boundingBox=(_d=(_c=geometry.boundingBox)?.clone())??null,clone$2.drawRange.start=geometry.drawRange.start,clone$2.drawRange.count=geometry.drawRange.count,clone$2.userData=geometry.userData,clone$2}function disposeMaterial(material){if(Object.values(material).forEach(value$1=>{if(value$1?.isTexture){let texture=value$1;texture.dispose()}}),material.isShaderMaterial){let uniforms=material.uniforms;uniforms&&Object.values(uniforms).forEach(uniform=>{let value$1=uniform.value;if(value$1?.isTexture){let texture=value$1;texture.dispose()}})}material.dispose()}function dispose(object3D){let geometry=object3D.geometry;geometry&&geometry.dispose();let skeleton=object3D.skeleton;skeleton&&skeleton.dispose();let material=object3D.material;material&&(Array.isArray(material)?material.forEach(material2=>disposeMaterial(material2)):material&&disposeMaterial(material))}function deepDispose(object3D){object3D.traverse(dispose)}function removeUnnecessaryJoints(root$3,options$1){var _a$2,_b;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 experimentalSameBoneCounts=(_a$2=options$1?.experimentalSameBoneCounts)??!1,skinnedMeshes=[];root$3.traverse(obj=>{obj.type===`SkinnedMesh`&&skinnedMeshes.push(obj)});let attributeToBoneIndexMapMap=new Map,maxBones=0;for(let mesh of skinnedMeshes){let geometry=mesh.geometry,attribute=geometry.getAttribute(`skinIndex`);if(attributeToBoneIndexMapMap.has(attribute))continue;let oldToNew=new Map,newToOld=new Map;for(let i$1=0;i$1{var _a$2,_b,_c,_d;if(!obj.isMesh)return;let mesh=obj,geometry=mesh.geometry,originalIndex=geometry.index;if(originalIndex==null)return;let newGeometryAlreadyExisted=geometryMap.get(geometry);if(newGeometryAlreadyExisted!=null){mesh.geometry=newGeometryAlreadyExisted;return}let vertexCount=Object.values(geometry.attributes)[0].count,vertexInUse=Array(vertexCount),verticesUsed=0,originalIndexArray=originalIndex.array;for(let i$1=0;i$1{newGeometry.addGroup(group.start,group.count,group.materialIndex)}),newGeometry.boundingBox=(_b=(_a$2=geometry.boundingBox)?.clone())??null,newGeometry.boundingSphere=(_d=(_c=geometry.boundingSphere)?.clone())??null,newGeometry.setDrawRange(geometry.drawRange.start,geometry.drawRange.count),newGeometry.userData=geometry.userData,geometryMap.set(geometry,newGeometry);{let originalIndexArray2=originalIndex.array,newIndexArray=new originalIndexArray2.constructor(originalIndexArray2.length);for(let i$1=0;i$1{let originalAttribute=geometry.attributes[attributeName];if(originalAttribute.isInterleavedBufferAttribute)throw Error(`removeUnnecessaryVertices: InterleavedBufferAttribute is not supported`);let originalAttributeArray=originalAttribute.array,{itemSize,normalized}=originalAttribute,newAttributeArray=new originalAttributeArray.constructor(newIndexOriginalIndexMap.length*itemSize);newIndexOriginalIndexMap.forEach((originalIndex2,i$1)=>{for(let j$1=0;j$1{for(let j$1=0;j$1v$1===0),newGeometry.morphAttributes[attributeName][iMorph]=new BufferAttribute(newAttributeArray,itemSize,normalized)}}isNullMorph&&(newGeometry.morphAttributes={}),mesh.geometry=newGeometry}),Array.from(geometryMap.keys()).forEach(originalGeometry=>{originalGeometry.dispose()})}function rotateVRM0(vrm){var _a$2;(_a$2=vrm.meta)?.metaVersion===`0`&&(vrm.scene.rotation.y=Math.PI)}var VRMUtils=class{constructor(){}};VRMUtils.combineMorphs=combineMorphs,VRMUtils.combineSkeletons=combineSkeletons,VRMUtils.deepDispose=deepDispose,VRMUtils.removeUnnecessaryJoints=removeUnnecessaryJoints,VRMUtils.removeUnnecessaryVertices=removeUnnecessaryVertices,VRMUtils.rotateVRM0=rotateVRM0; +`;shader.vertexShader=defines+shader.vertexShader,shader.fragmentShader=defines+shader.fragmentShader,threeRevision<154&&(shader.fragmentShader=shader.fragmentShader.replace(`#include `,`#include `))}}get color(){return this.uniforms.litFactor.value}set color(value$1){this.uniforms.litFactor.value=value$1}get map(){return this.uniforms.map.value}set map(value$1){this.uniforms.map.value=value$1}get normalMap(){return this.uniforms.normalMap.value}set normalMap(value$1){this.uniforms.normalMap.value=value$1}get normalScale(){return this.uniforms.normalScale.value}set normalScale(value$1){this.uniforms.normalScale.value=value$1}get emissive(){return this.uniforms.emissive.value}set emissive(value$1){this.uniforms.emissive.value=value$1}get emissiveIntensity(){return this.uniforms.emissiveIntensity.value}set emissiveIntensity(value$1){this.uniforms.emissiveIntensity.value=value$1}get emissiveMap(){return this.uniforms.emissiveMap.value}set emissiveMap(value$1){this.uniforms.emissiveMap.value=value$1}get shadeColorFactor(){return this.uniforms.shadeColorFactor.value}set shadeColorFactor(value$1){this.uniforms.shadeColorFactor.value=value$1}get shadeMultiplyTexture(){return this.uniforms.shadeMultiplyTexture.value}set shadeMultiplyTexture(value$1){this.uniforms.shadeMultiplyTexture.value=value$1}get shadingShiftFactor(){return this.uniforms.shadingShiftFactor.value}set shadingShiftFactor(value$1){this.uniforms.shadingShiftFactor.value=value$1}get shadingShiftTexture(){return this.uniforms.shadingShiftTexture.value}set shadingShiftTexture(value$1){this.uniforms.shadingShiftTexture.value=value$1}get shadingShiftTextureScale(){return this.uniforms.shadingShiftTextureScale.value}set shadingShiftTextureScale(value$1){this.uniforms.shadingShiftTextureScale.value=value$1}get shadingToonyFactor(){return this.uniforms.shadingToonyFactor.value}set shadingToonyFactor(value$1){this.uniforms.shadingToonyFactor.value=value$1}get giEqualizationFactor(){return this.uniforms.giEqualizationFactor.value}set giEqualizationFactor(value$1){this.uniforms.giEqualizationFactor.value=value$1}get matcapFactor(){return this.uniforms.matcapFactor.value}set matcapFactor(value$1){this.uniforms.matcapFactor.value=value$1}get matcapTexture(){return this.uniforms.matcapTexture.value}set matcapTexture(value$1){this.uniforms.matcapTexture.value=value$1}get parametricRimColorFactor(){return this.uniforms.parametricRimColorFactor.value}set parametricRimColorFactor(value$1){this.uniforms.parametricRimColorFactor.value=value$1}get rimMultiplyTexture(){return this.uniforms.rimMultiplyTexture.value}set rimMultiplyTexture(value$1){this.uniforms.rimMultiplyTexture.value=value$1}get rimLightingMixFactor(){return this.uniforms.rimLightingMixFactor.value}set rimLightingMixFactor(value$1){this.uniforms.rimLightingMixFactor.value=value$1}get parametricRimFresnelPowerFactor(){return this.uniforms.parametricRimFresnelPowerFactor.value}set parametricRimFresnelPowerFactor(value$1){this.uniforms.parametricRimFresnelPowerFactor.value=value$1}get parametricRimLiftFactor(){return this.uniforms.parametricRimLiftFactor.value}set parametricRimLiftFactor(value$1){this.uniforms.parametricRimLiftFactor.value=value$1}get outlineWidthMultiplyTexture(){return this.uniforms.outlineWidthMultiplyTexture.value}set outlineWidthMultiplyTexture(value$1){this.uniforms.outlineWidthMultiplyTexture.value=value$1}get outlineWidthFactor(){return this.uniforms.outlineWidthFactor.value}set outlineWidthFactor(value$1){this.uniforms.outlineWidthFactor.value=value$1}get outlineColorFactor(){return this.uniforms.outlineColorFactor.value}set outlineColorFactor(value$1){this.uniforms.outlineColorFactor.value=value$1}get outlineLightingMixFactor(){return this.uniforms.outlineLightingMixFactor.value}set outlineLightingMixFactor(value$1){this.uniforms.outlineLightingMixFactor.value=value$1}get uvAnimationMaskTexture(){return this.uniforms.uvAnimationMaskTexture.value}set uvAnimationMaskTexture(value$1){this.uniforms.uvAnimationMaskTexture.value=value$1}get uvAnimationScrollXOffset(){return this.uniforms.uvAnimationScrollXOffset.value}set uvAnimationScrollXOffset(value$1){this.uniforms.uvAnimationScrollXOffset.value=value$1}get uvAnimationScrollYOffset(){return this.uniforms.uvAnimationScrollYOffset.value}set uvAnimationScrollYOffset(value$1){this.uniforms.uvAnimationScrollYOffset.value=value$1}get uvAnimationRotationPhase(){return this.uniforms.uvAnimationRotationPhase.value}set uvAnimationRotationPhase(value$1){this.uniforms.uvAnimationRotationPhase.value=value$1}get ignoreVertexColor(){return this._ignoreVertexColor}set ignoreVertexColor(value$1){this._ignoreVertexColor=value$1,this.needsUpdate=!0}get v0CompatShade(){return this._v0CompatShade}set v0CompatShade(v$1){this._v0CompatShade=v$1,this.needsUpdate=!0}get debugMode(){return this._debugMode}set debugMode(m$2){this._debugMode=m$2,this.needsUpdate=!0}get outlineWidthMode(){return this._outlineWidthMode}set outlineWidthMode(m$2){this._outlineWidthMode=m$2,this.needsUpdate=!0}get isOutline(){return this._isOutline}set isOutline(b$3){this._isOutline=b$3,this.needsUpdate=!0}get isMToonMaterial(){return!0}update(delta){this._uploadUniformsWorkaround(),this._updateUVAnimation(delta)}copy(source){return super.copy(source),this.map=source.map,this.normalMap=source.normalMap,this.emissiveMap=source.emissiveMap,this.shadeMultiplyTexture=source.shadeMultiplyTexture,this.shadingShiftTexture=source.shadingShiftTexture,this.matcapTexture=source.matcapTexture,this.rimMultiplyTexture=source.rimMultiplyTexture,this.outlineWidthMultiplyTexture=source.outlineWidthMultiplyTexture,this.uvAnimationMaskTexture=source.uvAnimationMaskTexture,this.normalMapType=source.normalMapType,this.uvAnimationScrollXSpeedFactor=source.uvAnimationScrollXSpeedFactor,this.uvAnimationScrollYSpeedFactor=source.uvAnimationScrollYSpeedFactor,this.uvAnimationRotationSpeedFactor=source.uvAnimationRotationSpeedFactor,this.ignoreVertexColor=source.ignoreVertexColor,this.v0CompatShade=source.v0CompatShade,this.debugMode=source.debugMode,this.outlineWidthMode=source.outlineWidthMode,this.isOutline=source.isOutline,this.needsUpdate=!0,this}_updateUVAnimation(delta){this.uniforms.uvAnimationScrollXOffset.value+=delta*this.uvAnimationScrollXSpeedFactor,this.uniforms.uvAnimationScrollYOffset.value+=delta*this.uvAnimationScrollYSpeedFactor,this.uniforms.uvAnimationRotationPhase.value+=delta*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 threeRevision=parseInt(REVISION,10),useUvInVert=this.outlineWidthMultiplyTexture!==null,useUvInFrag=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:threeRevision,OUTLINE:this._isOutline,MTOON_USE_UV:useUvInVert||useUvInFrag,MTOON_UVS_VERTEX_ONLY:useUvInVert&&!useUvInFrag,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===MToonMaterialOutlineWidthMode.ScreenCoordinates}}_updateTextureMatrix(src,dst){src.value&&(src.value.matrixAutoUpdate&&src.value.updateMatrix(),dst.value.copy(src.value.matrix))}},POSSIBLE_SPEC_VERSIONS6=new Set([`1.0`,`1.0-beta`]),_MToonMaterialLoaderPlugin=class _MToonMaterialLoaderPlugin2{get name(){return _MToonMaterialLoaderPlugin2.EXTENSION_NAME}constructor(parser,options$1={}){var _a$2,_b,_c,_d;this.parser=parser,this.materialType=(_a$2=options$1.materialType)??MToonMaterial,this.renderOrderOffset=(_b=options$1.renderOrderOffset)??0,this.v0CompatShade=(_c=options$1.v0CompatShade)??!1,this.debugMode=(_d=options$1.debugMode)??`none`,this._mToonMaterialSet=new Set}beforeRoot(){return __async3(this,null,function*(){this._removeUnlitExtensionIfMToonExists()})}afterRoot(gltf){return __async3(this,null,function*(){gltf.userData.vrmMToonMaterials=Array.from(this._mToonMaterialSet)})}getMaterialType(materialIndex){let v1Extension=this._getMToonExtension(materialIndex);return v1Extension?this.materialType:null}extendMaterialParams(materialIndex,materialParams){let extension$1=this._getMToonExtension(materialIndex);return extension$1?this._extendMaterialParams(extension$1,materialParams):null}loadMesh(meshIndex){return __async3(this,null,function*(){var _a$2;let parser=this.parser,json=parser.json,meshDef=(_a$2=json.meshes)?.[meshIndex];if(meshDef==null)throw Error(`MToonMaterialLoaderPlugin: Attempt to use meshes[${meshIndex}] of glTF but the mesh doesn't exist`);let primitivesDef=meshDef.primitives,meshOrGroup=yield parser.loadMesh(meshIndex);if(primitivesDef.length===1){let mesh=meshOrGroup,materialIndex=primitivesDef[0].material;materialIndex!=null&&this._setupPrimitive(mesh,materialIndex)}else{let group=meshOrGroup;for(let i$1=0;i$1{var _a$2;let extension$1=this._getMToonExtension(iMaterial);extension$1&&(_a$2=materialDef.extensions)?.KHR_materials_unlit&&delete materialDef.extensions.KHR_materials_unlit})}_getMToonExtension(materialIndex){var _a$2,_b;let parser=this.parser,json=parser.json,materialDef=(_a$2=json.materials)?.[materialIndex];if(materialDef==null){console.warn(`MToonMaterialLoaderPlugin: Attempt to use materials[${materialIndex}] of glTF but the material doesn't exist`);return}let extension$1=(_b=materialDef.extensions)?.[_MToonMaterialLoaderPlugin2.EXTENSION_NAME];if(extension$1==null)return;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS6.has(specVersion)){console.warn(`MToonMaterialLoaderPlugin: Unknown ${_MToonMaterialLoaderPlugin2.EXTENSION_NAME} specVersion "${specVersion}"`);return}return extension$1}_extendMaterialParams(extension$1,materialParams){return __async3(this,null,function*(){var _a$2;delete materialParams.metalness,delete materialParams.roughness;let assignHelper=new GLTFMToonMaterialParamsAssignHelper(this.parser,materialParams);assignHelper.assignPrimitive(`transparentWithZWrite`,extension$1.transparentWithZWrite),assignHelper.assignColor(`shadeColorFactor`,extension$1.shadeColorFactor),assignHelper.assignTexture(`shadeMultiplyTexture`,extension$1.shadeMultiplyTexture,!0),assignHelper.assignPrimitive(`shadingShiftFactor`,extension$1.shadingShiftFactor),assignHelper.assignTexture(`shadingShiftTexture`,extension$1.shadingShiftTexture,!0),assignHelper.assignPrimitive(`shadingShiftTextureScale`,(_a$2=extension$1.shadingShiftTexture)?.scale),assignHelper.assignPrimitive(`shadingToonyFactor`,extension$1.shadingToonyFactor),assignHelper.assignPrimitive(`giEqualizationFactor`,extension$1.giEqualizationFactor),assignHelper.assignColor(`matcapFactor`,extension$1.matcapFactor),assignHelper.assignTexture(`matcapTexture`,extension$1.matcapTexture,!0),assignHelper.assignColor(`parametricRimColorFactor`,extension$1.parametricRimColorFactor),assignHelper.assignTexture(`rimMultiplyTexture`,extension$1.rimMultiplyTexture,!0),assignHelper.assignPrimitive(`rimLightingMixFactor`,extension$1.rimLightingMixFactor),assignHelper.assignPrimitive(`parametricRimFresnelPowerFactor`,extension$1.parametricRimFresnelPowerFactor),assignHelper.assignPrimitive(`parametricRimLiftFactor`,extension$1.parametricRimLiftFactor),assignHelper.assignPrimitive(`outlineWidthMode`,extension$1.outlineWidthMode),assignHelper.assignPrimitive(`outlineWidthFactor`,extension$1.outlineWidthFactor),assignHelper.assignTexture(`outlineWidthMultiplyTexture`,extension$1.outlineWidthMultiplyTexture,!1),assignHelper.assignColor(`outlineColorFactor`,extension$1.outlineColorFactor),assignHelper.assignPrimitive(`outlineLightingMixFactor`,extension$1.outlineLightingMixFactor),assignHelper.assignTexture(`uvAnimationMaskTexture`,extension$1.uvAnimationMaskTexture,!1),assignHelper.assignPrimitive(`uvAnimationScrollXSpeedFactor`,extension$1.uvAnimationScrollXSpeedFactor),assignHelper.assignPrimitive(`uvAnimationScrollYSpeedFactor`,extension$1.uvAnimationScrollYSpeedFactor),assignHelper.assignPrimitive(`uvAnimationRotationSpeedFactor`,extension$1.uvAnimationRotationSpeedFactor),assignHelper.assignPrimitive(`v0CompatShade`,this.v0CompatShade),assignHelper.assignPrimitive(`debugMode`,this.debugMode),yield assignHelper.pending})}_setupPrimitive(mesh,materialIndex){let extension$1=this._getMToonExtension(materialIndex);if(extension$1){let renderOrder=this._parseRenderOrder(extension$1);mesh.renderOrder=renderOrder+this.renderOrderOffset,this._generateOutline(mesh),this._addToMaterialSet(mesh);return}}_shouldGenerateOutline(surfaceMaterial){return typeof surfaceMaterial.outlineWidthMode==`string`&&surfaceMaterial.outlineWidthMode!==`none`&&typeof surfaceMaterial.outlineWidthFactor==`number`&&surfaceMaterial.outlineWidthFactor>0}_generateOutline(mesh){let surfaceMaterial=mesh.material;if(!(surfaceMaterial instanceof Material)||!this._shouldGenerateOutline(surfaceMaterial))return;mesh.material=[surfaceMaterial];let outlineMaterial=surfaceMaterial.clone();outlineMaterial.name+=` (Outline)`,outlineMaterial.isOutline=!0,outlineMaterial.side=BackSide,mesh.material.push(outlineMaterial);let geometry=mesh.geometry,primitiveVertices=geometry.index?geometry.index.count:geometry.attributes.position.count/3;geometry.addGroup(0,primitiveVertices,0),geometry.addGroup(0,primitiveVertices,1)}_addToMaterialSet(mesh){let materialOrMaterials=mesh.material,materialSet=new Set;Array.isArray(materialOrMaterials)?materialOrMaterials.forEach(material=>materialSet.add(material)):materialSet.add(materialOrMaterials);for(let material of materialSet)this._mToonMaterialSet.add(material)}_parseRenderOrder(extension$1){var _a$2;let enabledZWrite=extension$1.transparentWithZWrite;return(enabledZWrite?0:19)+((_a$2=extension$1.renderQueueOffsetNumber)??0)}};_MToonMaterialLoaderPlugin.EXTENSION_NAME=`VRMC_materials_mtoon`;var MToonMaterialLoaderPlugin=_MToonMaterialLoaderPlugin,__async4=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),_VRMMaterialsHDREmissiveMultiplierLoaderPlugin=class _VRMMaterialsHDREmissiveMultiplierLoaderPlugin2{get name(){return _VRMMaterialsHDREmissiveMultiplierLoaderPlugin2.EXTENSION_NAME}constructor(parser){this.parser=parser}extendMaterialParams(materialIndex,materialParams){return __async4(this,null,function*(){let extension$1=this._getHDREmissiveMultiplierExtension(materialIndex);if(extension$1==null)return;console.warn("VRMMaterialsHDREmissiveMultiplierLoaderPlugin: `VRMC_materials_hdr_emissiveMultiplier` is archived. Use `KHR_materials_emissive_strength` instead.");let emissiveMultiplier=extension$1.emissiveMultiplier;materialParams.emissiveIntensity=emissiveMultiplier})}_getHDREmissiveMultiplierExtension(materialIndex){var _a$2,_b;let parser=this.parser,json=parser.json,materialDef=(_a$2=json.materials)?.[materialIndex];if(materialDef==null){console.warn(`VRMMaterialsHDREmissiveMultiplierLoaderPlugin: Attempt to use materials[${materialIndex}] of glTF but the material doesn't exist`);return}let extension$1=(_b=materialDef.extensions)?.[_VRMMaterialsHDREmissiveMultiplierLoaderPlugin2.EXTENSION_NAME];if(extension$1!=null)return extension$1}};_VRMMaterialsHDREmissiveMultiplierLoaderPlugin.EXTENSION_NAME=`VRMC_materials_hdr_emissiveMultiplier`;var VRMMaterialsHDREmissiveMultiplierLoaderPlugin=_VRMMaterialsHDREmissiveMultiplierLoaderPlugin,__defProp2=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols2=Object.getOwnPropertySymbols,__hasOwnProp2=Object.prototype.hasOwnProperty,__propIsEnum2=Object.prototype.propertyIsEnumerable,__defNormalProp2=(obj,key$1,value$1)=>key$1 in obj?__defProp2(obj,key$1,{enumerable:!0,configurable:!0,writable:!0,value:value$1}):obj[key$1]=value$1,__spreadValues2=(a$2,b$3)=>{for(var prop in b$3||={})__hasOwnProp2.call(b$3,prop)&&__defNormalProp2(a$2,prop,b$3[prop]);if(__getOwnPropSymbols2)for(var prop of __getOwnPropSymbols2(b$3))__propIsEnum2.call(b$3,prop)&&__defNormalProp2(a$2,prop,b$3[prop]);return a$2},__spreadProps=(a$2,b$3)=>__defProps(a$2,__getOwnPropDescs(b$3)),__async5=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())});function gammaEOTF(e$3){return e$3**2.2}var VRMMaterialsV0CompatPlugin=class{get name(){return`VRMMaterialsV0CompatPlugin`}constructor(parser){var _a$2;this.parser=parser,this._renderQueueMapTransparent=new Map,this._renderQueueMapTransparentZWrite=new Map;let json=this.parser.json;json.extensionsUsed=(_a$2=json.extensionsUsed)??[],json.extensionsUsed.indexOf(`KHR_texture_transform`)===-1&&json.extensionsUsed.push(`KHR_texture_transform`)}beforeRoot(){return __async5(this,null,function*(){var _a$2;let json=this.parser.json,v0VRMExtension=(_a$2=json.extensions)?.VRM,v0MaterialProperties=v0VRMExtension?.materialProperties;v0MaterialProperties&&(this._populateRenderQueueMap(v0MaterialProperties),v0MaterialProperties.forEach((materialProperties,materialIndex)=>{var _a2,_b;let materialDef=(_a2=json.materials)?.[materialIndex];if(materialDef==null){console.warn(`VRMMaterialsV0CompatPlugin: Attempt to use materials[${materialIndex}] of glTF but the material doesn't exist`);return}if(materialProperties.shader===`VRM/MToon`){let material=this._parseV0MToonProperties(materialProperties,materialDef);json.materials[materialIndex]=material}else if((_b=materialProperties.shader)?.startsWith(`VRM/Unlit`)){let material=this._parseV0UnlitProperties(materialProperties,materialDef);json.materials[materialIndex]=material}else materialProperties.shader===`VRM_USE_GLTFSHADER`||console.warn(`VRMMaterialsV0CompatPlugin: Unknown shader: ${materialProperties.shader}`)}))})}_parseV0MToonProperties(materialProperties,schemaMaterial){var _a$2,_b,_c,_d,_e$2,_f,_g,_h,_i$1,_j,_k,_l,_m,_n$1,_o,_p,_q,_r$1,_s,_t$3,_u,_v,_w,_x$1,_y$1,_z$1,_A,_B,_C,_D,_E,_F,_G,_H,_I,_J,_K,_L,_M,_N,_O,_P,_Q,_R,_S,_T,_U,_V,_W,_X,_Y,_Z,__,_$,_aa;let isTransparent=(_b=(_a$2=materialProperties.keywordMap)?._ALPHABLEND_ON)??!1,enabledZWrite=(_c=materialProperties.floatProperties)?._ZWrite===1,transparentWithZWrite=enabledZWrite&&isTransparent,renderQueueOffsetNumber=this._v0ParseRenderQueue(materialProperties),isCutoff=(_e$2=(_d=materialProperties.keywordMap)?._ALPHATEST_ON)??!1,alphaMode=isTransparent?`BLEND`:isCutoff?`MASK`:`OPAQUE`,alphaCutoff=isCutoff?(_g=(_f=materialProperties.floatProperties)?._Cutoff)??.5:void 0,cullMode=(_i$1=(_h=materialProperties.floatProperties)?._CullMode)??2,doubleSided=cullMode===0,textureTransformExt=this._portTextureTransform(materialProperties),baseColorFactor=((_k=(_j=materialProperties.vectorProperties)?._Color)??[1,1,1,1]).map((v$1,i$1)=>i$1===3?v$1:gammaEOTF(v$1)),baseColorTextureIndex=(_l=materialProperties.textureProperties)?._MainTex,baseColorTexture=baseColorTextureIndex==null?void 0:{index:baseColorTextureIndex,extensions:__spreadValues2({},textureTransformExt)},normalTextureScale=(_n$1=(_m=materialProperties.floatProperties)?._BumpScale)??1,normalTextureIndex=(_o=materialProperties.textureProperties)?._BumpMap,normalTexture=normalTextureIndex==null?void 0:{index:normalTextureIndex,scale:normalTextureScale,extensions:__spreadValues2({},textureTransformExt)},emissiveFactor=((_q=(_p=materialProperties.vectorProperties)?._EmissionColor)??[0,0,0,1]).map(gammaEOTF),emissiveTextureIndex=(_r$1=materialProperties.textureProperties)?._EmissionMap,emissiveTexture=emissiveTextureIndex==null?void 0:{index:emissiveTextureIndex,extensions:__spreadValues2({},textureTransformExt)},shadeColorFactor=((_t$3=(_s=materialProperties.vectorProperties)?._ShadeColor)??[.97,.81,.86,1]).map(gammaEOTF),shadeMultiplyTextureIndex=(_u=materialProperties.textureProperties)?._ShadeTexture,shadeMultiplyTexture=shadeMultiplyTextureIndex==null?void 0:{index:shadeMultiplyTextureIndex,extensions:__spreadValues2({},textureTransformExt)},shadingShiftFactor=(_w=(_v=materialProperties.floatProperties)?._ShadeShift)??0,shadingToonyFactor=(_y$1=(_x$1=materialProperties.floatProperties)?._ShadeToony)??.9;shadingToonyFactor=MathUtils.lerp(shadingToonyFactor,1,.5+.5*shadingShiftFactor),shadingShiftFactor=-shadingShiftFactor-(1-shadingToonyFactor);let giIntensityFactor=(_A=(_z$1=materialProperties.floatProperties)?._IndirectLightIntensity)??.1,giEqualizationFactor=giIntensityFactor?1-giIntensityFactor:void 0,matcapTextureIndex=(_B=materialProperties.textureProperties)?._SphereAdd,matcapFactor=matcapTextureIndex==null?void 0:[1,1,1],matcapTexture=matcapTextureIndex==null?void 0:{index:matcapTextureIndex},rimLightingMixFactor=(_D=(_C=materialProperties.floatProperties)?._RimLightingMix)??0,rimMultiplyTextureIndex=(_E=materialProperties.textureProperties)?._RimTexture,rimMultiplyTexture=rimMultiplyTextureIndex==null?void 0:{index:rimMultiplyTextureIndex,extensions:__spreadValues2({},textureTransformExt)},parametricRimColorFactor=((_G=(_F=materialProperties.vectorProperties)?._RimColor)??[0,0,0,1]).map(gammaEOTF),parametricRimFresnelPowerFactor=(_I=(_H=materialProperties.floatProperties)?._RimFresnelPower)??1,parametricRimLiftFactor=(_K=(_J=materialProperties.floatProperties)?._RimLift)??0,outlineWidthMode=[`none`,`worldCoordinates`,`screenCoordinates`][(_M=(_L=materialProperties.floatProperties)?._OutlineWidthMode)??0],outlineWidthFactor=(_O=(_N=materialProperties.floatProperties)?._OutlineWidth)??0;outlineWidthFactor=.01*outlineWidthFactor;let outlineWidthMultiplyTextureIndex=(_P=materialProperties.textureProperties)?._OutlineWidthTexture,outlineWidthMultiplyTexture=outlineWidthMultiplyTextureIndex==null?void 0:{index:outlineWidthMultiplyTextureIndex,extensions:__spreadValues2({},textureTransformExt)},outlineColorFactor=((_R=(_Q=materialProperties.vectorProperties)?._OutlineColor)??[0,0,0]).map(gammaEOTF),outlineColorMode=(_T=(_S=materialProperties.floatProperties)?._OutlineColorMode)??0,outlineLightingMixFactor=outlineColorMode===1?(_V=(_U=materialProperties.floatProperties)?._OutlineLightingMix)??1:0,uvAnimationMaskTextureIndex=(_W=materialProperties.textureProperties)?._UvAnimMaskTexture,uvAnimationMaskTexture=uvAnimationMaskTextureIndex==null?void 0:{index:uvAnimationMaskTextureIndex,extensions:__spreadValues2({},textureTransformExt)},uvAnimationScrollXSpeedFactor=(_Y=(_X=materialProperties.floatProperties)?._UvAnimScrollX)??0,uvAnimationScrollYSpeedFactor=(__=(_Z=materialProperties.floatProperties)?._UvAnimScrollY)??0;uvAnimationScrollYSpeedFactor!=null&&(uvAnimationScrollYSpeedFactor=-uvAnimationScrollYSpeedFactor);let uvAnimationRotationSpeedFactor=(_aa=(_$=materialProperties.floatProperties)?._UvAnimRotation)??0,mtoonExtension={specVersion:`1.0`,transparentWithZWrite,renderQueueOffsetNumber,shadeColorFactor,shadeMultiplyTexture,shadingShiftFactor,shadingToonyFactor,giEqualizationFactor,matcapFactor,matcapTexture,rimLightingMixFactor,rimMultiplyTexture,parametricRimColorFactor,parametricRimFresnelPowerFactor,parametricRimLiftFactor,outlineWidthMode,outlineWidthFactor,outlineWidthMultiplyTexture,outlineColorFactor,outlineLightingMixFactor,uvAnimationMaskTexture,uvAnimationScrollXSpeedFactor,uvAnimationScrollYSpeedFactor,uvAnimationRotationSpeedFactor};return __spreadProps(__spreadValues2({},schemaMaterial),{pbrMetallicRoughness:{baseColorFactor,baseColorTexture},normalTexture,emissiveTexture,emissiveFactor,alphaMode,alphaCutoff,doubleSided,extensions:{VRMC_materials_mtoon:mtoonExtension}})}_parseV0UnlitProperties(materialProperties,schemaMaterial){var _a$2,_b,_c,_d,_e$2;let isTransparentZWrite=materialProperties.shader===`VRM/UnlitTransparentZWrite`,isTransparent=materialProperties.shader===`VRM/UnlitTransparent`||isTransparentZWrite,renderQueueOffsetNumber=this._v0ParseRenderQueue(materialProperties),isCutoff=materialProperties.shader===`VRM/UnlitCutout`,alphaMode=isTransparent?`BLEND`:isCutoff?`MASK`:`OPAQUE`,alphaCutoff=isCutoff?(_b=(_a$2=materialProperties.floatProperties)?._Cutoff)??.5:void 0,textureTransformExt=this._portTextureTransform(materialProperties),baseColorFactor=((_d=(_c=materialProperties.vectorProperties)?._Color)??[1,1,1,1]).map(gammaEOTF),baseColorTextureIndex=(_e$2=materialProperties.textureProperties)?._MainTex,baseColorTexture=baseColorTextureIndex==null?void 0:{index:baseColorTextureIndex,extensions:__spreadValues2({},textureTransformExt)},mtoonExtension={specVersion:`1.0`,transparentWithZWrite:isTransparentZWrite,renderQueueOffsetNumber,shadeColorFactor:baseColorFactor,shadeMultiplyTexture:baseColorTexture};return __spreadProps(__spreadValues2({},schemaMaterial),{pbrMetallicRoughness:{baseColorFactor,baseColorTexture},alphaMode,alphaCutoff,extensions:{VRMC_materials_mtoon:mtoonExtension}})}_portTextureTransform(materialProperties){var _a$2,_b,_c,_d,_e$2;let textureTransform=(_a$2=materialProperties.vectorProperties)?._MainTex;if(textureTransform==null)return{};let offset$1=[(_b=textureTransform?.[0])??0,(_c=textureTransform?.[1])??0],scale$1=[(_d=textureTransform?.[2])??1,(_e$2=textureTransform?.[3])??1];return offset$1[1]=1-scale$1[1]-offset$1[1],{KHR_texture_transform:{offset:offset$1,scale:scale$1}}}_v0ParseRenderQueue(materialProperties){var _a$2,_b;let isTransparentZWrite=materialProperties.shader===`VRM/UnlitTransparentZWrite`,isTransparent=(_a$2=materialProperties.keywordMap)?._ALPHABLEND_ON!=null||materialProperties.shader===`VRM/UnlitTransparent`||isTransparentZWrite,enabledZWrite=(_b=materialProperties.floatProperties)?._ZWrite===1||isTransparentZWrite,offset$1=0;if(isTransparent){let v0Queue=materialProperties.renderQueue;v0Queue!=null&&(offset$1=enabledZWrite?this._renderQueueMapTransparentZWrite.get(v0Queue):this._renderQueueMapTransparent.get(v0Queue))}return offset$1}_populateRenderQueueMap(materialPropertiesList){let renderQueuesTransparent=new Set,renderQueuesTransparentZWrite=new Set;materialPropertiesList.forEach(materialProperties=>{var _a$2,_b;let isTransparentZWrite=materialProperties.shader===`VRM/UnlitTransparentZWrite`,isTransparent=(_a$2=materialProperties.keywordMap)?._ALPHABLEND_ON!=null||materialProperties.shader===`VRM/UnlitTransparent`||isTransparentZWrite,enabledZWrite=(_b=materialProperties.floatProperties)?._ZWrite===1||isTransparentZWrite;if(isTransparent){let v0Queue=materialProperties.renderQueue;v0Queue!=null&&(enabledZWrite?renderQueuesTransparentZWrite.add(v0Queue):renderQueuesTransparent.add(v0Queue))}}),renderQueuesTransparent.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${renderQueuesTransparent.size} render queues for Transparent materials while VRM 1.0 only supports up to 10 render queues. The model might not be rendered correctly.`),renderQueuesTransparentZWrite.size>10&&console.warn(`VRMMaterialsV0CompatPlugin: This VRM uses ${renderQueuesTransparentZWrite.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(renderQueuesTransparent).sort().forEach((queue$1,i$1)=>{let newQueueOffset=Math.min(Math.max(i$1-renderQueuesTransparent.size+1,-9),0);this._renderQueueMapTransparent.set(queue$1,newQueueOffset)}),Array.from(renderQueuesTransparentZWrite).sort().forEach((queue$1,i$1)=>{let newQueueOffset=Math.min(Math.max(i$1,0),9);this._renderQueueMapTransparentZWrite.set(queue$1,newQueueOffset)})}},__async6=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),_v3A6=new Vector3,VRMNodeConstraintHelper=class extends Group{constructor(constraint){super(),this._attrPosition=new BufferAttribute(new Float32Array([0,0,0,0,0,0]),3),this._attrPosition.setUsage(DynamicDrawUsage);let geometry=new BufferGeometry;geometry.setAttribute(`position`,this._attrPosition);let material=new LineBasicMaterial({color:16711935,depthTest:!1,depthWrite:!1});this._line=new Line(geometry,material),this.add(this._line),this.constraint=constraint}updateMatrixWorld(force){_v3A6.setFromMatrixPosition(this.constraint.destination.matrixWorld),this._attrPosition.setXYZ(0,_v3A6.x,_v3A6.y,_v3A6.z),this.constraint.source&&_v3A6.setFromMatrixPosition(this.constraint.source.matrixWorld),this._attrPosition.setXYZ(1,_v3A6.x,_v3A6.y,_v3A6.z),this._attrPosition.needsUpdate=!0,super.updateMatrixWorld(force)}};function decomposePosition(matrix,target$1){return target$1.set(matrix.elements[12],matrix.elements[13],matrix.elements[14])}var _v3A22=new Vector3,_v3B4=new Vector3;function decomposeRotation(matrix,target$1){return matrix.decompose(_v3A22,target$1,_v3B4),target$1}function quatInvertCompat2(target$1){return target$1.invert?target$1.invert():target$1.inverse(),target$1}var VRMNodeConstraint=class{constructor(destination,source){this.destination=destination,this.source=source,this.weight=1}},_v3A32=new Vector3,_v3B22=new Vector3,_v3C2=new Vector3,_quatA7=new Quaternion,_quatB4=new Quaternion,_quatC2=new Quaternion,VRMAimConstraint=class extends VRMNodeConstraint{get aimAxis(){return this._aimAxis}set aimAxis(aimAxis){this._aimAxis=aimAxis,this._v3AimAxis.set(aimAxis===`PositiveX`?1:aimAxis===`NegativeX`?-1:0,aimAxis===`PositiveY`?1:aimAxis===`NegativeY`?-1:0,aimAxis===`PositiveZ`?1:aimAxis===`NegativeZ`?-1:0)}get dependencies(){let set=new Set([this.source]);return this.destination.parent&&set.add(this.destination.parent),set}constructor(destination,source){super(destination,source),this._aimAxis=`PositiveX`,this._v3AimAxis=new Vector3(1,0,0),this._dstRestQuat=new Quaternion}setInitState(){this._dstRestQuat.copy(this.destination.quaternion)}update(){this.destination.updateWorldMatrix(!0,!1),this.source.updateWorldMatrix(!0,!1);let dstParentWorldQuat=_quatA7.identity(),invDstParentWorldQuat=_quatB4.identity();this.destination.parent&&(decomposeRotation(this.destination.parent.matrixWorld,dstParentWorldQuat),quatInvertCompat2(invDstParentWorldQuat.copy(dstParentWorldQuat)));let a0=_v3A32.copy(this._v3AimAxis).applyQuaternion(this._dstRestQuat).applyQuaternion(dstParentWorldQuat),a1=decomposePosition(this.source.matrixWorld,_v3B22).sub(decomposePosition(this.destination.matrixWorld,_v3C2)).normalize(),targetQuat=_quatC2.setFromUnitVectors(a0,a1).premultiply(invDstParentWorldQuat).multiply(dstParentWorldQuat).multiply(this._dstRestQuat);this.destination.quaternion.copy(this._dstRestQuat).slerp(targetQuat,this.weight)}};function traverseAncestorsFromRoot(object,callback){let ancestors=[object],head$1=object.parent;for(;head$1!==null;)ancestors.unshift(head$1),head$1=head$1.parent;ancestors.forEach(ancestor=>{callback(ancestor)})}var VRMNodeConstraintManager=class{constructor(){this._constraints=new Set,this._objectConstraintsMap=new Map}get constraints(){return this._constraints}addConstraint(constraint){this._constraints.add(constraint);let objectSet=this._objectConstraintsMap.get(constraint.destination);objectSet??(objectSet=new Set,this._objectConstraintsMap.set(constraint.destination,objectSet)),objectSet.add(constraint)}deleteConstraint(constraint){this._constraints.delete(constraint);let objectSet=this._objectConstraintsMap.get(constraint.destination);objectSet.delete(constraint)}setInitState(){let constraintsTried=new Set,constraintsDone=new Set;for(let constraint of this._constraints)this._processConstraint(constraint,constraintsTried,constraintsDone,constraint2=>constraint2.setInitState())}update(){let constraintsTried=new Set,constraintsDone=new Set;for(let constraint of this._constraints)this._processConstraint(constraint,constraintsTried,constraintsDone,constraint2=>constraint2.update())}_processConstraint(constraint,constraintsTried,constraintsDone,callback){if(constraintsDone.has(constraint))return;if(constraintsTried.has(constraint))throw Error(`VRMNodeConstraintManager: Circular dependency detected while updating constraints`);constraintsTried.add(constraint);let depObjects=constraint.dependencies;for(let depObject of depObjects)traverseAncestorsFromRoot(depObject,depObjectAncestor=>{let objectSet=this._objectConstraintsMap.get(depObjectAncestor);if(objectSet)for(let depConstraint of objectSet)this._processConstraint(depConstraint,constraintsTried,constraintsDone,callback)});callback(constraint),constraintsDone.add(constraint)}},_quatA22=new Quaternion,_quatB22=new Quaternion,VRMRotationConstraint=class extends VRMNodeConstraint{get dependencies(){return new Set([this.source])}constructor(destination,source){super(destination,source),this._dstRestQuat=new Quaternion,this._invSrcRestQuat=new Quaternion}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),quatInvertCompat2(this._invSrcRestQuat.copy(this.source.quaternion))}update(){let srcDeltaQuat=_quatA22.copy(this._invSrcRestQuat).multiply(this.source.quaternion),targetQuat=_quatB22.copy(this._dstRestQuat).multiply(srcDeltaQuat);this.destination.quaternion.copy(this._dstRestQuat).slerp(targetQuat,this.weight)}},_v3A42=new Vector3,_quatA32=new Quaternion,_quatB32=new Quaternion,VRMRollConstraint=class extends VRMNodeConstraint{get rollAxis(){return this._rollAxis}set rollAxis(rollAxis){this._rollAxis=rollAxis,this._v3RollAxis.set(rollAxis===`X`?1:0,rollAxis===`Y`?1:0,rollAxis===`Z`?1:0)}get dependencies(){return new Set([this.source])}constructor(destination,source){super(destination,source),this._rollAxis=`X`,this._v3RollAxis=new Vector3(1,0,0),this._dstRestQuat=new Quaternion,this._invDstRestQuat=new Quaternion,this._invSrcRestQuatMulDstRestQuat=new Quaternion}setInitState(){this._dstRestQuat.copy(this.destination.quaternion),quatInvertCompat2(this._invDstRestQuat.copy(this._dstRestQuat)),quatInvertCompat2(this._invSrcRestQuatMulDstRestQuat.copy(this.source.quaternion)).multiply(this._dstRestQuat)}update(){let quatDelta=_quatA32.copy(this._invDstRestQuat).multiply(this.source.quaternion).multiply(this._invSrcRestQuatMulDstRestQuat),n1=_v3A42.copy(this._v3RollAxis).applyQuaternion(quatDelta),quatFromTo=_quatB32.setFromUnitVectors(n1,this._v3RollAxis),targetQuat=quatFromTo.premultiply(this._dstRestQuat).multiply(quatDelta);this.destination.quaternion.copy(this._dstRestQuat).slerp(targetQuat,this.weight)}},POSSIBLE_SPEC_VERSIONS7=new Set([`1.0`,`1.0-beta`]),_VRMNodeConstraintLoaderPlugin=class _VRMNodeConstraintLoaderPlugin2{get name(){return _VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME}constructor(parser,options$1){this.parser=parser,this.helperRoot=options$1?.helperRoot}afterRoot(gltf){return __async6(this,null,function*(){gltf.userData.vrmNodeConstraintManager=yield this._import(gltf)})}_import(gltf){return __async6(this,null,function*(){var _a$2;let json=this.parser.json,isConstraintsUsed=(_a$2=json.extensionsUsed)?.indexOf(_VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME)!==-1;if(!isConstraintsUsed)return null;let manager=new VRMNodeConstraintManager,threeNodes=yield this.parser.getDependencies(`node`);return threeNodes.forEach((node$1,nodeIndex)=>{var _a2;let schemaNode=json.nodes[nodeIndex],extension$1=(_a2=schemaNode?.extensions)?.[_VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME];if(extension$1==null)return;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS7.has(specVersion)){console.warn(`VRMNodeConstraintLoaderPlugin: Unknown ${_VRMNodeConstraintLoaderPlugin2.EXTENSION_NAME} specVersion "${specVersion}"`);return}let constraintDef=extension$1.constraint;if(constraintDef.roll!=null){let constraint=this._importRollConstraint(node$1,threeNodes,constraintDef.roll);manager.addConstraint(constraint)}else if(constraintDef.aim!=null){let constraint=this._importAimConstraint(node$1,threeNodes,constraintDef.aim);manager.addConstraint(constraint)}else if(constraintDef.rotation!=null){let constraint=this._importRotationConstraint(node$1,threeNodes,constraintDef.rotation);manager.addConstraint(constraint)}}),gltf.scene.updateMatrixWorld(),manager.setInitState(),manager})}_importRollConstraint(destination,nodes,rollConstraintDef){let{source:sourceIndex,rollAxis,weight}=rollConstraintDef,source=nodes[sourceIndex],constraint=new VRMRollConstraint(destination,source);if(rollAxis!=null&&(constraint.rollAxis=rollAxis),weight!=null&&(constraint.weight=weight),this.helperRoot){let helper=new VRMNodeConstraintHelper(constraint);this.helperRoot.add(helper)}return constraint}_importAimConstraint(destination,nodes,aimConstraintDef){let{source:sourceIndex,aimAxis,weight}=aimConstraintDef,source=nodes[sourceIndex],constraint=new VRMAimConstraint(destination,source);if(aimAxis!=null&&(constraint.aimAxis=aimAxis),weight!=null&&(constraint.weight=weight),this.helperRoot){let helper=new VRMNodeConstraintHelper(constraint);this.helperRoot.add(helper)}return constraint}_importRotationConstraint(destination,nodes,rotationConstraintDef){let{source:sourceIndex,weight}=rotationConstraintDef,source=nodes[sourceIndex],constraint=new VRMRotationConstraint(destination,source);if(weight!=null&&(constraint.weight=weight),this.helperRoot){let helper=new VRMNodeConstraintHelper(constraint);this.helperRoot.add(helper)}return constraint}};_VRMNodeConstraintLoaderPlugin.EXTENSION_NAME=`VRMC_node_constraint`;var VRMNodeConstraintLoaderPlugin=_VRMNodeConstraintLoaderPlugin,__async7=(__this,__arguments,generator)=>new Promise((resolve$1,reject)=>{var fulfilled=value$1=>{try{step(generator.next(value$1))}catch(e$3){reject(e$3)}},rejected=value$1=>{try{step(generator.throw(value$1))}catch(e$3){reject(e$3)}},step=x$3=>x$3.done?resolve$1(x$3.value):Promise.resolve(x$3.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),VRMSpringBoneColliderShape=class{},_v3A7=new Vector3,_v3B5=new Vector3,VRMSpringBoneColliderShapeCapsule=class extends VRMSpringBoneColliderShape{get type(){return`capsule`}constructor(params){var _a$2,_b,_c,_d;super(),this.offset=(_a$2=params?.offset)??new Vector3(0,0,0),this.tail=(_b=params?.tail)??new Vector3(0,0,0),this.radius=(_c=params?.radius)??0,this.inside=(_d=params?.inside)??!1}calculateCollision(colliderMatrix,objectPosition,objectRadius,target$1){_v3A7.setFromMatrixPosition(colliderMatrix),_v3B5.subVectors(this.tail,this.offset).applyMatrix4(colliderMatrix),_v3B5.sub(_v3A7);let lengthSqCapsule=_v3B5.lengthSq();target$1.copy(objectPosition).sub(_v3A7);let dot=_v3B5.dot(target$1);dot<=0||(lengthSqCapsule<=dot||_v3B5.multiplyScalar(dot/lengthSqCapsule),target$1.sub(_v3B5));let length=target$1.length(),distance=this.inside?this.radius-objectRadius-length:length-objectRadius-this.radius;return distance<0&&(target$1.multiplyScalar(1/length),this.inside&&target$1.negate()),distance}},_v3A23=new Vector3,_mat3A=new Matrix3,VRMSpringBoneColliderShapePlane=class extends VRMSpringBoneColliderShape{get type(){return`plane`}constructor(params){var _a$2,_b;super(),this.offset=(_a$2=params?.offset)??new Vector3(0,0,0),this.normal=(_b=params?.normal)??new Vector3(0,0,1)}calculateCollision(colliderMatrix,objectPosition,objectRadius,target$1){target$1.setFromMatrixPosition(colliderMatrix),target$1.negate().add(objectPosition),_mat3A.getNormalMatrix(colliderMatrix),_v3A23.copy(this.normal).applyNormalMatrix(_mat3A).normalize();let distance=target$1.dot(_v3A23)-objectRadius;return target$1.copy(_v3A23),distance}},_v3A33=new Vector3,VRMSpringBoneColliderShapeSphere=class extends VRMSpringBoneColliderShape{get type(){return`sphere`}constructor(params){var _a$2,_b,_c;super(),this.offset=(_a$2=params?.offset)??new Vector3(0,0,0),this.radius=(_b=params?.radius)??0,this.inside=(_c=params?.inside)??!1}calculateCollision(colliderMatrix,objectPosition,objectRadius,target$1){target$1.subVectors(objectPosition,_v3A33.setFromMatrixPosition(colliderMatrix));let length=target$1.length(),distance=this.inside?this.radius-objectRadius-length:length-objectRadius-this.radius;return distance<0&&(target$1.multiplyScalar(1/length),this.inside&&target$1.negate()),distance}},_v3A43=new Vector3,ColliderShapeCapsuleBufferGeometry=class extends BufferGeometry{constructor(shape){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new Vector3,this._currentTail=new Vector3,this._shape=shape,this._attrPos=new BufferAttribute(new Float32Array(396),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(264),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1,radius=this._shape.radius/this.worldScale;this._currentRadius!==radius&&(this._currentRadius=radius,shouldUpdateGeometry=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),shouldUpdateGeometry=!0);let tail=_v3A43.copy(this._shape.tail).divideScalar(this.worldScale);this._currentTail.distanceToSquared(tail)>1e-10&&(this._currentTail.copy(tail),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){_v3A43.copy(this._currentTail).sub(this._currentOffset);let l$1=_v3A43.length()/this._currentRadius;for(let i$1=0;i$1<=16;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,-Math.sin(t),-Math.cos(t),0),this._attrPos.setXYZ(17+i$1,l$1+Math.sin(t),Math.cos(t),0),this._attrPos.setXYZ(34+i$1,-Math.sin(t),0,-Math.cos(t)),this._attrPos.setXYZ(51+i$1,l$1+Math.sin(t),0,Math.cos(t))}for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(68+i$1,0,Math.sin(t),Math.cos(t)),this._attrPos.setXYZ(100+i$1,l$1,Math.sin(t),Math.cos(t))}let theta=Math.atan2(_v3A43.y,Math.sqrt(_v3A43.x*_v3A43.x+_v3A43.z*_v3A43.z)),phi=-Math.atan2(_v3A43.z,_v3A43.x);this.rotateZ(theta),this.rotateY(phi),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 i$1=0;i$1<34;i$1++){let i1=(i$1+1)%34;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(68+i$1*2,34+i$1,34+i1)}for(let i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(136+i$1*2,68+i$1,68+i1),this._attrIndex.setXY(200+i$1*2,100+i$1,100+i1)}this._attrIndex.needsUpdate=!0}},ColliderShapePlaneBufferGeometry=class extends BufferGeometry{constructor(shape){super(),this.worldScale=1,this._currentOffset=new Vector3,this._currentNormal=new Vector3,this._shape=shape,this._attrPos=new BufferAttribute(new Float32Array(6*3),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(10),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1;this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),shouldUpdateGeometry=!0),this._currentNormal.equals(this._shape.normal)||(this._currentNormal.copy(this._shape.normal),shouldUpdateGeometry=!0),shouldUpdateGeometry&&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}},ColliderShapeSphereBufferGeometry=class extends BufferGeometry{constructor(shape){super(),this.worldScale=1,this._currentRadius=0,this._currentOffset=new Vector3,this._shape=shape,this._attrPos=new BufferAttribute(new Float32Array(32*3*3),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(64*3),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1,radius=this._shape.radius/this.worldScale;this._currentRadius!==radius&&(this._currentRadius=radius,shouldUpdateGeometry=!0),this._currentOffset.equals(this._shape.offset)||(this._currentOffset.copy(this._shape.offset),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+i$1,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+i$1,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 i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(64+i$1*2,32+i$1,32+i1),this._attrIndex.setXY(128+i$1*2,64+i$1,64+i1)}this._attrIndex.needsUpdate=!0}},_v3A52=new Vector3,VRMSpringBoneColliderHelper=class extends Group{constructor(collider){if(super(),this.matrixAutoUpdate=!1,this.collider=collider,this.collider.shape instanceof VRMSpringBoneColliderShapeSphere)this._geometry=new ColliderShapeSphereBufferGeometry(this.collider.shape);else if(this.collider.shape instanceof VRMSpringBoneColliderShapeCapsule)this._geometry=new ColliderShapeCapsuleBufferGeometry(this.collider.shape);else if(this.collider.shape instanceof VRMSpringBoneColliderShapePlane)this._geometry=new ColliderShapePlaneBufferGeometry(this.collider.shape);else throw Error(`VRMSpringBoneColliderHelper: Unknown collider shape type detected`);let material=new LineBasicMaterial({color:16711935,depthTest:!1,depthWrite:!1});this._line=new LineSegments(this._geometry,material),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(force){this.collider.updateWorldMatrix(!0,!1),this.matrix.copy(this.collider.matrixWorld);let matrixWorldElements=this.matrix.elements;this._geometry.worldScale=_v3A52.set(matrixWorldElements[0],matrixWorldElements[1],matrixWorldElements[2]).length(),this._geometry.update(),super.updateMatrixWorld(force)}},SpringBoneBufferGeometry=class extends BufferGeometry{constructor(springBone){super(),this.worldScale=1,this._currentRadius=0,this._currentTail=new Vector3,this._springBone=springBone,this._attrPos=new BufferAttribute(new Float32Array(294),3),this.setAttribute(`position`,this._attrPos),this._attrIndex=new BufferAttribute(new Uint16Array(194),1),this.setIndex(this._attrIndex),this._buildIndex(),this.update()}update(){let shouldUpdateGeometry=!1,radius=this._springBone.settings.hitRadius/this.worldScale;this._currentRadius!==radius&&(this._currentRadius=radius,shouldUpdateGeometry=!0),this._currentTail.equals(this._springBone.initialLocalChildPosition)||(this._currentTail.copy(this._springBone.initialLocalChildPosition),shouldUpdateGeometry=!0),shouldUpdateGeometry&&this._buildPosition()}_buildPosition(){for(let i$1=0;i$1<32;i$1++){let t=i$1/16*Math.PI;this._attrPos.setXYZ(i$1,Math.cos(t),Math.sin(t),0),this._attrPos.setXYZ(32+i$1,0,Math.cos(t),Math.sin(t)),this._attrPos.setXYZ(64+i$1,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 i$1=0;i$1<32;i$1++){let i1=(i$1+1)%32;this._attrIndex.setXY(i$1*2,i$1,i1),this._attrIndex.setXY(64+i$1*2,32+i$1,32+i1),this._attrIndex.setXY(128+i$1*2,64+i$1,64+i1)}this._attrIndex.setXY(192,96,97),this._attrIndex.needsUpdate=!0}},_v3A62=new Vector3,VRMSpringBoneJointHelper=class extends Group{constructor(springBone){super(),this.matrixAutoUpdate=!1,this.springBone=springBone,this._geometry=new SpringBoneBufferGeometry(this.springBone);let material=new LineBasicMaterial({color:16776960,depthTest:!1,depthWrite:!1});this._line=new LineSegments(this._geometry,material),this.add(this._line)}dispose(){this._geometry.dispose()}updateMatrixWorld(force){this.springBone.bone.updateWorldMatrix(!0,!1),this.matrix.copy(this.springBone.bone.matrixWorld);let matrixWorldElements=this.matrix.elements;this._geometry.worldScale=_v3A62.set(matrixWorldElements[0],matrixWorldElements[1],matrixWorldElements[2]).length(),this._geometry.update(),super.updateMatrixWorld(force)}},VRMSpringBoneCollider=class extends Object3D{constructor(shape){super(),this.colliderMatrix=new Matrix4,this.shape=shape}updateWorldMatrix(updateParents,updateChildren){super.updateWorldMatrix(updateParents,updateChildren),updateColliderMatrix(this.colliderMatrix,this.matrixWorld,this.shape.offset)}};function updateColliderMatrix(colliderMatrix,matrixWorld,offset$1){let me$1=matrixWorld.elements;colliderMatrix.copy(matrixWorld),offset$1&&(colliderMatrix.elements[12]=me$1[0]*offset$1.x+me$1[4]*offset$1.y+me$1[8]*offset$1.z+me$1[12],colliderMatrix.elements[13]=me$1[1]*offset$1.x+me$1[5]*offset$1.y+me$1[9]*offset$1.z+me$1[13],colliderMatrix.elements[14]=me$1[2]*offset$1.x+me$1[6]*offset$1.y+me$1[10]*offset$1.z+me$1[14])}var _matA=new Matrix4;function mat4InvertCompat(target$1){return target$1.invert?target$1.invert():target$1.getInverse(_matA.copy(target$1)),target$1}var Matrix4InverseCache=class{constructor(matrix){this._inverseCache=new Matrix4,this._shouldUpdateInverse=!0,this.matrix=matrix;let handler={set:(obj,prop,newVal)=>(this._shouldUpdateInverse=!0,obj[prop]=newVal,!0)};this._originalElements=matrix.elements,matrix.elements=new Proxy(matrix.elements,handler)}get inverse(){return this._shouldUpdateInverse&&(mat4InvertCompat(this._inverseCache.copy(this.matrix)),this._shouldUpdateInverse=!1),this._inverseCache}revert(){this.matrix.elements=this._originalElements}},IDENTITY_MATRIX4=new Matrix4,_v3A72=new Vector3,_v3B23=new Vector3,_worldSpacePosition=new Vector3,_nextTail=new Vector3,_matA2=new Matrix4,VRMSpringBoneJoint=class{constructor(bone,child,settings={},colliderGroups=[]){this._currentTail=new Vector3,this._prevTail=new Vector3,this._boneAxis=new Vector3,this._worldSpaceBoneLength=0,this._center=null,this._initialLocalMatrix=new Matrix4,this._initialLocalRotation=new Quaternion,this._initialLocalChildPosition=new Vector3;var _a$2,_b,_c,_d,_e$2,_f;this.bone=bone,this.bone.matrixAutoUpdate=!1,this.child=child,this.settings={hitRadius:(_a$2=settings.hitRadius)??0,stiffness:(_b=settings.stiffness)??1,gravityPower:(_c=settings.gravityPower)??0,gravityDir:(_e$2=(_d=settings.gravityDir)?.clone())??new Vector3(0,-1,0),dragForce:(_f=settings.dragForce)??.4},this.colliderGroups=colliderGroups}get dependencies(){let set=new Set,parent=this.bone.parent;parent&&set.add(parent);for(let cg=0;cg{callback(ancestor)})}function traverseChildrenUntilConditionMet(object,callback){object.children.forEach(child=>{let result=callback(child);result||traverseChildrenUntilConditionMet(child,callback)})}function lowestCommonAncestor(objects){var _a$2;let sharedAncestors=new Map;for(let object of objects){let current=object;do{let newValue=((_a$2=sharedAncestors.get(current))??0)+1;if(newValue===objects.size)return current;sharedAncestors.set(current,newValue),current=current.parent}while(current!==null)}return null}var VRMSpringBoneManager=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 set=new Set;return this._joints.forEach(springBone=>{springBone.colliderGroups.forEach(colliderGroup=>{set.add(colliderGroup)})}),Array.from(set)}get colliders(){let set=new Set;return this.colliderGroups.forEach(colliderGroup=>{colliderGroup.colliders.forEach(collider=>{set.add(collider)})}),Array.from(set)}addJoint(joint){this._joints.add(joint);let objectSet=this._objectSpringBonesMap.get(joint.bone);objectSet??(objectSet=new Set,this._objectSpringBonesMap.set(joint.bone,objectSet)),objectSet.add(joint),this._isSortedJointsDirty=!0}addSpringBone(joint){console.warn(`VRMSpringBoneManager: addSpringBone() is deprecated. use addJoint() instead.`),this.addJoint(joint)}deleteJoint(joint){this._joints.delete(joint);let objectSet=this._objectSpringBonesMap.get(joint.bone);objectSet.delete(joint),this._isSortedJointsDirty=!0}deleteSpringBone(joint){console.warn(`VRMSpringBoneManager: deleteSpringBone() is deprecated. use deleteJoint() instead.`),this.deleteJoint(joint)}setInitState(){this._sortJoints();for(let i$1=0;i$1{var _a$2,_b;return((_b=(_a$2=this._objectSpringBonesMap.get(object))?.size)??0)>0?!0:(this._ancestors.push(object),!1)})),this._isSortedJointsDirty=!1}_insertJointSort(springBone,springBonesTried,springBonesDone,springBoneOrder,ancestors){if(springBonesDone.has(springBone))return;if(springBonesTried.has(springBone)){this._hasWarnedCircularDependency||(console.warn(`VRMSpringBoneManager: Circular dependency detected`),this._hasWarnedCircularDependency=!0);return}springBonesTried.add(springBone);let depObjects=springBone.dependencies;for(let depObject of depObjects){let encounteredSpringBone=!1,ancestor=null;traverseAncestorsFromRoot2(depObject,depObjectAncestor=>{let objectSet=this._objectSpringBonesMap.get(depObjectAncestor);if(objectSet)for(let depSpringBone of objectSet)encounteredSpringBone=!0,this._insertJointSort(depSpringBone,springBonesTried,springBonesDone,springBoneOrder,ancestors);else encounteredSpringBone||(ancestor=depObjectAncestor)}),ancestor&&ancestors.add(ancestor)}springBoneOrder.push(springBone),springBonesDone.add(springBone)}_relevantChildrenUpdated(object){var _a$2,_b;return((_b=(_a$2=this._objectSpringBonesMap.get(object))?.size)??0)>0?!0:(object.updateWorldMatrix(!1,!1),!1)}},EXTENSION_NAME_EXTENDED_COLLIDER=`VRMC_springBone_extended_collider`,POSSIBLE_SPEC_VERSIONS8=new Set([`1.0`,`1.0-beta`]),POSSIBLE_SPEC_VERSIONS_EXTENDED_COLLIDERS=new Set([`1.0`]),_VRMSpringBoneLoaderPlugin=class _VRMSpringBoneLoaderPlugin2{get name(){return _VRMSpringBoneLoaderPlugin2.EXTENSION_NAME}constructor(parser,options$1){var _a$2;this.parser=parser,this.jointHelperRoot=options$1?.jointHelperRoot,this.colliderHelperRoot=options$1?.colliderHelperRoot,this.useExtendedColliders=(_a$2=options$1?.useExtendedColliders)??!0}afterRoot(gltf){return __async7(this,null,function*(){gltf.userData.vrmSpringBoneManager=yield this._import(gltf)})}_import(gltf){return __async7(this,null,function*(){let v1Result=yield this._v1Import(gltf);if(v1Result!=null)return v1Result;let v0Result=yield this._v0Import(gltf);return v0Result??null})}_v1Import(gltf){return __async7(this,null,function*(){var _a$2,_b,_c,_d,_e$2;let json=gltf.parser.json,isSpringBoneUsed=(_a$2=json.extensionsUsed)?.indexOf(_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME)!==-1;if(!isSpringBoneUsed)return null;let manager=new VRMSpringBoneManager,threeNodes=yield gltf.parser.getDependencies(`node`),extension$1=(_b=json.extensions)?.[_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME];if(!extension$1)return null;let specVersion=extension$1.specVersion;if(!POSSIBLE_SPEC_VERSIONS8.has(specVersion))return console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME} specVersion "${specVersion}"`),null;let colliders=(_c=extension$1.colliders)?.map((schemaCollider,iCollider)=>{var _a2,_b2,_c2,_d2,_e2,_f,_g,_h,_i$1,_j,_k,_l,_m,_n$1,_o;let node$1=threeNodes[schemaCollider.node];if(node$1==null)return console.warn(`VRMSpringBoneLoaderPlugin: The collider #${iCollider} attempted to use the node #${schemaCollider.node} but not found`),null;let schemaShape=schemaCollider.shape,schemaExCollider=(_a2=schemaCollider.extensions)?.[EXTENSION_NAME_EXTENDED_COLLIDER];if(this.useExtendedColliders&&schemaExCollider!=null){let specVersionExCollider=schemaExCollider.specVersion;if(!POSSIBLE_SPEC_VERSIONS_EXTENDED_COLLIDERS.has(specVersionExCollider))console.warn(`VRMSpringBoneLoaderPlugin: Unknown ${EXTENSION_NAME_EXTENDED_COLLIDER} specVersion "${specVersionExCollider}". Fallbacking to the ${_VRMSpringBoneLoaderPlugin2.EXTENSION_NAME} definition`);else{let schemaExShape=schemaExCollider.shape;if(schemaExShape.sphere)return this._importSphereCollider(node$1,{offset:new Vector3().fromArray((_b2=schemaExShape.sphere.offset)??[0,0,0]),radius:(_c2=schemaExShape.sphere.radius)??0,inside:(_d2=schemaExShape.sphere.inside)??!1});if(schemaExShape.capsule)return this._importCapsuleCollider(node$1,{offset:new Vector3().fromArray((_e2=schemaExShape.capsule.offset)??[0,0,0]),radius:(_f=schemaExShape.capsule.radius)??0,tail:new Vector3().fromArray((_g=schemaExShape.capsule.tail)??[0,0,0]),inside:(_h=schemaExShape.capsule.inside)??!1});if(schemaExShape.plane)return this._importPlaneCollider(node$1,{offset:new Vector3().fromArray((_i$1=schemaExShape.plane.offset)??[0,0,0]),normal:new Vector3().fromArray((_j=schemaExShape.plane.normal)??[0,0,1])})}}if(schemaShape.sphere)return this._importSphereCollider(node$1,{offset:new Vector3().fromArray((_k=schemaShape.sphere.offset)??[0,0,0]),radius:(_l=schemaShape.sphere.radius)??0,inside:!1});if(schemaShape.capsule)return this._importCapsuleCollider(node$1,{offset:new Vector3().fromArray((_m=schemaShape.capsule.offset)??[0,0,0]),radius:(_n$1=schemaShape.capsule.radius)??0,tail:new Vector3().fromArray((_o=schemaShape.capsule.tail)??[0,0,0]),inside:!1});throw Error(`VRMSpringBoneLoaderPlugin: The collider #${iCollider} has no valid shape`)}),colliderGroups=(_d=extension$1.colliderGroups)?.map((schemaColliderGroup,iColliderGroup)=>{var _a2;let cols=((_a2=schemaColliderGroup.colliders)??[]).flatMap(iCollider=>{let col=colliders?.[iCollider];return col??(console.warn(`VRMSpringBoneLoaderPlugin: The colliderGroup #${iColliderGroup} attempted to use a collider #${iCollider} but not found`),[])});return{colliders:cols,name:schemaColliderGroup.name}});return(_e$2=extension$1.springs)==null||_e$2.forEach((schemaSpring,iSpring)=>{var _a2;let schemaJoints=schemaSpring.joints,colliderGroupsForSpring=(_a2=schemaSpring.colliderGroups)?.map(iColliderGroup=>{let group=colliderGroups?.[iColliderGroup];if(group==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${iSpring} attempted to use a colliderGroup ${iColliderGroup} but not found`);return group}),center=schemaSpring.center==null?void 0:threeNodes[schemaSpring.center],prevSchemaJoint;schemaJoints.forEach(schemaJoint=>{if(prevSchemaJoint){let nodeIndex=prevSchemaJoint.node,node$1=threeNodes[nodeIndex],childIndex=schemaJoint.node,child=threeNodes[childIndex],setting={hitRadius:prevSchemaJoint.hitRadius,dragForce:prevSchemaJoint.dragForce,gravityPower:prevSchemaJoint.gravityPower,stiffness:prevSchemaJoint.stiffness,gravityDir:prevSchemaJoint.gravityDir==null?void 0:new Vector3().fromArray(prevSchemaJoint.gravityDir)},joint=this._importJoint(node$1,child,setting,colliderGroupsForSpring);center&&(joint.center=center),manager.addJoint(joint)}prevSchemaJoint=schemaJoint})}),manager.setInitState(),manager})}_v0Import(gltf){return __async7(this,null,function*(){var _a$2,_b,_c;let json=gltf.parser.json,isVRMUsed=(_a$2=json.extensionsUsed)?.indexOf(`VRM`)!==-1;if(!isVRMUsed)return null;let extension$1=(_b=json.extensions)?.VRM,schemaSecondaryAnimation=extension$1?.secondaryAnimation;if(!schemaSecondaryAnimation)return null;let schemaBoneGroups=schemaSecondaryAnimation?.boneGroups;if(!schemaBoneGroups)return null;let manager=new VRMSpringBoneManager,threeNodes=yield gltf.parser.getDependencies(`node`),colliderGroups=(_c=schemaSecondaryAnimation.colliderGroups)?.map(schemaColliderGroup=>{var _a2;let node$1=threeNodes[schemaColliderGroup.node],colliders=((_a2=schemaColliderGroup.colliders)??[]).map((schemaCollider,iCollider)=>{var _a3,_b2,_c2;let offset$1=new Vector3(0,0,0);return schemaCollider.offset&&offset$1.set((_a3=schemaCollider.offset.x)??0,(_b2=schemaCollider.offset.y)??0,schemaCollider.offset.z?-schemaCollider.offset.z:0),this._importSphereCollider(node$1,{offset:offset$1,radius:(_c2=schemaCollider.radius)??0,inside:!1})});return{colliders}});return schemaBoneGroups?.forEach((schemaBoneGroup,iBoneGroup)=>{let rootIndices=schemaBoneGroup.bones;rootIndices&&rootIndices.forEach(rootIndex=>{var _a2,_b2,_c2,_d;let root$3=threeNodes[rootIndex],gravityDir=new Vector3;schemaBoneGroup.gravityDir?gravityDir.set((_a2=schemaBoneGroup.gravityDir.x)??0,(_b2=schemaBoneGroup.gravityDir.y)??0,(_c2=schemaBoneGroup.gravityDir.z)??0):gravityDir.set(0,-1,0);let center=schemaBoneGroup.center==null?void 0:threeNodes[schemaBoneGroup.center],setting={hitRadius:schemaBoneGroup.hitRadius,dragForce:schemaBoneGroup.dragForce,gravityPower:schemaBoneGroup.gravityPower,stiffness:schemaBoneGroup.stiffiness,gravityDir},colliderGroupsForSpring=(_d=schemaBoneGroup.colliderGroups)?.map(iColliderGroup=>{let group=colliderGroups?.[iColliderGroup];if(group==null)throw Error(`VRMSpringBoneLoaderPlugin: The spring #${iBoneGroup} attempted to use a colliderGroup ${iColliderGroup} but not found`);return group});root$3.traverse(node$1=>{var _a3;let child=(_a3=node$1.children[0])??null,joint=this._importJoint(node$1,child,setting,colliderGroupsForSpring);center&&(joint.center=center),manager.addJoint(joint)})})}),gltf.scene.updateMatrixWorld(),manager.setInitState(),manager})}_importJoint(node$1,child,setting,colliderGroupsForSpring){let springBone=new VRMSpringBoneJoint(node$1,child,setting,colliderGroupsForSpring);if(this.jointHelperRoot){let helper=new VRMSpringBoneJointHelper(springBone);this.jointHelperRoot.add(helper),helper.renderOrder=this.jointHelperRoot.renderOrder}return springBone}_importSphereCollider(destination,params){let shape=new VRMSpringBoneColliderShapeSphere(params),collider=new VRMSpringBoneCollider(shape);if(destination.add(collider),this.colliderHelperRoot){let helper=new VRMSpringBoneColliderHelper(collider);this.colliderHelperRoot.add(helper),helper.renderOrder=this.colliderHelperRoot.renderOrder}return collider}_importCapsuleCollider(destination,params){let shape=new VRMSpringBoneColliderShapeCapsule(params),collider=new VRMSpringBoneCollider(shape);if(destination.add(collider),this.colliderHelperRoot){let helper=new VRMSpringBoneColliderHelper(collider);this.colliderHelperRoot.add(helper),helper.renderOrder=this.colliderHelperRoot.renderOrder}return collider}_importPlaneCollider(destination,params){let shape=new VRMSpringBoneColliderShapePlane(params),collider=new VRMSpringBoneCollider(shape);if(destination.add(collider),this.colliderHelperRoot){let helper=new VRMSpringBoneColliderHelper(collider);this.colliderHelperRoot.add(helper),helper.renderOrder=this.colliderHelperRoot.renderOrder}return collider}};_VRMSpringBoneLoaderPlugin.EXTENSION_NAME=`VRMC_springBone`;var VRMSpringBoneLoaderPlugin=_VRMSpringBoneLoaderPlugin,VRMLoaderPlugin=class{get name(){return`VRMLoaderPlugin`}constructor(parser,options$1){var _a$2,_b,_c,_d,_e$2,_f,_g,_h,_i$1,_j;this.parser=parser;let helperRoot=options$1?.helperRoot,autoUpdateHumanBones=options$1?.autoUpdateHumanBones;this.expressionPlugin=(_a$2=options$1?.expressionPlugin)??new VRMExpressionLoaderPlugin(parser),this.firstPersonPlugin=(_b=options$1?.firstPersonPlugin)??new VRMFirstPersonLoaderPlugin(parser),this.humanoidPlugin=(_c=options$1?.humanoidPlugin)??new VRMHumanoidLoaderPlugin(parser,{helperRoot,autoUpdateHumanBones}),this.lookAtPlugin=(_d=options$1?.lookAtPlugin)??new VRMLookAtLoaderPlugin(parser,{helperRoot}),this.metaPlugin=(_e$2=options$1?.metaPlugin)??new VRMMetaLoaderPlugin(parser),this.mtoonMaterialPlugin=(_f=options$1?.mtoonMaterialPlugin)??new MToonMaterialLoaderPlugin(parser),this.materialsHDREmissiveMultiplierPlugin=(_g=options$1?.materialsHDREmissiveMultiplierPlugin)??new VRMMaterialsHDREmissiveMultiplierLoaderPlugin(parser),this.materialsV0CompatPlugin=(_h=options$1?.materialsV0CompatPlugin)??new VRMMaterialsV0CompatPlugin(parser),this.springBonePlugin=(_i$1=options$1?.springBonePlugin)??new VRMSpringBoneLoaderPlugin(parser,{colliderHelperRoot:helperRoot,jointHelperRoot:helperRoot}),this.nodeConstraintPlugin=(_j=options$1?.nodeConstraintPlugin)??new VRMNodeConstraintLoaderPlugin(parser,{helperRoot})}beforeRoot(){return __async(this,null,function*(){yield this.materialsV0CompatPlugin.beforeRoot(),yield this.mtoonMaterialPlugin.beforeRoot()})}loadMesh(meshIndex){return __async(this,null,function*(){return yield this.mtoonMaterialPlugin.loadMesh(meshIndex)})}getMaterialType(materialIndex){let mtoonType=this.mtoonMaterialPlugin.getMaterialType(materialIndex);return mtoonType??null}extendMaterialParams(materialIndex,materialParams){return __async(this,null,function*(){yield this.materialsHDREmissiveMultiplierPlugin.extendMaterialParams(materialIndex,materialParams),yield this.mtoonMaterialPlugin.extendMaterialParams(materialIndex,materialParams)})}afterRoot(gltf){return __async(this,null,function*(){yield this.metaPlugin.afterRoot(gltf),yield this.humanoidPlugin.afterRoot(gltf),yield this.expressionPlugin.afterRoot(gltf),yield this.lookAtPlugin.afterRoot(gltf),yield this.firstPersonPlugin.afterRoot(gltf),yield this.springBonePlugin.afterRoot(gltf),yield this.nodeConstraintPlugin.afterRoot(gltf),yield this.mtoonMaterialPlugin.afterRoot(gltf);let meta=gltf.userData.vrmMeta,humanoid=gltf.userData.vrmHumanoid;if(meta&&humanoid){let vrm=new VRM({scene:gltf.scene,expressionManager:gltf.userData.vrmExpressionManager,firstPerson:gltf.userData.vrmFirstPerson,humanoid,lookAt:gltf.userData.vrmLookAt,meta,materials:gltf.userData.vrmMToonMaterials,springBoneManager:gltf.userData.vrmSpringBoneManager,nodeConstraintManager:gltf.userData.vrmNodeConstraintManager});gltf.userData.vrm=vrm}})}};function collectMeshes(scene){let meshes=new Set;return scene.traverse(obj=>{if(!obj.isMesh)return;let mesh=obj;meshes.add(mesh)}),meshes}function combineMorph(positionAttributes,binds,morphTargetsRelative){if(binds.size===1){let bind=binds.values().next().value;if(bind.weight===1)return positionAttributes[bind.index]}let newArray=new Float32Array(positionAttributes[0].count*3),weightSum=0;if(morphTargetsRelative)weightSum=1;else for(let bind of binds)weightSum+=bind.weight;for(let bind of binds){let src=positionAttributes[bind.index],weight=bind.weight/weightSum;for(let i$1=0;i$1boneDispatcher.getOrCreate(bone)).join(`,`),key$1=`${skinIndexKey};${skeletonKey};${bonesKey}`,newSkinIndexAttr=cache$1.get(key$1);newSkinIndexAttr??(newSkinIndexAttr=skinIndexAttr.clone(),remapSkinIndexAttribute(newSkinIndexAttr,bones,newBones),cache$1.set(key$1,newSkinIndexAttr)),mesh.geometry.setAttribute(`skinIndex`,newSkinIndexAttr)}for(let mesh of meshes)mesh.bind(newSkeleton,new Matrix4)}}function collectSkinnedMeshes(scene){let skinnedMeshes=new Set;return scene.traverse(obj=>{if(!obj.isSkinnedMesh)return;let skinnedMesh=obj;skinnedMeshes.add(skinnedMesh)}),skinnedMeshes}function listUsedIndices(skinIndexAttr,skinWeightAttr){let usedIndices=new Set;for(let i$1=0;i$1tolerance)return!1}return!0}var ObjectIndexDispatcher=class{constructor(){this._objectIndexMap=new Map,this._index=0}get(obj){return this._objectIndexMap.get(obj)}getOrCreate(obj){let index$1=this._objectIndexMap.get(obj);return index$1??(index$1=this._index,this._objectIndexMap.set(obj,index$1),this._index++),index$1}};function shallowCloneBufferGeometry(geometry){var _a$2,_b,_c,_d;let clone$2=new BufferGeometry;clone$2.name=geometry.name,clone$2.setIndex(geometry.index);for(let[name$2,attribute]of Object.entries(geometry.attributes))clone$2.setAttribute(name$2,attribute);for(let[key$1,morphAttributes]of Object.entries(geometry.morphAttributes)){let attributeName=key$1;clone$2.morphAttributes[attributeName]=morphAttributes.concat()}clone$2.morphTargetsRelative=geometry.morphTargetsRelative,clone$2.groups=[];for(let group of geometry.groups)clone$2.addGroup(group.start,group.count,group.materialIndex);return clone$2.boundingSphere=(_b=(_a$2=geometry.boundingSphere)?.clone())??null,clone$2.boundingBox=(_d=(_c=geometry.boundingBox)?.clone())??null,clone$2.drawRange.start=geometry.drawRange.start,clone$2.drawRange.count=geometry.drawRange.count,clone$2.userData=geometry.userData,clone$2}function disposeMaterial(material){if(Object.values(material).forEach(value$1=>{if(value$1?.isTexture){let texture=value$1;texture.dispose()}}),material.isShaderMaterial){let uniforms=material.uniforms;uniforms&&Object.values(uniforms).forEach(uniform=>{let value$1=uniform.value;if(value$1?.isTexture){let texture=value$1;texture.dispose()}})}material.dispose()}function dispose(object3D){let geometry=object3D.geometry;geometry&&geometry.dispose();let skeleton=object3D.skeleton;skeleton&&skeleton.dispose();let material=object3D.material;material&&(Array.isArray(material)?material.forEach(material2=>disposeMaterial(material2)):material&&disposeMaterial(material))}function deepDispose(object3D){object3D.traverse(dispose)}function removeUnnecessaryJoints(root$3,options$1){var _a$2,_b;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 experimentalSameBoneCounts=(_a$2=options$1?.experimentalSameBoneCounts)??!1,skinnedMeshes=[];root$3.traverse(obj=>{obj.type===`SkinnedMesh`&&skinnedMeshes.push(obj)});let attributeToBoneIndexMapMap=new Map,maxBones=0;for(let mesh of skinnedMeshes){let geometry=mesh.geometry,attribute=geometry.getAttribute(`skinIndex`);if(attributeToBoneIndexMapMap.has(attribute))continue;let oldToNew=new Map,newToOld=new Map;for(let i$1=0;i$1{var _a$2,_b,_c,_d;if(!obj.isMesh)return;let mesh=obj,geometry=mesh.geometry,originalIndex=geometry.index;if(originalIndex==null)return;let newGeometryAlreadyExisted=geometryMap.get(geometry);if(newGeometryAlreadyExisted!=null){mesh.geometry=newGeometryAlreadyExisted;return}let vertexCount=Object.values(geometry.attributes)[0].count,vertexInUse=Array(vertexCount),verticesUsed=0,originalIndexArray=originalIndex.array;for(let i$1=0;i$1{newGeometry.addGroup(group.start,group.count,group.materialIndex)}),newGeometry.boundingBox=(_b=(_a$2=geometry.boundingBox)?.clone())??null,newGeometry.boundingSphere=(_d=(_c=geometry.boundingSphere)?.clone())??null,newGeometry.setDrawRange(geometry.drawRange.start,geometry.drawRange.count),newGeometry.userData=geometry.userData,geometryMap.set(geometry,newGeometry);{let originalIndexArray2=originalIndex.array,newIndexArray=new originalIndexArray2.constructor(originalIndexArray2.length);for(let i$1=0;i$1{let originalAttribute=geometry.attributes[attributeName];if(originalAttribute.isInterleavedBufferAttribute)throw Error(`removeUnnecessaryVertices: InterleavedBufferAttribute is not supported`);let originalAttributeArray=originalAttribute.array,{itemSize,normalized}=originalAttribute,newAttributeArray=new originalAttributeArray.constructor(newIndexOriginalIndexMap.length*itemSize);newIndexOriginalIndexMap.forEach((originalIndex2,i$1)=>{for(let j$1=0;j$1{for(let j$1=0;j$1v$1===0),newGeometry.morphAttributes[attributeName][iMorph]=new BufferAttribute(newAttributeArray,itemSize,normalized)}}isNullMorph&&(newGeometry.morphAttributes={}),mesh.geometry=newGeometry}),Array.from(geometryMap.keys()).forEach(originalGeometry=>{originalGeometry.dispose()})}function rotateVRM0(vrm){var _a$2;(_a$2=vrm.meta)?.metaVersion===`0`&&(vrm.scene.rotation.y=Math.PI)}var VRMUtils=class{constructor(){}};VRMUtils.combineMorphs=combineMorphs,VRMUtils.combineSkeletons=combineSkeletons,VRMUtils.deepDispose=deepDispose,VRMUtils.removeUnnecessaryJoints=removeUnnecessaryJoints,VRMUtils.removeUnnecessaryVertices=removeUnnecessaryVertices,VRMUtils.rotateVRM0=rotateVRM0; /*! * @pixiv/three-vrm-core v3.4.1 * The implementation of core features of VRM, for @pixiv/three-vrm @@ -4976,17 +4976,17 @@ void main() { * https://github.com/pixiv/three-vrm/blob/release/LICENSE */ function toTrianglesDrawMode(geometry,drawMode){if(drawMode===TrianglesDrawMode)return console.warn(`THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles.`),geometry;if(drawMode===TriangleFanDrawMode||drawMode===TriangleStripDrawMode){let index$1=geometry.getIndex();if(index$1===null){let indices=[],position$2=geometry.getAttribute(`position`);if(position$2!==void 0){for(let i$1=0;i$1=2.0 are supported.`));return}let parser=new GLTFParser(json,{path:path||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});parser.fileLoader.setRequestHeader(this.requestHeader);for(let i$1=0;i$1=0&&plugins[extensionName]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+extensionName+`".`)}}parser.setExtensions(extensions),parser.setPlugins(plugins),parser.parse(onLoad,onError)}parseAsync(data$10,path){let scope=this;return new Promise(function(resolve$1,reject){scope.parse(data$10,path,resolve$1,reject)})}};function GLTFRegistry(){let objects={};return{get:function(key$1){return objects[key$1]},add:function(key$1,object){objects[key$1]=object},remove:function(key$1){delete objects[key$1]},removeAll:function(){objects={}}}}const EXTENSIONS={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 GLTFLightsExtension=class{constructor(parser){this.parser=parser,this.name=EXTENSIONS.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let parser=this.parser,nodeDefs=this.parser.json.nodes||[];for(let nodeIndex=0,nodeLength=nodeDefs.length;nodeIndex=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return parser.loadTextureImage(textureIndex,extension$1.source,loader$1)}},GLTFTextureWebPExtension=class{constructor(parser){this.parser=parser,this.name=EXTENSIONS.EXT_TEXTURE_WEBP}loadTexture(textureIndex){let name$2=this.name,parser=this.parser,json=parser.json,textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[name$2])return null;let extension$1=textureDef.extensions[name$2],source=json.images[extension$1.source],loader$1=parser.textureLoader;if(source.uri){let handler=parser.options.manager.getHandler(source.uri);handler!==null&&(loader$1=handler)}return parser.loadTextureImage(textureIndex,extension$1.source,loader$1)}},GLTFTextureAVIFExtension=class{constructor(parser){this.parser=parser,this.name=EXTENSIONS.EXT_TEXTURE_AVIF}loadTexture(textureIndex){let name$2=this.name,parser=this.parser,json=parser.json,textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[name$2])return null;let extension$1=textureDef.extensions[name$2],source=json.images[extension$1.source],loader$1=parser.textureLoader;if(source.uri){let handler=parser.options.manager.getHandler(source.uri);handler!==null&&(loader$1=handler)}return parser.loadTextureImage(textureIndex,extension$1.source,loader$1)}},GLTFMeshoptCompression=class{constructor(parser){this.name=EXTENSIONS.EXT_MESHOPT_COMPRESSION,this.parser=parser}loadBufferView(index$1){let json=this.parser.json,bufferView=json.bufferViews[index$1];if(bufferView.extensions&&bufferView.extensions[this.name]){let extensionDef=bufferView.extensions[this.name],buffer$1=this.parser.getDependency(`buffer`,extensionDef.buffer),decoder=this.parser.options.meshoptDecoder;if(!decoder||!decoder.supported){if(json.extensionsRequired&&json.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return buffer$1.then(function(res){let byteOffset=extensionDef.byteOffset||0,byteLength=extensionDef.byteLength||0,count$1=extensionDef.count,stride=extensionDef.byteStride,source=new Uint8Array(res,byteOffset,byteLength);return decoder.decodeGltfBufferAsync?decoder.decodeGltfBufferAsync(count$1,stride,source,extensionDef.mode,extensionDef.filter).then(function(res$1){return res$1.buffer}):decoder.ready.then(function(){let result=new ArrayBuffer(count$1*stride);return decoder.decodeGltfBuffer(new Uint8Array(result),count$1,stride,source,extensionDef.mode,extensionDef.filter),result})})}else return null}},GLTFMeshGpuInstancing=class{constructor(parser){this.name=EXTENSIONS.EXT_MESH_GPU_INSTANCING,this.parser=parser}createNodeMesh(nodeIndex){let json=this.parser.json,nodeDef=json.nodes[nodeIndex];if(!nodeDef.extensions||!nodeDef.extensions[this.name]||nodeDef.mesh===void 0)return null;let meshDef=json.meshes[nodeDef.mesh];for(let primitive of meshDef.primitives)if(primitive.mode!==WEBGL_CONSTANTS.TRIANGLES&&primitive.mode!==WEBGL_CONSTANTS.TRIANGLE_STRIP&&primitive.mode!==WEBGL_CONSTANTS.TRIANGLE_FAN&&primitive.mode!==void 0)return null;let extensionDef=nodeDef.extensions[this.name],attributesDef=extensionDef.attributes,pending=[],attributes={};for(let key$1 in attributesDef)pending.push(this.parser.getDependency(`accessor`,attributesDef[key$1]).then(accessor=>(attributes[key$1]=accessor,attributes[key$1])));return pending.length<1?null:(pending.push(this.parser.createNodeMesh(nodeIndex)),Promise.all(pending).then(results=>{let nodeObject=results.pop(),meshes=nodeObject.isGroup?nodeObject.children:[nodeObject],count$1=results[0].count,instancedMeshes=[];for(let mesh of meshes){let m$2=new Matrix4,p$5=new Vector3,q$1=new Quaternion,s$1=new Vector3(1,1,1),instancedMesh=new InstancedMesh(mesh.geometry,mesh.material,count$1);for(let i$1=0;i$10||uri.search(/^data\:image\/jpeg/)===0?`image/jpeg`:uri.search(/\.webp($|\?)/i)>0||uri.search(/^data\:image\/webp/)===0?`image/webp`:uri.search(/\.ktx2($|\?)/i)>0||uri.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}const _identityMatrix=new Matrix4;var GLTFParser=class{constructor(json={},options$1={}){this.json=json,this.extensions={},this.plugins={},this.options=options$1,this.cache=new GLTFRegistry,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 isSafari=!1,safariVersion=-1,isFirefox=!1,firefoxVersion=-1;if(typeof navigator<`u`){let userAgent=navigator.userAgent;isSafari=/^((?!chrome|android).)*safari/i.test(userAgent)===!0;let safariMatch=userAgent.match(/Version\/(\d+)/);safariVersion=isSafari&&safariMatch?parseInt(safariMatch[1],10):-1,isFirefox=userAgent.indexOf(`Firefox`)>-1,firefoxVersion=isFirefox?userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>`u`||isSafari&&safariVersion<17||isFirefox&&firefoxVersion<98?this.textureLoader=new TextureLoader(this.options.manager):this.textureLoader=new ImageBitmapLoader(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new FileLoader(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(extensions){this.extensions=extensions}setPlugins(plugins){this.plugins=plugins}parse(onLoad,onError){let parser=this,json=this.json,extensions=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(ext){return ext._markDefs&&ext._markDefs()}),Promise.all(this._invokeAll(function(ext){return ext.beforeRoot&&ext.beforeRoot()})).then(function(){return Promise.all([parser.getDependencies(`scene`),parser.getDependencies(`animation`),parser.getDependencies(`camera`)])}).then(function(dependencies){let result={scene:dependencies[0][json.scene||0],scenes:dependencies[0],animations:dependencies[1],cameras:dependencies[2],asset:json.asset,parser,userData:{}};return addUnknownExtensionsToUserData(extensions,result,json),assignExtrasToUserData(result,json),Promise.all(parser._invokeAll(function(ext){return ext.afterRoot&&ext.afterRoot(result)})).then(function(){for(let scene of result.scenes)scene.updateMatrixWorld();onLoad(result)})}).catch(onError)}_markDefs(){let nodeDefs=this.json.nodes||[],skinDefs=this.json.skins||[],meshDefs=this.json.meshes||[];for(let skinIndex=0,skinLength=skinDefs.length;skinIndex{let mappings=this.associations.get(original);mappings!=null&&this.associations.set(clone$2,mappings);for(let[i$1,child]of original.children.entries())updateMappings(child,clone$2.children[i$1])};return updateMappings(object,ref$1),ref$1.name+=`_instance_`+ cache$1.uses[index$1]++,ref$1}_invokeOne(func){let extensions=Object.values(this.plugins);extensions.push(this);for(let i$1=0;i$1=2&&bufferAttribute.setY(index$1,sparseValues[i$1*itemSize+1]),itemSize>=3&&bufferAttribute.setZ(index$1,sparseValues[i$1*itemSize+2]),itemSize>=4&&bufferAttribute.setW(index$1,sparseValues[i$1*itemSize+3]),itemSize>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}bufferAttribute.normalized=normalized}return bufferAttribute})}loadTexture(textureIndex){let json=this.json,options$1=this.options,textureDef=json.textures[textureIndex],sourceIndex=textureDef.source,sourceDef=json.images[sourceIndex],loader$1=this.textureLoader;if(sourceDef.uri){let handler=options$1.manager.getHandler(sourceDef.uri);handler!==null&&(loader$1=handler)}return this.loadTextureImage(textureIndex,sourceIndex,loader$1)}loadTextureImage(textureIndex,sourceIndex,loader$1){let parser=this,json=this.json,textureDef=json.textures[textureIndex],sourceDef=json.images[sourceIndex],cacheKey=(sourceDef.uri||sourceDef.bufferView)+`:`+textureDef.sampler;if(this.textureCache[cacheKey])return this.textureCache[cacheKey];let promise=this.loadImageSource(sourceIndex,loader$1).then(function(texture){texture.flipY=!1,texture.name=textureDef.name||sourceDef.name||``,texture.name===``&&typeof sourceDef.uri==`string`&&sourceDef.uri.startsWith(`data:image/`)===!1&&(texture.name=sourceDef.uri);let samplers=json.samplers||{},sampler=samplers[textureDef.sampler]||{};return texture.magFilter=WEBGL_FILTERS[sampler.magFilter]||LinearFilter,texture.minFilter=WEBGL_FILTERS[sampler.minFilter]||LinearMipmapLinearFilter,texture.wrapS=WEBGL_WRAPPINGS[sampler.wrapS]||RepeatWrapping,texture.wrapT=WEBGL_WRAPPINGS[sampler.wrapT]||RepeatWrapping,texture.generateMipmaps=!texture.isCompressedTexture&&texture.minFilter!==NearestFilter&&texture.minFilter!==LinearFilter,parser.associations.set(texture,{textures:textureIndex}),texture}).catch(function(){return null});return this.textureCache[cacheKey]=promise,promise}loadImageSource(sourceIndex,loader$1){let parser=this,json=this.json,options$1=this.options;if(this.sourceCache[sourceIndex]!==void 0)return this.sourceCache[sourceIndex].then(texture=>texture.clone());let sourceDef=json.images[sourceIndex],URL$1=self.URL||self.webkitURL,sourceURI=sourceDef.uri||``,isObjectURL=!1;if(sourceDef.bufferView!==void 0)sourceURI=parser.getDependency(`bufferView`,sourceDef.bufferView).then(function(bufferView){isObjectURL=!0;let blob=new Blob([bufferView],{type:sourceDef.mimeType});return sourceURI=URL$1.createObjectURL(blob),sourceURI});else if(sourceDef.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+sourceIndex+` is missing URI and bufferView`);let promise=Promise.resolve(sourceURI).then(function(sourceURI$1){return new Promise(function(resolve$1,reject){let onLoad=resolve$1;loader$1.isImageBitmapLoader===!0&&(onLoad=function(imageBitmap){let texture=new Texture(imageBitmap);texture.needsUpdate=!0,resolve$1(texture)}),loader$1.load(LoaderUtils.resolveURL(sourceURI$1,options$1.path),onLoad,void 0,reject)})}).then(function(texture){return isObjectURL===!0&&URL$1.revokeObjectURL(sourceURI),assignExtrasToUserData(texture,sourceDef),texture.userData.mimeType=sourceDef.mimeType||getImageURIMimeType(sourceDef.uri),texture}).catch(function(error){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,sourceURI),error});return this.sourceCache[sourceIndex]=promise,promise}assignTexture(materialParams,mapName,mapDef,colorSpace){let parser=this;return this.getDependency(`texture`,mapDef.index).then(function(texture){if(!texture)return null;if(mapDef.texCoord!==void 0&&mapDef.texCoord>0&&(texture=texture.clone(),texture.channel=mapDef.texCoord),parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]){let transform$1=mapDef.extensions===void 0?void 0:mapDef.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM];if(transform$1){let gltfReference=parser.associations.get(texture);texture=parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM].extendTexture(texture,transform$1),parser.associations.set(texture,gltfReference)}}return colorSpace!==void 0&&(texture.colorSpace=colorSpace),materialParams[mapName]=texture,texture})}assignFinalMaterial(mesh){let geometry=mesh.geometry,material=mesh.material,useDerivativeTangents=geometry.attributes.tangent===void 0,useVertexColors=geometry.attributes.color!==void 0,useFlatShading=geometry.attributes.normal===void 0;if(mesh.isPoints){let cacheKey=`PointsMaterial:`+material.uuid,pointsMaterial=this.cache.get(cacheKey);pointsMaterial||(pointsMaterial=new PointsMaterial,Material.prototype.copy.call(pointsMaterial,material),pointsMaterial.color.copy(material.color),pointsMaterial.map=material.map,pointsMaterial.sizeAttenuation=!1,this.cache.add(cacheKey,pointsMaterial)),material=pointsMaterial}else if(mesh.isLine){let cacheKey=`LineBasicMaterial:`+material.uuid,lineMaterial=this.cache.get(cacheKey);lineMaterial||(lineMaterial=new LineBasicMaterial,Material.prototype.copy.call(lineMaterial,material),lineMaterial.color.copy(material.color),lineMaterial.map=material.map,this.cache.add(cacheKey,lineMaterial)),material=lineMaterial}if(useDerivativeTangents||useVertexColors||useFlatShading){let cacheKey=`ClonedMaterial:`+material.uuid+`:`;useDerivativeTangents&&(cacheKey+=`derivative-tangents:`),useVertexColors&&(cacheKey+=`vertex-colors:`),useFlatShading&&(cacheKey+=`flat-shading:`);let cachedMaterial=this.cache.get(cacheKey);cachedMaterial||(cachedMaterial=material.clone(),useVertexColors&&(cachedMaterial.vertexColors=!0),useFlatShading&&(cachedMaterial.flatShading=!0),useDerivativeTangents&&(cachedMaterial.normalScale&&(cachedMaterial.normalScale.y*=-1),cachedMaterial.clearcoatNormalScale&&(cachedMaterial.clearcoatNormalScale.y*=-1)),this.cache.add(cacheKey,cachedMaterial),this.associations.set(cachedMaterial,this.associations.get(material))),material=cachedMaterial}mesh.material=material}getMaterialType(){return MeshStandardMaterial}loadMaterial(materialIndex){let parser=this,json=this.json,extensions=this.extensions,materialDef=json.materials[materialIndex],materialType,materialParams={},materialExtensions=materialDef.extensions||{},pending=[];if(materialExtensions[EXTENSIONS.KHR_MATERIALS_UNLIT]){let kmuExtension=extensions[EXTENSIONS.KHR_MATERIALS_UNLIT];materialType=kmuExtension.getMaterialType(),pending.push(kmuExtension.extendParams(materialParams,materialDef,parser))}else{let metallicRoughness=materialDef.pbrMetallicRoughness||{};if(materialParams.color=new Color(1,1,1),materialParams.opacity=1,Array.isArray(metallicRoughness.baseColorFactor)){let array=metallicRoughness.baseColorFactor;materialParams.color.setRGB(array[0],array[1],array[2],LinearSRGBColorSpace),materialParams.opacity=array[3]}metallicRoughness.baseColorTexture!==void 0&&pending.push(parser.assignTexture(materialParams,`map`,metallicRoughness.baseColorTexture,SRGBColorSpace)),materialParams.metalness=metallicRoughness.metallicFactor===void 0?1:metallicRoughness.metallicFactor,materialParams.roughness=metallicRoughness.roughnessFactor===void 0?1:metallicRoughness.roughnessFactor,metallicRoughness.metallicRoughnessTexture!==void 0&&(pending.push(parser.assignTexture(materialParams,`metalnessMap`,metallicRoughness.metallicRoughnessTexture)),pending.push(parser.assignTexture(materialParams,`roughnessMap`,metallicRoughness.metallicRoughnessTexture))),materialType=this._invokeOne(function(ext){return ext.getMaterialType&&ext.getMaterialType(materialIndex)}),pending.push(Promise.all(this._invokeAll(function(ext){return ext.extendMaterialParams&&ext.extendMaterialParams(materialIndex,materialParams)})))}materialDef.doubleSided===!0&&(materialParams.side=DoubleSide);let alphaMode=materialDef.alphaMode||ALPHA_MODES.OPAQUE;if(alphaMode===ALPHA_MODES.BLEND?(materialParams.transparent=!0,materialParams.depthWrite=!1):(materialParams.transparent=!1,alphaMode===ALPHA_MODES.MASK&&(materialParams.alphaTest=materialDef.alphaCutoff===void 0?.5:materialDef.alphaCutoff)),materialDef.normalTexture!==void 0&&materialType!==MeshBasicMaterial&&(pending.push(parser.assignTexture(materialParams,`normalMap`,materialDef.normalTexture)),materialParams.normalScale=new Vector2(1,1),materialDef.normalTexture.scale!==void 0)){let scale$1=materialDef.normalTexture.scale;materialParams.normalScale.set(scale$1,scale$1)}if(materialDef.occlusionTexture!==void 0&&materialType!==MeshBasicMaterial&&(pending.push(parser.assignTexture(materialParams,`aoMap`,materialDef.occlusionTexture)),materialDef.occlusionTexture.strength!==void 0&&(materialParams.aoMapIntensity=materialDef.occlusionTexture.strength)),materialDef.emissiveFactor!==void 0&&materialType!==MeshBasicMaterial){let emissiveFactor=materialDef.emissiveFactor;materialParams.emissive=new Color().setRGB(emissiveFactor[0],emissiveFactor[1],emissiveFactor[2],LinearSRGBColorSpace)}return materialDef.emissiveTexture!==void 0&&materialType!==MeshBasicMaterial&&pending.push(parser.assignTexture(materialParams,`emissiveMap`,materialDef.emissiveTexture,SRGBColorSpace)),Promise.all(pending).then(function(){let material=new materialType(materialParams);return materialDef.name&&(material.name=materialDef.name),assignExtrasToUserData(material,materialDef),parser.associations.set(material,{materials:materialIndex}),materialDef.extensions&&addUnknownExtensionsToUserData(extensions,material,materialDef),material})}createUniqueName(originalName){let sanitizedName=PropertyBinding.sanitizeNodeName(originalName||``);return sanitizedName in this.nodeNamesUsed?sanitizedName+`_`+ ++this.nodeNamesUsed[sanitizedName]:(this.nodeNamesUsed[sanitizedName]=0,sanitizedName)}loadGeometries(primitives){let parser=this,extensions=this.extensions,cache$1=this.primitiveCache;function createDracoPrimitive(primitive){return extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(primitive,parser).then(function(geometry){return addPrimitiveAttributes(geometry,primitive,parser)})}let pending=[];for(let i$1=0,il=primitives.length;i$10&&updateMorphTargets(mesh,meshDef),mesh.name=parser.createUniqueName(meshDef.name||`mesh_`+meshIndex),assignExtrasToUserData(mesh,meshDef),primitive.extensions&&addUnknownExtensionsToUserData(extensions,mesh,primitive),parser.assignFinalMaterial(mesh),meshes.push(mesh)}for(let i$1=0,il=meshes.length;i$11?new Group:objects.length===1?objects[0]:new Object3D,node$1!==objects[0])for(let i$1=0,il=objects.length;i$11){let mapping=parser.associations.get(node$1);parser.associations.set(node$1,{...mapping})}return parser.associations.get(node$1).nodes=nodeIndex,node$1}),this.nodeCache[nodeIndex]}loadScene(sceneIndex){let extensions=this.extensions,sceneDef=this.json.scenes[sceneIndex],parser=this,scene=new Group;sceneDef.name&&(scene.name=parser.createUniqueName(sceneDef.name)),assignExtrasToUserData(scene,sceneDef),sceneDef.extensions&&addUnknownExtensionsToUserData(extensions,scene,sceneDef);let nodeIds=sceneDef.nodes||[],pending=[];for(let i$1=0,il=nodeIds.length;i$1{let reducedAssociations=new Map;for(let[key$1,value$1]of parser.associations)(key$1 instanceof Material||key$1 instanceof Texture)&&reducedAssociations.set(key$1,value$1);return node$1.traverse(node$2=>{let mappings=parser.associations.get(node$2);mappings!=null&&reducedAssociations.set(node$2,mappings)}),reducedAssociations};return parser.associations=reduceAssociations(scene),scene})}_createAnimationTracks(node$1,inputAccessor,outputAccessor,sampler,target$1){let tracks=[],targetName=node$1.name?node$1.name:node$1.uuid,targetNames=[];PATH_PROPERTIES[target$1.path]===PATH_PROPERTIES.weights?node$1.traverse(function(object){object.morphTargetInfluences&&targetNames.push(object.name?object.name:object.uuid)}):targetNames.push(targetName);let TypedKeyframeTrack;switch(PATH_PROPERTIES[target$1.path]){case PATH_PROPERTIES.weights:TypedKeyframeTrack=NumberKeyframeTrack;break;case PATH_PROPERTIES.rotation:TypedKeyframeTrack=QuaternionKeyframeTrack;break;case PATH_PROPERTIES.translation:case PATH_PROPERTIES.scale:TypedKeyframeTrack=VectorKeyframeTrack;break;default:switch(outputAccessor.itemSize){case 1:TypedKeyframeTrack=NumberKeyframeTrack;break;case 2:case 3:default:TypedKeyframeTrack=VectorKeyframeTrack;break}break}let interpolation=sampler.interpolation===void 0?InterpolateLinear:INTERPOLATION[sampler.interpolation],outputArray=this._getArrayFromAccessor(outputAccessor);for(let j$1=0,jl=targetNames.length;j$1new VRMLoaderPlugin(parser)),loader.register(parser=>new VRMAnimationLoaderPlugin(parser)),loader)}async function loadVRMAnimation(url){let loader$1=useVRMLoader(),gltf=await loader$1.loadAsync(url),userData=gltf.userData;if(!userData.vrmAnimations){console.warn(`No VRM animations found in the .vrma file`);return}if(userData.vrmAnimations.length===0){console.warn(`No VRM animations found in the .vrma file`);return}return userData.vrmAnimations[0]}async function clipFromVRMAnimation(vrm,animation){if(!vrm){console.warn(`No VRM found`);return}if(animation)return createVRMAnimationClip(animation,vrm)}function useBlink(){let isBlinking=ref(!1),blinkProgress=ref(0),timeSinceLastBlink=ref(0),BLINK_DURATION=.2,MIN_BLINK_INTERVAL=1,MAX_BLINK_INTERVAL=6,nextBlinkTime=ref(Math.random()*(MAX_BLINK_INTERVAL-MIN_BLINK_INTERVAL)+MIN_BLINK_INTERVAL);function update(vrm,delta){if(vrm?.expressionManager&&(timeSinceLastBlink.value+=delta,!isBlinking.value&&timeSinceLastBlink.value>=nextBlinkTime.value&&(isBlinking.value=!0,blinkProgress.value=0),isBlinking.value)){blinkProgress.value+=delta/BLINK_DURATION;let blinkValue=Math.sin(Math.PI*blinkProgress.value);vrm.expressionManager.setValue(`blink`,blinkValue),blinkProgress.value>=1&&(isBlinking.value=!1,timeSinceLastBlink.value=0,vrm.expressionManager.setValue(`blink`,0),nextBlinkTime.value=Math.random()*(MAX_BLINK_INTERVAL-MIN_BLINK_INTERVAL)+MIN_BLINK_INTERVAL)}}return{update}}function useIdleEyeSaccades(){let nextSaccadeAfter=-1,fixationTarget,timeSinceLastSaccade=0;function updateFixationTarget(){fixationTarget?fixationTarget.set(randFloat(-.25,.25),randFloat(-.2,.15),-.65):fixationTarget=new Vector3(randFloat(-.25,.25),randFloat(-.2,.15),-.65)}function update(vrm,delta){var _vrm$lookAt;!vrm?.expressionManager||!vrm.lookAt||(timeSinceLastSaccade>=nextSaccadeAfter?(updateFixationTarget(),timeSinceLastSaccade=0,nextSaccadeAfter=randomSaccadeInterval()/1e3):fixationTarget||updateFixationTarget(),vrm.lookAt.target||(vrm.lookAt.target=new Object3D),vrm.lookAt.target.position.lerp(fixationTarget,randFloat(.2,.5)),(_vrm$lookAt=vrm.lookAt)?.update(delta),timeSinceLastSaccade+=delta)}return{update}}async function loadVrm(model,options$1){let loader$1=useVRMLoader(),gltf=await loader$1.loadAsync(model,progress$1=>{var _options$1$onProgress;return options$1==null||(_options$1$onProgress=options$1.onProgress)==null?void 0:_options$1$onProgress.call(options$1,progress$1)}),userData=gltf.userData;if(!userData.vrm)return;let _vrm=userData.vrm;if(VRMUtils.removeUnnecessaryVertices(_vrm.scene),VRMUtils.combineSkeletons(_vrm.scene),_vrm.scene.traverse(object=>{object.frustumCulled=!1}),options$1?.lookAt&&_vrm.lookAt){let lookAtQuatProxy=new VRMLookAtQuaternionProxy(_vrm.lookAt);lookAtQuatProxy.name=`lookAtQuaternionProxy`,_vrm.scene.add(lookAtQuatProxy)}return options$1?.scene&&options$1.scene.add(_vrm.scene),options$1?.position&&_vrm.scene.position.set(...options$1.position),_vrm}function useVRMEmote(vrm){let currentEmotion=ref(null),isTransitioning=ref(!1),transitionProgress=ref(0),currentExpressionValues=ref(new Map),targetExpressionValues=ref(new Map),resetTimeout=ref(),lerp$3=(start,end,t)=>start+(end-start)*t,easeInOutCubic=t=>t<.5?4*t*t*t:1-(-2*t+2)**3/2,emotionStates=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}]]),clearResetTimeout=()=>{resetTimeout.value&&(clearTimeout(resetTimeout.value),resetTimeout.value=void 0)},setEmotion=emotionName=>{if(clearResetTimeout(),!emotionStates.has(emotionName)){console.warn(`Emotion ${emotionName} not found`);return}let emotionState=emotionStates.get(emotionName);if(currentEmotion.value=emotionName,isTransitioning.value=!0,transitionProgress.value=0,vrm.expressionManager){let expressionNames=Object.keys(vrm.expressionManager.expressionMap);for(let name$2 of expressionNames)vrm.expressionManager.setValue(name$2,0)}currentExpressionValues.value.clear(),targetExpressionValues.value.clear();for(let expr of emotionState.expression||[]){var _vrm$expressionManage;let currentValue=(_vrm$expressionManage=vrm.expressionManager)?.getValue(expr.name)||0;currentExpressionValues.value.set(expr.name,currentValue),targetExpressionValues.value.set(expr.name,expr.value)}},setEmotionWithResetAfter=(emotionName,ms)=>{clearResetTimeout(),setEmotion(emotionName),resetTimeout.value=setTimeout(()=>{setEmotion(`neutral`),resetTimeout.value=void 0},ms)},update=deltaTime=>{if(!isTransitioning.value||!currentEmotion.value)return;let emotionState=emotionStates.get(currentEmotion.value),blendDuration=emotionState.blendDuration||.3;transitionProgress.value+=deltaTime/blendDuration,transitionProgress.value>=1&&(transitionProgress.value=1,isTransitioning.value=!1);for(let[exprName,targetValue]of targetExpressionValues.value){var _vrm$expressionManage2;let startValue=currentExpressionValues.value.get(exprName)||0,currentValue=lerp$3(startValue,targetValue,easeInOutCubic(transitionProgress.value));(_vrm$expressionManage2=vrm.expressionManager)?.setValue(exprName,currentValue)}},addEmotionState=(emotionName,state)=>{emotionStates.set(emotionName,state)},removeEmotionState=emotionName=>{emotionStates.delete(emotionName)},dispose$1=()=>{clearResetTimeout()};return{currentEmotion,isTransitioning,setEmotion,setEmotionWithResetAfter,update,addEmotionState,removeEmotionState,dispose:dispose$1}}function useWhisper(url,options$1){let opts=merge$2({onLoading:()=>{},onInitiate:()=>{},onProgress:()=>{},onDone:()=>{},onReady:()=>{},onStart:()=>{},onUpdate:()=>{},onComplete:()=>{}},options$1),{post:whisperPost,data:whisperData,terminate}=useWebWorker(url,{type:`module`}),status=ref(null),loadingMessage=ref(``),loadingProgress=ref([]),transcribing=ref(!1),tps=ref(0),result=ref(``);return watch(whisperData,e$3=>{switch(e$3.status){case`loading`:var _opts$onLoading;status.value=`loading`,loadingMessage.value=e$3.data,(_opts$onLoading=opts.onLoading)?.call(opts,e$3.data);break;case`initiate`:var _opts$onInitiate;loadingProgress.value.push(e$3),(_opts$onInitiate=opts.onInitiate)?.call(opts,e$3);break;case`progress`:var _opts$onProgress;loadingProgress.value=loadingProgress.value.map(item=>item.file===e$3.file?{...item,...e$3}:item),(_opts$onProgress=opts.onProgress)?.call(opts,e$3);break;case`done`:var _opts$onDone;loadingProgress.value=loadingProgress.value.filter(item=>item.file!==e$3.file),(_opts$onDone=opts.onDone)?.call(opts,e$3);break;case`ready`:var _opts$onReady;status.value=`ready`,(_opts$onReady=opts.onReady)?.call(opts);break;case`start`:var _opts$onStart;transcribing.value=!0,(_opts$onStart=opts.onStart)?.call(opts);break;case`update`:var _opts$onUpdate;tps.value=e$3.tps,(_opts$onUpdate=opts.onUpdate)?.call(opts,e$3.tps);break;case`complete`:var _opts$onComplete;transcribing.value=!1,result.value=e$3.output[0]||``,console.debug(`Whisper result:`,result.value),(_opts$onComplete=opts.onComplete)?.call(opts,e$3.output[0]);break}}),onUnmounted(()=>{terminate()}),{transcribe:message$1=>whisperPost(message$1),status,loadingMessage,loadingProgress,transcribing,tps,result,load:()=>whisperPost({type:`load`}),terminate}}var XSAIError$2=class extends Error{constructor(message$1,response){super(message$1),babelHelpers.defineProperty(this,`response`,void 0),this.name=`XSAIError`,this.response=response}};const strCamelToSnake$2=str=>str.replace(/[A-Z]/g,s$1=>`_${s$1.toLowerCase()}`),objCamelToSnake$1=obj=>Object.fromEntries(Object.entries(obj).map(([k$4,v$1])=>[strCamelToSnake$2(k$4),v$1])),clean$2=obj=>Object.fromEntries(Object.entries(obj).filter(([,v$1])=>v$1!==void 0)),requestBody=body$2=>JSON.stringify(objCamelToSnake$1(clean$2({...body$2,abortSignal:void 0,apiKey:void 0,baseURL:void 0,fetch:void 0,headers:void 0}))),requestHeaders=(headers,apiKey)=>clean$2({Authorization:apiKey===void 0?void 0:`Bearer ${apiKey}`,...headers}),requestURL=(path,baseURL)=>{let base=baseURL.toString();return new URL(path,base.endsWith(`/`)?base:`${base}/`)},responseCatch=async res=>{if(!res.ok)throw new XSAIError$2(`Remote sent ${res.status} response: ${await res.text()}`,res);if(!res.body)throw new XSAIError$2(`Response body is empty from remote server`,res);if(!(res.body instanceof ReadableStream))throw new XSAIError$2(`Expected Response body to be a ReadableStream, but got ${String(res.body)}; Content Type is ${res.headers.get(`Content-Type`)}`,res);return res},responseJSON$1=async res=>responseCatch(res).then(async res2=>{let text$5=await res2.text();try{return JSON.parse(text$5)}catch{throw Error(`Failed to parse response, response body: ${text$5}`)}}),listModels=async options$1=>(options$1.fetch??globalThis.fetch)(requestURL(`models`,options$1.baseURL),{headers:requestHeaders(options$1.headers,options$1.apiKey),signal:options$1.abortSignal}).then(responseJSON$1).then(({data:data$10})=>data$10),chat=async options$1=>{var _options$1$tools;return(options$1.fetch??globalThis.fetch)(requestURL(`chat/completions`,options$1.baseURL),{body:requestBody({...options$1,tools:(_options$1$tools=options$1.tools)?.map(tool$1=>({function:clean$2({...tool$1.function,returns:void 0}),type:`function`}))}),headers:requestHeaders({"Content-Type":`application/json`,...options$1.headers},options$1.apiKey),method:`POST`,signal:options$1.abortSignal}).then(responseCatch)},determineStepType=({finishReason,maxSteps,stepsLength,toolCallsLength})=>{if(stepsLength===0)return`initial`;if(stepsLength0&&finishReason===`tool_calls`)return`tool-result`;if(![`error`,`length`].includes(finishReason))return`continue`}return`done`},wrapToolResult=result=>typeof result==`string`||Array.isArray(result)&&result.every(item=>!!(typeof item==`object`&&`type`in item&&[`audio`,`image`,`text`].includes(item.type)))?result:JSON.stringify(result),executeTool=async({abortSignal,messages,toolCall,tools:tools$2})=>{let tool$1=tools$2?.find(tool2=>tool2.function.name===toolCall.function.name);if(!tool$1){let availableTools=tools$2?.map(tool2=>tool2.function.name),availableToolsErrorMsg=availableTools==null||availableTools.length===0?`No tools are available`:`Available tools: ${availableTools.join(`, `)}`;throw Error(`Model tried to call unavailable tool "${toolCall.function.name}", ${availableToolsErrorMsg}.`)}let toolCallId=toolCall.id,toolName=toolCall.function.name,parsedArgs=JSON.parse(toolCall.function.arguments),result=wrapToolResult(await tool$1.execute(parsedArgs,{abortSignal,messages,toolCallId})),completionToolCall={args:toolCall.function.arguments,toolCallId,toolCallType:toolCall.type,toolName},completionToolResult={args:parsedArgs,result,toolCallId,toolName},message$1={content:result,role:`tool`,tool_call_id:toolCallId};return{completionToolCall,completionToolResult,message:message$1,parsedArgs,result,toolName}},strCamelToSnake$1=str=>str.replace(/[A-Z]/g,s$1=>`_${s$1.toLowerCase()}`),objCamelToSnake$2=obj=>Object.fromEntries(Object.entries(obj).map(([k$4,v$1])=>[strCamelToSnake$1(k$4),v$1]));var XSAIError$1=class extends Error{constructor(message$1,response){super(message$1),babelHelpers.defineProperty(this,`response`,void 0),this.name=`XSAIError`,this.response=response}};const CHUNK_HEADER_PREFIX=`data:`,parseChunk=text$5=>{if(!text$5||!text$5.startsWith(CHUNK_HEADER_PREFIX))return[void 0,!1];let content$2=text$5.slice(CHUNK_HEADER_PREFIX.length),data$10=content$2.startsWith(` `)?content$2.slice(1):content$2;if(data$10===`[DONE]`)return[void 0,!0];if(data$10.startsWith(`{`)&&data$10.includes(`"error":`))throw Error(`Error from server: ${data$10}`);let chunk=JSON.parse(data$10);return[chunk,!1]},streamText=async options$1=>{let chunkCtrl,stepCtrl,textCtrl,chunkStream=new ReadableStream({start:controller=>chunkCtrl=controller}),stepStream=new ReadableStream({start:controller=>stepCtrl=controller}),textStream=new ReadableStream({start:controller=>textCtrl=controller}),maxSteps=options$1.maxSteps??1,decoder=new TextDecoder,steps$1=[],stepOne=async options2=>{var _step$choices$,_step$choices$2,_step$choices$3,_options2$onStepFinis;let step={choices:[],finishReason:`error`,messages:structuredClone(options2.messages),stepType:`initial`,toolCalls:[],toolResults:[]},choiceState={},buffer$1=``,finishReason,usage,shouldOutputText=!0,endToolCallByIndex=(state,idx)=>{state.endedToolCallIndex.has(idx)||(state.endedToolCallIndex.add(idx),state.currentToolIndex=null)};if(await chat({...options2,maxSteps:void 0,stream:!0,streamOptions:options2.streamOptions==null?void 0:objCamelToSnake$2(options2.streamOptions)}).then(async res=>res.body.pipeThrough(new TransformStream({transform:async(chunk,controller)=>{let text$5=decoder.decode(chunk,{stream:!0});buffer$1+=text$5;let lines=buffer$1.split(` -`);buffer$1=lines.pop()??``;for(let line of lines)try{let[chunk2,isEnd]=parseChunk(line);if(isEnd)break;chunk2&&controller.enqueue(chunk2)}catch(error){controller.error(error)}}})).pipeTo(new WritableStream({abort:reason=>{chunkCtrl.error(reason),stepCtrl.error(reason),textCtrl.error(reason)},close:()=>{var _options2$onEvent;(_options2$onEvent=options2.onEvent)?.call(options2,{finishReason,type:`finish`,usage})},write:async chunk=>{var _options2$onChunk,_step$choices;if((_options2$onChunk=options2.onChunk)?.call(options2,chunk),chunkCtrl.enqueue(chunk),usage=chunk.usage,chunk.choices==null||chunk.choices.length===0)return;let choice=chunk.choices[0];choice.delta.tool_calls&&(shouldOutputText=!1);let{delta,finish_reason,index:index$1,...rest}=choice,choiceSnapshot=(_step$choices=step.choices)[index$1]??(_step$choices[index$1]={finishReason:finish_reason,index:index$1,message:{role:`assistant`}});if(finish_reason!==void 0){if(finishReason=finish_reason,step.finishReason=finish_reason,choiceSnapshot.finishReason=finish_reason,finish_reason===`length`)throw new XSAIError$1(`length exceeded`);if(finish_reason===`content_filter`)throw new XSAIError$1(`content filter`)}Object.assign(choiceSnapshot,rest);let{content:content$2,refusal,tool_calls,...rests}=delta,message$1=choiceSnapshot.message;if(Object.assign(message$1,rests),refusal!==void 0){var _options2$onEvent2;message$1.refusal=(message$1.refusal||``)+(refusal||``),(_options2$onEvent2=options2.onEvent)?.call(options2,{refusal:message$1.refusal,type:`refusal`})}if(content$2!==void 0){var _options2$onEvent3;message$1.content=(message$1.content||``)+(content$2||``),shouldOutputText&&textCtrl?.enqueue(content$2),(_options2$onEvent3=options2.onEvent)?.call(options2,{text:content$2,type:`text-delta`})}for(let tool_call of tool_calls||[]){var _options2$onEvent4,_message$1$toolCalls;(_options2$onEvent4=options2.onEvent)?.call(options2,{toolCall:tool_call,type:`tool-call-delta`});let{function:fn$5,id,index:index2,type}=tool_call;message$1.toolCalls??={};let toolCall=(_message$1$toolCalls=message$1.toolCalls)[index2]??(_message$1$toolCalls[index2]={function:{arguments:``,name:fn$5.name,parsedArguments:{}},id,index:index2,type});toolCall.function.arguments+=fn$5.arguments}let state=choiceState[index$1]??(choiceState[index$1]={calledToolCallIndex:new Set,currentToolIndex:null,endedToolCallIndex:new Set,index:index$1,toolCallErrors:{},toolCallResults:{}});finish_reason&&state.currentToolIndex!==null&&endToolCallByIndex(state,state.currentToolIndex);for(let toolCall of delta.tool_calls||[])state.currentToolIndex!==toolCall.index&&state.currentToolIndex!==null&&endToolCallByIndex(state,state.currentToolIndex),state.calledToolCallIndex.add(toolCall.index),state.currentToolIndex=toolCall.index}}))),step.messages.push({content:(_step$choices$=step.choices[0])?.message.content??``,refusal:(_step$choices$2=step.choices[0])?.message.refusal,role:`assistant`,tool_calls:Object.values((_step$choices$3=step.choices[0])?.message.toolCalls??{}).map(toolCall=>({function:{arguments:toolCall.function.arguments,name:toolCall.function.name},id:toolCall.id,index:toolCall.index,type:toolCall.type}))}),await Promise.allSettled(step.choices.map(async choice=>{let state=choiceState[choice.index];return Promise.allSettled([...state.endedToolCallIndex].map(async idx=>{var _options2$onEvent5;let toolCall=choice.message.toolCalls[idx];if(step.toolCalls.push({args:toolCall.function.arguments,toolCallId:toolCall.id,toolCallType:`function`,toolName:toolCall.function.name}),!state.toolCallResults[toolCall.id]){(_options2$onEvent5=options2.onEvent)?.call(options2,{toolCall,type:`tool-call`});try{var _options2$onEvent6;let{completionToolResult,message:message$1,parsedArgs,result}=await executeTool({abortSignal:options2.abortSignal,messages:options2.messages,toolCall,tools:options2.tools});toolCall.function.parsedArguments=parsedArgs,state.toolCallResults[toolCall.id]=result,step.messages.push(message$1),step.toolResults.push(completionToolResult),(_options2$onEvent6=options2.onEvent)?.call(options2,{id:toolCall.id,result,type:`tool-call-result`})}catch(error){state.toolCallErrors[idx]=error}}}))})),step.stepType=determineStepType({finishReason:step.finishReason,maxSteps,stepsLength:steps$1.length,toolCallsLength:step.toolCalls.length}),steps$1.push(step),stepCtrl.enqueue(step),(_options2$onStepFinis=options2.onStepFinish)?.call(options2,step),!shouldOutputText)return async()=>stepOne({...options2,messages:step.messages})},invokeFunctionCalls=async()=>{var _options$1$onFinish;let ret=await stepOne(options$1);for(;typeof ret==`function`&&steps$1.length{chunkCtrl.error(error),stepCtrl.error(error),textCtrl.error(error)}),Promise.resolve({chunkStream,stepStream,textStream})},strictJsonSchema=schema=>({...schema,additionalProperties:!1}),missingDependenciesUrl=`https://xsai.js.org/docs/packages-top/xsschema#missing-dependencies`,tryImport=async(result,name$2)=>{try{return await result}catch{throw Error(`xsschema: Missing dependencies "${name$2}". see ${missingDependenciesUrl}`)}},getToJsonSchemaFn=async vendor=>{switch(vendor){case`arktype`:return __vitePreload(()=>import(`./arktype-C-GObzDh-o7JLSWxh.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`effect`:return __vitePreload(()=>import(`./effect-DBSVVF8G-BTnTwOUs.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`sury`:return __vitePreload(()=>import(`./sury-GtnkadyM-wpJ7Esbb.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`valibot`:return __vitePreload(()=>import(`./valibot-CbgwcZn_-d2JmOn5U.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`zod`:return __vitePreload(()=>import(`./zod-CD8IEU5z-rRXwlI4M.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());default:throw Error(`xsschema: Unsupported schema vendor "${vendor}". see https://xsai.js.org/docs/packages-top/xsschema#unsupported-schema-vendor`)}},toJsonSchema=async schema=>getToJsonSchemaFn(schema[`~standard`].vendor).then(async toJsonSchema2=>toJsonSchema2(schema)),tool=async({description,execute,name:name$2,parameters})=>{let schema=await toJsonSchema(parameters);return{execute,function:{description,name:name$2,parameters:strictJsonSchema(schema),strict:!0},type:`function`}};var util;(function(util$1){util$1.assertEqual=_$1=>{};function assertIs(_arg){}util$1.assertIs=assertIs;function assertNever(_x$1){throw Error()}util$1.assertNever=assertNever,util$1.arrayToEnum=items=>{let obj={};for(let item of items)obj[item]=item;return obj},util$1.getValidEnumValues=obj=>{let validKeys=util$1.objectKeys(obj).filter(k$4=>typeof obj[obj[k$4]]!=`number`),filtered={};for(let k$4 of validKeys)filtered[k$4]=obj[k$4];return util$1.objectValues(filtered)},util$1.objectValues=obj=>util$1.objectKeys(obj).map(function(e$3){return obj[e$3]}),util$1.objectKeys=typeof Object.keys==`function`?obj=>Object.keys(obj):object=>{let keys$3=[];for(let key$1 in object)Object.prototype.hasOwnProperty.call(object,key$1)&&keys$3.push(key$1);return keys$3},util$1.find=(arr,checker)=>{for(let item of arr)if(checker(item))return item},util$1.isInteger=typeof Number.isInteger==`function`?val=>Number.isInteger(val):val=>typeof val==`number`&&Number.isFinite(val)&&Math.floor(val)===val;function joinValues(array,separator=` | `){return array.map(val=>typeof val==`string`?`'${val}'`:val).join(separator)}util$1.joinValues=joinValues,util$1.jsonStringifyReplacer=(_$1,value$1)=>typeof value$1==`bigint`?value$1.toString():value$1})(util||={});var objectUtil;(function(objectUtil$1){objectUtil$1.mergeShapes=(first,second)=>({...first,...second})})(objectUtil||={});const ZodParsedType=util.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),getParsedType=data$10=>{let t=typeof data$10;switch(t){case`undefined`:return ZodParsedType.undefined;case`string`:return ZodParsedType.string;case`number`:return Number.isNaN(data$10)?ZodParsedType.nan:ZodParsedType.number;case`boolean`:return ZodParsedType.boolean;case`function`:return ZodParsedType.function;case`bigint`:return ZodParsedType.bigint;case`symbol`:return ZodParsedType.symbol;case`object`:return Array.isArray(data$10)?ZodParsedType.array:data$10===null?ZodParsedType.null:data$10.then&&typeof data$10.then==`function`&&data$10.catch&&typeof data$10.catch==`function`?ZodParsedType.promise:typeof Map<`u`&&data$10 instanceof Map?ZodParsedType.map:typeof Set<`u`&&data$10 instanceof Set?ZodParsedType.set:typeof Date<`u`&&data$10 instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]);var ZodError=class ZodError extends Error{get errors(){return this.issues}constructor(issues){super(),this.issues=[],this.addIssue=sub=>{this.issues=[...this.issues,sub]},this.addIssues=(subs=[])=>{this.issues=[...this.issues,...subs]};let actualProto=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,actualProto):this.__proto__=actualProto,this.name=`ZodError`,this.issues=issues}format(_mapper){let mapper=_mapper||function(issue){return issue.message},fieldErrors={_errors:[]},processError=error=>{for(let issue of error.issues)if(issue.code===`invalid_union`)issue.unionErrors.map(processError);else if(issue.code===`invalid_return_type`)processError(issue.returnTypeError);else if(issue.code===`invalid_arguments`)processError(issue.argumentsError);else if(issue.path.length===0)fieldErrors._errors.push(mapper(issue));else{let curr=fieldErrors,i$1=0;for(;i$1issue.message){let fieldErrors={},formErrors=[];for(let sub of this.issues)if(sub.path.length>0){let firstEl=sub.path[0];fieldErrors[firstEl]=fieldErrors[firstEl]||[],fieldErrors[firstEl].push(mapper(sub))}else formErrors.push(mapper(sub));return{formErrors,fieldErrors}}get formErrors(){return this.flatten()}};ZodError.create=issues=>{let error=new ZodError(issues);return error};const errorMap=(issue,_ctx)=>{let message$1;switch(issue.code){case ZodIssueCode.invalid_type:message$1=issue.received===ZodParsedType.undefined?`Required`:`Expected ${issue.expected}, received ${issue.received}`;break;case ZodIssueCode.invalid_literal:message$1=`Invalid literal value, expected ${JSON.stringify(issue.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:message$1=`Unrecognized key(s) in object: ${util.joinValues(issue.keys,`, `)}`;break;case ZodIssueCode.invalid_union:message$1=`Invalid input`;break;case ZodIssueCode.invalid_union_discriminator:message$1=`Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;break;case ZodIssueCode.invalid_enum_value:message$1=`Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;break;case ZodIssueCode.invalid_arguments:message$1=`Invalid function arguments`;break;case ZodIssueCode.invalid_return_type:message$1=`Invalid function return type`;break;case ZodIssueCode.invalid_date:message$1=`Invalid date`;break;case ZodIssueCode.invalid_string:typeof issue.validation==`object`?`includes`in issue.validation?(message$1=`Invalid input: must include "${issue.validation.includes}"`,typeof issue.validation.position==`number`&&(message$1=`${message$1} at one or more positions greater than or equal to ${issue.validation.position}`)):`startsWith`in issue.validation?message$1=`Invalid input: must start with "${issue.validation.startsWith}"`:`endsWith`in issue.validation?message$1=`Invalid input: must end with "${issue.validation.endsWith}"`:util.assertNever(issue.validation):message$1=issue.validation===`regex`?`Invalid`:`Invalid ${issue.validation}`;break;case ZodIssueCode.too_small:message$1=issue.type===`array`?`Array must contain ${issue.exact?`exactly`:issue.inclusive?`at least`:`more than`} ${issue.minimum} element(s)`:issue.type===`string`?`String must contain ${issue.exact?`exactly`:issue.inclusive?`at least`:`over`} ${issue.minimum} character(s)`:issue.type===`number`||issue.type===`bigint`?`Number must be ${issue.exact?`exactly equal to `:issue.inclusive?`greater than or equal to `:`greater than `}${issue.minimum}`:issue.type===`date`?`Date must be ${issue.exact?`exactly equal to `:issue.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(issue.minimum))}`:`Invalid input`;break;case ZodIssueCode.too_big:message$1=issue.type===`array`?`Array must contain ${issue.exact?`exactly`:issue.inclusive?`at most`:`less than`} ${issue.maximum} element(s)`:issue.type===`string`?`String must contain ${issue.exact?`exactly`:issue.inclusive?`at most`:`under`} ${issue.maximum} character(s)`:issue.type===`number`?`Number must be ${issue.exact?`exactly`:issue.inclusive?`less than or equal to`:`less than`} ${issue.maximum}`:issue.type===`bigint`?`BigInt must be ${issue.exact?`exactly`:issue.inclusive?`less than or equal to`:`less than`} ${issue.maximum}`:issue.type===`date`?`Date must be ${issue.exact?`exactly`:issue.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(issue.maximum))}`:`Invalid input`;break;case ZodIssueCode.custom:message$1=`Invalid input`;break;case ZodIssueCode.invalid_intersection_types:message$1=`Intersection results could not be merged`;break;case ZodIssueCode.not_multiple_of:message$1=`Number must be a multiple of ${issue.multipleOf}`;break;case ZodIssueCode.not_finite:message$1=`Number must be finite`;break;default:message$1=_ctx.defaultError,util.assertNever(issue)}return{message:message$1}};var en_default$1=errorMap;let overrideErrorMap=en_default$1;function getErrorMap(){return overrideErrorMap}const makeIssue=params=>{let{data:data$10,path,errorMaps,issueData}=params,fullPath=[...path,...issueData.path||[]],fullIssue={...issueData,path:fullPath};if(issueData.message!==void 0)return{...issueData,path:fullPath,message:issueData.message};let errorMessage=``,maps=errorMaps.filter(m$2=>!!m$2).slice().reverse();for(let map of maps)errorMessage=map(fullIssue,{data:data$10,defaultError:errorMessage}).message;return{...issueData,path:fullPath,message:errorMessage}};function addIssueToContext(ctx,issueData){let overrideMap=getErrorMap(),issue=makeIssue({issueData,data:ctx.data,path:ctx.path,errorMaps:[ctx.common.contextualErrorMap,ctx.schemaErrorMap,overrideMap,overrideMap===en_default$1?void 0:en_default$1].filter(x$3=>!!x$3)});ctx.common.issues.push(issue)}var ParseStatus=class ParseStatus{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(status,results){let arrayValue=[];for(let s$1 of results){if(s$1.status===`aborted`)return INVALID;s$1.status===`dirty`&&status.dirty(),arrayValue.push(s$1.value)}return{status:status.value,value:arrayValue}}static async mergeObjectAsync(status,pairs){let syncPairs=[];for(let pair of pairs){let key$1=await pair.key,value$1=await pair.value;syncPairs.push({key:key$1,value:value$1})}return ParseStatus.mergeObjectSync(status,syncPairs)}static mergeObjectSync(status,pairs){let finalObject={};for(let pair of pairs){let{key:key$1,value:value$1}=pair;if(key$1.status===`aborted`||value$1.status===`aborted`)return INVALID;key$1.status===`dirty`&&status.dirty(),value$1.status===`dirty`&&status.dirty(),key$1.value!==`__proto__`&&(value$1.value!==void 0||pair.alwaysSet)&&(finalObject[key$1.value]=value$1.value)}return{status:status.value,value:finalObject}}};const INVALID=Object.freeze({status:`aborted`}),DIRTY=value$1=>({status:`dirty`,value:value$1}),OK=value$1=>({status:`valid`,value:value$1}),isAborted=x$3=>x$3.status===`aborted`,isDirty=x$3=>x$3.status===`dirty`,isValid=x$3=>x$3.status===`valid`,isAsync=x$3=>typeof Promise<`u`&&x$3 instanceof Promise;var errorUtil;(function(errorUtil$1){errorUtil$1.errToObj=message$1=>typeof message$1==`string`?{message:message$1}:message$1||{},errorUtil$1.toString=message$1=>typeof message$1==`string`?message$1:message$1?.message})(errorUtil||={});var ParseInputLazyPath=class{constructor(parent,value$1,path,key$1){this._cachedPath=[],this.parent=parent,this.data=value$1,this._path=path,this._key=key$1}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};const handleResult=(ctx,result)=>{if(isValid(result))return{success:!0,data:result.value};if(!ctx.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let error=new ZodError(ctx.common.issues);return this._error=error,this._error}}};function processCreateParams(params){if(!params)return{};let{errorMap:errorMap$1,invalid_type_error,required_error,description}=params;if(errorMap$1&&(invalid_type_error||required_error))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(errorMap$1)return{errorMap:errorMap$1,description};let customMap=(iss,ctx)=>{let{message:message$1}=params;return iss.code===`invalid_enum_value`?{message:message$1??ctx.defaultError}:ctx.data===void 0?{message:message$1??required_error??ctx.defaultError}:iss.code===`invalid_type`?{message:message$1??invalid_type_error??ctx.defaultError}:{message:ctx.defaultError}};return{errorMap:customMap,description}}var ZodType=class{get description(){return this._def.description}_getType(input){return getParsedType(input.data)}_getOrReturnCtx(input,ctx){return ctx||{common:input.parent.common,data:input.data,parsedType:getParsedType(input.data),schemaErrorMap:this._def.errorMap,path:input.path,parent:input.parent}}_processInputParams(input){return{status:new ParseStatus,ctx:{common:input.parent.common,data:input.data,parsedType:getParsedType(input.data),schemaErrorMap:this._def.errorMap,path:input.path,parent:input.parent}}}_parseSync(input){let result=this._parse(input);if(isAsync(result))throw Error(`Synchronous parse encountered promise.`);return result}_parseAsync(input){let result=this._parse(input);return Promise.resolve(result)}parse(data$10,params){let result=this.safeParse(data$10,params);if(result.success)return result.data;throw result.error}safeParse(data$10,params){let ctx={common:{issues:[],async:params?.async??!1,contextualErrorMap:params?.errorMap},path:params?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:data$10,parsedType:getParsedType(data$10)},result=this._parseSync({data:data$10,path:ctx.path,parent:ctx});return handleResult(ctx,result)}"~validate"(data$10){let ctx={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:data$10,parsedType:getParsedType(data$10)};if(!this[`~standard`].async)try{let result=this._parseSync({data:data$10,path:[],parent:ctx});return isValid(result)?{value:result.value}:{issues:ctx.common.issues}}catch(err){var _err$message;!(err==null||(_err$message=err.message)==null||(_err$message=_err$message.toLowerCase())==null)&&_err$message.includes(`encountered`)&&(this[`~standard`].async=!0),ctx.common={issues:[],async:!0}}return this._parseAsync({data:data$10,path:[],parent:ctx}).then(result=>isValid(result)?{value:result.value}:{issues:ctx.common.issues})}async parseAsync(data$10,params){let result=await this.safeParseAsync(data$10,params);if(result.success)return result.data;throw result.error}async safeParseAsync(data$10,params){let ctx={common:{issues:[],contextualErrorMap:params?.errorMap,async:!0},path:params?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:data$10,parsedType:getParsedType(data$10)},maybeAsyncResult=this._parse({data:data$10,path:ctx.path,parent:ctx}),result=await(isAsync(maybeAsyncResult)?maybeAsyncResult:Promise.resolve(maybeAsyncResult));return handleResult(ctx,result)}refine(check$1,message$1){let getIssueProperties=val=>typeof message$1==`string`||message$1===void 0?{message:message$1}:typeof message$1==`function`?message$1(val):message$1;return this._refinement((val,ctx)=>{let result=check$1(val),setError=()=>ctx.addIssue({code:ZodIssueCode.custom,...getIssueProperties(val)});return typeof Promise<`u`&&result instanceof Promise?result.then(data$10=>data$10?!0:(setError(),!1)):result?!0:(setError(),!1)})}refinement(check$1,refinementData){return this._refinement((val,ctx)=>check$1(val)?!0:(ctx.addIssue(typeof refinementData==`function`?refinementData(val,ctx):refinementData),!1))}_refinement(refinement){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:`refinement`,refinement}})}superRefine(refinement){return this._refinement(refinement)}constructor(def$1){this.spa=this.safeParseAsync,this._def=def$1,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:data$10=>this[`~validate`](data$10)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(option$1){return ZodUnion.create([this,option$1],this._def)}and(incoming){return ZodIntersection.create(this,incoming,this._def)}transform(transform$1){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:`transform`,transform:transform$1}})}default(def$1){let defaultValueFunc=typeof def$1==`function`?def$1:()=>def$1;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:defaultValueFunc,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(def$1){let catchValueFunc=typeof def$1==`function`?def$1:()=>def$1;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:catchValueFunc,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(description){let This=this.constructor;return new This({...this._def,description})}pipe(target$1){return ZodPipeline.create(this,target$1)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,dateRegex=RegExp(`^${dateRegexSource}$`);function timeRegexSource(args){let secondsRegexSource=`[0-5]\\d`;args.precision?secondsRegexSource=`${secondsRegexSource}\\.\\d{${args.precision}}`:args.precision??(secondsRegexSource=`${secondsRegexSource}(\\.\\d+)?`);let secondsQuantifier=args.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`}function timeRegex(args){return RegExp(`^${timeRegexSource(args)}$`)}function datetimeRegex(args){let regex=`${dateRegexSource}T${timeRegexSource(args)}`,opts=[];return opts.push(args.local?`Z?`:`Z`),args.offset&&opts.push(`([+-]\\d{2}:?\\d{2})`),regex=`${regex}(${opts.join(`|`)})`,RegExp(`^${regex}$`)}function isValidIP(ip,version$1){return!!((version$1===`v4`||!version$1)&&ipv4Regex.test(ip)||(version$1===`v6`||!version$1)&&ipv6Regex.test(ip))}function isValidJWT(jwt,alg){if(!jwtRegex.test(jwt))return!1;try{let[header]=jwt.split(`.`);if(!header)return!1;let base64=header.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(header.length+(4-header.length%4)%4,`=`),decoded=JSON.parse(atob(base64));return!(typeof decoded!=`object`||!decoded||`typ`in decoded&&decoded?.typ!==`JWT`||!decoded.alg||alg&&decoded.alg!==alg)}catch{return!1}}function isValidCidr(ip,version$1){return!!((version$1===`v4`||!version$1)&&ipv4CidrRegex.test(ip)||(version$1===`v6`||!version$1)&&ipv6CidrRegex.test(ip))}var ZodString=class ZodString extends ZodType{_parse(input){this._def.coerce&&(input.data=String(input.data));let parsedType=this._getType(input);if(parsedType!==ZodParsedType.string){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:ctx$1.parsedType}),INVALID}let status=new ParseStatus,ctx;for(let check$1 of this._def.checks)if(check$1.kind===`min`)input.data.lengthcheck$1.value&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:check$1.value,type:`string`,inclusive:!0,exact:!1,message:check$1.message}),status.dirty());else if(check$1.kind===`length`){let tooBig=input.data.length>check$1.value,tooSmall=input.data.lengthregex.test(data$10),{validation,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(message$1)})}_addCheck(check$1){return new ZodString({...this._def,checks:[...this._def.checks,check$1]})}email(message$1){return this._addCheck({kind:`email`,...errorUtil.errToObj(message$1)})}url(message$1){return this._addCheck({kind:`url`,...errorUtil.errToObj(message$1)})}emoji(message$1){return this._addCheck({kind:`emoji`,...errorUtil.errToObj(message$1)})}uuid(message$1){return this._addCheck({kind:`uuid`,...errorUtil.errToObj(message$1)})}nanoid(message$1){return this._addCheck({kind:`nanoid`,...errorUtil.errToObj(message$1)})}cuid(message$1){return this._addCheck({kind:`cuid`,...errorUtil.errToObj(message$1)})}cuid2(message$1){return this._addCheck({kind:`cuid2`,...errorUtil.errToObj(message$1)})}ulid(message$1){return this._addCheck({kind:`ulid`,...errorUtil.errToObj(message$1)})}base64(message$1){return this._addCheck({kind:`base64`,...errorUtil.errToObj(message$1)})}base64url(message$1){return this._addCheck({kind:`base64url`,...errorUtil.errToObj(message$1)})}jwt(options$1){return this._addCheck({kind:`jwt`,...errorUtil.errToObj(options$1)})}ip(options$1){return this._addCheck({kind:`ip`,...errorUtil.errToObj(options$1)})}cidr(options$1){return this._addCheck({kind:`cidr`,...errorUtil.errToObj(options$1)})}datetime(options$1){return typeof options$1==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:options$1}):this._addCheck({kind:`datetime`,precision:options$1?.precision===void 0?null:options$1?.precision,offset:options$1?.offset??!1,local:options$1?.local??!1,...errorUtil.errToObj(options$1?.message)})}date(message$1){return this._addCheck({kind:`date`,message:message$1})}time(options$1){return typeof options$1==`string`?this._addCheck({kind:`time`,precision:null,message:options$1}):this._addCheck({kind:`time`,precision:options$1?.precision===void 0?null:options$1?.precision,...errorUtil.errToObj(options$1?.message)})}duration(message$1){return this._addCheck({kind:`duration`,...errorUtil.errToObj(message$1)})}regex(regex,message$1){return this._addCheck({kind:`regex`,regex,...errorUtil.errToObj(message$1)})}includes(value$1,options$1){return this._addCheck({kind:`includes`,value:value$1,position:options$1?.position,...errorUtil.errToObj(options$1?.message)})}startsWith(value$1,message$1){return this._addCheck({kind:`startsWith`,value:value$1,...errorUtil.errToObj(message$1)})}endsWith(value$1,message$1){return this._addCheck({kind:`endsWith`,value:value$1,...errorUtil.errToObj(message$1)})}min(minLength,message$1){return this._addCheck({kind:`min`,value:minLength,...errorUtil.errToObj(message$1)})}max(maxLength,message$1){return this._addCheck({kind:`max`,value:maxLength,...errorUtil.errToObj(message$1)})}length(len,message$1){return this._addCheck({kind:`length`,value:len,...errorUtil.errToObj(message$1)})}nonempty(message$1){return this.min(1,errorUtil.errToObj(message$1))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(ch=>ch.kind===`datetime`)}get isDate(){return!!this._def.checks.find(ch=>ch.kind===`date`)}get isTime(){return!!this._def.checks.find(ch=>ch.kind===`time`)}get isDuration(){return!!this._def.checks.find(ch=>ch.kind===`duration`)}get isEmail(){return!!this._def.checks.find(ch=>ch.kind===`email`)}get isURL(){return!!this._def.checks.find(ch=>ch.kind===`url`)}get isEmoji(){return!!this._def.checks.find(ch=>ch.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(ch=>ch.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(ch=>ch.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(ch=>ch.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(ch=>ch.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(ch=>ch.kind===`ulid`)}get isIP(){return!!this._def.checks.find(ch=>ch.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(ch=>ch.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(ch=>ch.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(ch=>ch.kind===`base64url`)}get minLength(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1}get maxLength(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuenew ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:params?.coerce??!1,...processCreateParams(params)});function floatSafeRemainder(val,step){let valDecCount=(val.toString().split(`.`)[1]||``).length,stepDecCount=(step.toString().split(`.`)[1]||``).length,decCount=valDecCount>stepDecCount?valDecCount:stepDecCount,valInt=Number.parseInt(val.toFixed(decCount).replace(`.`,``)),stepInt=Number.parseInt(step.toFixed(decCount).replace(`.`,``));return valInt%stepInt/10**decCount}var ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(input){this._def.coerce&&(input.data=Number(input.data));let parsedType=this._getType(input);if(parsedType!==ZodParsedType.number){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:ctx$1.parsedType}),INVALID}let ctx,status=new ParseStatus;for(let check$1 of this._def.checks)if(check$1.kind===`int`)util.isInteger(input.data)||(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:`integer`,received:`float`,message:check$1.message}),status.dirty());else if(check$1.kind===`min`){let tooSmall=check$1.inclusive?input.datacheck$1.value:input.data>=check$1.value;tooBig&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:check$1.value,type:`number`,inclusive:check$1.inclusive,exact:!1,message:check$1.message}),status.dirty())}else check$1.kind===`multipleOf`?floatSafeRemainder(input.data,check$1.value)!==0&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.not_multiple_of,multipleOf:check$1.value,message:check$1.message}),status.dirty()):check$1.kind===`finite`?Number.isFinite(input.data)||(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.not_finite,message:check$1.message}),status.dirty()):util.assertNever(check$1);return{status:status.value,value:input.data}}gte(value$1,message$1){return this.setLimit(`min`,value$1,!0,errorUtil.toString(message$1))}gt(value$1,message$1){return this.setLimit(`min`,value$1,!1,errorUtil.toString(message$1))}lte(value$1,message$1){return this.setLimit(`max`,value$1,!0,errorUtil.toString(message$1))}lt(value$1,message$1){return this.setLimit(`max`,value$1,!1,errorUtil.toString(message$1))}setLimit(kind,value$1,inclusive,message$1){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind,value:value$1,inclusive,message:errorUtil.toString(message$1)}]})}_addCheck(check$1){return new ZodNumber({...this._def,checks:[...this._def.checks,check$1]})}int(message$1){return this._addCheck({kind:`int`,message:errorUtil.toString(message$1)})}positive(message$1){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:errorUtil.toString(message$1)})}negative(message$1){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:errorUtil.toString(message$1)})}nonpositive(message$1){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:errorUtil.toString(message$1)})}nonnegative(message$1){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:errorUtil.toString(message$1)})}multipleOf(value$1,message$1){return this._addCheck({kind:`multipleOf`,value:value$1,message:errorUtil.toString(message$1)})}finite(message$1){return this._addCheck({kind:`finite`,message:errorUtil.toString(message$1)})}safe(message$1){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:errorUtil.toString(message$1)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:errorUtil.toString(message$1)})}get minValue(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1}get maxValue(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuech.kind===`int`||ch.kind===`multipleOf`&&util.isInteger(ch.value))}get isFinite(){let max$1=null,min$1=null;for(let ch of this._def.checks)if(ch.kind===`finite`||ch.kind===`int`||ch.kind===`multipleOf`)return!0;else ch.kind===`min`?(min$1===null||ch.value>min$1)&&(min$1=ch.value):ch.kind===`max`&&(max$1===null||ch.valuenew ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:params?.coerce||!1,...processCreateParams(params)});var ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(input){if(this._def.coerce)try{input.data=BigInt(input.data)}catch{return this._getInvalidInput(input)}let parsedType=this._getType(input);if(parsedType!==ZodParsedType.bigint)return this._getInvalidInput(input);let ctx,status=new ParseStatus;for(let check$1 of this._def.checks)if(check$1.kind===`min`){let tooSmall=check$1.inclusive?input.datacheck$1.value:input.data>=check$1.value;tooBig&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,type:`bigint`,maximum:check$1.value,inclusive:check$1.inclusive,message:check$1.message}),status.dirty())}else check$1.kind===`multipleOf`?input.data%check$1.value!==BigInt(0)&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.not_multiple_of,multipleOf:check$1.value,message:check$1.message}),status.dirty()):util.assertNever(check$1);return{status:status.value,value:input.data}}_getInvalidInput(input){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:ctx.parsedType}),INVALID}gte(value$1,message$1){return this.setLimit(`min`,value$1,!0,errorUtil.toString(message$1))}gt(value$1,message$1){return this.setLimit(`min`,value$1,!1,errorUtil.toString(message$1))}lte(value$1,message$1){return this.setLimit(`max`,value$1,!0,errorUtil.toString(message$1))}lt(value$1,message$1){return this.setLimit(`max`,value$1,!1,errorUtil.toString(message$1))}setLimit(kind,value$1,inclusive,message$1){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind,value:value$1,inclusive,message:errorUtil.toString(message$1)}]})}_addCheck(check$1){return new ZodBigInt({...this._def,checks:[...this._def.checks,check$1]})}positive(message$1){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:errorUtil.toString(message$1)})}negative(message$1){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:errorUtil.toString(message$1)})}nonpositive(message$1){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:errorUtil.toString(message$1)})}nonnegative(message$1){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:errorUtil.toString(message$1)})}multipleOf(value$1,message$1){return this._addCheck({kind:`multipleOf`,value:value$1,message:errorUtil.toString(message$1)})}get minValue(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1}get maxValue(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuenew ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:params?.coerce??!1,...processCreateParams(params)});var ZodBoolean=class extends ZodType{_parse(input){this._def.coerce&&(input.data=!!input.data);let parsedType=this._getType(input);if(parsedType!==ZodParsedType.boolean){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodBoolean.create=params=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:params?.coerce||!1,...processCreateParams(params)});var ZodDate=class ZodDate extends ZodType{_parse(input){this._def.coerce&&(input.data=new Date(input.data));let parsedType=this._getType(input);if(parsedType!==ZodParsedType.date){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:ctx$1.parsedType}),INVALID}if(Number.isNaN(input.data.getTime())){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_date}),INVALID}let status=new ParseStatus,ctx;for(let check$1 of this._def.checks)check$1.kind===`min`?input.data.getTime()check$1.value&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,message:check$1.message,inclusive:!0,exact:!1,maximum:check$1.value,type:`date`}),status.dirty()):util.assertNever(check$1);return{status:status.value,value:new Date(input.data.getTime())}}_addCheck(check$1){return new ZodDate({...this._def,checks:[...this._def.checks,check$1]})}min(minDate,message$1){return this._addCheck({kind:`min`,value:minDate.getTime(),message:errorUtil.toString(message$1)})}max(maxDate,message$1){return this._addCheck({kind:`max`,value:maxDate.getTime(),message:errorUtil.toString(message$1)})}get minDate(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1==null?null:new Date(min$1)}get maxDate(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuenew ZodDate({checks:[],coerce:params?.coerce||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(params)});var ZodSymbol=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.symbol){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodSymbol.create=params=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(params)});var ZodUndefined=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.undefined){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodUndefined.create=params=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(params)});var ZodNull=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.null){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodNull.create=params=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(params)});var ZodAny=class extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(input){return OK(input.data)}};ZodAny.create=params=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(params)});var ZodUnknown=class extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(input){return OK(input.data)}};ZodUnknown.create=params=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(params)});var ZodNever=class extends ZodType{_parse(input){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:ctx.parsedType}),INVALID}};ZodNever.create=params=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(params)});var ZodVoid=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.undefined){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodVoid.create=params=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(params)});var ZodArray=class ZodArray extends ZodType{_parse(input){let{ctx,status}=this._processInputParams(input),def$1=this._def;if(ctx.parsedType!==ZodParsedType.array)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:ctx.parsedType}),INVALID;if(def$1.exactLength!==null){let tooBig=ctx.data.length>def$1.exactLength.value,tooSmall=ctx.data.lengthdef$1.maxLength.value&&(addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:def$1.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:def$1.maxLength.message}),status.dirty()),ctx.common.async)return Promise.all([...ctx.data].map((item,i$1)=>def$1.type._parseAsync(new ParseInputLazyPath(ctx,item,ctx.path,i$1)))).then(result$1=>ParseStatus.mergeArray(status,result$1));let result=[...ctx.data].map((item,i$1)=>def$1.type._parseSync(new ParseInputLazyPath(ctx,item,ctx.path,i$1)));return ParseStatus.mergeArray(status,result)}get element(){return this._def.type}min(minLength,message$1){return new ZodArray({...this._def,minLength:{value:minLength,message:errorUtil.toString(message$1)}})}max(maxLength,message$1){return new ZodArray({...this._def,maxLength:{value:maxLength,message:errorUtil.toString(message$1)}})}length(len,message$1){return new ZodArray({...this._def,exactLength:{value:len,message:errorUtil.toString(message$1)}})}nonempty(message$1){return this.min(1,message$1)}};ZodArray.create=(schema,params)=>new ZodArray({type:schema,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(params)});function deepPartialify(schema){if(schema instanceof ZodObject){let newShape={};for(let key$1 in schema.shape){let fieldSchema=schema.shape[key$1];newShape[key$1]=ZodOptional.create(deepPartialify(fieldSchema))}return new ZodObject({...schema._def,shape:()=>newShape})}else if(schema instanceof ZodArray)return new ZodArray({...schema._def,type:deepPartialify(schema.element)});else if(schema instanceof ZodOptional)return ZodOptional.create(deepPartialify(schema.unwrap()));else if(schema instanceof ZodNullable)return ZodNullable.create(deepPartialify(schema.unwrap()));else if(schema instanceof ZodTuple)return ZodTuple.create(schema.items.map(item=>deepPartialify(item)));else return schema}var ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let shape=this._def.shape(),keys$3=util.objectKeys(shape);return this._cached={shape,keys:keys$3},this._cached}_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.object){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:ctx$1.parsedType}),INVALID}let{status,ctx}=this._processInputParams(input),{shape,keys:shapeKeys}=this._getCached(),extraKeys=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys===`strip`))for(let key$1 in ctx.data)shapeKeys.includes(key$1)||extraKeys.push(key$1);let pairs=[];for(let key$1 of shapeKeys){let keyValidator=shape[key$1],value$1=ctx.data[key$1];pairs.push({key:{status:`valid`,value:key$1},value:keyValidator._parse(new ParseInputLazyPath(ctx,value$1,ctx.path,key$1)),alwaysSet:key$1 in ctx.data})}if(this._def.catchall instanceof ZodNever){let unknownKeys=this._def.unknownKeys;if(unknownKeys===`passthrough`)for(let key$1 of extraKeys)pairs.push({key:{status:`valid`,value:key$1},value:{status:`valid`,value:ctx.data[key$1]}});else if(unknownKeys===`strict`)extraKeys.length>0&&(addIssueToContext(ctx,{code:ZodIssueCode.unrecognized_keys,keys:extraKeys}),status.dirty());else if(unknownKeys!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let catchall=this._def.catchall;for(let key$1 of extraKeys){let value$1=ctx.data[key$1];pairs.push({key:{status:`valid`,value:key$1},value:catchall._parse(new ParseInputLazyPath(ctx,value$1,ctx.path,key$1)),alwaysSet:key$1 in ctx.data})}}return ctx.common.async?Promise.resolve().then(async()=>{let syncPairs=[];for(let pair of pairs){let key$1=await pair.key,value$1=await pair.value;syncPairs.push({key:key$1,value:value$1,alwaysSet:pair.alwaysSet})}return syncPairs}).then(syncPairs=>ParseStatus.mergeObjectSync(status,syncPairs)):ParseStatus.mergeObjectSync(status,pairs)}get shape(){return this._def.shape()}strict(message$1){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:`strict`,...message$1===void 0?{}:{errorMap:(issue,ctx)=>{var _this$_def$errorMap,_this$_def;let defaultError=(_this$_def$errorMap=(_this$_def=this._def).errorMap)?.call(_this$_def,issue,ctx).message??ctx.defaultError;return issue.code===`unrecognized_keys`?{message:errorUtil.errToObj(message$1).message??defaultError}:{message:defaultError}}}})}strip(){return new ZodObject({...this._def,unknownKeys:`strip`})}passthrough(){return new ZodObject({...this._def,unknownKeys:`passthrough`})}extend(augmentation){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...augmentation})})}merge(merging){let merged=new ZodObject({unknownKeys:merging._def.unknownKeys,catchall:merging._def.catchall,shape:()=>({...this._def.shape(),...merging._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject});return merged}setKey(key$1,schema){return this.augment({[key$1]:schema})}catchall(index$1){return new ZodObject({...this._def,catchall:index$1})}pick(mask){let shape={};for(let key$1 of util.objectKeys(mask))mask[key$1]&&this.shape[key$1]&&(shape[key$1]=this.shape[key$1]);return new ZodObject({...this._def,shape:()=>shape})}omit(mask){let shape={};for(let key$1 of util.objectKeys(this.shape))mask[key$1]||(shape[key$1]=this.shape[key$1]);return new ZodObject({...this._def,shape:()=>shape})}deepPartial(){return deepPartialify(this)}partial(mask){let newShape={};for(let key$1 of util.objectKeys(this.shape)){let fieldSchema=this.shape[key$1];mask&&!mask[key$1]?newShape[key$1]=fieldSchema:newShape[key$1]=fieldSchema.optional()}return new ZodObject({...this._def,shape:()=>newShape})}required(mask){let newShape={};for(let key$1 of util.objectKeys(this.shape))if(mask&&!mask[key$1])newShape[key$1]=this.shape[key$1];else{let fieldSchema=this.shape[key$1],newField=fieldSchema;for(;newField instanceof ZodOptional;)newField=newField._def.innerType;newShape[key$1]=newField}return new ZodObject({...this._def,shape:()=>newShape})}keyof(){return createZodEnum(util.objectKeys(this.shape))}};ZodObject.create=(shape,params)=>new ZodObject({shape:()=>shape,unknownKeys:`strip`,catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(params)}),ZodObject.strictCreate=(shape,params)=>new ZodObject({shape:()=>shape,unknownKeys:`strict`,catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(params)}),ZodObject.lazycreate=(shape,params)=>new ZodObject({shape,unknownKeys:`strip`,catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(params)});var ZodUnion=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),options$1=this._def.options;function handleResults(results){for(let result of results)if(result.result.status===`valid`)return result.result;for(let result of results)if(result.result.status===`dirty`)return ctx.common.issues.push(...result.ctx.common.issues),result.result;let unionErrors=results.map(result=>new ZodError(result.ctx.common.issues));return addIssueToContext(ctx,{code:ZodIssueCode.invalid_union,unionErrors}),INVALID}if(ctx.common.async)return Promise.all(options$1.map(async option$1=>{let childCtx={...ctx,common:{...ctx.common,issues:[]},parent:null};return{result:await option$1._parseAsync({data:ctx.data,path:ctx.path,parent:childCtx}),ctx:childCtx}})).then(handleResults);{let dirty,issues=[];for(let option$1 of options$1){let childCtx={...ctx,common:{...ctx.common,issues:[]},parent:null},result=option$1._parseSync({data:ctx.data,path:ctx.path,parent:childCtx});if(result.status===`valid`)return result;result.status===`dirty`&&!dirty&&(dirty={result,ctx:childCtx}),childCtx.common.issues.length&&issues.push(childCtx.common.issues)}if(dirty)return ctx.common.issues.push(...dirty.ctx.common.issues),dirty.result;let unionErrors=issues.map(issues$1=>new ZodError(issues$1));return addIssueToContext(ctx,{code:ZodIssueCode.invalid_union,unionErrors}),INVALID}}get options(){return this._def.options}};ZodUnion.create=(types$1,params)=>new ZodUnion({options:types$1,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(params)});const getDiscriminator=type=>type instanceof ZodLazy?getDiscriminator(type.schema):type instanceof ZodEffects?getDiscriminator(type.innerType()):type instanceof ZodLiteral?[type.value]:type instanceof ZodEnum?type.options:type instanceof ZodNativeEnum?util.objectValues(type.enum):type instanceof ZodDefault?getDiscriminator(type._def.innerType):type instanceof ZodUndefined?[void 0]:type instanceof ZodNull?[null]:type instanceof ZodOptional?[void 0,...getDiscriminator(type.unwrap())]:type instanceof ZodNullable?[null,...getDiscriminator(type.unwrap())]:type instanceof ZodBranded||type instanceof ZodReadonly?getDiscriminator(type.unwrap()):type instanceof ZodCatch?getDiscriminator(type._def.innerType):[];var ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(input){let{ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.object)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:ctx.parsedType}),INVALID;let discriminator=this.discriminator,discriminatorValue=ctx.data[discriminator],option$1=this.optionsMap.get(discriminatorValue);return option$1?ctx.common.async?option$1._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}):option$1._parseSync({data:ctx.data,path:ctx.path,parent:ctx}):(addIssueToContext(ctx,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[discriminator]}),INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(discriminator,options$1,params){let optionsMap=new Map;for(let type of options$1){let discriminatorValues=getDiscriminator(type.shape[discriminator]);if(!discriminatorValues.length)throw Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);for(let value$1 of discriminatorValues){if(optionsMap.has(value$1))throw Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value$1)}`);optionsMap.set(value$1,type)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator,options:options$1,optionsMap,...processCreateParams(params)})}};function mergeValues(a$2,b$3){let aType=getParsedType(a$2),bType=getParsedType(b$3);if(a$2===b$3)return{valid:!0,data:a$2};if(aType===ZodParsedType.object&&bType===ZodParsedType.object){let bKeys=util.objectKeys(b$3),sharedKeys=util.objectKeys(a$2).filter(key$1=>bKeys.indexOf(key$1)!==-1),newObj={...a$2,...b$3};for(let key$1 of sharedKeys){let sharedValue=mergeValues(a$2[key$1],b$3[key$1]);if(!sharedValue.valid)return{valid:!1};newObj[key$1]=sharedValue.data}return{valid:!0,data:newObj}}else if(aType===ZodParsedType.array&&bType===ZodParsedType.array){if(a$2.length!==b$3.length)return{valid:!1};let newArray=[];for(let index$1=0;index$1{if(isAborted(parsedLeft)||isAborted(parsedRight))return INVALID;let merged=mergeValues(parsedLeft.value,parsedRight.value);return merged.valid?((isDirty(parsedLeft)||isDirty(parsedRight))&&status.dirty(),{status:status.value,value:merged.data}):(addIssueToContext(ctx,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return ctx.common.async?Promise.all([this._def.left._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}),this._def.right._parseAsync({data:ctx.data,path:ctx.path,parent:ctx})]).then(([left,right])=>handleParsed(left,right)):handleParsed(this._def.left._parseSync({data:ctx.data,path:ctx.path,parent:ctx}),this._def.right._parseSync({data:ctx.data,path:ctx.path,parent:ctx}))}};ZodIntersection.create=(left,right,params)=>new ZodIntersection({left,right,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(params)});var ZodTuple=class ZodTuple extends ZodType{_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.array)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:ctx.parsedType}),INVALID;if(ctx.data.lengththis._def.items.length&&(addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),status.dirty());let items=[...ctx.data].map((item,itemIndex)=>{let schema=this._def.items[itemIndex]||this._def.rest;return schema?schema._parse(new ParseInputLazyPath(ctx,item,ctx.path,itemIndex)):null}).filter(x$3=>!!x$3);return ctx.common.async?Promise.all(items).then(results=>ParseStatus.mergeArray(status,results)):ParseStatus.mergeArray(status,items)}get items(){return this._def.items}rest(rest){return new ZodTuple({...this._def,rest})}};ZodTuple.create=(schemas,params)=>{if(!Array.isArray(schemas))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new ZodTuple({items:schemas,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(params)})};var ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.object)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:ctx.parsedType}),INVALID;let pairs=[],keyType=this._def.keyType,valueType=this._def.valueType;for(let key$1 in ctx.data)pairs.push({key:keyType._parse(new ParseInputLazyPath(ctx,key$1,ctx.path,key$1)),value:valueType._parse(new ParseInputLazyPath(ctx,ctx.data[key$1],ctx.path,key$1)),alwaysSet:key$1 in ctx.data});return ctx.common.async?ParseStatus.mergeObjectAsync(status,pairs):ParseStatus.mergeObjectSync(status,pairs)}get element(){return this._def.valueType}static create(first,second,third){return second instanceof ZodType?new ZodRecord({keyType:first,valueType:second,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(third)}):new ZodRecord({keyType:ZodString.create(),valueType:first,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(second)})}},ZodMap=class extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.map)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:ctx.parsedType}),INVALID;let keyType=this._def.keyType,valueType=this._def.valueType,pairs=[...ctx.data.entries()].map(([key$1,value$1],index$1)=>({key:keyType._parse(new ParseInputLazyPath(ctx,key$1,ctx.path,[index$1,`key`])),value:valueType._parse(new ParseInputLazyPath(ctx,value$1,ctx.path,[index$1,`value`]))}));if(ctx.common.async){let finalMap=new Map;return Promise.resolve().then(async()=>{for(let pair of pairs){let key$1=await pair.key,value$1=await pair.value;if(key$1.status===`aborted`||value$1.status===`aborted`)return INVALID;(key$1.status===`dirty`||value$1.status===`dirty`)&&status.dirty(),finalMap.set(key$1.value,value$1.value)}return{status:status.value,value:finalMap}})}else{let finalMap=new Map;for(let pair of pairs){let key$1=pair.key,value$1=pair.value;if(key$1.status===`aborted`||value$1.status===`aborted`)return INVALID;(key$1.status===`dirty`||value$1.status===`dirty`)&&status.dirty(),finalMap.set(key$1.value,value$1.value)}return{status:status.value,value:finalMap}}}};ZodMap.create=(keyType,valueType,params)=>new ZodMap({valueType,keyType,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(params)});var ZodSet=class ZodSet extends ZodType{_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.set)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:ctx.parsedType}),INVALID;let def$1=this._def;def$1.minSize!==null&&ctx.data.sizedef$1.maxSize.value&&(addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:def$1.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:def$1.maxSize.message}),status.dirty());let valueType=this._def.valueType;function finalizeSet(elements$1){let parsedSet=new Set;for(let element$3 of elements$1){if(element$3.status===`aborted`)return INVALID;element$3.status===`dirty`&&status.dirty(),parsedSet.add(element$3.value)}return{status:status.value,value:parsedSet}}let elements=[...ctx.data.values()].map((item,i$1)=>valueType._parse(new ParseInputLazyPath(ctx,item,ctx.path,i$1)));return ctx.common.async?Promise.all(elements).then(elements$1=>finalizeSet(elements$1)):finalizeSet(elements)}min(minSize,message$1){return new ZodSet({...this._def,minSize:{value:minSize,message:errorUtil.toString(message$1)}})}max(maxSize,message$1){return new ZodSet({...this._def,maxSize:{value:maxSize,message:errorUtil.toString(message$1)}})}size(size$1,message$1){return this.min(size$1,message$1).max(size$1,message$1)}nonempty(message$1){return this.min(1,message$1)}};ZodSet.create=(valueType,params)=>new ZodSet({valueType,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(params)});var ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(input){let{ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.function)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:ctx.parsedType}),INVALID;function makeArgsIssue(args,error){return makeIssue({data:args,path:ctx.path,errorMaps:[ctx.common.contextualErrorMap,ctx.schemaErrorMap,getErrorMap(),en_default$1].filter(x$3=>!!x$3),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:error}})}function makeReturnsIssue(returns,error){return makeIssue({data:returns,path:ctx.path,errorMaps:[ctx.common.contextualErrorMap,ctx.schemaErrorMap,getErrorMap(),en_default$1].filter(x$3=>!!x$3),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:error}})}let params={errorMap:ctx.common.contextualErrorMap},fn$5=ctx.data;if(this._def.returns instanceof ZodPromise){let me$1=this;return OK(async function(...args){let error=new ZodError([]),parsedArgs=await me$1._def.args.parseAsync(args,params).catch(e$3=>{throw error.addIssue(makeArgsIssue(args,e$3)),error}),result=await Reflect.apply(fn$5,this,parsedArgs),parsedReturns=await me$1._def.returns._def.type.parseAsync(result,params).catch(e$3=>{throw error.addIssue(makeReturnsIssue(result,e$3)),error});return parsedReturns})}else{let me$1=this;return OK(function(...args){let parsedArgs=me$1._def.args.safeParse(args,params);if(!parsedArgs.success)throw new ZodError([makeArgsIssue(args,parsedArgs.error)]);let result=Reflect.apply(fn$5,this,parsedArgs.data),parsedReturns=me$1._def.returns.safeParse(result,params);if(!parsedReturns.success)throw new ZodError([makeReturnsIssue(result,parsedReturns.error)]);return parsedReturns.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...items){return new ZodFunction({...this._def,args:ZodTuple.create(items).rest(ZodUnknown.create())})}returns(returnType){return new ZodFunction({...this._def,returns:returnType})}implement(func){let validatedFunc=this.parse(func);return validatedFunc}strictImplement(func){let validatedFunc=this.parse(func);return validatedFunc}static create(args,returns,params){return new ZodFunction({args:args||ZodTuple.create([]).rest(ZodUnknown.create()),returns:returns||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(params)})}},ZodLazy=class extends ZodType{get schema(){return this._def.getter()}_parse(input){let{ctx}=this._processInputParams(input),lazySchema=this._def.getter();return lazySchema._parse({data:ctx.data,path:ctx.path,parent:ctx})}};ZodLazy.create=(getter,params)=>new ZodLazy({getter,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(params)});var ZodLiteral=class extends ZodType{_parse(input){if(input.data!==this._def.value){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{received:ctx.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:`valid`,value:input.data}}get value(){return this._def.value}};ZodLiteral.create=(value$1,params)=>new ZodLiteral({value:value$1,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(params)});function createZodEnum(values,params){return new ZodEnum({values,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(params)})}var ZodEnum=class ZodEnum extends ZodType{_parse(input){if(typeof input.data!=`string`){let ctx=this._getOrReturnCtx(input),expectedValues=this._def.values;return addIssueToContext(ctx,{expected:util.joinValues(expectedValues),received:ctx.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||=new Set(this._def.values),!this._cache.has(input.data)){let ctx=this._getOrReturnCtx(input),expectedValues=this._def.values;return addIssueToContext(ctx,{received:ctx.data,code:ZodIssueCode.invalid_enum_value,options:expectedValues}),INVALID}return OK(input.data)}get options(){return this._def.values}get enum(){let enumValues={};for(let val of this._def.values)enumValues[val]=val;return enumValues}get Values(){let enumValues={};for(let val of this._def.values)enumValues[val]=val;return enumValues}get Enum(){let enumValues={};for(let val of this._def.values)enumValues[val]=val;return enumValues}extract(values,newDef=this._def){return ZodEnum.create(values,{...this._def,...newDef})}exclude(values,newDef=this._def){return ZodEnum.create(this.options.filter(opt=>!values.includes(opt)),{...this._def,...newDef})}};ZodEnum.create=createZodEnum;var ZodNativeEnum=class extends ZodType{_parse(input){let nativeEnumValues=util.getValidEnumValues(this._def.values),ctx=this._getOrReturnCtx(input);if(ctx.parsedType!==ZodParsedType.string&&ctx.parsedType!==ZodParsedType.number){let expectedValues=util.objectValues(nativeEnumValues);return addIssueToContext(ctx,{expected:util.joinValues(expectedValues),received:ctx.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||=new Set(util.getValidEnumValues(this._def.values)),!this._cache.has(input.data)){let expectedValues=util.objectValues(nativeEnumValues);return addIssueToContext(ctx,{received:ctx.data,code:ZodIssueCode.invalid_enum_value,options:expectedValues}),INVALID}return OK(input.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(values,params)=>new ZodNativeEnum({values,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(params)});var ZodPromise=class extends ZodType{unwrap(){return this._def.type}_parse(input){let{ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.promise&&ctx.common.async===!1)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:ctx.parsedType}),INVALID;let promisified=ctx.parsedType===ZodParsedType.promise?ctx.data:Promise.resolve(ctx.data);return OK(promisified.then(data$10=>this._def.type.parseAsync(data$10,{path:ctx.path,errorMap:ctx.common.contextualErrorMap})))}};ZodPromise.create=(schema,params)=>new ZodPromise({type:schema,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(params)});var ZodEffects=class extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(input){let{status,ctx}=this._processInputParams(input),effect$1=this._def.effect||null,checkCtx={addIssue:arg=>{addIssueToContext(ctx,arg),arg.fatal?status.abort():status.dirty()},get path(){return ctx.path}};if(checkCtx.addIssue=checkCtx.addIssue.bind(checkCtx),effect$1.type===`preprocess`){let processed=effect$1.transform(ctx.data,checkCtx);if(ctx.common.async)return Promise.resolve(processed).then(async processed$1=>{if(status.value===`aborted`)return INVALID;let result=await this._def.schema._parseAsync({data:processed$1,path:ctx.path,parent:ctx});return result.status===`aborted`?INVALID:result.status===`dirty`||status.value===`dirty`?DIRTY(result.value):result});{if(status.value===`aborted`)return INVALID;let result=this._def.schema._parseSync({data:processed,path:ctx.path,parent:ctx});return result.status===`aborted`?INVALID:result.status===`dirty`||status.value===`dirty`?DIRTY(result.value):result}}if(effect$1.type===`refinement`){let executeRefinement=acc=>{let result=effect$1.refinement(acc,checkCtx);if(ctx.common.async)return Promise.resolve(result);if(result instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return acc};if(ctx.common.async===!1){let inner=this._def.schema._parseSync({data:ctx.data,path:ctx.path,parent:ctx});return inner.status===`aborted`?INVALID:(inner.status===`dirty`&&status.dirty(),executeRefinement(inner.value),{status:status.value,value:inner.value})}else return this._def.schema._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}).then(inner=>inner.status===`aborted`?INVALID:(inner.status===`dirty`&&status.dirty(),executeRefinement(inner.value).then(()=>({status:status.value,value:inner.value}))))}if(effect$1.type===`transform`)if(ctx.common.async===!1){let base=this._def.schema._parseSync({data:ctx.data,path:ctx.path,parent:ctx});if(!isValid(base))return INVALID;let result=effect$1.transform(base.value,checkCtx);if(result instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:status.value,value:result}}else return this._def.schema._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}).then(base=>isValid(base)?Promise.resolve(effect$1.transform(base.value,checkCtx)).then(result=>({status:status.value,value:result})):INVALID);util.assertNever(effect$1)}};ZodEffects.create=(schema,effect$1,params)=>new ZodEffects({schema,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:effect$1,...processCreateParams(params)}),ZodEffects.createWithPreprocess=(preprocess$1,schema,params)=>new ZodEffects({schema,effect:{type:`preprocess`,transform:preprocess$1},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(params)});var ZodOptional=class extends ZodType{_parse(input){let parsedType=this._getType(input);return parsedType===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(input)}unwrap(){return this._def.innerType}};ZodOptional.create=(type,params)=>new ZodOptional({innerType:type,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(params)});var ZodNullable=class extends ZodType{_parse(input){let parsedType=this._getType(input);return parsedType===ZodParsedType.null?OK(null):this._def.innerType._parse(input)}unwrap(){return this._def.innerType}};ZodNullable.create=(type,params)=>new ZodNullable({innerType:type,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(params)});var ZodDefault=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),data$10=ctx.data;return ctx.parsedType===ZodParsedType.undefined&&(data$10=this._def.defaultValue()),this._def.innerType._parse({data:data$10,path:ctx.path,parent:ctx})}removeDefault(){return this._def.innerType}};ZodDefault.create=(type,params)=>new ZodDefault({innerType:type,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof params.default==`function`?params.default:()=>params.default,...processCreateParams(params)});var ZodCatch=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),newCtx={...ctx,common:{...ctx.common,issues:[]}},result=this._def.innerType._parse({data:newCtx.data,path:newCtx.path,parent:{...newCtx}});return isAsync(result)?result.then(result$1=>({status:`valid`,value:result$1.status===`valid`?result$1.value:this._def.catchValue({get error(){return new ZodError(newCtx.common.issues)},input:newCtx.data})})):{status:`valid`,value:result.status===`valid`?result.value:this._def.catchValue({get error(){return new ZodError(newCtx.common.issues)},input:newCtx.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(type,params)=>new ZodCatch({innerType:type,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof params.catch==`function`?params.catch:()=>params.catch,...processCreateParams(params)});var ZodNaN=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.nan){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:ctx.parsedType}),INVALID}return{status:`valid`,value:input.data}}};ZodNaN.create=params=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(params)});const BRAND=Symbol(`zod_brand`);var ZodBranded=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),data$10=ctx.data;return this._def.type._parse({data:data$10,path:ctx.path,parent:ctx})}unwrap(){return this._def.type}},ZodPipeline=class ZodPipeline extends ZodType{_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.common.async){let handleAsync=async()=>{let inResult=await this._def.in._parseAsync({data:ctx.data,path:ctx.path,parent:ctx});return inResult.status===`aborted`?INVALID:inResult.status===`dirty`?(status.dirty(),DIRTY(inResult.value)):this._def.out._parseAsync({data:inResult.value,path:ctx.path,parent:ctx})};return handleAsync()}else{let inResult=this._def.in._parseSync({data:ctx.data,path:ctx.path,parent:ctx});return inResult.status===`aborted`?INVALID:inResult.status===`dirty`?(status.dirty(),{status:`dirty`,value:inResult.value}):this._def.out._parseSync({data:inResult.value,path:ctx.path,parent:ctx})}}static create(a$2,b$3){return new ZodPipeline({in:a$2,out:b$3,typeName:ZodFirstPartyTypeKind.ZodPipeline})}},ZodReadonly=class extends ZodType{_parse(input){let result=this._def.innerType._parse(input),freeze=data$10=>(isValid(data$10)&&(data$10.value=Object.freeze(data$10.value)),data$10);return isAsync(result)?result.then(data$10=>freeze(data$10)):freeze(result)}unwrap(){return this._def.innerType}};ZodReadonly.create=(type,params)=>new ZodReadonly({innerType:type,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(params)});const late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind;(function(ZodFirstPartyTypeKind$1){ZodFirstPartyTypeKind$1.ZodString=`ZodString`,ZodFirstPartyTypeKind$1.ZodNumber=`ZodNumber`,ZodFirstPartyTypeKind$1.ZodNaN=`ZodNaN`,ZodFirstPartyTypeKind$1.ZodBigInt=`ZodBigInt`,ZodFirstPartyTypeKind$1.ZodBoolean=`ZodBoolean`,ZodFirstPartyTypeKind$1.ZodDate=`ZodDate`,ZodFirstPartyTypeKind$1.ZodSymbol=`ZodSymbol`,ZodFirstPartyTypeKind$1.ZodUndefined=`ZodUndefined`,ZodFirstPartyTypeKind$1.ZodNull=`ZodNull`,ZodFirstPartyTypeKind$1.ZodAny=`ZodAny`,ZodFirstPartyTypeKind$1.ZodUnknown=`ZodUnknown`,ZodFirstPartyTypeKind$1.ZodNever=`ZodNever`,ZodFirstPartyTypeKind$1.ZodVoid=`ZodVoid`,ZodFirstPartyTypeKind$1.ZodArray=`ZodArray`,ZodFirstPartyTypeKind$1.ZodObject=`ZodObject`,ZodFirstPartyTypeKind$1.ZodUnion=`ZodUnion`,ZodFirstPartyTypeKind$1.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,ZodFirstPartyTypeKind$1.ZodIntersection=`ZodIntersection`,ZodFirstPartyTypeKind$1.ZodTuple=`ZodTuple`,ZodFirstPartyTypeKind$1.ZodRecord=`ZodRecord`,ZodFirstPartyTypeKind$1.ZodMap=`ZodMap`,ZodFirstPartyTypeKind$1.ZodSet=`ZodSet`,ZodFirstPartyTypeKind$1.ZodFunction=`ZodFunction`,ZodFirstPartyTypeKind$1.ZodLazy=`ZodLazy`,ZodFirstPartyTypeKind$1.ZodLiteral=`ZodLiteral`,ZodFirstPartyTypeKind$1.ZodEnum=`ZodEnum`,ZodFirstPartyTypeKind$1.ZodEffects=`ZodEffects`,ZodFirstPartyTypeKind$1.ZodNativeEnum=`ZodNativeEnum`,ZodFirstPartyTypeKind$1.ZodOptional=`ZodOptional`,ZodFirstPartyTypeKind$1.ZodNullable=`ZodNullable`,ZodFirstPartyTypeKind$1.ZodDefault=`ZodDefault`,ZodFirstPartyTypeKind$1.ZodCatch=`ZodCatch`,ZodFirstPartyTypeKind$1.ZodPromise=`ZodPromise`,ZodFirstPartyTypeKind$1.ZodBranded=`ZodBranded`,ZodFirstPartyTypeKind$1.ZodPipeline=`ZodPipeline`,ZodFirstPartyTypeKind$1.ZodReadonly=`ZodReadonly`})(ZodFirstPartyTypeKind||={});const stringType=ZodString.create,numberType=ZodNumber.create,nanType=ZodNaN.create,bigIntType=ZodBigInt.create,booleanType=ZodBoolean.create,dateType=ZodDate.create,symbolType=ZodSymbol.create,undefinedType=ZodUndefined.create,nullType=ZodNull.create,anyType=ZodAny.create,unknownType=ZodUnknown.create,neverType=ZodNever.create,voidType=ZodVoid.create,arrayType=ZodArray.create,objectType=ZodObject.create,strictObjectType=ZodObject.strictCreate,unionType=ZodUnion.create,discriminatedUnionType=ZodDiscriminatedUnion.create,intersectionType=ZodIntersection.create,tupleType=ZodTuple.create,recordType=ZodRecord.create,mapType=ZodMap.create,setType=ZodSet.create,functionType=ZodFunction.create,lazyType=ZodLazy.create,literalType=ZodLiteral.create,enumType=ZodEnum.create,nativeEnumType=ZodNativeEnum.create,promiseType=ZodPromise.create,effectsType=ZodEffects.create,optionalType=ZodOptional.create,nullableType=ZodNullable.create,preprocessType=ZodEffects.createWithPreprocess,pipelineType=ZodPipeline.create,tools$1=[tool({name:`debug_random_number`,description:`Generate a random number between 0 and 1`,execute:async()=>new Promise(resolve$1=>{setTimeout(()=>{resolve$1(Math.random().toString())},1e3)}),parameters:objectType({})})],debug=async()=>Promise.all(tools$1);function __classPrivateFieldGet(receiver,state,kind,f$3){if(kind===`a`&&!f$3)throw TypeError(`Private accessor was defined without a getter`);if(typeof state==`function`?receiver!==state||!f$3:!state.has(receiver))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return kind===`m`?f$3:kind===`a`?f$3.call(receiver):f$3?f$3.value:state.get(receiver)}function __classPrivateFieldSet(receiver,state,value$1,kind,f$3){if(kind===`m`)throw TypeError(`Private method is not writable`);if(kind===`a`&&!f$3)throw TypeError(`Private accessor was defined without a setter`);if(typeof state==`function`?receiver!==state||!f$3:!state.has(receiver))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return kind===`a`?f$3.call(receiver,value$1):f$3?f$3.value=value$1:state.set(receiver,value$1),value$1}var _Channel_onmessage,_Channel_nextMessageIndex,_Channel_pendingMessages,_Channel_messageEndIndex,_Resource_rid;const SERIALIZE_TO_IPC_FN=`__TAURI_TO_IPC_KEY__`;function transformCallback(callback,once=!1){return window.__TAURI_INTERNALS__.transformCallback(callback,once)}var Channel=class{constructor(onmessage){_Channel_onmessage.set(this,void 0),_Channel_nextMessageIndex.set(this,0),_Channel_pendingMessages.set(this,[]),_Channel_messageEndIndex.set(this,void 0),__classPrivateFieldSet(this,_Channel_onmessage,onmessage||(()=>{}),`f`),this.id=transformCallback(rawMessage=>{let index$1=rawMessage.index;if(`end`in rawMessage){index$1==__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)?this.cleanupCallback():__classPrivateFieldSet(this,_Channel_messageEndIndex,index$1,`f`);return}let message$1=rawMessage.message;if(index$1==__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)){for(__classPrivateFieldGet(this,_Channel_onmessage,`f`).call(this,message$1),__classPrivateFieldSet(this,_Channel_nextMessageIndex,__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)+1,`f`);__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)in __classPrivateFieldGet(this,_Channel_pendingMessages,`f`);){let message$2=__classPrivateFieldGet(this,_Channel_pendingMessages,`f`)[__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)];__classPrivateFieldGet(this,_Channel_onmessage,`f`).call(this,message$2),delete __classPrivateFieldGet(this,_Channel_pendingMessages,`f`)[__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)],__classPrivateFieldSet(this,_Channel_nextMessageIndex,__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)+1,`f`)}__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)===__classPrivateFieldGet(this,_Channel_messageEndIndex,`f`)&&this.cleanupCallback()}else __classPrivateFieldGet(this,_Channel_pendingMessages,`f`)[index$1]=message$1})}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}set onmessage(handler){__classPrivateFieldSet(this,_Channel_onmessage,handler,`f`)}get onmessage(){return __classPrivateFieldGet(this,_Channel_onmessage,`f`)}[(_Channel_onmessage=new WeakMap,_Channel_nextMessageIndex=new WeakMap,_Channel_pendingMessages=new WeakMap,_Channel_messageEndIndex=new WeakMap,SERIALIZE_TO_IPC_FN)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[SERIALIZE_TO_IPC_FN]()}};async function invoke(cmd,args={},options$1){return window.__TAURI_INTERNALS__.invoke(cmd,args,options$1)}_Resource_rid=new WeakMap;async function connectServer(command,args){await invoke(`plugin:mcp|connect_server`,{command,args})}async function disconnectServer(){await invoke(`plugin:mcp|disconnect_server`)}async function listTools(){return await invoke(`plugin:mcp|list_tools`)}async function callTool(name$2,args){return await invoke(`plugin:mcp|call_tool`,{name:name$2,args})}const tools=[tool({name:`mcp_list_tools`,description:`List all tools available on the MCP server`,execute:async(_$1,__)=>await listTools(),parameters:objectType({})}),tool({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,args})=>(await connectServer(command,args),`success`),parameters:objectType({command:stringType().describe(`The command to connect to the MCP server`),args:arrayType(stringType()).describe(`The arguments to pass to the MCP server`)})}),tool({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 disconnectServer(),`success`),parameters:objectType({})}),tool({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:name$2,parameters})=>{let parametersObject=Object.fromEntries(parameters.map(({name:name$3,value:value$1})=>[name$3,value$1])),result=await callTool(name$2,parametersObject);return result},parameters:objectType({name:stringType().describe(`The name of the tool to call`),parameters:arrayType(objectType({name:stringType().describe(`The name of the parameter`),value:unionType([stringType(),numberType(),booleanType(),objectType({})]).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`)})})],mcp=async()=>Promise.all(tools),useLLM=defineStore(`llm`,()=>{async function stream(model,chatProvider,messages,options$1){let headers=options$1?.headers;return await streamText({...chatProvider.chat(model),maxSteps:10,messages:messages.map(msg=>({...msg,content:msg.role===`error`?`User encountered error: ${msg.content}`:msg.content,role:msg.role===`error`?`user`:msg.role})),headers,tools:[...await mcp(),...await debug()],onEvent(event){var _options$1$onToolCall,_options$1$onToolCall2;event.type===`tool-call`?options$1==null||(_options$1$onToolCall=options$1.onToolCall)==null||_options$1$onToolCall.call(options$1,event.toolCall):event.type===`tool-call-result`&&(options$1==null||(_options$1$onToolCall2=options$1.onToolCallResult)==null||_options$1$onToolCall2.call(options$1,{id:event.id,result:event.result}))}})}async function models$1(apiUrl,apiKey){if(apiUrl===``)return[];try{return await listModels({baseURL:apiUrl.endsWith(`/`)?apiUrl:`${apiUrl}/`,apiKey})}catch(err){if(String(err).includes(`Failed to construct 'URL': Invalid URL`))return[];throw err}}return{models:models$1,stream}}),inBrowser=typeof window<`u`,makeSymbol=(name$2,shareable=!1)=>shareable?Symbol.for(name$2):Symbol(name$2),generateFormatCacheKey=(locale,key$1,source)=>friendlyJSONstringify({l:locale,k:key$1,s:source}),friendlyJSONstringify=json=>JSON.stringify(json).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),isNumber=val=>typeof val==`number`&&isFinite(val),isDate=val=>toTypeString(val)===`[object Date]`,isRegExp=val=>toTypeString(val)===`[object RegExp]`,isEmptyObject=val=>isPlainObject(val)&&Object.keys(val).length===0,assign=Object.assign,_create=Object.create,create=(obj=null)=>_create(obj);let _globalThis;const getGlobalThis=()=>_globalThis||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:create();function escapeHtml(rawText){return rawText.replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(obj,key$1){return hasOwnProperty.call(obj,key$1)}const isArray$1=Array.isArray,isFunction=val=>typeof val==`function`,isString=val=>typeof val==`string`,isBoolean=val=>typeof val==`boolean`,isObject$2=val=>typeof val==`object`&&!!val,isPromise=val=>isObject$2(val)&&isFunction(val.then)&&isFunction(val.catch),objectToString=Object.prototype.toString,toTypeString=value$1=>objectToString.call(value$1),isPlainObject=val=>toTypeString(val)===`[object Object]`,toDisplayString$1=val=>val==null?``:isArray$1(val)||isPlainObject(val)&&val.toString===objectToString?JSON.stringify(val,null,2):String(val);function join(items,separator=``){return items.reduce((str,item,index$1)=>index$1===0?str+item:str+separator+item,``)}function warn(msg,err){typeof console<`u`&&(console.warn(`[intlify] `+msg),err&&console.warn(err.stack))}const isNotObjectOrIsArray=val=>!isObject$2(val)||isArray$1(val);function deepCopy(src,des){if(isNotObjectOrIsArray(src)||isNotObjectOrIsArray(des))throw Error(`Invalid value`);let stack$1=[{src,des}];for(;stack$1.length;){let{src:src$1,des:des$1}=stack$1.pop();Object.keys(src$1).forEach(key$1=>{key$1!==`__proto__`&&(isObject$2(src$1[key$1])&&!isObject$2(des$1[key$1])&&(des$1[key$1]=Array.isArray(src$1[key$1])?[]:create()),isNotObjectOrIsArray(des$1[key$1])||isNotObjectOrIsArray(src$1[key$1])?des$1[key$1]=src$1[key$1]:stack$1.push({src:src$1[key$1],des:des$1[key$1]}))})}}function createPosition(line,column,offset$1){return{line,column,offset:offset$1}}function createLocation(start,end,source){let loc={start,end};return source!=null&&(loc.source=source),loc}const CompileErrorCodes={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},COMPILE_ERROR_CODES_EXTEND_POINT=17,errorMessages$2={[CompileErrorCodes.EXPECTED_TOKEN]:`Expected token: '{0}'`,[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[CompileErrorCodes.EMPTY_PLACEHOLDER]:`Empty placeholder`,[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[CompileErrorCodes.INVALID_LINKED_FORMAT]:`Invalid linked format`,[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function createCompileError(code$1,loc,options$1={}){let{domain,messages,args}=options$1,msg=code$1,error=SyntaxError(String(msg));return error.code=code$1,loc&&(error.location=loc),error.domain=domain,error}function defaultOnError(error){throw error}const CHAR_SP=` `,CHAR_CR=`\r`,CHAR_LF=` +`);buffer$1=lines.pop()??``;for(let line of lines)try{let[chunk2,isEnd]=parseChunk(line);if(isEnd)break;chunk2&&controller.enqueue(chunk2)}catch(error){controller.error(error)}}})).pipeTo(new WritableStream({abort:reason=>{chunkCtrl.error(reason),stepCtrl.error(reason),textCtrl.error(reason)},close:()=>{var _options2$onEvent;(_options2$onEvent=options2.onEvent)?.call(options2,{finishReason,type:`finish`,usage})},write:async chunk=>{var _options2$onChunk,_step$choices;if((_options2$onChunk=options2.onChunk)?.call(options2,chunk),chunkCtrl.enqueue(chunk),usage=chunk.usage,chunk.choices==null||chunk.choices.length===0)return;let choice=chunk.choices[0];choice.delta.tool_calls&&(shouldOutputText=!1);let{delta,finish_reason,index:index$1,...rest}=choice,choiceSnapshot=(_step$choices=step.choices)[index$1]??(_step$choices[index$1]={finishReason:finish_reason,index:index$1,message:{role:`assistant`}});if(finish_reason!==void 0){if(finishReason=finish_reason,step.finishReason=finish_reason,choiceSnapshot.finishReason=finish_reason,finish_reason===`length`)throw new XSAIError$1(`length exceeded`);if(finish_reason===`content_filter`)throw new XSAIError$1(`content filter`)}Object.assign(choiceSnapshot,rest);let{content:content$2,refusal,tool_calls,...rests}=delta,message$1=choiceSnapshot.message;if(Object.assign(message$1,rests),refusal!==void 0){var _options2$onEvent2;message$1.refusal=(message$1.refusal||``)+(refusal||``),(_options2$onEvent2=options2.onEvent)?.call(options2,{refusal:message$1.refusal,type:`refusal`})}if(content$2!==void 0){var _options2$onEvent3;message$1.content=(message$1.content||``)+(content$2||``),shouldOutputText&&textCtrl?.enqueue(content$2),(_options2$onEvent3=options2.onEvent)?.call(options2,{text:content$2,type:`text-delta`})}for(let tool_call of tool_calls||[]){var _options2$onEvent4,_message$1$toolCalls;(_options2$onEvent4=options2.onEvent)?.call(options2,{toolCall:tool_call,type:`tool-call-delta`});let{function:fn$5,id,index:index2,type}=tool_call;message$1.toolCalls??={};let toolCall=(_message$1$toolCalls=message$1.toolCalls)[index2]??(_message$1$toolCalls[index2]={function:{arguments:``,name:fn$5.name,parsedArguments:{}},id,index:index2,type});toolCall.function.arguments+=fn$5.arguments}let state=choiceState[index$1]??(choiceState[index$1]={calledToolCallIndex:new Set,currentToolIndex:null,endedToolCallIndex:new Set,index:index$1,toolCallErrors:{},toolCallResults:{}});finish_reason&&state.currentToolIndex!==null&&endToolCallByIndex(state,state.currentToolIndex);for(let toolCall of delta.tool_calls||[])state.currentToolIndex!==toolCall.index&&state.currentToolIndex!==null&&endToolCallByIndex(state,state.currentToolIndex),state.calledToolCallIndex.add(toolCall.index),state.currentToolIndex=toolCall.index}}))),step.messages.push({content:(_step$choices$=step.choices[0])?.message.content??``,refusal:(_step$choices$2=step.choices[0])?.message.refusal,role:`assistant`,tool_calls:Object.values((_step$choices$3=step.choices[0])?.message.toolCalls??{}).map(toolCall=>({function:{arguments:toolCall.function.arguments,name:toolCall.function.name},id:toolCall.id,index:toolCall.index,type:toolCall.type}))}),await Promise.allSettled(step.choices.map(async choice=>{let state=choiceState[choice.index];return Promise.allSettled([...state.endedToolCallIndex].map(async idx=>{var _options2$onEvent5;let toolCall=choice.message.toolCalls[idx];if(step.toolCalls.push({args:toolCall.function.arguments,toolCallId:toolCall.id,toolCallType:`function`,toolName:toolCall.function.name}),!state.toolCallResults[toolCall.id]){(_options2$onEvent5=options2.onEvent)?.call(options2,{toolCall,type:`tool-call`});try{var _options2$onEvent6;let{completionToolResult,message:message$1,parsedArgs,result}=await executeTool({abortSignal:options2.abortSignal,messages:options2.messages,toolCall,tools:options2.tools});toolCall.function.parsedArguments=parsedArgs,state.toolCallResults[toolCall.id]=result,step.messages.push(message$1),step.toolResults.push(completionToolResult),(_options2$onEvent6=options2.onEvent)?.call(options2,{id:toolCall.id,result,type:`tool-call-result`})}catch(error){state.toolCallErrors[idx]=error}}}))})),step.stepType=determineStepType({finishReason:step.finishReason,maxSteps,stepsLength:steps$1.length,toolCallsLength:step.toolCalls.length}),steps$1.push(step),stepCtrl.enqueue(step),(_options2$onStepFinis=options2.onStepFinish)?.call(options2,step),!shouldOutputText)return async()=>stepOne({...options2,messages:step.messages})},invokeFunctionCalls=async()=>{var _options$1$onFinish;let ret=await stepOne(options$1);for(;typeof ret==`function`&&steps$1.length{chunkCtrl.error(error),stepCtrl.error(error),textCtrl.error(error)}),Promise.resolve({chunkStream,stepStream,textStream})},strictJsonSchema=schema=>({...schema,additionalProperties:!1}),missingDependenciesUrl=`https://xsai.js.org/docs/packages-top/xsschema#missing-dependencies`,tryImport=async(result,name$2)=>{try{return await result}catch{throw Error(`xsschema: Missing dependencies "${name$2}". see ${missingDependenciesUrl}`)}},getToJsonSchemaFn=async vendor=>{switch(vendor){case`arktype`:return __vitePreload(()=>import(`./arktype-C-GObzDh-o7JLSWxh.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`effect`:return __vitePreload(()=>import(`./effect-DBSVVF8G-BWPDDm8N.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`sury`:return __vitePreload(()=>import(`./sury-GtnkadyM-C8StDLTd.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`valibot`:return __vitePreload(()=>import(`./valibot-CbgwcZn_-BQJaJhae.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());case`zod`:return __vitePreload(()=>import(`./zod-CD8IEU5z-BhI_iR6h.js`),[]).then(async({getToJsonSchemaFn:getToJsonSchemaFn2})=>getToJsonSchemaFn2());default:throw Error(`xsschema: Unsupported schema vendor "${vendor}". see https://xsai.js.org/docs/packages-top/xsschema#unsupported-schema-vendor`)}},toJsonSchema=async schema=>getToJsonSchemaFn(schema[`~standard`].vendor).then(async toJsonSchema2=>toJsonSchema2(schema)),tool=async({description,execute,name:name$2,parameters})=>{let schema=await toJsonSchema(parameters);return{execute,function:{description,name:name$2,parameters:strictJsonSchema(schema),strict:!0},type:`function`}};var util;(function(util$1){util$1.assertEqual=_$2=>{};function assertIs(_arg){}util$1.assertIs=assertIs;function assertNever(_x$1){throw Error()}util$1.assertNever=assertNever,util$1.arrayToEnum=items=>{let obj={};for(let item of items)obj[item]=item;return obj},util$1.getValidEnumValues=obj=>{let validKeys=util$1.objectKeys(obj).filter(k$4=>typeof obj[obj[k$4]]!=`number`),filtered={};for(let k$4 of validKeys)filtered[k$4]=obj[k$4];return util$1.objectValues(filtered)},util$1.objectValues=obj=>util$1.objectKeys(obj).map(function(e$3){return obj[e$3]}),util$1.objectKeys=typeof Object.keys==`function`?obj=>Object.keys(obj):object=>{let keys$3=[];for(let key$1 in object)Object.prototype.hasOwnProperty.call(object,key$1)&&keys$3.push(key$1);return keys$3},util$1.find=(arr,checker)=>{for(let item of arr)if(checker(item))return item},util$1.isInteger=typeof Number.isInteger==`function`?val=>Number.isInteger(val):val=>typeof val==`number`&&Number.isFinite(val)&&Math.floor(val)===val;function joinValues(array,separator=` | `){return array.map(val=>typeof val==`string`?`'${val}'`:val).join(separator)}util$1.joinValues=joinValues,util$1.jsonStringifyReplacer=(_$2,value$1)=>typeof value$1==`bigint`?value$1.toString():value$1})(util||={});var objectUtil;(function(objectUtil$1){objectUtil$1.mergeShapes=(first,second)=>({...first,...second})})(objectUtil||={});const ZodParsedType=util.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),getParsedType=data$10=>{let t=typeof data$10;switch(t){case`undefined`:return ZodParsedType.undefined;case`string`:return ZodParsedType.string;case`number`:return Number.isNaN(data$10)?ZodParsedType.nan:ZodParsedType.number;case`boolean`:return ZodParsedType.boolean;case`function`:return ZodParsedType.function;case`bigint`:return ZodParsedType.bigint;case`symbol`:return ZodParsedType.symbol;case`object`:return Array.isArray(data$10)?ZodParsedType.array:data$10===null?ZodParsedType.null:data$10.then&&typeof data$10.then==`function`&&data$10.catch&&typeof data$10.catch==`function`?ZodParsedType.promise:typeof Map<`u`&&data$10 instanceof Map?ZodParsedType.map:typeof Set<`u`&&data$10 instanceof Set?ZodParsedType.set:typeof Date<`u`&&data$10 instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]);var ZodError=class ZodError extends Error{get errors(){return this.issues}constructor(issues){super(),this.issues=[],this.addIssue=sub=>{this.issues=[...this.issues,sub]},this.addIssues=(subs=[])=>{this.issues=[...this.issues,...subs]};let actualProto=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,actualProto):this.__proto__=actualProto,this.name=`ZodError`,this.issues=issues}format(_mapper){let mapper=_mapper||function(issue){return issue.message},fieldErrors={_errors:[]},processError=error=>{for(let issue of error.issues)if(issue.code===`invalid_union`)issue.unionErrors.map(processError);else if(issue.code===`invalid_return_type`)processError(issue.returnTypeError);else if(issue.code===`invalid_arguments`)processError(issue.argumentsError);else if(issue.path.length===0)fieldErrors._errors.push(mapper(issue));else{let curr=fieldErrors,i$1=0;for(;i$1issue.message){let fieldErrors={},formErrors=[];for(let sub of this.issues)if(sub.path.length>0){let firstEl=sub.path[0];fieldErrors[firstEl]=fieldErrors[firstEl]||[],fieldErrors[firstEl].push(mapper(sub))}else formErrors.push(mapper(sub));return{formErrors,fieldErrors}}get formErrors(){return this.flatten()}};ZodError.create=issues=>{let error=new ZodError(issues);return error};const errorMap=(issue,_ctx)=>{let message$1;switch(issue.code){case ZodIssueCode.invalid_type:message$1=issue.received===ZodParsedType.undefined?`Required`:`Expected ${issue.expected}, received ${issue.received}`;break;case ZodIssueCode.invalid_literal:message$1=`Invalid literal value, expected ${JSON.stringify(issue.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:message$1=`Unrecognized key(s) in object: ${util.joinValues(issue.keys,`, `)}`;break;case ZodIssueCode.invalid_union:message$1=`Invalid input`;break;case ZodIssueCode.invalid_union_discriminator:message$1=`Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;break;case ZodIssueCode.invalid_enum_value:message$1=`Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;break;case ZodIssueCode.invalid_arguments:message$1=`Invalid function arguments`;break;case ZodIssueCode.invalid_return_type:message$1=`Invalid function return type`;break;case ZodIssueCode.invalid_date:message$1=`Invalid date`;break;case ZodIssueCode.invalid_string:typeof issue.validation==`object`?`includes`in issue.validation?(message$1=`Invalid input: must include "${issue.validation.includes}"`,typeof issue.validation.position==`number`&&(message$1=`${message$1} at one or more positions greater than or equal to ${issue.validation.position}`)):`startsWith`in issue.validation?message$1=`Invalid input: must start with "${issue.validation.startsWith}"`:`endsWith`in issue.validation?message$1=`Invalid input: must end with "${issue.validation.endsWith}"`:util.assertNever(issue.validation):message$1=issue.validation===`regex`?`Invalid`:`Invalid ${issue.validation}`;break;case ZodIssueCode.too_small:message$1=issue.type===`array`?`Array must contain ${issue.exact?`exactly`:issue.inclusive?`at least`:`more than`} ${issue.minimum} element(s)`:issue.type===`string`?`String must contain ${issue.exact?`exactly`:issue.inclusive?`at least`:`over`} ${issue.minimum} character(s)`:issue.type===`number`||issue.type===`bigint`?`Number must be ${issue.exact?`exactly equal to `:issue.inclusive?`greater than or equal to `:`greater than `}${issue.minimum}`:issue.type===`date`?`Date must be ${issue.exact?`exactly equal to `:issue.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(issue.minimum))}`:`Invalid input`;break;case ZodIssueCode.too_big:message$1=issue.type===`array`?`Array must contain ${issue.exact?`exactly`:issue.inclusive?`at most`:`less than`} ${issue.maximum} element(s)`:issue.type===`string`?`String must contain ${issue.exact?`exactly`:issue.inclusive?`at most`:`under`} ${issue.maximum} character(s)`:issue.type===`number`?`Number must be ${issue.exact?`exactly`:issue.inclusive?`less than or equal to`:`less than`} ${issue.maximum}`:issue.type===`bigint`?`BigInt must be ${issue.exact?`exactly`:issue.inclusive?`less than or equal to`:`less than`} ${issue.maximum}`:issue.type===`date`?`Date must be ${issue.exact?`exactly`:issue.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(issue.maximum))}`:`Invalid input`;break;case ZodIssueCode.custom:message$1=`Invalid input`;break;case ZodIssueCode.invalid_intersection_types:message$1=`Intersection results could not be merged`;break;case ZodIssueCode.not_multiple_of:message$1=`Number must be a multiple of ${issue.multipleOf}`;break;case ZodIssueCode.not_finite:message$1=`Number must be finite`;break;default:message$1=_ctx.defaultError,util.assertNever(issue)}return{message:message$1}};var en_default$1=errorMap;let overrideErrorMap=en_default$1;function getErrorMap(){return overrideErrorMap}const makeIssue=params=>{let{data:data$10,path,errorMaps,issueData}=params,fullPath=[...path,...issueData.path||[]],fullIssue={...issueData,path:fullPath};if(issueData.message!==void 0)return{...issueData,path:fullPath,message:issueData.message};let errorMessage=``,maps=errorMaps.filter(m$2=>!!m$2).slice().reverse();for(let map of maps)errorMessage=map(fullIssue,{data:data$10,defaultError:errorMessage}).message;return{...issueData,path:fullPath,message:errorMessage}};function addIssueToContext(ctx,issueData){let overrideMap=getErrorMap(),issue=makeIssue({issueData,data:ctx.data,path:ctx.path,errorMaps:[ctx.common.contextualErrorMap,ctx.schemaErrorMap,overrideMap,overrideMap===en_default$1?void 0:en_default$1].filter(x$3=>!!x$3)});ctx.common.issues.push(issue)}var ParseStatus=class ParseStatus{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(status,results){let arrayValue=[];for(let s$1 of results){if(s$1.status===`aborted`)return INVALID;s$1.status===`dirty`&&status.dirty(),arrayValue.push(s$1.value)}return{status:status.value,value:arrayValue}}static async mergeObjectAsync(status,pairs){let syncPairs=[];for(let pair of pairs){let key$1=await pair.key,value$1=await pair.value;syncPairs.push({key:key$1,value:value$1})}return ParseStatus.mergeObjectSync(status,syncPairs)}static mergeObjectSync(status,pairs){let finalObject={};for(let pair of pairs){let{key:key$1,value:value$1}=pair;if(key$1.status===`aborted`||value$1.status===`aborted`)return INVALID;key$1.status===`dirty`&&status.dirty(),value$1.status===`dirty`&&status.dirty(),key$1.value!==`__proto__`&&(value$1.value!==void 0||pair.alwaysSet)&&(finalObject[key$1.value]=value$1.value)}return{status:status.value,value:finalObject}}};const INVALID=Object.freeze({status:`aborted`}),DIRTY=value$1=>({status:`dirty`,value:value$1}),OK=value$1=>({status:`valid`,value:value$1}),isAborted=x$3=>x$3.status===`aborted`,isDirty=x$3=>x$3.status===`dirty`,isValid=x$3=>x$3.status===`valid`,isAsync=x$3=>typeof Promise<`u`&&x$3 instanceof Promise;var errorUtil;(function(errorUtil$1){errorUtil$1.errToObj=message$1=>typeof message$1==`string`?{message:message$1}:message$1||{},errorUtil$1.toString=message$1=>typeof message$1==`string`?message$1:message$1?.message})(errorUtil||={});var ParseInputLazyPath=class{constructor(parent,value$1,path,key$1){this._cachedPath=[],this.parent=parent,this.data=value$1,this._path=path,this._key=key$1}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};const handleResult=(ctx,result)=>{if(isValid(result))return{success:!0,data:result.value};if(!ctx.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let error=new ZodError(ctx.common.issues);return this._error=error,this._error}}};function processCreateParams(params){if(!params)return{};let{errorMap:errorMap$1,invalid_type_error,required_error,description}=params;if(errorMap$1&&(invalid_type_error||required_error))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(errorMap$1)return{errorMap:errorMap$1,description};let customMap=(iss,ctx)=>{let{message:message$1}=params;return iss.code===`invalid_enum_value`?{message:message$1??ctx.defaultError}:ctx.data===void 0?{message:message$1??required_error??ctx.defaultError}:iss.code===`invalid_type`?{message:message$1??invalid_type_error??ctx.defaultError}:{message:ctx.defaultError}};return{errorMap:customMap,description}}var ZodType=class{get description(){return this._def.description}_getType(input){return getParsedType(input.data)}_getOrReturnCtx(input,ctx){return ctx||{common:input.parent.common,data:input.data,parsedType:getParsedType(input.data),schemaErrorMap:this._def.errorMap,path:input.path,parent:input.parent}}_processInputParams(input){return{status:new ParseStatus,ctx:{common:input.parent.common,data:input.data,parsedType:getParsedType(input.data),schemaErrorMap:this._def.errorMap,path:input.path,parent:input.parent}}}_parseSync(input){let result=this._parse(input);if(isAsync(result))throw Error(`Synchronous parse encountered promise.`);return result}_parseAsync(input){let result=this._parse(input);return Promise.resolve(result)}parse(data$10,params){let result=this.safeParse(data$10,params);if(result.success)return result.data;throw result.error}safeParse(data$10,params){let ctx={common:{issues:[],async:params?.async??!1,contextualErrorMap:params?.errorMap},path:params?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:data$10,parsedType:getParsedType(data$10)},result=this._parseSync({data:data$10,path:ctx.path,parent:ctx});return handleResult(ctx,result)}"~validate"(data$10){let ctx={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:data$10,parsedType:getParsedType(data$10)};if(!this[`~standard`].async)try{let result=this._parseSync({data:data$10,path:[],parent:ctx});return isValid(result)?{value:result.value}:{issues:ctx.common.issues}}catch(err){var _err$message;!(err==null||(_err$message=err.message)==null||(_err$message=_err$message.toLowerCase())==null)&&_err$message.includes(`encountered`)&&(this[`~standard`].async=!0),ctx.common={issues:[],async:!0}}return this._parseAsync({data:data$10,path:[],parent:ctx}).then(result=>isValid(result)?{value:result.value}:{issues:ctx.common.issues})}async parseAsync(data$10,params){let result=await this.safeParseAsync(data$10,params);if(result.success)return result.data;throw result.error}async safeParseAsync(data$10,params){let ctx={common:{issues:[],contextualErrorMap:params?.errorMap,async:!0},path:params?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:data$10,parsedType:getParsedType(data$10)},maybeAsyncResult=this._parse({data:data$10,path:ctx.path,parent:ctx}),result=await(isAsync(maybeAsyncResult)?maybeAsyncResult:Promise.resolve(maybeAsyncResult));return handleResult(ctx,result)}refine(check$1,message$1){let getIssueProperties=val=>typeof message$1==`string`||message$1===void 0?{message:message$1}:typeof message$1==`function`?message$1(val):message$1;return this._refinement((val,ctx)=>{let result=check$1(val),setError=()=>ctx.addIssue({code:ZodIssueCode.custom,...getIssueProperties(val)});return typeof Promise<`u`&&result instanceof Promise?result.then(data$10=>data$10?!0:(setError(),!1)):result?!0:(setError(),!1)})}refinement(check$1,refinementData){return this._refinement((val,ctx)=>check$1(val)?!0:(ctx.addIssue(typeof refinementData==`function`?refinementData(val,ctx):refinementData),!1))}_refinement(refinement){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:`refinement`,refinement}})}superRefine(refinement){return this._refinement(refinement)}constructor(def$1){this.spa=this.safeParseAsync,this._def=def$1,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:data$10=>this[`~validate`](data$10)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(option$1){return ZodUnion.create([this,option$1],this._def)}and(incoming){return ZodIntersection.create(this,incoming,this._def)}transform(transform$1){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:`transform`,transform:transform$1}})}default(def$1){let defaultValueFunc=typeof def$1==`function`?def$1:()=>def$1;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:defaultValueFunc,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(def$1){let catchValueFunc=typeof def$1==`function`?def$1:()=>def$1;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:catchValueFunc,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(description){let This=this.constructor;return new This({...this._def,description})}pipe(target$1){return ZodPipeline.create(this,target$1)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,dateRegex=RegExp(`^${dateRegexSource}$`);function timeRegexSource(args){let secondsRegexSource=`[0-5]\\d`;args.precision?secondsRegexSource=`${secondsRegexSource}\\.\\d{${args.precision}}`:args.precision??(secondsRegexSource=`${secondsRegexSource}(\\.\\d+)?`);let secondsQuantifier=args.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`}function timeRegex(args){return RegExp(`^${timeRegexSource(args)}$`)}function datetimeRegex(args){let regex=`${dateRegexSource}T${timeRegexSource(args)}`,opts=[];return opts.push(args.local?`Z?`:`Z`),args.offset&&opts.push(`([+-]\\d{2}:?\\d{2})`),regex=`${regex}(${opts.join(`|`)})`,RegExp(`^${regex}$`)}function isValidIP(ip,version$1){return!!((version$1===`v4`||!version$1)&&ipv4Regex.test(ip)||(version$1===`v6`||!version$1)&&ipv6Regex.test(ip))}function isValidJWT(jwt,alg){if(!jwtRegex.test(jwt))return!1;try{let[header]=jwt.split(`.`);if(!header)return!1;let base64=header.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(header.length+(4-header.length%4)%4,`=`),decoded=JSON.parse(atob(base64));return!(typeof decoded!=`object`||!decoded||`typ`in decoded&&decoded?.typ!==`JWT`||!decoded.alg||alg&&decoded.alg!==alg)}catch{return!1}}function isValidCidr(ip,version$1){return!!((version$1===`v4`||!version$1)&&ipv4CidrRegex.test(ip)||(version$1===`v6`||!version$1)&&ipv6CidrRegex.test(ip))}var ZodString=class ZodString extends ZodType{_parse(input){this._def.coerce&&(input.data=String(input.data));let parsedType=this._getType(input);if(parsedType!==ZodParsedType.string){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:ctx$1.parsedType}),INVALID}let status=new ParseStatus,ctx;for(let check$1 of this._def.checks)if(check$1.kind===`min`)input.data.lengthcheck$1.value&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:check$1.value,type:`string`,inclusive:!0,exact:!1,message:check$1.message}),status.dirty());else if(check$1.kind===`length`){let tooBig=input.data.length>check$1.value,tooSmall=input.data.lengthregex.test(data$10),{validation,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(message$1)})}_addCheck(check$1){return new ZodString({...this._def,checks:[...this._def.checks,check$1]})}email(message$1){return this._addCheck({kind:`email`,...errorUtil.errToObj(message$1)})}url(message$1){return this._addCheck({kind:`url`,...errorUtil.errToObj(message$1)})}emoji(message$1){return this._addCheck({kind:`emoji`,...errorUtil.errToObj(message$1)})}uuid(message$1){return this._addCheck({kind:`uuid`,...errorUtil.errToObj(message$1)})}nanoid(message$1){return this._addCheck({kind:`nanoid`,...errorUtil.errToObj(message$1)})}cuid(message$1){return this._addCheck({kind:`cuid`,...errorUtil.errToObj(message$1)})}cuid2(message$1){return this._addCheck({kind:`cuid2`,...errorUtil.errToObj(message$1)})}ulid(message$1){return this._addCheck({kind:`ulid`,...errorUtil.errToObj(message$1)})}base64(message$1){return this._addCheck({kind:`base64`,...errorUtil.errToObj(message$1)})}base64url(message$1){return this._addCheck({kind:`base64url`,...errorUtil.errToObj(message$1)})}jwt(options$1){return this._addCheck({kind:`jwt`,...errorUtil.errToObj(options$1)})}ip(options$1){return this._addCheck({kind:`ip`,...errorUtil.errToObj(options$1)})}cidr(options$1){return this._addCheck({kind:`cidr`,...errorUtil.errToObj(options$1)})}datetime(options$1){return typeof options$1==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:options$1}):this._addCheck({kind:`datetime`,precision:options$1?.precision===void 0?null:options$1?.precision,offset:options$1?.offset??!1,local:options$1?.local??!1,...errorUtil.errToObj(options$1?.message)})}date(message$1){return this._addCheck({kind:`date`,message:message$1})}time(options$1){return typeof options$1==`string`?this._addCheck({kind:`time`,precision:null,message:options$1}):this._addCheck({kind:`time`,precision:options$1?.precision===void 0?null:options$1?.precision,...errorUtil.errToObj(options$1?.message)})}duration(message$1){return this._addCheck({kind:`duration`,...errorUtil.errToObj(message$1)})}regex(regex,message$1){return this._addCheck({kind:`regex`,regex,...errorUtil.errToObj(message$1)})}includes(value$1,options$1){return this._addCheck({kind:`includes`,value:value$1,position:options$1?.position,...errorUtil.errToObj(options$1?.message)})}startsWith(value$1,message$1){return this._addCheck({kind:`startsWith`,value:value$1,...errorUtil.errToObj(message$1)})}endsWith(value$1,message$1){return this._addCheck({kind:`endsWith`,value:value$1,...errorUtil.errToObj(message$1)})}min(minLength,message$1){return this._addCheck({kind:`min`,value:minLength,...errorUtil.errToObj(message$1)})}max(maxLength,message$1){return this._addCheck({kind:`max`,value:maxLength,...errorUtil.errToObj(message$1)})}length(len,message$1){return this._addCheck({kind:`length`,value:len,...errorUtil.errToObj(message$1)})}nonempty(message$1){return this.min(1,errorUtil.errToObj(message$1))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(ch=>ch.kind===`datetime`)}get isDate(){return!!this._def.checks.find(ch=>ch.kind===`date`)}get isTime(){return!!this._def.checks.find(ch=>ch.kind===`time`)}get isDuration(){return!!this._def.checks.find(ch=>ch.kind===`duration`)}get isEmail(){return!!this._def.checks.find(ch=>ch.kind===`email`)}get isURL(){return!!this._def.checks.find(ch=>ch.kind===`url`)}get isEmoji(){return!!this._def.checks.find(ch=>ch.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(ch=>ch.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(ch=>ch.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(ch=>ch.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(ch=>ch.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(ch=>ch.kind===`ulid`)}get isIP(){return!!this._def.checks.find(ch=>ch.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(ch=>ch.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(ch=>ch.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(ch=>ch.kind===`base64url`)}get minLength(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1}get maxLength(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuenew ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:params?.coerce??!1,...processCreateParams(params)});function floatSafeRemainder(val,step){let valDecCount=(val.toString().split(`.`)[1]||``).length,stepDecCount=(step.toString().split(`.`)[1]||``).length,decCount=valDecCount>stepDecCount?valDecCount:stepDecCount,valInt=Number.parseInt(val.toFixed(decCount).replace(`.`,``)),stepInt=Number.parseInt(step.toFixed(decCount).replace(`.`,``));return valInt%stepInt/10**decCount}var ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(input){this._def.coerce&&(input.data=Number(input.data));let parsedType=this._getType(input);if(parsedType!==ZodParsedType.number){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:ctx$1.parsedType}),INVALID}let ctx,status=new ParseStatus;for(let check$1 of this._def.checks)if(check$1.kind===`int`)util.isInteger(input.data)||(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:`integer`,received:`float`,message:check$1.message}),status.dirty());else if(check$1.kind===`min`){let tooSmall=check$1.inclusive?input.datacheck$1.value:input.data>=check$1.value;tooBig&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:check$1.value,type:`number`,inclusive:check$1.inclusive,exact:!1,message:check$1.message}),status.dirty())}else check$1.kind===`multipleOf`?floatSafeRemainder(input.data,check$1.value)!==0&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.not_multiple_of,multipleOf:check$1.value,message:check$1.message}),status.dirty()):check$1.kind===`finite`?Number.isFinite(input.data)||(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.not_finite,message:check$1.message}),status.dirty()):util.assertNever(check$1);return{status:status.value,value:input.data}}gte(value$1,message$1){return this.setLimit(`min`,value$1,!0,errorUtil.toString(message$1))}gt(value$1,message$1){return this.setLimit(`min`,value$1,!1,errorUtil.toString(message$1))}lte(value$1,message$1){return this.setLimit(`max`,value$1,!0,errorUtil.toString(message$1))}lt(value$1,message$1){return this.setLimit(`max`,value$1,!1,errorUtil.toString(message$1))}setLimit(kind,value$1,inclusive,message$1){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind,value:value$1,inclusive,message:errorUtil.toString(message$1)}]})}_addCheck(check$1){return new ZodNumber({...this._def,checks:[...this._def.checks,check$1]})}int(message$1){return this._addCheck({kind:`int`,message:errorUtil.toString(message$1)})}positive(message$1){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:errorUtil.toString(message$1)})}negative(message$1){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:errorUtil.toString(message$1)})}nonpositive(message$1){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:errorUtil.toString(message$1)})}nonnegative(message$1){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:errorUtil.toString(message$1)})}multipleOf(value$1,message$1){return this._addCheck({kind:`multipleOf`,value:value$1,message:errorUtil.toString(message$1)})}finite(message$1){return this._addCheck({kind:`finite`,message:errorUtil.toString(message$1)})}safe(message$1){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:errorUtil.toString(message$1)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:errorUtil.toString(message$1)})}get minValue(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1}get maxValue(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuech.kind===`int`||ch.kind===`multipleOf`&&util.isInteger(ch.value))}get isFinite(){let max$1=null,min$1=null;for(let ch of this._def.checks)if(ch.kind===`finite`||ch.kind===`int`||ch.kind===`multipleOf`)return!0;else ch.kind===`min`?(min$1===null||ch.value>min$1)&&(min$1=ch.value):ch.kind===`max`&&(max$1===null||ch.valuenew ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:params?.coerce||!1,...processCreateParams(params)});var ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(input){if(this._def.coerce)try{input.data=BigInt(input.data)}catch{return this._getInvalidInput(input)}let parsedType=this._getType(input);if(parsedType!==ZodParsedType.bigint)return this._getInvalidInput(input);let ctx,status=new ParseStatus;for(let check$1 of this._def.checks)if(check$1.kind===`min`){let tooSmall=check$1.inclusive?input.datacheck$1.value:input.data>=check$1.value;tooBig&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,type:`bigint`,maximum:check$1.value,inclusive:check$1.inclusive,message:check$1.message}),status.dirty())}else check$1.kind===`multipleOf`?input.data%check$1.value!==BigInt(0)&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.not_multiple_of,multipleOf:check$1.value,message:check$1.message}),status.dirty()):util.assertNever(check$1);return{status:status.value,value:input.data}}_getInvalidInput(input){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:ctx.parsedType}),INVALID}gte(value$1,message$1){return this.setLimit(`min`,value$1,!0,errorUtil.toString(message$1))}gt(value$1,message$1){return this.setLimit(`min`,value$1,!1,errorUtil.toString(message$1))}lte(value$1,message$1){return this.setLimit(`max`,value$1,!0,errorUtil.toString(message$1))}lt(value$1,message$1){return this.setLimit(`max`,value$1,!1,errorUtil.toString(message$1))}setLimit(kind,value$1,inclusive,message$1){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind,value:value$1,inclusive,message:errorUtil.toString(message$1)}]})}_addCheck(check$1){return new ZodBigInt({...this._def,checks:[...this._def.checks,check$1]})}positive(message$1){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:errorUtil.toString(message$1)})}negative(message$1){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:errorUtil.toString(message$1)})}nonpositive(message$1){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:errorUtil.toString(message$1)})}nonnegative(message$1){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:errorUtil.toString(message$1)})}multipleOf(value$1,message$1){return this._addCheck({kind:`multipleOf`,value:value$1,message:errorUtil.toString(message$1)})}get minValue(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1}get maxValue(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuenew ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:params?.coerce??!1,...processCreateParams(params)});var ZodBoolean=class extends ZodType{_parse(input){this._def.coerce&&(input.data=!!input.data);let parsedType=this._getType(input);if(parsedType!==ZodParsedType.boolean){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodBoolean.create=params=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:params?.coerce||!1,...processCreateParams(params)});var ZodDate=class ZodDate extends ZodType{_parse(input){this._def.coerce&&(input.data=new Date(input.data));let parsedType=this._getType(input);if(parsedType!==ZodParsedType.date){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:ctx$1.parsedType}),INVALID}if(Number.isNaN(input.data.getTime())){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_date}),INVALID}let status=new ParseStatus,ctx;for(let check$1 of this._def.checks)check$1.kind===`min`?input.data.getTime()check$1.value&&(ctx=this._getOrReturnCtx(input,ctx),addIssueToContext(ctx,{code:ZodIssueCode.too_big,message:check$1.message,inclusive:!0,exact:!1,maximum:check$1.value,type:`date`}),status.dirty()):util.assertNever(check$1);return{status:status.value,value:new Date(input.data.getTime())}}_addCheck(check$1){return new ZodDate({...this._def,checks:[...this._def.checks,check$1]})}min(minDate,message$1){return this._addCheck({kind:`min`,value:minDate.getTime(),message:errorUtil.toString(message$1)})}max(maxDate,message$1){return this._addCheck({kind:`max`,value:maxDate.getTime(),message:errorUtil.toString(message$1)})}get minDate(){let min$1=null;for(let ch of this._def.checks)ch.kind===`min`&&(min$1===null||ch.value>min$1)&&(min$1=ch.value);return min$1==null?null:new Date(min$1)}get maxDate(){let max$1=null;for(let ch of this._def.checks)ch.kind===`max`&&(max$1===null||ch.valuenew ZodDate({checks:[],coerce:params?.coerce||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(params)});var ZodSymbol=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.symbol){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodSymbol.create=params=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(params)});var ZodUndefined=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.undefined){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodUndefined.create=params=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(params)});var ZodNull=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.null){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodNull.create=params=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(params)});var ZodAny=class extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(input){return OK(input.data)}};ZodAny.create=params=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(params)});var ZodUnknown=class extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(input){return OK(input.data)}};ZodUnknown.create=params=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(params)});var ZodNever=class extends ZodType{_parse(input){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:ctx.parsedType}),INVALID}};ZodNever.create=params=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(params)});var ZodVoid=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.undefined){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:ctx.parsedType}),INVALID}return OK(input.data)}};ZodVoid.create=params=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(params)});var ZodArray=class ZodArray extends ZodType{_parse(input){let{ctx,status}=this._processInputParams(input),def$1=this._def;if(ctx.parsedType!==ZodParsedType.array)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:ctx.parsedType}),INVALID;if(def$1.exactLength!==null){let tooBig=ctx.data.length>def$1.exactLength.value,tooSmall=ctx.data.lengthdef$1.maxLength.value&&(addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:def$1.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:def$1.maxLength.message}),status.dirty()),ctx.common.async)return Promise.all([...ctx.data].map((item,i$1)=>def$1.type._parseAsync(new ParseInputLazyPath(ctx,item,ctx.path,i$1)))).then(result$1=>ParseStatus.mergeArray(status,result$1));let result=[...ctx.data].map((item,i$1)=>def$1.type._parseSync(new ParseInputLazyPath(ctx,item,ctx.path,i$1)));return ParseStatus.mergeArray(status,result)}get element(){return this._def.type}min(minLength,message$1){return new ZodArray({...this._def,minLength:{value:minLength,message:errorUtil.toString(message$1)}})}max(maxLength,message$1){return new ZodArray({...this._def,maxLength:{value:maxLength,message:errorUtil.toString(message$1)}})}length(len,message$1){return new ZodArray({...this._def,exactLength:{value:len,message:errorUtil.toString(message$1)}})}nonempty(message$1){return this.min(1,message$1)}};ZodArray.create=(schema,params)=>new ZodArray({type:schema,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(params)});function deepPartialify(schema){if(schema instanceof ZodObject){let newShape={};for(let key$1 in schema.shape){let fieldSchema=schema.shape[key$1];newShape[key$1]=ZodOptional.create(deepPartialify(fieldSchema))}return new ZodObject({...schema._def,shape:()=>newShape})}else if(schema instanceof ZodArray)return new ZodArray({...schema._def,type:deepPartialify(schema.element)});else if(schema instanceof ZodOptional)return ZodOptional.create(deepPartialify(schema.unwrap()));else if(schema instanceof ZodNullable)return ZodNullable.create(deepPartialify(schema.unwrap()));else if(schema instanceof ZodTuple)return ZodTuple.create(schema.items.map(item=>deepPartialify(item)));else return schema}var ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let shape=this._def.shape(),keys$3=util.objectKeys(shape);return this._cached={shape,keys:keys$3},this._cached}_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.object){let ctx$1=this._getOrReturnCtx(input);return addIssueToContext(ctx$1,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:ctx$1.parsedType}),INVALID}let{status,ctx}=this._processInputParams(input),{shape,keys:shapeKeys}=this._getCached(),extraKeys=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys===`strip`))for(let key$1 in ctx.data)shapeKeys.includes(key$1)||extraKeys.push(key$1);let pairs=[];for(let key$1 of shapeKeys){let keyValidator=shape[key$1],value$1=ctx.data[key$1];pairs.push({key:{status:`valid`,value:key$1},value:keyValidator._parse(new ParseInputLazyPath(ctx,value$1,ctx.path,key$1)),alwaysSet:key$1 in ctx.data})}if(this._def.catchall instanceof ZodNever){let unknownKeys=this._def.unknownKeys;if(unknownKeys===`passthrough`)for(let key$1 of extraKeys)pairs.push({key:{status:`valid`,value:key$1},value:{status:`valid`,value:ctx.data[key$1]}});else if(unknownKeys===`strict`)extraKeys.length>0&&(addIssueToContext(ctx,{code:ZodIssueCode.unrecognized_keys,keys:extraKeys}),status.dirty());else if(unknownKeys!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let catchall=this._def.catchall;for(let key$1 of extraKeys){let value$1=ctx.data[key$1];pairs.push({key:{status:`valid`,value:key$1},value:catchall._parse(new ParseInputLazyPath(ctx,value$1,ctx.path,key$1)),alwaysSet:key$1 in ctx.data})}}return ctx.common.async?Promise.resolve().then(async()=>{let syncPairs=[];for(let pair of pairs){let key$1=await pair.key,value$1=await pair.value;syncPairs.push({key:key$1,value:value$1,alwaysSet:pair.alwaysSet})}return syncPairs}).then(syncPairs=>ParseStatus.mergeObjectSync(status,syncPairs)):ParseStatus.mergeObjectSync(status,pairs)}get shape(){return this._def.shape()}strict(message$1){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:`strict`,...message$1===void 0?{}:{errorMap:(issue,ctx)=>{var _this$_def$errorMap,_this$_def;let defaultError=(_this$_def$errorMap=(_this$_def=this._def).errorMap)?.call(_this$_def,issue,ctx).message??ctx.defaultError;return issue.code===`unrecognized_keys`?{message:errorUtil.errToObj(message$1).message??defaultError}:{message:defaultError}}}})}strip(){return new ZodObject({...this._def,unknownKeys:`strip`})}passthrough(){return new ZodObject({...this._def,unknownKeys:`passthrough`})}extend(augmentation){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...augmentation})})}merge(merging){let merged=new ZodObject({unknownKeys:merging._def.unknownKeys,catchall:merging._def.catchall,shape:()=>({...this._def.shape(),...merging._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject});return merged}setKey(key$1,schema){return this.augment({[key$1]:schema})}catchall(index$1){return new ZodObject({...this._def,catchall:index$1})}pick(mask){let shape={};for(let key$1 of util.objectKeys(mask))mask[key$1]&&this.shape[key$1]&&(shape[key$1]=this.shape[key$1]);return new ZodObject({...this._def,shape:()=>shape})}omit(mask){let shape={};for(let key$1 of util.objectKeys(this.shape))mask[key$1]||(shape[key$1]=this.shape[key$1]);return new ZodObject({...this._def,shape:()=>shape})}deepPartial(){return deepPartialify(this)}partial(mask){let newShape={};for(let key$1 of util.objectKeys(this.shape)){let fieldSchema=this.shape[key$1];mask&&!mask[key$1]?newShape[key$1]=fieldSchema:newShape[key$1]=fieldSchema.optional()}return new ZodObject({...this._def,shape:()=>newShape})}required(mask){let newShape={};for(let key$1 of util.objectKeys(this.shape))if(mask&&!mask[key$1])newShape[key$1]=this.shape[key$1];else{let fieldSchema=this.shape[key$1],newField=fieldSchema;for(;newField instanceof ZodOptional;)newField=newField._def.innerType;newShape[key$1]=newField}return new ZodObject({...this._def,shape:()=>newShape})}keyof(){return createZodEnum(util.objectKeys(this.shape))}};ZodObject.create=(shape,params)=>new ZodObject({shape:()=>shape,unknownKeys:`strip`,catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(params)}),ZodObject.strictCreate=(shape,params)=>new ZodObject({shape:()=>shape,unknownKeys:`strict`,catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(params)}),ZodObject.lazycreate=(shape,params)=>new ZodObject({shape,unknownKeys:`strip`,catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(params)});var ZodUnion=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),options$1=this._def.options;function handleResults(results){for(let result of results)if(result.result.status===`valid`)return result.result;for(let result of results)if(result.result.status===`dirty`)return ctx.common.issues.push(...result.ctx.common.issues),result.result;let unionErrors=results.map(result=>new ZodError(result.ctx.common.issues));return addIssueToContext(ctx,{code:ZodIssueCode.invalid_union,unionErrors}),INVALID}if(ctx.common.async)return Promise.all(options$1.map(async option$1=>{let childCtx={...ctx,common:{...ctx.common,issues:[]},parent:null};return{result:await option$1._parseAsync({data:ctx.data,path:ctx.path,parent:childCtx}),ctx:childCtx}})).then(handleResults);{let dirty,issues=[];for(let option$1 of options$1){let childCtx={...ctx,common:{...ctx.common,issues:[]},parent:null},result=option$1._parseSync({data:ctx.data,path:ctx.path,parent:childCtx});if(result.status===`valid`)return result;result.status===`dirty`&&!dirty&&(dirty={result,ctx:childCtx}),childCtx.common.issues.length&&issues.push(childCtx.common.issues)}if(dirty)return ctx.common.issues.push(...dirty.ctx.common.issues),dirty.result;let unionErrors=issues.map(issues$1=>new ZodError(issues$1));return addIssueToContext(ctx,{code:ZodIssueCode.invalid_union,unionErrors}),INVALID}}get options(){return this._def.options}};ZodUnion.create=(types$1,params)=>new ZodUnion({options:types$1,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(params)});const getDiscriminator=type=>type instanceof ZodLazy?getDiscriminator(type.schema):type instanceof ZodEffects?getDiscriminator(type.innerType()):type instanceof ZodLiteral?[type.value]:type instanceof ZodEnum?type.options:type instanceof ZodNativeEnum?util.objectValues(type.enum):type instanceof ZodDefault?getDiscriminator(type._def.innerType):type instanceof ZodUndefined?[void 0]:type instanceof ZodNull?[null]:type instanceof ZodOptional?[void 0,...getDiscriminator(type.unwrap())]:type instanceof ZodNullable?[null,...getDiscriminator(type.unwrap())]:type instanceof ZodBranded||type instanceof ZodReadonly?getDiscriminator(type.unwrap()):type instanceof ZodCatch?getDiscriminator(type._def.innerType):[];var ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(input){let{ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.object)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:ctx.parsedType}),INVALID;let discriminator=this.discriminator,discriminatorValue=ctx.data[discriminator],option$1=this.optionsMap.get(discriminatorValue);return option$1?ctx.common.async?option$1._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}):option$1._parseSync({data:ctx.data,path:ctx.path,parent:ctx}):(addIssueToContext(ctx,{code:ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[discriminator]}),INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(discriminator,options$1,params){let optionsMap=new Map;for(let type of options$1){let discriminatorValues=getDiscriminator(type.shape[discriminator]);if(!discriminatorValues.length)throw Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);for(let value$1 of discriminatorValues){if(optionsMap.has(value$1))throw Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value$1)}`);optionsMap.set(value$1,type)}}return new ZodDiscriminatedUnion({typeName:ZodFirstPartyTypeKind.ZodDiscriminatedUnion,discriminator,options:options$1,optionsMap,...processCreateParams(params)})}};function mergeValues(a$2,b$3){let aType=getParsedType(a$2),bType=getParsedType(b$3);if(a$2===b$3)return{valid:!0,data:a$2};if(aType===ZodParsedType.object&&bType===ZodParsedType.object){let bKeys=util.objectKeys(b$3),sharedKeys=util.objectKeys(a$2).filter(key$1=>bKeys.indexOf(key$1)!==-1),newObj={...a$2,...b$3};for(let key$1 of sharedKeys){let sharedValue=mergeValues(a$2[key$1],b$3[key$1]);if(!sharedValue.valid)return{valid:!1};newObj[key$1]=sharedValue.data}return{valid:!0,data:newObj}}else if(aType===ZodParsedType.array&&bType===ZodParsedType.array){if(a$2.length!==b$3.length)return{valid:!1};let newArray=[];for(let index$1=0;index$1{if(isAborted(parsedLeft)||isAborted(parsedRight))return INVALID;let merged=mergeValues(parsedLeft.value,parsedRight.value);return merged.valid?((isDirty(parsedLeft)||isDirty(parsedRight))&&status.dirty(),{status:status.value,value:merged.data}):(addIssueToContext(ctx,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return ctx.common.async?Promise.all([this._def.left._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}),this._def.right._parseAsync({data:ctx.data,path:ctx.path,parent:ctx})]).then(([left,right])=>handleParsed(left,right)):handleParsed(this._def.left._parseSync({data:ctx.data,path:ctx.path,parent:ctx}),this._def.right._parseSync({data:ctx.data,path:ctx.path,parent:ctx}))}};ZodIntersection.create=(left,right,params)=>new ZodIntersection({left,right,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(params)});var ZodTuple=class ZodTuple extends ZodType{_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.array)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:ctx.parsedType}),INVALID;if(ctx.data.lengththis._def.items.length&&(addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),status.dirty());let items=[...ctx.data].map((item,itemIndex)=>{let schema=this._def.items[itemIndex]||this._def.rest;return schema?schema._parse(new ParseInputLazyPath(ctx,item,ctx.path,itemIndex)):null}).filter(x$3=>!!x$3);return ctx.common.async?Promise.all(items).then(results=>ParseStatus.mergeArray(status,results)):ParseStatus.mergeArray(status,items)}get items(){return this._def.items}rest(rest){return new ZodTuple({...this._def,rest})}};ZodTuple.create=(schemas,params)=>{if(!Array.isArray(schemas))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new ZodTuple({items:schemas,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(params)})};var ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.object)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:ctx.parsedType}),INVALID;let pairs=[],keyType=this._def.keyType,valueType=this._def.valueType;for(let key$1 in ctx.data)pairs.push({key:keyType._parse(new ParseInputLazyPath(ctx,key$1,ctx.path,key$1)),value:valueType._parse(new ParseInputLazyPath(ctx,ctx.data[key$1],ctx.path,key$1)),alwaysSet:key$1 in ctx.data});return ctx.common.async?ParseStatus.mergeObjectAsync(status,pairs):ParseStatus.mergeObjectSync(status,pairs)}get element(){return this._def.valueType}static create(first,second,third){return second instanceof ZodType?new ZodRecord({keyType:first,valueType:second,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(third)}):new ZodRecord({keyType:ZodString.create(),valueType:first,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(second)})}},ZodMap=class extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.map)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:ctx.parsedType}),INVALID;let keyType=this._def.keyType,valueType=this._def.valueType,pairs=[...ctx.data.entries()].map(([key$1,value$1],index$1)=>({key:keyType._parse(new ParseInputLazyPath(ctx,key$1,ctx.path,[index$1,`key`])),value:valueType._parse(new ParseInputLazyPath(ctx,value$1,ctx.path,[index$1,`value`]))}));if(ctx.common.async){let finalMap=new Map;return Promise.resolve().then(async()=>{for(let pair of pairs){let key$1=await pair.key,value$1=await pair.value;if(key$1.status===`aborted`||value$1.status===`aborted`)return INVALID;(key$1.status===`dirty`||value$1.status===`dirty`)&&status.dirty(),finalMap.set(key$1.value,value$1.value)}return{status:status.value,value:finalMap}})}else{let finalMap=new Map;for(let pair of pairs){let key$1=pair.key,value$1=pair.value;if(key$1.status===`aborted`||value$1.status===`aborted`)return INVALID;(key$1.status===`dirty`||value$1.status===`dirty`)&&status.dirty(),finalMap.set(key$1.value,value$1.value)}return{status:status.value,value:finalMap}}}};ZodMap.create=(keyType,valueType,params)=>new ZodMap({valueType,keyType,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(params)});var ZodSet=class ZodSet extends ZodType{_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.set)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:ctx.parsedType}),INVALID;let def$1=this._def;def$1.minSize!==null&&ctx.data.sizedef$1.maxSize.value&&(addIssueToContext(ctx,{code:ZodIssueCode.too_big,maximum:def$1.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:def$1.maxSize.message}),status.dirty());let valueType=this._def.valueType;function finalizeSet(elements$1){let parsedSet=new Set;for(let element$3 of elements$1){if(element$3.status===`aborted`)return INVALID;element$3.status===`dirty`&&status.dirty(),parsedSet.add(element$3.value)}return{status:status.value,value:parsedSet}}let elements=[...ctx.data.values()].map((item,i$1)=>valueType._parse(new ParseInputLazyPath(ctx,item,ctx.path,i$1)));return ctx.common.async?Promise.all(elements).then(elements$1=>finalizeSet(elements$1)):finalizeSet(elements)}min(minSize,message$1){return new ZodSet({...this._def,minSize:{value:minSize,message:errorUtil.toString(message$1)}})}max(maxSize,message$1){return new ZodSet({...this._def,maxSize:{value:maxSize,message:errorUtil.toString(message$1)}})}size(size$1,message$1){return this.min(size$1,message$1).max(size$1,message$1)}nonempty(message$1){return this.min(1,message$1)}};ZodSet.create=(valueType,params)=>new ZodSet({valueType,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(params)});var ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(input){let{ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.function)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.function,received:ctx.parsedType}),INVALID;function makeArgsIssue(args,error){return makeIssue({data:args,path:ctx.path,errorMaps:[ctx.common.contextualErrorMap,ctx.schemaErrorMap,getErrorMap(),en_default$1].filter(x$3=>!!x$3),issueData:{code:ZodIssueCode.invalid_arguments,argumentsError:error}})}function makeReturnsIssue(returns,error){return makeIssue({data:returns,path:ctx.path,errorMaps:[ctx.common.contextualErrorMap,ctx.schemaErrorMap,getErrorMap(),en_default$1].filter(x$3=>!!x$3),issueData:{code:ZodIssueCode.invalid_return_type,returnTypeError:error}})}let params={errorMap:ctx.common.contextualErrorMap},fn$5=ctx.data;if(this._def.returns instanceof ZodPromise){let me$1=this;return OK(async function(...args){let error=new ZodError([]),parsedArgs=await me$1._def.args.parseAsync(args,params).catch(e$3=>{throw error.addIssue(makeArgsIssue(args,e$3)),error}),result=await Reflect.apply(fn$5,this,parsedArgs),parsedReturns=await me$1._def.returns._def.type.parseAsync(result,params).catch(e$3=>{throw error.addIssue(makeReturnsIssue(result,e$3)),error});return parsedReturns})}else{let me$1=this;return OK(function(...args){let parsedArgs=me$1._def.args.safeParse(args,params);if(!parsedArgs.success)throw new ZodError([makeArgsIssue(args,parsedArgs.error)]);let result=Reflect.apply(fn$5,this,parsedArgs.data),parsedReturns=me$1._def.returns.safeParse(result,params);if(!parsedReturns.success)throw new ZodError([makeReturnsIssue(result,parsedReturns.error)]);return parsedReturns.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...items){return new ZodFunction({...this._def,args:ZodTuple.create(items).rest(ZodUnknown.create())})}returns(returnType){return new ZodFunction({...this._def,returns:returnType})}implement(func){let validatedFunc=this.parse(func);return validatedFunc}strictImplement(func){let validatedFunc=this.parse(func);return validatedFunc}static create(args,returns,params){return new ZodFunction({args:args||ZodTuple.create([]).rest(ZodUnknown.create()),returns:returns||ZodUnknown.create(),typeName:ZodFirstPartyTypeKind.ZodFunction,...processCreateParams(params)})}},ZodLazy=class extends ZodType{get schema(){return this._def.getter()}_parse(input){let{ctx}=this._processInputParams(input),lazySchema=this._def.getter();return lazySchema._parse({data:ctx.data,path:ctx.path,parent:ctx})}};ZodLazy.create=(getter,params)=>new ZodLazy({getter,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(params)});var ZodLiteral=class extends ZodType{_parse(input){if(input.data!==this._def.value){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{received:ctx.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:`valid`,value:input.data}}get value(){return this._def.value}};ZodLiteral.create=(value$1,params)=>new ZodLiteral({value:value$1,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(params)});function createZodEnum(values,params){return new ZodEnum({values,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(params)})}var ZodEnum=class ZodEnum extends ZodType{_parse(input){if(typeof input.data!=`string`){let ctx=this._getOrReturnCtx(input),expectedValues=this._def.values;return addIssueToContext(ctx,{expected:util.joinValues(expectedValues),received:ctx.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||=new Set(this._def.values),!this._cache.has(input.data)){let ctx=this._getOrReturnCtx(input),expectedValues=this._def.values;return addIssueToContext(ctx,{received:ctx.data,code:ZodIssueCode.invalid_enum_value,options:expectedValues}),INVALID}return OK(input.data)}get options(){return this._def.values}get enum(){let enumValues={};for(let val of this._def.values)enumValues[val]=val;return enumValues}get Values(){let enumValues={};for(let val of this._def.values)enumValues[val]=val;return enumValues}get Enum(){let enumValues={};for(let val of this._def.values)enumValues[val]=val;return enumValues}extract(values,newDef=this._def){return ZodEnum.create(values,{...this._def,...newDef})}exclude(values,newDef=this._def){return ZodEnum.create(this.options.filter(opt=>!values.includes(opt)),{...this._def,...newDef})}};ZodEnum.create=createZodEnum;var ZodNativeEnum=class extends ZodType{_parse(input){let nativeEnumValues=util.getValidEnumValues(this._def.values),ctx=this._getOrReturnCtx(input);if(ctx.parsedType!==ZodParsedType.string&&ctx.parsedType!==ZodParsedType.number){let expectedValues=util.objectValues(nativeEnumValues);return addIssueToContext(ctx,{expected:util.joinValues(expectedValues),received:ctx.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||=new Set(util.getValidEnumValues(this._def.values)),!this._cache.has(input.data)){let expectedValues=util.objectValues(nativeEnumValues);return addIssueToContext(ctx,{received:ctx.data,code:ZodIssueCode.invalid_enum_value,options:expectedValues}),INVALID}return OK(input.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(values,params)=>new ZodNativeEnum({values,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(params)});var ZodPromise=class extends ZodType{unwrap(){return this._def.type}_parse(input){let{ctx}=this._processInputParams(input);if(ctx.parsedType!==ZodParsedType.promise&&ctx.common.async===!1)return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:ctx.parsedType}),INVALID;let promisified=ctx.parsedType===ZodParsedType.promise?ctx.data:Promise.resolve(ctx.data);return OK(promisified.then(data$10=>this._def.type.parseAsync(data$10,{path:ctx.path,errorMap:ctx.common.contextualErrorMap})))}};ZodPromise.create=(schema,params)=>new ZodPromise({type:schema,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(params)});var ZodEffects=class extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(input){let{status,ctx}=this._processInputParams(input),effect$1=this._def.effect||null,checkCtx={addIssue:arg=>{addIssueToContext(ctx,arg),arg.fatal?status.abort():status.dirty()},get path(){return ctx.path}};if(checkCtx.addIssue=checkCtx.addIssue.bind(checkCtx),effect$1.type===`preprocess`){let processed=effect$1.transform(ctx.data,checkCtx);if(ctx.common.async)return Promise.resolve(processed).then(async processed$1=>{if(status.value===`aborted`)return INVALID;let result=await this._def.schema._parseAsync({data:processed$1,path:ctx.path,parent:ctx});return result.status===`aborted`?INVALID:result.status===`dirty`||status.value===`dirty`?DIRTY(result.value):result});{if(status.value===`aborted`)return INVALID;let result=this._def.schema._parseSync({data:processed,path:ctx.path,parent:ctx});return result.status===`aborted`?INVALID:result.status===`dirty`||status.value===`dirty`?DIRTY(result.value):result}}if(effect$1.type===`refinement`){let executeRefinement=acc=>{let result=effect$1.refinement(acc,checkCtx);if(ctx.common.async)return Promise.resolve(result);if(result instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return acc};if(ctx.common.async===!1){let inner=this._def.schema._parseSync({data:ctx.data,path:ctx.path,parent:ctx});return inner.status===`aborted`?INVALID:(inner.status===`dirty`&&status.dirty(),executeRefinement(inner.value),{status:status.value,value:inner.value})}else return this._def.schema._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}).then(inner=>inner.status===`aborted`?INVALID:(inner.status===`dirty`&&status.dirty(),executeRefinement(inner.value).then(()=>({status:status.value,value:inner.value}))))}if(effect$1.type===`transform`)if(ctx.common.async===!1){let base=this._def.schema._parseSync({data:ctx.data,path:ctx.path,parent:ctx});if(!isValid(base))return INVALID;let result=effect$1.transform(base.value,checkCtx);if(result instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:status.value,value:result}}else return this._def.schema._parseAsync({data:ctx.data,path:ctx.path,parent:ctx}).then(base=>isValid(base)?Promise.resolve(effect$1.transform(base.value,checkCtx)).then(result=>({status:status.value,value:result})):INVALID);util.assertNever(effect$1)}};ZodEffects.create=(schema,effect$1,params)=>new ZodEffects({schema,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:effect$1,...processCreateParams(params)}),ZodEffects.createWithPreprocess=(preprocess$1,schema,params)=>new ZodEffects({schema,effect:{type:`preprocess`,transform:preprocess$1},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(params)});var ZodOptional=class extends ZodType{_parse(input){let parsedType=this._getType(input);return parsedType===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(input)}unwrap(){return this._def.innerType}};ZodOptional.create=(type,params)=>new ZodOptional({innerType:type,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(params)});var ZodNullable=class extends ZodType{_parse(input){let parsedType=this._getType(input);return parsedType===ZodParsedType.null?OK(null):this._def.innerType._parse(input)}unwrap(){return this._def.innerType}};ZodNullable.create=(type,params)=>new ZodNullable({innerType:type,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(params)});var ZodDefault=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),data$10=ctx.data;return ctx.parsedType===ZodParsedType.undefined&&(data$10=this._def.defaultValue()),this._def.innerType._parse({data:data$10,path:ctx.path,parent:ctx})}removeDefault(){return this._def.innerType}};ZodDefault.create=(type,params)=>new ZodDefault({innerType:type,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof params.default==`function`?params.default:()=>params.default,...processCreateParams(params)});var ZodCatch=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),newCtx={...ctx,common:{...ctx.common,issues:[]}},result=this._def.innerType._parse({data:newCtx.data,path:newCtx.path,parent:{...newCtx}});return isAsync(result)?result.then(result$1=>({status:`valid`,value:result$1.status===`valid`?result$1.value:this._def.catchValue({get error(){return new ZodError(newCtx.common.issues)},input:newCtx.data})})):{status:`valid`,value:result.status===`valid`?result.value:this._def.catchValue({get error(){return new ZodError(newCtx.common.issues)},input:newCtx.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(type,params)=>new ZodCatch({innerType:type,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof params.catch==`function`?params.catch:()=>params.catch,...processCreateParams(params)});var ZodNaN=class extends ZodType{_parse(input){let parsedType=this._getType(input);if(parsedType!==ZodParsedType.nan){let ctx=this._getOrReturnCtx(input);return addIssueToContext(ctx,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:ctx.parsedType}),INVALID}return{status:`valid`,value:input.data}}};ZodNaN.create=params=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(params)});const BRAND=Symbol(`zod_brand`);var ZodBranded=class extends ZodType{_parse(input){let{ctx}=this._processInputParams(input),data$10=ctx.data;return this._def.type._parse({data:data$10,path:ctx.path,parent:ctx})}unwrap(){return this._def.type}},ZodPipeline=class ZodPipeline extends ZodType{_parse(input){let{status,ctx}=this._processInputParams(input);if(ctx.common.async){let handleAsync=async()=>{let inResult=await this._def.in._parseAsync({data:ctx.data,path:ctx.path,parent:ctx});return inResult.status===`aborted`?INVALID:inResult.status===`dirty`?(status.dirty(),DIRTY(inResult.value)):this._def.out._parseAsync({data:inResult.value,path:ctx.path,parent:ctx})};return handleAsync()}else{let inResult=this._def.in._parseSync({data:ctx.data,path:ctx.path,parent:ctx});return inResult.status===`aborted`?INVALID:inResult.status===`dirty`?(status.dirty(),{status:`dirty`,value:inResult.value}):this._def.out._parseSync({data:inResult.value,path:ctx.path,parent:ctx})}}static create(a$2,b$3){return new ZodPipeline({in:a$2,out:b$3,typeName:ZodFirstPartyTypeKind.ZodPipeline})}},ZodReadonly=class extends ZodType{_parse(input){let result=this._def.innerType._parse(input),freeze=data$10=>(isValid(data$10)&&(data$10.value=Object.freeze(data$10.value)),data$10);return isAsync(result)?result.then(data$10=>freeze(data$10)):freeze(result)}unwrap(){return this._def.innerType}};ZodReadonly.create=(type,params)=>new ZodReadonly({innerType:type,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(params)});const late={object:ZodObject.lazycreate};var ZodFirstPartyTypeKind;(function(ZodFirstPartyTypeKind$1){ZodFirstPartyTypeKind$1.ZodString=`ZodString`,ZodFirstPartyTypeKind$1.ZodNumber=`ZodNumber`,ZodFirstPartyTypeKind$1.ZodNaN=`ZodNaN`,ZodFirstPartyTypeKind$1.ZodBigInt=`ZodBigInt`,ZodFirstPartyTypeKind$1.ZodBoolean=`ZodBoolean`,ZodFirstPartyTypeKind$1.ZodDate=`ZodDate`,ZodFirstPartyTypeKind$1.ZodSymbol=`ZodSymbol`,ZodFirstPartyTypeKind$1.ZodUndefined=`ZodUndefined`,ZodFirstPartyTypeKind$1.ZodNull=`ZodNull`,ZodFirstPartyTypeKind$1.ZodAny=`ZodAny`,ZodFirstPartyTypeKind$1.ZodUnknown=`ZodUnknown`,ZodFirstPartyTypeKind$1.ZodNever=`ZodNever`,ZodFirstPartyTypeKind$1.ZodVoid=`ZodVoid`,ZodFirstPartyTypeKind$1.ZodArray=`ZodArray`,ZodFirstPartyTypeKind$1.ZodObject=`ZodObject`,ZodFirstPartyTypeKind$1.ZodUnion=`ZodUnion`,ZodFirstPartyTypeKind$1.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,ZodFirstPartyTypeKind$1.ZodIntersection=`ZodIntersection`,ZodFirstPartyTypeKind$1.ZodTuple=`ZodTuple`,ZodFirstPartyTypeKind$1.ZodRecord=`ZodRecord`,ZodFirstPartyTypeKind$1.ZodMap=`ZodMap`,ZodFirstPartyTypeKind$1.ZodSet=`ZodSet`,ZodFirstPartyTypeKind$1.ZodFunction=`ZodFunction`,ZodFirstPartyTypeKind$1.ZodLazy=`ZodLazy`,ZodFirstPartyTypeKind$1.ZodLiteral=`ZodLiteral`,ZodFirstPartyTypeKind$1.ZodEnum=`ZodEnum`,ZodFirstPartyTypeKind$1.ZodEffects=`ZodEffects`,ZodFirstPartyTypeKind$1.ZodNativeEnum=`ZodNativeEnum`,ZodFirstPartyTypeKind$1.ZodOptional=`ZodOptional`,ZodFirstPartyTypeKind$1.ZodNullable=`ZodNullable`,ZodFirstPartyTypeKind$1.ZodDefault=`ZodDefault`,ZodFirstPartyTypeKind$1.ZodCatch=`ZodCatch`,ZodFirstPartyTypeKind$1.ZodPromise=`ZodPromise`,ZodFirstPartyTypeKind$1.ZodBranded=`ZodBranded`,ZodFirstPartyTypeKind$1.ZodPipeline=`ZodPipeline`,ZodFirstPartyTypeKind$1.ZodReadonly=`ZodReadonly`})(ZodFirstPartyTypeKind||={});const stringType=ZodString.create,numberType=ZodNumber.create,nanType=ZodNaN.create,bigIntType=ZodBigInt.create,booleanType=ZodBoolean.create,dateType=ZodDate.create,symbolType=ZodSymbol.create,undefinedType=ZodUndefined.create,nullType=ZodNull.create,anyType=ZodAny.create,unknownType=ZodUnknown.create,neverType=ZodNever.create,voidType=ZodVoid.create,arrayType=ZodArray.create,objectType=ZodObject.create,strictObjectType=ZodObject.strictCreate,unionType=ZodUnion.create,discriminatedUnionType=ZodDiscriminatedUnion.create,intersectionType=ZodIntersection.create,tupleType=ZodTuple.create,recordType=ZodRecord.create,mapType=ZodMap.create,setType=ZodSet.create,functionType=ZodFunction.create,lazyType=ZodLazy.create,literalType=ZodLiteral.create,enumType=ZodEnum.create,nativeEnumType=ZodNativeEnum.create,promiseType=ZodPromise.create,effectsType=ZodEffects.create,optionalType=ZodOptional.create,nullableType=ZodNullable.create,preprocessType=ZodEffects.createWithPreprocess,pipelineType=ZodPipeline.create,tools$1=[tool({name:`debug_random_number`,description:`Generate a random number between 0 and 1`,execute:async()=>new Promise(resolve$1=>{setTimeout(()=>{resolve$1(Math.random().toString())},1e3)}),parameters:objectType({})})],debug=async()=>Promise.all(tools$1);function __classPrivateFieldGet(receiver,state,kind,f$3){if(kind===`a`&&!f$3)throw TypeError(`Private accessor was defined without a getter`);if(typeof state==`function`?receiver!==state||!f$3:!state.has(receiver))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return kind===`m`?f$3:kind===`a`?f$3.call(receiver):f$3?f$3.value:state.get(receiver)}function __classPrivateFieldSet(receiver,state,value$1,kind,f$3){if(kind===`m`)throw TypeError(`Private method is not writable`);if(kind===`a`&&!f$3)throw TypeError(`Private accessor was defined without a setter`);if(typeof state==`function`?receiver!==state||!f$3:!state.has(receiver))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return kind===`a`?f$3.call(receiver,value$1):f$3?f$3.value=value$1:state.set(receiver,value$1),value$1}var _Channel_onmessage,_Channel_nextMessageIndex,_Channel_pendingMessages,_Channel_messageEndIndex,_Resource_rid;const SERIALIZE_TO_IPC_FN=`__TAURI_TO_IPC_KEY__`;function transformCallback(callback,once=!1){return window.__TAURI_INTERNALS__.transformCallback(callback,once)}var Channel=class{constructor(onmessage){_Channel_onmessage.set(this,void 0),_Channel_nextMessageIndex.set(this,0),_Channel_pendingMessages.set(this,[]),_Channel_messageEndIndex.set(this,void 0),__classPrivateFieldSet(this,_Channel_onmessage,onmessage||(()=>{}),`f`),this.id=transformCallback(rawMessage=>{let index$1=rawMessage.index;if(`end`in rawMessage){index$1==__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)?this.cleanupCallback():__classPrivateFieldSet(this,_Channel_messageEndIndex,index$1,`f`);return}let message$1=rawMessage.message;if(index$1==__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)){for(__classPrivateFieldGet(this,_Channel_onmessage,`f`).call(this,message$1),__classPrivateFieldSet(this,_Channel_nextMessageIndex,__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)+1,`f`);__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)in __classPrivateFieldGet(this,_Channel_pendingMessages,`f`);){let message$2=__classPrivateFieldGet(this,_Channel_pendingMessages,`f`)[__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)];__classPrivateFieldGet(this,_Channel_onmessage,`f`).call(this,message$2),delete __classPrivateFieldGet(this,_Channel_pendingMessages,`f`)[__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)],__classPrivateFieldSet(this,_Channel_nextMessageIndex,__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)+1,`f`)}__classPrivateFieldGet(this,_Channel_nextMessageIndex,`f`)===__classPrivateFieldGet(this,_Channel_messageEndIndex,`f`)&&this.cleanupCallback()}else __classPrivateFieldGet(this,_Channel_pendingMessages,`f`)[index$1]=message$1})}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}set onmessage(handler){__classPrivateFieldSet(this,_Channel_onmessage,handler,`f`)}get onmessage(){return __classPrivateFieldGet(this,_Channel_onmessage,`f`)}[(_Channel_onmessage=new WeakMap,_Channel_nextMessageIndex=new WeakMap,_Channel_pendingMessages=new WeakMap,_Channel_messageEndIndex=new WeakMap,SERIALIZE_TO_IPC_FN)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[SERIALIZE_TO_IPC_FN]()}};async function invoke(cmd,args={},options$1){return window.__TAURI_INTERNALS__.invoke(cmd,args,options$1)}_Resource_rid=new WeakMap;async function connectServer(command,args){await invoke(`plugin:mcp|connect_server`,{command,args})}async function disconnectServer(){await invoke(`plugin:mcp|disconnect_server`)}async function listTools(){return await invoke(`plugin:mcp|list_tools`)}async function callTool(name$2,args){return await invoke(`plugin:mcp|call_tool`,{name:name$2,args})}const tools=[tool({name:`mcp_list_tools`,description:`List all tools available on the MCP server`,execute:async(_$2,__)=>await listTools(),parameters:objectType({})}),tool({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,args})=>(await connectServer(command,args),`success`),parameters:objectType({command:stringType().describe(`The command to connect to the MCP server`),args:arrayType(stringType()).describe(`The arguments to pass to the MCP server`)})}),tool({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 disconnectServer(),`success`),parameters:objectType({})}),tool({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:name$2,parameters})=>{let parametersObject=Object.fromEntries(parameters.map(({name:name$3,value:value$1})=>[name$3,value$1])),result=await callTool(name$2,parametersObject);return result},parameters:objectType({name:stringType().describe(`The name of the tool to call`),parameters:arrayType(objectType({name:stringType().describe(`The name of the parameter`),value:unionType([stringType(),numberType(),booleanType(),objectType({})]).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`)})})],mcp=async()=>Promise.all(tools),useLLM=defineStore(`llm`,()=>{async function stream(model,chatProvider,messages,options$1){let headers=options$1?.headers;return await streamText({...chatProvider.chat(model),maxSteps:10,messages:messages.map(msg=>({...msg,content:msg.role===`error`?`User encountered error: ${msg.content}`:msg.content,role:msg.role===`error`?`user`:msg.role})),headers,tools:[...await mcp(),...await debug()],onEvent(event){var _options$1$onToolCall,_options$1$onToolCall2;event.type===`tool-call`?options$1==null||(_options$1$onToolCall=options$1.onToolCall)==null||_options$1$onToolCall.call(options$1,event.toolCall):event.type===`tool-call-result`&&(options$1==null||(_options$1$onToolCall2=options$1.onToolCallResult)==null||_options$1$onToolCall2.call(options$1,{id:event.id,result:event.result}))}})}async function models$1(apiUrl,apiKey){if(apiUrl===``)return[];try{return await listModels({baseURL:apiUrl.endsWith(`/`)?apiUrl:`${apiUrl}/`,apiKey})}catch(err){if(String(err).includes(`Failed to construct 'URL': Invalid URL`))return[];throw err}}return{models:models$1,stream}}),inBrowser=typeof window<`u`,makeSymbol=(name$2,shareable=!1)=>shareable?Symbol.for(name$2):Symbol(name$2),generateFormatCacheKey=(locale,key$1,source)=>friendlyJSONstringify({l:locale,k:key$1,s:source}),friendlyJSONstringify=json=>JSON.stringify(json).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),isNumber=val=>typeof val==`number`&&isFinite(val),isDate=val=>toTypeString(val)===`[object Date]`,isRegExp=val=>toTypeString(val)===`[object RegExp]`,isEmptyObject=val=>isPlainObject(val)&&Object.keys(val).length===0,assign=Object.assign,_create=Object.create,create=(obj=null)=>_create(obj);let _globalThis;const getGlobalThis=()=>_globalThis||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:create();function escapeHtml(rawText){return rawText.replace(//g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(obj,key$1){return hasOwnProperty.call(obj,key$1)}const isArray$1=Array.isArray,isFunction=val=>typeof val==`function`,isString=val=>typeof val==`string`,isBoolean=val=>typeof val==`boolean`,isObject$2=val=>typeof val==`object`&&!!val,isPromise=val=>isObject$2(val)&&isFunction(val.then)&&isFunction(val.catch),objectToString=Object.prototype.toString,toTypeString=value$1=>objectToString.call(value$1),isPlainObject=val=>toTypeString(val)===`[object Object]`,toDisplayString$1=val=>val==null?``:isArray$1(val)||isPlainObject(val)&&val.toString===objectToString?JSON.stringify(val,null,2):String(val);function join(items,separator=``){return items.reduce((str,item,index$1)=>index$1===0?str+item:str+separator+item,``)}function warn(msg,err){typeof console<`u`&&(console.warn(`[intlify] `+msg),err&&console.warn(err.stack))}const isNotObjectOrIsArray=val=>!isObject$2(val)||isArray$1(val);function deepCopy(src,des){if(isNotObjectOrIsArray(src)||isNotObjectOrIsArray(des))throw Error(`Invalid value`);let stack$1=[{src,des}];for(;stack$1.length;){let{src:src$1,des:des$1}=stack$1.pop();Object.keys(src$1).forEach(key$1=>{key$1!==`__proto__`&&(isObject$2(src$1[key$1])&&!isObject$2(des$1[key$1])&&(des$1[key$1]=Array.isArray(src$1[key$1])?[]:create()),isNotObjectOrIsArray(des$1[key$1])||isNotObjectOrIsArray(src$1[key$1])?des$1[key$1]=src$1[key$1]:stack$1.push({src:src$1[key$1],des:des$1[key$1]}))})}}function createPosition(line,column,offset$1){return{line,column,offset:offset$1}}function createLocation(start,end,source){let loc={start,end};return source!=null&&(loc.source=source),loc}const CompileErrorCodes={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},COMPILE_ERROR_CODES_EXTEND_POINT=17,errorMessages$2={[CompileErrorCodes.EXPECTED_TOKEN]:`Expected token: '{0}'`,[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:`Invalid token in placeholder: '{0}'`,[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:`Unterminated single quote in placeholder`,[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:`Unknown escape sequence: \\{0}`,[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:`Invalid unicode escape sequence: {0}`,[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:`Unbalanced closing brace`,[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:`Unterminated closing brace`,[CompileErrorCodes.EMPTY_PLACEHOLDER]:`Empty placeholder`,[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:`Not allowed nest placeholder`,[CompileErrorCodes.INVALID_LINKED_FORMAT]:`Invalid linked format`,[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:`Plural must have messages`,[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:`Unexpected empty linked modifier`,[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:`Unexpected empty linked key`,[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:`Unexpected lexical analysis in token: '{0}'`,[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:`unhandled codegen node type: '{0}'`,[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:`unhandled mimifier node type: '{0}'`};function createCompileError(code$1,loc,options$1={}){let{domain,messages,args}=options$1,msg=code$1,error=SyntaxError(String(msg));return error.code=code$1,loc&&(error.location=loc),error.domain=domain,error}function defaultOnError(error){throw error}const CHAR_SP=` `,CHAR_CR=`\r`,CHAR_LF=` `,CHAR_LS=`\u2028`,CHAR_PS=`\u2029`;function createScanner(str){let _buf=str,_index=0,_line=1,_column=1,_peekOffset=0,isCRLF=index$2=>_buf[index$2]===CHAR_CR&&_buf[index$2+1]===CHAR_LF,isLF=index$2=>_buf[index$2]===CHAR_LF,isPS=index$2=>_buf[index$2]===CHAR_PS,isLS=index$2=>_buf[index$2]===CHAR_LS,isLineEnd=index$2=>isCRLF(index$2)||isLF(index$2)||isPS(index$2)||isLS(index$2),index$1=()=>_index,line=()=>_line,column=()=>_column,peekOffset=()=>_peekOffset,charAt=offset$1=>isCRLF(offset$1)||isPS(offset$1)||isLS(offset$1)?CHAR_LF:_buf[offset$1],currentChar=()=>charAt(_index),currentPeek=()=>charAt(_index+_peekOffset);function next(){return _peekOffset=0,isLineEnd(_index)&&(_line++,_column=0),isCRLF(_index)&&_index++,_index++,_column++,_buf[_index]}function peek$1(){return isCRLF(_index+_peekOffset)&&_peekOffset++,_peekOffset++,_buf[_index+_peekOffset]}function reset(){_index=0,_line=1,_column=1,_peekOffset=0}function resetPeek(offset$1=0){_peekOffset=offset$1}function skipToPeek(){let target$1=_index+_peekOffset;for(;target$1!==_index;)next();_peekOffset=0}return{index:index$1,line,column,peekOffset,charAt,currentChar,currentPeek,next,peek:peek$1,reset,resetPeek,skipToPeek}}const EOF=void 0,DOT=`.`,LITERAL_DELIMITER=`'`,ERROR_DOMAIN$3=`tokenizer`;function createTokenizer(source,options$1={}){let location$1=options$1.location!==!1,_scnr=createScanner(source),currentOffset=()=>_scnr.index(),currentPosition=()=>createPosition(_scnr.line(),_scnr.column(),_scnr.index()),_initLoc=currentPosition(),_initOffset=currentOffset(),_context$1={currentType:13,offset:_initOffset,startLoc:_initLoc,endLoc:_initLoc,lastType:13,lastOffset:_initOffset,lastStartLoc:_initLoc,lastEndLoc:_initLoc,braceNest:0,inLinked:!1,text:``},context$1=()=>_context$1,{onError}=options$1;function emitError(code$1,pos,offset$1,...args){let ctx=context$1();if(pos.column+=offset$1,pos.offset+=offset$1,onError){let loc=location$1?createLocation(ctx.startLoc,pos):null,err=createCompileError(code$1,loc,{domain:ERROR_DOMAIN$3,args});onError(err)}}function getToken(context$2,type,value$1){context$2.endLoc=currentPosition(),context$2.currentType=type;let token={type};return location$1&&(token.loc=createLocation(context$2.startLoc,context$2.endLoc)),value$1!=null&&(token.value=value$1),token}let getEndToken=context$2=>getToken(context$2,13);function eat(scnr,ch){return scnr.currentChar()===ch?(scnr.next(),ch):(emitError(CompileErrorCodes.EXPECTED_TOKEN,currentPosition(),0,ch),``)}function peekSpaces(scnr){let buf=``;for(;scnr.currentPeek()===CHAR_SP||scnr.currentPeek()===CHAR_LF;)buf+=scnr.currentPeek(),scnr.peek();return buf}function skipSpaces(scnr){let buf=peekSpaces(scnr);return scnr.skipToPeek(),buf}function isIdentifierStart(ch){if(ch===EOF)return!1;let cc$1=ch.charCodeAt(0);return cc$1>=97&&cc$1<=122||cc$1>=65&&cc$1<=90||cc$1===95}function isNumberStart(ch){if(ch===EOF)return!1;let cc$1=ch.charCodeAt(0);return cc$1>=48&&cc$1<=57}function isNamedIdentifierStart(scnr,context$2){let{currentType}=context$2;if(currentType!==2)return!1;peekSpaces(scnr);let ret=isIdentifierStart(scnr.currentPeek());return scnr.resetPeek(),ret}function isListIdentifierStart(scnr,context$2){let{currentType}=context$2;if(currentType!==2)return!1;peekSpaces(scnr);let ch=scnr.currentPeek()===`-`?scnr.peek():scnr.currentPeek(),ret=isNumberStart(ch);return scnr.resetPeek(),ret}function isLiteralStart(scnr,context$2){let{currentType}=context$2;if(currentType!==2)return!1;peekSpaces(scnr);let ret=scnr.currentPeek()===LITERAL_DELIMITER;return scnr.resetPeek(),ret}function isLinkedDotStart(scnr,context$2){let{currentType}=context$2;if(currentType!==7)return!1;peekSpaces(scnr);let ret=scnr.currentPeek()===`.`;return scnr.resetPeek(),ret}function isLinkedModifierStart(scnr,context$2){let{currentType}=context$2;if(currentType!==8)return!1;peekSpaces(scnr);let ret=isIdentifierStart(scnr.currentPeek());return scnr.resetPeek(),ret}function isLinkedDelimiterStart(scnr,context$2){let{currentType}=context$2;if(!(currentType===7||currentType===11))return!1;peekSpaces(scnr);let ret=scnr.currentPeek()===`:`;return scnr.resetPeek(),ret}function isLinkedReferStart(scnr,context$2){let{currentType}=context$2;if(currentType!==9)return!1;let fn$5=()=>{let ch=scnr.currentPeek();return ch===`{`?isIdentifierStart(scnr.peek()):ch===`@`||ch===`|`||ch===`:`||ch===`.`||ch===CHAR_SP||!ch?!1:ch===CHAR_LF?(scnr.peek(),fn$5()):isTextStart(scnr,!1)},ret=fn$5();return scnr.resetPeek(),ret}function isPluralStart(scnr){peekSpaces(scnr);let ret=scnr.currentPeek()===`|`;return scnr.resetPeek(),ret}function isTextStart(scnr,reset=!0){let fn$5=(hasSpace=!1,prev=``)=>{let ch=scnr.currentPeek();return ch===`{`||ch===`@`||!ch?hasSpace:ch===`|`?!(prev===CHAR_SP||prev===CHAR_LF):ch===CHAR_SP?(scnr.peek(),fn$5(!0,CHAR_SP)):ch===CHAR_LF?(scnr.peek(),fn$5(!0,CHAR_LF)):!0},ret=fn$5();return reset&&scnr.resetPeek(),ret}function takeChar(scnr,fn$5){let ch=scnr.currentChar();return ch===EOF?EOF:fn$5(ch)?(scnr.next(),ch):null}function isIdentifier(ch){let cc$1=ch.charCodeAt(0);return cc$1>=97&&cc$1<=122||cc$1>=65&&cc$1<=90||cc$1>=48&&cc$1<=57||cc$1===95||cc$1===36}function takeIdentifierChar(scnr){return takeChar(scnr,isIdentifier)}function isNamedIdentifier(ch){let cc$1=ch.charCodeAt(0);return cc$1>=97&&cc$1<=122||cc$1>=65&&cc$1<=90||cc$1>=48&&cc$1<=57||cc$1===95||cc$1===36||cc$1===45}function takeNamedIdentifierChar(scnr){return takeChar(scnr,isNamedIdentifier)}function isDigit(ch){let cc$1=ch.charCodeAt(0);return cc$1>=48&&cc$1<=57}function takeDigit(scnr){return takeChar(scnr,isDigit)}function isHexDigit(ch){let cc$1=ch.charCodeAt(0);return cc$1>=48&&cc$1<=57||cc$1>=65&&cc$1<=70||cc$1>=97&&cc$1<=102}function takeHexDigit(scnr){return takeChar(scnr,isHexDigit)}function getDigits(scnr){let ch=``,num$2=``;for(;ch=takeDigit(scnr);)num$2+=ch;return num$2}function readText(scnr){let buf=``;for(;;){let ch=scnr.currentChar();if(ch===`{`||ch===`}`||ch===`@`||ch===`|`||!ch)break;if(ch===CHAR_SP||ch===CHAR_LF)if(isTextStart(scnr))buf+=ch,scnr.next();else if(isPluralStart(scnr))break;else buf+=ch,scnr.next();else buf+=ch,scnr.next()}return buf}function readNamedIdentifier(scnr){skipSpaces(scnr);let ch=``,name$2=``;for(;ch=takeNamedIdentifierChar(scnr);)name$2+=ch;return scnr.currentChar()===EOF&&emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,currentPosition(),0),name$2}function readListIdentifier(scnr){skipSpaces(scnr);let value$1=``;return scnr.currentChar()===`-`?(scnr.next(),value$1+=`-${getDigits(scnr)}`):value$1+=getDigits(scnr),scnr.currentChar()===EOF&&emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,currentPosition(),0),value$1}function isLiteral$1(ch){return ch!==LITERAL_DELIMITER&&ch!==CHAR_LF}function readLiteral(scnr){skipSpaces(scnr),eat(scnr,`'`);let ch=``,literal=``;for(;ch=takeChar(scnr,isLiteral$1);)ch===`\\`?literal+=readEscapeSequence(scnr):literal+=ch;let current=scnr.currentChar();return current===CHAR_LF||current===EOF?(emitError(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,currentPosition(),0),current===CHAR_LF&&(scnr.next(),eat(scnr,`'`)),literal):(eat(scnr,`'`),literal)}function readEscapeSequence(scnr){let ch=scnr.currentChar();switch(ch){case`\\`:case`'`:return scnr.next(),`\\${ch}`;case`u`:return readUnicodeEscapeSequence(scnr,ch,4);case`U`:return readUnicodeEscapeSequence(scnr,ch,6);default:return emitError(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,currentPosition(),0,ch),``}}function readUnicodeEscapeSequence(scnr,unicode,digits$1){eat(scnr,unicode);let sequence=``;for(let i$1=0;i$1{let ch=scnr.currentChar();return ch===`{`||ch===`@`||ch===`|`||ch===`(`||ch===`)`||!ch||ch===CHAR_SP?buf:(buf+=ch,scnr.next(),fn$5(buf))};return fn$5(``)}function readPlural(scnr){skipSpaces(scnr);let plural=eat(scnr,`|`);return skipSpaces(scnr),plural}function readTokenInPlaceholder(scnr,context$2){let token=null,ch=scnr.currentChar();switch(ch){case`{`:return context$2.braceNest>=1&&emitError(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,currentPosition(),0),scnr.next(),token=getToken(context$2,2,`{`),skipSpaces(scnr),context$2.braceNest++,token;case`}`:return context$2.braceNest>0&&context$2.currentType===2&&emitError(CompileErrorCodes.EMPTY_PLACEHOLDER,currentPosition(),0),scnr.next(),token=getToken(context$2,3,`}`),context$2.braceNest--,context$2.braceNest>0&&skipSpaces(scnr),context$2.inLinked&&context$2.braceNest===0&&(context$2.inLinked=!1),token;case`@`:return context$2.braceNest>0&&emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,currentPosition(),0),token=readTokenInLinked(scnr,context$2)||getEndToken(context$2),context$2.braceNest=0,token;default:{let validNamedIdentifier=!0,validListIdentifier=!0,validLiteral=!0;if(isPluralStart(scnr))return context$2.braceNest>0&&emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,currentPosition(),0),token=getToken(context$2,1,readPlural(scnr)),context$2.braceNest=0,context$2.inLinked=!1,token;if(context$2.braceNest>0&&(context$2.currentType===4||context$2.currentType===5||context$2.currentType===6))return emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,currentPosition(),0),context$2.braceNest=0,readToken(scnr,context$2);if(validNamedIdentifier=isNamedIdentifierStart(scnr,context$2))return token=getToken(context$2,4,readNamedIdentifier(scnr)),skipSpaces(scnr),token;if(validListIdentifier=isListIdentifierStart(scnr,context$2))return token=getToken(context$2,5,readListIdentifier(scnr)),skipSpaces(scnr),token;if(validLiteral=isLiteralStart(scnr,context$2))return token=getToken(context$2,6,readLiteral(scnr)),skipSpaces(scnr),token;if(!validNamedIdentifier&&!validListIdentifier&&!validLiteral)return token=getToken(context$2,12,readInvalidIdentifier(scnr)),emitError(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,currentPosition(),0,token.value),skipSpaces(scnr),token;break}}return token}function readTokenInLinked(scnr,context$2){let{currentType}=context$2,token=null,ch=scnr.currentChar();switch((currentType===7||currentType===8||currentType===11||currentType===9)&&(ch===CHAR_LF||ch===CHAR_SP)&&emitError(CompileErrorCodes.INVALID_LINKED_FORMAT,currentPosition(),0),ch){case`@`:return scnr.next(),token=getToken(context$2,7,`@`),context$2.inLinked=!0,token;case`.`:return skipSpaces(scnr),scnr.next(),getToken(context$2,8,`.`);case`:`:return skipSpaces(scnr),scnr.next(),getToken(context$2,9,`:`);default:return isPluralStart(scnr)?(token=getToken(context$2,1,readPlural(scnr)),context$2.braceNest=0,context$2.inLinked=!1,token):isLinkedDotStart(scnr,context$2)||isLinkedDelimiterStart(scnr,context$2)?(skipSpaces(scnr),readTokenInLinked(scnr,context$2)):isLinkedModifierStart(scnr,context$2)?(skipSpaces(scnr),getToken(context$2,11,readLinkedModifier(scnr))):isLinkedReferStart(scnr,context$2)?(skipSpaces(scnr),ch===`{`?readTokenInPlaceholder(scnr,context$2)||token:getToken(context$2,10,readLinkedRefer(scnr))):(currentType===7&&emitError(CompileErrorCodes.INVALID_LINKED_FORMAT,currentPosition(),0),context$2.braceNest=0,context$2.inLinked=!1,readToken(scnr,context$2))}}function readToken(scnr,context$2){let token={type:13};if(context$2.braceNest>0)return readTokenInPlaceholder(scnr,context$2)||getEndToken(context$2);if(context$2.inLinked)return readTokenInLinked(scnr,context$2)||getEndToken(context$2);let ch=scnr.currentChar();switch(ch){case`{`:return readTokenInPlaceholder(scnr,context$2)||getEndToken(context$2);case`}`:return emitError(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,currentPosition(),0),scnr.next(),getToken(context$2,3,`}`);case`@`:return readTokenInLinked(scnr,context$2)||getEndToken(context$2);default:if(isPluralStart(scnr))return token=getToken(context$2,1,readPlural(scnr)),context$2.braceNest=0,context$2.inLinked=!1,token;if(isTextStart(scnr))return getToken(context$2,0,readText(scnr));break}return token}function nextToken(){let{currentType,offset:offset$1,startLoc,endLoc}=_context$1;return _context$1.lastType=currentType,_context$1.lastOffset=offset$1,_context$1.lastStartLoc=startLoc,_context$1.lastEndLoc=endLoc,_context$1.offset=currentOffset(),_context$1.startLoc=currentPosition(),_scnr.currentChar()===EOF?getToken(_context$1,13):readToken(_scnr,_context$1)}return{nextToken,currentOffset,currentPosition,context:context$1}}const ERROR_DOMAIN$2=`parser`,KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(match,codePoint4,codePoint6){switch(match){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let codePoint=parseInt(codePoint4||codePoint6,16);return codePoint<=55295||codePoint>=57344?String.fromCodePoint(codePoint):`�`}}}function createParser(options$1={}){let location$1=options$1.location!==!1,{onError}=options$1;function emitError(tokenzer,code$1,start,offset$1,...args){let end=tokenzer.currentPosition();if(end.offset+=offset$1,end.column+=offset$1,onError){let loc=location$1?createLocation(start,end):null,err=createCompileError(code$1,loc,{domain:ERROR_DOMAIN$2,args});onError(err)}}function startNode(type,offset$1,loc){let node$1={type};return location$1&&(node$1.start=offset$1,node$1.end=offset$1,node$1.loc={start:loc,end:loc}),node$1}function endNode(node$1,offset$1,pos,type){location$1&&(node$1.end=offset$1,node$1.loc&&(node$1.loc.end=pos))}function parseText(tokenizer,value$1){let context$1=tokenizer.context(),node$1=startNode(3,context$1.offset,context$1.startLoc);return node$1.value=value$1,endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}function parseList(tokenizer,index$1){let context$1=tokenizer.context(),{lastOffset:offset$1,lastStartLoc:loc}=context$1,node$1=startNode(5,offset$1,loc);return node$1.index=parseInt(index$1,10),tokenizer.nextToken(),endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}function parseNamed$1(tokenizer,key$1){let context$1=tokenizer.context(),{lastOffset:offset$1,lastStartLoc:loc}=context$1,node$1=startNode(4,offset$1,loc);return node$1.key=key$1,tokenizer.nextToken(),endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}function parseLiteral(tokenizer,value$1){let context$1=tokenizer.context(),{lastOffset:offset$1,lastStartLoc:loc}=context$1,node$1=startNode(9,offset$1,loc);return node$1.value=value$1.replace(KNOWN_ESCAPES,fromEscapeSequence),tokenizer.nextToken(),endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}function parseLinkedModifier(tokenizer){let token=tokenizer.nextToken(),context$1=tokenizer.context(),{lastOffset:offset$1,lastStartLoc:loc}=context$1,node$1=startNode(8,offset$1,loc);return token.type===11?(token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),node$1.value=token.value||``,endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),{node:node$1}):(emitError(tokenizer,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,context$1.lastStartLoc,0),node$1.value=``,endNode(node$1,offset$1,loc),{nextConsumeToken:token,node:node$1})}function parseLinkedKey(tokenizer,value$1){let context$1=tokenizer.context(),node$1=startNode(7,context$1.offset,context$1.startLoc);return node$1.value=value$1,endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}function parseLinked(tokenizer){let context$1=tokenizer.context(),linkedNode=startNode(6,context$1.offset,context$1.startLoc),token=tokenizer.nextToken();if(token.type===8){let parsed=parseLinkedModifier(tokenizer);linkedNode.modifier=parsed.node,token=parsed.nextConsumeToken||tokenizer.nextToken()}switch(token.type!==9&&emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),token=tokenizer.nextToken(),token.type===2&&(token=tokenizer.nextToken()),token.type){case 10:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),linkedNode.key=parseLinkedKey(tokenizer,token.value||``);break;case 4:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),linkedNode.key=parseNamed$1(tokenizer,token.value||``);break;case 5:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),linkedNode.key=parseList(tokenizer,token.value||``);break;case 6:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),linkedNode.key=parseLiteral(tokenizer,token.value||``);break;default:{emitError(tokenizer,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,context$1.lastStartLoc,0);let nextContext=tokenizer.context(),emptyLinkedKeyNode=startNode(7,nextContext.offset,nextContext.startLoc);return emptyLinkedKeyNode.value=``,endNode(emptyLinkedKeyNode,nextContext.offset,nextContext.startLoc),linkedNode.key=emptyLinkedKeyNode,endNode(linkedNode,nextContext.offset,nextContext.startLoc),{nextConsumeToken:token,node:linkedNode}}}return endNode(linkedNode,tokenizer.currentOffset(),tokenizer.currentPosition()),{node:linkedNode}}function parseMessage(tokenizer){let context$1=tokenizer.context(),startOffset=context$1.currentType===1?tokenizer.currentOffset():context$1.offset,startLoc=context$1.currentType===1?context$1.endLoc:context$1.startLoc,node$1=startNode(2,startOffset,startLoc);node$1.items=[];let nextToken=null;do{let token=nextToken||tokenizer.nextToken();switch(nextToken=null,token.type){case 0:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),node$1.items.push(parseText(tokenizer,token.value||``));break;case 5:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),node$1.items.push(parseList(tokenizer,token.value||``));break;case 4:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),node$1.items.push(parseNamed$1(tokenizer,token.value||``));break;case 6:token.value??emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,getTokenCaption(token)),node$1.items.push(parseLiteral(tokenizer,token.value||``));break;case 7:{let parsed=parseLinked(tokenizer);node$1.items.push(parsed.node),nextToken=parsed.nextConsumeToken||null;break}}}while(context$1.currentType!==13&&context$1.currentType!==1);let endOffset=context$1.currentType===1?context$1.lastOffset:tokenizer.currentOffset(),endLoc=context$1.currentType===1?context$1.lastEndLoc:tokenizer.currentPosition();return endNode(node$1,endOffset,endLoc),node$1}function parsePlural(tokenizer,offset$1,loc,msgNode){let context$1=tokenizer.context(),hasEmptyMessage=msgNode.items.length===0,node$1=startNode(1,offset$1,loc);node$1.cases=[],node$1.cases.push(msgNode);do{let msg=parseMessage(tokenizer);hasEmptyMessage||=msg.items.length===0,node$1.cases.push(msg)}while(context$1.currentType!==13);return hasEmptyMessage&&emitError(tokenizer,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,loc,0),endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}function parseResource(tokenizer){let context$1=tokenizer.context(),{offset:offset$1,startLoc}=context$1,msgNode=parseMessage(tokenizer);return context$1.currentType===13?msgNode:parsePlural(tokenizer,offset$1,startLoc,msgNode)}function parse$4(source){let tokenizer=createTokenizer(source,assign({},options$1)),context$1=tokenizer.context(),node$1=startNode(0,context$1.offset,context$1.startLoc);return location$1&&node$1.loc&&(node$1.loc.source=source),node$1.body=parseResource(tokenizer),options$1.onCacheKey&&(node$1.cacheKey=options$1.onCacheKey(source)),context$1.currentType!==13&&emitError(tokenizer,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,context$1.lastStartLoc,0,source[context$1.offset]||``),endNode(node$1,tokenizer.currentOffset(),tokenizer.currentPosition()),node$1}return{parse:parse$4}}function getTokenCaption(token){if(token.type===13)return`EOF`;let name$2=(token.value||``).replace(/\r?\n/gu,`\\n`);return name$2.length>10?name$2.slice(0,9)+`…`:name$2}function createTransformer(ast,options$1={}){let _context$1={ast,helpers:new Set},context$1=()=>_context$1,helper=name$2=>(_context$1.helpers.add(name$2),name$2);return{context:context$1,helper}}function traverseNodes(nodes,transformer){for(let i$1=0;i$1optimizeMessageNode(c$4)),ast}function optimizeMessageNode(message$1){if(message$1.items.length===1){let item=message$1.items[0];(item.type===3||item.type===9)&&(message$1.static=item.value,delete item.value)}else{let values=[];for(let i$1=0;i$1_context$1;function push$1(code$1,node$1){_context$1.code+=code$1}function _newline(n$2,withBreakLine=!0){let _breakLineCode=withBreakLine?breakLineCode:``;push$1(_needIndent?_breakLineCode+` `.repeat(n$2):_breakLineCode)}function indent(withNewLine=!0){let level=++_context$1.indentLevel;withNewLine&&_newline(level)}function deindent(withNewLine=!0){let level=--_context$1.indentLevel;withNewLine&&_newline(level)}function newline(){_newline(_context$1.indentLevel)}let helper=key$1=>`_${key$1}`,needIndent=()=>_context$1.needIndent;return{context:context$1,push:push$1,indent,deindent,newline,helper,needIndent}}function generateLinkedNode(generator,node$1){let{helper}=generator;generator.push(`${helper(`linked`)}(`),generateNode(generator,node$1.key),node$1.modifier?(generator.push(`, `),generateNode(generator,node$1.modifier),generator.push(`, _type`)):generator.push(`, undefined, _type`),generator.push(`)`)}function generateMessageNode(generator,node$1){let{helper,needIndent}=generator;generator.push(`${helper(`normalize`)}([`),generator.indent(needIndent());let length=node$1.items.length;for(let i$1=0;i$11){generator.push(`${helper(`plural`)}([`),generator.indent(needIndent());let length=node$1.cases.length;for(let i$1=0;i$1{let mode=isString(options$1.mode)?options$1.mode:`normal`,filename=isString(options$1.filename)?options$1.filename:`message.intl`,sourceMap=!!options$1.sourceMap,breakLineCode=options$1.breakLineCode==null?mode===`arrow`?`;`:` `:options$1.breakLineCode,needIndent=options$1.needIndent?options$1.needIndent:mode!==`arrow`,helpers=ast.helpers||[],generator=createCodeGenerator(ast,{mode,filename,sourceMap,breakLineCode,needIndent});generator.push(mode===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),generator.indent(needIndent),helpers.length>0&&(generator.push(`const { ${join(helpers.map(s$1=>`${s$1}: _${s$1}`),`, `)} } = ctx`),generator.newline()),generator.push(`return `),generateNode(generator,ast),generator.deindent(needIndent),generator.push(`}`),delete ast.helpers;let{code:code$1,map}=generator.context();return{ast,code:code$1,map:map?map.toJSON():void 0}};function baseCompile(source,options$1={}){let assignedOptions=assign({},options$1),jit=!!assignedOptions.jit,enalbeMinify=!!assignedOptions.minify,enambeOptimize=assignedOptions.optimize==null?!0:assignedOptions.optimize,parser=createParser(assignedOptions),ast=parser.parse(source);return jit?(enambeOptimize&&optimize(ast),enalbeMinify&&minify(ast),{ast,code:``}):(transform(ast,assignedOptions),generate(ast,assignedOptions))}function initFeatureFlags$1(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}function isMessageAST(val){return isObject$2(val)&&resolveType(val)===0&&(hasOwn(val,`b`)||hasOwn(val,`body`))}const PROPS_BODY=[`b`,`body`];function resolveBody(node$1){return resolveProps(node$1,PROPS_BODY)}const PROPS_CASES=[`c`,`cases`];function resolveCases(node$1){return resolveProps(node$1,PROPS_CASES,[])}const PROPS_STATIC=[`s`,`static`];function resolveStatic(node$1){return resolveProps(node$1,PROPS_STATIC)}const PROPS_ITEMS=[`i`,`items`];function resolveItems(node$1){return resolveProps(node$1,PROPS_ITEMS,[])}const PROPS_TYPE=[`t`,`type`];function resolveType(node$1){return resolveProps(node$1,PROPS_TYPE)}const PROPS_VALUE=[`v`,`value`];function resolveValue$1(node$1,type){let resolved=resolveProps(node$1,PROPS_VALUE);if(resolved!=null)return resolved;throw createUnhandleNodeError(type)}const PROPS_MODIFIER=[`m`,`modifier`];function resolveLinkedModifier(node$1){return resolveProps(node$1,PROPS_MODIFIER)}const PROPS_KEY=[`k`,`key`];function resolveLinkedKey(node$1){let resolved=resolveProps(node$1,PROPS_KEY);if(resolved)return resolved;throw createUnhandleNodeError(6)}function resolveProps(node$1,props,defaultValue){for(let i$1=0;i$1formatParts(ctx,ast);return msg}function formatParts(ctx,ast){let body$2=resolveBody(ast);if(body$2==null)throw createUnhandleNodeError(0);let type=resolveType(body$2);if(type===1){let plural=body$2,cases=resolveCases(plural);return ctx.plural(cases.reduce((messages,c$4)=>[...messages,formatMessageParts(ctx,c$4)],[]))}else return formatMessageParts(ctx,body$2)}function formatMessageParts(ctx,node$1){let static_=resolveStatic(node$1);if(static_!=null)return ctx.type===`text`?static_:ctx.normalize([static_]);{let messages=resolveItems(node$1).reduce((acm,c$4)=>[...acm,formatMessagePart(ctx,c$4)],[]);return ctx.normalize(messages)}}function formatMessagePart(ctx,node$1){let type=resolveType(node$1);switch(type){case 3:return resolveValue$1(node$1,type);case 9:return resolveValue$1(node$1,type);case 4:{let named$1=node$1;if(hasOwn(named$1,`k`)&&named$1.k)return ctx.interpolate(ctx.named(named$1.k));if(hasOwn(named$1,`key`)&&named$1.key)return ctx.interpolate(ctx.named(named$1.key));throw createUnhandleNodeError(type)}case 5:{let list$2=node$1;if(hasOwn(list$2,`i`)&&isNumber(list$2.i))return ctx.interpolate(ctx.list(list$2.i));if(hasOwn(list$2,`index`)&&isNumber(list$2.index))return ctx.interpolate(ctx.list(list$2.index));throw createUnhandleNodeError(type)}case 6:{let linked=node$1,modifier=resolveLinkedModifier(linked),key$1=resolveLinkedKey(linked);return ctx.linked(formatMessagePart(ctx,key$1),modifier?formatMessagePart(ctx,modifier):void 0,ctx.type)}case 7:return resolveValue$1(node$1,type);case 8:return resolveValue$1(node$1,type);default:throw Error(`unhandled node on format message part: ${type}`)}}const defaultOnCacheKey=message$1=>message$1;let compileCache=create();function baseCompile$1(message$1,options$1={}){let detectError=!1,onError=options$1.onError||defaultOnError;return options$1.onError=err=>{detectError=!0,onError(err)},{...baseCompile(message$1,options$1),detectError}}function compile(message$1,context$1){if(isString(message$1)){let warnHtmlMessage=isBoolean(context$1.warnHtmlMessage)?context$1.warnHtmlMessage:!0,onCacheKey=context$1.onCacheKey||defaultOnCacheKey,cacheKey=onCacheKey(message$1),cached=compileCache[cacheKey];if(cached)return cached;let{ast,detectError}=baseCompile$1(message$1,{...context$1,location:!1,jit:!0}),msg=format$1(ast);return detectError?msg:compileCache[cacheKey]=msg}else{let cacheKey=message$1.cacheKey;if(cacheKey){let cached=compileCache[cacheKey];return cached||(compileCache[cacheKey]=format$1(message$1))}else return format$1(message$1)}}let devtools=null;function setDevToolsHook(hook){devtools=hook}function initI18nDevTools(i18n$1,version$1,meta){devtools&&devtools.emit(`i18n:init`,{timestamp:Date.now(),i18n:i18n$1,version:version$1,meta})}const translateDevTools=createDevToolsHook(`function:translate`);function createDevToolsHook(hook){return payloads=>devtools&&devtools.emit(hook,payloads)}const CoreErrorCodes={INVALID_ARGUMENT:COMPILE_ERROR_CODES_EXTEND_POINT,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},CORE_ERROR_CODES_EXTEND_POINT=24;function createCoreError(code$1){return createCompileError(code$1,null,void 0)}const errorMessages$1={[CoreErrorCodes.INVALID_ARGUMENT]:`Invalid arguments`,[CoreErrorCodes.INVALID_DATE_ARGUMENT]:`The date provided is an invalid Date object.Make sure your Date represents a valid date.`,[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]:`The argument provided is not a valid ISO date string`,[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]:`Not support non-string message`,[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:`cannot support promise value`,[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:`cannot support async function`,[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]:`cannot support locale type`};function getLocale$1(context$1,options$1){return options$1.locale==null?resolveLocale(context$1.locale):resolveLocale(options$1.locale)}let _resolveLocale;function resolveLocale(locale){if(isString(locale))return locale;if(isFunction(locale)){if(locale.resolvedOnce&&_resolveLocale!=null)return _resolveLocale;if(locale.constructor.name===`Function`){let resolve$1=locale();if(isPromise(resolve$1))throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=resolve$1}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(ctx,fallback,start){return[...new Set([start,...isArray$1(fallback)?fallback:isObject$2(fallback)?Object.keys(fallback):isString(fallback)?[fallback]:[start]])]}function fallbackWithLocaleChain(ctx,fallback,start){let startLocale=isString(start)?start:DEFAULT_LOCALE,context$1=ctx;context$1.__localeChainCache||=new Map;let chain=context$1.__localeChainCache.get(startLocale);if(!chain){chain=[];let block=[start];for(;isArray$1(block);)block=appendBlockToChain(chain,block,fallback);let defaults=isArray$1(fallback)||!isPlainObject(fallback)?fallback:fallback.default?fallback.default:null;block=isString(defaults)?[defaults]:defaults,isArray$1(block)&&appendBlockToChain(chain,block,!1),context$1.__localeChainCache.set(startLocale,chain)}return chain}function appendBlockToChain(chain,block,blocks){let follow=!0;for(let i$1=0;i$1{key$1===void 0?key$1=newChar:key$1+=newChar},actions[1]=()=>{key$1!==void 0&&(keys$3.push(key$1),key$1=void 0)},actions[2]=()=>{actions[0](),subPathDepth++},actions[3]=()=>{if(subPathDepth>0)subPathDepth--,mode=4,actions[0]();else{if(subPathDepth=0,key$1===void 0||(key$1=formatSubPath(key$1),key$1===!1))return!1;actions[1]()}};function maybeUnescapeQuote(){let nextChar=path[index$1+1];if(mode===5&&nextChar===`'`||mode===6&&nextChar===`"`)return index$1++,newChar=`\\`+nextChar,actions[0](),!0}for(;mode!==null;)if(index$1++,c$4=path[index$1],!(c$4===`\\`&&maybeUnescapeQuote())){if(type=getPathCharType(c$4),typeMap=pathStateMachine[mode],transition=typeMap[type]||typeMap.l||8,transition===8||(mode=transition[0],transition[1]!==void 0&&(action=actions[transition[1]],action&&(newChar=c$4,action()===!1))))return;if(mode===7)return keys$3}}const cache=new Map;function resolveWithKeyValue(obj,path){return isObject$2(obj)?obj[path]:null}function resolveValue(obj,path){if(!isObject$2(obj))return null;let hit=cache.get(path);if(hit||(hit=parse$1(path),hit&&cache.set(path,hit)),!hit)return null;let len=hit.length,last=obj,i$1=0;for(;i$1`${str.charAt(0).toLocaleUpperCase()}${str.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(val,type)=>type===`text`&&isString(val)?val.toUpperCase():type===`vnode`&&isObject$2(val)&&`__v_isVNode`in val?val.children.toUpperCase():val,lower:(val,type)=>type===`text`&&isString(val)?val.toLowerCase():type===`vnode`&&isObject$2(val)&&`__v_isVNode`in val?val.children.toLowerCase():val,capitalize:(val,type)=>type===`text`&&isString(val)?capitalize(val):type===`vnode`&&isObject$2(val)&&`__v_isVNode`in val?capitalize(val.children):val}}let _compiler;function registerMessageCompiler(compiler$1){_compiler=compiler$1}let _resolver;function registerMessageResolver(resolver$1){_resolver=resolver$1}let _fallbacker;function registerLocaleFallbacker(fallbacker){_fallbacker=fallbacker}let _additionalMeta=null;const setAdditionalMeta=meta=>{_additionalMeta=meta},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=context$1=>{_fallbackContext=context$1},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(options$1={}){let onWarn=isFunction(options$1.onWarn)?options$1.onWarn:warn,version$1=isString(options$1.version)?options$1.version:VERSION$1,locale=isString(options$1.locale)||isFunction(options$1.locale)?options$1.locale:DEFAULT_LOCALE,_locale=isFunction(locale)?DEFAULT_LOCALE:locale,fallbackLocale=isArray$1(options$1.fallbackLocale)||isPlainObject(options$1.fallbackLocale)||isString(options$1.fallbackLocale)||options$1.fallbackLocale===!1?options$1.fallbackLocale:_locale,messages=isPlainObject(options$1.messages)?options$1.messages:createResources(_locale),datetimeFormats=isPlainObject(options$1.datetimeFormats)?options$1.datetimeFormats:createResources(_locale),numberFormats=isPlainObject(options$1.numberFormats)?options$1.numberFormats:createResources(_locale),modifiers=assign(create(),options$1.modifiers,getDefaultLinkedModifiers()),pluralRules=options$1.pluralRules||create(),missing=isFunction(options$1.missing)?options$1.missing:null,missingWarn=isBoolean(options$1.missingWarn)||isRegExp(options$1.missingWarn)?options$1.missingWarn:!0,fallbackWarn=isBoolean(options$1.fallbackWarn)||isRegExp(options$1.fallbackWarn)?options$1.fallbackWarn:!0,fallbackFormat=!!options$1.fallbackFormat,unresolving=!!options$1.unresolving,postTranslation=isFunction(options$1.postTranslation)?options$1.postTranslation:null,processor=isPlainObject(options$1.processor)?options$1.processor:null,warnHtmlMessage=isBoolean(options$1.warnHtmlMessage)?options$1.warnHtmlMessage:!0,escapeParameter=!!options$1.escapeParameter,messageCompiler=isFunction(options$1.messageCompiler)?options$1.messageCompiler:_compiler,messageResolver=isFunction(options$1.messageResolver)?options$1.messageResolver:_resolver||resolveWithKeyValue,localeFallbacker=isFunction(options$1.localeFallbacker)?options$1.localeFallbacker:_fallbacker||fallbackWithSimple,fallbackContext=isObject$2(options$1.fallbackContext)?options$1.fallbackContext:void 0,internalOptions=options$1,__datetimeFormatters=isObject$2(internalOptions.__datetimeFormatters)?internalOptions.__datetimeFormatters:new Map,__numberFormatters=isObject$2(internalOptions.__numberFormatters)?internalOptions.__numberFormatters:new Map,__meta=isObject$2(internalOptions.__meta)?internalOptions.__meta:{};_cid++;let context$1={version:version$1,cid:_cid,locale,fallbackLocale,messages,modifiers,pluralRules,missing,missingWarn,fallbackWarn,fallbackFormat,unresolving,postTranslation,processor,warnHtmlMessage,escapeParameter,messageCompiler,messageResolver,localeFallbacker,fallbackContext,onWarn,__meta};return context$1.datetimeFormats=datetimeFormats,context$1.numberFormats=numberFormats,context$1.__datetimeFormatters=__datetimeFormatters,context$1.__numberFormatters=__numberFormatters,__INTLIFY_PROD_DEVTOOLS__&&initI18nDevTools(context$1,version$1,__meta),context$1}const createResources=locale=>({[locale]:create()});function handleMissing(context$1,key$1,locale,missingWarn,type){let{missing,onWarn}=context$1;if(missing!==null){let ret=missing(context$1,locale,key$1,type);return isString(ret)?ret:key$1}else return key$1}function updateFallbackLocale(ctx,locale,fallback){let context$1=ctx;context$1.__localeChainCache=new Map,ctx.localeFallbacker(ctx,fallback,locale)}function isAlmostSameLocale(locale,compareLocale){return locale===compareLocale?!1:locale.split(`-`)[0]===compareLocale.split(`-`)[0]}function isImplicitFallback(targetLocale,locales){let index$1=locales.indexOf(targetLocale);if(index$1===-1)return!1;for(let i$1=index$1+1;i$1{DATETIME_FORMAT_OPTIONS_KEYS.includes(key$1)?overrides[key$1]=arg2[key$1]:options$1[key$1]=arg2[key$1]}),isString(arg3)?options$1.locale=arg3:isPlainObject(arg3)&&(overrides=arg3),isPlainObject(arg4)&&(overrides=arg4),[options$1.key||``,value$1,options$1,overrides]}function clearDateTimeFormat(ctx,locale,format$2){let context$1=ctx;for(let key$1 in format$2){let id=`${locale}__${key$1}`;if(!context$1.__datetimeFormatters.has(id))continue;context$1.__datetimeFormatters.delete(id)}}function number$1(context$1,...args){let{numberFormats,unresolving,fallbackLocale,onWarn,localeFallbacker}=context$1,{__numberFormatters}=context$1,[key$1,value$1,options$1,overrides]=parseNumberArgs(...args),missingWarn=isBoolean(options$1.missingWarn)?options$1.missingWarn:context$1.missingWarn,fallbackWarn=isBoolean(options$1.fallbackWarn)?options$1.fallbackWarn:context$1.fallbackWarn,part=!!options$1.part,locale=getLocale$1(context$1,options$1),locales=localeFallbacker(context$1,fallbackLocale,locale);if(!isString(key$1)||key$1===``)return new Intl.NumberFormat(locale,overrides).format(value$1);let numberFormat={},targetLocale,format$2=null,from=locale,to$1=null,type=`number format`;for(let i$1=0;i$1{NUMBER_FORMAT_OPTIONS_KEYS.includes(key$1)?overrides[key$1]=arg2[key$1]:options$1[key$1]=arg2[key$1]}),isString(arg3)?options$1.locale=arg3:isPlainObject(arg3)&&(overrides=arg3),isPlainObject(arg4)&&(overrides=arg4),[options$1.key||``,value$1,options$1,overrides]}function clearNumberFormat(ctx,locale,format$2){let context$1=ctx;for(let key$1 in format$2){let id=`${locale}__${key$1}`;if(!context$1.__numberFormatters.has(id))continue;context$1.__numberFormatters.delete(id)}}const DEFAULT_MODIFIER=str=>str,DEFAULT_MESSAGE=ctx=>``,DEFAULT_MESSAGE_DATA_TYPE=`text`,DEFAULT_NORMALIZE=values=>values.length===0?``:join(values),DEFAULT_INTERPOLATE=toDisplayString$1;function pluralDefault(choice,choicesLength){return choice=Math.abs(choice),choicesLength===2?choice?choice>1?1:0:1:choice?Math.min(choice,2):0}function getPluralIndex(options$1){let index$1=isNumber(options$1.pluralIndex)?options$1.pluralIndex:-1;return options$1.named&&(isNumber(options$1.named.count)||isNumber(options$1.named.n))?isNumber(options$1.named.count)?options$1.named.count:isNumber(options$1.named.n)?options$1.named.n:index$1:index$1}function normalizeNamed(pluralIndex,props){props.count||=pluralIndex,props.n||=pluralIndex}function createMessageContext(options$1={}){let locale=options$1.locale,pluralIndex=getPluralIndex(options$1),pluralRule=isObject$2(options$1.pluralRules)&&isString(locale)&&isFunction(options$1.pluralRules[locale])?options$1.pluralRules[locale]:pluralDefault,orgPluralRule=isObject$2(options$1.pluralRules)&&isString(locale)&&isFunction(options$1.pluralRules[locale])?pluralDefault:void 0,plural=messages=>messages[pluralRule(pluralIndex,messages.length,orgPluralRule)],_list=options$1.list||[],list$2=index$1=>_list[index$1],_named=options$1.named||create();isNumber(options$1.pluralIndex)&&normalizeNamed(pluralIndex,_named);let named$1=key$1=>_named[key$1];function message$1(key$1,useLinked){let msg=isFunction(options$1.messages)?options$1.messages(key$1,!!useLinked):isObject$2(options$1.messages)?options$1.messages[key$1]:!1;return msg||(options$1.parent?options$1.parent.message(key$1):DEFAULT_MESSAGE)}let _modifier=name$2=>options$1.modifiers?options$1.modifiers[name$2]:DEFAULT_MODIFIER,normalize$3=isPlainObject(options$1.processor)&&isFunction(options$1.processor.normalize)?options$1.processor.normalize:DEFAULT_NORMALIZE,interpolate$1=isPlainObject(options$1.processor)&&isFunction(options$1.processor.interpolate)?options$1.processor.interpolate:DEFAULT_INTERPOLATE,type=isPlainObject(options$1.processor)&&isString(options$1.processor.type)?options$1.processor.type:DEFAULT_MESSAGE_DATA_TYPE,linked=(key$1,...args)=>{let[arg1,arg2]=args,type$1=`text`,modifier=``;args.length===1?isObject$2(arg1)?(modifier=arg1.modifier||modifier,type$1=arg1.type||type$1):isString(arg1)&&(modifier=arg1||modifier):args.length===2&&(isString(arg1)&&(modifier=arg1||modifier),isString(arg2)&&(type$1=arg2||type$1));let ret=message$1(key$1,!0)(ctx),msg=type$1===`vnode`&&isArray$1(ret)&&modifier?ret[0]:ret;return modifier?_modifier(modifier)(msg,type$1):msg},ctx={list:list$2,named:named$1,plural,linked,message:message$1,type,interpolate:interpolate$1,normalize:normalize$3,values:assign(create(),_list,_named)};return ctx}const NOOP_MESSAGE_FUNCTION=()=>``,isMessageFunction=val=>isFunction(val);function translate(context$1,...args){let{fallbackFormat,postTranslation,unresolving,messageCompiler,fallbackLocale,messages}=context$1,[key$1,options$1]=parseTranslateArgs(...args),missingWarn=isBoolean(options$1.missingWarn)?options$1.missingWarn:context$1.missingWarn,fallbackWarn=isBoolean(options$1.fallbackWarn)?options$1.fallbackWarn:context$1.fallbackWarn,escapeParameter=isBoolean(options$1.escapeParameter)?options$1.escapeParameter:context$1.escapeParameter,resolvedMessage=!!options$1.resolvedMessage,defaultMsgOrKey=isString(options$1.default)||isBoolean(options$1.default)?isBoolean(options$1.default)?messageCompiler?key$1:()=>key$1:options$1.default:fallbackFormat?messageCompiler?key$1:()=>key$1:null,enableDefaultMsg=fallbackFormat||defaultMsgOrKey!=null&&(isString(defaultMsgOrKey)||isFunction(defaultMsgOrKey)),locale=getLocale$1(context$1,options$1);escapeParameter&&escapeParams(options$1);let[formatScope,targetLocale,message$1]=resolvedMessage?[key$1,locale,messages[locale]||create()]:resolveMessageFormat(context$1,key$1,locale,fallbackLocale,fallbackWarn,missingWarn),format$2=formatScope,cacheBaseKey=key$1;if(!resolvedMessage&&!(isString(format$2)||isMessageAST(format$2)||isMessageFunction(format$2))&&enableDefaultMsg&&(format$2=defaultMsgOrKey,cacheBaseKey=format$2),!resolvedMessage&&(!(isString(format$2)||isMessageAST(format$2)||isMessageFunction(format$2))||!isString(targetLocale)))return unresolving?NOT_REOSLVED:key$1;let occurred=!1,onError=()=>{occurred=!0},msg=isMessageFunction(format$2)?format$2:compileMessageFormat(context$1,key$1,targetLocale,format$2,cacheBaseKey,onError);if(occurred)return format$2;let ctxOptions=getMessageContextOptions(context$1,targetLocale,message$1,options$1),msgContext=createMessageContext(ctxOptions),messaged=evaluateMessage(context$1,msg,msgContext),ret=postTranslation?postTranslation(messaged,key$1):messaged;if(__INTLIFY_PROD_DEVTOOLS__){let payloads={timestamp:Date.now(),key:isString(key$1)?key$1:isMessageFunction(format$2)?format$2.key:``,locale:targetLocale||(isMessageFunction(format$2)?format$2.locale:``),format:isString(format$2)?format$2:isMessageFunction(format$2)?format$2.source:``,message:ret};payloads.meta=assign({},context$1.__meta,getAdditionalMeta()||{}),translateDevTools(payloads)}return ret}function escapeParams(options$1){isArray$1(options$1.list)?options$1.list=options$1.list.map(item=>isString(item)?escapeHtml(item):item):isObject$2(options$1.named)&&Object.keys(options$1.named).forEach(key$1=>{isString(options$1.named[key$1])&&(options$1.named[key$1]=escapeHtml(options$1.named[key$1]))})}function resolveMessageFormat(context$1,key$1,locale,fallbackLocale,fallbackWarn,missingWarn){let{messages,onWarn,messageResolver:resolveValue$2,localeFallbacker}=context$1,locales=localeFallbacker(context$1,fallbackLocale,locale),message$1=create(),targetLocale,format$2=null,from=locale,to$1=null,type=`translate`;for(let i$1=0;i$1format$2;return msg$1.locale=targetLocale,msg$1.key=key$1,msg$1}let start=null,startTag,endTag,msg=messageCompiler(format$2,getCompileContext(context$1,targetLocale,cacheBaseKey,format$2,warnHtmlMessage,onError));return msg.locale=targetLocale,msg.key=key$1,msg.source=format$2,msg}function evaluateMessage(context$1,msg,msgCtx){let start=null,startTag,endTag,messaged=msg(msgCtx);return messaged}function parseTranslateArgs(...args){let[arg1,arg2,arg3]=args,options$1=create();if(!isString(arg1)&&!isNumber(arg1)&&!isMessageFunction(arg1)&&!isMessageAST(arg1))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);let key$1=isNumber(arg1)?String(arg1):(isMessageFunction(arg1),arg1);return isNumber(arg2)?options$1.plural=arg2:isString(arg2)?options$1.default=arg2:isPlainObject(arg2)&&!isEmptyObject(arg2)?options$1.named=arg2:isArray$1(arg2)&&(options$1.list=arg2),isNumber(arg3)?options$1.plural=arg3:isString(arg3)?options$1.default=arg3:isPlainObject(arg3)&&assign(options$1,arg3),[key$1,options$1]}function getCompileContext(context$1,locale,key$1,source,warnHtmlMessage,onError){return{locale,key:key$1,warnHtmlMessage,onError:err=>{throw onError&&onError(err),err},onCacheKey:source$1=>generateFormatCacheKey(locale,key$1,source$1)}}function getMessageContextOptions(context$1,locale,message$1,options$1){let{modifiers,pluralRules,messageResolver:resolveValue$2,fallbackLocale,fallbackWarn,missingWarn,fallbackContext}=context$1,resolveMessage=(key$1,useLinked)=>{let val=resolveValue$2(message$1,key$1);if(val==null&&(fallbackContext||useLinked)){let[,,message$2]=resolveMessageFormat(fallbackContext||context$1,key$1,locale,fallbackLocale,fallbackWarn,missingWarn);val=resolveValue$2(message$2,key$1)}if(isString(val)||isMessageAST(val)){let occurred=!1,onError=()=>{occurred=!0},msg=compileMessageFormat(context$1,key$1,locale,val,key$1,onError);return occurred?NOOP_MESSAGE_FUNCTION:msg}else if(isMessageFunction(val))return val;else return NOOP_MESSAGE_FUNCTION},ctxOptions={locale,modifiers,pluralRules,messages:resolveMessage};return context$1.processor&&(ctxOptions.processor=context$1.processor),options$1.list&&(ctxOptions.list=options$1.list),options$1.named&&(ctxOptions.named=options$1.named),isNumber(options$1.plural)&&(ctxOptions.pluralIndex=options$1.plural),ctxOptions}initFeatureFlags$1();const VERSION=`11.1.9`;function initFeatureFlags(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&(getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}const I18nErrorCodes={UNEXPECTED_RETURN_TYPE:CORE_ERROR_CODES_EXTEND_POINT,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,DUPLICATE_USE_I18N_CALLING:35};function createI18nError(code$1,...args){return createCompileError(code$1,null,void 0)}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:`Unexpected return type in composer`,[I18nErrorCodes.INVALID_ARGUMENT]:`Invalid argument`,[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:`Unexpected error`,[I18nErrorCodes.REQUIRED_VALUE]:`Required in value: {0}`,[I18nErrorCodes.INVALID_VALUE]:`Invalid value`,[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:`Cannot setup vue-devtools plugin`,[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:`Not compatible legacy VueI18n.`,[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:`Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly`,[I18nErrorCodes.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope"},TranslateVNodeSymbol=makeSymbol(`__translateVNode`),DatetimePartsSymbol=makeSymbol(`__datetimeParts`),NumberPartsSymbol=makeSymbol(`__numberParts`),SetPluralRulesSymbol=makeSymbol(`__setPluralRules`);makeSymbol(`__intlifyMeta`);const InejctWithOptionSymbol=makeSymbol(`__injectWithOption`),DisposeSymbol=makeSymbol(`__dispose`),I18nWarnCodes={FALLBACK_TO_ROOT:CORE_WARN_CODES_EXTEND_POINT,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:`Fall back to {type} '{key}' with root locale.`,[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:`Not found parent scope. use the global scope.`,[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:`Ignore object flatten: '{key}' key has an string value`,[I18nWarnCodes.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead. -About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`};function handleFlatJson(obj){if(!isObject$2(obj)||isMessageAST(obj))return obj;for(let key$1 in obj){if(!hasOwn(obj,key$1))continue;if(!key$1.includes(`.`))isObject$2(obj[key$1])&&handleFlatJson(obj[key$1]);else{let subKeys=key$1.split(`.`),lastIndex=subKeys.length-1,currentObj=obj,hasStringValue=!1;for(let i$1=0;i$1{if(`locale`in custom&&`resource`in custom){let{locale:locale$1,resource}=custom;locale$1?(ret[locale$1]=ret[locale$1]||create(),deepCopy(resource,ret[locale$1])):deepCopy(resource,ret)}else isString(custom)&&deepCopy(JSON.parse(custom),ret)}),messageResolver==null&&flatJson)for(let key$1 in ret)hasOwn(ret,key$1)&&handleFlatJson(ret[key$1]);return ret}function getComponentOptions(instance){return instance.type}function adjustI18nResources(gl,options$1,componentOptions){let messages=isObject$2(options$1.messages)?options$1.messages:create();`__i18nGlobal`in componentOptions&&(messages=getLocaleMessages(gl.locale.value,{messages,__i18n:componentOptions.__i18nGlobal}));let locales=Object.keys(messages);if(locales.length&&locales.forEach(locale=>{gl.mergeLocaleMessage(locale,messages[locale])}),isObject$2(options$1.datetimeFormats)){let locales$1=Object.keys(options$1.datetimeFormats);locales$1.length&&locales$1.forEach(locale=>{gl.mergeDateTimeFormat(locale,options$1.datetimeFormats[locale])})}if(isObject$2(options$1.numberFormats)){let locales$1=Object.keys(options$1.numberFormats);locales$1.length&&locales$1.forEach(locale=>{gl.mergeNumberFormat(locale,options$1.numberFormats[locale])})}}function createTextNode(key$1){return createVNode(Text,null,key$1,0)}const DEVTOOLS_META=`__INTLIFY_META__`,NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(missing){return(ctx,locale,key$1,type)=>missing(locale,key$1,getCurrentInstance()||void 0,type)}const getMetaInfo=()=>{let instance=getCurrentInstance(),meta=null;return instance&&(meta=getComponentOptions(instance)[DEVTOOLS_META])?{[DEVTOOLS_META]:meta}:null};function createComposer(options$1={}){let{__root,__injectWithOption}=options$1,_isGlobal=__root===void 0,flatJson=options$1.flatJson,_ref=inBrowser?ref:shallowRef,_inheritLocale=isBoolean(options$1.inheritLocale)?options$1.inheritLocale:!0,_locale=_ref(__root&&_inheritLocale?__root.locale.value:isString(options$1.locale)?options$1.locale:DEFAULT_LOCALE),_fallbackLocale=_ref(__root&&_inheritLocale?__root.fallbackLocale.value:isString(options$1.fallbackLocale)||isArray$1(options$1.fallbackLocale)||isPlainObject(options$1.fallbackLocale)||options$1.fallbackLocale===!1?options$1.fallbackLocale:_locale.value),_messages=_ref(getLocaleMessages(_locale.value,options$1)),_datetimeFormats=_ref(isPlainObject(options$1.datetimeFormats)?options$1.datetimeFormats:{[_locale.value]:{}}),_numberFormats=_ref(isPlainObject(options$1.numberFormats)?options$1.numberFormats:{[_locale.value]:{}}),_missingWarn=__root?__root.missingWarn:isBoolean(options$1.missingWarn)||isRegExp(options$1.missingWarn)?options$1.missingWarn:!0,_fallbackWarn=__root?__root.fallbackWarn:isBoolean(options$1.fallbackWarn)||isRegExp(options$1.fallbackWarn)?options$1.fallbackWarn:!0,_fallbackRoot=__root?__root.fallbackRoot:isBoolean(options$1.fallbackRoot)?options$1.fallbackRoot:!0,_fallbackFormat=!!options$1.fallbackFormat,_missing=isFunction(options$1.missing)?options$1.missing:null,_runtimeMissing=isFunction(options$1.missing)?defineCoreMissingHandler(options$1.missing):null,_postTranslation=isFunction(options$1.postTranslation)?options$1.postTranslation:null,_warnHtmlMessage=__root?__root.warnHtmlMessage:isBoolean(options$1.warnHtmlMessage)?options$1.warnHtmlMessage:!0,_escapeParameter=!!options$1.escapeParameter,_modifiers=__root?__root.modifiers:isPlainObject(options$1.modifiers)?options$1.modifiers:{},_pluralRules=options$1.pluralRules||__root&&__root.pluralRules,_context$1,getCoreContext=()=>{_isGlobal&&setFallbackContext(null);let ctxOptions={version:VERSION,locale:_locale.value,fallbackLocale:_fallbackLocale.value,messages:_messages.value,modifiers:_modifiers,pluralRules:_pluralRules,missing:_runtimeMissing===null?void 0:_runtimeMissing,missingWarn:_missingWarn,fallbackWarn:_fallbackWarn,fallbackFormat:_fallbackFormat,unresolving:!0,postTranslation:_postTranslation===null?void 0:_postTranslation,warnHtmlMessage:_warnHtmlMessage,escapeParameter:_escapeParameter,messageResolver:options$1.messageResolver,messageCompiler:options$1.messageCompiler,__meta:{framework:`vue`}};ctxOptions.datetimeFormats=_datetimeFormats.value,ctxOptions.numberFormats=_numberFormats.value,ctxOptions.__datetimeFormatters=isPlainObject(_context$1)?_context$1.__datetimeFormatters:void 0,ctxOptions.__numberFormatters=isPlainObject(_context$1)?_context$1.__numberFormatters:void 0;let ctx=createCoreContext(ctxOptions);return _isGlobal&&setFallbackContext(ctx),ctx};_context$1=getCoreContext(),updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value);function trackReactivityValues(){return[_locale.value,_fallbackLocale.value,_messages.value,_datetimeFormats.value,_numberFormats.value]}let locale=computed({get:()=>_locale.value,set:val=>{_context$1.locale=val,_locale.value=val}}),fallbackLocale=computed({get:()=>_fallbackLocale.value,set:val=>{_context$1.fallbackLocale=val,_fallbackLocale.value=val,updateFallbackLocale(_context$1,_locale.value,val)}}),messages=computed(()=>_messages.value),datetimeFormats=computed(()=>_datetimeFormats.value),numberFormats=computed(()=>_numberFormats.value);function getPostTranslationHandler(){return isFunction(_postTranslation)?_postTranslation:null}function setPostTranslationHandler(handler){_postTranslation=handler,_context$1.postTranslation=handler}function getMissingHandler(){return _missing}function setMissingHandler(handler){handler!==null&&(_runtimeMissing=defineCoreMissingHandler(handler)),_missing=handler,_context$1.missing=_runtimeMissing}function isResolvedTranslateMessage(type,arg){return type!==`translate`||!arg.resolvedMessage}let wrapWithDeps=(fn$5,argumentParser,warnType,fallbackSuccess,fallbackFail,successCondition)=>{trackReactivityValues();let ret;try{__INTLIFY_PROD_DEVTOOLS__,_isGlobal||(_context$1.fallbackContext=__root?getFallbackContext():void 0),ret=fn$5(_context$1)}finally{__INTLIFY_PROD_DEVTOOLS__,_isGlobal||(_context$1.fallbackContext=void 0)}if(warnType!==`translate exists`&&isNumber(ret)&&ret===NOT_REOSLVED||warnType===`translate exists`&&!ret){let[key$1,arg2]=argumentParser();return __root&&_fallbackRoot?fallbackSuccess(__root):fallbackFail(key$1)}else if(successCondition(ret))return ret;else throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function t(...args){return wrapWithDeps(context$1=>Reflect.apply(translate,null,[context$1,...args]),()=>parseTranslateArgs(...args),`translate`,root$3=>Reflect.apply(root$3.t,root$3,[...args]),key$1=>key$1,val=>isString(val))}function rt$2(...args){let[arg1,arg2,arg3]=args;if(arg3&&!isObject$2(arg3))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return t(arg1,arg2,assign({resolvedMessage:!0},arg3||{}))}function d$2(...args){return wrapWithDeps(context$1=>Reflect.apply(datetime,null,[context$1,...args]),()=>parseDateTimeArgs(...args),`datetime format`,root$3=>Reflect.apply(root$3.d,root$3,[...args]),()=>MISSING_RESOLVE_VALUE,val=>isString(val)||isArray$1(val))}function n$2(...args){return wrapWithDeps(context$1=>Reflect.apply(number$1,null,[context$1,...args]),()=>parseNumberArgs(...args),`number format`,root$3=>Reflect.apply(root$3.n,root$3,[...args]),()=>MISSING_RESOLVE_VALUE,val=>isString(val)||isArray$1(val))}function normalize$3(values){return values.map(val=>isString(val)||isNumber(val)||isBoolean(val)?createTextNode(String(val)):val)}let interpolate$1=val=>val,processor={normalize:normalize$3,interpolate:interpolate$1,type:`vnode`};function translateVNode(...args){return wrapWithDeps(context$1=>{let ret,_context$2=context$1;try{_context$2.processor=processor,ret=Reflect.apply(translate,null,[_context$2,...args])}finally{_context$2.processor=null}return ret},()=>parseTranslateArgs(...args),`translate`,root$3=>root$3[TranslateVNodeSymbol](...args),key$1=>[createTextNode(key$1)],val=>isArray$1(val))}function numberParts(...args){return wrapWithDeps(context$1=>Reflect.apply(number$1,null,[context$1,...args]),()=>parseNumberArgs(...args),`number format`,root$3=>root$3[NumberPartsSymbol](...args),NOOP_RETURN_ARRAY,val=>isString(val)||isArray$1(val))}function datetimeParts(...args){return wrapWithDeps(context$1=>Reflect.apply(datetime,null,[context$1,...args]),()=>parseDateTimeArgs(...args),`datetime format`,root$3=>root$3[DatetimePartsSymbol](...args),NOOP_RETURN_ARRAY,val=>isString(val)||isArray$1(val))}function setPluralRules(rules){_pluralRules=rules,_context$1.pluralRules=_pluralRules}function te$2(key$1,locale$1){return wrapWithDeps(()=>{if(!key$1)return!1;let targetLocale=isString(locale$1)?locale$1:_locale.value,message$1=getLocaleMessage(targetLocale),resolved=_context$1.messageResolver(message$1,key$1);return isMessageAST(resolved)||isMessageFunction(resolved)||isString(resolved)},()=>[key$1],`translate exists`,root$3=>Reflect.apply(root$3.te,root$3,[key$1,locale$1]),NOOP_RETURN_FALSE,val=>isBoolean(val))}function resolveMessages(key$1){let messages$1=null,locales=fallbackWithLocaleChain(_context$1,_fallbackLocale.value,_locale.value);for(let i$1=0;i$1{_inheritLocale&&(_locale.value=val,_context$1.locale=val,updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value))}),watch(__root.fallbackLocale,val=>{_inheritLocale&&(_fallbackLocale.value=val,_context$1.fallbackLocale=val,updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value))}));let composer={id:composerID,locale,fallbackLocale,get inheritLocale(){return _inheritLocale},set inheritLocale(val){_inheritLocale=val,val&&__root&&(_locale.value=__root.locale.value,_fallbackLocale.value=__root.fallbackLocale.value,updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value))},get availableLocales(){return Object.keys(_messages.value).sort()},messages,get modifiers(){return _modifiers},get pluralRules(){return _pluralRules||{}},get isGlobal(){return _isGlobal},get missingWarn(){return _missingWarn},set missingWarn(val){_missingWarn=val,_context$1.missingWarn=_missingWarn},get fallbackWarn(){return _fallbackWarn},set fallbackWarn(val){_fallbackWarn=val,_context$1.fallbackWarn=_fallbackWarn},get fallbackRoot(){return _fallbackRoot},set fallbackRoot(val){_fallbackRoot=val},get fallbackFormat(){return _fallbackFormat},set fallbackFormat(val){_fallbackFormat=val,_context$1.fallbackFormat=_fallbackFormat},get warnHtmlMessage(){return _warnHtmlMessage},set warnHtmlMessage(val){_warnHtmlMessage=val,_context$1.warnHtmlMessage=val},get escapeParameter(){return _escapeParameter},set escapeParameter(val){_escapeParameter=val,_context$1.escapeParameter=val},t,getLocaleMessage,setLocaleMessage,mergeLocaleMessage,getPostTranslationHandler,setPostTranslationHandler,getMissingHandler,setMissingHandler,[SetPluralRulesSymbol]:setPluralRules};return composer.datetimeFormats=datetimeFormats,composer.numberFormats=numberFormats,composer.rt=rt$2,composer.te=te$2,composer.tm=tm,composer.d=d$2,composer.n=n$2,composer.getDateTimeFormat=getDateTimeFormat,composer.setDateTimeFormat=setDateTimeFormat,composer.mergeDateTimeFormat=mergeDateTimeFormat,composer.getNumberFormat=getNumberFormat,composer.setNumberFormat=setNumberFormat,composer.mergeNumberFormat=mergeNumberFormat,composer[InejctWithOptionSymbol]=__injectWithOption,composer[TranslateVNodeSymbol]=translateVNode,composer[DatetimePartsSymbol]=datetimeParts,composer[NumberPartsSymbol]=numberParts,composer}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:val=>val===`parent`||val===`global`,default:`parent`},i18n:{type:Object}};function getInterpolateArg({slots},keys$3){if(keys$3.length===1&&keys$3[0]===`default`){let ret=slots.default?slots.default():[];return ret.reduce((slot,current)=>[...slot,...current.type===Fragment?current.children:[current]],[])}else return keys$3.reduce((arg,key$1)=>{let slot=slots[key$1];return slot&&(arg[key$1]=slot()),arg},create())}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:`i18n-t`,props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:val=>isNumber(val)||!isNaN(val)}},baseFormatProps),setup(props,context$1){let{slots,attrs}=context$1,i18n$1=props.i18n||useI18n({useScope:props.scope,__useComponent:!0});return()=>{let keys$3=Object.keys(slots).filter(key$1=>key$1[0]!==`_`),options$1=create();props.locale&&(options$1.locale=props.locale),props.plural!==void 0&&(options$1.plural=isString(props.plural)?+props.plural:props.plural);let arg=getInterpolateArg(context$1,keys$3),children=i18n$1[TranslateVNodeSymbol](props.keypath,arg,options$1),assignedAttrs=assign(create(),attrs),tag=isString(props.tag)||isObject$2(props.tag)?props.tag:getFragmentableTag();return h(tag,assignedAttrs,children)}}}),Translation=TranslationImpl;function isVNode(target$1){return isArray$1(target$1)&&!isString(target$1[0])}function renderFormatter(props,context$1,slotKeys,partFormatter){let{slots,attrs}=context$1;return()=>{let options$1={part:!0},overrides=create();props.locale&&(options$1.locale=props.locale),isString(props.format)?options$1.key=props.format:isObject$2(props.format)&&(isString(props.format.key)&&(options$1.key=props.format.key),overrides=Object.keys(props.format).reduce((options$2,prop)=>slotKeys.includes(prop)?assign(create(),options$2,{[prop]:props.format[prop]}):options$2,create()));let parts=partFormatter(props.value,options$1,overrides),children=[options$1.key];isArray$1(parts)?children=parts.map((part,index$1)=>{let slot=slots[part.type],node$1=slot?slot({[part.type]:part.value,index:index$1,parts}):[part.value];return isVNode(node$1)&&(node$1[0].key=`${part.type}-${index$1}`),node$1}):isString(parts)&&(children=[parts]);let assignedAttrs=assign(create(),attrs),tag=isString(props.tag)||isObject$2(props.tag)?props.tag:getFragmentableTag();return h(tag,assignedAttrs,children)}}const NumberFormatImpl=defineComponent({name:`i18n-n`,props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(props,context$1){let i18n$1=props.i18n||useI18n({useScope:props.scope,__useComponent:!0});return renderFormatter(props,context$1,NUMBER_FORMAT_OPTIONS_KEYS,(...args)=>i18n$1[NumberPartsSymbol](...args))}}),NumberFormat=NumberFormatImpl;function getComposer$1(i18n$1,instance){let i18nInternal=i18n$1;if(i18n$1.mode===`composition`)return i18nInternal.__getInstance(instance)||i18n$1.global;{let vueI18n=i18nInternal.__getInstance(instance);return vueI18n==null?i18n$1.global.__composer:vueI18n.__composer}}function vTDirective(i18n$1){let _process=binding=>{let{instance,value:value$1}=binding;if(!instance||!instance.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);let composer=getComposer$1(i18n$1,instance.$),parsedValue=parseValue(value$1);return[Reflect.apply(composer.t,composer,[...makeParams(parsedValue)]),composer]},register=(el,binding)=>{let[textContent,composer]=_process(binding);inBrowser&&i18n$1.global===composer&&(el.__i18nWatcher=watch(composer.locale,()=>{binding.instance&&binding.instance.$forceUpdate()})),el.__composer=composer,el.textContent=textContent},unregister=el=>{inBrowser&&el.__i18nWatcher&&(el.__i18nWatcher(),el.__i18nWatcher=void 0,delete el.__i18nWatcher),el.__composer&&(el.__composer=void 0,delete el.__composer)},update=(el,{value:value$1})=>{if(el.__composer){let composer=el.__composer,parsedValue=parseValue(value$1);el.textContent=Reflect.apply(composer.t,composer,[...makeParams(parsedValue)])}},getSSRProps=binding=>{let[textContent]=_process(binding);return{textContent}};return{created:register,unmounted:unregister,beforeUpdate:update,getSSRProps}}function parseValue(value$1){if(isString(value$1))return{path:value$1};if(isPlainObject(value$1)){if(!(`path`in value$1))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,`path`);return value$1}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(value$1){let{path,locale,args,choice,plural}=value$1,options$1={},named$1=args||{};return isString(locale)&&(options$1.locale=locale),isNumber(choice)&&(options$1.plural=choice),isNumber(plural)&&(options$1.plural=plural),[path,named$1,options$1]}function apply(app,i18n$1,...options$1){let pluginOptions=isPlainObject(options$1[0])?options$1[0]:{},globalInstall=isBoolean(pluginOptions.globalInstall)?pluginOptions.globalInstall:!0;globalInstall&&([Translation.name,`I18nT`].forEach(name$2=>app.component(name$2,Translation)),[NumberFormat.name,`I18nN`].forEach(name$2=>app.component(name$2,NumberFormat)),[DatetimeFormat.name,`I18nD`].forEach(name$2=>app.component(name$2,DatetimeFormat))),app.directive(`t`,vTDirective(i18n$1))}const I18nInjectionKey=makeSymbol(`global-vue-i18n`);function createI18n(options$1={}){let __legacyMode=!1,__globalInjection=isBoolean(options$1.globalInjection)?options$1.globalInjection:!0,__instances=new Map,[globalScope,__global]=createGlobal(options$1,__legacyMode),symbol=makeSymbol(``);function __getInstance(component){return __instances.get(component)||null}function __setInstance(component,instance){__instances.set(component,instance)}function __deleteInstance(component){__instances.delete(component)}let i18n$1={get mode(){return`composition`},async install(app,...options$2){if(app.__VUE_I18N_SYMBOL__=symbol,app.provide(app.__VUE_I18N_SYMBOL__,i18n$1),isPlainObject(options$2[0])){let opts=options$2[0];i18n$1.__composerExtend=opts.__composerExtend,i18n$1.__vueI18nExtend=opts.__vueI18nExtend}let globalReleaseHandler=null;!__legacyMode&&__globalInjection&&(globalReleaseHandler=injectGlobalFields(app,i18n$1.global)),apply(app,i18n$1,...options$2);let unmountApp=app.unmount;app.unmount=()=>{globalReleaseHandler&&globalReleaseHandler(),i18n$1.dispose(),unmountApp()}},get global(){return __global},dispose(){globalScope.stop()},__instances,__getInstance,__setInstance,__deleteInstance};return i18n$1}function useI18n(options$1={}){let instance=getCurrentInstance();if(instance==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!instance.isCE&&instance.appContext.app!=null&&!instance.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);let i18n$1=getI18nInstance(instance),gl=getGlobalComposer(i18n$1),componentOptions=getComponentOptions(instance),scope=getScope(options$1,componentOptions);if(scope===`global`)return adjustI18nResources(gl,options$1,componentOptions),gl;if(scope===`parent`){let composer$1=getComposer(i18n$1,instance,options$1.__useComponent);return composer$1??=gl,composer$1}let i18nInternal=i18n$1,composer=i18nInternal.__getInstance(instance);if(composer==null){let composerOptions=assign({},options$1);`__i18n`in componentOptions&&(composerOptions.__i18n=componentOptions.__i18n),gl&&(composerOptions.__root=gl),composer=createComposer(composerOptions),i18nInternal.__composerExtend&&(composer[DisposeSymbol]=i18nInternal.__composerExtend(composer)),setupLifeCycle(i18nInternal,instance,composer),i18nInternal.__setInstance(instance,composer)}return composer}function createGlobal(options$1,legacyMode){let scope=effectScope(),obj=scope.run(()=>createComposer(options$1));if(obj==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[scope,obj]}function getI18nInstance(instance){let i18n$1=inject(instance.isCE?I18nInjectionKey:instance.appContext.app.__VUE_I18N_SYMBOL__);if(!i18n$1)throw createI18nError(instance.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return i18n$1}function getScope(options$1,componentOptions){return isEmptyObject(options$1)?`__i18n`in componentOptions?`local`:`global`:options$1.useScope?options$1.useScope:`local`}function getGlobalComposer(i18n$1){return i18n$1.mode===`composition`?i18n$1.global:i18n$1.global.__composer}function getComposer(i18n$1,target$1,useComponent=!1){let composer=null,root$3=target$1.root,current=getParentComponentInstance(target$1,useComponent);for(;current!=null;){let i18nInternal=i18n$1;if(i18n$1.mode===`composition`&&(composer=i18nInternal.__getInstance(current)),composer!=null||root$3===current)break;current=current.parent}return composer}function getParentComponentInstance(target$1,useComponent=!1){return target$1==null?null:useComponent&&target$1.vnode.ctx||target$1.parent}function setupLifeCycle(i18n$1,target$1,composer){let emitter=null;onMounted(()=>{},target$1),onUnmounted(()=>{let _composer=composer;i18n$1.__deleteInstance(target$1);let dispose$1=_composer[DisposeSymbol];dispose$1&&(dispose$1(),delete _composer[DisposeSymbol])},target$1)}const globalExportProps=[`locale`,`fallbackLocale`,`availableLocales`],globalExportMethods=[`t`,`rt`,`d`,`n`,`tm`,`te`];function injectGlobalFields(app,composer){let i18n$1=Object.create(null);globalExportProps.forEach(prop=>{let desc=Object.getOwnPropertyDescriptor(composer,prop);if(!desc)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);let wrap$2=isRef(desc.value)?{get(){return desc.value.value},set(val){desc.value.value=val}}:{get(){return desc.get&&desc.get()}};Object.defineProperty(i18n$1,prop,wrap$2)}),app.config.globalProperties.$i18n=i18n$1,globalExportMethods.forEach(method=>{let desc=Object.getOwnPropertyDescriptor(composer,method);if(!desc||!desc.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(app.config.globalProperties,`$${method}`,desc)});let dispose$1=()=>{delete app.config.globalProperties.$i18n,globalExportMethods.forEach(method=>{delete app.config.globalProperties[`$${method}`]})};return dispose$1}const DatetimeFormatImpl=defineComponent({name:`i18n-d`,props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(props,context$1){let i18n$1=props.i18n||useI18n({useScope:props.scope,__useComponent:!0});return renderFormatter(props,context$1,DATETIME_FORMAT_OPTIONS_KEYS,(...args)=>i18n$1[DatetimePartsSymbol](...args))}}),DatetimeFormat=DatetimeFormatImpl;if(initFeatureFlags(),registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),__INTLIFY_PROD_DEVTOOLS__){let target$1=getGlobalThis();target$1.__INTLIFY__=!0,setDevToolsHook(target$1.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const createChatProvider=options$1=>({chat:model=>Object.assign(options$1,{model})}),createEmbedProvider=options$1=>({embed:model=>Object.assign(options$1,{model})}),createImageProvider=options$1=>({image:model=>Object.assign(options$1,{model})}),createModelProvider=options$1=>({model:()=>options$1}),createSpeechProvider=options$1=>({speech:model=>Object.assign(options$1,{model})}),createTranscriptionProvider=options$1=>({transcription:model=>Object.assign(options$1,{model})}),createMetadataProvider=(id,otherMeta)=>({metadata:{id,...otherMeta}}),merge$1=(...arr)=>Object.assign(arr[0],...arr.slice(1)),createAnthropic=(apiKey,baseURL=`https://api.anthropic.com/v1/`)=>merge$1(createMetadataProvider(`anthropic`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createDeepSeek=(apiKey,baseURL=`https://api.deepseek.com/`)=>merge$1(createMetadataProvider(`deepseek`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createFireworks=(apiKey,baseURL=`https://api.fireworks.ai/inference/v1/`)=>merge$1(createMetadataProvider(`fireworks`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createGoogleGenerativeAI=(apiKey,baseURL=`https://generativelanguage.googleapis.com/v1beta/openai/`)=>merge$1(createMetadataProvider(`google-generative-ai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createMistral=(apiKey,baseURL=`https://api.mistral.ai/v1/`)=>merge$1(createMetadataProvider(`mistral`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createMoonshot=(apiKey,baseURL=`https://api.moonshot.cn/v1/`)=>merge$1(createMetadataProvider(`moonshot`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createNovita=(apiKey,baseURL=`https://api.novita.ai/v3/openai/`)=>merge$1(createMetadataProvider(`novita`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createOpenAI=(apiKey,baseURL=`https://api.openai.com/v1/`)=>merge$1(createMetadataProvider(`openai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createImageProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL}),createSpeechProvider({apiKey,baseURL}),createTranscriptionProvider({apiKey,baseURL})),createOpenRouter=(apiKey,baseURL=``)=>merge$1(createMetadataProvider(`openrouter`),{chat:(model,openRouterOptions)=>{let requestOptions={apiKey,baseURL,model},toOpenRouterOptions=({extraHeaders,models:models$1,provider})=>{extraHeaders!=null&&(requestOptions.headers??={},Object.assign(requestOptions.headers,extraHeaders));let transformedProvider;return provider!=null&&(transformedProvider=objCamelToSnake$1(provider)),objCamelToSnake$1({models:models$1,provider:transformedProvider})};return{...openRouterOptions?toOpenRouterOptions(openRouterOptions):{},...requestOptions}}},createModelProvider({apiKey,baseURL})),createPerplexity=(apiKey,baseURL=`https://api.perplexity.ai/`)=>merge$1(createMetadataProvider(`perplexity`),createChatProvider({apiKey,baseURL})),createTogetherAI=(apiKey,baseURL=`https://api.together.xyz/v1/`)=>merge$1(createMetadataProvider(`together-ai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL,fetch:async(...args)=>globalThis.fetch(...args).then(async res=>res.json()).then(data$10=>Response.json({data:data$10,object:`list`}))})),createWorkersAI=(apiKey,accountId)=>{let baseURL=`https://api.cloudflare.com/client/v4/accounts/${accountId}/ai/v1/`;return merge$1(createMetadataProvider(`workers-ai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}))},createXAI=(apiKey,baseURL=`https://api.x.ai/v1/`)=>merge$1(createMetadataProvider(`xai`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createOllama=(baseURL=`http://localhost:11434/v1/`)=>merge$1(createMetadataProvider(`ollama`),createChatProvider({baseURL}),createEmbedProvider({baseURL}),createModelProvider({baseURL})),decodeBase64=b64=>{let binString=atob(b64),size$1=binString.length,bytes=new Uint8Array(size$1);for(let i$1=0;i$1merge$1(createMetadataProvider(`player2`),createChatProvider({baseURL,headers:{"player2-game-key":gameKey}}),createSpeechProvider({baseURL,fetch:async(input,reqInit)=>{let newUrl=`${input.toString().slice(0,-12)}tts/speak`;try{let{input:input2,response_format,speed,voice,...rest}=JSON.parse(reqInit?.body),modified={audio_format:response_format,play_in_app:!1,speed:speed??1,text:input2,voice_ids:voice==null?[]:[voice],...rest};reqInit&&(reqInit.body=JSON.stringify(modified))}catch(err){console.warn(`Could not parse body as JSON:`,err)}return globalThis.fetch(newUrl,reqInit).then(async res=>res.json()).then(json=>{let base64=json.data??``,bytes=decodeBase64(base64);return new Response(bytes,{headers:{"Content-Type":`audio/mpeg`},status:200})})},headers:{"player2-game-key":gameKey}}));async function check(){try{if(isInNodejsRuntime())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 adapter=await navigator.gpu.requestAdapter();return adapter?{supported:!0,isNode:!1,reason:``,adapter,fp16Supported:adapter.features.has(`shader-f16`)}:{supported:!1,isNode:!1,reason:`WebGPU is not supported (no adapter found)`,fp16Supported:!1}}catch(error){let errorMessage=error instanceof Error?error.toString():String(error);return{supported:!1,isNode:!1,reason:errorMessage,fp16Supported:!1}}}function isInNodejsRuntime(){return typeof process<`u`&&`versions`in process&&process.versions!=null&&typeof process.versions==`object`&&`node`in process.versions&&process.versions.node!=null}async function isWebGPUSupported(){return check().then(result=>result.supported)}const merge=(...arr)=>Object.assign(arr[0],...arr.slice(1));var XSAIError=class extends Error{constructor(message$1,response){super(message$1),babelHelpers.defineProperty(this,`response`,void 0),this.name=`XSAIError`,this.response=response}};const strCamelToSnake=str=>str.replace(/[A-Z]/g,s$1=>`_${s$1.toLowerCase()}`),objCamelToSnake=obj=>Object.fromEntries(Object.entries(obj).map(([k$4,v$1])=>[strCamelToSnake(k$4),v$1])),clean$1=obj=>Object.fromEntries(Object.entries(obj).filter(([,v$1])=>v$1!==void 0)),requestHeaders$1=(headers,apiKey)=>clean$1({Authorization:apiKey===void 0?void 0:`Bearer ${apiKey}`,...headers}),requestURL$1=(path,baseURL)=>{let base=baseURL.toString();return new URL(path,base.endsWith(`/`)?base:`${base}/`)},responseCatch$1=async res=>{if(!res.ok)throw new XSAIError(`Remote sent ${res.status} response: ${await res.text()}`,res);if(!res.body)throw new XSAIError(`Response body is empty from remote server`,res);if(!(res.body instanceof ReadableStream))throw new XSAIError(`Expected Response body to be a ReadableStream, but got ${String(res.body)}; Content Type is ${res.headers.get(`Content-Type`)}`,res);return res},responseJSON=async res=>responseCatch$1(res).then(async res2=>{let text$5=await res2.text();try{return JSON.parse(text$5)}catch{throw Error(`Failed to parse response, response body: ${text$5}`)}});var createUnElevenLabs=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=({applyTextNormalization,languageCode,nextRequestIds,nextText,previousRequestIds,previousText,pronunciationDictionaryLocators,seed,voiceSettings})=>({extraBody:objCamelToSnake({applyTextNormalization,languageCode,nextRequestIds,nextText,previousRequestIds,previousText,pronunciationDictionaryLocators:pronunciationDictionaryLocators?pronunciationDictionaryLocators.map(pdl=>objCamelToSnake(pdl)):void 0,seed,voiceSettings:objCamelToSnake(voiceSettings??{similarityBoost:.75,stability:.5})})}),speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`elevenlabs/${model}`})},voiceProvider={voice:options$1=>(baseURL.endsWith(`v1/`)?baseURL=baseURL.slice(0,-3):baseURL.endsWith(`v1`)&&(baseURL=baseURL.slice(0,-2)),{query:`provider=elevenlabs`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL})};return merge(speechProvider,voiceProvider)},createUnMicrosoft=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=options$1=>{let{deploymentId,region,sampleRate}=options$1,extraBody={deploymentId,region,sampleRate};return`disableSsml`in options$1?extraBody.disableSsml=options$1.disableSsml:`lang`in options$1&&(extraBody.lang=options$1.lang,extraBody.gender=options$1.gender,extraBody.voice=options$1.voice),{extraBody:objCamelToSnake(extraBody)}},speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`microsoft/${model}`})},voiceProvider={voice:options$1=>(baseURL.endsWith(`v1/`)?baseURL=baseURL.slice(0,-3):baseURL.endsWith(`v1`)&&(baseURL=baseURL.slice(0,-2)),{query:`region=${options$1?.region}&provider=microsoft`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL})};return merge(speechProvider,voiceProvider)},createUnVolcengine=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=options$1=>{var _options$1$app,_options$1$app2;let extraBody={app:{appid:(_options$1$app=options$1.app)?.appId,token:apiKey}};return options$1.app!==void 0&&(extraBody.app={...options$1.app,appid:(_options$1$app2=options$1.app)?.appId,token:apiKey}),options$1.user!==void 0&&(extraBody.user=options$1.user),options$1.audio!==void 0&&(extraBody.audio=options$1.audio),{extraBody:objCamelToSnake(extraBody)}},speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`volcengine/${model}`})},voiceProvider={voice:options$1=>(baseURL.endsWith(`v1/`)?baseURL=baseURL.slice(0,-3):baseURL.endsWith(`v1`)&&(baseURL=baseURL.slice(0,-2)),{query:`provider=volcengine`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL})};return merge(speechProvider,voiceProvider)},createUnAlibabaCloud=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=options$1=>{let{sampleRate,volume,rate,pitch}=options$1,extraBody={sampleRate,volume,rate,pitch};return Object.keys(extraBody).forEach(key$1=>extraBody[key$1]===void 0&&delete extraBody[key$1]),{extraBody:objCamelToSnake(extraBody)}},speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`alibaba/${model}`})},voiceProvider={voice:options$1=>{let adjustedBaseURL=baseURL;return adjustedBaseURL.endsWith(`v1/`)?adjustedBaseURL=adjustedBaseURL.slice(0,-3):adjustedBaseURL.endsWith(`v1`)&&(adjustedBaseURL=adjustedBaseURL.slice(0,-2)),{query:`provider=alibaba`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL:adjustedBaseURL}}};return merge(speechProvider,voiceProvider)},listVoices=async options$1=>(options$1.fetch??globalThis.fetch)(requestURL$1(options$1.query?`api/voices?${options$1.query}`:`api/voices`,options$1.baseURL),{headers:requestHeaders$1({...options$1.headers},options$1.apiKey),method:`GET`,signal:options$1.abortSignal}).then(responseJSON).then(({voices})=>voices);const models=[{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`}],useProvidersStore=defineStore(`providers`,()=>{let providerCredentials=useLocalStorage(`settings/credentials/providers`,{}),{t}=useI18n();async function fetchOpenRouterModels(config){try{let response=await fetch(`https://openrouter.ai/api/v1/models`,{headers:{Authorization:`Bearer ${config.apiKey.trim()}`,"Content-Type":`application/json`}});if(!response.ok)throw Error(`Failed to fetch OpenRouter models: ${response.statusText}`);let data$10=await response.json();return data$10.data.map(model=>({id:model.id,name:model.name||model.id,provider:`openrouter-ai`,description:model.description||``,contextLength:model.context_length,deprecated:!1}))}catch(error){throw console.error(`Error fetching OpenRouter models:`,error),error}}let providerMetadata={"openrouter-ai":{id:`openrouter-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.openrouter.title`,name:`OpenRouter`,descriptionKey:`settings.pages.providers.provider.openrouter.description`,description:`openrouter.ai`,icon:`i-lobe-icons:openrouter`,defaultOptions:()=>({baseUrl:`https://openrouter.ai/api/v1/`}),createProvider:config=>createOpenRouter(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>fetchOpenRouterModels(config)},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"app-local-audio-speech":{id:`app-local-audio-speech`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:async()=>`window`in globalThis&&globalThis.window!=null&&`__TAURI__`in globalThis.window&&globalThis.window.__TAURI__!=null,nameKey:`settings.pages.providers.provider.app-local-audio-speech.title`,name:`App (Local)`,descriptionKey:`settings.pages.providers.provider.app-local-audio-speech.description`,description:`https://github.com/huggingface/candle`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`app-local-candle`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!1}},"app-local-audio-transcription":{id:`app-local-audio-transcription`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:async()=>`window`in globalThis&&globalThis.window!=null&&`__TAURI__`in globalThis.window&&globalThis.window.__TAURI__!=null,nameKey:`settings.pages.providers.provider.app-local-audio-transcription.title`,name:`App (Local)`,descriptionKey:`settings.pages.providers.provider.app-local-audio-transcription.description`,description:`https://github.com/huggingface/candle`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`app-local-candle`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!1}},"browser-local-audio-speech":{id:`browser-local-audio-speech`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:async()=>{let webGPUAvailable=await isWebGPUSupported();if(webGPUAvailable)return!0;if(`navigator`in globalThis&&globalThis.navigator!=null&&`deviceMemory`in globalThis.navigator&&typeof globalThis.navigator.deviceMemory==`number`){let memory=globalThis.navigator.deviceMemory;if(memory>=8)return!0}return!1},nameKey:`settings.pages.providers.provider.browser-local-audio-speech.title`,name:`Browser (Local)`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-speech.description`,description:`https://github.com/moeru-ai/xsai-transformers`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`browser-local-transformers`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!1}},"browser-local-audio-transcription":{id:`browser-local-audio-transcription`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:async()=>{let webGPUAvailable=await isWebGPUSupported();if(webGPUAvailable)return!0;if(`navigator`in globalThis&&globalThis.navigator!=null&&`deviceMemory`in globalThis.navigator&&typeof globalThis.navigator.deviceMemory==`number`){let memory=globalThis.navigator.deviceMemory;if(memory>=8)return!0}return!1},nameKey:`settings.pages.providers.provider.browser-local-audio-transcription.title`,name:`Browser (Local)`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-transcription.description`,description:`https://github.com/moeru-ai/xsai-transformers`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`browser-local-transformers`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!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:config=>createOllama(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOllama(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!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:config=>createOllama(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOllama(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.baseUrl}},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:config=>createOllama(config.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:config=>!!config.baseUrl}},openai:{id:`openai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.openai.title`,name:`OpenAI`,descriptionKey:`settings.pages.providers.provider.openai.description`,description:`openai.com`,icon:`i-lobe-icons:openai`,defaultOptions:()=>({baseUrl:`https://api.openai.com/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`openai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"openai-audio-speech":{id:`openai-audio-speech`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.openai.title`,name:`OpenAI`,descriptionKey:`settings.pages.providers.provider.openai.description`,description:`openai.com`,icon:`i-lobe-icons:openai`,defaultOptions:()=>({baseUrl:`https://api.openai.com/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`openai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"openai-audio-transcription":{id:`openai-audio-transcription`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],nameKey:`settings.pages.providers.provider.openai.title`,name:`OpenAI`,descriptionKey:`settings.pages.providers.provider.openai.description`,description:`openai.com`,icon:`i-lobe-icons:openai`,defaultOptions:()=>({baseUrl:`https://api.openai.com/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`openai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},anthropic:{id:`anthropic`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.anthropic.title`,name:`Anthropic`,descriptionKey:`settings.pages.providers.provider.anthropic.description`,description:`anthropic.com`,icon:`i-lobe-icons:anthropic`,defaultOptions:()=>({baseUrl:`https://api.anthropic.com/v1/`}),createProvider:config=>createAnthropic(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`claude-3-7-sonnet-20250219`,name:`Claude 3.7 Sonnet`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-5-sonnet-20241022`,name:`Claude 3.5 Sonnet (New)`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-5-haiku-20241022`,name:`Claude 3.5 Haiku`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-5-sonnet-20240620`,name:`Claude 3.5 Sonnet (Old)`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-haiku-20240307`,name:`Claude 3 Haiku`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-opus-20240229`,name:`Claude 3 Opus`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"google-generative-ai":{id:`google-generative-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.google-generative-ai.title`,name:`Google Gemini`,descriptionKey:`settings.pages.providers.provider.google-generative-ai.description`,description:`ai.google.dev`,icon:`i-lobe-icons:gemini`,defaultOptions:()=>({baseUrl:`https://generativelanguage.googleapis.com/v1beta/openai/`}),createProvider:config=>createGoogleGenerativeAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createGoogleGenerativeAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`google-generative-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},xai:{id:`xai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.xai.title`,name:`xAI`,descriptionKey:`settings.pages.providers.provider.xai.description`,description:`x.ai`,icon:`i-lobe-icons:xai`,createProvider:config=>createXAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createXAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`xai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},deepseek:{id:`deepseek`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.deepseek.title`,name:`DeepSeek`,descriptionKey:`settings.pages.providers.provider.deepseek.description`,description:`deepseek.com`,iconColor:`i-lobe-icons:deepseek`,createProvider:config=>createDeepSeek(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createDeepSeek(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`deepseek`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},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:config=>createUnElevenLabs(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>models.map(model=>({id:model.model_id,name:model.name,provider:`elevenlabs`,description:model.description,contextLength:0,deprecated:!1})),listVoices:async config=>{let provider=createUnElevenLabs(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice()}),ariaIndex=voices.findIndex(voice=>voice.name.includes(`Aria`)),billIndex=voices.findIndex(voice=>voice.name.includes(`Bill`)),startIndex=ariaIndex===-1?0:ariaIndex,endIndex=billIndex===-1?voices.length-1:billIndex,lowerIndex=Math.min(startIndex,endIndex),higherIndex=Math.max(startIndex,endIndex),rearrangedVoices=[...voices.slice(0,lowerIndex),...voices.slice(higherIndex+1),...voices.slice(lowerIndex,higherIndex+1)];return rearrangedVoices.map(voice=>({id:voice.id,name:voice.name,provider:`elevenlabs`,previewURL:voice.preview_audio_url,languages:voice.languages}))}},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.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:config=>createUnMicrosoft(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`v1`,name:`v1`,provider:`microsoft-speech`,description:``,contextLength:0,deprecated:!1}],listVoices:async config=>{let provider=createUnMicrosoft(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice({region:config.region})});return voices.map(voice=>{var _voice$labels;return{id:voice.id,name:voice.name,provider:`microsoft-speech`,previewURL:voice.preview_audio_url,languages:voice.languages,gender:(_voice$labels=voice.labels)?.gender}})}},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.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:config=>createUnAlibabaCloud(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listVoices:async config=>{let provider=createUnAlibabaCloud(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice()});return voices.map(voice=>{var _voice$labels2;return{id:voice.id,name:voice.name,provider:`alibaba-cloud-model-studio`,previewURL:voice.preview_audio_url,languages:voice.languages,gender:(_voice$labels2=voice.labels)?.gender}})},listModels:async()=>[{id:`cozyvoice-v1`,name:`CozyVoice`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1},{id:`cozyvoice-v2`,name:`CozyVoice (New)`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.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:config=>createUnVolcengine(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listVoices:async config=>{let provider=createUnVolcengine(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice()});return voices.map(voice=>{var _voice$labels3;return{id:voice.id,name:voice.name,provider:`volcano-engine`,previewURL:voice.preview_audio_url,languages:voice.languages,gender:(_voice$labels3=voice.labels)?.gender}})},listModels:async()=>[{id:`v1`,name:`v1`,provider:`volcano-engine`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl&&!!config.app&&!!config.app.appId}},"together-ai":{id:`together-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.together.title`,name:`Together.ai`,descriptionKey:`settings.pages.providers.provider.together.description`,description:`together.ai`,iconColor:`i-lobe-icons:together`,createProvider:config=>createTogetherAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createTogetherAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`together-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"novita-ai":{id:`novita-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.novita.title`,name:`Novita`,descriptionKey:`settings.pages.providers.provider.novita.description`,description:`novita.ai`,iconColor:`i-lobe-icons:novita`,createProvider:config=>createNovita(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createNovita(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`novita-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"fireworks-ai":{id:`fireworks-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.fireworks.title`,name:`Fireworks.ai`,descriptionKey:`settings.pages.providers.provider.fireworks.description`,description:`fireworks.ai`,icon:`i-lobe-icons:fireworks`,createProvider:config=>createFireworks(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createFireworks(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`fireworks-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"featherless-ai":{id:`featherless-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.featherless.title`,name:`Featherless.ai`,descriptionKey:`settings.pages.providers.provider.featherless.description`,description:`featherless.ai`,icon:`i-lobe-icons:featherless-ai`,defaultOptions:()=>({baseUrl:`https://api.featherless.ai/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`featherless-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"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:config=>createWorkersAI(config.apiKey.trim(),config.accountId),capabilities:{listModels:async()=>[]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.accountId}},"perplexity-ai":{id:`perplexity-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.perplexity.title`,name:`Perplexity`,descriptionKey:`settings.pages.providers.provider.perplexity.description`,description:`perplexity.ai`,icon:`i-lobe-icons:perplexity`,defaultOptions:()=>({baseUrl:`https://api.perplexity.ai`}),createProvider:config=>createPerplexity(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`sonar-small-online`,name:`Sonar Small (Online)`,provider:`perplexity-ai`,description:`Efficient model with online search capabilities`,contextLength:12e3},{id:`sonar-medium-online`,name:`Sonar Medium (Online)`,provider:`perplexity-ai`,description:`Balanced model with online search capabilities`,contextLength:12e3},{id:`sonar-large-online`,name:`Sonar Large (Online)`,provider:`perplexity-ai`,description:`Powerful model with online search capabilities`,contextLength:12e3},{id:`codey-small`,name:`Codey Small`,provider:`perplexity-ai`,description:`Specialized for code generation and understanding`,contextLength:12e3},{id:`codey-large`,name:`Codey Large`,provider:`perplexity-ai`,description:`Advanced code generation and understanding`,contextLength:12e3}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"mistral-ai":{id:`mistral-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.mistral.title`,name:`Mistral`,descriptionKey:`settings.pages.providers.provider.mistral.description`,description:`mistral.ai`,iconColor:`i-lobe-icons:mistral`,createProvider:config=>createMistral(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createMistral(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`mistral-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"moonshot-ai":{id:`moonshot-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.moonshot.title`,name:`Moonshot AI`,descriptionKey:`settings.pages.providers.provider.moonshot.description`,description:`moonshot.ai`,icon:`i-lobe-icons:moonshot`,createProvider:config=>createMoonshot(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createMoonshot(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`moonshot-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},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:config=>createPlayer2(config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`player2-model`,name:`Player2 Model`,provider:`player2`}]},validators:{validateProviderConfig:config=>!!config.baseUrl}},"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:config=>createPlayer2(config.baseUrl.trim(),`airi`),capabilities:{listVoices:async()=>await fetch(`http://localhost:4315/v1/tts/voices`).then(res=>res.json()).then(({voices})=>voices.map(({id,language,name:name$2,gender})=>({id,name:name$2,provider:`player2-speech`,gender,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`}}[language]]})))},validators:{validateProviderConfig:config=>!!config.baseUrl}}};async function validateProvider(providerId){let config=providerCredentials.value[providerId];if(!config)return!1;let metadata=providerMetadata[providerId];return metadata?await metadata.validators.validateProviderConfig(config):!1}let configuredProviders=ref({});function initializeProvider(providerId){if(!providerCredentials.value[providerId]){var _metadata$defaultOpti;let metadata=providerMetadata[providerId],defaultOptions=(_metadata$defaultOpti=metadata.defaultOptions)?.call(metadata)||{};providerCredentials.value[providerId]={baseUrl:defaultOptions.baseUrl||``}}}Object.keys(providerMetadata).forEach(initializeProvider);async function updateConfigurationStatus(){await Promise.all(Object.keys(providerMetadata).map(async providerId=>{configuredProviders.value[providerId]=await validateProvider(providerId)}))}updateConfigurationStatus(),watch(providerCredentials,updateConfigurationStatus,{deep:!0});let availableProviders=computed(()=>Object.keys(providerMetadata).filter(providerId=>configuredProviders.value[providerId])),availableModels=ref({}),isLoadingModels=ref({}),modelLoadError=ref({});async function fetchModelsForProvider(providerId){let config=providerCredentials.value[providerId];if(!config)return[];let metadata=providerMetadata[providerId];if(!metadata)return[];isLoadingModels.value[providerId]=!0,modelLoadError.value[providerId]=null;try{let models$1=metadata.capabilities.listModels?await metadata.capabilities.listModels(config):[];return availableModels.value[providerId]=models$1.map(model=>({id:model.id,name:model.name,description:model.description,contextLength:model.contextLength,deprecated:model.deprecated,provider:providerId})),availableModels.value[providerId]}catch(error){return console.error(`Error fetching models for ${providerId}:`,error),modelLoadError.value[providerId]=error instanceof Error?error.message:`Unknown error`,[]}finally{isLoadingModels.value[providerId]=!1}}function getModelsForProvider(providerId){return availableModels.value[providerId]||[]}let allAvailableModels=computed(()=>{let models$1=[];for(let providerId of availableProviders.value)models$1.push(...availableModels.value[providerId]||[]);return models$1});async function loadModelsForConfiguredProviders(){for(let providerId of availableProviders.value)providerMetadata[providerId].capabilities.listModels&&await fetchModelsForProvider(providerId)}function getProviderMetadata(providerId){let metadata=providerMetadata[providerId];if(!metadata)throw Error(`Provider metadata for ${providerId} not found`);return{...metadata,localizedName:t(metadata.nameKey,metadata.name),localizedDescription:t(metadata.descriptionKey,metadata.description)}}let allProvidersMetadata=computed(()=>Object.values(providerMetadata).map(metadata=>({...metadata,localizedName:t(metadata.nameKey,metadata.name),localizedDescription:t(metadata.descriptionKey,metadata.description),configured:configuredProviders.value[metadata.id]||!1})));function getProviderInstance(providerId){let config=providerCredentials.value[providerId];if(!config)throw Error(`Provider credentials for ${providerId} not found`);let metadata=providerMetadata[providerId];if(!metadata)throw Error(`Provider metadata for ${providerId} not found`);try{return metadata.createProvider(config)}catch(error){throw console.error(`Error creating provider instance for ${providerId}:`,error),error}}let availableProvidersMetadata=computedAsync(async()=>{let providers=[];for(let provider of allProvidersMetadata.value){let p$5=getProviderMetadata(provider.id),isAvailableBy=p$5.isAvailableBy||(()=>!0),isAvailable=await isAvailableBy();isAvailable&&providers.push(provider)}return providers},[]),allChatProvidersMetadata=computed(()=>availableProvidersMetadata.value.filter(metadata=>metadata.category===`chat`)),allAudioSpeechProvidersMetadata=computed(()=>availableProvidersMetadata.value.filter(metadata=>metadata.category===`speech`)),allAudioTranscriptionProvidersMetadata=computed(()=>availableProvidersMetadata.value.filter(metadata=>metadata.category===`transcription`)),configuredChatProvidersMetadata=computed(()=>allChatProvidersMetadata.value.filter(metadata=>configuredProviders.value[metadata.id])),configuredSpeechProvidersMetadata=computed(()=>allAudioSpeechProvidersMetadata.value.filter(metadata=>configuredProviders.value[metadata.id])),configuredTranscriptionProvidersMetadata=computed(()=>allAudioTranscriptionProvidersMetadata.value.filter(metadata=>configuredProviders.value[metadata.id]));function getProviderConfig(providerId){return providerCredentials.value[providerId]}return{providers:providerCredentials,getProviderConfig,availableProviders,configuredProviders,providerMetadata,getProviderMetadata,allProvidersMetadata,initializeProvider,validateProvider,availableModels,isLoadingModels,modelLoadError,fetchModelsForProvider,getModelsForProvider,allAvailableModels,loadModelsForConfiguredProviders,getProviderInstance,availableProvidersMetadata,allChatProvidersMetadata,allAudioSpeechProvidersMetadata,allAudioTranscriptionProvidersMetadata,configuredChatProvidersMetadata,configuredSpeechProvidersMetadata,configuredTranscriptionProvidersMetadata}}),useConsciousnessStore=defineStore(`consciousness`,()=>{let providersStore=useProvidersStore(),activeProvider=useLocalStorage(`settings/consciousness/active-provider`,``),activeModel=useLocalStorage(`settings/consciousness/active-model`,``),activeCustomModelName=useLocalStorage(`settings/consciousness/active-custom-model`,``),expandedDescriptions=ref({}),modelSearchQuery=ref(``),supportsModelListing=computed(()=>{var _providersStore$getPr;return(_providersStore$getPr=providersStore.getProviderMetadata(activeProvider.value))?.capabilities.listModels!==void 0}),providerModels=computed(()=>providersStore.getModelsForProvider(activeProvider.value)),isLoadingActiveProviderModels=computed(()=>providersStore.isLoadingModels[activeProvider.value]||!1),activeProviderModelError=computed(()=>providersStore.modelLoadError[activeProvider.value]||null),filteredModels=computed(()=>{if(!modelSearchQuery.value.trim())return providerModels.value;let query=modelSearchQuery.value.toLowerCase().trim();return providerModels.value.filter(model=>model.name.toLowerCase().includes(query)||model.id.toLowerCase().includes(query)||model.description&&model.description.toLowerCase().includes(query))});function resetModelSelection(){activeModel.value=``,activeCustomModelName.value=``,expandedDescriptions.value={},modelSearchQuery.value=``}async function loadModelsForProvider(provider){var _providersStore$getPr2;provider&&(_providersStore$getPr2=providersStore.getProviderMetadata(activeProvider.value))?.capabilities.listModels!==void 0&&providersStore.getModelsForProvider(provider).length===0&&await providersStore.fetchModelsForProvider(provider)}let player2Interval;return watch(activeProvider,async newProvider=>{await loadModelsForProvider(newProvider),resetModelSelection(),newProvider===`player2`?player2Interval=setInterval(()=>{console.log(`Sending Player2 Health check if it is being used`),fetch(`localhost:4315/v1/health`,{method:`GET`,headers:{"player2-game-key":`airi`}}).catch(()=>{})},6e4):(player2Interval&&clearInterval(player2Interval),player2Interval=void 0)}),{activeProvider,activeModel,customModelName:activeCustomModelName,expandedDescriptions,modelSearchQuery,supportsModelListing,providerModels,isLoadingActiveProviderModels,activeProviderModelError,filteredModels,resetModelSelection,loadModelsForProvider}}),generateSpeech=async options$1=>(options$1.fetch??globalThis.fetch)(requestURL(`audio/speech`,options$1.baseURL),{body:requestBody(options$1),headers:requestHeaders({"Content-Type":`application/json`,...options$1.headers},options$1.apiKey),method:`POST`,signal:options$1.abortSignal}).then(responseCatch).then(async res=>res.arrayBuffer()),noncharacter=/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g;function escape(value$1,subset$4,unsafe$2){let result=clean(value$1);return unsafe$2?result.replace(unsafe$2,encode):encode(result);function encode(value$2){return stringifyEntitiesLight(value$2,{subset:subset$4})}}function clean(value$1){return String(value$1||``).replace(noncharacter,``)}const unsafe$1=/]]>/g,subset$3=[`>`];function cdata(node$1){return``}function comment(node$1){return``}const subset$2=[` `,` -`,` `,`"`,`&`,`'`,`/`,`<`,`=`,`>`];function name$1(value$1){return escape(value$1,subset$2)}function value(value$1,state){let result=String(value$1),quote=state.options.quote||`"`;if(state.options.quoteSmart){let other=quote===`"`?`'`:`"`;ccount(result,quote)>ccount(result,other)&&(quote=other)}return quote+escape(result,[`<`,`&`,quote])+quote}function doctype(node$1,state){let nodeName=name$1(node$1.name),pub=node$1.public,sys=node$1.system,result=``}const own$1={}.hasOwnProperty;function element(node$1,state){let nodeName=name$1(node$1.name),content$2=all(node$1,state),attributes=node$1.attributes||{},close=content$2?!1:state.options.closeEmptyElements,attrs=[],key$1;for(key$1 in attributes)if(own$1.call(attributes,key$1)){let result=attributes[key$1];result!=null&&attrs.push(name$1(key$1)+`=`+value(result,state))}return`<`+nodeName+(attrs.length===0?``:` `+attrs.join(` `))+(close?(state.options.tightClose?``:` `)+`/`:``)+`>`+content$2+(close?``:``)}const unsafe=/\?>/g,subset$1=[`>`];function instruction(node$1){let nodeName=name$1(node$1.name)||`x`,result=escape(node$1.value,subset$1,unsafe);return``}const subset=[`&`,`<`];function text(node$1){return escape(node$1.value,subset)}function raw(node$1,state){return state.options.allowDangerousXml?node$1.value:text(node$1)}const own={}.hasOwnProperty,handlers={cdata,comment,doctype,element,instruction,raw,root:all,text};function one(node$1,state){let type=node$1&&node$1.type;if(!type)throw Error("Expected node, not `"+node$1+"`");if(!own.call(handlers,type))throw Error("Cannot compile unknown node `"+type+"`");let handle$1=handlers[type],result=handle$1(node$1,state);return result}function all(parent,state){let children=parent&&parent.children||[],index$1=-1,results=[];for(;++index$1{let providersStore=useProvidersStore(),activeSpeechProvider=useLocalStorage(`settings/speech/active-provider`,``),activeSpeechModel=useLocalStorage(`settings/speech/active-model`,`eleven_multilingual_v2`),activeSpeechVoiceId=useLocalStorage(`settings/speech/voice`,``),activeSpeechVoice=ref(),pitch=useLocalStorage(`settings/speech/pitch`,0),rate=useLocalStorage(`settings/speech/rate`,1),ssmlEnabled=useLocalStorage(`settings/speech/ssml-enabled`,!1),isLoadingSpeechProviderVoices=ref(!1),speechProviderError=ref(null),availableVoices=ref({}),selectedLanguage=useLocalStorage(`settings/speech/language`,`en-US`),modelSearchQuery=ref(``),availableSpeechProvidersMetadata=computed(()=>providersStore.availableProviders.filter(id=>isSpeechProvider(id)).map(id=>providersStore.getProviderMetadata(id))),supportsModelListing=computed(()=>{var _providersStore$getPr3;return(_providersStore$getPr3=providersStore.getProviderMetadata(activeSpeechProvider.value))?.capabilities.listModels!==void 0}),providerModels=computed(()=>providersStore.getModelsForProvider(activeSpeechProvider.value)),isLoadingActiveProviderModels=computed(()=>providersStore.isLoadingModels[activeSpeechProvider.value]||!1),activeProviderModelError=computed(()=>providersStore.modelLoadError[activeSpeechProvider.value]||null),filteredModels=computed(()=>{if(!modelSearchQuery.value.trim())return providerModels.value;let query=modelSearchQuery.value.toLowerCase().trim();return providerModels.value.filter(model=>model.name.toLowerCase().includes(query)||model.id.toLowerCase().includes(query)||model.description&&model.description.toLowerCase().includes(query))}),supportsSSML=computed(()=>[`elevenlabs`,`microsoft-speech`,`azure-speech`,`google`,`alibaba-cloud-model-studio`,`volcengine`].includes(activeSpeechProvider.value));function isSpeechProvider(providerId){return[`elevenlabs`,`microsoft-speech`,`azure-speech`,`google`,`amazon`,`alibaba-cloud-model-studio`,`volcengine`,`player2-speech`].includes(providerId)}async function loadVoicesForProvider(provider){if(!provider||!isSpeechProvider(provider))return[];isLoadingSpeechProviderVoices.value=!0,speechProviderError.value=null;try{var _providersStore$getPr4,_providersStore$getPr5;let voices=await(_providersStore$getPr4=(_providersStore$getPr5=providersStore.getProviderMetadata(provider).capabilities).listVoices)?.call(_providersStore$getPr5,providersStore.getProviderConfig(provider))||[];return availableVoices.value[provider]=voices,voices}catch(error){return console.error(`Error fetching voices for ${provider}:`,error),speechProviderError.value=error instanceof Error?error.message:`Unknown error`,[]}finally{isLoadingSpeechProviderVoices.value=!1}}function getVoicesForProvider(provider){return availableVoices.value[provider]||[]}watch(activeSpeechProvider,async newProvider=>{newProvider&&await loadVoicesForProvider(newProvider)}),onMounted(()=>{loadVoicesForProvider(activeSpeechProvider.value).then(()=>{var _availableVoices$valu;activeSpeechVoiceId.value&&(activeSpeechVoice.value=(_availableVoices$valu=availableVoices.value[activeSpeechProvider.value])?.find(voice=>voice.id===activeSpeechVoiceId.value))})}),watch(activeSpeechVoiceId,voiceId=>{var _availableVoices$valu2;voiceId&&(activeSpeechVoice.value=(_availableVoices$valu2=availableVoices.value[activeSpeechProvider.value])?.find(voice=>voice.id===voiceId))},{immediate:!0}),watch(availableVoices,voices=>{var _voices$activeSpeechP;activeSpeechVoiceId.value&&(activeSpeechVoice.value=(_voices$activeSpeechP=voices[activeSpeechProvider.value])?.find(voice=>voice.id===activeSpeechVoiceId.value))},{immediate:!0});async function speech(provider,model,input,voice,providerConfig={}){let response=await generateSpeech({...provider.speech(model,{...providerConfig}),input,voice});return response}function generateSSML(text$5,voice,providerConfig){var _voice$languages$;let pitch$1=providerConfig?.pitch,speed=providerConfig?.speed,volume=providerConfig?.volume,prosody={pitch:pitch$1==null?void 0:pitch$1>0?`+${pitch$1}%`:`-${pitch$1}%`,rate:speed==null?void 0:speed===1?`1`:`${speed}`,volume:volume==null?void 0:volume>0?`+${volume}%`:`${volume}%`},ssmlXast=x$2(`speak`,{version:`1.0`,xmlns:`http://www.w3.org/2001/10/synthesis`,"xml:lang":(_voice$languages$=voice.languages[0])?.code||`en-US`},[x$2(`voice`,{name:voice.id,gender:voice.gender||`neutral`},[Object.entries(prosody).filter(([_$1,value$1])=>value$1!=null).length>0?x$2(`prosody`,{pitch:pitch$1==null?void 0:pitch$1>0?`+${pitch$1}%`:`-${pitch$1}%`,rate:speed==null?void 0:speed===1?`1`:`${speed}`,volume:volume==null?void 0:volume>0?`+${volume}%`:`${volume}%`},[text$5]):text$5])]);return toXml(ssmlXast)}return{activeSpeechProvider,activeSpeechModel,activeSpeechVoice,activeSpeechVoiceId,pitch,rate,ssmlEnabled,selectedLanguage,isLoadingSpeechProviderVoices,speechProviderError,availableVoices,modelSearchQuery,availableSpeechProvidersMetadata,supportsSSML,supportsModelListing,providerModels,isLoadingActiveProviderModels,activeProviderModelError,filteredModels,speech,loadVoicesForProvider,getVoicesForProvider,generateSSML,isSpeechProvider}}),useAiriCardStore=defineStore(`airi-card`,()=>{let cards=useLocalStorage(`airi-cards`,new Map),activeCardId=useLocalStorage(`airi-card-active-id`,`default`),activeCard=computed(()=>cards.value.get(activeCardId.value)),consciousnessStore=useConsciousnessStore(),speechStore=useSpeechStore(),{activeModel:activeConsciousnessModel}=storeToRefs(consciousnessStore),{activeSpeechVoiceId,activeSpeechModel}=storeToRefs(speechStore),addCard=card=>{let newCardId=crypto.randomUUID();return cards.value.set(newCardId,newAiriCard(card)),newCardId},removeCard=id=>{cards.value.delete(id)},getCard=id=>cards.value.get(id);function resolveAiriExtension(card){var _card$data,_card$extensions,_existingExtension$mo,_existingExtension$mo2,_existingExtension$mo3,_existingExtension$mo4,_existingExtension$mo5,_existingExtension$mo6,_existingExtension$mo7,_existingExtension$mo8,_existingExtension$mo9;let existingExtension=`data`in card?(_card$data=card.data)==null||(_card$data=_card$data.extensions)==null?void 0:_card$data.airi:(_card$extensions=card.extensions)?.airi,defaultModules={consciousness:{model:activeConsciousnessModel.value},speech:{model:activeSpeechModel.value,voice_id:activeSpeechVoiceId.value}};return existingExtension?{modules:{consciousness:{model:((_existingExtension$mo=existingExtension.modules)==null||(_existingExtension$mo=_existingExtension$mo.consciousness)==null?void 0:_existingExtension$mo.model)??defaultModules.consciousness.model},speech:{model:((_existingExtension$mo2=existingExtension.modules)==null||(_existingExtension$mo2=_existingExtension$mo2.speech)==null?void 0:_existingExtension$mo2.model)??defaultModules.speech.model,voice_id:((_existingExtension$mo3=existingExtension.modules)==null||(_existingExtension$mo3=_existingExtension$mo3.speech)==null?void 0:_existingExtension$mo3.voice_id)??defaultModules.speech.voice_id,pitch:(_existingExtension$mo4=existingExtension.modules)==null||(_existingExtension$mo4=_existingExtension$mo4.speech)==null?void 0:_existingExtension$mo4.pitch,rate:(_existingExtension$mo5=existingExtension.modules)==null||(_existingExtension$mo5=_existingExtension$mo5.speech)==null?void 0:_existingExtension$mo5.rate,ssml:(_existingExtension$mo6=existingExtension.modules)==null||(_existingExtension$mo6=_existingExtension$mo6.speech)==null?void 0:_existingExtension$mo6.ssml,language:(_existingExtension$mo7=existingExtension.modules)==null||(_existingExtension$mo7=_existingExtension$mo7.speech)==null?void 0:_existingExtension$mo7.language},vrm:(_existingExtension$mo8=existingExtension.modules)?.vrm,live2d:(_existingExtension$mo9=existingExtension.modules)?.live2d},agents:existingExtension.agents??{}}:{modules:defaultModules,agents:{}}}function newAiriCard(card){if(`data`in card){let ccv3Card=card;return{name:ccv3Card.data.name,version:ccv3Card.data.character_version??`1.0.0`,description:ccv3Card.data.description??``,creator:ccv3Card.data.creator??``,notes:ccv3Card.data.creator_notes??``,notesMultilingual:ccv3Card.data.creator_notes_multilingual,personality:ccv3Card.data.personality??``,scenario:ccv3Card.data.scenario??``,greetings:[ccv3Card.data.first_mes,...ccv3Card.data.alternate_greetings??[]],greetingsGroupOnly:ccv3Card.data.group_only_greetings??[],systemPrompt:ccv3Card.data.system_prompt??``,postHistoryInstructions:ccv3Card.data.post_history_instructions??``,messageExample:ccv3Card.data.mes_example?ccv3Card.data.mes_example.split(` +About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[I18nWarnCodes.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:`'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.`};function handleFlatJson(obj){if(!isObject$2(obj)||isMessageAST(obj))return obj;for(let key$1 in obj){if(!hasOwn(obj,key$1))continue;if(!key$1.includes(`.`))isObject$2(obj[key$1])&&handleFlatJson(obj[key$1]);else{let subKeys=key$1.split(`.`),lastIndex=subKeys.length-1,currentObj=obj,hasStringValue=!1;for(let i$1=0;i$1{if(`locale`in custom&&`resource`in custom){let{locale:locale$1,resource}=custom;locale$1?(ret[locale$1]=ret[locale$1]||create(),deepCopy(resource,ret[locale$1])):deepCopy(resource,ret)}else isString(custom)&&deepCopy(JSON.parse(custom),ret)}),messageResolver==null&&flatJson)for(let key$1 in ret)hasOwn(ret,key$1)&&handleFlatJson(ret[key$1]);return ret}function getComponentOptions(instance){return instance.type}function adjustI18nResources(gl,options$1,componentOptions){let messages=isObject$2(options$1.messages)?options$1.messages:create();`__i18nGlobal`in componentOptions&&(messages=getLocaleMessages(gl.locale.value,{messages,__i18n:componentOptions.__i18nGlobal}));let locales=Object.keys(messages);if(locales.length&&locales.forEach(locale=>{gl.mergeLocaleMessage(locale,messages[locale])}),isObject$2(options$1.datetimeFormats)){let locales$1=Object.keys(options$1.datetimeFormats);locales$1.length&&locales$1.forEach(locale=>{gl.mergeDateTimeFormat(locale,options$1.datetimeFormats[locale])})}if(isObject$2(options$1.numberFormats)){let locales$1=Object.keys(options$1.numberFormats);locales$1.length&&locales$1.forEach(locale=>{gl.mergeNumberFormat(locale,options$1.numberFormats[locale])})}}function createTextNode(key$1){return createVNode(Text,null,key$1,0)}const DEVTOOLS_META=`__INTLIFY_META__`,NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(missing){return(ctx,locale,key$1,type)=>missing(locale,key$1,getCurrentInstance()||void 0,type)}const getMetaInfo=()=>{let instance=getCurrentInstance(),meta=null;return instance&&(meta=getComponentOptions(instance)[DEVTOOLS_META])?{[DEVTOOLS_META]:meta}:null};function createComposer(options$1={}){let{__root,__injectWithOption}=options$1,_isGlobal=__root===void 0,flatJson=options$1.flatJson,_ref=inBrowser?ref:shallowRef,_inheritLocale=isBoolean(options$1.inheritLocale)?options$1.inheritLocale:!0,_locale=_ref(__root&&_inheritLocale?__root.locale.value:isString(options$1.locale)?options$1.locale:DEFAULT_LOCALE),_fallbackLocale=_ref(__root&&_inheritLocale?__root.fallbackLocale.value:isString(options$1.fallbackLocale)||isArray$1(options$1.fallbackLocale)||isPlainObject(options$1.fallbackLocale)||options$1.fallbackLocale===!1?options$1.fallbackLocale:_locale.value),_messages=_ref(getLocaleMessages(_locale.value,options$1)),_datetimeFormats=_ref(isPlainObject(options$1.datetimeFormats)?options$1.datetimeFormats:{[_locale.value]:{}}),_numberFormats=_ref(isPlainObject(options$1.numberFormats)?options$1.numberFormats:{[_locale.value]:{}}),_missingWarn=__root?__root.missingWarn:isBoolean(options$1.missingWarn)||isRegExp(options$1.missingWarn)?options$1.missingWarn:!0,_fallbackWarn=__root?__root.fallbackWarn:isBoolean(options$1.fallbackWarn)||isRegExp(options$1.fallbackWarn)?options$1.fallbackWarn:!0,_fallbackRoot=__root?__root.fallbackRoot:isBoolean(options$1.fallbackRoot)?options$1.fallbackRoot:!0,_fallbackFormat=!!options$1.fallbackFormat,_missing=isFunction(options$1.missing)?options$1.missing:null,_runtimeMissing=isFunction(options$1.missing)?defineCoreMissingHandler(options$1.missing):null,_postTranslation=isFunction(options$1.postTranslation)?options$1.postTranslation:null,_warnHtmlMessage=__root?__root.warnHtmlMessage:isBoolean(options$1.warnHtmlMessage)?options$1.warnHtmlMessage:!0,_escapeParameter=!!options$1.escapeParameter,_modifiers=__root?__root.modifiers:isPlainObject(options$1.modifiers)?options$1.modifiers:{},_pluralRules=options$1.pluralRules||__root&&__root.pluralRules,_context$1,getCoreContext=()=>{_isGlobal&&setFallbackContext(null);let ctxOptions={version:VERSION,locale:_locale.value,fallbackLocale:_fallbackLocale.value,messages:_messages.value,modifiers:_modifiers,pluralRules:_pluralRules,missing:_runtimeMissing===null?void 0:_runtimeMissing,missingWarn:_missingWarn,fallbackWarn:_fallbackWarn,fallbackFormat:_fallbackFormat,unresolving:!0,postTranslation:_postTranslation===null?void 0:_postTranslation,warnHtmlMessage:_warnHtmlMessage,escapeParameter:_escapeParameter,messageResolver:options$1.messageResolver,messageCompiler:options$1.messageCompiler,__meta:{framework:`vue`}};ctxOptions.datetimeFormats=_datetimeFormats.value,ctxOptions.numberFormats=_numberFormats.value,ctxOptions.__datetimeFormatters=isPlainObject(_context$1)?_context$1.__datetimeFormatters:void 0,ctxOptions.__numberFormatters=isPlainObject(_context$1)?_context$1.__numberFormatters:void 0;let ctx=createCoreContext(ctxOptions);return _isGlobal&&setFallbackContext(ctx),ctx};_context$1=getCoreContext(),updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value);function trackReactivityValues(){return[_locale.value,_fallbackLocale.value,_messages.value,_datetimeFormats.value,_numberFormats.value]}let locale=computed({get:()=>_locale.value,set:val=>{_context$1.locale=val,_locale.value=val}}),fallbackLocale=computed({get:()=>_fallbackLocale.value,set:val=>{_context$1.fallbackLocale=val,_fallbackLocale.value=val,updateFallbackLocale(_context$1,_locale.value,val)}}),messages=computed(()=>_messages.value),datetimeFormats=computed(()=>_datetimeFormats.value),numberFormats=computed(()=>_numberFormats.value);function getPostTranslationHandler(){return isFunction(_postTranslation)?_postTranslation:null}function setPostTranslationHandler(handler){_postTranslation=handler,_context$1.postTranslation=handler}function getMissingHandler(){return _missing}function setMissingHandler(handler){handler!==null&&(_runtimeMissing=defineCoreMissingHandler(handler)),_missing=handler,_context$1.missing=_runtimeMissing}function isResolvedTranslateMessage(type,arg){return type!==`translate`||!arg.resolvedMessage}let wrapWithDeps=(fn$5,argumentParser,warnType,fallbackSuccess,fallbackFail,successCondition)=>{trackReactivityValues();let ret;try{__INTLIFY_PROD_DEVTOOLS__,_isGlobal||(_context$1.fallbackContext=__root?getFallbackContext():void 0),ret=fn$5(_context$1)}finally{__INTLIFY_PROD_DEVTOOLS__,_isGlobal||(_context$1.fallbackContext=void 0)}if(warnType!==`translate exists`&&isNumber(ret)&&ret===NOT_REOSLVED||warnType===`translate exists`&&!ret){let[key$1,arg2]=argumentParser();return __root&&_fallbackRoot?fallbackSuccess(__root):fallbackFail(key$1)}else if(successCondition(ret))return ret;else throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function t(...args){return wrapWithDeps(context$1=>Reflect.apply(translate,null,[context$1,...args]),()=>parseTranslateArgs(...args),`translate`,root$3=>Reflect.apply(root$3.t,root$3,[...args]),key$1=>key$1,val=>isString(val))}function rt$3(...args){let[arg1,arg2,arg3]=args;if(arg3&&!isObject$2(arg3))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return t(arg1,arg2,assign({resolvedMessage:!0},arg3||{}))}function d$2(...args){return wrapWithDeps(context$1=>Reflect.apply(datetime,null,[context$1,...args]),()=>parseDateTimeArgs(...args),`datetime format`,root$3=>Reflect.apply(root$3.d,root$3,[...args]),()=>MISSING_RESOLVE_VALUE,val=>isString(val)||isArray$1(val))}function n$2(...args){return wrapWithDeps(context$1=>Reflect.apply(number$1,null,[context$1,...args]),()=>parseNumberArgs(...args),`number format`,root$3=>Reflect.apply(root$3.n,root$3,[...args]),()=>MISSING_RESOLVE_VALUE,val=>isString(val)||isArray$1(val))}function normalize$3(values){return values.map(val=>isString(val)||isNumber(val)||isBoolean(val)?createTextNode(String(val)):val)}let interpolate$1=val=>val,processor={normalize:normalize$3,interpolate:interpolate$1,type:`vnode`};function translateVNode(...args){return wrapWithDeps(context$1=>{let ret,_context$2=context$1;try{_context$2.processor=processor,ret=Reflect.apply(translate,null,[_context$2,...args])}finally{_context$2.processor=null}return ret},()=>parseTranslateArgs(...args),`translate`,root$3=>root$3[TranslateVNodeSymbol](...args),key$1=>[createTextNode(key$1)],val=>isArray$1(val))}function numberParts(...args){return wrapWithDeps(context$1=>Reflect.apply(number$1,null,[context$1,...args]),()=>parseNumberArgs(...args),`number format`,root$3=>root$3[NumberPartsSymbol](...args),NOOP_RETURN_ARRAY,val=>isString(val)||isArray$1(val))}function datetimeParts(...args){return wrapWithDeps(context$1=>Reflect.apply(datetime,null,[context$1,...args]),()=>parseDateTimeArgs(...args),`datetime format`,root$3=>root$3[DatetimePartsSymbol](...args),NOOP_RETURN_ARRAY,val=>isString(val)||isArray$1(val))}function setPluralRules(rules){_pluralRules=rules,_context$1.pluralRules=_pluralRules}function te$2(key$1,locale$1){return wrapWithDeps(()=>{if(!key$1)return!1;let targetLocale=isString(locale$1)?locale$1:_locale.value,message$1=getLocaleMessage(targetLocale),resolved=_context$1.messageResolver(message$1,key$1);return isMessageAST(resolved)||isMessageFunction(resolved)||isString(resolved)},()=>[key$1],`translate exists`,root$3=>Reflect.apply(root$3.te,root$3,[key$1,locale$1]),NOOP_RETURN_FALSE,val=>isBoolean(val))}function resolveMessages(key$1){let messages$1=null,locales=fallbackWithLocaleChain(_context$1,_fallbackLocale.value,_locale.value);for(let i$1=0;i$1{_inheritLocale&&(_locale.value=val,_context$1.locale=val,updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value))}),watch(__root.fallbackLocale,val=>{_inheritLocale&&(_fallbackLocale.value=val,_context$1.fallbackLocale=val,updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value))}));let composer={id:composerID,locale,fallbackLocale,get inheritLocale(){return _inheritLocale},set inheritLocale(val){_inheritLocale=val,val&&__root&&(_locale.value=__root.locale.value,_fallbackLocale.value=__root.fallbackLocale.value,updateFallbackLocale(_context$1,_locale.value,_fallbackLocale.value))},get availableLocales(){return Object.keys(_messages.value).sort()},messages,get modifiers(){return _modifiers},get pluralRules(){return _pluralRules||{}},get isGlobal(){return _isGlobal},get missingWarn(){return _missingWarn},set missingWarn(val){_missingWarn=val,_context$1.missingWarn=_missingWarn},get fallbackWarn(){return _fallbackWarn},set fallbackWarn(val){_fallbackWarn=val,_context$1.fallbackWarn=_fallbackWarn},get fallbackRoot(){return _fallbackRoot},set fallbackRoot(val){_fallbackRoot=val},get fallbackFormat(){return _fallbackFormat},set fallbackFormat(val){_fallbackFormat=val,_context$1.fallbackFormat=_fallbackFormat},get warnHtmlMessage(){return _warnHtmlMessage},set warnHtmlMessage(val){_warnHtmlMessage=val,_context$1.warnHtmlMessage=val},get escapeParameter(){return _escapeParameter},set escapeParameter(val){_escapeParameter=val,_context$1.escapeParameter=val},t,getLocaleMessage,setLocaleMessage,mergeLocaleMessage,getPostTranslationHandler,setPostTranslationHandler,getMissingHandler,setMissingHandler,[SetPluralRulesSymbol]:setPluralRules};return composer.datetimeFormats=datetimeFormats,composer.numberFormats=numberFormats,composer.rt=rt$3,composer.te=te$2,composer.tm=tm,composer.d=d$2,composer.n=n$2,composer.getDateTimeFormat=getDateTimeFormat,composer.setDateTimeFormat=setDateTimeFormat,composer.mergeDateTimeFormat=mergeDateTimeFormat,composer.getNumberFormat=getNumberFormat,composer.setNumberFormat=setNumberFormat,composer.mergeNumberFormat=mergeNumberFormat,composer[InejctWithOptionSymbol]=__injectWithOption,composer[TranslateVNodeSymbol]=translateVNode,composer[DatetimePartsSymbol]=datetimeParts,composer[NumberPartsSymbol]=numberParts,composer}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:val=>val===`parent`||val===`global`,default:`parent`},i18n:{type:Object}};function getInterpolateArg({slots},keys$3){if(keys$3.length===1&&keys$3[0]===`default`){let ret=slots.default?slots.default():[];return ret.reduce((slot,current)=>[...slot,...current.type===Fragment?current.children:[current]],[])}else return keys$3.reduce((arg,key$1)=>{let slot=slots[key$1];return slot&&(arg[key$1]=slot()),arg},create())}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:`i18n-t`,props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:val=>isNumber(val)||!isNaN(val)}},baseFormatProps),setup(props,context$1){let{slots,attrs}=context$1,i18n$1=props.i18n||useI18n({useScope:props.scope,__useComponent:!0});return()=>{let keys$3=Object.keys(slots).filter(key$1=>key$1[0]!==`_`),options$1=create();props.locale&&(options$1.locale=props.locale),props.plural!==void 0&&(options$1.plural=isString(props.plural)?+props.plural:props.plural);let arg=getInterpolateArg(context$1,keys$3),children=i18n$1[TranslateVNodeSymbol](props.keypath,arg,options$1),assignedAttrs=assign(create(),attrs),tag=isString(props.tag)||isObject$2(props.tag)?props.tag:getFragmentableTag();return h(tag,assignedAttrs,children)}}}),Translation=TranslationImpl;function isVNode(target$1){return isArray$1(target$1)&&!isString(target$1[0])}function renderFormatter(props,context$1,slotKeys,partFormatter){let{slots,attrs}=context$1;return()=>{let options$1={part:!0},overrides=create();props.locale&&(options$1.locale=props.locale),isString(props.format)?options$1.key=props.format:isObject$2(props.format)&&(isString(props.format.key)&&(options$1.key=props.format.key),overrides=Object.keys(props.format).reduce((options$2,prop)=>slotKeys.includes(prop)?assign(create(),options$2,{[prop]:props.format[prop]}):options$2,create()));let parts=partFormatter(props.value,options$1,overrides),children=[options$1.key];isArray$1(parts)?children=parts.map((part,index$1)=>{let slot=slots[part.type],node$1=slot?slot({[part.type]:part.value,index:index$1,parts}):[part.value];return isVNode(node$1)&&(node$1[0].key=`${part.type}-${index$1}`),node$1}):isString(parts)&&(children=[parts]);let assignedAttrs=assign(create(),attrs),tag=isString(props.tag)||isObject$2(props.tag)?props.tag:getFragmentableTag();return h(tag,assignedAttrs,children)}}const NumberFormatImpl=defineComponent({name:`i18n-n`,props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(props,context$1){let i18n$1=props.i18n||useI18n({useScope:props.scope,__useComponent:!0});return renderFormatter(props,context$1,NUMBER_FORMAT_OPTIONS_KEYS,(...args)=>i18n$1[NumberPartsSymbol](...args))}}),NumberFormat=NumberFormatImpl;function getComposer$1(i18n$1,instance){let i18nInternal=i18n$1;if(i18n$1.mode===`composition`)return i18nInternal.__getInstance(instance)||i18n$1.global;{let vueI18n=i18nInternal.__getInstance(instance);return vueI18n==null?i18n$1.global.__composer:vueI18n.__composer}}function vTDirective(i18n$1){let _process=binding=>{let{instance,value:value$1}=binding;if(!instance||!instance.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);let composer=getComposer$1(i18n$1,instance.$),parsedValue=parseValue(value$1);return[Reflect.apply(composer.t,composer,[...makeParams(parsedValue)]),composer]},register=(el,binding)=>{let[textContent,composer]=_process(binding);inBrowser&&i18n$1.global===composer&&(el.__i18nWatcher=watch(composer.locale,()=>{binding.instance&&binding.instance.$forceUpdate()})),el.__composer=composer,el.textContent=textContent},unregister=el=>{inBrowser&&el.__i18nWatcher&&(el.__i18nWatcher(),el.__i18nWatcher=void 0,delete el.__i18nWatcher),el.__composer&&(el.__composer=void 0,delete el.__composer)},update=(el,{value:value$1})=>{if(el.__composer){let composer=el.__composer,parsedValue=parseValue(value$1);el.textContent=Reflect.apply(composer.t,composer,[...makeParams(parsedValue)])}},getSSRProps=binding=>{let[textContent]=_process(binding);return{textContent}};return{created:register,unmounted:unregister,beforeUpdate:update,getSSRProps}}function parseValue(value$1){if(isString(value$1))return{path:value$1};if(isPlainObject(value$1)){if(!(`path`in value$1))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,`path`);return value$1}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(value$1){let{path,locale,args,choice,plural}=value$1,options$1={},named$1=args||{};return isString(locale)&&(options$1.locale=locale),isNumber(choice)&&(options$1.plural=choice),isNumber(plural)&&(options$1.plural=plural),[path,named$1,options$1]}function apply(app,i18n$1,...options$1){let pluginOptions=isPlainObject(options$1[0])?options$1[0]:{},globalInstall=isBoolean(pluginOptions.globalInstall)?pluginOptions.globalInstall:!0;globalInstall&&([Translation.name,`I18nT`].forEach(name$2=>app.component(name$2,Translation)),[NumberFormat.name,`I18nN`].forEach(name$2=>app.component(name$2,NumberFormat)),[DatetimeFormat.name,`I18nD`].forEach(name$2=>app.component(name$2,DatetimeFormat))),app.directive(`t`,vTDirective(i18n$1))}const I18nInjectionKey=makeSymbol(`global-vue-i18n`);function createI18n(options$1={}){let __legacyMode=!1,__globalInjection=isBoolean(options$1.globalInjection)?options$1.globalInjection:!0,__instances=new Map,[globalScope,__global]=createGlobal(options$1,__legacyMode),symbol=makeSymbol(``);function __getInstance(component){return __instances.get(component)||null}function __setInstance(component,instance){__instances.set(component,instance)}function __deleteInstance(component){__instances.delete(component)}let i18n$1={get mode(){return`composition`},async install(app,...options$2){if(app.__VUE_I18N_SYMBOL__=symbol,app.provide(app.__VUE_I18N_SYMBOL__,i18n$1),isPlainObject(options$2[0])){let opts=options$2[0];i18n$1.__composerExtend=opts.__composerExtend,i18n$1.__vueI18nExtend=opts.__vueI18nExtend}let globalReleaseHandler=null;!__legacyMode&&__globalInjection&&(globalReleaseHandler=injectGlobalFields(app,i18n$1.global)),apply(app,i18n$1,...options$2);let unmountApp=app.unmount;app.unmount=()=>{globalReleaseHandler&&globalReleaseHandler(),i18n$1.dispose(),unmountApp()}},get global(){return __global},dispose(){globalScope.stop()},__instances,__getInstance,__setInstance,__deleteInstance};return i18n$1}function useI18n(options$1={}){let instance=getCurrentInstance();if(instance==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!instance.isCE&&instance.appContext.app!=null&&!instance.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);let i18n$1=getI18nInstance(instance),gl=getGlobalComposer(i18n$1),componentOptions=getComponentOptions(instance),scope=getScope(options$1,componentOptions);if(scope===`global`)return adjustI18nResources(gl,options$1,componentOptions),gl;if(scope===`parent`){let composer$1=getComposer(i18n$1,instance,options$1.__useComponent);return composer$1??=gl,composer$1}let i18nInternal=i18n$1,composer=i18nInternal.__getInstance(instance);if(composer==null){let composerOptions=assign({},options$1);`__i18n`in componentOptions&&(composerOptions.__i18n=componentOptions.__i18n),gl&&(composerOptions.__root=gl),composer=createComposer(composerOptions),i18nInternal.__composerExtend&&(composer[DisposeSymbol]=i18nInternal.__composerExtend(composer)),setupLifeCycle(i18nInternal,instance,composer),i18nInternal.__setInstance(instance,composer)}return composer}function createGlobal(options$1,legacyMode){let scope=effectScope(),obj=scope.run(()=>createComposer(options$1));if(obj==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[scope,obj]}function getI18nInstance(instance){let i18n$1=inject(instance.isCE?I18nInjectionKey:instance.appContext.app.__VUE_I18N_SYMBOL__);if(!i18n$1)throw createI18nError(instance.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return i18n$1}function getScope(options$1,componentOptions){return isEmptyObject(options$1)?`__i18n`in componentOptions?`local`:`global`:options$1.useScope?options$1.useScope:`local`}function getGlobalComposer(i18n$1){return i18n$1.mode===`composition`?i18n$1.global:i18n$1.global.__composer}function getComposer(i18n$1,target$1,useComponent=!1){let composer=null,root$3=target$1.root,current=getParentComponentInstance(target$1,useComponent);for(;current!=null;){let i18nInternal=i18n$1;if(i18n$1.mode===`composition`&&(composer=i18nInternal.__getInstance(current)),composer!=null||root$3===current)break;current=current.parent}return composer}function getParentComponentInstance(target$1,useComponent=!1){return target$1==null?null:useComponent&&target$1.vnode.ctx||target$1.parent}function setupLifeCycle(i18n$1,target$1,composer){let emitter=null;onMounted(()=>{},target$1),onUnmounted(()=>{let _composer=composer;i18n$1.__deleteInstance(target$1);let dispose$1=_composer[DisposeSymbol];dispose$1&&(dispose$1(),delete _composer[DisposeSymbol])},target$1)}const globalExportProps=[`locale`,`fallbackLocale`,`availableLocales`],globalExportMethods=[`t`,`rt`,`d`,`n`,`tm`,`te`];function injectGlobalFields(app,composer){let i18n$1=Object.create(null);globalExportProps.forEach(prop=>{let desc=Object.getOwnPropertyDescriptor(composer,prop);if(!desc)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);let wrap$2=isRef(desc.value)?{get(){return desc.value.value},set(val){desc.value.value=val}}:{get(){return desc.get&&desc.get()}};Object.defineProperty(i18n$1,prop,wrap$2)}),app.config.globalProperties.$i18n=i18n$1,globalExportMethods.forEach(method=>{let desc=Object.getOwnPropertyDescriptor(composer,method);if(!desc||!desc.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(app.config.globalProperties,`$${method}`,desc)});let dispose$1=()=>{delete app.config.globalProperties.$i18n,globalExportMethods.forEach(method=>{delete app.config.globalProperties[`$${method}`]})};return dispose$1}const DatetimeFormatImpl=defineComponent({name:`i18n-d`,props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(props,context$1){let i18n$1=props.i18n||useI18n({useScope:props.scope,__useComponent:!0});return renderFormatter(props,context$1,DATETIME_FORMAT_OPTIONS_KEYS,(...args)=>i18n$1[DatetimePartsSymbol](...args))}}),DatetimeFormat=DatetimeFormatImpl;if(initFeatureFlags(),registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain),__INTLIFY_PROD_DEVTOOLS__){let target$1=getGlobalThis();target$1.__INTLIFY__=!0,setDevToolsHook(target$1.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const createChatProvider=options$1=>({chat:model=>Object.assign(options$1,{model})}),createEmbedProvider=options$1=>({embed:model=>Object.assign(options$1,{model})}),createImageProvider=options$1=>({image:model=>Object.assign(options$1,{model})}),createModelProvider=options$1=>({model:()=>options$1}),createSpeechProvider=options$1=>({speech:model=>Object.assign(options$1,{model})}),createTranscriptionProvider=options$1=>({transcription:model=>Object.assign(options$1,{model})}),createMetadataProvider=(id,otherMeta)=>({metadata:{id,...otherMeta}}),merge$1=(...arr)=>Object.assign(arr[0],...arr.slice(1)),createAnthropic=(apiKey,baseURL=`https://api.anthropic.com/v1/`)=>merge$1(createMetadataProvider(`anthropic`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createDeepSeek=(apiKey,baseURL=`https://api.deepseek.com/`)=>merge$1(createMetadataProvider(`deepseek`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createFireworks=(apiKey,baseURL=`https://api.fireworks.ai/inference/v1/`)=>merge$1(createMetadataProvider(`fireworks`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createGoogleGenerativeAI=(apiKey,baseURL=`https://generativelanguage.googleapis.com/v1beta/openai/`)=>merge$1(createMetadataProvider(`google-generative-ai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createMistral=(apiKey,baseURL=`https://api.mistral.ai/v1/`)=>merge$1(createMetadataProvider(`mistral`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createMoonshot=(apiKey,baseURL=`https://api.moonshot.cn/v1/`)=>merge$1(createMetadataProvider(`moonshot`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createNovita=(apiKey,baseURL=`https://api.novita.ai/v3/openai/`)=>merge$1(createMetadataProvider(`novita`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createOpenAI=(apiKey,baseURL=`https://api.openai.com/v1/`)=>merge$1(createMetadataProvider(`openai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createImageProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL}),createSpeechProvider({apiKey,baseURL}),createTranscriptionProvider({apiKey,baseURL})),createOpenRouter=(apiKey,baseURL=``)=>merge$1(createMetadataProvider(`openrouter`),{chat:(model,openRouterOptions)=>{let requestOptions={apiKey,baseURL,model},toOpenRouterOptions=({extraHeaders,models:models$1,provider})=>{extraHeaders!=null&&(requestOptions.headers??={},Object.assign(requestOptions.headers,extraHeaders));let transformedProvider;return provider!=null&&(transformedProvider=objCamelToSnake$1(provider)),objCamelToSnake$1({models:models$1,provider:transformedProvider})};return{...openRouterOptions?toOpenRouterOptions(openRouterOptions):{},...requestOptions}}},createModelProvider({apiKey,baseURL})),createPerplexity=(apiKey,baseURL=`https://api.perplexity.ai/`)=>merge$1(createMetadataProvider(`perplexity`),createChatProvider({apiKey,baseURL})),createTogetherAI=(apiKey,baseURL=`https://api.together.xyz/v1/`)=>merge$1(createMetadataProvider(`together-ai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL,fetch:async(...args)=>globalThis.fetch(...args).then(async res=>res.json()).then(data$10=>Response.json({data:data$10,object:`list`}))})),createWorkersAI=(apiKey,accountId)=>{let baseURL=`https://api.cloudflare.com/client/v4/accounts/${accountId}/ai/v1/`;return merge$1(createMetadataProvider(`workers-ai`),createChatProvider({apiKey,baseURL}),createEmbedProvider({apiKey,baseURL}))},createXAI=(apiKey,baseURL=`https://api.x.ai/v1/`)=>merge$1(createMetadataProvider(`xai`),createChatProvider({apiKey,baseURL}),createModelProvider({apiKey,baseURL})),createOllama=(baseURL=`http://localhost:11434/v1/`)=>merge$1(createMetadataProvider(`ollama`),createChatProvider({baseURL}),createEmbedProvider({baseURL}),createModelProvider({baseURL})),decodeBase64=b64=>{let binString=atob(b64),size$1=binString.length,bytes=new Uint8Array(size$1);for(let i$1=0;i$1merge$1(createMetadataProvider(`player2`),createChatProvider({baseURL,headers:{"player2-game-key":gameKey}}),createSpeechProvider({baseURL,fetch:async(input,reqInit)=>{let newUrl=`${input.toString().slice(0,-12)}tts/speak`;try{let{input:input2,response_format,speed,voice,...rest}=JSON.parse(reqInit?.body),modified={audio_format:response_format,play_in_app:!1,speed:speed??1,text:input2,voice_ids:voice==null?[]:[voice],...rest};reqInit&&(reqInit.body=JSON.stringify(modified))}catch(err){console.warn(`Could not parse body as JSON:`,err)}return globalThis.fetch(newUrl,reqInit).then(async res=>res.json()).then(json=>{let base64=json.data??``,bytes=decodeBase64(base64);return new Response(bytes,{headers:{"Content-Type":`audio/mpeg`},status:200})})},headers:{"player2-game-key":gameKey}}));async function check(){try{if(isInNodejsRuntime())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 adapter=await navigator.gpu.requestAdapter();return adapter?{supported:!0,isNode:!1,reason:``,adapter,fp16Supported:adapter.features.has(`shader-f16`)}:{supported:!1,isNode:!1,reason:`WebGPU is not supported (no adapter found)`,fp16Supported:!1}}catch(error){let errorMessage=error instanceof Error?error.toString():String(error);return{supported:!1,isNode:!1,reason:errorMessage,fp16Supported:!1}}}function isInNodejsRuntime(){return typeof process<`u`&&`versions`in process&&process.versions!=null&&typeof process.versions==`object`&&`node`in process.versions&&process.versions.node!=null}async function isWebGPUSupported(){return check().then(result=>result.supported)}const merge=(...arr)=>Object.assign(arr[0],...arr.slice(1));var XSAIError=class extends Error{constructor(message$1,response){super(message$1),babelHelpers.defineProperty(this,`response`,void 0),this.name=`XSAIError`,this.response=response}};const strCamelToSnake=str=>str.replace(/[A-Z]/g,s$1=>`_${s$1.toLowerCase()}`),objCamelToSnake=obj=>Object.fromEntries(Object.entries(obj).map(([k$4,v$1])=>[strCamelToSnake(k$4),v$1])),clean$1=obj=>Object.fromEntries(Object.entries(obj).filter(([,v$1])=>v$1!==void 0)),requestHeaders$1=(headers,apiKey)=>clean$1({Authorization:apiKey===void 0?void 0:`Bearer ${apiKey}`,...headers}),requestURL$1=(path,baseURL)=>{let base=baseURL.toString();return new URL(path,base.endsWith(`/`)?base:`${base}/`)},responseCatch$1=async res=>{if(!res.ok)throw new XSAIError(`Remote sent ${res.status} response: ${await res.text()}`,res);if(!res.body)throw new XSAIError(`Response body is empty from remote server`,res);if(!(res.body instanceof ReadableStream))throw new XSAIError(`Expected Response body to be a ReadableStream, but got ${String(res.body)}; Content Type is ${res.headers.get(`Content-Type`)}`,res);return res},responseJSON=async res=>responseCatch$1(res).then(async res2=>{let text$5=await res2.text();try{return JSON.parse(text$5)}catch{throw Error(`Failed to parse response, response body: ${text$5}`)}});var createUnElevenLabs=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=({applyTextNormalization,languageCode,nextRequestIds,nextText,previousRequestIds,previousText,pronunciationDictionaryLocators,seed,voiceSettings})=>({extraBody:objCamelToSnake({applyTextNormalization,languageCode,nextRequestIds,nextText,previousRequestIds,previousText,pronunciationDictionaryLocators:pronunciationDictionaryLocators?pronunciationDictionaryLocators.map(pdl=>objCamelToSnake(pdl)):void 0,seed,voiceSettings:objCamelToSnake(voiceSettings??{similarityBoost:.75,stability:.5})})}),speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`elevenlabs/${model}`})},voiceProvider={voice:options$1=>(baseURL.endsWith(`v1/`)?baseURL=baseURL.slice(0,-3):baseURL.endsWith(`v1`)&&(baseURL=baseURL.slice(0,-2)),{query:`provider=elevenlabs`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL})};return merge(speechProvider,voiceProvider)},createUnMicrosoft=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=options$1=>{let{deploymentId,region,sampleRate}=options$1,extraBody={deploymentId,region,sampleRate};return`disableSsml`in options$1?extraBody.disableSsml=options$1.disableSsml:`lang`in options$1&&(extraBody.lang=options$1.lang,extraBody.gender=options$1.gender,extraBody.voice=options$1.voice),{extraBody:objCamelToSnake(extraBody)}},speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`microsoft/${model}`})},voiceProvider={voice:options$1=>(baseURL.endsWith(`v1/`)?baseURL=baseURL.slice(0,-3):baseURL.endsWith(`v1`)&&(baseURL=baseURL.slice(0,-2)),{query:`region=${options$1?.region}&provider=microsoft`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL})};return merge(speechProvider,voiceProvider)},createUnVolcengine=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=options$1=>{var _options$1$app,_options$1$app2;let extraBody={app:{appid:(_options$1$app=options$1.app)?.appId,token:apiKey}};return options$1.app!==void 0&&(extraBody.app={...options$1.app,appid:(_options$1$app2=options$1.app)?.appId,token:apiKey}),options$1.user!==void 0&&(extraBody.user=options$1.user),options$1.audio!==void 0&&(extraBody.audio=options$1.audio),{extraBody:objCamelToSnake(extraBody)}},speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`volcengine/${model}`})},voiceProvider={voice:options$1=>(baseURL.endsWith(`v1/`)?baseURL=baseURL.slice(0,-3):baseURL.endsWith(`v1`)&&(baseURL=baseURL.slice(0,-2)),{query:`provider=volcengine`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL})};return merge(speechProvider,voiceProvider)},createUnAlibabaCloud=(apiKey,baseURL=`http://localhost:5933/v1/`)=>{let toUnSpeechOptions=options$1=>{let{sampleRate,volume,rate,pitch}=options$1,extraBody={sampleRate,volume,rate,pitch};return Object.keys(extraBody).forEach(key$1=>extraBody[key$1]===void 0&&delete extraBody[key$1]),{extraBody:objCamelToSnake(extraBody)}},speechProvider={speech:(model,options$1)=>({...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL,model:`alibaba/${model}`})},voiceProvider={voice:options$1=>{let adjustedBaseURL=baseURL;return adjustedBaseURL.endsWith(`v1/`)?adjustedBaseURL=adjustedBaseURL.slice(0,-3):adjustedBaseURL.endsWith(`v1`)&&(adjustedBaseURL=adjustedBaseURL.slice(0,-2)),{query:`provider=alibaba`,...options$1?toUnSpeechOptions(options$1):{},apiKey,baseURL:adjustedBaseURL}}};return merge(speechProvider,voiceProvider)},listVoices=async options$1=>(options$1.fetch??globalThis.fetch)(requestURL$1(options$1.query?`api/voices?${options$1.query}`:`api/voices`,options$1.baseURL),{headers:requestHeaders$1({...options$1.headers},options$1.apiKey),method:`GET`,signal:options$1.abortSignal}).then(responseJSON).then(({voices})=>voices);const models=[{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`}],useProvidersStore=defineStore(`providers`,()=>{let providerCredentials=useLocalStorage(`settings/credentials/providers`,{}),{t}=useI18n();async function fetchOpenRouterModels(config){try{let response=await fetch(`https://openrouter.ai/api/v1/models`,{headers:{Authorization:`Bearer ${config.apiKey.trim()}`,"Content-Type":`application/json`}});if(!response.ok)throw Error(`Failed to fetch OpenRouter models: ${response.statusText}`);let data$10=await response.json();return data$10.data.map(model=>({id:model.id,name:model.name||model.id,provider:`openrouter-ai`,description:model.description||``,contextLength:model.context_length,deprecated:!1}))}catch(error){throw console.error(`Error fetching OpenRouter models:`,error),error}}let providerMetadata={"openrouter-ai":{id:`openrouter-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.openrouter.title`,name:`OpenRouter`,descriptionKey:`settings.pages.providers.provider.openrouter.description`,description:`openrouter.ai`,icon:`i-lobe-icons:openrouter`,defaultOptions:()=>({baseUrl:`https://openrouter.ai/api/v1/`}),createProvider:config=>createOpenRouter(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>fetchOpenRouterModels(config)},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"app-local-audio-speech":{id:`app-local-audio-speech`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:async()=>`window`in globalThis&&globalThis.window!=null&&`__TAURI__`in globalThis.window&&globalThis.window.__TAURI__!=null,nameKey:`settings.pages.providers.provider.app-local-audio-speech.title`,name:`App (Local)`,descriptionKey:`settings.pages.providers.provider.app-local-audio-speech.description`,description:`https://github.com/huggingface/candle`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`app-local-candle`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!1}},"app-local-audio-transcription":{id:`app-local-audio-transcription`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:async()=>`window`in globalThis&&globalThis.window!=null&&`__TAURI__`in globalThis.window&&globalThis.window.__TAURI__!=null,nameKey:`settings.pages.providers.provider.app-local-audio-transcription.title`,name:`App (Local)`,descriptionKey:`settings.pages.providers.provider.app-local-audio-transcription.description`,description:`https://github.com/huggingface/candle`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`app-local-candle`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!1}},"browser-local-audio-speech":{id:`browser-local-audio-speech`,category:`speech`,tasks:[`text-to-speech`,`tts`],isAvailableBy:async()=>{let webGPUAvailable=await isWebGPUSupported();if(webGPUAvailable)return!0;if(`navigator`in globalThis&&globalThis.navigator!=null&&`deviceMemory`in globalThis.navigator&&typeof globalThis.navigator.deviceMemory==`number`){let memory=globalThis.navigator.deviceMemory;if(memory>=8)return!0}return!1},nameKey:`settings.pages.providers.provider.browser-local-audio-speech.title`,name:`Browser (Local)`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-speech.description`,description:`https://github.com/moeru-ai/xsai-transformers`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`browser-local-transformers`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!1}},"browser-local-audio-transcription":{id:`browser-local-audio-transcription`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],isAvailableBy:async()=>{let webGPUAvailable=await isWebGPUSupported();if(webGPUAvailable)return!0;if(`navigator`in globalThis&&globalThis.navigator!=null&&`deviceMemory`in globalThis.navigator&&typeof globalThis.navigator.deviceMemory==`number`){let memory=globalThis.navigator.deviceMemory;if(memory>=8)return!0}return!1},nameKey:`settings.pages.providers.provider.browser-local-audio-transcription.title`,name:`Browser (Local)`,descriptionKey:`settings.pages.providers.provider.browser-local-audio-transcription.description`,description:`https://github.com/moeru-ai/xsai-transformers`,icon:`i-lobe-icons:huggingface`,defaultOptions:()=>({}),createProvider:config=>createOpenAI(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`browser-local-transformers`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!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:config=>createOllama(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOllama(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>config.baseUrl?fetch(`${config.baseUrl.trim()}models`).then(response=>response.ok).catch(()=>!1):!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:config=>createOllama(config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOllama(config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`ollama`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.baseUrl}},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:config=>createOllama(config.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:config=>!!config.baseUrl}},openai:{id:`openai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.openai.title`,name:`OpenAI`,descriptionKey:`settings.pages.providers.provider.openai.description`,description:`openai.com`,icon:`i-lobe-icons:openai`,defaultOptions:()=>({baseUrl:`https://api.openai.com/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`openai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"openai-audio-speech":{id:`openai-audio-speech`,category:`speech`,tasks:[`text-to-speech`],nameKey:`settings.pages.providers.provider.openai.title`,name:`OpenAI`,descriptionKey:`settings.pages.providers.provider.openai.description`,description:`openai.com`,icon:`i-lobe-icons:openai`,defaultOptions:()=>({baseUrl:`https://api.openai.com/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`openai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"openai-audio-transcription":{id:`openai-audio-transcription`,category:`transcription`,tasks:[`speech-to-text`,`automatic-speech-recognition`,`asr`,`stt`],nameKey:`settings.pages.providers.provider.openai.title`,name:`OpenAI`,descriptionKey:`settings.pages.providers.provider.openai.description`,description:`openai.com`,icon:`i-lobe-icons:openai`,defaultOptions:()=>({baseUrl:`https://api.openai.com/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`openai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},anthropic:{id:`anthropic`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.anthropic.title`,name:`Anthropic`,descriptionKey:`settings.pages.providers.provider.anthropic.description`,description:`anthropic.com`,icon:`i-lobe-icons:anthropic`,defaultOptions:()=>({baseUrl:`https://api.anthropic.com/v1/`}),createProvider:config=>createAnthropic(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`claude-3-7-sonnet-20250219`,name:`Claude 3.7 Sonnet`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-5-sonnet-20241022`,name:`Claude 3.5 Sonnet (New)`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-5-haiku-20241022`,name:`Claude 3.5 Haiku`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-5-sonnet-20240620`,name:`Claude 3.5 Sonnet (Old)`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-haiku-20240307`,name:`Claude 3 Haiku`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1},{id:`claude-3-opus-20240229`,name:`Claude 3 Opus`,provider:`anthropic`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"google-generative-ai":{id:`google-generative-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.google-generative-ai.title`,name:`Google Gemini`,descriptionKey:`settings.pages.providers.provider.google-generative-ai.description`,description:`ai.google.dev`,icon:`i-lobe-icons:gemini`,defaultOptions:()=>({baseUrl:`https://generativelanguage.googleapis.com/v1beta/openai/`}),createProvider:config=>createGoogleGenerativeAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createGoogleGenerativeAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`google-generative-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},xai:{id:`xai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.xai.title`,name:`xAI`,descriptionKey:`settings.pages.providers.provider.xai.description`,description:`x.ai`,icon:`i-lobe-icons:xai`,createProvider:config=>createXAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createXAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`xai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},deepseek:{id:`deepseek`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.deepseek.title`,name:`DeepSeek`,descriptionKey:`settings.pages.providers.provider.deepseek.description`,description:`deepseek.com`,iconColor:`i-lobe-icons:deepseek`,createProvider:config=>createDeepSeek(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createDeepSeek(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`deepseek`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},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:config=>createUnElevenLabs(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>models.map(model=>({id:model.model_id,name:model.name,provider:`elevenlabs`,description:model.description,contextLength:0,deprecated:!1})),listVoices:async config=>{let provider=createUnElevenLabs(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice()}),ariaIndex=voices.findIndex(voice=>voice.name.includes(`Aria`)),billIndex=voices.findIndex(voice=>voice.name.includes(`Bill`)),startIndex=ariaIndex===-1?0:ariaIndex,endIndex=billIndex===-1?voices.length-1:billIndex,lowerIndex=Math.min(startIndex,endIndex),higherIndex=Math.max(startIndex,endIndex),rearrangedVoices=[...voices.slice(0,lowerIndex),...voices.slice(higherIndex+1),...voices.slice(lowerIndex,higherIndex+1)];return rearrangedVoices.map(voice=>({id:voice.id,name:voice.name,provider:`elevenlabs`,previewURL:voice.preview_audio_url,languages:voice.languages}))}},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.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:config=>createUnMicrosoft(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`v1`,name:`v1`,provider:`microsoft-speech`,description:``,contextLength:0,deprecated:!1}],listVoices:async config=>{let provider=createUnMicrosoft(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice({region:config.region})});return voices.map(voice=>{var _voice$labels;return{id:voice.id,name:voice.name,provider:`microsoft-speech`,previewURL:voice.preview_audio_url,languages:voice.languages,gender:(_voice$labels=voice.labels)?.gender}})}},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.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:config=>createUnAlibabaCloud(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listVoices:async config=>{let provider=createUnAlibabaCloud(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice()});return voices.map(voice=>{var _voice$labels2;return{id:voice.id,name:voice.name,provider:`alibaba-cloud-model-studio`,previewURL:voice.preview_audio_url,languages:voice.languages,gender:(_voice$labels2=voice.labels)?.gender}})},listModels:async()=>[{id:`cozyvoice-v1`,name:`CozyVoice`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1},{id:`cozyvoice-v2`,name:`CozyVoice (New)`,provider:`alibaba-cloud-model-studio`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.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:config=>createUnVolcengine(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listVoices:async config=>{let provider=createUnVolcengine(config.apiKey.trim(),config.baseUrl.trim()),voices=await listVoices({...provider.voice()});return voices.map(voice=>{var _voice$labels3;return{id:voice.id,name:voice.name,provider:`volcano-engine`,previewURL:voice.preview_audio_url,languages:voice.languages,gender:(_voice$labels3=voice.labels)?.gender}})},listModels:async()=>[{id:`v1`,name:`v1`,provider:`volcano-engine`,description:``,contextLength:0,deprecated:!1}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl&&!!config.app&&!!config.app.appId}},"together-ai":{id:`together-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.together.title`,name:`Together.ai`,descriptionKey:`settings.pages.providers.provider.together.description`,description:`together.ai`,iconColor:`i-lobe-icons:together`,createProvider:config=>createTogetherAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createTogetherAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`together-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"novita-ai":{id:`novita-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.novita.title`,name:`Novita`,descriptionKey:`settings.pages.providers.provider.novita.description`,description:`novita.ai`,iconColor:`i-lobe-icons:novita`,createProvider:config=>createNovita(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createNovita(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`novita-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"fireworks-ai":{id:`fireworks-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.fireworks.title`,name:`Fireworks.ai`,descriptionKey:`settings.pages.providers.provider.fireworks.description`,description:`fireworks.ai`,icon:`i-lobe-icons:fireworks`,createProvider:config=>createFireworks(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createFireworks(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`fireworks-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"featherless-ai":{id:`featherless-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.featherless.title`,name:`Featherless.ai`,descriptionKey:`settings.pages.providers.provider.featherless.description`,description:`featherless.ai`,icon:`i-lobe-icons:featherless-ai`,defaultOptions:()=>({baseUrl:`https://api.featherless.ai/v1/`}),createProvider:config=>createOpenAI(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createOpenAI(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`featherless-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"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:config=>createWorkersAI(config.apiKey.trim(),config.accountId),capabilities:{listModels:async()=>[]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.accountId}},"perplexity-ai":{id:`perplexity-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.perplexity.title`,name:`Perplexity`,descriptionKey:`settings.pages.providers.provider.perplexity.description`,description:`perplexity.ai`,icon:`i-lobe-icons:perplexity`,defaultOptions:()=>({baseUrl:`https://api.perplexity.ai`}),createProvider:config=>createPerplexity(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`sonar-small-online`,name:`Sonar Small (Online)`,provider:`perplexity-ai`,description:`Efficient model with online search capabilities`,contextLength:12e3},{id:`sonar-medium-online`,name:`Sonar Medium (Online)`,provider:`perplexity-ai`,description:`Balanced model with online search capabilities`,contextLength:12e3},{id:`sonar-large-online`,name:`Sonar Large (Online)`,provider:`perplexity-ai`,description:`Powerful model with online search capabilities`,contextLength:12e3},{id:`codey-small`,name:`Codey Small`,provider:`perplexity-ai`,description:`Specialized for code generation and understanding`,contextLength:12e3},{id:`codey-large`,name:`Codey Large`,provider:`perplexity-ai`,description:`Advanced code generation and understanding`,contextLength:12e3}]},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"mistral-ai":{id:`mistral-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.mistral.title`,name:`Mistral`,descriptionKey:`settings.pages.providers.provider.mistral.description`,description:`mistral.ai`,iconColor:`i-lobe-icons:mistral`,createProvider:config=>createMistral(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createMistral(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`mistral-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},"moonshot-ai":{id:`moonshot-ai`,category:`chat`,tasks:[`text-generation`],nameKey:`settings.pages.providers.provider.moonshot.title`,name:`Moonshot AI`,descriptionKey:`settings.pages.providers.provider.moonshot.description`,description:`moonshot.ai`,icon:`i-lobe-icons:moonshot`,createProvider:config=>createMoonshot(config.apiKey.trim(),config.baseUrl.trim()),capabilities:{listModels:async config=>(await listModels({...createMoonshot(config.apiKey.trim(),config.baseUrl.trim()).model()})).map(model=>({id:model.id,name:model.id,provider:`moonshot-ai`,description:``,contextLength:0,deprecated:!1}))},validators:{validateProviderConfig:config=>!!config.apiKey&&!!config.baseUrl}},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:config=>createPlayer2(config.baseUrl.trim()),capabilities:{listModels:async()=>[{id:`player2-model`,name:`Player2 Model`,provider:`player2`}]},validators:{validateProviderConfig:config=>!!config.baseUrl}},"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:config=>createPlayer2(config.baseUrl.trim(),`airi`),capabilities:{listVoices:async()=>await fetch(`http://localhost:4315/v1/tts/voices`).then(res=>res.json()).then(({voices})=>voices.map(({id,language,name:name$2,gender})=>({id,name:name$2,provider:`player2-speech`,gender,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`}}[language]]})))},validators:{validateProviderConfig:config=>!!config.baseUrl}}};async function validateProvider(providerId){let config=providerCredentials.value[providerId];if(!config)return!1;let metadata=providerMetadata[providerId];return metadata?await metadata.validators.validateProviderConfig(config):!1}let configuredProviders=ref({});function initializeProvider(providerId){if(!providerCredentials.value[providerId]){var _metadata$defaultOpti;let metadata=providerMetadata[providerId],defaultOptions=(_metadata$defaultOpti=metadata.defaultOptions)?.call(metadata)||{};providerCredentials.value[providerId]={baseUrl:defaultOptions.baseUrl||``}}}Object.keys(providerMetadata).forEach(initializeProvider);async function updateConfigurationStatus(){await Promise.all(Object.keys(providerMetadata).map(async providerId=>{configuredProviders.value[providerId]=await validateProvider(providerId)}))}updateConfigurationStatus(),watch(providerCredentials,updateConfigurationStatus,{deep:!0});let availableProviders=computed(()=>Object.keys(providerMetadata).filter(providerId=>configuredProviders.value[providerId])),availableModels=ref({}),isLoadingModels=ref({}),modelLoadError=ref({});async function fetchModelsForProvider(providerId){let config=providerCredentials.value[providerId];if(!config)return[];let metadata=providerMetadata[providerId];if(!metadata)return[];isLoadingModels.value[providerId]=!0,modelLoadError.value[providerId]=null;try{let models$1=metadata.capabilities.listModels?await metadata.capabilities.listModels(config):[];return availableModels.value[providerId]=models$1.map(model=>({id:model.id,name:model.name,description:model.description,contextLength:model.contextLength,deprecated:model.deprecated,provider:providerId})),availableModels.value[providerId]}catch(error){return console.error(`Error fetching models for ${providerId}:`,error),modelLoadError.value[providerId]=error instanceof Error?error.message:`Unknown error`,[]}finally{isLoadingModels.value[providerId]=!1}}function getModelsForProvider(providerId){return availableModels.value[providerId]||[]}let allAvailableModels=computed(()=>{let models$1=[];for(let providerId of availableProviders.value)models$1.push(...availableModels.value[providerId]||[]);return models$1});async function loadModelsForConfiguredProviders(){for(let providerId of availableProviders.value)providerMetadata[providerId].capabilities.listModels&&await fetchModelsForProvider(providerId)}function getProviderMetadata(providerId){let metadata=providerMetadata[providerId];if(!metadata)throw Error(`Provider metadata for ${providerId} not found`);return{...metadata,localizedName:t(metadata.nameKey,metadata.name),localizedDescription:t(metadata.descriptionKey,metadata.description)}}let allProvidersMetadata=computed(()=>Object.values(providerMetadata).map(metadata=>({...metadata,localizedName:t(metadata.nameKey,metadata.name),localizedDescription:t(metadata.descriptionKey,metadata.description),configured:configuredProviders.value[metadata.id]||!1})));function getProviderInstance(providerId){let config=providerCredentials.value[providerId];if(!config)throw Error(`Provider credentials for ${providerId} not found`);let metadata=providerMetadata[providerId];if(!metadata)throw Error(`Provider metadata for ${providerId} not found`);try{return metadata.createProvider(config)}catch(error){throw console.error(`Error creating provider instance for ${providerId}:`,error),error}}let availableProvidersMetadata=computedAsync(async()=>{let providers=[];for(let provider of allProvidersMetadata.value){let p$5=getProviderMetadata(provider.id),isAvailableBy=p$5.isAvailableBy||(()=>!0),isAvailable=await isAvailableBy();isAvailable&&providers.push(provider)}return providers},[]),allChatProvidersMetadata=computed(()=>availableProvidersMetadata.value.filter(metadata=>metadata.category===`chat`)),allAudioSpeechProvidersMetadata=computed(()=>availableProvidersMetadata.value.filter(metadata=>metadata.category===`speech`)),allAudioTranscriptionProvidersMetadata=computed(()=>availableProvidersMetadata.value.filter(metadata=>metadata.category===`transcription`)),configuredChatProvidersMetadata=computed(()=>allChatProvidersMetadata.value.filter(metadata=>configuredProviders.value[metadata.id])),configuredSpeechProvidersMetadata=computed(()=>allAudioSpeechProvidersMetadata.value.filter(metadata=>configuredProviders.value[metadata.id])),configuredTranscriptionProvidersMetadata=computed(()=>allAudioTranscriptionProvidersMetadata.value.filter(metadata=>configuredProviders.value[metadata.id]));function getProviderConfig(providerId){return providerCredentials.value[providerId]}return{providers:providerCredentials,getProviderConfig,availableProviders,configuredProviders,providerMetadata,getProviderMetadata,allProvidersMetadata,initializeProvider,validateProvider,availableModels,isLoadingModels,modelLoadError,fetchModelsForProvider,getModelsForProvider,allAvailableModels,loadModelsForConfiguredProviders,getProviderInstance,availableProvidersMetadata,allChatProvidersMetadata,allAudioSpeechProvidersMetadata,allAudioTranscriptionProvidersMetadata,configuredChatProvidersMetadata,configuredSpeechProvidersMetadata,configuredTranscriptionProvidersMetadata}}),useConsciousnessStore=defineStore(`consciousness`,()=>{let providersStore=useProvidersStore(),activeProvider=useLocalStorage(`settings/consciousness/active-provider`,``),activeModel=useLocalStorage(`settings/consciousness/active-model`,``),activeCustomModelName=useLocalStorage(`settings/consciousness/active-custom-model`,``),expandedDescriptions=ref({}),modelSearchQuery=ref(``),supportsModelListing=computed(()=>{var _providersStore$getPr;return(_providersStore$getPr=providersStore.getProviderMetadata(activeProvider.value))?.capabilities.listModels!==void 0}),providerModels=computed(()=>providersStore.getModelsForProvider(activeProvider.value)),isLoadingActiveProviderModels=computed(()=>providersStore.isLoadingModels[activeProvider.value]||!1),activeProviderModelError=computed(()=>providersStore.modelLoadError[activeProvider.value]||null),filteredModels=computed(()=>{if(!modelSearchQuery.value.trim())return providerModels.value;let query=modelSearchQuery.value.toLowerCase().trim();return providerModels.value.filter(model=>model.name.toLowerCase().includes(query)||model.id.toLowerCase().includes(query)||model.description&&model.description.toLowerCase().includes(query))});function resetModelSelection(){activeModel.value=``,activeCustomModelName.value=``,expandedDescriptions.value={},modelSearchQuery.value=``}async function loadModelsForProvider(provider){var _providersStore$getPr2;provider&&(_providersStore$getPr2=providersStore.getProviderMetadata(activeProvider.value))?.capabilities.listModels!==void 0&&providersStore.getModelsForProvider(provider).length===0&&await providersStore.fetchModelsForProvider(provider)}let player2Interval;return watch(activeProvider,async newProvider=>{await loadModelsForProvider(newProvider),resetModelSelection(),newProvider===`player2`?player2Interval=setInterval(()=>{console.log(`Sending Player2 Health check if it is being used`),fetch(`localhost:4315/v1/health`,{method:`GET`,headers:{"player2-game-key":`airi`}}).catch(()=>{})},6e4):(player2Interval&&clearInterval(player2Interval),player2Interval=void 0)}),{activeProvider,activeModel,customModelName:activeCustomModelName,expandedDescriptions,modelSearchQuery,supportsModelListing,providerModels,isLoadingActiveProviderModels,activeProviderModelError,filteredModels,resetModelSelection,loadModelsForProvider}}),generateSpeech=async options$1=>(options$1.fetch??globalThis.fetch)(requestURL(`audio/speech`,options$1.baseURL),{body:requestBody(options$1),headers:requestHeaders({"Content-Type":`application/json`,...options$1.headers},options$1.apiKey),method:`POST`,signal:options$1.abortSignal}).then(responseCatch).then(async res=>res.arrayBuffer()),noncharacter=/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/g;function escape(value$1,subset$4,unsafe$2){let result=clean(value$1);return unsafe$2?result.replace(unsafe$2,encode):encode(result);function encode(value$2){return stringifyEntitiesLight(value$2,{subset:subset$4})}}function clean(value$1){return String(value$1||``).replace(noncharacter,``)}const unsafe$1=/]]>/g,subset$3=[`>`];function cdata(node$1){return``}function comment(node$1){return``}const subset$2=[` `,` +`,` `,`"`,`&`,`'`,`/`,`<`,`=`,`>`];function name$1(value$1){return escape(value$1,subset$2)}function value(value$1,state){let result=String(value$1),quote=state.options.quote||`"`;if(state.options.quoteSmart){let other=quote===`"`?`'`:`"`;ccount(result,quote)>ccount(result,other)&&(quote=other)}return quote+escape(result,[`<`,`&`,quote])+quote}function doctype(node$1,state){let nodeName=name$1(node$1.name),pub=node$1.public,sys=node$1.system,result=``}const own$1={}.hasOwnProperty;function element(node$1,state){let nodeName=name$1(node$1.name),content$2=all(node$1,state),attributes=node$1.attributes||{},close=content$2?!1:state.options.closeEmptyElements,attrs=[],key$1;for(key$1 in attributes)if(own$1.call(attributes,key$1)){let result=attributes[key$1];result!=null&&attrs.push(name$1(key$1)+`=`+value(result,state))}return`<`+nodeName+(attrs.length===0?``:` `+attrs.join(` `))+(close?(state.options.tightClose?``:` `)+`/`:``)+`>`+content$2+(close?``:``)}const unsafe=/\?>/g,subset$1=[`>`];function instruction(node$1){let nodeName=name$1(node$1.name)||`x`,result=escape(node$1.value,subset$1,unsafe);return``}const subset=[`&`,`<`];function text(node$1){return escape(node$1.value,subset)}function raw(node$1,state){return state.options.allowDangerousXml?node$1.value:text(node$1)}const own={}.hasOwnProperty,handlers={cdata,comment,doctype,element,instruction,raw,root:all,text};function one(node$1,state){let type=node$1&&node$1.type;if(!type)throw Error("Expected node, not `"+node$1+"`");if(!own.call(handlers,type))throw Error("Cannot compile unknown node `"+type+"`");let handle$1=handlers[type],result=handle$1(node$1,state);return result}function all(parent,state){let children=parent&&parent.children||[],index$1=-1,results=[];for(;++index$1{let providersStore=useProvidersStore(),activeSpeechProvider=useLocalStorage(`settings/speech/active-provider`,``),activeSpeechModel=useLocalStorage(`settings/speech/active-model`,`eleven_multilingual_v2`),activeSpeechVoiceId=useLocalStorage(`settings/speech/voice`,``),activeSpeechVoice=ref(),pitch=useLocalStorage(`settings/speech/pitch`,0),rate=useLocalStorage(`settings/speech/rate`,1),ssmlEnabled=useLocalStorage(`settings/speech/ssml-enabled`,!1),isLoadingSpeechProviderVoices=ref(!1),speechProviderError=ref(null),availableVoices=ref({}),selectedLanguage=useLocalStorage(`settings/speech/language`,`en-US`),modelSearchQuery=ref(``),availableSpeechProvidersMetadata=computed(()=>providersStore.availableProviders.filter(id=>isSpeechProvider(id)).map(id=>providersStore.getProviderMetadata(id))),supportsModelListing=computed(()=>{var _providersStore$getPr3;return(_providersStore$getPr3=providersStore.getProviderMetadata(activeSpeechProvider.value))?.capabilities.listModels!==void 0}),providerModels=computed(()=>providersStore.getModelsForProvider(activeSpeechProvider.value)),isLoadingActiveProviderModels=computed(()=>providersStore.isLoadingModels[activeSpeechProvider.value]||!1),activeProviderModelError=computed(()=>providersStore.modelLoadError[activeSpeechProvider.value]||null),filteredModels=computed(()=>{if(!modelSearchQuery.value.trim())return providerModels.value;let query=modelSearchQuery.value.toLowerCase().trim();return providerModels.value.filter(model=>model.name.toLowerCase().includes(query)||model.id.toLowerCase().includes(query)||model.description&&model.description.toLowerCase().includes(query))}),supportsSSML=computed(()=>[`elevenlabs`,`microsoft-speech`,`azure-speech`,`google`,`alibaba-cloud-model-studio`,`volcengine`].includes(activeSpeechProvider.value));function isSpeechProvider(providerId){return[`elevenlabs`,`microsoft-speech`,`azure-speech`,`google`,`amazon`,`alibaba-cloud-model-studio`,`volcengine`,`player2-speech`].includes(providerId)}async function loadVoicesForProvider(provider){if(!provider||!isSpeechProvider(provider))return[];isLoadingSpeechProviderVoices.value=!0,speechProviderError.value=null;try{var _providersStore$getPr4,_providersStore$getPr5;let voices=await(_providersStore$getPr4=(_providersStore$getPr5=providersStore.getProviderMetadata(provider).capabilities).listVoices)?.call(_providersStore$getPr5,providersStore.getProviderConfig(provider))||[];return availableVoices.value[provider]=voices,voices}catch(error){return console.error(`Error fetching voices for ${provider}:`,error),speechProviderError.value=error instanceof Error?error.message:`Unknown error`,[]}finally{isLoadingSpeechProviderVoices.value=!1}}function getVoicesForProvider(provider){return availableVoices.value[provider]||[]}watch(activeSpeechProvider,async newProvider=>{newProvider&&await loadVoicesForProvider(newProvider)}),onMounted(()=>{loadVoicesForProvider(activeSpeechProvider.value).then(()=>{var _availableVoices$valu;activeSpeechVoiceId.value&&(activeSpeechVoice.value=(_availableVoices$valu=availableVoices.value[activeSpeechProvider.value])?.find(voice=>voice.id===activeSpeechVoiceId.value))})}),watch(activeSpeechVoiceId,voiceId=>{var _availableVoices$valu2;voiceId&&(activeSpeechVoice.value=(_availableVoices$valu2=availableVoices.value[activeSpeechProvider.value])?.find(voice=>voice.id===voiceId))},{immediate:!0}),watch(availableVoices,voices=>{var _voices$activeSpeechP;activeSpeechVoiceId.value&&(activeSpeechVoice.value=(_voices$activeSpeechP=voices[activeSpeechProvider.value])?.find(voice=>voice.id===activeSpeechVoiceId.value))},{immediate:!0});async function speech(provider,model,input,voice,providerConfig={}){let response=await generateSpeech({...provider.speech(model,{...providerConfig}),input,voice});return response}function generateSSML(text$5,voice,providerConfig){var _voice$languages$;let pitch$1=providerConfig?.pitch,speed=providerConfig?.speed,volume=providerConfig?.volume,prosody={pitch:pitch$1==null?void 0:pitch$1>0?`+${pitch$1}%`:`-${pitch$1}%`,rate:speed==null?void 0:speed===1?`1`:`${speed}`,volume:volume==null?void 0:volume>0?`+${volume}%`:`${volume}%`},ssmlXast=x$2(`speak`,{version:`1.0`,xmlns:`http://www.w3.org/2001/10/synthesis`,"xml:lang":(_voice$languages$=voice.languages[0])?.code||`en-US`},[x$2(`voice`,{name:voice.id,gender:voice.gender||`neutral`},[Object.entries(prosody).filter(([_$2,value$1])=>value$1!=null).length>0?x$2(`prosody`,{pitch:pitch$1==null?void 0:pitch$1>0?`+${pitch$1}%`:`-${pitch$1}%`,rate:speed==null?void 0:speed===1?`1`:`${speed}`,volume:volume==null?void 0:volume>0?`+${volume}%`:`${volume}%`},[text$5]):text$5])]);return toXml(ssmlXast)}return{activeSpeechProvider,activeSpeechModel,activeSpeechVoice,activeSpeechVoiceId,pitch,rate,ssmlEnabled,selectedLanguage,isLoadingSpeechProviderVoices,speechProviderError,availableVoices,modelSearchQuery,availableSpeechProvidersMetadata,supportsSSML,supportsModelListing,providerModels,isLoadingActiveProviderModels,activeProviderModelError,filteredModels,speech,loadVoicesForProvider,getVoicesForProvider,generateSSML,isSpeechProvider}}),useAiriCardStore=defineStore(`airi-card`,()=>{let cards=useLocalStorage(`airi-cards`,new Map),activeCardId=useLocalStorage(`airi-card-active-id`,`default`),activeCard=computed(()=>cards.value.get(activeCardId.value)),consciousnessStore=useConsciousnessStore(),speechStore=useSpeechStore(),{activeModel:activeConsciousnessModel}=storeToRefs(consciousnessStore),{activeSpeechVoiceId,activeSpeechModel}=storeToRefs(speechStore),addCard=card=>{let newCardId=crypto.randomUUID();return cards.value.set(newCardId,newAiriCard(card)),newCardId},removeCard=id=>{cards.value.delete(id)},getCard=id=>cards.value.get(id);function resolveAiriExtension(card){var _card$data,_card$extensions,_existingExtension$mo,_existingExtension$mo2,_existingExtension$mo3,_existingExtension$mo4,_existingExtension$mo5,_existingExtension$mo6,_existingExtension$mo7,_existingExtension$mo8,_existingExtension$mo9;let existingExtension=`data`in card?(_card$data=card.data)==null||(_card$data=_card$data.extensions)==null?void 0:_card$data.airi:(_card$extensions=card.extensions)?.airi,defaultModules={consciousness:{model:activeConsciousnessModel.value},speech:{model:activeSpeechModel.value,voice_id:activeSpeechVoiceId.value}};return existingExtension?{modules:{consciousness:{model:((_existingExtension$mo=existingExtension.modules)==null||(_existingExtension$mo=_existingExtension$mo.consciousness)==null?void 0:_existingExtension$mo.model)??defaultModules.consciousness.model},speech:{model:((_existingExtension$mo2=existingExtension.modules)==null||(_existingExtension$mo2=_existingExtension$mo2.speech)==null?void 0:_existingExtension$mo2.model)??defaultModules.speech.model,voice_id:((_existingExtension$mo3=existingExtension.modules)==null||(_existingExtension$mo3=_existingExtension$mo3.speech)==null?void 0:_existingExtension$mo3.voice_id)??defaultModules.speech.voice_id,pitch:(_existingExtension$mo4=existingExtension.modules)==null||(_existingExtension$mo4=_existingExtension$mo4.speech)==null?void 0:_existingExtension$mo4.pitch,rate:(_existingExtension$mo5=existingExtension.modules)==null||(_existingExtension$mo5=_existingExtension$mo5.speech)==null?void 0:_existingExtension$mo5.rate,ssml:(_existingExtension$mo6=existingExtension.modules)==null||(_existingExtension$mo6=_existingExtension$mo6.speech)==null?void 0:_existingExtension$mo6.ssml,language:(_existingExtension$mo7=existingExtension.modules)==null||(_existingExtension$mo7=_existingExtension$mo7.speech)==null?void 0:_existingExtension$mo7.language},vrm:(_existingExtension$mo8=existingExtension.modules)?.vrm,live2d:(_existingExtension$mo9=existingExtension.modules)?.live2d},agents:existingExtension.agents??{}}:{modules:defaultModules,agents:{}}}function newAiriCard(card){if(`data`in card){let ccv3Card=card;return{name:ccv3Card.data.name,version:ccv3Card.data.character_version??`1.0.0`,description:ccv3Card.data.description??``,creator:ccv3Card.data.creator??``,notes:ccv3Card.data.creator_notes??``,notesMultilingual:ccv3Card.data.creator_notes_multilingual,personality:ccv3Card.data.personality??``,scenario:ccv3Card.data.scenario??``,greetings:[ccv3Card.data.first_mes,...ccv3Card.data.alternate_greetings??[]],greetingsGroupOnly:ccv3Card.data.group_only_greetings??[],systemPrompt:ccv3Card.data.system_prompt??``,postHistoryInstructions:ccv3Card.data.post_history_instructions??``,messageExample:ccv3Card.data.mes_example?ccv3Card.data.mes_example.split(` `).filter(Boolean).map(example=>example.split(` `).map(line=>{if(line.startsWith(`{{char}}:`)||line.startsWith(`{{user}}:`))return line;throw Error(`Invalid message example format: ${line}`)})):[],tags:ccv3Card.data.tags??[],extensions:{airi:resolveAiriExtension(ccv3Card),...ccv3Card.data.extensions}}}return{...card,extensions:{airi:resolveAiriExtension(card),...card.extensions}}}return onMounted(()=>{let{t}=useI18n();cards.value.set(`default`,newAiriCard({name:`ReLU`,version:`1.0.0`,description:system_v2_default(t(`base.prompt.prefix`),t(`base.prompt.suffix`)).content}))}),watch(activeCard,newCard=>{var _extension$1$modules,_extension$1$modules2,_extension$1$modules3;if(!newCard)return;let extension$1=resolveAiriExtension(newCard);extension$1&&(activeConsciousnessModel.value=extension$1==null||(_extension$1$modules=extension$1.modules)==null||(_extension$1$modules=_extension$1$modules.consciousness)==null?void 0:_extension$1$modules.model,activeSpeechModel.value=extension$1==null||(_extension$1$modules2=extension$1.modules)==null||(_extension$1$modules2=_extension$1$modules2.speech)==null?void 0:_extension$1$modules2.model,activeSpeechVoiceId.value=extension$1==null||(_extension$1$modules3=extension$1.modules)==null||(_extension$1$modules3=_extension$1$modules3.speech)==null?void 0:_extension$1$modules3.voice_id)}),{cards,activeCard,activeCardId,addCard,removeCard,getCard,currentModels:computed(()=>({consciousness:{model:activeConsciousnessModel.value},speech:{model:activeSpeechModel.value,voice_id:activeSpeechVoiceId.value}})),systemPrompt:computed(()=>{let card=activeCard.value;if(!card)return``;let components=[card.systemPrompt,card.description,card.personality].filter(Boolean);return components.join(` -`)})}}),useChatStore=defineStore(`chat`,()=>{let{stream}=useLLM(),{systemPrompt}=storeToRefs(useAiriCardStore()),sending=ref(!1),onBeforeMessageComposedHooks=ref([]),onAfterMessageComposedHooks=ref([]),onBeforeSendHooks=ref([]),onAfterSendHooks=ref([]),onTokenLiteralHooks=ref([]),onTokenSpecialHooks=ref([]),onStreamEndHooks=ref([]),onAssistantResponseEndHooks=ref([]);function onBeforeMessageComposed(cb$1){onBeforeMessageComposedHooks.value.push(cb$1)}function onAfterMessageComposed(cb$1){onAfterMessageComposedHooks.value.push(cb$1)}function onBeforeSend(cb$1){onBeforeSendHooks.value.push(cb$1)}function onAfterSend(cb$1){onAfterSendHooks.value.push(cb$1)}function onTokenLiteral(cb$1){onTokenLiteralHooks.value.push(cb$1)}function onTokenSpecial(cb$1){onTokenSpecialHooks.value.push(cb$1)}function onStreamEnd(cb$1){onStreamEndHooks.value.push(cb$1)}function onAssistantResponseEnd(cb$1){onAssistantResponseEndHooks.value.push(cb$1)}let messages=ref([{role:`system`,content:systemPrompt.value}]),streamingMessage=ref({role:`assistant`,content:``,slices:[],tool_results:[]});async function send(sendingMessage,options$1){try{var _options$1$providerCo;if(sending.value=!0,!sendingMessage)return;for(let hook of onBeforeMessageComposedHooks.value)await hook(sendingMessage);let parser=useLlmmarkerParser({onLiteral:async literal=>{for(let hook of onTokenLiteralHooks.value)await hook(literal);streamingMessage.value.content+=literal;let lastSlice=streamingMessage.value.slices.at(-1);if(lastSlice?.type===`text`){lastSlice.text+=literal;return}streamingMessage.value.slices.push({type:`text`,text:literal})},onSpecial:async special=>{for(let hook of onTokenSpecialHooks.value)await hook(special)}}),slicesQueue=useQueue({handlers:[async ctx=>{if(ctx.data.type===`text`){await parser.consume(ctx.data.text);return}if(ctx.data.type===`tool-call`){streamingMessage.value.slices.push(ctx.data);return}ctx.data.type===`tool-call-result`&&streamingMessage.value.tool_results.push(ctx.data)}]});streamingMessage.value={role:`assistant`,content:``,slices:[],tool_results:[]},messages.value.push({role:`user`,content:sendingMessage}),messages.value.push(streamingMessage.value);let newMessages=messages.value.slice(0,messages.value.length-1).map(msg=>{if(msg.role===`assistant`){let{slices:_$1,...rest}=msg;return rest.tool_results=toRaw(rest.tool_results),toRaw(rest)}return toRaw(msg)});for(let hook of onAfterMessageComposedHooks.value)await hook(sendingMessage);for(let hook of onBeforeSendHooks.value)await hook(sendingMessage);let headers=(_options$1$providerCo=options$1.providerConfig)?.headers||{},res=await stream(options$1.model,options$1.chatProvider,newMessages,{headers,onToolCall(toolCall){slicesQueue.add({type:`tool-call`,toolCall})},onToolCallResult(toolCallResult){slicesQueue.add({type:`tool-call-result`,id:toolCallResult.id,result:toolCallResult.result})}});for(let hook of onAfterSendHooks.value)await hook(sendingMessage);let fullText=``;for await(let textPart of readableStreamToAsyncIterator(res.textStream,async v$1=>v$1))slicesQueue.add({type:`text`,text:textPart}),fullText+=textPart;await parser.end();for(let hook of onStreamEndHooks.value)await hook();for(let hook of onAssistantResponseEndHooks.value)await hook(fullText);console.debug(`LLM output:`,fullText)}catch(error){throw console.error(`Error sending message:`,error),error}finally{sending.value=!1}}return{sending,messages,streamingMessage,send,onBeforeMessageComposed,onAfterMessageComposed,onBeforeSend,onAfterSend,onTokenLiteral,onTokenSpecial,onStreamEnd,onAssistantResponseEnd}}),useMcpStore=defineStore(`mcp`,()=>{let serverCmd=useLocalStorage(`settings/mcp/server-cmd`,``),serverArgs=useLocalStorage(`settings/mcp/server-args`,``),connected=useLocalStorage(`mcp/connected`,!1);return{serverCmd,serverArgs,connected}}),useOnboardingStore=defineStore(`onboarding`,()=>{let providersStore=useProvidersStore(),hasCompletedSetup=useLocalStorage(`onboarding/completed`,!1),hasSkippedSetup=useLocalStorage(`onboarding/skipped`,!1),shouldShowSetup=ref(!1),hasEssentialProviderConfigured=computed(()=>{let essentialProviders=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`];return essentialProviders.some(providerId=>providersStore.configuredProviders[providerId])}),needsOnboarding=computed(()=>hasCompletedSetup.value||hasSkippedSetup.value?(console.warn(`Onboarding already completed or skipped`),!1):hasEssentialProviderConfigured.value?(console.warn(`Essential provider already configured, no onboarding needed`),!1):!0);async function initializeSetupCheck(){needsOnboarding.value&&(await nextTick(),shouldShowSetup.value=!0)}function markSetupCompleted(){hasCompletedSetup.value=!0,hasSkippedSetup.value=!1,shouldShowSetup.value=!1}function markSetupSkipped(){hasSkippedSetup.value=!0,shouldShowSetup.value=!1}function resetSetupState(){hasCompletedSetup.value=!1,hasSkippedSetup.value=!1,shouldShowSetup.value=!1}function forceShowSetup(){shouldShowSetup.value=!0}return{hasCompletedSetup,hasSkippedSetup,shouldShowSetup,hasEssentialProviderConfigured,needsOnboarding,initializeSetupCheck,markSetupCompleted,markSetupSkipped,resetSetupState,forceShowSetup}}),WebSocket$1=globalThis.WebSocket,sleep=async delay=>new Promise(resolve$1=>setTimeout(resolve$1,delay));var Client=class{constructor(options$1){if(babelHelpers.defineProperty(this,`connected`,!1),babelHelpers.defineProperty(this,`opts`,void 0),babelHelpers.defineProperty(this,`websocket`,void 0),babelHelpers.defineProperty(this,`eventListeners`,new Map),babelHelpers.defineProperty(this,`reconnectAttempts`,0),babelHelpers.defineProperty(this,`shouldClose`,!1),this.opts={url:`ws://localhost:6121/ws`,possibleEvents:[],onError:()=>{},onClose:()=>{},autoConnect:!0,autoReconnect:!0,...options$1},this.opts.autoConnect)try{this.connect()}catch(err){console.error(err)}}async retryWithExponentialBackoff(fn$5,attempts=0,maxAttempts=-1){if(maxAttempts!==-1&&attempts>=maxAttempts){console.error(`Maximum retry attempts (${maxAttempts}) reached`);return}try{await fn$5()}catch(err){console.error(`Encountered an error when retrying`,err),await sleep(2**attempts*1e3),await this.retryWithExponentialBackoff(fn$5,attempts+1,maxAttempts)}}async tryReconnectWithExponentialBackoff(){await this.retryWithExponentialBackoff(()=>this._connect(),this.reconnectAttempts)}_connect(){return new Promise((resolve$1,reject)=>{if(this.shouldClose){resolve$1();return}if(this.connected){resolve$1();return}this.websocket=new WebSocket$1(this.opts.url),this.onEvent(`module:authenticated`,async event=>{let auth=event.data.authenticated;auth?this.tryAnnounce():this.retryWithExponentialBackoff(()=>this.tryAuthenticate())}),this.websocket.onerror=event=>{var _this$opts$onError,_this$opts;if((_this$opts$onError=(_this$opts=this.opts).onError)?.call(_this$opts,event),`error`in event&&event.error instanceof Error&&event.error.message===`Received network error or non-101 status code.`){if(this.connected=!1,!this.opts.autoReconnect){var _this$opts$onError2,_this$opts2,_this$opts$onClose,_this$opts3;(_this$opts$onError2=(_this$opts2=this.opts).onError)?.call(_this$opts2,event),(_this$opts$onClose=(_this$opts3=this.opts).onClose)?.call(_this$opts3),reject(event.error);return}reject(event.error)}},this.websocket.onclose=()=>{var _this$opts$onClose2,_this$opts4,_this$opts$onClose3,_this$opts5;(_this$opts$onClose2=(_this$opts4=this.opts).onClose)?.call(_this$opts4),this.connected=!1,this.opts.autoReconnect?this.tryReconnectWithExponentialBackoff():(_this$opts$onClose3=(_this$opts5=this.opts).onClose)?.call(_this$opts5)},this.websocket.onmessage=event=>{this.handleMessage(event)},this.websocket.onopen=()=>{this.reconnectAttempts=0,this.opts.token?this.tryAuthenticate():this.tryAnnounce(),this.connected=!0,resolve$1()}})}async connect(){await this.tryReconnectWithExponentialBackoff()}tryAnnounce(){this.send({type:`module:announce`,data:{name:this.opts.name,possibleEvents:this.opts.possibleEvents}})}tryAuthenticate(){this.opts.token&&this.send({type:`module:authenticate`,data:{token:this.opts.token||``}})}async handleMessage(event){try{let data$10=JSON.parse(event.data),listeners=this.eventListeners.get(data$10.type);if(!listeners)return;for(let listener of listeners)await listener(data$10)}catch(err){var _this$opts$onError3,_this$opts6;console.error(`Failed to parse message:`,err),(_this$opts$onError3=(_this$opts6=this.opts).onError)?.call(_this$opts6,err)}}onEvent(event,callback){this.eventListeners.get(event)||this.eventListeners.set(event,[]);let listeners=this.eventListeners.get(event);listeners&&listeners.push(callback)}send(data$10){var _this$websocket;(_this$websocket=this.websocket)?.send(JSON.stringify(data$10))}sendRaw(data$10){var _this$websocket2;(_this$websocket2=this.websocket)?.send(data$10)}close(){this.shouldClose=!0,this.connected&&this.websocket&&(this.websocket.close(),this.connected=!1)}};const useServerStore=defineStore(`server`,()=>{let server=ref();onMounted(()=>{server.value=new Client({name:`stage-web`,autoConnect:!1,autoReconnect:!0,onError:error=>{console.error(error)}})});function connect(){var _server$value;(_server$value=server.value)?.connect()}return{server,connect}}),parseNumber=(color$2,len)=>{if(typeof color$2==`number`){if(len===3)return{mode:`rgb`,r:(color$2>>8&15|color$2>>4&240)/255,g:(color$2>>4&15|color$2&240)/255,b:(color$2&15|color$2<<4&240)/255};if(len===4)return{mode:`rgb`,r:(color$2>>12&15|color$2>>8&240)/255,g:(color$2>>8&15|color$2>>4&240)/255,b:(color$2>>4&15|color$2&240)/255,alpha:(color$2&15|color$2<<4&240)/255};if(len===6)return{mode:`rgb`,r:(color$2>>16&255)/255,g:(color$2>>8&255)/255,b:(color$2&255)/255};if(len===8)return{mode:`rgb`,r:(color$2>>24&255)/255,g:(color$2>>16&255)/255,b:(color$2>>8&255)/255,alpha:(color$2&255)/255}}};var parseNumber_default=parseNumber;const named={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 named_default=named;const parseNamed=color$2=>parseNumber_default(named_default[color$2.toLowerCase()],6);var parseNamed_default=parseNamed;const hex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,parseHex=color$2=>{let match;return(match=color$2.match(hex))?parseNumber_default(parseInt(match[1],16),match[1].length):void 0};var parseHex_default=parseHex;const num$1=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`,num_none=`(?:${num$1}|none)`,per=`${num$1}%`,per_none=`(?:${num$1}%|none)`,num_per=`(?:${num$1}%|${num$1})`,num_per_none=`(?:${num$1}%|${num$1}|none)`,hue=`(?:${num$1}(deg|grad|rad|turn)|${num$1})`,hue_none=`(?:${num$1}(deg|grad|rad|turn)|${num$1}|none)`,c$2=`\\s*,\\s*`,rx_num_per_none=RegExp(`^`+num_per_none+`$`),rgb_num_old=RegExp(`^rgba?\\(\\s*${num$1}${c$2}${num$1}${c$2}${num$1}\\s*(?:,\\s*${num_per}\\s*)?\\)$`),rgb_per_old=RegExp(`^rgba?\\(\\s*${per}${c$2}${per}${c$2}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`),parseRgbLegacy=color$2=>{let res={mode:`rgb`},match;if(match=color$2.match(rgb_num_old))match[1]!==void 0&&(res.r=match[1]/255),match[2]!==void 0&&(res.g=match[2]/255),match[3]!==void 0&&(res.b=match[3]/255);else if(match=color$2.match(rgb_per_old))match[1]!==void 0&&(res.r=match[1]/100),match[2]!==void 0&&(res.g=match[2]/100),match[3]!==void 0&&(res.b=match[3]/100);else return;return match[4]===void 0?match[5]!==void 0&&(res.alpha=Math.max(0,Math.min(1,+match[5]))):res.alpha=Math.max(0,Math.min(1,match[4]/100)),res};var parseRgbLegacy_default=parseRgbLegacy;const prepare=(color$2,mode)=>color$2===void 0?void 0:typeof color$2==`object`?color$2.mode===void 0?mode?{...color$2,mode}:void 0:color$2:parse_default(color$2);var _prepare_default=prepare;const converter=(target_mode=`rgb`)=>color$2=>(color$2=_prepare_default(color$2,target_mode))===void 0?void 0:color$2.mode===target_mode?color$2:converters[color$2.mode][target_mode]?converters[color$2.mode][target_mode](color$2):target_mode===`rgb`?converters[color$2.mode].rgb(color$2):converters.rgb[target_mode](converters[color$2.mode].rgb(color$2));var converter_default=converter;const converters={},modes={},parsers=[],colorProfiles={},identity=v$1=>v$1,useMode=definition$29=>(converters[definition$29.mode]={...converters[definition$29.mode],...definition$29.toMode},Object.keys(definition$29.fromMode||{}).forEach(k$4=>{converters[k$4]||(converters[k$4]={}),converters[k$4][definition$29.mode]=definition$29.fromMode[k$4]}),definition$29.ranges||={},definition$29.difference||={},definition$29.channels.forEach(channel=>{if(definition$29.ranges[channel]===void 0&&(definition$29.ranges[channel]=[0,1]),!definition$29.interpolate[channel])throw Error(`Missing interpolator for: ${channel}`);typeof definition$29.interpolate[channel]==`function`&&(definition$29.interpolate[channel]={use:definition$29.interpolate[channel]}),definition$29.interpolate[channel].fixup||(definition$29.interpolate[channel].fixup=identity)}),modes[definition$29.mode]=definition$29,(definition$29.parse||[]).forEach(parser=>{useParser(parser,definition$29.mode)}),converter_default(definition$29.mode)),getMode=mode=>modes[mode],useParser=(parser,mode)=>{if(typeof parser==`string`){if(!mode)throw Error(`'mode' required when 'parser' is a string`);colorProfiles[parser]=mode}else typeof parser==`function`&&parsers.indexOf(parser)<0&&parsers.push(parser)},IdentStartCodePoint=/[^\x00-\x7F]|[a-zA-Z_]/,IdentCodePoint=/[^\x00-\x7F]|[-\w]/,Tok={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`};let _i=0;function is_num(chars){let ch=chars[_i],ch1=chars[_i+1];return ch===`-`||ch===`+`?/\d/.test(ch1)||ch1===`.`&&/\d/.test(chars[_i+2]):ch===`.`?/\d/.test(ch1):/\d/.test(ch)}function is_ident(chars){if(_i>=chars.length)return!1;let ch=chars[_i];if(IdentStartCodePoint.test(ch))return!0;if(ch===`-`){if(chars.length-_i<2)return!1;let ch1=chars[_i+1];return!!(ch1===`-`||IdentStartCodePoint.test(ch1))}return!1}const huenits={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function num(chars){let value$1=``;if((chars[_i]===`-`||chars[_i]===`+`)&&(value$1+=chars[_i++]),value$1+=digits(chars),chars[_i]===`.`&&/\d/.test(chars[_i+1])&&(value$1+=chars[_i++]+digits(chars)),(chars[_i]===`e`||chars[_i]===`E`)&&((chars[_i+1]===`-`||chars[_i+1]===`+`)&&/\d/.test(chars[_i+2])?value$1+=chars[_i++]+chars[_i++]+digits(chars):/\d/.test(chars[_i+1])&&(value$1+=chars[_i++]+digits(chars))),is_ident(chars)){let id=ident(chars);return id===`deg`||id===`rad`||id===`turn`||id===`grad`?{type:Tok.Hue,value:value$1*huenits[id]}:void 0}return chars[_i]===`%`?(_i++,{type:Tok.Percentage,value:+value$1}):{type:Tok.Number,value:+value$1}}function digits(chars){let v$1=``;for(;/\d/.test(chars[_i]);)v$1+=chars[_i++];return v$1}function ident(chars){let v$1=``;for(;_i{let{stream}=useLLM(),{systemPrompt}=storeToRefs(useAiriCardStore()),sending=ref(!1),onBeforeMessageComposedHooks=ref([]),onAfterMessageComposedHooks=ref([]),onBeforeSendHooks=ref([]),onAfterSendHooks=ref([]),onTokenLiteralHooks=ref([]),onTokenSpecialHooks=ref([]),onStreamEndHooks=ref([]),onAssistantResponseEndHooks=ref([]);function onBeforeMessageComposed(cb$1){onBeforeMessageComposedHooks.value.push(cb$1)}function onAfterMessageComposed(cb$1){onAfterMessageComposedHooks.value.push(cb$1)}function onBeforeSend(cb$1){onBeforeSendHooks.value.push(cb$1)}function onAfterSend(cb$1){onAfterSendHooks.value.push(cb$1)}function onTokenLiteral(cb$1){onTokenLiteralHooks.value.push(cb$1)}function onTokenSpecial(cb$1){onTokenSpecialHooks.value.push(cb$1)}function onStreamEnd(cb$1){onStreamEndHooks.value.push(cb$1)}function onAssistantResponseEnd(cb$1){onAssistantResponseEndHooks.value.push(cb$1)}let messages=ref([{role:`system`,content:systemPrompt.value}]),streamingMessage=ref({role:`assistant`,content:``,slices:[],tool_results:[]});async function send(sendingMessage,options$1){try{var _options$1$providerCo;if(sending.value=!0,!sendingMessage)return;for(let hook of onBeforeMessageComposedHooks.value)await hook(sendingMessage);let parser=useLlmmarkerParser({onLiteral:async literal=>{for(let hook of onTokenLiteralHooks.value)await hook(literal);streamingMessage.value.content+=literal;let lastSlice=streamingMessage.value.slices.at(-1);if(lastSlice?.type===`text`){lastSlice.text+=literal;return}streamingMessage.value.slices.push({type:`text`,text:literal})},onSpecial:async special=>{for(let hook of onTokenSpecialHooks.value)await hook(special)}}),slicesQueue=useQueue({handlers:[async ctx=>{if(ctx.data.type===`text`){await parser.consume(ctx.data.text);return}if(ctx.data.type===`tool-call`){streamingMessage.value.slices.push(ctx.data);return}ctx.data.type===`tool-call-result`&&streamingMessage.value.tool_results.push(ctx.data)}]});streamingMessage.value={role:`assistant`,content:``,slices:[],tool_results:[]},messages.value.push({role:`user`,content:sendingMessage}),messages.value.push(streamingMessage.value);let newMessages=messages.value.slice(0,messages.value.length-1).map(msg=>{if(msg.role===`assistant`){let{slices:_$2,...rest}=msg;return rest.tool_results=toRaw(rest.tool_results),toRaw(rest)}return toRaw(msg)});for(let hook of onAfterMessageComposedHooks.value)await hook(sendingMessage);for(let hook of onBeforeSendHooks.value)await hook(sendingMessage);let headers=(_options$1$providerCo=options$1.providerConfig)?.headers||{},res=await stream(options$1.model,options$1.chatProvider,newMessages,{headers,onToolCall(toolCall){slicesQueue.add({type:`tool-call`,toolCall})},onToolCallResult(toolCallResult){slicesQueue.add({type:`tool-call-result`,id:toolCallResult.id,result:toolCallResult.result})}});for(let hook of onAfterSendHooks.value)await hook(sendingMessage);let fullText=``;for await(let textPart of readableStreamToAsyncIterator(res.textStream,async v$1=>v$1))slicesQueue.add({type:`text`,text:textPart}),fullText+=textPart;await parser.end();for(let hook of onStreamEndHooks.value)await hook();for(let hook of onAssistantResponseEndHooks.value)await hook(fullText);console.debug(`LLM output:`,fullText)}catch(error){throw console.error(`Error sending message:`,error),error}finally{sending.value=!1}}return{sending,messages,streamingMessage,send,onBeforeMessageComposed,onAfterMessageComposed,onBeforeSend,onAfterSend,onTokenLiteral,onTokenSpecial,onStreamEnd,onAssistantResponseEnd}}),useMcpStore=defineStore(`mcp`,()=>{let serverCmd=useLocalStorage(`settings/mcp/server-cmd`,``),serverArgs=useLocalStorage(`settings/mcp/server-args`,``),connected=useLocalStorage(`mcp/connected`,!1);return{serverCmd,serverArgs,connected}}),useOnboardingStore=defineStore(`onboarding`,()=>{let providersStore=useProvidersStore(),hasCompletedSetup=useLocalStorage(`onboarding/completed`,!1),hasSkippedSetup=useLocalStorage(`onboarding/skipped`,!1),shouldShowSetup=ref(!1),hasEssentialProviderConfigured=computed(()=>{let essentialProviders=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`];return essentialProviders.some(providerId=>providersStore.configuredProviders[providerId])}),needsOnboarding=computed(()=>hasCompletedSetup.value||hasSkippedSetup.value?(console.warn(`Onboarding already completed or skipped`),!1):hasEssentialProviderConfigured.value?(console.warn(`Essential provider already configured, no onboarding needed`),!1):!0);async function initializeSetupCheck(){needsOnboarding.value&&(await nextTick(),shouldShowSetup.value=!0)}function markSetupCompleted(){hasCompletedSetup.value=!0,hasSkippedSetup.value=!1,shouldShowSetup.value=!1}function markSetupSkipped(){hasSkippedSetup.value=!0,shouldShowSetup.value=!1}function resetSetupState(){hasCompletedSetup.value=!1,hasSkippedSetup.value=!1,shouldShowSetup.value=!1}function forceShowSetup(){shouldShowSetup.value=!0}return{hasCompletedSetup,hasSkippedSetup,shouldShowSetup,hasEssentialProviderConfigured,needsOnboarding,initializeSetupCheck,markSetupCompleted,markSetupSkipped,resetSetupState,forceShowSetup}}),WebSocket$1=globalThis.WebSocket,sleep=async delay=>new Promise(resolve$1=>setTimeout(resolve$1,delay));var Client=class{constructor(options$1){if(babelHelpers.defineProperty(this,`connected`,!1),babelHelpers.defineProperty(this,`opts`,void 0),babelHelpers.defineProperty(this,`websocket`,void 0),babelHelpers.defineProperty(this,`eventListeners`,new Map),babelHelpers.defineProperty(this,`reconnectAttempts`,0),babelHelpers.defineProperty(this,`shouldClose`,!1),this.opts={url:`ws://localhost:6121/ws`,possibleEvents:[],onError:()=>{},onClose:()=>{},autoConnect:!0,autoReconnect:!0,...options$1},this.opts.autoConnect)try{this.connect()}catch(err){console.error(err)}}async retryWithExponentialBackoff(fn$5,attempts=0,maxAttempts=-1){if(maxAttempts!==-1&&attempts>=maxAttempts){console.error(`Maximum retry attempts (${maxAttempts}) reached`);return}try{await fn$5()}catch(err){console.error(`Encountered an error when retrying`,err),await sleep(2**attempts*1e3),await this.retryWithExponentialBackoff(fn$5,attempts+1,maxAttempts)}}async tryReconnectWithExponentialBackoff(){await this.retryWithExponentialBackoff(()=>this._connect(),this.reconnectAttempts)}_connect(){return new Promise((resolve$1,reject)=>{if(this.shouldClose){resolve$1();return}if(this.connected){resolve$1();return}this.websocket=new WebSocket$1(this.opts.url),this.onEvent(`module:authenticated`,async event=>{let auth=event.data.authenticated;auth?this.tryAnnounce():this.retryWithExponentialBackoff(()=>this.tryAuthenticate())}),this.websocket.onerror=event=>{var _this$opts$onError,_this$opts;if((_this$opts$onError=(_this$opts=this.opts).onError)?.call(_this$opts,event),`error`in event&&event.error instanceof Error&&event.error.message===`Received network error or non-101 status code.`){if(this.connected=!1,!this.opts.autoReconnect){var _this$opts$onError2,_this$opts2,_this$opts$onClose,_this$opts3;(_this$opts$onError2=(_this$opts2=this.opts).onError)?.call(_this$opts2,event),(_this$opts$onClose=(_this$opts3=this.opts).onClose)?.call(_this$opts3),reject(event.error);return}reject(event.error)}},this.websocket.onclose=()=>{var _this$opts$onClose2,_this$opts4,_this$opts$onClose3,_this$opts5;(_this$opts$onClose2=(_this$opts4=this.opts).onClose)?.call(_this$opts4),this.connected=!1,this.opts.autoReconnect?this.tryReconnectWithExponentialBackoff():(_this$opts$onClose3=(_this$opts5=this.opts).onClose)?.call(_this$opts5)},this.websocket.onmessage=event=>{this.handleMessage(event)},this.websocket.onopen=()=>{this.reconnectAttempts=0,this.opts.token?this.tryAuthenticate():this.tryAnnounce(),this.connected=!0,resolve$1()}})}async connect(){await this.tryReconnectWithExponentialBackoff()}tryAnnounce(){this.send({type:`module:announce`,data:{name:this.opts.name,possibleEvents:this.opts.possibleEvents}})}tryAuthenticate(){this.opts.token&&this.send({type:`module:authenticate`,data:{token:this.opts.token||``}})}async handleMessage(event){try{let data$10=JSON.parse(event.data),listeners=this.eventListeners.get(data$10.type);if(!listeners)return;for(let listener of listeners)await listener(data$10)}catch(err){var _this$opts$onError3,_this$opts6;console.error(`Failed to parse message:`,err),(_this$opts$onError3=(_this$opts6=this.opts).onError)?.call(_this$opts6,err)}}onEvent(event,callback){this.eventListeners.get(event)||this.eventListeners.set(event,[]);let listeners=this.eventListeners.get(event);listeners&&listeners.push(callback)}send(data$10){var _this$websocket;(_this$websocket=this.websocket)?.send(JSON.stringify(data$10))}sendRaw(data$10){var _this$websocket2;(_this$websocket2=this.websocket)?.send(data$10)}close(){this.shouldClose=!0,this.connected&&this.websocket&&(this.websocket.close(),this.connected=!1)}};const useServerStore=defineStore(`server`,()=>{let server=ref();onMounted(()=>{server.value=new Client({name:`stage-web`,autoConnect:!1,autoReconnect:!0,onError:error=>{console.error(error)}})});function connect(){var _server$value;(_server$value=server.value)?.connect()}return{server,connect}}),parseNumber=(color$2,len)=>{if(typeof color$2==`number`){if(len===3)return{mode:`rgb`,r:(color$2>>8&15|color$2>>4&240)/255,g:(color$2>>4&15|color$2&240)/255,b:(color$2&15|color$2<<4&240)/255};if(len===4)return{mode:`rgb`,r:(color$2>>12&15|color$2>>8&240)/255,g:(color$2>>8&15|color$2>>4&240)/255,b:(color$2>>4&15|color$2&240)/255,alpha:(color$2&15|color$2<<4&240)/255};if(len===6)return{mode:`rgb`,r:(color$2>>16&255)/255,g:(color$2>>8&255)/255,b:(color$2&255)/255};if(len===8)return{mode:`rgb`,r:(color$2>>24&255)/255,g:(color$2>>16&255)/255,b:(color$2>>8&255)/255,alpha:(color$2&255)/255}}};var parseNumber_default=parseNumber;const named={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 named_default=named;const parseNamed=color$2=>parseNumber_default(named_default[color$2.toLowerCase()],6);var parseNamed_default=parseNamed;const hex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,parseHex=color$2=>{let match;return(match=color$2.match(hex))?parseNumber_default(parseInt(match[1],16),match[1].length):void 0};var parseHex_default=parseHex;const num$1=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`,num_none=`(?:${num$1}|none)`,per=`${num$1}%`,per_none=`(?:${num$1}%|none)`,num_per=`(?:${num$1}%|${num$1})`,num_per_none=`(?:${num$1}%|${num$1}|none)`,hue=`(?:${num$1}(deg|grad|rad|turn)|${num$1})`,hue_none=`(?:${num$1}(deg|grad|rad|turn)|${num$1}|none)`,c$2=`\\s*,\\s*`,rx_num_per_none=RegExp(`^`+num_per_none+`$`),rgb_num_old=RegExp(`^rgba?\\(\\s*${num$1}${c$2}${num$1}${c$2}${num$1}\\s*(?:,\\s*${num_per}\\s*)?\\)$`),rgb_per_old=RegExp(`^rgba?\\(\\s*${per}${c$2}${per}${c$2}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`),parseRgbLegacy=color$2=>{let res={mode:`rgb`},match;if(match=color$2.match(rgb_num_old))match[1]!==void 0&&(res.r=match[1]/255),match[2]!==void 0&&(res.g=match[2]/255),match[3]!==void 0&&(res.b=match[3]/255);else if(match=color$2.match(rgb_per_old))match[1]!==void 0&&(res.r=match[1]/100),match[2]!==void 0&&(res.g=match[2]/100),match[3]!==void 0&&(res.b=match[3]/100);else return;return match[4]===void 0?match[5]!==void 0&&(res.alpha=Math.max(0,Math.min(1,+match[5]))):res.alpha=Math.max(0,Math.min(1,match[4]/100)),res};var parseRgbLegacy_default=parseRgbLegacy;const prepare=(color$2,mode)=>color$2===void 0?void 0:typeof color$2==`object`?color$2.mode===void 0?mode?{...color$2,mode}:void 0:color$2:parse_default(color$2);var _prepare_default=prepare;const converter=(target_mode=`rgb`)=>color$2=>(color$2=_prepare_default(color$2,target_mode))===void 0?void 0:color$2.mode===target_mode?color$2:converters[color$2.mode][target_mode]?converters[color$2.mode][target_mode](color$2):target_mode===`rgb`?converters[color$2.mode].rgb(color$2):converters.rgb[target_mode](converters[color$2.mode].rgb(color$2));var converter_default=converter;const converters={},modes={},parsers=[],colorProfiles={},identity=v$1=>v$1,useMode=definition$29=>(converters[definition$29.mode]={...converters[definition$29.mode],...definition$29.toMode},Object.keys(definition$29.fromMode||{}).forEach(k$4=>{converters[k$4]||(converters[k$4]={}),converters[k$4][definition$29.mode]=definition$29.fromMode[k$4]}),definition$29.ranges||={},definition$29.difference||={},definition$29.channels.forEach(channel=>{if(definition$29.ranges[channel]===void 0&&(definition$29.ranges[channel]=[0,1]),!definition$29.interpolate[channel])throw Error(`Missing interpolator for: ${channel}`);typeof definition$29.interpolate[channel]==`function`&&(definition$29.interpolate[channel]={use:definition$29.interpolate[channel]}),definition$29.interpolate[channel].fixup||(definition$29.interpolate[channel].fixup=identity)}),modes[definition$29.mode]=definition$29,(definition$29.parse||[]).forEach(parser=>{useParser(parser,definition$29.mode)}),converter_default(definition$29.mode)),getMode=mode=>modes[mode],useParser=(parser,mode)=>{if(typeof parser==`string`){if(!mode)throw Error(`'mode' required when 'parser' is a string`);colorProfiles[parser]=mode}else typeof parser==`function`&&parsers.indexOf(parser)<0&&parsers.push(parser)},IdentStartCodePoint=/[^\x00-\x7F]|[a-zA-Z_]/,IdentCodePoint=/[^\x00-\x7F]|[-\w]/,Tok={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`};let _i=0;function is_num(chars){let ch=chars[_i],ch1=chars[_i+1];return ch===`-`||ch===`+`?/\d/.test(ch1)||ch1===`.`&&/\d/.test(chars[_i+2]):ch===`.`?/\d/.test(ch1):/\d/.test(ch)}function is_ident(chars){if(_i>=chars.length)return!1;let ch=chars[_i];if(IdentStartCodePoint.test(ch))return!0;if(ch===`-`){if(chars.length-_i<2)return!1;let ch1=chars[_i+1];return!!(ch1===`-`||IdentStartCodePoint.test(ch1))}return!1}const huenits={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function num(chars){let value$1=``;if((chars[_i]===`-`||chars[_i]===`+`)&&(value$1+=chars[_i++]),value$1+=digits(chars),chars[_i]===`.`&&/\d/.test(chars[_i+1])&&(value$1+=chars[_i++]+digits(chars)),(chars[_i]===`e`||chars[_i]===`E`)&&((chars[_i+1]===`-`||chars[_i+1]===`+`)&&/\d/.test(chars[_i+2])?value$1+=chars[_i++]+chars[_i++]+digits(chars):/\d/.test(chars[_i+1])&&(value$1+=chars[_i++]+digits(chars))),is_ident(chars)){let id=ident(chars);return id===`deg`||id===`rad`||id===`turn`||id===`grad`?{type:Tok.Hue,value:value$1*huenits[id]}:void 0}return chars[_i]===`%`?(_i++,{type:Tok.Percentage,value:+value$1}):{type:Tok.Number,value:+value$1}}function digits(chars){let v$1=``;for(;/\d/.test(chars[_i]);)v$1+=chars[_i++];return v$1}function ident(chars){let v$1=``;for(;_i4)){if(coords$1.length===4){if(coords$1[3].type!==Tok.Alpha)return;coords$1[3]=coords$1[3].value}return coords$1.length===3&&coords$1.push({type:Tok.None,value:void 0}),coords$1.every(c$4=>c$4.type!==Tok.Alpha)?coords$1:void 0}}function parseModernSyntax(tokens,includeHue){tokens._i=0;let token=tokens[tokens._i++];if(!token||token.type!==Tok.Function)return;let coords$1=consumeCoords(tokens,includeHue);if(coords$1)return coords$1.unshift(token.value),coords$1}const parse=color$2=>{if(typeof color$2!=`string`)return;let tokens=tokenize(color$2),parsed=tokens?parseModernSyntax(tokens,!0):void 0,result,i$1=0,len=parsers.length;for(;i$1c$4===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0;var parseTransparent_default=parseTransparent;const lerp=(a$2,b$3,t)=>a$2+t*(b$3-a$2),get_classes=arr=>{let classes=[];for(let i$1=0;i$1arr=>{let classes=get_classes(arr);return t=>{let cls=t*classes.length,idx=t>=1?classes.length-1:Math.max(Math.floor(cls),0),pair=classes[idx];return pair===void 0?void 0:interpolator(pair[0],pair[1],cls-idx)}},interpolatorLinear=interpolatorPiecewise(lerp),fixupAlpha=arr=>{let some_defined=!1,res=arr.map(v$1=>v$1===void 0?1:(some_defined=!0,v$1));return some_defined?res:arr},definition$27={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[parseRgb_default,parseHex_default,parseRgbLegacy_default,parseNamed_default,parseTransparent_default,`srgb`],serialize:`srgb`,interpolate:{r:interpolatorLinear,g:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}};var definition_default$23=definition$27;const linearize$2=(v$1=0)=>Math.abs(v$1)**(563/256)*Math.sign(v$1),convertA98ToXyz65=a98$1=>{let r$2=linearize$2(a98$1.r),g$2=linearize$2(a98$1.g),b$3=linearize$2(a98$1.b),res={mode:`xyz65`,x:.5766690429101305*r$2+.1855582379065463*g$2+.1882286462349947*b$3,y:.297344975250536*r$2+.6273635662554661*g$2+.0752914584939979*b$3,z:.0270313613864123*r$2+.0706888525358272*g$2+.9913375368376386*b$3};return a98$1.alpha!==void 0&&(res.alpha=a98$1.alpha),res};var convertA98ToXyz65_default=convertA98ToXyz65;const gamma$2=v$1=>Math.abs(v$1)**(256/563)*Math.sign(v$1),convertXyz65ToA98=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`a98`,r:gamma$2(x$3*2.0415879038107465-y$2*.5650069742788597-.3447313507783297*z$2),g:gamma$2(x$3*-.9692436362808798+y$2*1.8759675015077206+.0415550574071756*z$2),b:gamma$2(x$3*.0134442806320312-y$2*.1183623922310184+1.0151749943912058*z$2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToA98_default=convertXyz65ToA98;const fn$3=(c$4=0)=>{let abs$1=Math.abs(c$4);return abs$1<=.04045?c$4/12.92:(Math.sign(c$4)||1)*((abs$1+.055)/1.055)**2.4},convertRgbToLrgb=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{let res={mode:`lrgb`,r:fn$3(r$2),g:fn$3(g$2),b:fn$3(b$3)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToLrgb_default=convertRgbToLrgb;const convertRgbToXyz65=rgb$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(rgb$2),res={mode:`xyz65`,x:.4123907992659593*r$2+.357584339383878*g$2+.1804807884018343*b$3,y:.2126390058715102*r$2+.715168678767756*g$2+.0721923153607337*b$3,z:.0193308187155918*r$2+.119194779794626*g$2+.9505321522496607*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToXyz65_default=convertRgbToXyz65;const fn$2=(c$4=0)=>{let abs$1=Math.abs(c$4);return abs$1>.0031308?(Math.sign(c$4)||1)*(1.055*abs$1**(1/2.4)-.055):c$4*12.92},convertLrgbToRgb=({r:r$2,g:g$2,b:b$3,alpha:alpha$1},mode=`rgb`)=>{let res={mode,r:fn$2(r$2),g:fn$2(g$2),b:fn$2(b$3)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLrgbToRgb_default=convertLrgbToRgb;const convertXyz65ToRgb=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res=convertLrgbToRgb_default({r:x$3*3.2409699419045226-y$2*1.537383177570094-.4986107602930034*z$2,g:x$3*-.9692436362808796+y$2*1.8759675015077204+.0415550574071756*z$2,b:x$3*.0556300796969936-y$2*.2039769588889765+1.0569715142428784*z$2});return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToRgb_default=convertXyz65ToRgb;const definition$26={...definition_default$23,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:color$2=>convertXyz65ToA98_default(convertRgbToXyz65_default(color$2)),xyz65:convertXyz65ToA98_default},toMode:{rgb:color$2=>convertXyz65ToRgb_default(convertA98ToXyz65_default(color$2)),xyz65:convertA98ToXyz65_default}};var definition_default=definition$26;const normalizeHue=hue$2=>(hue$2%=360)<0?hue$2+360:hue$2;var normalizeHue_default=normalizeHue;const hue$1=(hues,fn$5)=>hues.map((hue$2,idx,arr)=>{if(hue$2===void 0)return hue$2;let normalized=normalizeHue_default(hue$2);return idx===0||hues[idx-1]===void 0?normalized:fn$5(normalized-normalizeHue_default(arr[idx-1]))}).reduce((acc,curr)=>!acc.length||curr===void 0||acc[acc.length-1]===void 0?(acc.push(curr),acc):(acc.push(curr+acc[acc.length-1]),acc),[]),fixupHueShorter=arr=>hue$1(arr,d$2=>Math.abs(d$2)<=180?d$2:d$2-360*Math.sign(d$2)),M=[-.14861,1.78277,-.29227,-.90649,1.97294,0],degToRad=Math.PI/180,radToDeg=180/Math.PI;let DE=M[3]*M[4],BE=M[1]*M[4],BCAD=M[1]*M[2]-M[0]*M[3];const convertRgbToCubehelix=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let l$1=(BCAD*b$3+r$2*DE-g$2*BE)/(BCAD+DE-BE),x$3=b$3-l$1,y$2=(M[4]*(g$2-l$1)-M[2]*x$3)/M[3],res={mode:`cubehelix`,l:l$1,s:l$1===0||l$1===1?void 0:Math.sqrt(x$3*x$3+y$2*y$2)/(M[4]*l$1*(1-l$1))};return res.s&&(res.h=Math.atan2(y$2,x$3)*radToDeg-120),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToCubehelix_default=convertRgbToCubehelix;const convertCubehelixToRgb=({h:h$3,s:s$1,l:l$1,alpha:alpha$1})=>{let res={mode:`rgb`};h$3=(h$3===void 0?0:h$3+120)*degToRad,l$1===void 0&&(l$1=0);let amp=s$1===void 0?0:s$1*l$1*(1-l$1),cosh=Math.cos(h$3),sinh=Math.sin(h$3);return res.r=l$1+amp*(M[0]*cosh+M[1]*sinh),res.g=l$1+amp*(M[2]*cosh+M[3]*sinh),res.b=l$1+amp*(M[4]*cosh+M[5]*sinh),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertCubehelixToRgb_default=convertCubehelixToRgb;const differenceHueSaturation=(std,smp)=>{if(std.h===void 0||smp.h===void 0||!std.s||!smp.s)return 0;let std_h=normalizeHue_default(std.h),smp_h=normalizeHue_default(smp.h),dH=Math.sin((smp_h-std_h+360)/2*Math.PI/180);return 2*Math.sqrt(std.s*smp.s)*dH},differenceHueNaive=(std,smp)=>{if(std.h===void 0||smp.h===void 0)return 0;let std_h=normalizeHue_default(std.h),smp_h=normalizeHue_default(smp.h);return Math.abs(smp_h-std_h)>180?std_h-(smp_h-360*Math.sign(smp_h-std_h)):smp_h-std_h},differenceHueChroma=(std,smp)=>{if(std.h===void 0||smp.h===void 0||!std.c||!smp.c)return 0;let std_h=normalizeHue_default(std.h),smp_h=normalizeHue_default(smp.h),dH=Math.sin((smp_h-std_h+360)/2*Math.PI/180);return 2*Math.sqrt(std.c*smp.c)*dH},averageAngle=val=>{let sum=val.reduce((sum$1,val$1)=>{if(val$1!==void 0){let rad=val$1*Math.PI/180;sum$1.sin+=Math.sin(rad),sum$1.cos+=Math.cos(rad)}return sum$1},{sin:0,cos:0}),angle=Math.atan2(sum.sin,sum.cos)*180/Math.PI;return angle<0?360+angle:angle},definition$25={mode:`cubehelix`,channels:[`h`,`s`,`l`,`alpha`],parse:[`--cubehelix`],serialize:`--cubehelix`,ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:convertRgbToCubehelix_default},toMode:{rgb:convertCubehelixToRgb_default},interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},s:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueSaturation},average:{h:averageAngle}};var definition_default$1=definition$25;const convertLabToLch=({l:l$1,a:a$2,b:b$3,alpha:alpha$1},mode=`lch`)=>{a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let c$4=Math.sqrt(a$2*a$2+b$3*b$3),res={mode,l:l$1,c:c$4};return c$4&&(res.h=normalizeHue_default(Math.atan2(b$3,a$2)*180/Math.PI)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLabToLch_default=convertLabToLch;const convertLchToLab=({l:l$1,c:c$4,h:h$3,alpha:alpha$1},mode=`lab`)=>{h$3===void 0&&(h$3=0);let res={mode,l:l$1,a:c$4?c$4*Math.cos(h$3/180*Math.PI):0,b:c$4?c$4*Math.sin(h$3/180*Math.PI):0};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLchToLab_default=convertLchToLab;const k$2=29**3/3**3,e$1=6**3/29**3,D50={X:.3457/.3585,Y:1,Z:.2958/.3585},D65={X:.3127/.329,Y:1,Z:.3583/.329},k$3=29**3/3**3,e$2=6**3/29**3;let fn$1=v$1=>v$1**3>e$1?v$1**3:(116*v$1-16)/k$2;const convertLab65ToXyz65=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let fy=(l$1+16)/116,fx=a$2/500+fy,fz=fy-b$3/200,res={mode:`xyz65`,x:fn$1(fx)*D65.X,y:fn$1(fy)*D65.Y,z:fn$1(fz)*D65.Z};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLab65ToXyz65_default=convertLab65ToXyz65;const convertLab65ToRgb=lab$1=>convertXyz65ToRgb_default(convertLab65ToXyz65_default(lab$1));var convertLab65ToRgb_default=convertLab65ToRgb;const f$2=value$1=>value$1>e$1?Math.cbrt(value$1):(k$2*value$1+16)/116,convertXyz65ToLab65=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let f0=f$2(x$3/D65.X),f1=f$2(y$2/D65.Y),f2=f$2(z$2/D65.Z),res={mode:`lab65`,l:116*f1-16,a:500*(f0-f1),b:200*(f1-f2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToLab65_default=convertXyz65ToLab65;const convertRgbToLab65=rgb$2=>{let res=convertXyz65ToLab65_default(convertRgbToXyz65_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToLab65_default=convertRgbToLab65;const kE=1,kCH=1,θ=26/180*Math.PI,cosθ=Math.cos(θ),sinθ=Math.sin(θ),factor=100/Math.log(139/100),convertDlchToLab65=({l:l$1,c:c$4,h:h$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),c$4===void 0&&(c$4=0),h$3===void 0&&(h$3=0);let res={mode:`lab65`,l:(Math.exp(l$1*kE/factor)-1)/.0039},G$1=(Math.exp(.0435*c$4*kCH*kE)-1)/.075,e$3=G$1*Math.cos(h$3/180*Math.PI-θ),f$3=G$1*Math.sin(h$3/180*Math.PI-θ);return res.a=e$3*cosθ-f$3/.83*sinθ,res.b=e$3*sinθ+f$3/.83*cosθ,alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertDlchToLab65_default=convertDlchToLab65;const convertLab65ToDlch=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let e$3=a$2*cosθ+b$3*sinθ,f$3=.83*(b$3*cosθ-a$2*sinθ),G$1=Math.sqrt(e$3*e$3+f$3*f$3),res={mode:`dlch`,l:factor/kE*Math.log(1+.0039*l$1),c:Math.log(1+.075*G$1)/(.0435*kCH*kE)};return res.c&&(res.h=normalizeHue_default((Math.atan2(f$3,e$3)+θ)/Math.PI*180)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLab65ToDlch_default=convertLab65ToDlch;const convertDlabToLab65=c$4=>convertDlchToLab65_default(convertLabToLch_default(c$4,`dlch`)),convertLab65ToDlab=c$4=>convertLchToLab_default(convertLab65ToDlch_default(c$4),`dlab`),definition$24={mode:`dlab`,parse:[`--din99o-lab`],serialize:`--din99o-lab`,toMode:{lab65:convertDlabToLab65,rgb:c$4=>convertLab65ToRgb_default(convertDlabToLab65(c$4))},fromMode:{lab65:convertLab65ToDlab,rgb:c$4=>convertLab65ToDlab(convertRgbToLab65_default(c$4))},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:interpolatorLinear,a:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$2=definition$24;const definition$23={mode:`dlch`,parse:[`--din99o-lch`],serialize:`--din99o-lch`,toMode:{lab65:convertDlchToLab65_default,dlab:c$4=>convertLchToLab_default(c$4,`dlab`),rgb:c$4=>convertLab65ToRgb_default(convertDlchToLab65_default(c$4))},fromMode:{lab65:convertLab65ToDlch_default,dlab:c$4=>convertLabToLch_default(c$4,`dlch`),rgb:c$4=>convertLab65ToDlch_default(convertRgbToLab65_default(c$4))},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:interpolatorLinear,c:interpolatorLinear,h:{use:interpolatorLinear,fixup:fixupHueShorter},alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$3=definition$23;function convertHsiToRgb({h:h$3,s:s$1,i:i$1,alpha:alpha$1}){h$3=normalizeHue_default(h$3===void 0?0:h$3),s$1===void 0&&(s$1=0),i$1===void 0&&(i$1=0);let f$3=Math.abs(h$3/60%2-1),res;switch(Math.floor(h$3/60)){case 0:res={r:i$1*(1+s$1*(3/(2-f$3)-1)),g:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),b:i$1*(1-s$1)};break;case 1:res={r:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),g:i$1*(1+s$1*(3/(2-f$3)-1)),b:i$1*(1-s$1)};break;case 2:res={r:i$1*(1-s$1),g:i$1*(1+s$1*(3/(2-f$3)-1)),b:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1))};break;case 3:res={r:i$1*(1-s$1),g:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),b:i$1*(1+s$1*(3/(2-f$3)-1))};break;case 4:res={r:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),g:i$1*(1-s$1),b:i$1*(1+s$1*(3/(2-f$3)-1))};break;case 5:res={r:i$1*(1+s$1*(3/(2-f$3)-1)),g:i$1*(1-s$1),b:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1))};break;default:res={r:i$1*(1-s$1),g:i$1*(1-s$1),b:i$1*(1-s$1)}}return res.mode=`rgb`,alpha$1!==void 0&&(res.alpha=alpha$1),res}function convertRgbToHsi({r:r$2,g:g$2,b:b$3,alpha:alpha$1}){r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let M$1=Math.max(r$2,g$2,b$3),m$2=Math.min(r$2,g$2,b$3),res={mode:`hsi`,s:r$2+g$2+b$3===0?0:1-3*m$2/(r$2+g$2+b$3),i:(r$2+g$2+b$3)/3};return M$1-m$2!==0&&(res.h=(M$1===r$2?(g$2-b$3)/(M$1-m$2)+(g$2{switch(unit){case`deg`:return+val;case`rad`:return val/Math.PI*180;case`grad`:return val/10*9;case`turn`:return val*360}};var hue_default=hueToDeg;const hsl_old=RegExp(`^hsla?\\(\\s*${hue}${c$2}${per}${c$2}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`),parseHslLegacy=color$2=>{let match=color$2.match(hsl_old);if(!match)return;let res={mode:`hsl`};return match[3]===void 0?match[1]!==void 0&&match[2]!==void 0&&(res.h=hue_default(match[1],match[2])):res.h=+match[3],match[4]!==void 0&&(res.s=Math.min(Math.max(0,match[4]/100),1)),match[5]!==void 0&&(res.l=Math.min(Math.max(0,match[5]/100),1)),match[6]===void 0?match[7]!==void 0&&(res.alpha=Math.max(0,Math.min(1,+match[7]))):res.alpha=Math.max(0,Math.min(1,match[6]/100)),res};var parseHslLegacy_default=parseHslLegacy;function parseHsl(color$2,parsed){if(!parsed||parsed[0]!==`hsl`&&parsed[0]!==`hsla`)return;let res={mode:`hsl`},[,h$3,s$1,l$1,alpha$1]=parsed;if(h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}if(s$1.type!==Tok.None){if(s$1.type===Tok.Hue)return;res.s=s$1.value/100}if(l$1.type!==Tok.None){if(l$1.type===Tok.Hue)return;res.l=l$1.value/100}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseHsl_default=parseHsl;const definition$21={mode:`hsl`,toMode:{rgb:convertHslToRgb},fromMode:{rgb:convertRgbToHsl},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[parseHsl_default,parseHslLegacy_default],serialize:c$4=>`hsl(${c$4.h===void 0?`none`:c$4.h} ${c$4.s===void 0?`none`:c$4.s*100+`%`} ${c$4.l===void 0?`none`:c$4.l*100+`%`}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},s:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueSaturation},average:{h:averageAngle}};var definition_default$5=definition$21;function convertHsvToRgb({h:h$3,s:s$1,v:v$1,alpha:alpha$1}){h$3=normalizeHue_default(h$3===void 0?0:h$3),s$1===void 0&&(s$1=0),v$1===void 0&&(v$1=0);let f$3=Math.abs(h$3/60%2-1),res;switch(Math.floor(h$3/60)){case 0:res={r:v$1,g:v$1*(1-s$1*f$3),b:v$1*(1-s$1)};break;case 1:res={r:v$1*(1-s$1*f$3),g:v$1,b:v$1*(1-s$1)};break;case 2:res={r:v$1*(1-s$1),g:v$1,b:v$1*(1-s$1*f$3)};break;case 3:res={r:v$1*(1-s$1),g:v$1*(1-s$1*f$3),b:v$1};break;case 4:res={r:v$1*(1-s$1*f$3),g:v$1*(1-s$1),b:v$1};break;case 5:res={r:v$1,g:v$1*(1-s$1),b:v$1*(1-s$1*f$3)};break;default:res={r:v$1*(1-s$1),g:v$1*(1-s$1),b:v$1*(1-s$1)}}return res.mode=`rgb`,alpha$1!==void 0&&(res.alpha=alpha$1),res}function convertRgbToHsv({r:r$2,g:g$2,b:b$3,alpha:alpha$1}){r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let M$1=Math.max(r$2,g$2,b$3),m$2=Math.min(r$2,g$2,b$3),res={mode:`hsv`,s:M$1===0?0:1-m$2/M$1,v:M$1};return M$1-m$2!==0&&(res.h=(M$1===r$2?(g$2-b$3)/(M$1-m$2)+(g$21){let s$1=w$1+b$3;w$1/=s$1,b$3/=s$1}return convertHsvToRgb({h:h$3,s:b$3===1?1:1-w$1/(1-b$3),v:1-b$3,alpha:alpha$1})}function convertRgbToHwb(rgba$1){let hsv$1=convertRgbToHsv(rgba$1);if(hsv$1===void 0)return;let s$1=hsv$1.s===void 0?0:hsv$1.s,v$1=hsv$1.v===void 0?0:hsv$1.v,res={mode:`hwb`,w:(1-s$1)*v$1,b:1-v$1};return hsv$1.h!==void 0&&(res.h=hsv$1.h),hsv$1.alpha!==void 0&&(res.alpha=hsv$1.alpha),res}function ParseHwb(color$2,parsed){if(!parsed||parsed[0]!==`hwb`)return;let res={mode:`hwb`},[,h$3,w$1,b$3,alpha$1]=parsed;if(h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}if(w$1.type!==Tok.None){if(w$1.type===Tok.Hue)return;res.w=w$1.value/100}if(b$3.type!==Tok.None){if(b$3.type===Tok.Hue)return;res.b=b$3.value/100}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseHwb_default=ParseHwb;const definition$19={mode:`hwb`,toMode:{rgb:convertHwbToRgb},fromMode:{rgb:convertRgbToHwb},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[parseHwb_default],serialize:c$4=>`hwb(${c$4.h===void 0?`none`:c$4.h} ${c$4.w===void 0?`none`:c$4.w*100+`%`} ${c$4.b===void 0?`none`:c$4.b*100+`%`}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},w:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueNaive},average:{h:averageAngle}};var definition_default$7=definition$19;const YW=203,M1=.1593017578125,M2=78.84375,C1=.8359375,C2=18.8515625,C3=18.6875;function transferPqDecode(v$1){if(v$1<0)return 0;let c$4=v$1**(1/M2);return 1e4*(Math.max(0,c$4-C1)/(C2-C3*c$4))**(1/M1)}function transferPqEncode(v$1){if(v$1<0)return 0;let c$4=(v$1/1e4)**M1;return((C1+C2*c$4)/(1+C3*c$4))**+M2}const toRel=c$4=>Math.max(c$4/YW,0),convertItpToXyz65=({i:i$1,t,p:p$5,alpha:alpha$1})=>{i$1===void 0&&(i$1=0),t===void 0&&(t=0),p$5===void 0&&(p$5=0);let l$1=transferPqDecode(i$1+.008609037037932761*t+.11102962500302593*p$5),m$2=transferPqDecode(i$1-.00860903703793275*t-.11102962500302599*p$5),s$1=transferPqDecode(i$1+.5600313357106791*t-.32062717498731885*p$5),res={mode:`xyz65`,x:toRel(2.070152218389422*l$1-1.3263473389671556*m$2+.2066510476294051*s$1),y:toRel(.3647385209748074*l$1+.680566024947227*m$2-.0453045459220346*s$1),z:toRel(-.049747207535812*l$1-.0492609666966138*m$2+1.1880659249923042*s$1)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertItpToXyz65_default=convertItpToXyz65;const toAbs=(c$4=0)=>Math.max(c$4*YW,0),convertXyz65ToItp=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{let absX=toAbs(x$3),absY=toAbs(y$2),absZ=toAbs(z$2),l$1=transferPqEncode(.3592832590121217*absX+.6976051147779502*absY-.0358915932320289*absZ),m$2=transferPqEncode(-.1920808463704995*absX+1.1004767970374323*absY+.0753748658519118*absZ),s$1=transferPqEncode(.0070797844607477*absX+.0748396662186366*absY+.8433265453898765*absZ),i$1=.5*l$1+.5*m$2,t=1.61376953125*l$1-3.323486328125*m$2+1.709716796875*s$1,p$5=4.378173828125*l$1-4.24560546875*m$2-.132568359375*s$1,res={mode:`itp`,i:i$1,t,p:p$5};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToItp_default=convertXyz65ToItp;const definition$18={mode:`itp`,channels:[`i`,`t`,`p`,`alpha`],parse:[`--ictcp`],serialize:`--ictcp`,toMode:{xyz65:convertItpToXyz65_default,rgb:color$2=>convertXyz65ToRgb_default(convertItpToXyz65_default(color$2))},fromMode:{xyz65:convertXyz65ToItp_default,rgb:color$2=>convertXyz65ToItp_default(convertRgbToXyz65_default(color$2))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:interpolatorLinear,t:interpolatorLinear,p:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$8=definition$18;const p$2=134.03437499999998,d0$1=16295499532821565e-27,jabPqEncode=v$1=>{if(v$1<0)return 0;let vn$3=(v$1/1e4)**M1;return((C1+C2*vn$3)/(1+C3*vn$3))**+p$2},abs=(v$1=0)=>Math.max(v$1*203,0),convertXyz65ToJab=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3=abs(x$3),y$2=abs(y$2),z$2=abs(z$2);let xp=1.15*x$3-.15*z$2,yp=.66*y$2+.34*x$3,l$1=jabPqEncode(.41478972*xp+.579999*yp+.014648*z$2),m$2=jabPqEncode(-.20151*xp+1.120649*yp+.0531008*z$2),s$1=jabPqEncode(-.0166008*xp+.2648*yp+.6684799*z$2),i$1=(l$1+m$2)/2,res={mode:`jab`,j:.44*i$1/(1-.56*i$1)-d0$1,a:3.524*l$1-4.066708*m$2+.542708*s$1,b:.199076*l$1+1.096799*m$2-1.295875*s$1};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToJab_default=convertXyz65ToJab;const p$1=134.03437499999998,d0=16295499532821565e-27,jabPqDecode=v$1=>{if(v$1<0)return 0;let vp=v$1**(1/p$1);return 1e4*((C1-vp)/(C3*vp-C2))**(1/M1)},rel=v$1=>v$1/203,convertJabToXyz65=({j:j$1,a:a$2,b:b$3,alpha:alpha$1})=>{j$1===void 0&&(j$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let i$1=(j$1+d0)/(.44+.56*(j$1+d0)),l$1=jabPqDecode(i$1+.13860504*a$2+.058047316*b$3),m$2=jabPqDecode(i$1-.13860504*a$2-.058047316*b$3),s$1=jabPqDecode(i$1-.096019242*a$2-.8118919*b$3),res={mode:`xyz65`,x:rel(1.661373024652174*l$1-.914523081304348*m$2+.23136208173913045*s$1),y:rel(-.3250758611844533*l$1+1.571847026732543*m$2-.21825383453227928*s$1),z:rel(-.090982811*l$1-.31272829*m$2+1.5227666*s$1)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertJabToXyz65_default=convertJabToXyz65;const convertRgbToJab=rgb$2=>{let res=convertXyz65ToJab_default(convertRgbToXyz65_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToJab_default=convertRgbToJab;const convertJabToRgb=color$2=>convertXyz65ToRgb_default(convertJabToXyz65_default(color$2));var convertJabToRgb_default=convertJabToRgb;const definition$17={mode:`jab`,channels:[`j`,`a`,`b`,`alpha`],parse:[`--jzazbz`],serialize:`--jzazbz`,fromMode:{rgb:convertRgbToJab_default,xyz65:convertXyz65ToJab_default},toMode:{rgb:convertJabToRgb_default,xyz65:convertJabToXyz65_default},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:interpolatorLinear,a:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$9=definition$17;const convertJabToJch=({j:j$1,a:a$2,b:b$3,alpha:alpha$1})=>{a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let c$4=Math.sqrt(a$2*a$2+b$3*b$3),res={mode:`jch`,j:j$1,c:c$4};return c$4&&(res.h=normalizeHue_default(Math.atan2(b$3,a$2)*180/Math.PI)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertJabToJch_default=convertJabToJch;const convertJchToJab=({j:j$1,c:c$4,h:h$3,alpha:alpha$1})=>{h$3===void 0&&(h$3=0);let res={mode:`jab`,j:j$1,a:c$4?c$4*Math.cos(h$3/180*Math.PI):0,b:c$4?c$4*Math.sin(h$3/180*Math.PI):0};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertJchToJab_default=convertJchToJab;const definition$16={mode:`jch`,parse:[`--jzczhz`],serialize:`--jzczhz`,toMode:{jab:convertJchToJab_default,rgb:c$4=>convertJabToRgb_default(convertJchToJab_default(c$4))},fromMode:{rgb:c$4=>convertJabToJch_default(convertRgbToJab_default(c$4)),jab:convertJabToJch_default},channels:[`j`,`c`,`h`,`alpha`],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},c:interpolatorLinear,j:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$10=definition$16;const k$1=29**3/3**3,e=6**3/29**3;let fn=v$1=>v$1**3>e?v$1**3:(116*v$1-16)/k$1;const convertLabToXyz50=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let fy=(l$1+16)/116,fx=a$2/500+fy,fz=fy-b$3/200,res={mode:`xyz50`,x:fn(fx)*D50.X,y:fn(fy)*D50.Y,z:fn(fz)*D50.Z};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLabToXyz50_default=convertLabToXyz50;const convertXyz50ToRgb=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res=convertLrgbToRgb_default({r:x$3*3.1341359569958707-y$2*1.6173863321612538-.4906619460083532*z$2,g:x$3*-.978795502912089+y$2*1.916254567259524+.03344273116131949*z$2,b:x$3*.07195537988411677-y$2*.2289768264158322+1.405386058324125*z$2});return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToRgb_default=convertXyz50ToRgb;const convertLabToRgb=lab$1=>convertXyz50ToRgb_default(convertLabToXyz50_default(lab$1));var convertLabToRgb_default=convertLabToRgb;const convertRgbToXyz50=rgb$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(rgb$2),res={mode:`xyz50`,x:.436065742824811*r$2+.3851514688337912*g$2+.14307845442264197*b$3,y:.22249319175623702*r$2+.7168870538238823*g$2+.06061979053616537*b$3,z:.013923904500943465*r$2+.09708128566574634*g$2+.7140993584005155*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToXyz50_default=convertRgbToXyz50;const f$1=value$1=>value$1>e?Math.cbrt(value$1):(k$1*value$1+16)/116,convertXyz50ToLab=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let f0=f$1(x$3/D50.X),f1=f$1(y$2/D50.Y),f2=f$1(z$2/D50.Z),res={mode:`lab`,l:116*f1-16,a:500*(f0-f1),b:200*(f1-f2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToLab_default=convertXyz50ToLab;const convertRgbToLab=rgb$2=>{let res=convertXyz50ToLab_default(convertRgbToXyz50_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToLab_default=convertRgbToLab;function parseLab(color$2,parsed){if(!parsed||parsed[0]!==`lab`)return;let res={mode:`lab`},[,l$1,a$2,b$3,alpha$1]=parsed;if(!(l$1.type===Tok.Hue||a$2.type===Tok.Hue||b$3.type===Tok.Hue))return l$1.type!==Tok.None&&(res.l=Math.min(Math.max(0,l$1.value),100)),a$2.type!==Tok.None&&(res.a=a$2.type===Tok.Number?a$2.value:a$2.value*125/100),b$3.type!==Tok.None&&(res.b=b$3.type===Tok.Number?b$3.value:b$3.value*125/100),alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseLab_default=parseLab;const definition$15={mode:`lab`,toMode:{xyz50:convertLabToXyz50_default,rgb:convertLabToRgb_default},fromMode:{xyz50:convertXyz50ToLab_default,rgb:convertRgbToLab_default},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[parseLab_default],serialize:c$4=>`lab(${c$4.l===void 0?`none`:c$4.l} ${c$4.a===void 0?`none`:c$4.a} ${c$4.b===void 0?`none`:c$4.b}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{l:interpolatorLinear,a:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$11=definition$15;const definition$14={...definition_default$11,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:convertLab65ToXyz65_default,rgb:convertLab65ToRgb_default},fromMode:{xyz65:convertXyz65ToLab65_default,rgb:convertRgbToLab65_default},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};var definition_default$12=definition$14;function parseLch(color$2,parsed){if(!parsed||parsed[0]!==`lch`)return;let res={mode:`lch`},[,l$1,c$4,h$3,alpha$1]=parsed;if(l$1.type!==Tok.None){if(l$1.type===Tok.Hue)return;res.l=Math.min(Math.max(0,l$1.value),100)}if(c$4.type!==Tok.None&&(res.c=Math.max(0,c$4.type===Tok.Number?c$4.value:c$4.value*150/100)),h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseLch_default=parseLch;const definition$13={mode:`lch`,toMode:{lab:convertLchToLab_default,rgb:c$4=>convertLabToRgb_default(convertLchToLab_default(c$4))},fromMode:{rgb:c$4=>convertLabToLch_default(convertRgbToLab_default(c$4)),lab:convertLabToLch_default},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[parseLch_default],serialize:c$4=>`lch(${c$4.l===void 0?`none`:c$4.l} ${c$4.c===void 0?`none`:c$4.c} ${c$4.h===void 0?`none`:c$4.h}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},c:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$13=definition$13;const definition$12={...definition_default$13,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:c$4=>convertLchToLab_default(c$4,`lab65`),rgb:c$4=>convertLab65ToRgb_default(convertLchToLab_default(c$4,`lab65`))},fromMode:{rgb:c$4=>convertLabToLch_default(convertRgbToLab65_default(c$4),`lch65`),lab65:c$4=>convertLabToLch_default(c$4,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}};var definition_default$14=definition$12;const convertLuvToLchuv=({l:l$1,u:u$1,v:v$1,alpha:alpha$1})=>{u$1===void 0&&(u$1=0),v$1===void 0&&(v$1=0);let c$4=Math.sqrt(u$1*u$1+v$1*v$1),res={mode:`lchuv`,l:l$1,c:c$4};return c$4&&(res.h=normalizeHue_default(Math.atan2(v$1,u$1)*180/Math.PI)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLuvToLchuv_default=convertLuvToLchuv;const convertLchuvToLuv=({l:l$1,c:c$4,h:h$3,alpha:alpha$1})=>{h$3===void 0&&(h$3=0);let res={mode:`luv`,l:l$1,u:c$4?c$4*Math.cos(h$3/180*Math.PI):0,v:c$4?c$4*Math.sin(h$3/180*Math.PI):0};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLchuvToLuv_default=convertLchuvToLuv;const u_fn$1=(x$3,y$2,z$2)=>4*x$3/(x$3+15*y$2+3*z$2),v_fn$1=(x$3,y$2,z$2)=>9*y$2/(x$3+15*y$2+3*z$2),un$1=u_fn$1(D50.X,D50.Y,D50.Z),vn$1=v_fn$1(D50.X,D50.Y,D50.Z),l_fn=value$1=>value$1<=e?k$1*value$1:116*Math.cbrt(value$1)-16,convertXyz50ToLuv=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let l$1=l_fn(y$2/D50.Y),u$1=u_fn$1(x$3,y$2,z$2),v$1=v_fn$1(x$3,y$2,z$2);!isFinite(u$1)||!isFinite(v$1)?l$1=u$1=v$1=0:(u$1=13*l$1*(u$1-un$1),v$1=13*l$1*(v$1-vn$1));let res={mode:`luv`,l:l$1,u:u$1,v:v$1};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToLuv_default=convertXyz50ToLuv;const u_fn=(x$3,y$2,z$2)=>4*x$3/(x$3+15*y$2+3*z$2),v_fn=(x$3,y$2,z$2)=>9*y$2/(x$3+15*y$2+3*z$2),un=u_fn(D50.X,D50.Y,D50.Z),vn=v_fn(D50.X,D50.Y,D50.Z),convertLuvToXyz50=({l:l$1,u:u$1,v:v$1,alpha:alpha$1})=>{if(l$1===void 0&&(l$1=0),l$1===0)return{mode:`xyz50`,x:0,y:0,z:0};u$1===void 0&&(u$1=0),v$1===void 0&&(v$1=0);let up=u$1/(13*l$1)+un,vp=v$1/(13*l$1)+vn,y$2=D50.Y*(l$1<=8?l$1/k$1:((l$1+16)/116)**3),x$3=y$2*(9*up)/(4*vp),z$2=y$2*(12-3*up-20*vp)/(4*vp),res={mode:`xyz50`,x:x$3,y:y$2,z:z$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLuvToXyz50_default=convertLuvToXyz50;const convertRgbToLchuv=rgb$2=>convertLuvToLchuv_default(convertXyz50ToLuv_default(convertRgbToXyz50_default(rgb$2))),convertLchuvToRgb=lchuv$1=>convertXyz50ToRgb_default(convertLuvToXyz50_default(convertLchuvToLuv_default(lchuv$1))),definition$11={mode:`lchuv`,toMode:{luv:convertLchuvToLuv_default,rgb:convertLchuvToRgb},fromMode:{rgb:convertRgbToLchuv,luv:convertLuvToLchuv_default},channels:[`l`,`c`,`h`,`alpha`],parse:[`--lchuv`],serialize:`--lchuv`,ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},c:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$15=definition$11;const definition$10={...definition_default$23,mode:`lrgb`,toMode:{rgb:convertLrgbToRgb_default},fromMode:{rgb:convertRgbToLrgb_default},parse:[`srgb-linear`],serialize:`srgb-linear`};var definition_default$16=definition$10;const definition$9={mode:`luv`,toMode:{xyz50:convertLuvToXyz50_default,rgb:luv$1=>convertXyz50ToRgb_default(convertLuvToXyz50_default(luv$1))},fromMode:{xyz50:convertXyz50ToLuv_default,rgb:rgb$2=>convertXyz50ToLuv_default(convertRgbToXyz50_default(rgb$2))},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:interpolatorLinear,u:interpolatorLinear,v:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$17=definition$9;const convertLrgbToOklab=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let L$1=Math.cbrt(.412221469470763*r$2+.5363325372617348*g$2+.0514459932675022*b$3),M$1=Math.cbrt(.2119034958178252*r$2+.6806995506452344*g$2+.1073969535369406*b$3),S$2=Math.cbrt(.0883024591900564*r$2+.2817188391361215*g$2+.6299787016738222*b$3),res={mode:`oklab`,l:.210454268309314*L$1+.7936177747023054*M$1-.0040720430116193*S$2,a:1.9779985324311684*L$1-2.42859224204858*M$1+.450593709617411*S$2,b:.0259040424655478*L$1+.7827717124575296*M$1-.8086757549230774*S$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLrgbToOklab_default=convertLrgbToOklab;const convertRgbToOklab=rgb$2=>{let res=convertLrgbToOklab_default(convertRgbToLrgb_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToOklab_default=convertRgbToOklab;const convertOklabToLrgb=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let L$1=(l$1+.3963377773761749*a$2+.2158037573099136*b$3)**3,M$1=(l$1-.1055613458156586*a$2-.0638541728258133*b$3)**3,S$2=(l$1-.0894841775298119*a$2-1.2914855480194092*b$3)**3,res={mode:`lrgb`,r:4.076741636075957*L$1-3.3077115392580616*M$1+.2309699031821044*S$2,g:-1.2684379732850317*L$1+2.6097573492876887*M$1-.3413193760026573*S$2,b:-.0041960761386756*L$1-.7034186179359362*M$1+1.7076146940746117*S$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertOklabToLrgb_default=convertOklabToLrgb;const convertOklabToRgb=c$4=>convertLrgbToRgb_default(convertOklabToLrgb_default(c$4));var convertOklabToRgb_default=convertOklabToRgb;function toe(x$3){let k_1=.206,k_2=.03,k_3=(1+k_1)/(1+k_2);return .5*(k_3*x$3-k_1+Math.sqrt((k_3*x$3-k_1)*(k_3*x$3-k_1)+4*k_2*k_3*x$3))}function toe_inv(x$3){let k_1=.206,k_2=.03,k_3=(1+k_1)/(1+k_2);return(x$3*x$3+k_1*x$3)/(k_3*(x$3+k_2))}function compute_max_saturation(a$2,b$3){let k0,k1,k2,k3,k4,wl,wm,ws;-1.88170328*a$2-.80936493*b$3>1?(k0=1.19086277,k1=1.76576728,k2=.59662641,k3=.75515197,k4=.56771245,wl=4.0767416621,wm=-3.3077115913,ws=.2309699292):1.81444104*a$2-1.19445276*b$3>1?(k0=.73956515,k1=-.45954404,k2=.08285427,k3=.1254107,k4=.14503204,wl=-1.2684380046,wm=2.6097574011,ws=-.3413193965):(k0=1.35733652,k1=-.00915799,k2=-1.1513021,k3=-.50559606,k4=.00692167,wl=-.0041960863,wm=-.7034186147,ws=1.707614701);let S$2=k0+k1*a$2+k2*b$3+k3*a$2*a$2+k4*a$2*b$3,k_l=.3963377774*a$2+.2158037573*b$3,k_m=-.1055613458*a$2-.0638541728*b$3,k_s=-.0894841775*a$2-1.291485548*b$3;{let l_=1+S$2*k_l,m_=1+S$2*k_m,s_=1+S$2*k_s,l$1=l_*l_*l_,m$2=m_*m_*m_,s$1=s_*s_*s_,l_dS=3*k_l*l_*l_,m_dS=3*k_m*m_*m_,s_dS=3*k_s*s_*s_,l_dS2=6*k_l*k_l*l_,m_dS2=6*k_m*k_m*m_,s_dS2=6*k_s*k_s*s_,f$3=wl*l$1+wm*m$2+ws*s$1,f1=wl*l_dS+wm*m_dS+ws*s_dS,f2=wl*l_dS2+wm*m_dS2+ws*s_dS2;S$2-=f$3*f1/(f1*f1-.5*f$3*f2)}return S$2}function find_cusp(a$2,b$3){let S_cusp=compute_max_saturation(a$2,b$3),rgb$2=convertOklabToLrgb_default({l:1,a:S_cusp*a$2,b:S_cusp*b$3}),L_cusp=Math.cbrt(1/Math.max(rgb$2.r,rgb$2.g,rgb$2.b)),C_cusp=L_cusp*S_cusp;return[L_cusp,C_cusp]}function find_gamut_intersection(a$2,b$3,L1,C1$1,L0,cusp=null){cusp||=find_cusp(a$2,b$3);let t;if((L1-L0)*cusp[1]-(cusp[0]-L0)*C1$1<=0)t=cusp[1]*L0/(C1$1*cusp[0]+cusp[1]*(L0-L1));else{t=cusp[1]*(L0-1)/(C1$1*(cusp[0]-1)+cusp[1]*(L0-L1));{let dL=L1-L0,dC=C1$1,k_l=.3963377774*a$2+.2158037573*b$3,k_m=-.1055613458*a$2-.0638541728*b$3,k_s=-.0894841775*a$2-1.291485548*b$3,l_dt=dL+dC*k_l,m_dt=dL+dC*k_m,s_dt=dL+dC*k_s;{let L$1=L0*(1-t)+t*L1,C$2=t*C1$1,l_=L$1+C$2*k_l,m_=L$1+C$2*k_m,s_=L$1+C$2*k_s,l$1=l_*l_*l_,m$2=m_*m_*m_,s$1=s_*s_*s_,ldt=3*l_dt*l_*l_,mdt=3*m_dt*m_*m_,sdt=3*s_dt*s_*s_,ldt2=6*l_dt*l_dt*l_,mdt2=6*m_dt*m_dt*m_,sdt2=6*s_dt*s_dt*s_,r$2=4.0767416621*l$1-3.3077115913*m$2+.2309699292*s$1-1,r1=4.0767416621*ldt-3.3077115913*mdt+.2309699292*sdt,r2=4.0767416621*ldt2-3.3077115913*mdt2+.2309699292*sdt2,u_r=r1/(r1*r1-.5*r$2*r2),t_r=-r$2*u_r,g$2=-1.2684380046*l$1+2.6097574011*m$2-.3413193965*s$1-1,g1=-1.2684380046*ldt+2.6097574011*mdt-.3413193965*sdt,g2=-1.2684380046*ldt2+2.6097574011*mdt2-.3413193965*sdt2,u_g=g1/(g1*g1-.5*g$2*g2),t_g=-g$2*u_g,b$4=-.0041960863*l$1-.7034186147*m$2+1.707614701*s$1-1,b1=-.0041960863*ldt-.7034186147*mdt+1.707614701*sdt,b2=-.0041960863*ldt2-.7034186147*mdt2+1.707614701*sdt2,u_b=b1/(b1*b1-.5*b$4*b2),t_b=-b$4*u_b;t_r=u_r>=0?t_r:1e6,t_g=u_g>=0?t_g:1e6,t_b=u_b>=0?t_b:1e6,t+=Math.min(t_r,Math.min(t_g,t_b))}}}return t}function get_ST_max(a_,b_,cusp=null){cusp||=find_cusp(a_,b_);let L$1=cusp[0],C$2=cusp[1];return[C$2/L$1,C$2/(1-L$1)]}function get_Cs(L$1,a_,b_){let cusp=find_cusp(a_,b_),C_max=find_gamut_intersection(a_,b_,L$1,1,L$1,cusp),ST_max=get_ST_max(a_,b_,cusp),S_mid=.11516993+1/(7.4477897+4.1590124*b_+a_*(-2.19557347+1.75198401*b_+a_*(-2.13704948-10.02301043*b_+a_*(-4.24894561+5.38770819*b_+4.69891013*a_)))),T_mid=.11239642+1/(1.6132032-.68124379*b_+a_*(.40370612+.90148123*b_+a_*(-.27087943+.6122399*b_+a_*(.00299215-.45399568*b_-.14661872*a_)))),k$4=C_max/Math.min(L$1*ST_max[0],(1-L$1)*ST_max[1]),C_a=L$1*S_mid,C_b=(1-L$1)*T_mid,C_mid=.9*k$4*Math.sqrt(Math.sqrt(1/(1/(C_a*C_a*C_a*C_a)+1/(C_b*C_b*C_b*C_b))));C_a=L$1*.4,C_b=(1-L$1)*.8;let C_0=Math.sqrt(1/(1/(C_a*C_a)+1/(C_b*C_b)));return[C_0,C_mid,C_max]}function convertOklabToOkhsl(lab$1){let l$1=lab$1.l===void 0?0:lab$1.l,a$2=lab$1.a===void 0?0:lab$1.a,b$3=lab$1.b===void 0?0:lab$1.b,ret={mode:`okhsl`,l:toe(l$1)};lab$1.alpha!==void 0&&(ret.alpha=lab$1.alpha);let c$4=Math.sqrt(a$2*a$2+b$3*b$3);if(!c$4)return ret.s=0,ret;let[C_0,C_mid,C_max]=get_Cs(l$1,a$2/c$4,b$3/c$4),s$1;if(c$4convertOklabToOkhsl(convertRgbToOklab_default(c$4))},toMode:{oklab:convertOkhslToOklab,rgb:c$4=>convertOklabToRgb_default(convertOkhslToOklab(c$4))}};var modeOkhsl_default=modeOkhsl;function convertOklabToOkhsv(lab$1){let l$1=lab$1.l===void 0?0:lab$1.l,a$2=lab$1.a===void 0?0:lab$1.a,b$3=lab$1.b===void 0?0:lab$1.b,c$4=Math.sqrt(a$2*a$2+b$3*b$3),a_=c$4?a$2/c$4:1,b_=c$4?b$3/c$4:1,[S_max,T$1]=get_ST_max(a_,b_),S_0=.5,k$4=1-S_0/S_max,t=T$1/(c$4+l$1*T$1),L_v=t*l$1,C_v=t*c$4,L_vt=toe_inv(L_v),C_vt=C_v*L_vt/L_v,rgb_scale=convertOklabToLrgb_default({l:L_vt,a:a_*C_vt,b:b_*C_vt}),scale_L=Math.cbrt(1/Math.max(rgb_scale.r,rgb_scale.g,rgb_scale.b,0));l$1/=scale_L,c$4=c$4/scale_L*toe(l$1)/l$1,l$1=toe(l$1);let ret={mode:`okhsv`,s:c$4?(S_0+T$1)*C_v/(T$1*S_0+T$1*k$4*C_v):0,v:l$1?l$1/L_v:0};return ret.s&&(ret.h=normalizeHue_default(Math.atan2(b$3,a$2)*180/Math.PI)),lab$1.alpha!==void 0&&(ret.alpha=lab$1.alpha),ret}function convertOkhsvToOklab(hsv$1){let ret={mode:`oklab`};hsv$1.alpha!==void 0&&(ret.alpha=hsv$1.alpha);let h$3=hsv$1.h===void 0?0:hsv$1.h,s$1=hsv$1.s===void 0?0:hsv$1.s,v$1=hsv$1.v===void 0?0:hsv$1.v,a_=Math.cos(h$3/180*Math.PI),b_=Math.sin(h$3/180*Math.PI),[S_max,T$1]=get_ST_max(a_,b_),S_0=.5,k$4=1-S_0/S_max,L_v=1-s$1*S_0/(S_0+T$1-T$1*k$4*s$1),C_v=s$1*T$1*S_0/(S_0+T$1-T$1*k$4*s$1),L_vt=toe_inv(L_v),C_vt=C_v*L_vt/L_v,rgb_scale=convertOklabToLrgb_default({l:L_vt,a:a_*C_vt,b:b_*C_vt}),scale_L=Math.cbrt(1/Math.max(rgb_scale.r,rgb_scale.g,rgb_scale.b,0)),L_new=toe_inv(v$1*L_v),C$2=C_v*L_new/L_v;return ret.l=L_new*scale_L,ret.a=C$2*a_*scale_L,ret.b=C$2*b_*scale_L,ret}const modeOkhsv={...definition_default$6,mode:`okhsv`,channels:[`h`,`s`,`v`,`alpha`],parse:[`--okhsv`],serialize:`--okhsv`,fromMode:{oklab:convertOklabToOkhsv,rgb:c$4=>convertOklabToOkhsv(convertRgbToOklab_default(c$4))},toMode:{oklab:convertOkhsvToOklab,rgb:c$4=>convertOklabToRgb_default(convertOkhsvToOklab(c$4))}};var modeOkhsv_default=modeOkhsv;function parseOklab(color$2,parsed){if(!parsed||parsed[0]!==`oklab`)return;let res={mode:`oklab`},[,l$1,a$2,b$3,alpha$1]=parsed;if(!(l$1.type===Tok.Hue||a$2.type===Tok.Hue||b$3.type===Tok.Hue))return l$1.type!==Tok.None&&(res.l=Math.min(Math.max(0,l$1.type===Tok.Number?l$1.value:l$1.value/100),1)),a$2.type!==Tok.None&&(res.a=a$2.type===Tok.Number?a$2.value:a$2.value*.4/100),b$3.type!==Tok.None&&(res.b=b$3.type===Tok.Number?b$3.value:b$3.value*.4/100),alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseOklab_default=parseOklab;const definition$8={...definition_default$11,mode:`oklab`,toMode:{lrgb:convertOklabToLrgb_default,rgb:convertOklabToRgb_default},fromMode:{lrgb:convertLrgbToOklab_default,rgb:convertRgbToOklab_default},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[parseOklab_default],serialize:c$4=>`oklab(${c$4.l===void 0?`none`:c$4.l} ${c$4.a===void 0?`none`:c$4.a} ${c$4.b===void 0?`none`:c$4.b}${c$4.alpha<1?` / ${c$4.alpha}`:``})`};var definition_default$18=definition$8;function parseOklch(color$2,parsed){if(!parsed||parsed[0]!==`oklch`)return;let res={mode:`oklch`},[,l$1,c$4,h$3,alpha$1]=parsed;if(l$1.type!==Tok.None){if(l$1.type===Tok.Hue)return;res.l=Math.min(Math.max(0,l$1.type===Tok.Number?l$1.value:l$1.value/100),1)}if(c$4.type!==Tok.None&&(res.c=Math.max(0,c$4.type===Tok.Number?c$4.value:c$4.value*.4/100)),h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseOklch_default=parseOklch;const definition$7={...definition_default$13,mode:`oklch`,toMode:{oklab:c$4=>convertLchToLab_default(c$4,`oklab`),rgb:c$4=>convertOklabToRgb_default(convertLchToLab_default(c$4,`oklab`))},fromMode:{rgb:c$4=>convertLabToLch_default(convertRgbToOklab_default(c$4),`oklch`),oklab:c$4=>convertLabToLch_default(c$4,`oklch`)},parse:[parseOklch_default],serialize:c$4=>`oklch(${c$4.l===void 0?`none`:c$4.l} ${c$4.c===void 0?`none`:c$4.c} ${c$4.h===void 0?`none`:c$4.h}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}};var definition_default$19=definition$7;const convertP3ToXyz65=rgb$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(rgb$2),res={mode:`xyz65`,x:.486570948648216*r$2+.265667693169093*g$2+.1982172852343625*b$3,y:.2289745640697487*r$2+.6917385218365062*g$2+.079286914093745*b$3,z:0*r$2+.0451133818589026*g$2+1.043944368900976*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertP3ToXyz65_default=convertP3ToXyz65;const convertXyz65ToP3=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res=convertLrgbToRgb_default({r:x$3*2.4934969119414263-y$2*.9313836179191242-.402710784450717*z$2,g:x$3*-.8294889695615749+y$2*1.7626640603183465+.0236246858419436*z$2,b:x$3*.0358458302437845-y$2*.0761723892680418+.9568845240076871*z$2},`p3`);return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToP3_default=convertXyz65ToP3;const definition$6={...definition_default$23,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:color$2=>convertXyz65ToP3_default(convertRgbToXyz65_default(color$2)),xyz65:convertXyz65ToP3_default},toMode:{rgb:color$2=>convertXyz65ToRgb_default(convertP3ToXyz65_default(color$2)),xyz65:convertP3ToXyz65_default}};var definition_default$20=definition$6;const gamma$1=v$1=>{let abs$1=Math.abs(v$1);return abs$1>=1/512?Math.sign(v$1)*abs$1**(1/1.8):16*v$1},convertXyz50ToProphoto=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`prophoto`,r:gamma$1(x$3*1.3457868816471585-y$2*.2555720873797946-.0511018649755453*z$2),g:gamma$1(x$3*-.5446307051249019+y$2*1.5082477428451466+.0205274474364214*z$2),b:gamma$1(x$3*0+y$2*0+1.2119675456389452*z$2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToProphoto_default=convertXyz50ToProphoto;const linearize$1=(v$1=0)=>{let abs$1=Math.abs(v$1);return abs$1>=16/512?Math.sign(v$1)*abs$1**1.8:v$1/16},convertProphotoToXyz50=prophoto$1=>{let r$2=linearize$1(prophoto$1.r),g$2=linearize$1(prophoto$1.g),b$3=linearize$1(prophoto$1.b),res={mode:`xyz50`,x:.7977666449006423*r$2+.1351812974005331*g$2+.0313477341283922*b$3,y:.2880748288194013*r$2+.7118352342418731*g$2+899369387256e-16*b$3,z:0*r$2+0*g$2+.8251046025104602*b$3};return prophoto$1.alpha!==void 0&&(res.alpha=prophoto$1.alpha),res};var convertProphotoToXyz50_default=convertProphotoToXyz50;const definition$5={...definition_default$23,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:convertXyz50ToProphoto_default,rgb:color$2=>convertXyz50ToProphoto_default(convertRgbToXyz50_default(color$2))},toMode:{xyz50:convertProphotoToXyz50_default,rgb:color$2=>convertXyz50ToRgb_default(convertProphotoToXyz50_default(color$2))}};var definition_default$21=definition$5;const α$1=1.09929682680944,β$1=.018053968510807,gamma=v$1=>{let abs$1=Math.abs(v$1);return abs$1>β$1?(Math.sign(v$1)||1)*(α$1*abs$1**.45-(α$1-1)):4.5*v$1},convertXyz65ToRec2020=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`rec2020`,r:gamma(x$3*1.7166511879712683-y$2*.3556707837763925-.2533662813736599*z$2),g:gamma(x$3*-.6666843518324893+y$2*1.6164812366349395+.0157685458139111*z$2),b:gamma(x$3*.0176398574453108-y$2*.0427706132578085+.9421031212354739*z$2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToRec2020_default=convertXyz65ToRec2020;const α=1.09929682680944,β=.018053968510807,linearize=(v$1=0)=>{let abs$1=Math.abs(v$1);return abs$1<β*4.5?v$1/4.5:(Math.sign(v$1)||1)*((abs$1+α-1)/α)**(1/.45)},convertRec2020ToXyz65=rec2020$1=>{let r$2=linearize(rec2020$1.r),g$2=linearize(rec2020$1.g),b$3=linearize(rec2020$1.b),res={mode:`xyz65`,x:.6369580483012911*r$2+.1446169035862083*g$2+.1688809751641721*b$3,y:.262700212011267*r$2+.6779980715188708*g$2+.059301716469862*b$3,z:0*r$2+.0280726930490874*g$2+1.0609850577107909*b$3};return rec2020$1.alpha!==void 0&&(res.alpha=rec2020$1.alpha),res};var convertRec2020ToXyz65_default=convertRec2020ToXyz65;const definition$4={...definition_default$23,mode:`rec2020`,fromMode:{xyz65:convertXyz65ToRec2020_default,rgb:color$2=>convertXyz65ToRec2020_default(convertRgbToXyz65_default(color$2))},toMode:{xyz65:convertRec2020ToXyz65_default,rgb:color$2=>convertXyz65ToRgb_default(convertRec2020ToXyz65_default(color$2))},parse:[`rec2020`],serialize:`rec2020`};var definition_default$22=definition$4;const bias=.0037930732552754493,bias_cbrt=Math.cbrt(bias),transfer$1=v$1=>Math.cbrt(v$1)-bias_cbrt,convertRgbToXyb=color$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(color$2),l$1=transfer$1(.3*r$2+.622*g$2+.078*b$3+bias),m$2=transfer$1(.23*r$2+.692*g$2+.078*b$3+bias),s$1=transfer$1(.2434226892454782*r$2+.2047674442449682*g$2+.5518098665095535*b$3+bias),res={mode:`xyb`,x:(l$1-m$2)/2,y:(l$1+m$2)/2,b:s$1-(l$1+m$2)/2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToXyb_default=convertRgbToXyb;const transfer=v$1=>(v$1+bias_cbrt)**3,convertXybToRgb=({x:x$3,y:y$2,b:b$3,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),b$3===void 0&&(b$3=0);let l$1=transfer(x$3+y$2)-bias,m$2=transfer(y$2-x$3)-bias,s$1=transfer(b$3+y$2)-bias,res=convertLrgbToRgb_default({r:11.031566904639861*l$1-9.866943908131562*m$2-.16462299650829934*s$1,g:-3.2541473810744237*l$1+4.418770377582723*m$2-.16462299650829934*s$1,b:-3.6588512867136815*l$1+2.7129230459360922*m$2+1.9459282407775895*s$1});return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXybToRgb_default=convertXybToRgb;const definition$3={mode:`xyb`,channels:[`x`,`y`,`b`,`alpha`],parse:[`--xyb`],serialize:`--xyb`,toMode:{rgb:convertXybToRgb_default},fromMode:{rgb:convertRgbToXyb_default},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:interpolatorLinear,y:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$24=definition$3;const definition$2={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:convertXyz50ToRgb_default,lab:convertXyz50ToLab_default},fromMode:{rgb:convertRgbToXyz50_default,lab:convertLabToXyz50_default},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:interpolatorLinear,y:interpolatorLinear,z:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$25=definition$2;const convertXyz65ToXyz50=xyz65$1=>{let{x:x$3,y:y$2,z:z$2,alpha:alpha$1}=xyz65$1;x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`xyz50`,x:1.0479298208405488*x$3+.0229467933410191*y$2-.0501922295431356*z$2,y:.0296278156881593*x$3+.990434484573249*y$2-.0170738250293851*z$2,z:-.0092430581525912*x$3+.0150551448965779*y$2+.7518742899580008*z$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToXyz50_default=convertXyz65ToXyz50;const convertXyz50ToXyz65=xyz50$1=>{let{x:x$3,y:y$2,z:z$2,alpha:alpha$1}=xyz50$1;x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`xyz65`,x:.9554734527042182*x$3-.0230985368742614*y$2+.0632593086610217*z$2,y:-.0283697069632081*x$3+1.0099954580058226*y$2+.021041398966943*z$2,z:.0123140016883199*x$3-.0205076964334779*y$2+1.3303659366080753*z$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToXyz65_default=convertXyz50ToXyz65;const definition$1={mode:`xyz65`,toMode:{rgb:convertXyz65ToRgb_default,xyz50:convertXyz65ToXyz50_default},fromMode:{rgb:convertRgbToXyz65_default,xyz50:convertXyz50ToXyz65_default},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:interpolatorLinear,y:interpolatorLinear,z:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$26=definition$1;const convertRgbToYiq=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let res={mode:`yiq`,y:.29889531*r$2+.58662247*g$2+.11448223*b$3,i:.59597799*r$2-.2741761*g$2-.32180189*b$3,q:.21147017*r$2-.52261711*g$2+.31114694*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToYiq_default=convertRgbToYiq;const convertYiqToRgb=({y:y$2,i:i$1,q:q$1,alpha:alpha$1})=>{y$2===void 0&&(y$2=0),i$1===void 0&&(i$1=0),q$1===void 0&&(q$1=0);let res={mode:`rgb`,r:y$2+.95608445*i$1+.6208885*q$1,g:y$2-.27137664*i$1-.6486059*q$1,b:y$2-1.10561724*i$1+1.70250126*q$1};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertYiqToRgb_default=convertYiqToRgb;const definition={mode:`yiq`,toMode:{rgb:convertYiqToRgb_default},fromMode:{rgb:convertRgbToYiq_default},channels:[`y`,`i`,`q`,`alpha`],parse:[`--yiq`],serialize:`--yiq`,ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:interpolatorLinear,i:interpolatorLinear,q:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$27=definition;const r$1=(value$1,precision)=>Math.round(value$1*(precision=10**precision))/precision,round=(precision=4)=>value$1=>typeof value$1==`number`?r$1(value$1,precision):value$1;var round_default=round;let twoDecimals=round_default(2);const clamp=value$1=>Math.max(0,Math.min(1,value$1||0)),fixup=value$1=>Math.round(clamp(value$1)*255),rgb$1=converter_default(`rgb`),hsl$1=converter_default(`hsl`),serializeHex=color$2=>{if(color$2===void 0)return;let r$2=fixup(color$2.r),g$2=fixup(color$2.g),b$3=fixup(color$2.b);return`#`+(1<<24|r$2<<16|g$2<<8|b$3).toString(16).slice(1)},formatCss=c$4=>{let color$2=_prepare_default(c$4);if(!color$2)return;let def$1=getMode(color$2.mode);if(!def$1.serialize||typeof def$1.serialize==`string`){let res=`color(${def$1.serialize||`--${color$2.mode}`} `;return def$1.channels.forEach((ch,i$1)=>{ch!==`alpha`&&(res+=(i$1?` `:``)+(color$2[ch]===void 0?`none`:color$2[ch]))}),color$2.alpha!==void 0&&color$2.alpha<1&&(res+=` / ${color$2.alpha}`),res+`)`}if(typeof def$1.serialize==`function`)return def$1.serialize(color$2)},formatHex=c$4=>serializeHex(rgb$1(c$4)),a98=useMode(definition_default),cubehelix=useMode(definition_default$1),dlab=useMode(definition_default$2),dlch=useMode(definition_default$3),hsi=useMode(definition_default$4),hsl=useMode(definition_default$5),hsv=useMode(definition_default$6),hwb=useMode(definition_default$7),itp=useMode(definition_default$8),jab=useMode(definition_default$9),jch=useMode(definition_default$10),lab=useMode(definition_default$11),lab65=useMode(definition_default$12),lch=useMode(definition_default$13),lch65=useMode(definition_default$14),lchuv=useMode(definition_default$15),lrgb=useMode(definition_default$16),luv=useMode(definition_default$17),okhsl=useMode(modeOkhsl_default),okhsv=useMode(modeOkhsv_default),oklab=useMode(definition_default$18),oklch=useMode(definition_default$19),p3=useMode(definition_default$20),prophoto=useMode(definition_default$21),rec2020=useMode(definition_default$22),rgb=useMode(definition_default$23),xyb=useMode(definition_default$24),xyz50=useMode(definition_default$25),xyz65=useMode(definition_default$26),yiq=useMode(definition_default$27),DEFAULT_THEME_COLORS_HUE=220.44,convert=converter_default(`oklch`),getHueFrom=color$2=>{var _convert;return color$2?(_convert=convert(color$2))?.h:DEFAULT_THEME_COLORS_HUE},useSettings=defineStore(`settings`,()=>{let selectedAudioDevice=ref(),language=useLocalStorage(`settings/language`,`en`),stageView=useLocalStorage(`settings/stage/view/model-renderer`,`2d`),isAudioInputOn=useLocalStorage(`settings/audio/input`,`false`),selectedAudioDeviceId=computed(()=>{var _selectedAudioDevice$;return(_selectedAudioDevice$=selectedAudioDevice.value)?.deviceId}),{audioInputs,ensurePermissions}=useDevicesList({constraints:{audio:!0}}),live2dModelFile=ref(),live2dModelUrl=ref(`/assets/live2d/models/hiyori_pro_zh.zip`),live2dLoadSource=ref(`url`),loadingLive2dModel=ref(!1),live2dPosition=useLocalStorage(`settings/live2d/position`,{x:0,y:0}),live2dCurrentMotion=ref({group:`Idle`,index:0}),availableLive2dMotions=ref([]),live2dMotionMap=useLocalStorage(`settings/live2d/motion-map`,{}),disableTransitions=useLocalStorage(`settings/disable-transitions`,!0),usePageSpecificTransitions=useLocalStorage(`settings/use-page-specific-transitions`,!0),themeColorsHue=useLocalStorage(`settings/theme/colors/hue`,DEFAULT_THEME_COLORS_HUE),themeColorsHueDynamic=useLocalStorage(`settings/theme/colors/hue-dynamic`,!1),allowVisibleOnAllWorkspaces=useLocalStorage(`settings/allow-visible-on-all-workspaces`,!0);function setThemeColorsHue(hue$2=DEFAULT_THEME_COLORS_HUE){themeColorsHue.value=hue$2,themeColorsHueDynamic.value=!1}function applyPrimaryColorFrom(color$2){setThemeColorsHue(getHueFrom(color$2))}function isColorSelectedForPrimary(hexColor){if(themeColorsHueDynamic.value)return!1;let h$3=getHueFrom(hexColor);if(!h$3)return!1;let hueDifference=Math.abs(h$3-themeColorsHue.value);return hueDifference<.01||hueDifference>359.99}return watch(isAudioInputOn,value$1=>{value$1===`false`&&(selectedAudioDevice.value=void 0),value$1===`true`&&ensurePermissions().then(()=>{selectedAudioDevice.value=audioInputs.value[0]})}),watch(audioInputs,()=>{isAudioInputOn.value===`true`&&!selectedAudioDevice.value&&(selectedAudioDevice.value=audioInputs.value[0])},{immediate:!0}),{live2dModelFile,live2dModelUrl,live2dLoadSource,live2dCurrentMotion,live2dPosition,availableLive2dMotions,live2dMotionMap,loadingLive2dModel,disableTransitions,usePageSpecificTransitions,language,stageView,themeColorsHue,themeColorsHueDynamic,isAudioInputOn,selectedAudioDevice,selectedAudioDeviceId,allowVisibleOnAllWorkspaces,setThemeColorsHue,applyPrimaryColorFrom,isColorSelectedForPrimary}}),closed=`0px`;var TransitionVertical_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`TransitionVertical`,props:{duration:{default:250},easingEnter:{default:`ease-in-out`},easingLeave:{default:`ease-in-out`},opacityClosed:{default:0},opacityOpened:{default:1}},setup(__props){let props=__props;function getElementStyle(element$3){return{height:element$3.style.height,width:element$3.style.width,position:element$3.style.position,visibility:element$3.style.visibility,overflow:element$3.style.overflow,paddingTop:element$3.style.paddingTop,paddingBottom:element$3.style.paddingBottom,borderTopWidth:element$3.style.borderTopWidth,borderBottomWidth:element$3.style.borderBottomWidth,marginTop:element$3.style.marginTop,marginBottom:element$3.style.marginBottom}}function prepareElement(element$3,initialStyle){let{width}=getComputedStyle(element$3);element$3.style.width=width,element$3.style.position=`absolute`,element$3.style.visibility=`hidden`,element$3.style.height=``;let{height}=getComputedStyle(element$3);return element$3.style.width=initialStyle.width,element$3.style.position=initialStyle.position,element$3.style.visibility=initialStyle.visibility,element$3.style.height=closed,element$3.style.overflow=`hidden`,initialStyle.height&&initialStyle.height!==closed?initialStyle.height:height}function animateTransition(element$3,initialStyle,done,keyframes$3,options$1){let animation=element$3.animate(keyframes$3,options$1);element$3.style.height=initialStyle.height,animation.onfinish=()=>{element$3.style.overflow=initialStyle.overflow,done()}}function getEnterKeyframes(height,initialStyle){return[{height:closed,opacity:props.opacityClosed,paddingTop:closed,paddingBottom:closed,borderTopWidth:closed,borderBottomWidth:closed,marginTop:closed,marginBottom:closed},{height,opacity:props.opacityOpened,paddingTop:initialStyle.paddingTop,paddingBottom:initialStyle.paddingBottom,borderTopWidth:initialStyle.borderTopWidth,borderBottomWidth:initialStyle.borderBottomWidth,marginTop:initialStyle.marginTop,marginBottom:initialStyle.marginBottom}]}function enterTransition(element$3,done){let HTMLElement$1=element$3,initialStyle=getElementStyle(HTMLElement$1),height=prepareElement(HTMLElement$1,initialStyle),keyframes$3=getEnterKeyframes(height,initialStyle),options$1={duration:props.duration,easing:props.easingEnter};animateTransition(HTMLElement$1,initialStyle,done,keyframes$3,options$1)}function leaveTransition(element$3,done){let HTMLElement$1=element$3,initialStyle=getElementStyle(HTMLElement$1),{height}=getComputedStyle(HTMLElement$1);HTMLElement$1.style.height=height,HTMLElement$1.style.overflow=`hidden`;let keyframes$3=getEnterKeyframes(height,initialStyle).reverse(),options$1={duration:props.duration,easing:props.easingLeave};animateTransition(HTMLElement$1,initialStyle,done,keyframes$3,options$1)}return(_ctx,_cache$1)=>(openBlock(),createBlock(Transition,{css:!1,onEnter:enterTransition,onLeave:leaveTransition},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3}))}}),TransitionVertical_default=TransitionVertical_vue_vue_type_script_setup_true_lang_default,Checkbox_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Checkbox`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(__props){let modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$4),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,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:withCtx(()=>[createVNode(unref(_sfc_main$5),{"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`]))}}),Checkbox_default=Checkbox_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$33={flex:`~ col gap-4`},_hoisted_2$24={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_3$21={flex:`1`},_hoisted_4$18={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_5$15={class:`text-xs text-neutral-500 dark:text-neutral-400`};var FieldCheckbox_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldCheckbox`,props:mergeModels({label:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,_hoisted_1$33,[createBaseVNode(`div`,_hoisted_2$24,[createBaseVNode(`div`,_hoisted_3$21,[createBaseVNode(`div`,_hoisted_4$18,toDisplayString(props.label),1),createBaseVNode(`div`,_hoisted_5$15,toDisplayString(props.description),1)]),createVNode(Checkbox_default,{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event},null,8,[`modelValue`])])]))}}),FieldCheckbox_default=FieldCheckbox_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$32=[`type`];var Input_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Input`,props:mergeModels({type:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>withDirectives((openBlock(),createElementBlock(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,type:props.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,_hoisted_1$32)),[[vModelDynamic,modelValue.value]])}}),Input_default=Input_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$31={"max-w-full":``},_hoisted_2$23={flex:`~ col gap-4`},_hoisted_3$20={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$17={key:0,class:`text-red-500`},_hoisted_5$14={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},_hoisted_6$13=[`type`,`placeholder`];var FieldInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldInput`,props:mergeModels({label:{},description:{},placeholder:{},required:{type:Boolean},type:{},inputClass:{},singleLine:{type:Boolean,default:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$31,[createBaseVNode(`label`,_hoisted_2$23,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_3$20,[createTextVNode(toDisplayString(props.label)+` `,1),props.required===!1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_4$17,`*`))]),createBaseVNode(`div`,_hoisted_5$14,toDisplayString(props.description),1)]),_ctx.singleLine?(openBlock(),createBlock(Input_default,{key:0,modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,type:props.type,placeholder:props.placeholder,class:normalizeClass(props.inputClass)},null,8,[`modelValue`,`type`,`placeholder`,`class`])):withDirectives((openBlock(),createElementBlock(`textarea`,{key:1,"onUpdate:modelValue":_cache$1[1]||=$event=>modelValue.value=$event,type:props.type,placeholder:props.placeholder,class:normalizeClass(props.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,_hoisted_6$13)),[[vModelText,modelValue.value]])])]))}}),FieldInput_default=FieldInput_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$30={flex:`~ gap-2`};var InputKeyValue_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`InputKeyValue`,props:mergeModels({name:{},keyPlaceholder:{},valuePlaceholder:{}},{propertyKey:{required:!0},propertyKeyModifiers:{},propertyValue:{required:!0},propertyValueModifiers:{}}),emits:[`update:propertyKey`,`update:propertyValue`],setup(__props){let props=__props,key$1=useModel(__props,`propertyKey`),value$1=useModel(__props,`propertyValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$30,[createVNode(Input_default,{modelValue:key$1.value,"onUpdate:modelValue":_cache$1[0]||=$event=>key$1.value=$event,placeholder:props.keyPlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`]),createVNode(Input_default,{modelValue:value$1.value,"onUpdate:modelValue":_cache$1[1]||=$event=>value$1.value=$event,placeholder:props.valuePlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`])]))}}),InputKeyValue_default=InputKeyValue_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$29={"max-w-full":``},_hoisted_2$22={flex:`~ col gap-2`},_hoisted_3$19={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$16={key:0,class:`text-red-500`},_hoisted_5$13={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},_hoisted_6$12={flex:`~ col gap-2`},_hoisted_7$11=[`onClick`];var FieldKeyValues_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldKeyValues`,props:mergeModels({label:{},description:{},name:{},keyPlaceholder:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels([`remove`,`add`],[`update:modelValue`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,keyValues=useModel(__props,`modelValue`),inputKey=ref(``),inputValue=ref(``);return watch([inputKey,inputValue],()=>{emit$1(`add`,inputKey.value,inputValue.value)}),(_ctx,_cache$1)=>{let _directive_auto_animate=resolveDirective(`auto-animate`);return openBlock(),createElementBlock(`div`,_hoisted_1$29,[createBaseVNode(`label`,_hoisted_2$22,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_3$19,[createTextVNode(toDisplayString(props.label)+` `,1),props.required===!1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_4$16,`*`))]),createBaseVNode(`div`,_hoisted_5$13,toDisplayString(props.description),1)]),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_6$12,[(openBlock(!0),createElementBlock(Fragment,null,renderList(keyValues.value,(keyValue,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,"w-full":``,flex:``,"items-center":``,"gap-2":``},[createVNode(InputKeyValue_default,{"property-key":keyValue.key,"onUpdate:propertyKey":$event=>keyValue.key=$event,"property-value":keyValue.value,"onUpdate:propertyValue":$event=>keyValue.value=$event,"key-placeholder":props.keyPlaceholder,"value-placeholder":props.valuePlaceholder,"w-full":``},null,8,[`property-key`,`onUpdate:propertyKey`,`property-value`,`onUpdate:propertyValue`,`key-placeholder`,`value-placeholder`]),createBaseVNode(`button`,{onClick:$event=>emit$1(`remove`,index$1)},_cache$1[0]||=[createBaseVNode(`div`,{"i-solar:minus-circle-line-duotone":``,size:`6`},null,-1)],8,_hoisted_7$11)]))),128))])),[[_directive_auto_animate]])])])}}}),FieldKeyValues_default=FieldKeyValues_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$28=[`min`,`max`,`step`];var Range_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Range`,props:mergeModels({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(__props){let props=__props,modelValue=useModel(__props,`modelValue`),scaledMin=computed(()=>props.min*1e4),scaledMax=computed(()=>props.max*1e4),scaledStep=computed(()=>props.step*1e4),sliderRef=ref(),sliderValue=computed({get:()=>modelValue.value*1e4,set:value$1=>{modelValue.value=value$1/1e4,updateTrackColor()}});onMounted(()=>{updateTrackColor()});function updateTrackColor(){sliderRef.value&&(sliderRef.value.style.setProperty(`--value`,sliderRef.value.value),sliderRef.value.style.setProperty(`--min`,sliderRef.value.min?sliderRef.value.min:props.min.toString()),sliderRef.value.style.setProperty(`--max`,sliderRef.value.max?sliderRef.value.max:props.max.toString()))}function handleInput(e$3){let target$1=e$3.target;target$1.style.setProperty(`--value`,target$1.value)}return(_ctx,_cache$1)=>withDirectives((openBlock(),createElementBlock(`input`,{ref_key:`sliderRef`,ref:sliderRef,"onUpdate:modelValue":_cache$1[0]||=$event=>sliderValue.value=$event,type:`range`,min:scaledMin.value,max:scaledMax.value,step:scaledStep.value,class:`slider-progress form_input-range`,onInput:handleInput},null,40,_hoisted_1$28)),[[vModelText,sliderValue.value,void 0,{number:!0}]])}}),__plugin_vue_export_helper_default=(sfc,props)=>{let target$1=sfc.__vccOpts||sfc;for(let[key$1,val]of props)target$1[key$1]=val;return target$1},Range_default=__plugin_vue_export_helper_default(Range_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-8956898c`]]);const _hoisted_1$27={flex:`~ col gap-4`},_hoisted_2$21={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_3$18={flex:`1`},_hoisted_4$15={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_5$12={class:`text-xs text-neutral-500 dark:text-neutral-400`},_hoisted_6$11={"font-mono":``},_hoisted_7$10={flex:`~ row`,"items-center":``,"gap-2":``};var FieldRange_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldRange`,props:mergeModels({min:{},max:{},step:{},label:{},description:{},formatValue:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>{var _props$formatValue;return openBlock(),createElementBlock(`label`,_hoisted_1$27,[createBaseVNode(`div`,_hoisted_2$21,[createBaseVNode(`div`,_hoisted_3$18,[createBaseVNode(`div`,_hoisted_4$15,toDisplayString(_ctx.label),1),createBaseVNode(`div`,_hoisted_5$12,toDisplayString(_ctx.description),1)]),createBaseVNode(`span`,_hoisted_6$11,toDisplayString((_props$formatValue=props.formatValue)?.call(props,modelValue.value)||modelValue.value),1)]),createBaseVNode(`div`,_hoisted_7$10,[createVNode(Range_default,{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,min:_ctx.min||0,max:_ctx.max||1,step:_ctx.step||.01,"w-full":``},null,8,[`modelValue`,`min`,`max`,`step`])])])}}}),FieldRange_default=FieldRange_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$26={flex:`~ col gap-4`},_hoisted_2$20={flex:`1`},_hoisted_3$17={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$14={class:`text-xs text-neutral-500 dark:text-neutral-400`};var FieldSelect_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldSelect`,props:mergeModels({label:{},description:{},options:{},placeholder:{},disabled:{type:Boolean},layout:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,_hoisted_1$26,[createBaseVNode(`div`,{class:normalizeClass([props.layout===`horizontal`?`flex flex-row items-center justify-between gap-2`:`flex flex-col items-start justify-center gap-2`])},[createBaseVNode(`div`,_hoisted_2$20,[createBaseVNode(`div`,_hoisted_3$17,toDisplayString(props.label),1),createBaseVNode(`div`,_hoisted_4$14,toDisplayString(props.description),1)]),renderSlot(_ctx.$slots,`default`,{},()=>[createVNode(unref(Select_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,options:props.options,placeholder:props.placeholder,disabled:props.disabled,title:_ctx.label},{default:withCtx(({value:value$1})=>{var _props$options;return[createTextVNode(toDisplayString(((_props$options=props.options)==null||(_props$options=_props$options.find(option$1=>option$1.value===value$1))==null?void 0:_props$options.label)||props.placeholder),1)]}),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`,`title`])])],2)]))}}),FieldSelect_default=FieldSelect_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$25={class:`max-w-full`},_hoisted_2$19={class:`flex flex-col gap-2`},_hoisted_3$16={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$13={key:0,class:`text-red-500`},_hoisted_5$11={class:`text-nowrap text-xs text-neutral-500 dark:text-neutral-400`},_hoisted_6$10={class:`~ col gap-2`},_hoisted_7$9=[`onClick`];var FieldValues_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldValues`,props:mergeModels({label:{},description:{},name:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels([`remove`,`add`],[`update:modelValue`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,items=useModel(__props,`modelValue`);function addItem(){items.value.push(``),emit$1(`add`)}function removeItem(index$1){items.value.splice(index$1,1),emit$1(`remove`,index$1)}return(_ctx,_cache$1)=>{let _directive_auto_animate=resolveDirective(`auto-animate`);return openBlock(),createElementBlock(`div`,_hoisted_1$25,[createBaseVNode(`label`,_hoisted_2$19,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_3$16,[createTextVNode(toDisplayString(props.label)+` `,1),props.required===!1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_4$13,`*`))]),createBaseVNode(`div`,_hoisted_5$11,toDisplayString(props.description),1)]),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_6$10,[(openBlock(!0),createElementBlock(Fragment,null,renderList(items.value,(_$1,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,class:`w-full flex items-center gap-2`},[createVNode(Input_default,{modelValue:items.value[index$1],"onUpdate:modelValue":$event=>items.value[index$1]=$event,placeholder:props.valuePlaceholder,class:`w-90%`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),createBaseVNode(`button`,{"i-solar:minus-circle-line-duotone":``,size:`6`,class:`min-w-20px w-10% flex text-red-500`,onClick:$event=>removeItem(index$1)},null,8,_hoisted_7$9)]))),128)),createBaseVNode(`div`,{"i-solar:add-circle-line-duotone":``,size:`6`,class:`mt-2 w-4/5 text-blue-500`,onClick:addItem})])),[[_directive_auto_animate]])])])}}}),FieldValues_default=FieldValues_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$24=[`disabled`];var ColorHueRange_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ColorHueRange`,props:mergeModels({disabled:{type:Boolean},class:{}},{colorValue:{type:String,default:``},colorValueModifiers:{}}),emits:[`update:colorValue`],setup(__props){let props=__props,colorValue=useModel(__props,`colorValue`);return(_ctx,_cache$1)=>withDirectives((openBlock(),createElementBlock(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>colorValue.value=$event,type:`range`,min:`0`,max:`360`,step:`0.01`,class:normalizeClass([`color-hue-range`,[props.disabled?`opacity-25 cursor-not-allowed`:`cursor-pointer`,props.class||``]]),transition:`all ease-in-out duration-250`,disabled:props.disabled},null,10,_hoisted_1$24)),[[vModelText,colorValue.value]])}}),ColorHueRange_default=__plugin_vue_export_helper_default(ColorHueRange_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-49fc55e8`]]),Option_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Option`,props:{value:{},label:{},active:{type:Boolean}},setup(__props){let props=__props,selectOption=inject(`selectOption`),hide$1=inject(`hide`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,mergeProps({..._ctx.$attrs,class:null,style:null},{class:[`cursor-pointer rounded px-2 py-1 text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800`,{"bg-neutral-100 dark:bg-neutral-800":props.active}],"line-clamp-1":``,"overflow-hidden":``,"text-ellipsis":``,"whitespace-pre-wrap":``,"text-xs":``,"transition-colors":``,"duration-150":``,"ease-in-out":``,"will-change-background-color":``,"will-change-color":``,onClick:_cache$1[0]||=()=>{unref(selectOption)(props.value),unref(hide$1)()}}),[renderSlot(_ctx.$slots,`default`,{},()=>[createTextVNode(toDisplayString(props.label),1)])],16))}}),Option_default=Option_vue_vue_type_script_setup_true_lang_default;function n$1(t){var e$3;return(e$3=t.ownerDocument)?.defaultView||window}function o(t){return n$1(t).getComputedStyle(t)}const i=Math.min,r=Math.max,l=Math.round;function c$1(t){let e$3=o(t),n$2=parseFloat(e$3.width),i$1=parseFloat(e$3.height),r$2=t.offsetWidth,c$4=t.offsetHeight,s$1=l(n$2)!==r$2||l(i$1)!==c$4;return s$1&&(n$2=r$2,i$1=c$4),{width:n$2,height:i$1,fallback:s$1}}function s(t){return h$2(t)?(t.nodeName||``).toLowerCase():``}let f;function u(){if(f)return f;let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(f=t.brands.map(t$1=>t$1.brand+`/`+t$1.version).join(` `),f):navigator.userAgent}function a(t){return t instanceof n$1(t).HTMLElement}function d$1(t){return t instanceof n$1(t).Element}function h$2(t){return t instanceof n$1(t).Node}function p(t){return typeof ShadowRoot>`u`?!1:t instanceof n$1(t).ShadowRoot||t instanceof ShadowRoot}function g$1(t){let{overflow:e$3,overflowX:n$2,overflowY:i$1,display:r$2}=o(t);return/auto|scroll|overlay|hidden|clip/.test(e$3+i$1+n$2)&&![`inline`,`contents`].includes(r$2)}function m$1(t){return[`table`,`td`,`th`].includes(s(t))}function y$1(t){let e$3=/firefox/i.test(u()),n$2=o(t),i$1=n$2.backdropFilter||n$2.WebkitBackdropFilter;return n$2.transform!==`none`||n$2.perspective!==`none`||!!i$1&&i$1!==`none`||e$3&&n$2.willChange===`filter`||e$3&&!!n$2.filter&&n$2.filter!==`none`||[`transform`,`perspective`].some(t$1=>n$2.willChange.includes(t$1))||[`paint`,`layout`,`strict`,`content`].some(t$1=>{let e$4=n$2.contain;return e$4!=null&&e$4.includes(t$1)})}function x$1(){return!/^((?!chrome|android).)*safari/i.test(u())}function w(t){return[`html`,`body`,`#document`].includes(s(t))}function v(t){return d$1(t)?t:t.contextElement}const b$1={x:1,y:1};function L(t){let e$3=v(t);if(!a(e$3))return b$1;let n$2=e$3.getBoundingClientRect(),{width:o$1,height:i$1,fallback:r$2}=c$1(e$3),s$1=(r$2?l(n$2.width):n$2.width)/o$1,f$3=(r$2?l(n$2.height):n$2.height)/i$1;return s$1&&Number.isFinite(s$1)||(s$1=1),f$3&&Number.isFinite(f$3)||(f$3=1),{x:s$1,y:f$3}}function E$1(t,e$3,o$1,i$1){var r$2,l$1;e$3===void 0&&(e$3=!1),o$1===void 0&&(o$1=!1);let c$4=t.getBoundingClientRect(),s$1=v(t),f$3=b$1;e$3&&(i$1?d$1(i$1)&&(f$3=L(i$1)):f$3=L(t));let u$1=s$1?n$1(s$1):window,a$2=!x$1()&&o$1,h$3=(c$4.left+(a$2&&(r$2=u$1.visualViewport)?.offsetLeft||0))/f$3.x,p$5=(c$4.top+(a$2&&(l$1=u$1.visualViewport)?.offsetTop||0))/f$3.y,g$2=c$4.width/f$3.x,m$2=c$4.height/f$3.y;if(s$1){let t$1=n$1(s$1),e$4=i$1&&d$1(i$1)?n$1(i$1):i$1,o$2=t$1.frameElement;for(;o$2&&i$1&&e$4!==t$1;){let t$2=L(o$2),e$5=o$2.getBoundingClientRect(),i$2=getComputedStyle(o$2);e$5.x+=(o$2.clientLeft+parseFloat(i$2.paddingLeft))*t$2.x,e$5.y+=(o$2.clientTop+parseFloat(i$2.paddingTop))*t$2.y,h$3*=t$2.x,p$5*=t$2.y,g$2*=t$2.x,m$2*=t$2.y,h$3+=e$5.x,p$5+=e$5.y,o$2=n$1(o$2).frameElement}}return{width:g$2,height:m$2,top:p$5,right:h$3+g$2,bottom:p$5+m$2,left:h$3,x:h$3,y:p$5}}function R(t){return((h$2(t)?t.ownerDocument:t.document)||window.document).documentElement}function T(t){return d$1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function C$1(t){return E$1(R(t)).left+T(t).scrollLeft}function F(t){if(s(t)===`html`)return t;let e$3=t.assignedSlot||t.parentNode||p(t)&&t.host||R(t);return p(e$3)?e$3.host:e$3}function W(t){let e$3=F(t);return w(e$3)?e$3.ownerDocument.body:a(e$3)&&g$1(e$3)?e$3:W(e$3)}function D(t,e$3){var o$1;e$3===void 0&&(e$3=[]);let i$1=W(t),r$2=i$1===(o$1=t.ownerDocument)?.body,l$1=n$1(i$1);return r$2?e$3.concat(l$1,l$1.visualViewport||[],g$1(i$1)?i$1:[]):e$3.concat(i$1,D(i$1))}function S$1(e$3,i$1,l$1){return i$1===`viewport`?rectToClientRect(function(t,e$4){let o$1=n$1(t),i$2=R(t),r$2=o$1.visualViewport,l$2=i$2.clientWidth,c$4=i$2.clientHeight,s$1=0,f$3=0;if(r$2){l$2=r$2.width,c$4=r$2.height;let t$1=x$1();(t$1||!t$1&&e$4===`fixed`)&&(s$1=r$2.offsetLeft,f$3=r$2.offsetTop)}return{width:l$2,height:c$4,x:s$1,y:f$3}}(e$3,l$1)):d$1(i$1)?rectToClientRect(function(t,e$4){let n$2=E$1(t,!0,e$4===`fixed`),o$1=n$2.top+t.clientTop,i$2=n$2.left+t.clientLeft,r$2=a(t)?L(t):{x:1,y:1};return{width:t.clientWidth*r$2.x,height:t.clientHeight*r$2.y,x:i$2*r$2.x,y:o$1*r$2.y}}(i$1,l$1)):rectToClientRect(function(t){let e$4=R(t),n$2=T(t),i$2=t.ownerDocument.body,l$2=r(e$4.scrollWidth,e$4.clientWidth,i$2.scrollWidth,i$2.clientWidth),c$4=r(e$4.scrollHeight,e$4.clientHeight,i$2.scrollHeight,i$2.clientHeight),s$1=-n$2.scrollLeft+C$1(t),f$3=-n$2.scrollTop;return o(i$2).direction===`rtl`&&(s$1+=r(e$4.clientWidth,i$2.clientWidth)-l$2),{width:l$2,height:c$4,x:s$1,y:f$3}}(R(e$3)))}function A(t){return a(t)&&o(t).position!==`fixed`?t.offsetParent:null}function H$1(t){let e$3=n$1(t),i$1=A(t);for(;i$1&&m$1(i$1)&&o(i$1).position===`static`;)i$1=A(i$1);return i$1&&(s(i$1)===`html`||s(i$1)===`body`&&o(i$1).position===`static`&&!y$1(i$1))?e$3:i$1||function(t$1){let e$4=F(t$1);for(;a(e$4)&&!w(e$4);){if(y$1(e$4))return e$4;e$4=F(e$4)}return null}(t)||e$3}function O(t,e$3,n$2){let o$1=a(e$3),i$1=R(e$3),r$2=E$1(t,!0,n$2===`fixed`,e$3),l$1={scrollLeft:0,scrollTop:0},c$4={x:0,y:0};if(o$1||!o$1&&n$2!==`fixed`)if((s(e$3)!==`body`||g$1(i$1))&&(l$1=T(e$3)),a(e$3)){let t$1=E$1(e$3,!0);c$4.x=t$1.x+e$3.clientLeft,c$4.y=t$1.y+e$3.clientTop}else i$1&&(c$4.x=C$1(i$1));return{x:r$2.left+l$1.scrollLeft-c$4.x,y:r$2.top+l$1.scrollTop-c$4.y,width:r$2.width,height:r$2.height}}const P={getClippingRect:function(t){let{element:e$3,boundary:n$2,rootBoundary:l$1,strategy:c$4}=t,f$3=n$2===`clippingAncestors`?function(t$1,e$4){let n$3=e$4.get(t$1);if(n$3)return n$3;let i$1=D(t$1).filter(t$2=>d$1(t$2)&&s(t$2)!==`body`),r$2=null,l$2=o(t$1).position===`fixed`,c$5=l$2?F(t$1):t$1;for(;d$1(c$5)&&!w(c$5);){let t$2=o(c$5),e$5=y$1(c$5);(l$2?e$5||r$2:e$5||t$2.position!==`static`||!r$2||![`absolute`,`fixed`].includes(r$2.position))?r$2=t$2:i$1=i$1.filter(t$3=>t$3!==c$5),c$5=F(c$5)}return e$4.set(t$1,i$1),i$1}(e$3,this._c):[].concat(n$2),u$1=[...f$3,l$1],a$2=u$1[0],h$3=u$1.reduce((t$1,n$3)=>{let o$1=S$1(e$3,n$3,c$4);return t$1.top=r(o$1.top,t$1.top),t$1.right=i(o$1.right,t$1.right),t$1.bottom=i(o$1.bottom,t$1.bottom),t$1.left=r(o$1.left,t$1.left),t$1},S$1(e$3,a$2,c$4));return{width:h$3.right-h$3.left,height:h$3.bottom-h$3.top,x:h$3.left,y:h$3.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e$3,offsetParent:n$2,strategy:o$1}=t,i$1=a(n$2),r$2=R(n$2);if(n$2===r$2)return e$3;let l$1={scrollLeft:0,scrollTop:0},c$4={x:1,y:1},f$3={x:0,y:0};if((i$1||!i$1&&o$1!==`fixed`)&&((s(n$2)!==`body`||g$1(r$2))&&(l$1=T(n$2)),a(n$2))){let t$1=E$1(n$2);c$4=L(n$2),f$3.x=t$1.x+n$2.clientLeft,f$3.y=t$1.y+n$2.clientTop}return{width:e$3.width*c$4.x,height:e$3.height*c$4.y,x:e$3.x*c$4.x-l$1.scrollLeft*c$4.x+f$3.x,y:e$3.y*c$4.y-l$1.scrollTop*c$4.y+f$3.y}},isElement:d$1,getDimensions:function(t){return a(t)?c$1(t):t.getBoundingClientRect()},getOffsetParent:H$1,getDocumentElement:R,getScale:L,async getElementRects(t){let{reference:e$3,floating:n$2,strategy:o$1}=t,i$1=this.getOffsetParent||H$1,r$2=this.getDimensions;return{reference:O(e$3,await i$1(n$2),o$1),floating:{x:0,y:0,...await r$2(n$2)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>o(t).direction===`rtl`},B=(t,n$2,o$1)=>{let i$1=new Map,r$2={platform:P,...o$1},l$1={...r$2.platform,_c:i$1};return computePosition(t,n$2,{...r$2,platform:l$1})},h$1={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e$3=>[...e$3,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function S(e$3,t){let o$1=h$1.themes[e$3]||{},i$1;do i$1=o$1[t],typeof i$1>`u`?o$1.$extend?o$1=h$1.themes[o$1.$extend]||{}:(o$1=null,i$1=h$1[t]):o$1=null;while(o$1);return i$1}function Ze(e$3){let t=[e$3],o$1=h$1.themes[e$3]||{};do o$1.$extend&&!o$1.$resetCss?(t.push(o$1.$extend),o$1=h$1.themes[o$1.$extend]||{}):o$1=null;while(o$1);return t.map(i$1=>`v-popper--theme-${i$1}`)}function re(e$3){let t=[e$3],o$1=h$1.themes[e$3]||{};do o$1.$extend?(t.push(o$1.$extend),o$1=h$1.themes[o$1.$extend]||{}):o$1=null;while(o$1);return t}let $=!1;if(typeof window<`u`){$=!1;try{let e$3=Object.defineProperty({},`passive`,{get(){$=!0}});window.addEventListener(`test`,null,e$3)}catch{}}let _e=!1;typeof window<`u`&&typeof navigator<`u`&&(_e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Te=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e$3,t)=>e$3.concat([t,`${t}-start`,`${t}-end`]),[]),pe={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},ae={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function de(e$3,t){let o$1=e$3.indexOf(t);o$1!==-1&&e$3.splice(o$1,1)}function G(){return new Promise(e$3=>requestAnimationFrame(()=>{requestAnimationFrame(e$3)}))}const d=[];let g=null;const le={};function he(e$3){let t=le[e$3];return t||=le[e$3]=[],t}let Y=function(){};typeof window<`u`&&(Y=window.Element);function n(e$3){return function(t){return S(t.theme,e$3)}}const q=`__floating-vue__popper`,Q=()=>defineComponent({name:`VPopper`,provide(){return{[q]:{parentPopper:this}}},inject:{[q]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:n(`disabled`)},positioningDisabled:{type:Boolean,default:n(`positioningDisabled`)},placement:{type:String,default:n(`placement`),validator:e$3=>Te.includes(e$3)},delay:{type:[String,Number,Object],default:n(`delay`)},distance:{type:[Number,String],default:n(`distance`)},skidding:{type:[Number,String],default:n(`skidding`)},triggers:{type:Array,default:n(`triggers`)},showTriggers:{type:[Array,Function],default:n(`showTriggers`)},hideTriggers:{type:[Array,Function],default:n(`hideTriggers`)},popperTriggers:{type:Array,default:n(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:n(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:n(`popperHideTriggers`)},container:{type:[String,Object,Y,Boolean],default:n(`container`)},boundary:{type:[String,Y],default:n(`boundary`)},strategy:{type:String,validator:e$3=>[`absolute`,`fixed`].includes(e$3),default:n(`strategy`)},autoHide:{type:[Boolean,Function],default:n(`autoHide`)},handleResize:{type:Boolean,default:n(`handleResize`)},instantMove:{type:Boolean,default:n(`instantMove`)},eagerMount:{type:Boolean,default:n(`eagerMount`)},popperClass:{type:[String,Array,Object],default:n(`popperClass`)},computeTransformOrigin:{type:Boolean,default:n(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:n(`autoMinSize`)},autoSize:{type:[Boolean,String],default:n(`autoSize`)},autoMaxSize:{type:Boolean,default:n(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:n(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:n(`preventOverflow`)},overflowPadding:{type:[Number,String],default:n(`overflowPadding`)},arrowPadding:{type:[Number,String],default:n(`arrowPadding`)},arrowOverflow:{type:Boolean,default:n(`arrowOverflow`)},flip:{type:Boolean,default:n(`flip`)},shift:{type:Boolean,default:n(`shift`)},shiftCrossAxis:{type:Boolean,default:n(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:n(`noAutoFocus`)},disposeTimeout:{type:Number,default:n(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e$3=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e$3=>e$3.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e$3;return(e$3=this[q])?.parentPopper},hasPopperShowTriggerHover(){var e$3,t;return(e$3=this.popperTriggers)?.includes(`hover`)||(t=this.popperShowTriggers)?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e$3){e$3?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e$3,t)=>(e$3[t]=`$_computePosition`,e$3),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e$3=null,skipDelay:t=!1,force:o$1=!1}={}){var i$1,s$1;(i$1=this.parentPopper)!=null&&i$1.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o$1||!this.disabled)&&((s$1=this.parentPopper)?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e$3,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e$3=null,skipDelay:t=!1}={}){var o$1;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}(o$1=this.parentPopper)?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e$3,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){var e$3;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(e$3=this.referenceNode)?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e$3={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e$3.middleware.push(offset({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e$3.middleware.push(autoPlacement({alignment:this.placement.split(`-`)[1]??``})):e$3.placement=this.placement,this.preventOverflow&&(this.shift&&e$3.middleware.push(shift({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e$3.middleware.push(flip({padding:this.overflowPadding,boundary:this.boundary}))),e$3.middleware.push(arrow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e$3.middleware.push({name:`arrowOverflow`,fn:({placement:i$1,rects:s$1,middlewareData:r$2})=>{let p$5,{centerOffset:a$2}=r$2.arrow;return p$5=i$1.startsWith(`top`)||i$1.startsWith(`bottom`)?Math.abs(a$2)>s$1.reference.width/2:Math.abs(a$2)>s$1.reference.height/2,{data:{overflow:p$5}}}}),this.autoMinSize||this.autoSize){let i$1=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e$3.middleware.push({name:`autoSize`,fn:({rects:s$1,placement:r$2,middlewareData:p$5})=>{var u$1;if((u$1=p$5.autoSize)!=null&&u$1.skip)return{};let a$2,l$1;return r$2.startsWith(`top`)||r$2.startsWith(`bottom`)?a$2=s$1.reference.width:l$1=s$1.reference.height,this.$_innerNode.style[i$1===`min`?`minWidth`:i$1===`max`?`maxWidth`:`width`]=a$2==null?null:`${a$2}px`,this.$_innerNode.style[i$1===`min`?`minHeight`:i$1===`max`?`maxHeight`:`height`]=l$1==null?null:`${l$1}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e$3.middleware.push(size({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i$1,availableHeight:s$1})=>{this.$_innerNode.style.maxWidth=i$1==null?null:`${i$1}px`,this.$_innerNode.style.maxHeight=s$1==null?null:`${s$1}px`}})));let o$1=await B(this.$_referenceNode,this.$_popperNode,e$3);Object.assign(this.result,{x:o$1.x,y:o$1.y,placement:o$1.placement,strategy:o$1.strategy,arrow:{...o$1.middlewareData.arrow,...o$1.middlewareData.arrowOverflow}})},$_scheduleShow(e$3,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),g&&this.instantMove&&g.instantMove&&g!==this.parentPopper){g.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e$3,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(g=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e$3){let t=this.delay;return parseInt(t&&t[e$3]||t||0)},async $_applyShow(e$3=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e$3,!this.isShown&&(this.$_ensureTeleport(),await G(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...D(this.$_referenceNode),...D(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let t=this.$_referenceNode.getBoundingClientRect(),o$1=this.$_popperNode.querySelector(`.v-popper__wrapper`),i$1=o$1.parentNode.getBoundingClientRect(),s$1=t.x+t.width/2-(i$1.left+o$1.offsetLeft),r$2=t.y+t.height/2-(i$1.top+o$1.offsetTop);this.result.transformOrigin=`${s$1}px ${r$2}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e$3=this.showGroup;if(e$3){let t;for(let o$1=0;o$10){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e$3,de(d,this),d.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let o$1 of re(this.theme)){let i$1=he(o$1);de(i$1,this),i$1.length===0&&document.body.classList.remove(`v-popper--some-open--${o$1}`)}g===this&&(g=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await G(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e$3=this.container;if(typeof e$3==`string`?e$3=window.document.querySelector(e$3):e$3===!1&&(e$3=this.$_targetNodes[0].parentNode),!e$3)throw Error(`No container for popover: `+this.container);e$3.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e$3=o$1=>{this.isShown&&!this.$_hideInProgress||(o$1.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o$1}))};this.$_registerTriggerListeners(this.$_targetNodes,pe,this.triggers,this.showTriggers,e$3),this.$_registerTriggerListeners([this.$_popperNode],pe,this.popperTriggers,this.popperShowTriggers,e$3);let t=o$1=>{o$1.usedByTooltip||this.hide({event:o$1})};this.$_registerTriggerListeners(this.$_targetNodes,ae,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ae,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e$3,t,o$1){this.$_events.push({targetNodes:e$3,eventType:t,handler:o$1}),e$3.forEach(i$1=>i$1.addEventListener(t,o$1,$?{passive:!0}:void 0))},$_registerTriggerListeners(e$3,t,o$1,i$1,s$1){let r$2=o$1;i$1!=null&&(r$2=typeof i$1==`function`?i$1(r$2):i$1),r$2.forEach(p$5=>{let a$2=t[p$5];a$2&&this.$_registerEventListeners(e$3,a$2,s$1)})},$_removeEventListeners(e$3){let t=[];this.$_events.forEach(o$1=>{let{targetNodes:i$1,eventType:s$1,handler:r$2}=o$1;!e$3||e$3===s$1?i$1.forEach(p$5=>p$5.removeEventListener(s$1,r$2)):t.push(o$1)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e$3,t=!1){this.$_showFrameLocked||(this.hide({event:e$3}),e$3.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e$3,t){for(let o$1 of this.$_targetNodes){let i$1=o$1.getAttribute(e$3);i$1&&(o$1.removeAttribute(e$3),o$1.setAttribute(t,i$1))}},$_applyAttrsToTarget(e$3){for(let t of this.$_targetNodes)for(let o$1 in e$3){let i$1=e$3[o$1];i$1==null?t.removeAttribute(o$1):t.setAttribute(o$1,i$1)}},$_updateParentShownChildren(e$3){let t=this.parentPopper;for(;t;)e$3?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e$3=this.$_referenceNode.getBoundingClientRect();if(y>=e$3.left&&y<=e$3.right&&_>=e$3.top&&_<=e$3.bottom){let t=this.$_popperNode.getBoundingClientRect(),o$1=y-c,i$1=_-m,r$2=t.left+t.width/2-c+(t.top+t.height/2)-m+t.width+t.height,p$5=c+o$1*r$2,a$2=m+i$1*r$2;return C(c,m,p$5,a$2,t.left,t.top,t.left,t.bottom)||C(c,m,p$5,a$2,t.left,t.top,t.right,t.top)||C(c,m,p$5,a$2,t.right,t.top,t.right,t.bottom)||C(c,m,p$5,a$2,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(_e){let e$3=$?{passive:!0,capture:!0}:!0;document.addEventListener(`touchstart`,t=>ue(t,!0),e$3),document.addEventListener(`touchend`,t=>fe(t,!0),e$3)}else window.addEventListener(`mousedown`,e$3=>ue(e$3,!1),!0),window.addEventListener(`click`,e$3=>fe(e$3,!1),!0);window.addEventListener(`resize`,tt)}function ue(e$3,t){if(h$1.autoHideOnMousedown)Pe(e$3,t);else for(let o$1=0;o$1=0;i$1--){let s$1=d[i$1];try{let r$2=s$1.containsGlobalTarget=s$1.mouseDownContains||s$1.popperNode().contains(e$3.target);s$1.pendingHide=!1,requestAnimationFrame(()=>{if(s$1.pendingHide=!1,!o$1[s$1.randomId]&&ce(s$1,r$2,e$3)){if(s$1.$_handleGlobalClose(e$3,t),!e$3.closeAllPopover&&e$3.closePopover&&r$2){let a$2=s$1.parentPopper;for(;a$2;)o$1[a$2.randomId]=!0,a$2=a$2.parentPopper;return}let p$5=s$1.parentPopper;for(;p$5&&ce(p$5,p$5.containsGlobalTarget,e$3);)p$5.$_handleGlobalClose(e$3,t),p$5=p$5.parentPopper}})}catch{}}}function ce(e$3,t,o$1){return o$1.closeAllPopover||o$1.closePopover&&t||et(e$3,o$1)&&!t}function et(e$3,t){if(typeof e$3.autoHide==`function`){let o$1=e$3.autoHide(t);return e$3.lastAutoHide=o$1,o$1}return e$3.autoHide}function tt(){for(let e$3=0;e$3{c=y,m=_,y=e$3.clientX,_=e$3.clientY},$?{passive:!0}:void 0);function C(e$3,t,o$1,i$1,s$1,r$2,p$5,a$2){let l$1=((p$5-s$1)*(t-r$2)-(a$2-r$2)*(e$3-s$1))/((a$2-r$2)*(o$1-e$3)-(p$5-s$1)*(i$1-t)),u$1=((o$1-e$3)*(t-r$2)-(i$1-t)*(e$3-s$1))/((a$2-r$2)*(o$1-e$3)-(p$5-s$1)*(i$1-t));return l$1>=0&&l$1<=1&&u$1>=0&&u$1<=1}const ot={extends:Q()},B$1=(e$3,t)=>{let o$1=e$3.__vccOpts||e$3;for(let[i$1,s$1]of t)o$1[i$1]=s$1;return o$1};function it(e$3,t,o$1,i$1,s$1,r$2){return openBlock(),createElementBlock(`div`,{ref:`reference`,class:normalizeClass([`v-popper`,{"v-popper--shown":e$3.slotData.isShown}])},[renderSlot(e$3.$slots,`default`,normalizeProps(guardReactiveProps(e$3.slotData)))],2)}const st=B$1(ot,[[`render`,it]]);function nt(){var e$3=window.navigator.userAgent,t=e$3.indexOf(`MSIE `);if(t>0)return parseInt(e$3.substring(t+5,e$3.indexOf(`.`,t)),10);var o$1=e$3.indexOf(`Trident/`);if(o$1>0){var i$1=e$3.indexOf(`rv:`);return parseInt(e$3.substring(i$1+3,e$3.indexOf(`.`,i$1)),10)}var s$1=e$3.indexOf(`Edge/`);return s$1>0?parseInt(e$3.substring(s$1+5,e$3.indexOf(`.`,s$1)),10):-1}let z;function X(){X.init||(X.init=!0,z=nt()!==-1)}var E={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){X(),nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e$3=document.createElement(`object`);this._resizeObject=e$3,e$3.setAttribute(`aria-hidden`,`true`),e$3.setAttribute(`tabindex`,-1),e$3.onload=this.addResizeHandlers,e$3.type=`text/html`,z&&this.$el.appendChild(e$3),e$3.data=`about:blank`,z||this.$el.appendChild(e$3)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!z&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rt=withScopeId(`data-v-b329ee4c`);pushScopeId(`data-v-b329ee4c`);const pt={class:`resize-observer`,tabindex:`-1`};popScopeId();const at=rt((e$3,t,o$1,i$1,s$1,r$2)=>(openBlock(),createBlock(`div`,pt)));E.render=at,E.__scopeId=`data-v-b329ee4c`,E.__file=`src/components/ResizeObserver.vue`;const Z=(e$3=`theme`)=>({computed:{themeClass(){return Ze(this[e$3])}}}),dt=defineComponent({name:`VPopperContent`,components:{ResizeObserver:E},mixins:[Z()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e$3){return e$3!=null&&!isNaN(e$3)?`${e$3}px`:null}}}),lt=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],ht={ref:`inner`,class:`v-popper__inner`},ut=createBaseVNode(`div`,{class:`v-popper__arrow-outer`},null,-1),ft=createBaseVNode(`div`,{class:`v-popper__arrow-inner`},null,-1),ct=[ut,ft];function mt(e$3,t,o$1,i$1,s$1,r$2){let p$5=resolveComponent(`ResizeObserver`);return openBlock(),createElementBlock(`div`,{id:e$3.popperId,ref:`popover`,class:normalizeClass([`v-popper__popper`,[e$3.themeClass,e$3.classes.popperClass,{"v-popper__popper--shown":e$3.shown,"v-popper__popper--hidden":!e$3.shown,"v-popper__popper--show-from":e$3.classes.showFrom,"v-popper__popper--show-to":e$3.classes.showTo,"v-popper__popper--hide-from":e$3.classes.hideFrom,"v-popper__popper--hide-to":e$3.classes.hideTo,"v-popper__popper--skip-transition":e$3.skipTransition,"v-popper__popper--arrow-overflow":e$3.result&&e$3.result.arrow.overflow,"v-popper__popper--no-positioning":!e$3.result}]]),style:normalizeStyle(e$3.result?{position:e$3.result.strategy,transform:`translate3d(${Math.round(e$3.result.x)}px,${Math.round(e$3.result.y)}px,0)`}:void 0),"aria-hidden":e$3.shown?`false`:`true`,tabindex:e$3.autoHide?0:void 0,"data-popper-placement":e$3.result?e$3.result.placement:void 0,onKeyup:t[2]||=withKeys(a$2=>e$3.autoHide&&e$3.$emit(`hide`),[`esc`])},[createBaseVNode(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=a$2=>e$3.autoHide&&e$3.$emit(`hide`)}),createBaseVNode(`div`,{class:`v-popper__wrapper`,style:normalizeStyle(e$3.result?{transformOrigin:e$3.result.transformOrigin}:void 0)},[createBaseVNode(`div`,ht,[e$3.mounted?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode(`div`,null,[renderSlot(e$3.$slots,`default`)]),e$3.handleResize?(openBlock(),createBlock(p$5,{key:0,onNotify:t[1]||=a$2=>e$3.$emit(`resize`,a$2)})):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0)],512),createBaseVNode(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:normalizeStyle(e$3.result?{left:e$3.toPx(e$3.result.arrow.x),top:e$3.toPx(e$3.result.arrow.y)}:void 0)},ct,4)],4)],46,lt)}const ee=B$1(dt,[[`render`,mt]]),te={methods:{show(...e$3){return this.$refs.popper.show(...e$3)},hide(...e$3){return this.$refs.popper.hide(...e$3)},dispose(...e$3){return this.$refs.popper.dispose(...e$3)},onResize(...e$3){return this.$refs.popper.onResize(...e$3)}}};let K=function(){};typeof window<`u`&&(K=window.Element);const gt=defineComponent({name:`VPopperWrapper`,components:{Popper:st,PopperContent:ee},mixins:[te,Z(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,K,Boolean],default:void 0},boundary:{type:[String,K],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e$3=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e$3=>e$3!==this.$refs.popperContent.$el)}}});function wt(e$3,t,o$1,i$1,s$1,r$2){let p$5=resolveComponent(`PopperContent`),a$2=resolveComponent(`Popper`);return openBlock(),createBlock(a$2,mergeProps({ref:`popper`},e$3.$props,{theme:e$3.finalTheme,"target-nodes":e$3.getTargetNodes,"popper-node":()=>e$3.$refs.popperContent.$el,class:[e$3.themeClass],onShow:t[0]||=()=>e$3.$emit(`show`),onHide:t[1]||=()=>e$3.$emit(`hide`),"onUpdate:shown":t[2]||=l$1=>e$3.$emit(`update:shown`,l$1),onApplyShow:t[3]||=()=>e$3.$emit(`apply-show`),onApplyHide:t[4]||=()=>e$3.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e$3.$emit(`close-group`),onCloseDirective:t[6]||=()=>e$3.$emit(`close-directive`),onAutoHide:t[7]||=()=>e$3.$emit(`auto-hide`),onResize:t[8]||=()=>e$3.$emit(`resize`)}),{default:withCtx(({popperId:l$1,isShown:u$1,shouldMountContent:L$1,skipTransition:D$1,autoHide:I,show:F$2,hide:v$1,handleResize:R$1,onResize:j$1,classes:V$1,result:Ee$1})=>[renderSlot(e$3.$slots,`default`,{shown:u$1,show:F$2,hide:v$1}),createVNode(p$5,{ref:`popperContent`,"popper-id":l$1,theme:e$3.finalTheme,shown:u$1,mounted:L$1,"skip-transition":D$1,"auto-hide":I,"handle-resize":R$1,classes:V$1,result:Ee$1,onHide:v$1,onResize:j$1},{default:withCtx(()=>[renderSlot(e$3.$slots,`popper`,{shown:u$1,hide:v$1})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}const k=B$1(gt,[[`render`,wt]]),Se={...k,name:`VDropdown`,vPopperTheme:`dropdown`},be={...k,name:`VMenu`,vPopperTheme:`menu`},Ce={...k,name:`VTooltip`,vPopperTheme:`tooltip`},$t=defineComponent({name:`VTooltipDirective`,components:{Popper:Q(),PopperContent:ee},mixins:[te],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e$3=>S(e$3.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e$3=>S(e$3.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e$3){if(typeof this.content==`function`&&this.$_isShown&&(e$3||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let t=++this.$_fetchId,o$1=this.content(this);o$1.then?o$1.then(i$1=>this.onResult(t,i$1)):this.onResult(t,o$1)}},onResult(e$3,t){e$3===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),vt=[`innerHTML`],yt=[`textContent`];function _t(e$3,t,o$1,i$1,s$1,r$2){let p$5=resolveComponent(`PopperContent`),a$2=resolveComponent(`Popper`);return openBlock(),createBlock(a$2,mergeProps({ref:`popper`},e$3.$attrs,{theme:e$3.theme,"target-nodes":e$3.targetNodes,"popper-node":()=>e$3.$refs.popperContent.$el,onApplyShow:e$3.onShow,onApplyHide:e$3.onHide}),{default:withCtx(({popperId:l$1,isShown:u$1,shouldMountContent:L$1,skipTransition:D$1,autoHide:I,hide:F$2,handleResize:v$1,onResize:R$1,classes:j$1,result:V$1})=>[createVNode(p$5,{ref:`popperContent`,class:normalizeClass({"v-popper--tooltip-loading":e$3.loading}),"popper-id":l$1,theme:e$3.theme,shown:u$1,mounted:L$1,"skip-transition":D$1,"auto-hide":I,"handle-resize":v$1,classes:j$1,result:V$1,onHide:F$2,onResize:R$1},{default:withCtx(()=>[e$3.html?(openBlock(),createElementBlock(`div`,{key:0,innerHTML:e$3.finalContent},null,8,vt)):(openBlock(),createElementBlock(`div`,{key:1,textContent:toDisplayString(e$3.finalContent)},null,8,yt))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}const ze=B$1($t,[[`render`,_t]]),Ae=`v-popper--has-tooltip`;function Tt(e$3,t){let o$1=e$3.placement;if(!o$1&&t)for(let i$1 of Te)t[i$1]&&(o$1=i$1);return o$1||=S(e$3.theme||`tooltip`,`placement`),o$1}function Ne(e$3,t,o$1){let i$1,s$1=typeof t;return i$1=s$1===`string`?{content:t}:t&&s$1===`object`?t:{content:!1},i$1.placement=Tt(i$1,o$1),i$1.targetNodes=()=>[e$3],i$1.referenceNode=()=>e$3,i$1}let x,b,Pt=0;function St(){if(x)return;b=ref([]),x=createApp({name:`VTooltipDirectiveApp`,setup(){return{directives:b}},render(){return this.directives.map(t=>h(ze,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});let e$3=document.createElement(`div`);document.body.appendChild(e$3),x.mount(e$3)}function bt(e$3,t,o$1){St();let i$1=ref(Ne(e$3,t,o$1)),s$1=ref(!1),r$2={id:Pt++,options:i$1,shown:s$1};return b.value.push(r$2),e$3.classList&&e$3.classList.add(Ae),e$3.$_popper={options:i$1,item:r$2,show(){s$1.value=!0},hide(){s$1.value=!1}}}function He(e$3){if(e$3.$_popper){let t=b.value.indexOf(e$3.$_popper.item);t!==-1&&b.value.splice(t,1),delete e$3.$_popper,delete e$3.$_popperOldShown,delete e$3.$_popperMountTarget}e$3.classList&&e$3.classList.remove(Ae)}function me(e$3,{value:t,modifiers:o$1}){let i$1=Ne(e$3,t,o$1);if(!i$1.content||S(i$1.theme||`tooltip`,`disabled`))He(e$3);else{let s$1;e$3.$_popper?(s$1=e$3.$_popper,s$1.options.value=i$1):s$1=bt(e$3,t,o$1),typeof t.shown<`u`&&t.shown!==e$3.$_popperOldShown&&(e$3.$_popperOldShown=t.shown,t.shown?s$1.show():s$1.hide())}}const oe={beforeMount:me,updated:me,beforeUnmount(e$3){He(e$3)}};function ge(e$3){e$3.addEventListener(`mousedown`,H),e$3.addEventListener(`click`,H),e$3.addEventListener(`touchstart`,Oe,$?{passive:!0}:!1)}function we(e$3){e$3.removeEventListener(`mousedown`,H),e$3.removeEventListener(`click`,H),e$3.removeEventListener(`touchstart`,Oe),e$3.removeEventListener(`touchend`,Me),e$3.removeEventListener(`touchcancel`,Be)}function H(e$3){let t=e$3.currentTarget;e$3.closePopover=!t.$_vclosepopover_touch,e$3.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Oe(e$3){if(e$3.changedTouches.length===1){let t=e$3.currentTarget;t.$_vclosepopover_touch=!0;let o$1=e$3.changedTouches[0];t.$_vclosepopover_touchPoint=o$1,t.addEventListener(`touchend`,Me),t.addEventListener(`touchcancel`,Be)}}function Me(e$3){let t=e$3.currentTarget;if(t.$_vclosepopover_touch=!1,e$3.changedTouches.length===1){let o$1=e$3.changedTouches[0],i$1=t.$_vclosepopover_touchPoint;e$3.closePopover=Math.abs(o$1.screenY-i$1.screenY)<20&&Math.abs(o$1.screenX-i$1.screenX)<20,e$3.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Be(e$3){let t=e$3.currentTarget;t.$_vclosepopover_touch=!1}const ie={beforeMount(e$3,{value:t,modifiers:o$1}){e$3.$_closePopoverModifiers=o$1,(typeof t>`u`||t)&&ge(e$3)},updated(e$3,{value:t,oldValue:o$1,modifiers:i$1}){e$3.$_closePopoverModifiers=i$1,t!==o$1&&(typeof t>`u`||t?ge(e$3):we(e$3))},beforeUnmount(e$3){we(e$3)}},Ht=h$1,Ot=oe,Mt=oe,Bt=ie,Et=ie,kt=Se,Lt=be,Dt=Q,It=ee,Ft=te,Rt=k,jt=Z,Vt=Ce,Wt=ze,_hoisted_1$23={class:`flex-1 truncate`},_hoisted_2$18={class:`min-w-[160px] flex flex-col gap-0.5 border border-neutral-200 rounded-lg bg-white p-1 shadow-lg dark:border-neutral-800 dark:bg-neutral-900 dark:bg-neutral-900`};var Select_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Select`,props:mergeModels({options:{},placeholder:{},disabled:{type:Boolean},title:{},layout:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,show=ref(!1),modelValue=useModel(__props,`modelValue`);function selectOption(value$1){modelValue.value=value$1}function handleHide(){show.value=!1}return provide(`selectOption`,selectOption),provide(`hide`,handleHide),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(kt),{"auto-size":``,"auto-boundary-max-size":``,"w-full":``},{popper:withCtx(({hide:hide$1})=>[createBaseVNode(`div`,_hoisted_2$18,[renderSlot(_ctx.$slots,`options`,{hide:hide$1},()=>[props.options&&props.options.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(props.options,option$1=>(openBlock(),createBlock(Option_default,{key:option$1.value,value:option$1.value,label:option$1.label,active:modelValue.value===option$1.value,onClick:$event=>{selectOption(option$1.value),hide$1()}},null,8,[`value`,`label`,`active`,`onClick`]))),128)):createCommentVNode(``,!0)])])]),default:withCtx(()=>[createBaseVNode(`div`,{"min-w":`[160px]`,p:`2.5`,"w-full":``,class:normalizeClass([`focus:ring-2 focus:ring-black/10`,[props.disabled?`pointer-events-none`:``]]),border:`~ 2 solid dark:neutral-800`,text:`xs dark:neutral-200 disabled:neutral-400 dark:disabled:neutral-600 neutral-700`,bg:`white dark:neutral-900 disabled:neutral-100 hover:neutral-50 dark:disabled:neutral-800 dark:hover:neutral-800 `,cursor:`disabled:not-allowed pointer`,flex:``,"items-center":``,"gap-2":``,"rounded-lg":``,"shadow-sm":``,"outline-none":``,"transition-colors":``,"duration-150":``,"ease-in-out":``},[createBaseVNode(`div`,_hoisted_1$23,[renderSlot(_ctx.$slots,`default`,{value:modelValue.value})]),_cache$1[0]||=createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``,class:`h-3.5 w-3.5 text-neutral-500 dark:text-neutral-400`},null,-1)],2)]),_:3}))}}),Select_default=Select_vue_vue_type_script_setup_true_lang_default,onboarding_default=`/assets/onboarding-NsdTpLwA.png`;const _hoisted_1$22={"z-1":``,"flex-1":``},_hoisted_2$17={"text-lg":``,"font-normal":``,class:`menu-icon-item-title`,transition:`all ease-in-out duration-400`},_hoisted_3$15={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-item-description`,transition:`all ease-in-out duration-400`};var IconItem_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`IconItem`,props:{title:{},description:{},icon:{},iconTemplate:{type:Boolean},to:{}},setup(__props){return(_ctx,_cache$1)=>{let _component_RouterLink=resolveComponent(`RouterLink`);return openBlock(),createBlock(_component_RouterLink,{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:_ctx.to},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$22,[createBaseVNode(`div`,_hoisted_2$17,toDisplayString(_ctx.title),1),createBaseVNode(`div`,_hoisted_3$15,[createBaseVNode(`span`,null,toDisplayString(_ctx.description),1)])]),typeof _ctx.icon==`string`?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`menu-icon-item-icon`,[_ctx.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)):createCommentVNode(``,!0),_ctx.iconTemplate?renderSlot(_ctx.$slots,`icon`,{key:1},void 0,!0):createCommentVNode(``,!0)]),_:3},8,[`to`])}}}),IconItem_default=__plugin_vue_export_helper_default(IconItem_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-d08788bb`]]);const _hoisted_1$21={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":``},_hoisted_2$16={"z-1":``,"flex-1":``},_hoisted_3$14={"text-lg":``,"font-normal":``,class:`menu-icon-status-item-title`,transition:`all ease-in-out duration-400`},_hoisted_4$12={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-status-item-description`,transition:`all ease-in-out duration-400`},_hoisted_5$10=[`src`],_hoisted_6$9={"p-2":``},_hoisted_7$8={key:0,"size-3":``,bg:`green-500 dark:green-600`,"rounded-full":``},_hoisted_8$6={key:1,"size-3":``,bg:`neutral-400 dark:neutral-500`,"rounded-full":``};var IconStatusItem_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`IconStatusItem`,props:{title:{},description:{},icon:{},iconColor:{},iconImage:{},to:{},configured:{type:Boolean}},setup(__props){let props=__props;return(_ctx,_cache$1)=>{let _component_RouterLink=resolveComponent(`RouterLink`);return openBlock(),createElementBlock(`div`,_hoisted_1$21,[createVNode(_component_RouterLink,{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:props.to},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_2$16,[createBaseVNode(`div`,_hoisted_3$14,toDisplayString(props.title),1),createBaseVNode(`div`,_hoisted_4$12,[createBaseVNode(`span`,null,toDisplayString(props.description||``),1)])]),props.icon?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`menu-icon-status-item-icon`,[props.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)):createCommentVNode(``,!0),props.iconColor?(openBlock(),createElementBlock(`div`,{key:1,class:normalizeClass([`menu-icon-status-item-icon-color`,[props.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)):createCommentVNode(``,!0),props.iconImage?(openBlock(),createElementBlock(`img`,{key:2,src:props.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,_hoisted_5$10)):createCommentVNode(``,!0)]),_:1},8,[`to`]),createBaseVNode(`div`,_hoisted_6$9,[props.configured?(openBlock(),createElementBlock(`div`,_hoisted_7$8)):(openBlock(),createElementBlock(`div`,_hoisted_8$6))])])}}}),IconStatusItem_default=__plugin_vue_export_helper_default(IconStatusItem_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-93a9757f`]]);const _hoisted_1$20=[`checked`,`name`,`value`],_hoisted_2$15={class:`relative mr-3 mt-0.5 flex-shrink-0`},_hoisted_3$13={class:`w-full flex flex-col gap-2`},_hoisted_4$11={class:`flex items-center`},_hoisted_5$9={key:0,class:`relative`},_hoisted_6$8=[`title`],_hoisted_7$7={key:1,class:`mt-2`};var RadioCardDetail_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RadioCardDetail`,props:mergeModels({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(__props){let modelValue=useModel(__props,`modelValue`),isExpanded=ref(!1);function toggleExpansion(){isExpanded.value=!isExpanded.value}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,{key:_ctx.id,class:normalizeClass([`form_radio-card-detail relative flex cursor-pointer items-start rounded-xl p-3 pr-[20px]`,[modelValue.value===_ctx.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`,modelValue.value===_ctx.value?`form_radio-card-detail-active`:``,_ctx.deprecated?`opacity-60`:``]]),transition:`all duration-200 ease-in-out`,border:`2 solid`},[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,checked:modelValue.value===_ctx.value,type:`radio`,name:_ctx.name,value:_ctx.value,class:`absolute opacity-0`},null,8,_hoisted_1$20),[[vModelRadio,modelValue.value]]),createBaseVNode(`div`,_hoisted_2$15,[createBaseVNode(`div`,{class:normalizeClass([`size-5 border-2 rounded-full transition-colors duration-200`,[modelValue.value===_ctx.value?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[createBaseVNode(`div`,{class:normalizeClass([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[modelValue.value===_ctx.value?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),createBaseVNode(`div`,_hoisted_3$13,[createBaseVNode(`div`,_hoisted_4$11,[createBaseVNode(`span`,{class:normalizeClass([`line-clamp-1 font-normal`,[modelValue.value===_ctx.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},toDisplayString(_ctx.title),3)]),_ctx.description?(openBlock(),createElementBlock(`div`,_hoisted_5$9,[createVNode(unref(TransitionVertical_default),null,{default:withCtx(()=>[!isExpanded.value||!_ctx.showExpandCollapse?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`line-clamp-2 cursor-pointer text-xs`,[modelValue.value===_ctx.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),title:_ctx.description,onClick:withModifiers(toggleExpansion,[`prevent`])},toDisplayString(_ctx.description),11,_hoisted_6$8)):(openBlock(),createElementBlock(`div`,{key:1,class:normalizeClass([`cursor-pointer text-xs`,[modelValue.value===_ctx.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),onClick:withModifiers(toggleExpansion,[`prevent`])},toDisplayString(_ctx.description),3))]),_:1}),_ctx.showExpandCollapse&&_ctx.description.length>_ctx.expandCollapseThreshold?(openBlock(),createElementBlock(`button`,{key:0,class:`mt-0.5 inline-flex items-center text-xs text-primary-500 dark:text-primary-600`,onClick:withModifiers(toggleExpansion,[`prevent`])},[createBaseVNode(`span`,null,toDisplayString(isExpanded.value?`Show less`:`Show more`),1),createBaseVNode(`div`,{class:normalizeClass([{"rotate-180":isExpanded.value},`transition-transform duration-200`])},_cache$1[2]||=[createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``,"ml-0.5":``,"text-xs":``},null,-1)],2)])):createCommentVNode(``,!0)])):createCommentVNode(``,!0),_ctx.showCustomInput&&modelValue.value===_ctx.value?(openBlock(),createElementBlock(`div`,_hoisted_7$7,[createVNode(unref(Input_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[1]||=$event=>modelValue.value=$event,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:_ctx.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0)])],2))}}),RadioCardDetail_default=__plugin_vue_export_helper_default(RadioCardDetail_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-fb6236db`]]);const _hoisted_1$19={class:`radio-card-detail-many-select`},_hoisted_2$14={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},_hoisted_3$12=[`placeholder`],_hoisted_4$10={class:`mt-4 space-y-2`},_hoisted_5$8={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},_hoisted_6$7={key:1,class:`flex items-center gap-3 border border-2 border-amber-200 rounded-xl bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},_hoisted_7$6={class:`flex flex-col`},_hoisted_8$5={class:`font-medium`},_hoisted_9$5={class:`text-sm text-amber-600 dark:text-amber-400`},_hoisted_10$5={class:`relative`};var RadioCardManySelect_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RadioCardManySelect`,props:mergeModels({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}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels([`update:customValue`],[`update:modelValue`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,modelValue=useModel(__props,`modelValue`),searchQuery=ref(``),isListExpanded=ref(!1),customValue=ref(``),filteredItems=computed(()=>{if(!searchQuery.value)return props.items;let query=searchQuery.value.toLowerCase();return props.items.filter(item=>item.name.toLowerCase().includes(query)||item.description&&item.description.toLowerCase().includes(query))});function updateCustomValue(value$1){customValue.value=value$1,emit$1(`update:customValue`,value$1)}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$19,[_ctx.searchable?(openBlock(),createElementBlock(`div`,_hoisted_2$14,[_cache$1[4]||=createBaseVNode(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[createBaseVNode(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>searchQuery.value=$event,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:_ctx.searchPlaceholder},null,8,_hoisted_3$12),[[vModelText,searchQuery.value]])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_4$10,[searchQuery.value?(openBlock(),createElementBlock(`div`,_hoisted_5$8,toDisplayString(_ctx.searchResultsText.replace(`{count}`,filteredItems.value.length.toString()).replace(`{total}`,_ctx.items.length.toString())),1)):createCommentVNode(``,!0),searchQuery.value&&filteredItems.value.length===0?(openBlock(),createElementBlock(`div`,_hoisted_6$7,[_cache$1[5]||=createBaseVNode(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),createBaseVNode(`div`,_hoisted_7$6,[createBaseVNode(`span`,_hoisted_8$5,toDisplayString(_ctx.searchNoResultsTitle),1),createBaseVNode(`span`,_hoisted_9$5,toDisplayString(_ctx.searchNoResultsDescription.replace(`{query}`,searchQuery.value)),1)])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_10$5,[createBaseVNode(`div`,{class:normalizeClass([`grid auto-cols-[350px] grid-flow-col max-h-[calc(100dvh-7lh)] gap-4 overflow-x-auto pb-4 scrollbar-none`,[isListExpanded.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(openBlock(!0),createElementBlock(Fragment,null,renderList(filteredItems.value,item=>(openBlock(),createBlock(RadioCardDetail_default,{id:item.id,key:item.id,modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[1]||=$event=>modelValue.value=$event,value:item.id,title:item.name,description:item.description,deprecated:item.deprecated,"show-expand-collapse":_ctx.showMore,"expand-collapse-threshold":100,"show-custom-input":item.customizable,"custom-input-value":customValue.value,"custom-input-placeholder":_ctx.customInputPlaceholder,name:`radio-card-detail-many-select`,class:`scroll-snap-align-start`,"onUpdate:customInputValue":_cache$1[2]||=$event=>updateCustomValue($event)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`deprecated`,`show-expand-collapse`,`show-custom-input`,`custom-input-value`,`custom-input-placeholder`]))),128))],2),createBaseVNode(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:normalizeClass([isListExpanded.value?`w-full`:`mt-4 w-full rounded-lg`])},[createBaseVNode(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:normalizeClass([isListExpanded.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:_cache$1[3]||=$event=>isListExpanded.value=!isListExpanded.value},[createBaseVNode(`span`,null,toDisplayString(isListExpanded.value?_ctx.collapseButtonText:_ctx.expandButtonText),1),createBaseVNode(`div`,{class:normalizeClass([isListExpanded.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),RadioCardManySelect_default=__plugin_vue_export_helper_default(RadioCardManySelect_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-98ce709a`]]);const _hoisted_1$18=[`checked`,`name`,`value`],_hoisted_2$13={flex:`~ col`,"min-h-16":``,"w-full":``,"items-start":``,"justify-center":``,"pb-2":``,"pl-5":``,"pr-4":``,"pt-2":``};var RadioCardSimple_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RadioCardSimple`,props:mergeModels({id:{},name:{},value:{},title:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,{key:_ctx.id,border:`2px solid`,class:normalizeClass([`form_radio-card-simple relative`,[modelValue.value===_ctx.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`,modelValue.value===_ctx.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":``},[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,checked:modelValue.value===_ctx.value,type:`radio`,name:_ctx.name,value:_ctx.value,class:`absolute opacity-0 [&:checked+div]:border-primary-500 [&:checked+div_.radio-dot]:opacity-100 dark:[&:checked+div]:border-primary-400`},null,8,_hoisted_1$18),[[vModelRadio,modelValue.value]]),_cache$1[1]||=createBaseVNode(`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`},[createBaseVNode(`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),createBaseVNode(`div`,_hoisted_2$13,[createBaseVNode(`span`,{class:normalizeClass([`radio-item-name font-normal`,[modelValue.value===_ctx.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-500 dark:text-neutral-500`]]),text:`md`,transition:`all duration-200 ease-in-out`},toDisplayString(_ctx.title),3),_ctx.description?(openBlock(),createElementBlock(`span`,{key:0,class:normalizeClass([`radio-item-description`,[modelValue.value===_ctx.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-400 dark:text-neutral-600`]]),transition:`all duration-200 ease-in-out`},toDisplayString(_ctx.description),3)):createCommentVNode(``,!0)]),_cache$1[2]||=createBaseVNode(`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))}}),RadioCardSimple_default=__plugin_vue_export_helper_default(RadioCardSimple_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-880ce73f`]]),AudioSpectrum_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`AudioSpectrum`,props:{stream:{},bars:{default:32},minFreq:{default:60},maxFreq:{default:4e3}},setup(__props){let props=__props,frequencies=ref(Array.from({length:props.bars}).fill(0));onMounted(()=>{handleAnalyze()}),watch(()=>props.stream,()=>{handleAnalyze()});function handleAnalyze(){if(!props.stream)return;let audioContext=new(window.AudioContext||window.webkitAudioContext),source=audioContext.createMediaStreamSource(props.stream),analyser=audioContext.createAnalyser();analyser.fftSize=2048,source.connect(analyser);let bufferLength=analyser.frequencyBinCount,dataArray=new Uint8Array(bufferLength),sampleRate=audioContext.sampleRate,frequencyResolution=sampleRate/analyser.fftSize,minBin=Math.floor(props.minFreq/frequencyResolution),maxBin=Math.floor(props.maxFreq/frequencyResolution),usableBins=maxBin-minBin,binsPerBar=Math.floor(usableBins/props.bars),analyze=()=>{try{requestAnimationFrame(analyze),analyser.getByteFrequencyData(dataArray);let bars=Array.from({length:props.bars}).fill(0);for(let i$1=0;i$1renderSlot(_ctx.$slots,`default`,{frequencies:frequencies.value})}}),AudioSpectrum_default=AudioSpectrum_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$17={"h-full":``,flex:``,"items-center":``,"gap-1":``},AMPLIFICATION=5;var AudioSpectrumVisualizer_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`AudioSpectrumVisualizer`,props:{frequencies:{},barsClass:{}},setup(__props){let props=__props;function getReductionFactor(index$1,totalBars){let minFactor=.1,maxFactor=1;return minFactor+(maxFactor-minFactor)*(index$1/totalBars)}function getBarHeight(frequency,index$1){let reductionFactor=getReductionFactor(index$1,props.frequencies.length);return Math.min(100,Math.max(10,frequency*100*AMPLIFICATION*reductionFactor))}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$17,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_ctx.frequencies,(frequency,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,"h-full":``,flex:``,"flex-1":``,"items-end":``},[createBaseVNode(`div`,{transition:`all 100 ease-in-out`,"mx-auto":``,"my-0":``,"w-full":``,"rounded-full":``,class:normalizeClass(_ctx.barsClass),style:normalizeStyle({height:`${getBarHeight(frequency,index$1)}%`})},null,6)]))),128))]))}}),AudioSpectrumVisualizer_default=AudioSpectrumVisualizer_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$16={key:0,class:`mb-2 flex items-center justify-between`},_hoisted_2$12={class:`text-sm font-medium`},_hoisted_3$11={class:`text-sm text-neutral-500`};var LevelMeter_vue_vue_type_script_setup_true_lang_default=defineComponent({__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(__props){let props=__props,levelBars=computed(()=>{let normalizedLevel=Math.max(0,Math.min(100,(props.level-props.min)/(props.max-props.min)*100)),activeBars=Math.floor(normalizedLevel/100*props.numBars);return Array.from({length:props.numBars},(_$1,i$1)=>({active:i$1a$2.value-b$3.value);for(let threshold of thresholds)if(barLevel<=threshold.value)return threshold.color;return(_thresholds=thresholds[thresholds.length-1])?.color||`bg-green-500`}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,null,[_ctx.showHeader?(openBlock(),createElementBlock(`div`,_hoisted_1$16,[createBaseVNode(`span`,_hoisted_2$12,toDisplayString(_ctx.label),1),createBaseVNode(`span`,_hoisted_3$11,toDisplayString(_ctx.formatValue?_ctx.formatValue(_ctx.level):`${Math.round(_ctx.level)}${_ctx.unit}`),1)])):createCommentVNode(``,!0),createBaseVNode(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 dark:bg-neutral-700`,style:normalizeStyle({height:`${_ctx.height}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(levelBars.value,(bar,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,class:normalizeClass([`flex-1 rounded-sm transition-all`,[bar.active?getBarColor(index$1,bar.level):`bg-neutral-200 dark:bg-neutral-600`,`duration-${_ctx.animationSpeed}`]]),style:normalizeStyle({height:bar.active?`100%`:`20%`})},null,6))),128))],4)]))}}),LevelMeter_default=LevelMeter_vue_vue_type_script_setup_true_lang_default,Volumed_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Volumed`,props:{perspective:{},transform:{}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:`volumed`,style:normalizeStyle({perspective:`${_ctx.perspective}px`,transform:_ctx.transform})},[renderSlot(_ctx.$slots,`default`,{},void 0,!0)],4))}}),Volumed_default=__plugin_vue_export_helper_default(Volumed_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-d8ce56aa`]]),CursorMomentum_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`CursorMomentum`,props:{baseSpeed:{default:.1},friction:{default:.95},momentumFactor:{default:.005}},setup(__props,{expose:__expose}){let props=__props,momentum=ref(1),currentValue=ref(0),lastTimestamp=0,FRICTION=toRef(()=>props.friction),BASE_SPEED=toRef(()=>props.baseSpeed),MOMENTUM_FACTOR=toRef(()=>props.momentumFactor);function updateMomentum(timestamp$2){lastTimestamp||=timestamp$2;let deltaTime=timestamp$2-lastTimestamp;lastTimestamp=timestamp$2,momentum.value=BASE_SPEED.value+(momentum.value-BASE_SPEED.value)*FRICTION.value,currentValue.value+=momentum.value*deltaTime,requestAnimationFrame(updateMomentum)}function handleMouseMove(event){let speed=Math.sqrt(event.movementX**2+event.movementY**2);momentum.value+=speed*MOMENTUM_FACTOR.value}return onMounted(()=>{window.addEventListener(`mousemove`,handleMouseMove),requestAnimationFrame(updateMomentum)}),onUnmounted(()=>{window.removeEventListener(`mousemove`,handleMouseMove)}),__expose({momentum,currentValue}),(_ctx,_cache$1)=>renderSlot(_ctx.$slots,`default`,{momentum:momentum.value,currentValue:currentValue.value})}}),CursorMomentum_default=CursorMomentum_vue_vue_type_script_setup_true_lang_default,TestDummyMarkerFlat_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`TestDummyMarkerFlat`,props:{size:{}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:`test-dummy-flat`,style:normalizeStyle({width:`${_ctx.size}px`,height:`${_ctx.size}px`})},_cache$1[0]||=[createBaseVNode(`div`,{class:`marker`},null,-1)],4))}}),TestDummyMarkerFlat_default=__plugin_vue_export_helper_default(TestDummyMarkerFlat_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-28f8c660`]]),TestDummyMarker_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`TestDummyMarker`,setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(CursorMomentum_default,{"base-speed":.1,friction:.95,"momentum-factor":5e-4},{default:withCtx(({currentValue})=>[createVNode(Volumed_default,{perspective:800,transform:`rotateX(45deg) translateY(3px)`},{default:withCtx(()=>[createVNode(TestDummyMarkerFlat_default,{size:24,style:normalizeStyle({transform:`rotate(${currentValue}deg)`})},null,8,[`style`])]),_:2},1024)]),_:1}))}}),TestDummyMarker_default=TestDummyMarker_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$15={key:0,class:`mb-2 flex items-center justify-between`},_hoisted_2$11={class:`text-sm font-medium`},_hoisted_3$10={class:`text-sm text-neutral-500`},_hoisted_4$9={key:1,class:`mt-1 flex gap-3 text-xs text-neutral-500`},_hoisted_5$7={class:`flex items-center gap-1`},_hoisted_6$6={class:`flex items-center gap-1`},_hoisted_7$5={class:`flex items-center gap-1`};var ThresholdMeter_vue_vue_type_script_setup_true_lang_default=defineComponent({__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(__props){let props=__props,thresholdBars=computed(()=>{let normalizedValue=Math.max(0,Math.min(1,(props.value-props.min)/(props.max-props.min))),normalizedThreshold=Math.max(0,Math.min(1,(props.threshold-props.min)/(props.max-props.min))),activeBars=Math.floor(normalizedValue*props.numBars),thresholdBar=Math.floor(normalizedThreshold*props.numBars);return Array.from({length:props.numBars},(_$1,i$1)=>({active:i$1=thresholdBar,isBelowThreshold:i$1(openBlock(),createElementBlock(`div`,null,[_ctx.showHeader?(openBlock(),createElementBlock(`div`,_hoisted_1$15,[createBaseVNode(`span`,_hoisted_2$11,toDisplayString(_ctx.label),1),createBaseVNode(`span`,_hoisted_3$10,toDisplayString(_ctx.formatValue?_ctx.formatValue(_ctx.value):`${(_ctx.value*100).toFixed(_ctx.precision)}${_ctx.unit}`),1)])):createCommentVNode(``,!0),createBaseVNode(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 p-1 dark:bg-neutral-700`,style:normalizeStyle({height:`${_ctx.height}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(thresholdBars.value,(bar,index$1)=>(openBlock(),createElementBlock(`div`,{key:`threshold-${index$1}`,class:normalizeClass([`flex-1 rounded-sm transition-all`,[bar.isThreshold?_ctx.thresholdBarClass:bar.isAboveThreshold?_ctx.aboveThresholdClass:bar.isBelowThreshold?_ctx.belowThresholdClass:_ctx.inactiveBarClass,`duration-${_ctx.animationSpeed}`]]),style:normalizeStyle({height:bar.active||bar.isThreshold?`100%`:`20%`})},null,6))),128))],4),_ctx.showLegend?(openBlock(),createElementBlock(`div`,_hoisted_4$9,[createBaseVNode(`span`,_hoisted_5$7,[createBaseVNode(`div`,{class:normalizeClass(`inline-block h-0.5lh w-1lh rounded-full ${_ctx.belowThresholdClass}`)},null,2),createTextVNode(` `+toDisplayString(_ctx.belowLabel),1)]),createBaseVNode(`span`,_hoisted_6$6,[createBaseVNode(`div`,{class:normalizeClass(`inline-block h-0.5lh w-1lh rounded-full border border-neutral-400 ${_ctx.thresholdBarClass}`)},null,2),createTextVNode(` `+toDisplayString(_ctx.thresholdLabel),1)]),createBaseVNode(`span`,_hoisted_7$5,[createBaseVNode(`div`,{class:normalizeClass(`inline-block h-0.5lh w-1lh rounded-full ${_ctx.aboveThresholdClass}`)},null,2),createTextVNode(` `+toDisplayString(_ctx.aboveLabel),1)])])):createCommentVNode(``,!0)]))}}),ThresholdMeter_default=ThresholdMeter_vue_vue_type_script_setup_true_lang_default;function colorToChromaticColor(color$2){return{color:color$2,withAlpha:alpha$1=>{let rgba$1=oklch(color$2);if(!rgba$1)throw Error(`Invalid color provided for alpha adjustment`);return colorToChromaticColor(oklch({mode:`oklch`,l:rgba$1.l,c:rgba$1.c,h:rgba$1.h,alpha:alpha$1}))},toHex:()=>formatHex(color$2),toCSS:()=>formatCss(color$2)}}function chromaticPaletteFrom(baseHue=200,baseChroma){let chroma=baseChroma??.18+Math.cos(baseHue*Math.PI/180)*.04,shadeConfig={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}},shadeBy=(shade,alpha$1,hueOffset=0)=>{let config=shadeConfig[shade],adjustedHue=(baseHue+hueOffset)%360,adjustedChroma=chroma*config.chromaMultiplier,baseColor=oklch({mode:`oklch`,l:config.lightness,c:adjustedChroma,h:adjustedHue,alpha:alpha$1??1});if(config.mixWithWhite){let white=oklch({mode:`oklch`,l:1,c:0,h:0,alpha:alpha$1??1});return colorToChromaticColor(mixColors(baseColor,white,config.mixWithWhite))}return colorToChromaticColor(baseColor)};return{baseHue,chroma,getAllShades:(alpha$1,hueOffset=0)=>{let shades={};for(let shadeKey of Object.keys(shadeConfig)){let shade=Number.parseInt(shadeKey);shades[shade]=shadeBy(shade,alpha$1,hueOffset)}return shades},shadeBy}}function mixColors(color1,color2,ratio=.5){let c1=oklch(color1),c2=oklch(color2);if(!c1||!c2)throw Error(`Invalid colors provided for mixing`);return oklch({mode:`oklch`,l:c1.l*(1-ratio)+c2.l*ratio,c:c1.c*(1-ratio)+c2.c*ratio,h:mixHues(c1.h??0,c2.h??0,ratio)})}function mixHues(h1,h2,ratio){let diff=h2-h1;return diff>180&&(diff-=360),diff<-180&&(diff+=360),(h1+diff*ratio+360)%360}const _hoisted_1$14={key:0,class:`flex items-center justify-between`},_hoisted_2$10={class:`text-sm font-medium`},_hoisted_3$9={class:`text-xs text-neutral-500`},_hoisted_4$8={class:`h-full w-full`},_hoisted_5$6={id:`below-threshold-gradient`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},_hoisted_6$5=[`fill`],_hoisted_7$4=[`y`,`height`,`fill`],_hoisted_8$4=[`y1`,`y2`,`stroke`,`fill`],_hoisted_9$4=[`d`,`fill`],_hoisted_10$4=[`d`,`stroke`,`stroke-width`],_hoisted_11$3={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`},_hoisted_12$3={class:`text-xs text-primary-700 font-medium dark:text-primary-300`},_hoisted_13$3={key:1,class:`flex flex-wrap items-center justify-between text-xs text-neutral-500`},_hoisted_14$2={class:`flex items-center gap-3`},_hoisted_15$2={class:`flex items-center gap-1 text-nowrap`},_hoisted_16$2={class:`flex items-center gap-1 text-nowrap`},_hoisted_17$1={key:0,class:`text-nowrap`};var TimeSeriesChart_vue_vue_type_script_setup_true_lang_default=defineComponent({__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(__props){let props=__props,chartHeight=computed(()=>props.height),timeSeriesChartRef=ref(),chromaticHue$1=inject(chromaticHue,chromaticHueDefault),chromaticHueOrDefault=toRef(()=>props.colorsHue||chromaticHue$1||chromaticHueDefault),chromaticShades=computed(()=>chromaticPaletteFrom(chromaticHueOrDefault.value)),timeSeriesChartContainerBounding=useElementBounding(timeSeriesChartRef,{windowResize:!0});watch([chromaticHueOrDefault,timeSeriesChartRef],()=>{timeSeriesChartRef.value&&timeSeriesChartRef.value.style.setProperty(`--chromatic-hue`,chromaticHueOrDefault.value.toString())},{immediate:!0});let lineColorProps=toRef(()=>props.lineColor),lineColor=computed(()=>lineColorProps.value?lineColorProps.value:chromaticShades.value.shadeBy(500).toHex()),thresholdColorProps=toRef(()=>props.thresholdColor),thresholdColor=computed(()=>{if(!thresholdColorProps.value){let color$2=chromaticShades.value.shadeBy(500).withAlpha(.1).color;return`oklch(${color$2.l} ${color$2.c} ${color$2.h} / ${color$2.alpha})`}return thresholdColorProps.value}),activeColorProps=toRef(()=>props.activeColor),activeColor=computed(()=>activeColorProps.value?activeColorProps.value:chromaticShades.value.shadeBy(600).toHex()),inactiveColorProps=toRef(()=>props.inactiveColor),inactiveColor=computed(()=>inactiveColorProps.value?inactiveColorProps.value:chromaticShades.value.shadeBy(400).toHex()),componentId=Math.random().toString(36).substring(2,9),gridPatternId=`grid-${componentId}`,areaGradientId=`area-gradient-${componentId}`,thresholdGradientId=`threshold-gradient-${componentId}`,normalizedThreshold=computed(()=>props.threshold===null?0:Math.max(0,Math.min(1,props.threshold))),thresholdLineY=computed(()=>props.threshold===null?0:chartHeight.value-normalizedThreshold.value*chartHeight.value),smoothPath=computed(()=>{let history$1=props.history;if(history$1.length<2)return``;let width=timeSeriesChartContainerBounding.width.value,height=chartHeight.value,path=`M0,${height-history$1[0]*height}`;for(let i$1=1;i$1{let history$1=props.history;if(history$1.length<2)return``;let width=timeSeriesChartContainerBounding.width.value,height=chartHeight.value,path=`M0,${height} L0,${height-history$1[0]*height}`;for(let i$1=1;i$1_ctx.history.length>_ctx.minDataPoints?(openBlock(),createElementBlock(`div`,{key:0,ref_key:`timeSeriesChartRef`,ref:timeSeriesChartRef,class:`time-series-chart space-y-3`},[_ctx.showHeader?(openBlock(),createElementBlock(`div`,_hoisted_1$14,[createBaseVNode(`div`,_hoisted_2$10,toDisplayString(_ctx.title),1),createBaseVNode(`div`,_hoisted_3$9,toDisplayString(_ctx.subtitle),1)])):createCommentVNode(``,!0),createBaseVNode(`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:normalizeStyle({height:`${chartHeight.value}px`})},[(openBlock(),createElementBlock(`svg`,_hoisted_4$8,[createBaseVNode(`defs`,null,[createBaseVNode(`pattern`,{id:gridPatternId,width:`20`,height:`10`,patternUnits:`userSpaceOnUse`},_cache$1[0]||=[createBaseVNode(`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)]),createBaseVNode(`linearGradient`,{id:areaGradientId,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[createBaseVNode(`stop`,{offset:`0%`,style:normalizeStyle(`stop-color:${lineColor.value};stop-opacity:0.3`)},null,4),createBaseVNode(`stop`,{offset:`50%`,style:normalizeStyle(`stop-color:${lineColor.value};stop-opacity:0.15`)},null,4),createBaseVNode(`stop`,{offset:`100%`,style:normalizeStyle(`stop-color:${lineColor.value};stop-opacity:0.05`)},null,4)]),createBaseVNode(`linearGradient`,{id:thresholdGradientId,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[createBaseVNode(`stop`,{offset:`0%`,style:normalizeStyle(`stop-color:${activeColor.value};stop-opacity:0.3`)},null,4),createBaseVNode(`stop`,{offset:`50%`,style:normalizeStyle(`stop-color:${activeColor.value};stop-opacity:0.15`)},null,4),createBaseVNode(`stop`,{offset:`100%`,style:normalizeStyle(`stop-color:${activeColor.value};stop-opacity:0.05`)},null,4)]),createBaseVNode(`linearGradient`,_hoisted_5$6,[createBaseVNode(`stop`,{offset:`0%`,style:normalizeStyle(`stop-color:${thresholdColor.value};stop-opacity:0.2`)},null,4),createBaseVNode(`stop`,{offset:`50%`,style:normalizeStyle(`stop-color:${thresholdColor.value};stop-opacity:0.1`)},null,4),createBaseVNode(`stop`,{offset:`100%`,style:normalizeStyle(`stop-color:${thresholdColor.value};stop-opacity:0.05`)},null,4)])]),createBaseVNode(`rect`,{width:`100%`,height:`100%`,fill:`url(#${gridPatternId})`},null,8,_hoisted_6$5),_ctx.showThreshold&&_ctx.threshold!==null?(openBlock(),createElementBlock(`rect`,{key:0,x:`0`,y:thresholdLineY.value,width:`100%`,height:chartHeight.value-thresholdLineY.value,fill:thresholdColor.value,class:`transition-all duration-300`},null,8,_hoisted_7$4)):createCommentVNode(``,!0),_ctx.showThreshold&&_ctx.threshold!==null?(openBlock(),createElementBlock(`line`,{key:1,x1:`0`,y1:thresholdLineY.value,x2:`100%`,y2:thresholdLineY.value,stroke:thresholdColor.value,"stroke-width":`1.5`,"stroke-dasharray":`4,4`,fill:thresholdColor.value,class:`transition-all duration-300`},null,8,_hoisted_8$4)):createCommentVNode(``,!0),dataAreaPath.value&&_ctx.showArea?(openBlock(),createElementBlock(`path`,{key:2,d:dataAreaPath.value,fill:`url(#${areaGradientId})`,class:`transition-all duration-75`},null,8,_hoisted_9$4)):createCommentVNode(``,!0),smoothPath.value?(openBlock(),createElementBlock(`path`,{key:3,d:smoothPath.value,fill:`none`,stroke:lineColor.value,"stroke-width":_ctx.lineWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`drop-shadow-sm transition-all duration-75`},null,8,_hoisted_10$4)):createCommentVNode(``,!0)])),_ctx.showCurrentValue?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`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`,_ctx.isActive?`bg-primary-50 dark:bg-primary-900 border-primary-200 dark:border-primary-800`:``])},[createBaseVNode(`div`,{class:normalizeClass([`text-xs font-medium`,_ctx.isActive?`text-primary-700 dark:text-primary-300`:`text-neutral-600 dark:text-neutral-400`])},toDisplayString(_ctx.formatValue?_ctx.formatValue(_ctx.currentValue):`${(_ctx.currentValue*100).toFixed(_ctx.precision)}${_ctx.unit}`),3)],2)):createCommentVNode(``,!0),createVNode(Transition,{name:`fade`},{default:withCtx(()=>[_ctx.isActive&&_ctx.showActiveIndicator?(openBlock(),createElementBlock(`div`,_hoisted_11$3,[_cache$1[1]||=createBaseVNode(`div`,{class:`h-1.5 w-1.5 animate-pulse rounded-full bg-primary-500`},null,-1),createBaseVNode(`span`,_hoisted_12$3,toDisplayString(_ctx.activeLabel),1)])):createCommentVNode(``,!0)]),_:1})],4),_ctx.showLegend?(openBlock(),createElementBlock(`div`,_hoisted_13$3,[createBaseVNode(`div`,_hoisted_14$2,[createBaseVNode(`span`,_hoisted_15$2,[createBaseVNode(`div`,{class:`h-2 w-2 rounded-full`,style:normalizeStyle({backgroundColor:activeColor.value})},null,4),createTextVNode(` `+toDisplayString(_ctx.activeLegendLabel),1)]),createBaseVNode(`span`,_hoisted_16$2,[createBaseVNode(`div`,{class:`h-2 w-2 rounded-full`,style:normalizeStyle({backgroundColor:inactiveColor.value})},null,4),createTextVNode(` `+toDisplayString(_ctx.inactiveLegendLabel),1)])]),_ctx.threshold===null?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_17$1,toDisplayString(_ctx.thresholdLabel)+`: `+toDisplayString((_ctx.threshold*100).toFixed(0))+`%`,1))])):createCommentVNode(``,!0)],512)):createCommentVNode(``,!0)}}),TimeSeriesChart_default=__plugin_vue_export_helper_default(TimeSeriesChart_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-6b4f300d`]]);const _hoisted_1$13={class:`p-3`},_hoisted_2$9={class:`flex items-start`},_hoisted_3$8=[`checked`,`name`,`value`],_hoisted_4$7={class:`relative mr-3 mt-0.5 flex-shrink-0`},_hoisted_5$5={key:0,class:`i-solar:pause-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},_hoisted_6$4={key:1,class:`i-solar:play-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},_hoisted_7$3={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`},_hoisted_8$3={class:`flex-1 cursor-pointer`},_hoisted_9$3={class:`flex items-center`},_hoisted_10$3={key:0,class:`mt-1 flex flex-wrap gap-1`},_hoisted_11$2={key:1,class:`mt-3`},_hoisted_12$2={relative:``},_hoisted_13$2={key:0,class:`h-16 px-3 pb-2`};var VoiceCard_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`VoiceCard`,props:mergeModels({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:mergeModels([`togglePlayback`],[`update:voice-id`,`update:custom-voice-name`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,voiceId=useModel(__props,`voice-id`),customVoiceName=useModel(__props,`custom-voice-name`);function getPreviewUrl(voice){return voice.previewURL||voice.preview_audio_url}function formatVoiceAttributes(voice){var _voice$labels4,_voice$labels5,_voice$labels6;let attributes=[];if((_voice$labels4=voice.labels)?.gender&&attributes.push(voice.labels.gender),(_voice$labels5=voice.labels)?.age&&attributes.push(voice.labels.age),(_voice$labels6=voice.labels)?.accent&&attributes.push(voice.labels.accent),voice.languages&&voice.languages.length>0){let languageNames=voice.languages.map(lang=>lang.name).join(`, `);attributes.push(languageNames)}return attributes}function togglePlayback(){emit$1(`togglePlayback`,props.voice)}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,{border:`2px solid`,class:normalizeClass([`scroll-snap-align-start form_voice-card relative flex flex-col overflow-hidden rounded-xl`,[voiceId.value===props.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`,voiceId.value===props.voice.id?`form_voice-card-active`:``]]),transition:`all duration-200 ease-in-out`},[createBaseVNode(`div`,_hoisted_1$13,[createBaseVNode(`div`,_hoisted_2$9,[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>voiceId.value=$event,checked:voiceId.value===props.voice.id,type:`radio`,name:_ctx.name,value:props.voice.id,class:`absolute cursor-pointer opacity-0`},null,8,_hoisted_3$8),[[vModelRadio,voiceId.value]]),createBaseVNode(`div`,_hoisted_4$7,[createBaseVNode(`div`,{class:normalizeClass([`size-5 border-2 rounded-full transition-colors duration-200`,[voiceId.value===props.voice.id?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[createBaseVNode(`div`,{class:normalizeClass([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[voiceId.value===props.voice.id?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),getPreviewUrl(_ctx.voice)?(openBlock(),createElementBlock(`button`,{key:0,absolute:``,"right-0":``,top:`0`,"z-3":``,class:normalizeClass([`translate-x-[-50%] translate-y-[50%]`,[_ctx.currentlyPlayingId===_ctx.voice.id?`text-white dark:text-white`:``]]),onClick:togglePlayback},[_ctx.currentlyPlayingId===_ctx.voice.id?(openBlock(),createElementBlock(`div`,_hoisted_5$5)):(openBlock(),createElementBlock(`div`,_hoisted_6$4))],2)):(openBlock(),createElementBlock(`div`,_hoisted_7$3,` No preview available `)),createBaseVNode(`div`,_hoisted_8$3,[createBaseVNode(`div`,_hoisted_9$3,[createBaseVNode(`span`,{class:normalizeClass([`line-clamp-1 font-medium`,[voiceId.value===_ctx.voice.id?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},toDisplayString(_ctx.voice.name),3)]),formatVoiceAttributes(_ctx.voice).length>0?(openBlock(),createElementBlock(`div`,_hoisted_10$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(formatVoiceAttributes(_ctx.voice),(attribute,attrIndex)=>(openBlock(),createElementBlock(`span`,{key:attrIndex,class:normalizeClass([`inline-flex items-center rounded-md px-1.5 py-0.5 text-xs`,[voiceId.value===_ctx.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`]])},toDisplayString(attribute),3))),128))])):createCommentVNode(``,!0),_ctx.voice.customizable&&voiceId.value===_ctx.voice.id?(openBlock(),createElementBlock(`div`,_hoisted_11$2,[createVNode(unref(Input_default),{modelValue:customVoiceName.value,"onUpdate:modelValue":_cache$1[1]||=$event=>customVoiceName.value=$event,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:_ctx.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),_ctx.voice.description?(openBlock(),createElementBlock(`div`,{key:2,class:normalizeClass([`line-clamp-2 mt-1 text-xs`,[voiceId.value===_ctx.voice.id?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]])},toDisplayString(_ctx.voice.description),3)):createCommentVNode(``,!0)])])]),createBaseVNode(`div`,_hoisted_12$2,[createVNode(unref(TransitionVertical_default),null,{default:withCtx(()=>[_ctx.showVisualizer&&_ctx.currentlyPlayingId===_ctx.voice.id&&_ctx.audioStream?(openBlock(),createElementBlock(`div`,_hoisted_13$2,[createVNode(unref(AudioSpectrum_default),{stream:_ctx.audioStream,bars:24,"min-freq":60,"max-freq":4e3},{default:withCtx(({frequencies})=>[createVNode(unref(AudioSpectrumVisualizer_default),{frequencies,"bars-class":voiceId.value===_ctx.voice.id?`bg-primary-500 dark:bg-primary-400`:`bg-neutral-400 dark:bg-neutral-600`},null,8,[`frequencies`,`bars-class`])]),_:1},8,[`stream`])])):createCommentVNode(``,!0)]),_:1})])],2))}}),VoiceCard_default=__plugin_vue_export_helper_default(VoiceCard_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-fd4023c4`]]);const _hoisted_1$12={class:`voice-preview-player`},_hoisted_2$8={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},_hoisted_3$7=[`placeholder`],_hoisted_4$6={class:`mt-4 space-y-2`},_hoisted_5$4={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},_hoisted_6$3={key:1,class:`flex items-center gap-3 border border-2 border-amber-200 rounded-xl bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},_hoisted_7$2={class:`flex flex-col`},_hoisted_8$2={class:`font-medium`},_hoisted_9$2={class:`text-sm text-amber-600 dark:text-amber-400`},_hoisted_10$2={class:`relative`};var VoiceCardManySelect_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`VoiceCardManySelect`,props:mergeModels({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}},{"search-query":{required:!1,default:``},"search-queryModifiers":{},"voice-id":{required:!1,default:``},"voice-idModifiers":{}}),emits:[`update:search-query`,`update:voice-id`],setup(__props){let props=__props,isListExpanded=ref(!1),currentlyPlayingId=ref(),audioElements=ref(new Map),audioStreams=ref(new Map),audioContexts=ref(new Map),audioSources=ref(new Map),sharedAudioContext=ref(null);function initAudioContext(){return sharedAudioContext.value||=new(window.AudioContext||window.webkitAudioContext),sharedAudioContext.value}let searchQuery=useModel(__props,`search-query`),voiceId=useModel(__props,`voice-id`),filteredVoices=computed(()=>{if(!searchQuery.value)return props.voices;let query=searchQuery.value.toLowerCase();return props.voices.filter(voice=>{let nameMatch=voice.name.toLowerCase().includes(query),descMatch=voice.description&&voice.description.toLowerCase().includes(query),tagMatch=voice.tags&&voice.tags.some(tag=>tag.toLowerCase().includes(query)),labelMatch=voice.labels&&Object.values(voice.labels).some(value$1=>typeof value$1==`string`&&value$1.toLowerCase().includes(query)),langMatch=voice.languages&&voice.languages.some(lang=>lang.name.toLowerCase().includes(query)||lang.code.toLowerCase().includes(query));return nameMatch||descMatch||tagMatch||labelMatch||langMatch})});function getPreviewUrl(voice){return voice.previewURL||voice.preview_audio_url}function getAudioElement(voice){let previewUrl=getPreviewUrl(voice);if(!previewUrl)return null;if(audioElements.value.has(voice.id))return audioElements.value.get(voice.id)||null;let audio=new Audio(previewUrl);return audio.crossOrigin=`anonymous`,audio.preload=`auto`,audio.addEventListener(`ended`,()=>{if(currentlyPlayingId.value===voice.id){currentlyPlayingId.value=void 0;let stream=audioStreams.value.get(voice.id);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(voice.id))}}),audioElements.value.set(voice.id,audio),audio}function createAudioStream(audio,voiceId$1){try{if(audioStreams.value.has(voiceId$1))return audioStreams.value.get(voiceId$1)||null;let audioContext=initAudioContext();if(audioSources.value.has(voiceId$1)){let source$1=audioSources.value.get(voiceId$1),destination$1=audioContext.createMediaStreamDestination();source$1.connect(destination$1);let stream$1=destination$1.stream;return audioStreams.value.set(voiceId$1,stream$1),stream$1}let source=audioContext.createMediaElementSource(audio);audioSources.value.set(voiceId$1,source),source.connect(audioContext.destination);let destination=audioContext.createMediaStreamDestination();source.connect(destination);let stream=destination.stream;return audioStreams.value.set(voiceId$1,stream),stream}catch(error){return console.error(`Failed to create audio stream for visualizer:`,error),null}}function togglePlayback(voice){try{let previewUrl=getPreviewUrl(voice);if(!previewUrl)return;let audio=getAudioElement(voice);if(!audio)return;if(currentlyPlayingId.value===voice.id){audio.pause(),currentlyPlayingId.value=void 0;let stream=audioStreams.value.get(voice.id);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(voice.id));return}if(currentlyPlayingId.value){let currentAudio=audioElements.value.get(currentlyPlayingId.value);currentAudio&¤tAudio.pause();let stream=audioStreams.value.get(currentlyPlayingId.value);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(currentlyPlayingId.value))}props.showVisualizer&&!audioStreams.value.has(voice.id)&&createAudioStream(audio,voice.id),audio.currentTime=0,audio.play().catch(error=>{console.error(`Failed to play audio:`,error)}),currentlyPlayingId.value=voice.id}catch(err){console.error(err),currentlyPlayingId.value=void 0}}function cleanup(){audioElements.value.forEach(audio=>{audio.pause(),audio.src=``}),audioElements.value.clear(),audioStreams.value.forEach(stream=>{stream.getTracks().forEach(track$1=>track$1.stop())}),audioStreams.value.clear(),audioContexts.value.forEach(context$1=>{context$1.state!==`closed`&&context$1.close()}),audioContexts.value.clear(),audioSources.value.clear(),currentlyPlayingId.value=void 0}watch(searchQuery,()=>{if(currentlyPlayingId.value){let audio=audioElements.value.get(currentlyPlayingId.value);audio&&audio.pause();let stream=audioStreams.value.get(currentlyPlayingId.value);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(currentlyPlayingId.value)),currentlyPlayingId.value=void 0}}),onBeforeUnmount(cleanup);let customVoiceName=ref(``);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$12,[_ctx.searchable?(openBlock(),createElementBlock(`div`,_hoisted_2$8,[_cache$1[4]||=createBaseVNode(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[createBaseVNode(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>searchQuery.value=$event,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:_ctx.searchPlaceholder},null,8,_hoisted_3$7),[[vModelText,searchQuery.value]])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_4$6,[searchQuery.value?(openBlock(),createElementBlock(`div`,_hoisted_5$4,toDisplayString(_ctx.searchResultsText.replace(`{count}`,filteredVoices.value.length.toString()).replace(`{total}`,_ctx.voices.length.toString())),1)):createCommentVNode(``,!0),searchQuery.value&&filteredVoices.value.length===0?(openBlock(),createElementBlock(`div`,_hoisted_6$3,[_cache$1[5]||=createBaseVNode(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),createBaseVNode(`div`,_hoisted_7$2,[createBaseVNode(`span`,_hoisted_8$2,toDisplayString(_ctx.searchNoResultsTitle),1),createBaseVNode(`span`,_hoisted_9$2,toDisplayString(_ctx.searchNoResultsDescription.replace(`{query}`,searchQuery.value)),1)])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_10$2,[createBaseVNode(`div`,{class:normalizeClass([`grid auto-cols-[350px] grid-flow-col max-h-[calc(100dvh-7lh)] gap-4 overflow-x-auto scrollbar-none`,[isListExpanded.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(openBlock(!0),createElementBlock(Fragment,null,renderList(filteredVoices.value,voice=>(openBlock(),createBlock(VoiceCard_default,{key:voice.id,"voice-id":voiceId.value,"onUpdate:voiceId":_cache$1[1]||=$event=>voiceId.value=$event,"custom-voice-name":customVoiceName.value,"onUpdate:customVoiceName":_cache$1[2]||=$event=>customVoiceName.value=$event,name:`voice`,voice,"currently-playing-id":currentlyPlayingId.value,"custom-input-placeholder":_ctx.customInputPlaceholder,"show-visualizer":_ctx.showVisualizer,"audio-stream":audioStreams.value.get(voice.id),onTogglePlayback:togglePlayback},null,8,[`voice-id`,`custom-voice-name`,`voice`,`currently-playing-id`,`custom-input-placeholder`,`show-visualizer`,`audio-stream`]))),128))],2),createBaseVNode(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:normalizeClass([isListExpanded.value?`w-full`:`mt-4 w-full rounded-lg`])},[createBaseVNode(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:normalizeClass([isListExpanded.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:_cache$1[3]||=$event=>isListExpanded.value=!isListExpanded.value},[createBaseVNode(`span`,null,toDisplayString(isListExpanded.value?_ctx.collapseButtonText:_ctx.expandButtonText),1),createBaseVNode(`div`,{class:normalizeClass([isListExpanded.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),VoiceCardManySelect_default=__plugin_vue_export_helper_default(VoiceCardManySelect_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-55cec23c`]]),BidirectionalTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`BidirectionalTransition`,props:{fromClass:{},activeClass:{},toClass:{}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(Transition,{"enter-from-class":_ctx.fromClass,"enter-active-class":_ctx.activeClass,"enter-to-class":_ctx.toClass,"leave-from-class":_ctx.toClass,"leave-active-class":_ctx.activeClass,"leave-to-class":_ctx.fromClass},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`enter-from-class`,`enter-active-class`,`enter-to-class`,`leave-from-class`,`leave-active-class`,`leave-to-class`]))}}),BidirectionalTransition_default=BidirectionalTransition_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$11=[`disabled`],_hoisted_2$7={class:`flex flex-row items-center justify-center gap-2`},_hoisted_3$6={key:0,class:`w-4`},_hoisted_4$5={key:0,class:`i-svg-spinners:ring-resize h-4 w-4`},_hoisted_5$3={key:0};var Button_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Button`,props:{icon:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},variant:{default:`primary`},size:{default:`md`},block:{type:Boolean,default:!1}},setup(__props){let props=__props,isDisabled=computed(()=>props.disabled||props.loading),variantClasses={primary:`bg-primary-400 hover:bg-primary-500 active:bg-primary-600 dark:bg-primary-700 dark:hover:bg-primary-500 dark:active:bg-primary-700 focus:ring-primary-300/50 dark:focus:ring-primary-600/50 text-white`,secondary:`bg-neutral-100 hover:bg-neutral-200 active:bg-neutral-300 dark:bg-neutral-700 dark:hover:bg-neutral-500 dark:active:bg-neutral-700 focus:ring-neutral-300/50 dark:focus:ring-neutral-600/50 text-neutral-900 dark:text-neutral-100`,danger:`bg-red-400 hover:bg-red-500 active:bg-red-600 dark:bg-red-700 dark:hover:bg-red-500 dark:active:bg-red-700 focus:ring-red-300/50 dark:focus:ring-red-600/50 text-white`},sizeClasses={sm:`px-3 py-1.5 text-xs`,md:`px-4 py-2 text-sm`,lg:`px-6 py-3 text-base`},baseClasses=computed(()=>[`rounded-lg font-medium outline-none transition-all duration-150 ease-in-out`,`disabled:cursor-not-allowed disabled:opacity-50`,props.block?`w-full`:``,sizeClasses[props.size],variantClasses[props.variant],{"opacity-50 cursor-not-allowed":isDisabled.value},`focus:ring-2 focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900`]);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`button`,{disabled:isDisabled.value,class:normalizeClass(baseClasses.value)},[createBaseVNode(`div`,_hoisted_2$7,[createVNode(unref(BidirectionalTransition_default),{"from-class":`opacity-0 mr-0! w-0!`,"active-class":`transition-[width,margin] ease-in-out overflow-hidden transition-100`},{default:withCtx(()=>[_ctx.loading||_ctx.icon?(openBlock(),createElementBlock(`div`,_hoisted_3$6,[_ctx.loading?(openBlock(),createElementBlock(`div`,_hoisted_4$5)):_ctx.icon?(openBlock(),createElementBlock(`div`,{key:1,class:normalizeClass([`h-4 w-4`,_ctx.icon])},null,2)):createCommentVNode(``,!0)])):createCommentVNode(``,!0)]),_:1}),_ctx.label?(openBlock(),createElementBlock(`span`,_hoisted_5$3,toDisplayString(_ctx.label),1)):renderSlot(_ctx.$slots,`default`,{key:1})])],10,_hoisted_1$11))}}),Button_default=Button_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$10={op50:``};var Collapsable_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Collapsable`,props:mergeModels({default:{type:Boolean},label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,visible=useModel(__props,`modelValue`);watchEffect(()=>{props.default!=null&&(visible.value=!!props.default)});function setVisible(value$1){return visible.value=value$1,value$1}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,null,[renderSlot(_ctx.$slots,`trigger`,normalizeProps(guardReactiveProps({visible:visible.value,setVisible})),()=>[createBaseVNode(`button`,{sticky:``,"top-0":``,"z-10":``,flex:``,"items-center":``,"justify-between":``,px2:``,py1:``,"text-sm":``,"backdrop-blur-xl":``,onClick:_cache$1[0]||=$event=>visible.value=!visible.value},[createBaseVNode(`span`,null,toDisplayString(props.label??`Collapsable`),1),_cache$1[1]||=createTextVNode(),createBaseVNode(`span`,_hoisted_1$10,toDisplayString(visible.value?`▲`:`▼`),1)])]),createVNode(unref(TransitionVertical_default),null,{default:withCtx(()=>[visible.value?renderSlot(_ctx.$slots,`default`,normalizeProps(mergeProps({key:0},{visible:visible.value,setVisible}))):createCommentVNode(``,!0)]),_:3})]))}}),Collapsable_default=Collapsable_vue_vue_type_script_setup_true_lang_default,Screen_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Screen`,setup(__props){let containerRef=ref(),breakpoints=useBreakpoints(breakpointsTailwind),{width,height}=useWindowSize(),containerElementBounding=useElementBounding(containerRef,{immediate:!0,windowResize:!0,reset:!0}),isMobile=computed(()=>breakpoints.between(`sm`,`md`).value||breakpoints.smaller(`sm`).value),isTablet=computed(()=>breakpoints.between(`md`,`lg`).value),isDesktop=computed(()=>breakpoints.greaterOrEqual(`lg`).value),canvasWidth=computed(()=>isDesktop.value?containerElementBounding.width.value:isMobile.value||isTablet.value?width.value-16:containerElementBounding.width.value),canvasHeight=ref(0);return watch([width,height,containerRef],()=>{var _containerRef$value;let bounding=(_containerRef$value=containerRef.value)==null||(_containerRef$value=_containerRef$value.parentElement)==null?void 0:_containerRef$value.getBoundingClientRect();isDesktop.value||isMobile.value||isTablet.value?canvasHeight.value=bounding?.height||0:canvasHeight.value=600}),watch([containerElementBounding.width,containerElementBounding.height],()=>{isDesktop.value||isMobile.value||isTablet.value?canvasHeight.value=containerElementBounding.height.value:canvasHeight.value=600}),onMounted(async()=>{containerRef.value&&containerElementBounding.update()}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{ref_key:`containerRef`,ref:containerRef,"h-full":``,"w-full":``},[renderSlot(_ctx.$slots,`default`,{width:canvasWidth.value,height:canvasHeight.value})],512))}}),Screen_default=Screen_vue_vue_type_script_setup_true_lang_default,Skeleton_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Skeleton`,props:{animation:{default:`pulse`}},setup(__props){let props=__props;return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:normalizeClass([`skeleton`,props.animation===`none`?``:`skeleton-${props.animation}`]),bg:`neutral-200 dark:neutral-800`,overflow:`hidden`},[renderSlot(_ctx.$slots,`default`,{},void 0,!0)],2))}}),Skeleton_default=__plugin_vue_export_helper_default(Skeleton_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-9aeafd92`]]);const _hoisted_1$9={class:`mb-2 text-center md:mb-8`},_hoisted_2$6={class:`mb-1 flex justify-center md:mb-4`},_hoisted_3$5=[`src`],_hoisted_4$4={class:`mb-0 text-lg text-neutral-800 font-bold md:mb-2 md:text-3xl dark:text-neutral-100`},_hoisted_5$2={class:`text-sm text-neutral-600 md:text-lg dark:text-neutral-400`},_hoisted_6$2={class:`mb-2 md:mb-8`},_hoisted_7$1={class:`mb-4 text-center text-lg text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},_hoisted_8$1={class:`grid grid-cols-1 max-h-[25dvh] gap-3 overflow-y-scroll sm:grid-cols-2 md:max-h-full`},_hoisted_9$1={key:0,class:`mb-2 md:mb-8`},_hoisted_10$1={class:`mb-4 text-lg text-neutral-800 font-medium dark:text-neutral-100`},_hoisted_11$1={class:`space-y-4`},_hoisted_12$1={key:0},_hoisted_13$1={key:1},_hoisted_14$1={key:2},_hoisted_15$1={key:0,class:`mt-4`},_hoisted_16$1={class:`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end md:gap-3`};var Onboarding_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Onboarding`,emits:[`configured`,`skipped`],setup(__props,{emit:__emit}){let emit$1=__emit,{t}=useI18n(),providersStore=useProvidersStore(),{providers,allChatProvidersMetadata}=storeToRefs(providersStore),popularProviders=computed(()=>{let popular=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`];return allChatProvidersMetadata.value.filter(provider=>popular.includes(provider.id)).sort((a$2,b$3)=>popular.indexOf(a$2.id)-popular.indexOf(b$3.id))}),selectedProviderId=ref(``),apiKey=ref(``),baseUrl=ref(``),accountId=ref(``),selectedProvider=computed(()=>allChatProvidersMetadata.value.find(p$5=>p$5.id===selectedProviderId.value)||null),isValidating=ref(!1),isValid$1=ref(!1),validationMessage=ref(``),needsApiKey=computed(()=>selectedProvider.value?selectedProvider.value.id!==`ollama`&&selectedProvider.value.id!==`player2`:!1),needsBaseUrl=computed(()=>selectedProvider.value?selectedProvider.value.id!==`cloudflare-workers-ai`:!1),canSave=computed(()=>!selectedProvider.value||needsApiKey.value&&!apiKey.value.trim()||needsBaseUrl.value&&!baseUrl.value.trim()||selectedProvider.value.id===`cloudflare-workers-ai`&&!accountId.value.trim()?!1:isValid$1.value);function selectProvider(provider){var _provider$defaultOpti;selectedProviderId.value=provider.id;let defaultOptions=(_provider$defaultOpti=provider.defaultOptions)?.call(provider)||{};baseUrl.value=defaultOptions?.baseUrl||``,apiKey.value=``,accountId.value=``,isValid$1.value=!1,validationMessage.value=``}function getApiKeyPlaceholder(_providerId){let placeholders={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-...`,"fireworks-ai":`fw-...`,"featherless-ai":`fw-...`,"novita-ai":`nvt-...`};return placeholders[_providerId]||`API Key`}function getBaseUrlPlaceholder(_providerId){var _selectedProvider$val,_selectedProvider$val2;let defaultOptions=((_selectedProvider$val=selectedProvider.value)==null||(_selectedProvider$val2=_selectedProvider$val.defaultOptions)==null?void 0:_selectedProvider$val2.call(_selectedProvider$val))||{};return defaultOptions?.baseUrl||`https://api.example.com/v1/`}async function validateConfiguration(){if(selectedProvider.value){isValidating.value=!0,validationMessage.value=t(`settings.dialogs.onboarding.validating`);try{let config={};needsApiKey.value&&(config.apiKey=apiKey.value.trim()),needsBaseUrl.value&&(config.baseUrl=baseUrl.value.trim()),selectedProvider.value.id===`cloudflare-workers-ai`&&(config.accountId=accountId.value.trim());let metadata=providersStore.getProviderMetadata(selectedProvider.value.id);isValid$1.value=await metadata.validators.validateProviderConfig(config),isValid$1.value?validationMessage.value=t(`settings.dialogs.onboarding.validationSuccess`):validationMessage.value=t(`settings.dialogs.onboarding.validationFailed`)}catch(error){isValid$1.value=!1,validationMessage.value=t(`settings.dialogs.onboarding.validationError`,{error:error instanceof Error?error.message:String(error)})}finally{isValidating.value=!1}}}let debouncedValidateConfiguration=useDebounceFn(()=>{selectedProvider.value&&(needsApiKey.value&&!apiKey.value.trim()||needsBaseUrl.value&&!baseUrl.value.trim()||selectedProvider.value.id===`cloudflare-workers-ai`&&!accountId.value.trim()||validateConfiguration())},500);watch([apiKey,baseUrl,accountId],()=>{selectedProvider.value&&(apiKey.value||baseUrl.value||accountId.value)&&debouncedValidateConfiguration()},{deep:!0});function handleSkip(){emit$1(`skipped`)}async function handleSave(){if(!selectedProvider.value||!canSave.value)return;let config={};needsApiKey.value&&(config.apiKey=apiKey.value.trim()),needsBaseUrl.value&&(config.baseUrl=baseUrl.value.trim()),selectedProvider.value.id===`cloudflare-workers-ai`&&(config.accountId=accountId.value.trim()),providers.value[selectedProvider.value.id]={...providers.value[selectedProvider.value.id],...config},emit$1(`configured`)}return onMounted(()=>{popularProviders.value.length>0&&(selectedProviderId.value=popularProviders.value[0].id,selectProvider(popularProviders.value[0]))}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode(`div`,_hoisted_1$9,[createBaseVNode(`div`,_hoisted_2$6,[createBaseVNode(`img`,{src:unref(onboarding_default),w:`20 md:25`},null,8,_hoisted_3$5)]),createBaseVNode(`h2`,_hoisted_4$4,toDisplayString(unref(t)(`settings.dialogs.onboarding.title`)),1),createBaseVNode(`p`,_hoisted_5$2,toDisplayString(unref(t)(`settings.dialogs.onboarding.description`)),1)]),createBaseVNode(`div`,_hoisted_6$2,[createBaseVNode(`h2`,_hoisted_7$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.selectProvider`)),1),createBaseVNode(`div`,_hoisted_8$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(popularProviders.value,provider=>(openBlock(),createBlock(unref(RadioCardDetail_default),{id:provider.id,key:provider.id,modelValue:selectedProviderId.value,"onUpdate:modelValue":_cache$1[0]||=$event=>selectedProviderId.value=$event,name:`provider-selection`,value:provider.id,title:provider.localizedName||provider.id,description:provider.localizedDescription||``,onClick:$event=>selectProvider(provider)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`onClick`]))),128))])]),selectedProvider.value?(openBlock(),createElementBlock(`div`,_hoisted_9$1,[createBaseVNode(`h3`,_hoisted_10$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.configureProvider`,{provider:selectedProvider.value.localizedName})),1),createBaseVNode(`div`,_hoisted_11$1,[needsApiKey.value?(openBlock(),createElementBlock(`div`,_hoisted_12$1,[_cache$1[4]||=createBaseVNode(`label`,{class:`mb-2 block text-sm text-neutral-700 font-medium dark:text-neutral-300`},[createTextVNode(` API Key `),createBaseVNode(`span`,{class:`text-red-500`},`*`)],-1),createVNode(unref(Input_default),{modelValue:apiKey.value,"onUpdate:modelValue":_cache$1[1]||=$event=>apiKey.value=$event,type:`password`,placeholder:getApiKeyPlaceholder(selectedProvider.value.id),class:`w-full`,required:!0},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),needsBaseUrl.value?(openBlock(),createElementBlock(`div`,_hoisted_13$1,[_cache$1[5]||=createBaseVNode(`label`,{class:`mb-2 block text-sm text-neutral-700 font-medium dark:text-neutral-300`},` Base URL `,-1),createVNode(unref(Input_default),{modelValue:baseUrl.value,"onUpdate:modelValue":_cache$1[2]||=$event=>baseUrl.value=$event,type:`url`,placeholder:getBaseUrlPlaceholder(selectedProvider.value.id),class:`w-full`},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),selectedProvider.value.id===`cloudflare-workers-ai`?(openBlock(),createElementBlock(`div`,_hoisted_14$1,[_cache$1[6]||=createBaseVNode(`label`,{class:`mb-2 block text-sm text-neutral-700 font-medium dark:text-neutral-300`},[createTextVNode(` Account ID `),createBaseVNode(`span`,{class:`text-red-500`},`*`)],-1),createVNode(unref(Input_default),{modelValue:accountId.value,"onUpdate:modelValue":_cache$1[3]||=$event=>accountId.value=$event,type:`text`,placeholder:`Account ID`,class:`w-full`,required:!0},null,8,[`modelValue`])])):createCommentVNode(``,!0)]),validationMessage.value?(openBlock(),createElementBlock(`div`,_hoisted_15$1,[createBaseVNode(`div`,{class:normalizeClass([`flex items-center rounded-lg p-3`,[isValidating.value?`bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`:isValid$1.value?`bg-green-50 text-green-700 dark:bg-green-900/30 dark:text-green-300`:`bg-red-50 text-red-700 dark:bg-red-900/30 dark:text-red-300`]])},[createBaseVNode(`div`,{class:normalizeClass([`mr-2 text-lg`,[isValidating.value?`i-svg-spinners:3-dots-fade`:isValid$1.value?`i-solar:check-circle-bold-duotone`:`i-solar:danger-circle-bold-duotone`]])},null,2),createTextVNode(` `+toDisplayString(validationMessage.value),1)],2)])):createCommentVNode(``,!0)])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_16$1,[createVNode(unref(Button_default),{variant:`secondary`,label:unref(t)(`settings.dialogs.onboarding.skipForNow`),onClick:handleSkip},null,8,[`label`]),createVNode(unref(Button_default),{variant:`primary`,disabled:!canSave.value,label:unref(t)(`settings.dialogs.onboarding.saveAndContinue`),onClick:handleSave},null,8,[`disabled`,`label`])])],64))}}),Onboarding_default=Onboarding_vue_vue_type_script_setup_true_lang_default,OnboardingDialog_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`OnboardingDialog`,props:{modelValue:{type:Boolean,default:!1,required:!1},modelModifiers:{}},emits:mergeModels([`configured`,`skipped`],[`update:modelValue`]),setup(__props,{emit:__emit}){let emit$1=__emit,showDialog=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$3),{open:showDialog.value,"onUpdate:open":_cache$1[2]||=value$1=>showDialog.value=value$1},{default:withCtx(()=>[createVNode(unref(_sfc_main$2),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$1),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm`}),createVNode(unref(_sfc_main),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-[9999] mx-0 max-w-2xl w-[92vw] transform rounded-lg bg-white p-4 shadow-xl backdrop-blur-md md:mx-4 -translate-x-1/2 -translate-y-1/2 dark:bg-neutral-900 md:p-8`},{default:withCtx(()=>[createVNode(Onboarding_default,{onConfigured:_cache$1[0]||=$event=>emit$1(`configured`),onSkipped:_cache$1[1]||=$event=>emit$1(`skipped`)})]),_:1})]),_:1})]),_:1},8,[`open`]))}}),OnboardingDialog_default=OnboardingDialog_vue_vue_type_script_setup_true_lang_default;const __vite_import_meta_env__={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_TARGET_HUGGINGFACE_SPACE:`true`};var SubscriptionManager=class{constructor(){babelHelpers.defineProperty(this,`subscriptions`,new Set)}add(handler){return this.subscriptions.add(handler),()=>this.subscriptions.delete(handler)}notify(a$2,b$3,c$4){if(this.subscriptions.size)for(let handler of this.subscriptions)handler(a$2,b$3,c$4)}clear(){this.subscriptions.clear()}};function isFloat(value$1){return!Number.isNaN(Number.parseFloat(value$1))}var MotionValue=class{constructor(init){babelHelpers.defineProperty(this,`current`,void 0),babelHelpers.defineProperty(this,`prev`,void 0),babelHelpers.defineProperty(this,`timeDelta`,0),babelHelpers.defineProperty(this,`lastUpdated`,0),babelHelpers.defineProperty(this,`updateSubscribers`,new SubscriptionManager),babelHelpers.defineProperty(this,`stopAnimation`,void 0),babelHelpers.defineProperty(this,`canTrackVelocity`,!1),babelHelpers.defineProperty(this,`updateAndNotify`,v$1=>{this.prev=this.current,this.current=v$1;let{delta,timestamp:timestamp$2}=getFrameData();this.lastUpdated!==timestamp$2&&(this.timeDelta=delta,this.lastUpdated=timestamp$2),es_default.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),babelHelpers.defineProperty(this,`scheduleVelocityCheck`,()=>es_default.postRender(this.velocityCheck)),babelHelpers.defineProperty(this,`velocityCheck`,({timestamp:timestamp$2})=>{this.canTrackVelocity||=isFloat(this.current),timestamp$2!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=init,this.canTrackVelocity=isFloat(this.current)}onChange(subscription){return this.updateSubscribers.add(subscription)}clearListeners(){this.updateSubscribers.clear()}set(v$1){this.updateAndNotify(v$1)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(animation){return this.stop(),new Promise(resolve$1=>{let{stop:stop$1}=animation(resolve$1);this.stopAnimation=stop$1}).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 getMotionValue(init){return new MotionValue(init)}const{isArray}=Array;function useMotionValues(){let motionValues=ref({}),stop$1=keys$3=>{let destroyKey=key$1=>{motionValues.value[key$1]&&(motionValues.value[key$1].stop(),motionValues.value[key$1].destroy(),delete motionValues.value[key$1])};keys$3?isArray(keys$3)?keys$3.forEach(destroyKey):destroyKey(keys$3):Object.keys(motionValues.value).forEach(destroyKey)},get=(key$1,from,target$1)=>{if(motionValues.value[key$1])return motionValues.value[key$1];let motionValue=getMotionValue(from);return motionValue.onChange(v$1=>target$1[key$1]=v$1),motionValues.value[key$1]=motionValue,motionValue};return tryOnUnmounted(stop$1),{motionValues,get,stop:stop$1}}function isKeyframesTarget(v$1){return Array.isArray(v$1)}function underDampedSpring(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?100:30,restDelta:.01,restSpeed:10}}function linearTween(){return{type:`keyframes`,ease:`linear`,duration:300}}function keyframes(values){return{type:`keyframes`,duration:800,values}}const defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween};function getDefaultTransition(valueKey,to$1){let transitionFactory;return transitionFactory=isKeyframesTarget(to$1)?keyframes:defaultTransitions[valueKey]||defaultTransitions.default,{to:to$1,...transitionFactory(to$1)}}const int={...number,transform:Math.round},valueTypes={color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter,WebkitFilter:filter,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=key$1=>valueTypes[key$1];function getValueAsType(value$1,type){return type&&typeof value$1==`number`&&type.transform?type.transform(value$1):value$1}function getAnimatableNone(key$1,value$1){let defaultValueType=getValueType(key$1);return defaultValueType!==filter&&(defaultValueType=complex),defaultValueType.getAnimatableNone?defaultValueType.getAnimatableNone(value$1):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction(definition$29){if(Array.isArray(definition$29)){let[x1,y1,x2,y2]=definition$29;return cubicBezier(x1,y1,x2,y2)}else if(typeof definition$29==`string`)return easingLookup[definition$29];return definition$29}function isEasingArray(ease){return Array.isArray(ease)&&typeof ease[0]!=`number`}function isAnimatable(key$1,value$1){return key$1===`zIndex`?!1:!!(typeof value$1==`number`||Array.isArray(value$1)||typeof value$1==`string`&&complex.test(value$1)&&!value$1.startsWith(`url(`))}function hydrateKeyframes(options$1){return Array.isArray(options$1.to)&&options$1.to[0]===null&&(options$1.to=[...options$1.to],options$1.to[0]=options$1.from),options$1}function convertTransitionToAnimationOptions({ease,times,delay,...transition}){let options$1={...transition};return times&&(options$1.offset=times),ease&&(options$1.ease=isEasingArray(ease)?ease.map(easingDefinitionToFunction):easingDefinitionToFunction(ease)),delay&&(options$1.elapsed=-delay),options$1}function getPopmotionAnimationOptions(transition,options$1,key$1){return Array.isArray(options$1.to)&&(transition.duration||=800),hydrateKeyframes(options$1),isTransitionDefined(transition)||(transition={...transition,...getDefaultTransition(key$1,options$1.to)}),{...options$1,...convertTransitionToAnimationOptions(transition)}}function isTransitionDefined({delay,repeat,repeatType,repeatDelay,from,...transition}){return!!Object.keys(transition).length}function getValueTransition(transition,key$1){return transition[key$1]||transition.default||transition}function getAnimation(key$1,value$1,target$1,transition,onComplete){let valueTransition=getValueTransition(transition,key$1),origin=valueTransition.from===null||valueTransition.from===void 0?value$1.get():valueTransition.from,isTargetAnimatable=isAnimatable(key$1,target$1);origin===`none`&&isTargetAnimatable&&typeof target$1==`string`&&(origin=getAnimatableNone(key$1,target$1));let isOriginAnimatable=isAnimatable(key$1,origin);function start(complete){let options$1={from:origin,to:target$1,velocity:transition.velocity?transition.velocity:value$1.getVelocity(),onUpdate:v$1=>value$1.set(v$1)};return valueTransition.type===`inertia`||valueTransition.type===`decay`?inertia({...options$1,...valueTransition}):animate({...getPopmotionAnimationOptions(valueTransition,options$1,key$1),onUpdate:v$1=>{options$1.onUpdate(v$1),valueTransition.onUpdate&&valueTransition.onUpdate(v$1)},onComplete:()=>{onComplete&&onComplete(),complete&&complete()}})}function set(complete){return value$1.set(target$1),onComplete&&onComplete(),complete&&complete(),{stop:()=>{}}}return!isOriginAnimatable||!isTargetAnimatable||valueTransition.type===!1?set:start}function useMotionTransitions(){let{motionValues,stop:stop$1,get}=useMotionValues(),push$1=(key$1,value$1,target$1,transition={},onComplete)=>{let from=target$1[key$1],motionValue=get(key$1,from,target$1);if(transition&&transition.immediate){motionValue.set(value$1);return}let animation=getAnimation(key$1,motionValue,value$1,transition,onComplete);motionValue.start(animation)};return{motionValues,stop:stop$1,push:push$1}}function useMotionControls(motionProperties,variants={},{motionValues,push:push$1,stop:stop$1}=useMotionTransitions()){let _variants=unref(variants),isAnimating=ref(!1);watch(motionValues,newVal=>{isAnimating.value=Object.values(newVal).filter(value$1=>value$1.isAnimating()).length>0},{immediate:!0,deep:!0});let getVariantFromKey=variant=>{if(!_variants||!_variants[variant])throw Error(`The variant ${variant} does not exist.`);return _variants[variant]},apply$2=variant=>{typeof variant==`string`&&(variant=getVariantFromKey(variant));let animations$1=Object.entries(variant).map(([key$1,value$1])=>{if(key$1!==`transition`)return new Promise(resolve$1=>push$1(key$1,value$1,motionProperties,variant.transition||getDefaultTransition(key$1,variant[key$1]),resolve$1))}).filter(Boolean);async function waitForComplete(){var _variant$transition2,_variant$transition2$;await Promise.all(animations$1),(_variant$transition2=variant.transition)==null||(_variant$transition2$=_variant$transition2.onComplete)==null||_variant$transition2$.call(_variant$transition2)}return Promise.all([waitForComplete()])},set=variant=>{let variantData=isObject(variant)?variant:getVariantFromKey(variant);Object.entries(variantData).forEach(([key$1,value$1])=>{key$1!==`transition`&&push$1(key$1,value$1,motionProperties,{immediate:!0})})},leave=async done=>{let leaveVariant;if(_variants&&(_variants.leave&&(leaveVariant=_variants.leave),!_variants.leave&&_variants.initial&&(leaveVariant=_variants.initial)),!leaveVariant){done();return}await apply$2(leaveVariant),done()};return{isAnimating,apply:apply$2,set,leave,stop:stop$1}}const isBrowser=typeof window<`u`,supportsPointerEvents=()=>isBrowser&&(window.onpointerdown===null||__vite_import_meta_env__?.TEST),supportsTouchEvents=()=>isBrowser&&(window.ontouchstart===null||__vite_import_meta_env__?.TEST),supportsMouseEvents=()=>isBrowser&&(window.onmousedown===null||__vite_import_meta_env__?.TEST);function registerEventListeners({target:target$1,state,variants,apply:apply$2}){let _variants=unref(variants),hovered=ref(!1),tapped=ref(!1),focused=ref(!1),mutableKeys=computed(()=>{let result=[...Object.keys(state.value||{})];return _variants?(_variants.hovered&&(result=[...result,...Object.keys(_variants.hovered)]),_variants.tapped&&(result=[...result,...Object.keys(_variants.tapped)]),_variants.focused&&(result=[...result,...Object.keys(_variants.focused)]),result):result}),computedProperties=computed(()=>{let result={};for(let key$1 in Object.assign(result,state.value),hovered.value&&_variants.hovered&&Object.assign(result,_variants.hovered),tapped.value&&_variants.tapped&&Object.assign(result,_variants.tapped),focused.value&&_variants.focused&&Object.assign(result,_variants.focused),result)mutableKeys.value.includes(key$1)||delete result[key$1];return result});_variants.hovered&&(useEventListener(target$1,`mouseenter`,()=>hovered.value=!0),useEventListener(target$1,`mouseleave`,()=>{hovered.value=!1,tapped.value=!1})),_variants.tapped&&(supportsMouseEvents()&&(useEventListener(target$1,`mousedown`,()=>tapped.value=!0),useEventListener(target$1,`mouseup`,()=>tapped.value=!1)),supportsPointerEvents()&&(useEventListener(target$1,`pointerdown`,()=>tapped.value=!0),useEventListener(target$1,`pointerup`,()=>tapped.value=!1)),supportsTouchEvents()&&(useEventListener(target$1,`touchstart`,()=>tapped.value=!0),useEventListener(target$1,`touchend`,()=>tapped.value=!1))),_variants.focused&&(useEventListener(target$1,`focus`,()=>focused.value=!0),useEventListener(target$1,`blur`,()=>focused.value=!1)),watch([hovered,tapped,focused],()=>{apply$2(computedProperties.value)})}function registerLifeCycleHooks({set,target:target$1,variants,variant}){let _variants=unref(variants);watch(()=>target$1,()=>{_variants&&(_variants.initial&&(set(`initial`),variant.value=`initial`),_variants.enter&&(variant.value=`enter`))},{immediate:!0,flush:`pre`})}function registerVariantsSync({state,apply:apply$2}){watch(state,newVal=>{newVal&&apply$2(newVal)},{immediate:!0})}function registerVisibilityHooks({target:target$1,variants,variant}){let _variants=unref(variants);_variants&&(_variants.visible||_variants.visibleOnce)&&useIntersectionObserver(target$1,([{isIntersecting}])=>{_variants.visible?isIntersecting?variant.value=`visible`:variant.value=`initial`:_variants.visibleOnce&&(isIntersecting&&variant.value!==`visibleOnce`?variant.value=`visibleOnce`:variant.value||=`initial`)})}function useMotionFeatures(instance,options$1={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){options$1.lifeCycleHooks&®isterLifeCycleHooks(instance),options$1.syncVariants&®isterVariantsSync(instance),options$1.visibilityHooks&®isterVisibilityHooks(instance),options$1.eventListeners&®isterEventListeners(instance)}function reactiveStyle(props={}){let state=reactive({...props}),style=ref({});return watch(state,()=>{let result={};for(let[key$1,value$1]of Object.entries(state)){let valueType=getValueType(key$1),valueAsType=getValueAsType(value$1,valueType);result[key$1]=valueAsType}style.value=result},{immediate:!0,deep:!0}),{state,style}}function usePermissiveTarget(target$1,onTarget){watch(()=>unrefElement(target$1),el=>{el&&onTarget(el)},{immediate:!0})}const translateAlias={x:`translateX`,y:`translateY`,z:`translateZ`};function reactiveTransform(props={},enableHardwareAcceleration=!0){let state=reactive({...props}),transform$1=ref(``);return watch(state,newVal=>{let result=``,hasHardwareAcceleration=!1;if(enableHardwareAcceleration&&(newVal.x||newVal.y||newVal.z)){let str=[newVal.x||0,newVal.y||0,newVal.z||0].map(val=>getValueAsType(val,px)).join(`,`);result+=`translate3d(${str}) `,hasHardwareAcceleration=!0}for(let[key$1,value$1]of Object.entries(newVal)){if(enableHardwareAcceleration&&(key$1===`x`||key$1===`y`||key$1===`z`))continue;let valueType=getValueType(key$1),valueAsType=getValueAsType(value$1,valueType);result+=`${translateAlias[key$1]||key$1}(${valueAsType}) `}enableHardwareAcceleration&&!hasHardwareAcceleration&&(result+=`translateZ(0px) `),transform$1.value=result.trim()},{immediate:!0,deep:!0}),{state,transform:transform$1}}const transformAxes=[``,`X`,`Y`,`Z`],order=[`perspective`,`translate`,`scale`,`rotate`,`skew`],transformProps=[`transformPerspective`,`x`,`y`,`z`];order.forEach(operationKey=>{transformAxes.forEach(axesKey=>{let key$1=operationKey+axesKey;transformProps.push(key$1)})});const transformPropSet=new Set(transformProps);function isTransformProp(key$1){return transformPropSet.has(key$1)}const transformOriginProps=new Set([`originX`,`originY`,`originZ`]);function isTransformOriginProp(key$1){return transformOriginProps.has(key$1)}function splitValues(variant){let transform$1={},style={};return Object.entries(variant).forEach(([key$1,value$1])=>{isTransformProp(key$1)||isTransformOriginProp(key$1)?transform$1[key$1]=value$1:style[key$1]=value$1}),{transform:transform$1,style}}function variantToStyle(variant){let{transform:_transform,style:_style}=splitValues(variant),{transform:transform$1}=reactiveTransform(_transform),{style}=reactiveStyle(_style);return transform$1.value&&(style.value.transform=transform$1.value),style.value}function useElementStyle(target$1,onInit){let _cache$1,_target$1,{state,style}=reactiveStyle();return usePermissiveTarget(target$1,el=>{_target$1=el;for(let key$1 of Object.keys(valueTypes)){if(el.style[key$1]===null||el.style[key$1]===``||isTransformProp(key$1)||isTransformOriginProp(key$1))continue;state[key$1]=el.style[key$1]}_cache$1&&Object.entries(_cache$1).forEach(([key$1,value$1])=>el.style[key$1]=value$1),onInit&&onInit(state)}),watch(style,newVal=>{if(!_target$1){_cache$1=newVal;return}for(let key$1 in newVal)_target$1.style[key$1]=newVal[key$1]},{immediate:!0}),{style:state}}function parseTransform(transform$1){let transforms=transform$1.trim().split(/\) |\)/);if(transforms.length===1)return{};let parseValues=value$1=>value$1.endsWith(`px`)||value$1.endsWith(`deg`)?Number.parseFloat(value$1):Number.isNaN(Number(value$1))?Number(value$1):value$1;return transforms.reduce((acc,transform2)=>{if(!transform2)return acc;let[name$2,transformValue]=transform2.split(`(`),valueArray=transformValue.split(`,`),values=valueArray.map(val=>parseValues(val.endsWith(`)`)?val.replace(`)`,``):val.trim())),value$1=values.length===1?values[0]:values;return{...acc,[name$2]:value$1}},{})}function stateFromTransform(state,transform$1){Object.entries(parseTransform(transform$1)).forEach(([key$1,value$1])=>{let axes=[`x`,`y`,`z`];if(key$1===`translate3d`){if(value$1===0){axes.forEach(axis=>state[axis]=0);return}value$1.forEach((axisValue,index$1)=>state[axes[index$1]]=axisValue);return}if(value$1=Number.parseFloat(`${value$1}`),key$1===`translateX`){state.x=value$1;return}if(key$1===`translateY`){state.y=value$1;return}if(key$1===`translateZ`){state.z=value$1;return}state[key$1]=value$1})}function useElementTransform(target$1,onInit){let _cache$1,_target$1,{state,transform:transform$1}=reactiveTransform();return usePermissiveTarget(target$1,el=>{_target$1=el,el.style.transform&&stateFromTransform(state,el.style.transform),_cache$1&&(el.style.transform=_cache$1),onInit&&onInit(state)}),watch(transform$1,newValue=>{if(!_target$1){_cache$1=newValue;return}_target$1.style.transform=newValue},{immediate:!0}),{transform:state}}function objectEntries(obj){return Object.entries(obj)}function useMotionProperties(target$1,defaultValues){let motionProperties=reactive({}),apply$2=values=>Object.entries(values).forEach(([key$1,value$1])=>motionProperties[key$1]=value$1),{style}=useElementStyle(target$1,apply$2),{transform:transform$1}=useElementTransform(target$1,apply$2);return watch(motionProperties,newVal=>{objectEntries(newVal).forEach(([key$1,value$1])=>{let target2=isTransformProp(key$1)?transform$1:style;target2[key$1]&&target2[key$1]===value$1||(target2[key$1]=value$1)})},{immediate:!0,deep:!0}),usePermissiveTarget(target$1,()=>defaultValues&&apply$2(defaultValues)),{motionProperties,style,transform:transform$1}}function useMotionVariants(variants={}){let _variants=unref(variants),variant=ref(),state=computed(()=>{if(variant.value)return _variants[variant.value]});return{state,variant}}function useMotion(target$1,variants={},options$1){let{motionProperties}=useMotionProperties(target$1),{variant,state}=useMotionVariants(variants),controls=useMotionControls(motionProperties,variants),instance={target:target$1,variant,variants,state,motionProperties,...controls};return useMotionFeatures(instance,options$1),instance}const transitionKeys=[`delay`,`duration`],directivePropsKeys=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...transitionKeys],fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,rollVisibleRight,rollVisibleTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop,slideVisibleRight,slideVisibleTop},CUSTOM_PRESETS=Symbol(``),MotionComponentProps={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 isObject$1(val){return Object.prototype.toString.call(val)===`[object Object]`}function clone(v$1){if(Array.isArray(v$1))return v$1.map(clone);if(isObject$1(v$1)){let res={};for(let key$1 in v$1)res[key$1]=clone(v$1[key$1]);return res}return v$1}function setupMotionComponent(props){let instances=reactive({}),customPresets=inject(CUSTOM_PRESETS,{}),preset=computed(()=>props.preset==null?{}:customPresets!=null&&props.preset in customPresets?structuredClone(toRaw(customPresets)[props.preset]):props.preset in presets?structuredClone(presets[props.preset]):{}),propsConfig=computed(()=>({initial:props.initial,enter:props.enter,leave:props.leave,visible:props.visible,visibleOnce:props.visibleOnce,hovered:props.hovered,tapped:props.tapped,focused:props.focused}));function applyTransitionHelpers(config,values){for(let transitionKey of[`delay`,`duration`]){if(values[transitionKey]==null)continue;let transitionValueParsed=Number.parseInt(values[transitionKey]);for(let variantKey of[`enter`,`visible`,`visibleOnce`]){let variantConfig=config[variantKey];if(variantConfig==null)continue;variantConfig.transition??={},variantConfig.transition[transitionKey]=transitionValueParsed}}return config}let motionConfig=computed(()=>{let config=defu({},propsConfig.value,preset.value,props.variants||{});return applyTransitionHelpers({...config},props)});function setNodeInstance(node$1,index$1,style){var _node$1$props2;node$1.props??={},(_node$1$props2=node$1.props).style??(_node$1$props2.style={}),node$1.props.style={...node$1.props.style,...style};let elementMotionConfig=applyTransitionHelpers(clone(motionConfig.value),node$1.props);return node$1.props.onVnodeMounted=({el})=>{instances[index$1]=useMotion(el,elementMotionConfig)},node$1.props.onVnodeUpdated=({el})=>{let styles=variantToStyle(instances[index$1].state);for(let[key$1,val]of Object.entries(styles))el.style[key$1]=val},node$1}return{motionConfig,setNodeInstance}}const MotionComponent=defineComponent({name:`Motion`,props:{...MotionComponentProps,is:{type:[String,Object],default:`div`}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent(props);return()=>{let style=variantToStyle(motionConfig.value.initial||{}),node$1=h(props.is,void 0,slots);return setNodeInstance(node$1,0,style),node$1}}}),MotionGroupComponent=defineComponent({name:`MotionGroup`,props:{...MotionComponentProps,is:{type:[String,Object],required:!1}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent(props);return()=>{var _slots$default2;let style=variantToStyle(motionConfig.value.initial||{}),nodes=(_slots$default2=slots.default)?.call(slots)||[];for(let i$1=0;i$1{await apply$2(`initial`),await apply$2(`enter`)}),onUnmounted(async()=>{await apply$2(`leave`),finalizedDisableBackButton.value=!0}),watch([()=>props.title,()=>props.subtitle,route],async()=>{await apply$2(`leave`),await nextTick(),finalizedDisableBackButton.value=props.disableBackButton,title.value=props.title,subtitle.value=props.subtitle,await nextTick(),await apply$2(`initial`),await apply$2(`enter`)}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{ref_key:`pageHeaderRef`,ref:pageHeaderRef,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`},[createBaseVNode(`button`,{onClick:_cache$1[0]||=$event=>unref(router$1).back()},[finalizedDisableBackButton.value?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,{key:0,"i-solar:alt-arrow-left-line-duotone":``,"text-2xl":``,class:normalizeClass({"pointer-events-none op-0":!_ctx.showBackButton})},null,2))]),createBaseVNode(`h1`,_hoisted_1$8,[subtitle.value?(openBlock(),createElementBlock(`div`,_hoisted_2$5,[createBaseVNode(`span`,_hoisted_3$4,toDisplayString(subtitle.value),1)])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_4$3,toDisplayString(title.value),1)])],512))}}),PageHeader_default=PageHeader_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$7=[`onClick`],_hoisted_2$4={flex:``,"gap-1.5":``};var Section_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Section`,props:{title:{},icon:{},innerClass:{},expand:{type:Boolean,default:!0}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(Collapsable_default,{default:_ctx.expand},{trigger:withCtx(slotProps=>[createBaseVNode(`button`,{class:`w-full flex items-center justify-between rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,onClick:$event=>slotProps.setVisible(!slotProps.visible)},[createBaseVNode(`div`,_hoisted_2$4,[createBaseVNode(`div`,{class:normalizeClass(_ctx.icon),"size-6":``},null,2),createTextVNode(` `+toDisplayString(_ctx.title),1)]),createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``,transition:`transform duration-250`,class:normalizeClass({"rotate-180":slotProps.visible})},null,2)],8,_hoisted_1$7)]),default:withCtx(()=>[createBaseVNode(`div`,{grid:``,"gap-2":``,"p-4":``,class:normalizeClass(_ctx.innerClass)},[renderSlot(_ctx.$slots,`default`)],2)]),_:3},8,[`default`]))}}),Section_default=Section_vue_vue_type_script_setup_true_lang_default,CursorFloating_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`CursorFloating`,props:{intensity:{default:1.5}},setup(__props){let props=__props,cardRef=ref(null),transformStyle=ref(``),gradientPosition=ref(`50% 50%`),sparklePosition=ref(`50% 50%`),sparkleOpacity=ref(.5);function handleMouseMove(event){if(!cardRef.value)return;let card=cardRef.value,rect=card.getBoundingClientRect(),x$3=event.clientX-rect.left,y$2=event.clientY-rect.top,cardWidth=card.offsetWidth,cardHeight=card.offsetHeight,xPercent=Math.abs(Math.floor(100/cardWidth*x$3)-100),yPercent=Math.abs(Math.floor(100/cardHeight*y$2)-100),leftPos=50+(xPercent-50)/1.5,topPos=50+(yPercent-50)/1.5,sparkleX=50+(xPercent-50)/7,sparkleY=50+(yPercent-50)/7,rotateY=(leftPos-50)/1.5*.2*props.intensity,rotateX=(topPos-50)/2*-1*.2*props.intensity,pAngle=50-xPercent+(50-yPercent),opacity=.5+Math.abs(pAngle)*.008*props.intensity;transformStyle.value=`perspective(1200px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(${1+.015*props.intensity}, ${1+.015*props.intensity}, ${1+.015*props.intensity})`,gradientPosition.value=`${leftPos}% ${topPos}%`,sparklePosition.value=`${sparkleX}% ${sparkleY}%`,sparkleOpacity.value=opacity}function resetCard(){transformStyle.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`,gradientPosition.value=`50% 50%`,sparklePosition.value=`50% 50%`,sparkleOpacity.value=.5}return onMounted(()=>{transformStyle.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{ref_key:`cardRef`,ref:cardRef,class:`card-hover-effect`,style:normalizeStyle({transform:transformStyle.value,"--effect-intensity":_ctx.intensity}),onMousemove:handleMouseMove,onMouseleave:resetCard},[renderSlot(_ctx.$slots,`default`,{},void 0,!0)],36))}}),CursorFloating_default=__plugin_vue_export_helper_default(CursorFloating_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-24a7a9d5`]]),ProviderAccountIdInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderAccountIdInput`,props:mergeModels({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(FieldInput_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,label:props.label||`Account ID`,description:props.description||`Account ID`,placeholder:props.placeholder,required:props.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),ProviderAccountIdInput_default=ProviderAccountIdInput_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$6=[`onClick`],_hoisted_2$3={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},_hoisted_3$3={"mt-4":``};var ProviderAdvancedSettings_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderAdvancedSettings`,props:{title:{},initialVisible:{type:Boolean}},setup(__props){let props=__props,visible=ref(props.initialVisible||!1);function toggleVisible(){visible.value=!visible.value}return(_ctx,_cache$1)=>(openBlock(),createBlock(Collapsable_default,{"w-full":``},{trigger:withCtx(slotProps=>[createBaseVNode(`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:()=>slotProps.setVisible(!slotProps.visible)&&toggleVisible()},[createBaseVNode(`h2`,_hoisted_2$3,[createBaseVNode(`span`,null,toDisplayString(_ctx.title||`Advanced`),1)]),createBaseVNode(`div`,{transform:``,transition:`transform duration-250`,class:normalizeClass({"rotate-180":slotProps.visible})},_cache$1[0]||=[createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``},null,-1)],2)],8,_hoisted_1$6)]),default:withCtx(()=>[createBaseVNode(`div`,_hoisted_3$3,[renderSlot(_ctx.$slots,`default`)])]),_:3}))}}),ProviderAdvancedSettings_default=ProviderAdvancedSettings_vue_vue_type_script_setup_true_lang_default,ProviderApiKeyInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderApiKeyInput`,props:mergeModels({providerName:{},placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,{t}=useI18n(),modelValue=useModel(__props,`modelValue`),computedDescription=computed(()=>props.description||`API Key for ${props.providerName}`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(FieldInput_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,label:_ctx.label||unref(t)(`settings.pages.providers.common.fields.field.api-key.label`),description:computedDescription.value,placeholder:_ctx.placeholder,required:_ctx.required,type:`password`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),ProviderApiKeyInput_default=ProviderApiKeyInput_vue_vue_type_script_setup_true_lang_default,ProviderBaseUrlInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderBaseUrlInput`,props:mergeModels({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(FieldInput_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,label:props.label||`Base URL`,description:props.description||`Custom base URL (optional)`,placeholder:props.placeholder,required:props.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),ProviderBaseUrlInput_default=ProviderBaseUrlInput_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$5={flex:`~ col gap-6`},_hoisted_2$2={flex:`~ row`,"items-center":``,"justify-between":``},_hoisted_3$2={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},_hoisted_4$2={text:`neutral-400 dark:neutral-500`};var ProviderBasicSettings_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderBasicSettings`,props:{title:{},description:{},onReset:{type:Function}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$5,[createBaseVNode(`div`,_hoisted_2$2,[createBaseVNode(`div`,null,[createBaseVNode(`h2`,_hoisted_3$2,toDisplayString(_ctx.title||`Basic`),1),createBaseVNode(`div`,_hoisted_4$2,[createBaseVNode(`span`,null,toDisplayString(_ctx.description||`Essential settings`),1)])]),_ctx.onReset?(openBlock(),createElementBlock(`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:_cache$1[0]||=(...args)=>_ctx.onReset&&_ctx.onReset(...args)},_cache$1[1]||=[createBaseVNode(`div`,{"i-solar:refresh-bold-duotone":``,"text-xl":``},null,-1)])):createCommentVNode(``,!0)]),renderSlot(_ctx.$slots,`default`)]))}}),ProviderBasicSettings_default=ProviderBasicSettings_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$4={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-6`};var ProviderSettingsContainer_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderSettingsContainer`,setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$4,[renderSlot(_ctx.$slots,`default`)]))}}),ProviderSettingsContainer_default=ProviderSettingsContainer_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$3={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 ProviderSettingsLayout2_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderSettingsLayout2`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(__props){return(_ctx,_cache$1)=>{let _directive_motion=resolveDirective(`motion`);return openBlock(),createElementBlock(Fragment,null,[renderSlot(_ctx.$slots,`default`),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_1$3,[createBaseVNode(`div`,{text:`60`,class:normalizeClass(_ctx.providerIcon||_ctx.providerIconColor)},null,2)])),[[_directive_motion]])],64)}}}),ProviderSettingsLayout2_default=ProviderSettingsLayout2_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$2={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 ProviderSettingsLayout_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderSettingsLayout`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(__props){return(_ctx,_cache$1)=>{let _directive_motion=resolveDirective(`motion`);return openBlock(),createElementBlock(Fragment,null,[renderSlot(_ctx.$slots,`default`),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_1$2,[createBaseVNode(`div`,{text:`60`,class:normalizeClass(_ctx.providerIcon||_ctx.providerIconColor)},null,2)])),[[_directive_motion]])],64)}}}),ProviderSettingsLayout_default=ProviderSettingsLayout_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$1={"w-full":``,"rounded-xl":``},_hoisted_2$1={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},_hoisted_3$1={class:`inline-flex items-center gap-4`},_hoisted_4$1={flex:`~ col gap-4`},_hoisted_5$1=[`placeholder`],_hoisted_6$1=[`placeholder`],_hoisted_7={flex:`~ col gap-6`},_hoisted_8={grid:`~ cols-2 gap-4`},_hoisted_9={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_10={class:`text-xs text-neutral-500 dark:text-neutral-400`},_hoisted_11=[`value`],_hoisted_12={flex:`~ row`,"gap-4":``},_hoisted_13=[`disabled`],_hoisted_14={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_15={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_16={key:2,class:`mt-2 text-sm text-red-500`},_hoisted_17={key:3,class:`mt-2 text-sm text-red-500`},_hoisted_18={key:4,class:`mt-2 text-sm text-red-500`},_hoisted_19=[`src`];var SpeechPlayground_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SpeechPlayground`,props:{defaultText:{},availableVoices:{},generateSpeech:{type:Function},apiKeyConfigured:{type:Boolean}},setup(__props,{expose:__expose}){let props=__props,{t}=useI18n(),testText=ref(props.defaultText||`Hello! This is a test of the voice synthesis.`),isGenerating=ref(!1),audioUrl=ref(``),errorMessage=ref(``),audioPlayer=ref(null),useSSML=ref(!1),ssmlText=ref(``),selectedVoice=ref(``);watch(()=>props.availableVoices,newVoices=>{var _newVoices$;newVoices.length>0&&!selectedVoice.value&&(selectedVoice.value=(_newVoices$=newVoices[0])?.id||``)},{immediate:!0});async function handleGenerateTestSpeech(){if(!(!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim()||!selectedVoice.value)){isGenerating.value=!0,errorMessage.value=``;try{audioUrl.value&&stopTestAudio();let input=useSSML.value?ssmlText.value:testText.value,response=await props.generateSpeech(input,selectedVoice.value,useSSML.value);audioUrl.value=URL.createObjectURL(new Blob([response])),setTimeout(()=>{audioPlayer.value&&audioPlayer.value.play()},100)}catch(error){console.error(`Error generating speech:`,error),errorMessage.value=error instanceof Error?error.message:`An unknown error occurred`}finally{isGenerating.value=!1}}}function stopTestAudio(){audioPlayer.value&&(audioPlayer.value.pause(),audioPlayer.value.currentTime=0),audioUrl.value&&(URL.revokeObjectURL(audioUrl.value),audioUrl.value=``)}return onUnmounted(()=>{audioUrl.value&&URL.revokeObjectURL(audioUrl.value)}),__expose({testText,ssmlText,useSSML,selectedVoice,isGenerating,audioUrl,errorMessage,audioPlayer,generateTestSpeech:handleGenerateTestSpeech,stopTestAudio}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$1,[createBaseVNode(`h2`,_hoisted_2$1,[createBaseVNode(`div`,_hoisted_3$1,[createVNode(unref(TestDummyMarker_default)),createBaseVNode(`div`,null,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),createBaseVNode(`div`,_hoisted_4$1,[createVNode(unref(FieldCheckbox_default),{modelValue:useSSML.value,"onUpdate:modelValue":_cache$1[0]||=$event=>useSSML.value=$event,label:unref(t)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.label`),description:unref(t)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.description`)},null,8,[`modelValue`,`label`,`description`]),useSSML.value?withDirectives((openBlock(),createElementBlock(`textarea`,{key:1,"onUpdate:modelValue":_cache$1[2]||=$event=>ssmlText.value=$event,placeholder:unref(t)(`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,_hoisted_6$1)),[[vModelText,ssmlText.value]]):withDirectives((openBlock(),createElementBlock(`textarea`,{key:0,"onUpdate:modelValue":_cache$1[1]||=$event=>testText.value=$event,placeholder:unref(t)(`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,_hoisted_5$1)),[[vModelText,testText.value]]),createBaseVNode(`div`,_hoisted_7,[createBaseVNode(`label`,_hoisted_8,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_9,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.label`)),1),createBaseVNode(`div`,_hoisted_10,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.description`)),1)]),withDirectives(createBaseVNode(`select`,{"onUpdate:modelValue":_cache$1[3]||=$event=>selectedVoice.value=$event,border:`neutral-300 dark:neutral-800 solid 2 focus:neutral-400 dark:focus:neutral-600`,transition:`border duration-250 ease-in-out`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_ctx.availableVoices,voice=>(openBlock(),createElementBlock(`option`,{key:voice.id,value:voice.id},toDisplayString(voice.name),9,_hoisted_11))),128))],512),[[vModelSelect,selectedVoice.value]])])]),createBaseVNode(`div`,_hoisted_12,[createBaseVNode(`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:isGenerating.value||!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim()||!selectedVoice.value||!_ctx.apiKeyConfigured,class:normalizeClass({"opacity-50 cursor-not-allowed":isGenerating.value||!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim()||!selectedVoice.value||!_ctx.apiKeyConfigured}),bg:`neutral-700 dark:neutral-300`,onClick:handleGenerateTestSpeech},[createBaseVNode(`div`,_hoisted_14,[_cache$1[4]||=createBaseVNode(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),createBaseVNode(`span`,null,toDisplayString(isGenerating.value?unref(t)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):unref(t)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,_hoisted_13),audioUrl.value?(openBlock(),createElementBlock(`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:stopTestAudio},[createBaseVNode(`div`,_hoisted_15,[_cache$1[5]||=createBaseVNode(`div`,{"i-solar:stop-circle-bold-duotone":``},null,-1),createBaseVNode(`span`,null,toDisplayString(unref(t)(`settings.pages.modules.speech.sections.section.playground.buttons.stop.label`)),1)])])):createCommentVNode(``,!0)]),_ctx.apiKeyConfigured?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,_hoisted_16,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.validation.error-missing-api-key`)),1)),selectedVoice.value?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,_hoisted_17,toDisplayString(unref(t)(`settings.pages.modules.speech.sections.section.playground.select-voice.required`)),1)),errorMessage.value?(openBlock(),createElementBlock(`div`,_hoisted_18,toDisplayString(errorMessage.value),1)):createCommentVNode(``,!0),audioUrl.value?(openBlock(),createElementBlock(`audio`,{key:5,ref_key:`audioPlayer`,ref:audioPlayer,src:audioUrl.value,controls:``,class:`mt-2 w-full`},null,8,_hoisted_19)):createCommentVNode(``,!0)]),renderSlot(_ctx.$slots,`default`)]))}}),SpeechPlayground_default=SpeechPlayground_vue_vue_type_script_setup_true_lang_default;const _hoisted_1={flex:`~ col md:row gap-6`},_hoisted_2={flex:`~ col gap-6`},_hoisted_3={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},_hoisted_4={flex:`~ col gap-4`},_hoisted_5={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},_hoisted_6={"w-full":``,"rounded-xl":``};var SpeechProviderSettings_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SpeechProviderSettings`,props:{providerId:{},defaultModel:{},additionalSettings:{}},setup(__props){let props=__props,{t}=useI18n(),router$1=useRouter(),providersStore=useProvidersStore(),speechStore=useSpeechStore(),{providers}=storeToRefs(providersStore),providerMetadata=computed(()=>providersStore.getProviderMetadata(props.providerId)),apiKey=computed({get:()=>{var _providers$value$prop;return(_providers$value$prop=providers.value[props.providerId])?.apiKey||``},set:value$1=>{providers.value[props.providerId]||(providers.value[props.providerId]={}),providers.value[props.providerId].apiKey=value$1}}),baseUrl=computed({get:()=>{var _providers$value$prop2,_providerMetadata$val,_providerMetadata$val2;return(_providers$value$prop2=providers.value[props.providerId])?.baseUrl||((_providerMetadata$val=providerMetadata.value)==null||(_providerMetadata$val2=_providerMetadata$val.defaultOptions)==null?void 0:_providerMetadata$val2.call(_providerMetadata$val).baseUrl)||``},set:value$1=>{providers.value[props.providerId]||(providers.value[props.providerId]={}),providers.value[props.providerId].baseUrl=value$1}}),testText=ref(`Hello! This is a test of voice synthesis.`),isGenerating=ref(!1),audioUrl=ref(``),errorMessage=ref(``),audioPlayer=ref(null),useSSML=ref(!1),ssmlText=ref(``),activeSpeechVoice=ref(``),voiceSettings=ref({});function initializeVoiceSettings(){var _providers$value$prop3;(_providers$value$prop3=providers.value[props.providerId])?.voiceSettings?voiceSettings.value={...providers.value[props.providerId].voiceSettings}:voiceSettings.value={pitch:0,speed:1,volume:0,...props.additionalSettings}}onMounted(()=>{var _providers$value$prop4,_providers$value$prop5,_providerMetadata$val3,_providerMetadata$val4;providersStore.initializeProvider(props.providerId),apiKey.value=(_providers$value$prop4=providers.value[props.providerId])?.apiKey||``,baseUrl.value=(_providers$value$prop5=providers.value[props.providerId])?.baseUrl||((_providerMetadata$val3=providerMetadata.value)==null||(_providerMetadata$val4=_providerMetadata$val3.defaultOptions)==null?void 0:_providerMetadata$val4.call(_providerMetadata$val3).baseUrl)||``,initializeVoiceSettings(),providersStore.configuredProviders[props.providerId]&&speechStore.loadVoicesForProvider(props.providerId)});let debouncedUpdate=useDebounceFn(()=>{var _providerMetadata$val5,_providerMetadata$val6;providers.value[props.providerId]={...providers.value[props.providerId],apiKey:apiKey.value,baseUrl:baseUrl.value||((_providerMetadata$val5=providerMetadata.value)==null||(_providerMetadata$val6=_providerMetadata$val5.defaultOptions)==null?void 0:_providerMetadata$val6.call(_providerMetadata$val5).baseUrl)||``,voiceSettings:{...voiceSettings.value}}},1e3);watch([apiKey,baseUrl],debouncedUpdate),watch(voiceSettings,debouncedUpdate,{deep:!0});async function generateTestSpeech(){if(!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim())return;let provider=providersStore.getProviderInstance(props.providerId);if(!provider){console.error(`Failed to initialize speech provider`);return}if(!activeSpeechVoice.value){console.error(`No active speech voice selected`);return}isGenerating.value=!0,errorMessage.value=``;try{audioUrl.value&&stopTestAudio();let modelToUse=props.defaultModel||`default`,input=useSSML.value?ssmlText.value:testText.value,response=await generateSpeech({...provider.speech(modelToUse,{voiceSettings:voiceSettings.value}),input,voice:activeSpeechVoice.value});audioUrl.value=URL.createObjectURL(new Blob([response])),setTimeout(()=>{audioPlayer.value&&audioPlayer.value.play()},100)}catch(error){console.error(`Error generating speech:`,error),errorMessage.value=error instanceof Error?error.message:`An unknown error occurred`}finally{isGenerating.value=!1}}function stopTestAudio(){audioPlayer.value&&(audioPlayer.value.pause(),audioPlayer.value.currentTime=0),audioUrl.value&&(URL.revokeObjectURL(audioUrl.value),audioUrl.value=``)}onUnmounted(()=>{audioUrl.value&&URL.revokeObjectURL(audioUrl.value)});function handleResetVoiceSettings(){var _providerMetadata$val7,_providerMetadata$val8;voiceSettings.value={...((_providerMetadata$val7=providerMetadata.value)==null||(_providerMetadata$val8=_providerMetadata$val7.defaultOptions)==null?void 0:_providerMetadata$val8.call(_providerMetadata$val7).voiceSettings)||{}},debouncedUpdate()}function updateVoiceSetting(key$1,value$1){voiceSettings.value[key$1]=value$1}let slotData=computed(()=>({voiceSettings:voiceSettings.value,updateVoiceSettings:updateVoiceSetting,isGenerating:isGenerating.value,testText:testText.value,useSSML:useSSML.value,ssmlText:ssmlText.value,generateTestSpeech,stopTestAudio,audioUrl:audioUrl.value,audioPlayer:audioPlayer.value,errorMessage:errorMessage.value}));return(_ctx,_cache$1)=>{var _providerMetadata$val9,_providerMetadata$val10;return openBlock(),createBlock(ProviderSettingsLayout2_default,{"provider-name":(_providerMetadata$val9=providerMetadata.value)?.localizedName,"provider-icon":(_providerMetadata$val10=providerMetadata.value)?.icon,"on-back":()=>unref(router$1).back()},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1,[createVNode(unref(ProviderSettingsContainer_default),{class:`w-full md:w-[40%]`},{default:withCtx(()=>[createVNode(unref(ProviderBasicSettings_default),{title:unref(t)(`settings.pages.providers.common.section.basic.title`),description:unref(t)(`settings.pages.providers.common.section.basic.description`),"on-reset":handleResetVoiceSettings},{default:withCtx(()=>{var _providerMetadata$val11;return[createVNode(unref(ProviderApiKeyInput_default),{modelValue:apiKey.value,"onUpdate:modelValue":_cache$1[0]||=$event=>apiKey.value=$event,"provider-name":(_providerMetadata$val11=providerMetadata.value)?.localizedName,placeholder:`sk-`},null,8,[`modelValue`,`provider-name`]),renderSlot(_ctx.$slots,`basic-settings`)]}),_:3},8,[`title`,`description`]),createBaseVNode(`div`,_hoisted_2,[createBaseVNode(`h2`,_hoisted_3,toDisplayString(unref(t)(`settings.pages.providers.common.section.voice.title`)),1),createBaseVNode(`div`,_hoisted_4,[renderSlot(_ctx.$slots,`voice-settings`,normalizeProps(guardReactiveProps(slotData.value)))])]),createVNode(unref(ProviderAdvancedSettings_default),{title:unref(t)(`settings.pages.providers.common.section.advanced.title`)},{default:withCtx(()=>{var _providerMetadata$val12,_providerMetadata$val13;return[createVNode(unref(ProviderBaseUrlInput_default),{modelValue:baseUrl.value,"onUpdate:modelValue":_cache$1[1]||=$event=>baseUrl.value=$event,placeholder:((_providerMetadata$val12=providerMetadata.value)==null||(_providerMetadata$val13=_providerMetadata$val12.defaultOptions)==null?void 0:_providerMetadata$val13.call(_providerMetadata$val12).baseUrl)||``,required:``},null,8,[`modelValue`,`placeholder`]),renderSlot(_ctx.$slots,`advanced-settings`)]}),_:3},8,[`title`])]),_:3}),createBaseVNode(`div`,_hoisted_5,[createBaseVNode(`div`,_hoisted_6,[renderSlot(_ctx.$slots,`playground`,normalizeProps(guardReactiveProps(slotData.value)))])])])]),_:3},8,[`provider-name`,`provider-icon`,`on-back`])}}}),SpeechProviderSettings_default=SpeechProviderSettings_vue_vue_type_script_setup_true_lang_default,ArrowTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ArrowTransition`,props:{stageTransition:{default:()=>({primaryColor:`#666`,secondaryColor:`#ccc`})}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>stageTransition.value.primaryColor||`#666`),overlayColor2=computed(()=>stageTransition.value.secondaryColor||`#ccc`);return onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:`stage-transition-3`,style:normalizeStyle({zIndex:stageTransition.value.zIndex||100})},null,4))}}),ArrowTransition_default=__plugin_vue_export_helper_default(ArrowTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-17464329`]]),BubbleWaveOutTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`BubbleWaveOutTransition`,props:{stageTransition:{}},setup(__props){let props=__props,colors=computed(()=>{var _props$stageTransitio;return(_props$stageTransitio=props.stageTransition)?.colors||[`#eee`,`#ebcb8b`,`#c56370`,`#3f3b52`]});return onMounted(()=>{var _props$stageTransitio2,_props$stageTransitio3;document.documentElement.style.setProperty(`--circle-expansion-delay`,`${(_props$stageTransitio2=props.stageTransition)?.delay||0}s`),document.documentElement.style.setProperty(`--circle-expansion-duration`,`${(_props$stageTransitio3=props.stageTransition)?.duration||.4}s`),colors.value.forEach((color$2,index$1)=>{document.documentElement.style.setProperty(`--circle-expansion-color-${index$1+1}`,color$2)})}),(_ctx,_cache$1)=>{var _ctx$stageTransition;return openBlock(),createElementBlock(`div`,{class:`circle-expansion-transition`,style:normalizeStyle({zIndex:(_ctx$stageTransition=_ctx.stageTransition)?.zIndex||100})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(colors.value,(_$1,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1}))),128))],4)}}}),BubbleWaveOutTransition_default=__plugin_vue_export_helper_default(BubbleWaveOutTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-4624be9e`]]),FantasyFallTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FantasyFallTransition`,props:{stageTransition:{}},setup(__props){let props=__props,direction=computed(()=>{var _props$stageTransitio4;return(_props$stageTransitio4=props.stageTransition)?.direction||`up`}),directionClass=computed(()=>`fantasy-fall-${direction.value}`);return onMounted(()=>{var _props$stageTransitio5,_props$stageTransitio6,_props$stageTransitio7,_props$stageTransitio8,_props$stageTransitio9,_props$stageTransitio10;document.documentElement.style.setProperty(`--fantasy-fall-color`,(_props$stageTransitio5=props.stageTransition)?.primaryColor||`#eee`),document.documentElement.style.setProperty(`--fantasy-fall-duration`,`${(_props$stageTransitio6=props.stageTransition)?.duration||.6}s`),document.documentElement.style.setProperty(`--fantasy-fall-delay`,`${(_props$stageTransitio7=props.stageTransition)?.delay||0}s`),document.documentElement.style.setProperty(`--fantasy-fall-radius-sm`,`${((_props$stageTransitio8=props.stageTransition)==null||(_props$stageTransitio8=_props$stageTransitio8.borderRadius)==null?void 0:_props$stageTransitio8.sm)||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-md`,`${((_props$stageTransitio9=props.stageTransition)==null||(_props$stageTransitio9=_props$stageTransitio9.borderRadius)==null?void 0:_props$stageTransitio9.md)||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-lg`,`${((_props$stageTransitio10=props.stageTransition)==null||(_props$stageTransitio10=_props$stageTransitio10.borderRadius)==null?void 0:_props$stageTransitio10.lg)||`50%`}`)}),(_ctx,_cache$1)=>{var _ctx$stageTransition2;return openBlock(),createElementBlock(`div`,{class:normalizeClass([`fantasy-fall-transition`,directionClass.value]),style:normalizeStyle({zIndex:(_ctx$stageTransition2=_ctx.stageTransition)?.zIndex??100})},null,6)}}}),FantasyFallTransition_default=__plugin_vue_export_helper_default(FantasyFallTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-826171f5`]]),MultipleBlocksRevealTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`MultipleBlocksRevealTransition`,props:{stageTransition:{}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>{var _stageTransition$valu;return(_stageTransition$valu=stageTransition.value)?.primaryColor||`#666`}),overlayColor2=computed(()=>{var _stageTransition$valu2;return(_stageTransition$valu2=stageTransition.value)?.secondaryColor||`#ccc`});return onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>{var _stageTransition$valu3;return openBlock(),createElementBlock(`div`,{class:`stage-transition-4`,style:normalizeStyle({zIndex:(_stageTransition$valu3=stageTransition.value)?.zIndex??100})},_cache$1[0]||=[createStaticVNode(`
`,5)],4)}}}),MultipleBlocksRevealTransition_default=__plugin_vue_export_helper_default(MultipleBlocksRevealTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-4221f976`]]),SlideTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SlideTransition`,props:{stageTransition:{}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>{var _stageTransition$valu4;return(_stageTransition$valu4=stageTransition.value)?.primaryColor||`#666`}),overlayColor2=computed(()=>{var _stageTransition$valu5;return(_stageTransition$valu5=stageTransition.value)?.secondaryColor||`#ccc`});return watch([stageTransition,overlayColor1,overlayColor2],()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,overlayColor2.value)}),onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>{var _stageTransition$valu6;return openBlock(),createElementBlock(`div`,{class:`stage-transition-1`,style:normalizeStyle({zIndex:(_stageTransition$valu6=stageTransition.value)?.zIndex??100})},null,4)}}}),SlideTransition_default=__plugin_vue_export_helper_default(SlideTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-81c0af14`]]),SlopeSlideTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SlopeSlideTransition`,props:{stageTransition:{}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>{var _stageTransition$valu7;return(_stageTransition$valu7=stageTransition.value)?.primaryColor??`#666`}),overlayColor2=computed(()=>{var _stageTransition$valu8;return(_stageTransition$valu8=stageTransition.value)?.secondaryColor??`#ccc`});return onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>{var _stageTransition$valu9;return openBlock(),createElementBlock(`div`,{class:`stage-transition-2`,style:normalizeStyle({zIndex:(_stageTransition$valu9=stageTransition.value)?.zIndex??100})},null,4)}}}),SlopeSlideTransition_default=__plugin_vue_export_helper_default(SlopeSlideTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-9e8b66c8`]]),RectanglesRotateTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RectanglesRotateTransition`,props:{stageTransition:{}},setup(__props){let props=__props;return onMounted(()=>{var _props$stageTransitio11,_props$stageTransitio12,_props$stageTransitio13,_props$stageTransitio14,_props$stageTransitio15,_props$stageTransitio16,_props$stageTransitio17;document.documentElement.style.setProperty(`--rectangle-rotate-1-color`,(_props$stageTransitio11=props.stageTransition)?.primaryColor||`#ebcb8b`),document.documentElement.style.setProperty(`--rectangle-rotate-2-color`,(_props$stageTransitio12=props.stageTransition)?.secondaryColor||`#c56370`),document.documentElement.style.setProperty(`--rectangle-rotate-3-color`,(_props$stageTransitio13=props.stageTransition)?.tertiaryColor||`#43445b`),document.documentElement.style.setProperty(`--rectangle-rotate-duration`,`${(_props$stageTransitio14=props.stageTransition)?.duration||.6}s`),document.documentElement.style.setProperty(`--rectangle-rotate-delay`,`${(_props$stageTransitio15=props.stageTransition)?.delay||0}s`),document.documentElement.style.setProperty(`--rectangle-rotate-stagger`,`${(_props$stageTransitio16=props.stageTransition)?.staggerDelay||.1}s`),document.documentElement.style.setProperty(`--rectangle-rotate-rotation`,`${(_props$stageTransitio17=props.stageTransition)?.rotation||270}deg`)}),(_ctx,_cache$1)=>{var _ctx$stageTransition3;return openBlock(),createElementBlock(`div`,{class:`rectangle-rotate-transition`,style:normalizeStyle({zIndex:(_ctx$stageTransition3=_ctx.stageTransition)?.zIndex??100})},_cache$1[0]||=[createBaseVNode(`div`,{class:`rectangle rectangle-rotate-1`},[createBaseVNode(`div`)],-1),createBaseVNode(`div`,{class:`rectangle rectangle-rotate-2`},[createBaseVNode(`div`)],-1),createBaseVNode(`div`,{class:`rectangle rectangle-rotate-3`},[createBaseVNode(`div`)],-1)],4)}}}),RectanglesRotateTransition_default=__plugin_vue_export_helper_default(RectanglesRotateTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-45ea2f7f`]]),StageTransitionGroup_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`StageTransitionGroup`,props:{primaryColor:{},secondaryColor:{},tertiaryColor:{},colors:{},zIndex:{},disableTransitions:{type:Boolean},usePageSpecificTransitions:{type:Boolean}},setup(__props){let props=__props,router$1=useRouter(),showTransition=ref(!1),transitionStage=ref(),activeTransitionName=ref(``),activeStageTransitionParams=ref(),transitions=shallowRef({slide:{component:SlideTransition_default,duration:2700},"slope-slide":{component:SlopeSlideTransition_default,duration:2700},arrow:{component:ArrowTransition_default,duration:2700},"multiple-blocks-reveal":{component:MultipleBlocksRevealTransition_default,duration:2800},"fantasy-fall":{component:FantasyFallTransition_default,duration:2700},"rectangles-rotate":{component:RectanglesRotateTransition_default,duration:2700},"bubble-wave-out":{component:BubbleWaveOutTransition_default,duration:1e3}}),lifecycleHooks=ref([]);function addTransitionHook(hook){return lifecycleHooks.value.push(hook),()=>{let index$1=lifecycleHooks.value.indexOf(hook);index$1>=0&&lifecycleHooks.value.splice(index$1,1)}}async function triggerHooks(stage,data$10={}){transitionStage.value=stage;for(let hook of lifecycleHooks.value)try{await Promise.resolve(hook(stage,data$10))}catch(error){console.error(`Error in transition hook at stage "${stage}":`,error)}}async function triggerTransitionAsyncFn(params,next,resolve$1){if(params.name===`none`||!params.name){next(),resolve$1();return}let transition=transitions.value[params.name];if(!transition){console.error(`Transition ${params.name} not found`),next(),resolve$1();return}let navTiming=transition.nextDelay===void 0?transition.duration/3:transition.nextDelay,hasNavigated=!1,navigationHook=stage=>{stage===`navigation`&&!hasNavigated&&(hasNavigated=!0,next())},removeNavHook=addTransitionHook(navigationHook);try{await triggerHooks(`before-enter`,{transitionName:params.name}),showTransition.value&&(await triggerHooks(`before-leave`,{transitionName:activeTransitionName.value}),activeTransitionName.value=``,activeStageTransitionParams.value=void 0,showTransition.value=!1,await triggerHooks(`after-leave`,{transitionName:activeTransitionName.value}),await new Promise(r$2=>setTimeout(r$2,50))),activeTransitionName.value=params.name,activeStageTransitionParams.value=params,showTransition.value=!0,await triggerHooks(`enter-active`,{transitionName:name}),setTimeout(async()=>{await triggerHooks(`navigation`,{transitionName:params.name,config:transition}),hasNavigated||(hasNavigated=!0,next())},navTiming),setTimeout(async()=>{await triggerHooks(`after-enter`,{transitionName:params.name})},transition.duration),setTimeout(async()=>{await triggerHooks(`before-leave`,{transitionName:params.name})},transition.duration+10),setTimeout(async()=>{await triggerHooks(`leave-active`,{transitionName:params.name})},transition.duration+20);let totalDuration=transition.exitDuration??0;setTimeout(async()=>{showTransition.value=!1,activeTransitionName.value=``,activeStageTransitionParams.value=void 0,await triggerHooks(`after-leave`,{transitionName:params.name}),resolve$1()},transition.duration+totalDuration)}catch(error){console.error(error)}finally{removeNavHook(),setTimeout(()=>{hasNavigated||(hasNavigated=!0,next())},transition.duration*2)}}function triggerTransition(params,next){return new Promise(resolve$1=>{triggerTransitionAsyncFn(params,next,resolve$1)})}return router$1.beforeEach((to$1,_from,next)=>{if(props.disableTransitions){next();return}if(typeof to$1.meta.stageTransition!=`object`){next();return}let stageTransition=to$1.meta.stageTransition;if(props.usePageSpecificTransitions&&stageTransition.pageSpecificAvailable){next();return}props.primaryColor!==void 0&&(stageTransition.primaryColor=props.primaryColor),props.secondaryColor!==void 0&&(stageTransition.secondaryColor=props.secondaryColor),props.tertiaryColor!==void 0&&(stageTransition.tertiaryColor=props.tertiaryColor),props.colors!==void 0&&(stageTransition.colors=props.colors),props.zIndex!==void 0&&(stageTransition.zIndex=props.zIndex),triggerTransition(stageTransition,next)}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(Fragment,null,[renderSlot(_ctx.$slots,`default`),showTransition.value?(openBlock(),createElementBlock(Fragment,{key:0},[transitions.value[activeTransitionName.value]?(openBlock(),createBlock(resolveDynamicComponent(transitions.value[activeTransitionName.value].component),{key:0,"stage-transition":activeStageTransitionParams.value},null,8,[`stage-transition`])):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0)],64))}}),StageTransitionGroup_default=StageTransitionGroup_vue_vue_type_script_setup_true_lang_default,App_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`App`,setup(__props){let i18n$1=useI18n(),settings=storeToRefs(useSettings()),onboardingStore=useOnboardingStore(),{shouldShowSetup}=storeToRefs(onboardingStore),isDark=useDark(),primaryColor=computed(()=>isDark.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))`),secondaryColor=computed(()=>isDark.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))`),tertiaryColor=computed(()=>isDark.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))`),colors=computed(()=>[primaryColor.value,secondaryColor.value,tertiaryColor.value,isDark.value?`#121212`:`#FFFFFF`]);watch(settings.language,()=>{i18n$1.locale.value=settings.language.value}),watch(settings.themeColorsHue,()=>{document.documentElement.style.setProperty(`--chromatic-hue`,settings.themeColorsHue.value.toString())},{immediate:!0}),watch(settings.themeColorsHueDynamic,()=>{document.documentElement.classList.toggle(`dynamic-hue`,settings.themeColorsHueDynamic.value)},{immediate:!0}),onMounted(()=>{onboardingStore.initializeSetupCheck()});function handleSetupConfigured(){onboardingStore.markSetupCompleted()}function handleSetupSkipped(){onboardingStore.markSetupSkipped()}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(StageTransitionGroup_default),{"primary-color":primaryColor.value,"secondary-color":secondaryColor.value,"tertiary-color":tertiaryColor.value,colors:colors.value,"z-index":100,"disable-transitions":unref(settings).disableTransitions.value,"use-page-specific-transitions":unref(settings).usePageSpecificTransitions.value},{default:withCtx(()=>[createVNode(unref(RouterView))]),_:1},8,[`primary-color`,`secondary-color`,`tertiary-color`,`colors`,`disable-transitions`,`use-page-specific-transitions`]),createVNode(unref(OnboardingDialog_default),{modelValue:unref(shouldShowSetup),"onUpdate:modelValue":_cache$1[0]||=$event=>isRef(shouldShowSetup)?shouldShowSetup.value=$event:null,onConfigured:handleSetupConfigured,onSkipped:handleSetupSkipped},null,8,[`modelValue`])],64))}}),App_default=App_vue_vue_type_script_setup_true_lang_default,data$9={prompt:{prefix:`(from Neko Ayaka) Good morning! You are finally awake. +`||chars[_i]===` `||chars[_i]===` `);)_i++;let alpha$1;if(is_num(chars)&&(alpha$1=num(chars),alpha$1.type!==Tok.Hue)){tokens.push({type:Tok.Alpha,value:alpha$1});continue}if(is_ident(chars)&&ident(chars)===`none`){tokens.push({type:Tok.Alpha,value:{type:Tok.None,value:void 0}});continue}return}if(/\d/.test(ch)){_i--,tokens.push(num(chars));continue}if(IdentStartCodePoint.test(ch)){_i--,tokens.push(identlike(chars));continue}return}return tokens}function parseColorSyntax(tokens){tokens._i=0;let token=tokens[tokens._i++];if(!token||token.type!==Tok.Function||token.value!==`color`||(token=tokens[tokens._i++],token.type!==Tok.Ident))return;let mode=colorProfiles[token.value];if(!mode)return;let res={mode},coords$1=consumeCoords(tokens,!1);if(!coords$1)return;let channels=getMode(mode).channels;for(let ii=0,c$4,ch;ii4)){if(coords$1.length===4){if(coords$1[3].type!==Tok.Alpha)return;coords$1[3]=coords$1[3].value}return coords$1.length===3&&coords$1.push({type:Tok.None,value:void 0}),coords$1.every(c$4=>c$4.type!==Tok.Alpha)?coords$1:void 0}}function parseModernSyntax(tokens,includeHue){tokens._i=0;let token=tokens[tokens._i++];if(!token||token.type!==Tok.Function)return;let coords$1=consumeCoords(tokens,includeHue);if(coords$1)return coords$1.unshift(token.value),coords$1}const parse=color$2=>{if(typeof color$2!=`string`)return;let tokens=tokenize(color$2),parsed=tokens?parseModernSyntax(tokens,!0):void 0,result,i$1=0,len=parsers.length;for(;i$1c$4===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0;var parseTransparent_default=parseTransparent;const lerp=(a$2,b$3,t)=>a$2+t*(b$3-a$2),get_classes=arr=>{let classes=[];for(let i$1=0;i$1arr=>{let classes=get_classes(arr);return t=>{let cls=t*classes.length,idx=t>=1?classes.length-1:Math.max(Math.floor(cls),0),pair=classes[idx];return pair===void 0?void 0:interpolator(pair[0],pair[1],cls-idx)}},interpolatorLinear=interpolatorPiecewise(lerp),fixupAlpha=arr=>{let some_defined=!1,res=arr.map(v$1=>v$1===void 0?1:(some_defined=!0,v$1));return some_defined?res:arr},definition$27={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[parseRgb_default,parseHex_default,parseRgbLegacy_default,parseNamed_default,parseTransparent_default,`srgb`],serialize:`srgb`,interpolate:{r:interpolatorLinear,g:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}};var definition_default$23=definition$27;const linearize$2=(v$1=0)=>Math.abs(v$1)**(563/256)*Math.sign(v$1),convertA98ToXyz65=a98$1=>{let r$2=linearize$2(a98$1.r),g$2=linearize$2(a98$1.g),b$3=linearize$2(a98$1.b),res={mode:`xyz65`,x:.5766690429101305*r$2+.1855582379065463*g$2+.1882286462349947*b$3,y:.297344975250536*r$2+.6273635662554661*g$2+.0752914584939979*b$3,z:.0270313613864123*r$2+.0706888525358272*g$2+.9913375368376386*b$3};return a98$1.alpha!==void 0&&(res.alpha=a98$1.alpha),res};var convertA98ToXyz65_default=convertA98ToXyz65;const gamma$2=v$1=>Math.abs(v$1)**(256/563)*Math.sign(v$1),convertXyz65ToA98=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`a98`,r:gamma$2(x$3*2.0415879038107465-y$2*.5650069742788597-.3447313507783297*z$2),g:gamma$2(x$3*-.9692436362808798+y$2*1.8759675015077206+.0415550574071756*z$2),b:gamma$2(x$3*.0134442806320312-y$2*.1183623922310184+1.0151749943912058*z$2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToA98_default=convertXyz65ToA98;const fn$3=(c$4=0)=>{let abs$1=Math.abs(c$4);return abs$1<=.04045?c$4/12.92:(Math.sign(c$4)||1)*((abs$1+.055)/1.055)**2.4},convertRgbToLrgb=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{let res={mode:`lrgb`,r:fn$3(r$2),g:fn$3(g$2),b:fn$3(b$3)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToLrgb_default=convertRgbToLrgb;const convertRgbToXyz65=rgb$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(rgb$2),res={mode:`xyz65`,x:.4123907992659593*r$2+.357584339383878*g$2+.1804807884018343*b$3,y:.2126390058715102*r$2+.715168678767756*g$2+.0721923153607337*b$3,z:.0193308187155918*r$2+.119194779794626*g$2+.9505321522496607*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToXyz65_default=convertRgbToXyz65;const fn$2=(c$4=0)=>{let abs$1=Math.abs(c$4);return abs$1>.0031308?(Math.sign(c$4)||1)*(1.055*abs$1**(1/2.4)-.055):c$4*12.92},convertLrgbToRgb=({r:r$2,g:g$2,b:b$3,alpha:alpha$1},mode=`rgb`)=>{let res={mode,r:fn$2(r$2),g:fn$2(g$2),b:fn$2(b$3)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLrgbToRgb_default=convertLrgbToRgb;const convertXyz65ToRgb=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res=convertLrgbToRgb_default({r:x$3*3.2409699419045226-y$2*1.537383177570094-.4986107602930034*z$2,g:x$3*-.9692436362808796+y$2*1.8759675015077204+.0415550574071756*z$2,b:x$3*.0556300796969936-y$2*.2039769588889765+1.0569715142428784*z$2});return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToRgb_default=convertXyz65ToRgb;const definition$26={...definition_default$23,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:color$2=>convertXyz65ToA98_default(convertRgbToXyz65_default(color$2)),xyz65:convertXyz65ToA98_default},toMode:{rgb:color$2=>convertXyz65ToRgb_default(convertA98ToXyz65_default(color$2)),xyz65:convertA98ToXyz65_default}};var definition_default=definition$26;const normalizeHue=hue$2=>(hue$2%=360)<0?hue$2+360:hue$2;var normalizeHue_default=normalizeHue;const hue$1=(hues,fn$5)=>hues.map((hue$2,idx,arr)=>{if(hue$2===void 0)return hue$2;let normalized=normalizeHue_default(hue$2);return idx===0||hues[idx-1]===void 0?normalized:fn$5(normalized-normalizeHue_default(arr[idx-1]))}).reduce((acc,curr)=>!acc.length||curr===void 0||acc[acc.length-1]===void 0?(acc.push(curr),acc):(acc.push(curr+acc[acc.length-1]),acc),[]),fixupHueShorter=arr=>hue$1(arr,d$2=>Math.abs(d$2)<=180?d$2:d$2-360*Math.sign(d$2)),M=[-.14861,1.78277,-.29227,-.90649,1.97294,0],degToRad=Math.PI/180,radToDeg=180/Math.PI;let DE=M[3]*M[4],BE=M[1]*M[4],BCAD=M[1]*M[2]-M[0]*M[3];const convertRgbToCubehelix=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let l$1=(BCAD*b$3+r$2*DE-g$2*BE)/(BCAD+DE-BE),x$3=b$3-l$1,y$2=(M[4]*(g$2-l$1)-M[2]*x$3)/M[3],res={mode:`cubehelix`,l:l$1,s:l$1===0||l$1===1?void 0:Math.sqrt(x$3*x$3+y$2*y$2)/(M[4]*l$1*(1-l$1))};return res.s&&(res.h=Math.atan2(y$2,x$3)*radToDeg-120),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToCubehelix_default=convertRgbToCubehelix;const convertCubehelixToRgb=({h:h$3,s:s$1,l:l$1,alpha:alpha$1})=>{let res={mode:`rgb`};h$3=(h$3===void 0?0:h$3+120)*degToRad,l$1===void 0&&(l$1=0);let amp=s$1===void 0?0:s$1*l$1*(1-l$1),cosh=Math.cos(h$3),sinh=Math.sin(h$3);return res.r=l$1+amp*(M[0]*cosh+M[1]*sinh),res.g=l$1+amp*(M[2]*cosh+M[3]*sinh),res.b=l$1+amp*(M[4]*cosh+M[5]*sinh),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertCubehelixToRgb_default=convertCubehelixToRgb;const differenceHueSaturation=(std,smp)=>{if(std.h===void 0||smp.h===void 0||!std.s||!smp.s)return 0;let std_h=normalizeHue_default(std.h),smp_h=normalizeHue_default(smp.h),dH=Math.sin((smp_h-std_h+360)/2*Math.PI/180);return 2*Math.sqrt(std.s*smp.s)*dH},differenceHueNaive=(std,smp)=>{if(std.h===void 0||smp.h===void 0)return 0;let std_h=normalizeHue_default(std.h),smp_h=normalizeHue_default(smp.h);return Math.abs(smp_h-std_h)>180?std_h-(smp_h-360*Math.sign(smp_h-std_h)):smp_h-std_h},differenceHueChroma=(std,smp)=>{if(std.h===void 0||smp.h===void 0||!std.c||!smp.c)return 0;let std_h=normalizeHue_default(std.h),smp_h=normalizeHue_default(smp.h),dH=Math.sin((smp_h-std_h+360)/2*Math.PI/180);return 2*Math.sqrt(std.c*smp.c)*dH},averageAngle=val=>{let sum=val.reduce((sum$1,val$1)=>{if(val$1!==void 0){let rad=val$1*Math.PI/180;sum$1.sin+=Math.sin(rad),sum$1.cos+=Math.cos(rad)}return sum$1},{sin:0,cos:0}),angle=Math.atan2(sum.sin,sum.cos)*180/Math.PI;return angle<0?360+angle:angle},definition$25={mode:`cubehelix`,channels:[`h`,`s`,`l`,`alpha`],parse:[`--cubehelix`],serialize:`--cubehelix`,ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:convertRgbToCubehelix_default},toMode:{rgb:convertCubehelixToRgb_default},interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},s:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueSaturation},average:{h:averageAngle}};var definition_default$1=definition$25;const convertLabToLch=({l:l$1,a:a$2,b:b$3,alpha:alpha$1},mode=`lch`)=>{a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let c$4=Math.sqrt(a$2*a$2+b$3*b$3),res={mode,l:l$1,c:c$4};return c$4&&(res.h=normalizeHue_default(Math.atan2(b$3,a$2)*180/Math.PI)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLabToLch_default=convertLabToLch;const convertLchToLab=({l:l$1,c:c$4,h:h$3,alpha:alpha$1},mode=`lab`)=>{h$3===void 0&&(h$3=0);let res={mode,l:l$1,a:c$4?c$4*Math.cos(h$3/180*Math.PI):0,b:c$4?c$4*Math.sin(h$3/180*Math.PI):0};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLchToLab_default=convertLchToLab;const k$2=29**3/3**3,e$1=6**3/29**3,D50={X:.3457/.3585,Y:1,Z:.2958/.3585},D65={X:.3127/.329,Y:1,Z:.3583/.329},k$3=29**3/3**3,e$2=6**3/29**3;let fn$1=v$1=>v$1**3>e$1?v$1**3:(116*v$1-16)/k$2;const convertLab65ToXyz65=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let fy=(l$1+16)/116,fx=a$2/500+fy,fz=fy-b$3/200,res={mode:`xyz65`,x:fn$1(fx)*D65.X,y:fn$1(fy)*D65.Y,z:fn$1(fz)*D65.Z};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLab65ToXyz65_default=convertLab65ToXyz65;const convertLab65ToRgb=lab$1=>convertXyz65ToRgb_default(convertLab65ToXyz65_default(lab$1));var convertLab65ToRgb_default=convertLab65ToRgb;const f$2=value$1=>value$1>e$1?Math.cbrt(value$1):(k$2*value$1+16)/116,convertXyz65ToLab65=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let f0=f$2(x$3/D65.X),f1=f$2(y$2/D65.Y),f2=f$2(z$2/D65.Z),res={mode:`lab65`,l:116*f1-16,a:500*(f0-f1),b:200*(f1-f2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToLab65_default=convertXyz65ToLab65;const convertRgbToLab65=rgb$2=>{let res=convertXyz65ToLab65_default(convertRgbToXyz65_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToLab65_default=convertRgbToLab65;const kE=1,kCH=1,θ=26/180*Math.PI,cosθ=Math.cos(θ),sinθ=Math.sin(θ),factor=100/Math.log(139/100),convertDlchToLab65=({l:l$1,c:c$4,h:h$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),c$4===void 0&&(c$4=0),h$3===void 0&&(h$3=0);let res={mode:`lab65`,l:(Math.exp(l$1*kE/factor)-1)/.0039},G$1=(Math.exp(.0435*c$4*kCH*kE)-1)/.075,e$3=G$1*Math.cos(h$3/180*Math.PI-θ),f$3=G$1*Math.sin(h$3/180*Math.PI-θ);return res.a=e$3*cosθ-f$3/.83*sinθ,res.b=e$3*sinθ+f$3/.83*cosθ,alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertDlchToLab65_default=convertDlchToLab65;const convertLab65ToDlch=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let e$3=a$2*cosθ+b$3*sinθ,f$3=.83*(b$3*cosθ-a$2*sinθ),G$1=Math.sqrt(e$3*e$3+f$3*f$3),res={mode:`dlch`,l:factor/kE*Math.log(1+.0039*l$1),c:Math.log(1+.075*G$1)/(.0435*kCH*kE)};return res.c&&(res.h=normalizeHue_default((Math.atan2(f$3,e$3)+θ)/Math.PI*180)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLab65ToDlch_default=convertLab65ToDlch;const convertDlabToLab65=c$4=>convertDlchToLab65_default(convertLabToLch_default(c$4,`dlch`)),convertLab65ToDlab=c$4=>convertLchToLab_default(convertLab65ToDlch_default(c$4),`dlab`),definition$24={mode:`dlab`,parse:[`--din99o-lab`],serialize:`--din99o-lab`,toMode:{lab65:convertDlabToLab65,rgb:c$4=>convertLab65ToRgb_default(convertDlabToLab65(c$4))},fromMode:{lab65:convertLab65ToDlab,rgb:c$4=>convertLab65ToDlab(convertRgbToLab65_default(c$4))},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:interpolatorLinear,a:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$2=definition$24;const definition$23={mode:`dlch`,parse:[`--din99o-lch`],serialize:`--din99o-lch`,toMode:{lab65:convertDlchToLab65_default,dlab:c$4=>convertLchToLab_default(c$4,`dlab`),rgb:c$4=>convertLab65ToRgb_default(convertDlchToLab65_default(c$4))},fromMode:{lab65:convertLab65ToDlch_default,dlab:c$4=>convertLabToLch_default(c$4,`dlch`),rgb:c$4=>convertLab65ToDlch_default(convertRgbToLab65_default(c$4))},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:interpolatorLinear,c:interpolatorLinear,h:{use:interpolatorLinear,fixup:fixupHueShorter},alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$3=definition$23;function convertHsiToRgb({h:h$3,s:s$1,i:i$1,alpha:alpha$1}){h$3=normalizeHue_default(h$3===void 0?0:h$3),s$1===void 0&&(s$1=0),i$1===void 0&&(i$1=0);let f$3=Math.abs(h$3/60%2-1),res;switch(Math.floor(h$3/60)){case 0:res={r:i$1*(1+s$1*(3/(2-f$3)-1)),g:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),b:i$1*(1-s$1)};break;case 1:res={r:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),g:i$1*(1+s$1*(3/(2-f$3)-1)),b:i$1*(1-s$1)};break;case 2:res={r:i$1*(1-s$1),g:i$1*(1+s$1*(3/(2-f$3)-1)),b:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1))};break;case 3:res={r:i$1*(1-s$1),g:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),b:i$1*(1+s$1*(3/(2-f$3)-1))};break;case 4:res={r:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1)),g:i$1*(1-s$1),b:i$1*(1+s$1*(3/(2-f$3)-1))};break;case 5:res={r:i$1*(1+s$1*(3/(2-f$3)-1)),g:i$1*(1-s$1),b:i$1*(1+s$1*(3*(1-f$3)/(2-f$3)-1))};break;default:res={r:i$1*(1-s$1),g:i$1*(1-s$1),b:i$1*(1-s$1)}}return res.mode=`rgb`,alpha$1!==void 0&&(res.alpha=alpha$1),res}function convertRgbToHsi({r:r$2,g:g$2,b:b$3,alpha:alpha$1}){r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let M$1=Math.max(r$2,g$2,b$3),m$2=Math.min(r$2,g$2,b$3),res={mode:`hsi`,s:r$2+g$2+b$3===0?0:1-3*m$2/(r$2+g$2+b$3),i:(r$2+g$2+b$3)/3};return M$1-m$2!==0&&(res.h=(M$1===r$2?(g$2-b$3)/(M$1-m$2)+(g$2{switch(unit){case`deg`:return+val;case`rad`:return val/Math.PI*180;case`grad`:return val/10*9;case`turn`:return val*360}};var hue_default=hueToDeg;const hsl_old=RegExp(`^hsla?\\(\\s*${hue}${c$2}${per}${c$2}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`),parseHslLegacy=color$2=>{let match=color$2.match(hsl_old);if(!match)return;let res={mode:`hsl`};return match[3]===void 0?match[1]!==void 0&&match[2]!==void 0&&(res.h=hue_default(match[1],match[2])):res.h=+match[3],match[4]!==void 0&&(res.s=Math.min(Math.max(0,match[4]/100),1)),match[5]!==void 0&&(res.l=Math.min(Math.max(0,match[5]/100),1)),match[6]===void 0?match[7]!==void 0&&(res.alpha=Math.max(0,Math.min(1,+match[7]))):res.alpha=Math.max(0,Math.min(1,match[6]/100)),res};var parseHslLegacy_default=parseHslLegacy;function parseHsl(color$2,parsed){if(!parsed||parsed[0]!==`hsl`&&parsed[0]!==`hsla`)return;let res={mode:`hsl`},[,h$3,s$1,l$1,alpha$1]=parsed;if(h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}if(s$1.type!==Tok.None){if(s$1.type===Tok.Hue)return;res.s=s$1.value/100}if(l$1.type!==Tok.None){if(l$1.type===Tok.Hue)return;res.l=l$1.value/100}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseHsl_default=parseHsl;const definition$21={mode:`hsl`,toMode:{rgb:convertHslToRgb},fromMode:{rgb:convertRgbToHsl},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[parseHsl_default,parseHslLegacy_default],serialize:c$4=>`hsl(${c$4.h===void 0?`none`:c$4.h} ${c$4.s===void 0?`none`:c$4.s*100+`%`} ${c$4.l===void 0?`none`:c$4.l*100+`%`}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},s:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueSaturation},average:{h:averageAngle}};var definition_default$5=definition$21;function convertHsvToRgb({h:h$3,s:s$1,v:v$1,alpha:alpha$1}){h$3=normalizeHue_default(h$3===void 0?0:h$3),s$1===void 0&&(s$1=0),v$1===void 0&&(v$1=0);let f$3=Math.abs(h$3/60%2-1),res;switch(Math.floor(h$3/60)){case 0:res={r:v$1,g:v$1*(1-s$1*f$3),b:v$1*(1-s$1)};break;case 1:res={r:v$1*(1-s$1*f$3),g:v$1,b:v$1*(1-s$1)};break;case 2:res={r:v$1*(1-s$1),g:v$1,b:v$1*(1-s$1*f$3)};break;case 3:res={r:v$1*(1-s$1),g:v$1*(1-s$1*f$3),b:v$1};break;case 4:res={r:v$1*(1-s$1*f$3),g:v$1*(1-s$1),b:v$1};break;case 5:res={r:v$1,g:v$1*(1-s$1),b:v$1*(1-s$1*f$3)};break;default:res={r:v$1*(1-s$1),g:v$1*(1-s$1),b:v$1*(1-s$1)}}return res.mode=`rgb`,alpha$1!==void 0&&(res.alpha=alpha$1),res}function convertRgbToHsv({r:r$2,g:g$2,b:b$3,alpha:alpha$1}){r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let M$1=Math.max(r$2,g$2,b$3),m$2=Math.min(r$2,g$2,b$3),res={mode:`hsv`,s:M$1===0?0:1-m$2/M$1,v:M$1};return M$1-m$2!==0&&(res.h=(M$1===r$2?(g$2-b$3)/(M$1-m$2)+(g$21){let s$1=w$1+b$3;w$1/=s$1,b$3/=s$1}return convertHsvToRgb({h:h$3,s:b$3===1?1:1-w$1/(1-b$3),v:1-b$3,alpha:alpha$1})}function convertRgbToHwb(rgba$1){let hsv$1=convertRgbToHsv(rgba$1);if(hsv$1===void 0)return;let s$1=hsv$1.s===void 0?0:hsv$1.s,v$1=hsv$1.v===void 0?0:hsv$1.v,res={mode:`hwb`,w:(1-s$1)*v$1,b:1-v$1};return hsv$1.h!==void 0&&(res.h=hsv$1.h),hsv$1.alpha!==void 0&&(res.alpha=hsv$1.alpha),res}function ParseHwb(color$2,parsed){if(!parsed||parsed[0]!==`hwb`)return;let res={mode:`hwb`},[,h$3,w$1,b$3,alpha$1]=parsed;if(h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}if(w$1.type!==Tok.None){if(w$1.type===Tok.Hue)return;res.w=w$1.value/100}if(b$3.type!==Tok.None){if(b$3.type===Tok.Hue)return;res.b=b$3.value/100}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseHwb_default=ParseHwb;const definition$19={mode:`hwb`,toMode:{rgb:convertHwbToRgb},fromMode:{rgb:convertRgbToHwb},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[parseHwb_default],serialize:c$4=>`hwb(${c$4.h===void 0?`none`:c$4.h} ${c$4.w===void 0?`none`:c$4.w*100+`%`} ${c$4.b===void 0?`none`:c$4.b*100+`%`}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},w:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueNaive},average:{h:averageAngle}};var definition_default$7=definition$19;const YW=203,M1=.1593017578125,M2=78.84375,C1=.8359375,C2=18.8515625,C3=18.6875;function transferPqDecode(v$1){if(v$1<0)return 0;let c$4=v$1**(1/M2);return 1e4*(Math.max(0,c$4-C1)/(C2-C3*c$4))**(1/M1)}function transferPqEncode(v$1){if(v$1<0)return 0;let c$4=(v$1/1e4)**M1;return((C1+C2*c$4)/(1+C3*c$4))**+M2}const toRel=c$4=>Math.max(c$4/YW,0),convertItpToXyz65=({i:i$1,t,p:p$5,alpha:alpha$1})=>{i$1===void 0&&(i$1=0),t===void 0&&(t=0),p$5===void 0&&(p$5=0);let l$1=transferPqDecode(i$1+.008609037037932761*t+.11102962500302593*p$5),m$2=transferPqDecode(i$1-.00860903703793275*t-.11102962500302599*p$5),s$1=transferPqDecode(i$1+.5600313357106791*t-.32062717498731885*p$5),res={mode:`xyz65`,x:toRel(2.070152218389422*l$1-1.3263473389671556*m$2+.2066510476294051*s$1),y:toRel(.3647385209748074*l$1+.680566024947227*m$2-.0453045459220346*s$1),z:toRel(-.049747207535812*l$1-.0492609666966138*m$2+1.1880659249923042*s$1)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertItpToXyz65_default=convertItpToXyz65;const toAbs=(c$4=0)=>Math.max(c$4*YW,0),convertXyz65ToItp=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{let absX=toAbs(x$3),absY=toAbs(y$2),absZ=toAbs(z$2),l$1=transferPqEncode(.3592832590121217*absX+.6976051147779502*absY-.0358915932320289*absZ),m$2=transferPqEncode(-.1920808463704995*absX+1.1004767970374323*absY+.0753748658519118*absZ),s$1=transferPqEncode(.0070797844607477*absX+.0748396662186366*absY+.8433265453898765*absZ),i$1=.5*l$1+.5*m$2,t=1.61376953125*l$1-3.323486328125*m$2+1.709716796875*s$1,p$5=4.378173828125*l$1-4.24560546875*m$2-.132568359375*s$1,res={mode:`itp`,i:i$1,t,p:p$5};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToItp_default=convertXyz65ToItp;const definition$18={mode:`itp`,channels:[`i`,`t`,`p`,`alpha`],parse:[`--ictcp`],serialize:`--ictcp`,toMode:{xyz65:convertItpToXyz65_default,rgb:color$2=>convertXyz65ToRgb_default(convertItpToXyz65_default(color$2))},fromMode:{xyz65:convertXyz65ToItp_default,rgb:color$2=>convertXyz65ToItp_default(convertRgbToXyz65_default(color$2))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:interpolatorLinear,t:interpolatorLinear,p:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$8=definition$18;const p$2=134.03437499999998,d0$1=16295499532821565e-27,jabPqEncode=v$1=>{if(v$1<0)return 0;let vn$3=(v$1/1e4)**M1;return((C1+C2*vn$3)/(1+C3*vn$3))**+p$2},abs=(v$1=0)=>Math.max(v$1*203,0),convertXyz65ToJab=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3=abs(x$3),y$2=abs(y$2),z$2=abs(z$2);let xp=1.15*x$3-.15*z$2,yp=.66*y$2+.34*x$3,l$1=jabPqEncode(.41478972*xp+.579999*yp+.014648*z$2),m$2=jabPqEncode(-.20151*xp+1.120649*yp+.0531008*z$2),s$1=jabPqEncode(-.0166008*xp+.2648*yp+.6684799*z$2),i$1=(l$1+m$2)/2,res={mode:`jab`,j:.44*i$1/(1-.56*i$1)-d0$1,a:3.524*l$1-4.066708*m$2+.542708*s$1,b:.199076*l$1+1.096799*m$2-1.295875*s$1};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToJab_default=convertXyz65ToJab;const p$1=134.03437499999998,d0=16295499532821565e-27,jabPqDecode=v$1=>{if(v$1<0)return 0;let vp=v$1**(1/p$1);return 1e4*((C1-vp)/(C3*vp-C2))**(1/M1)},rel=v$1=>v$1/203,convertJabToXyz65=({j:j$1,a:a$2,b:b$3,alpha:alpha$1})=>{j$1===void 0&&(j$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let i$1=(j$1+d0)/(.44+.56*(j$1+d0)),l$1=jabPqDecode(i$1+.13860504*a$2+.058047316*b$3),m$2=jabPqDecode(i$1-.13860504*a$2-.058047316*b$3),s$1=jabPqDecode(i$1-.096019242*a$2-.8118919*b$3),res={mode:`xyz65`,x:rel(1.661373024652174*l$1-.914523081304348*m$2+.23136208173913045*s$1),y:rel(-.3250758611844533*l$1+1.571847026732543*m$2-.21825383453227928*s$1),z:rel(-.090982811*l$1-.31272829*m$2+1.5227666*s$1)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertJabToXyz65_default=convertJabToXyz65;const convertRgbToJab=rgb$2=>{let res=convertXyz65ToJab_default(convertRgbToXyz65_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToJab_default=convertRgbToJab;const convertJabToRgb=color$2=>convertXyz65ToRgb_default(convertJabToXyz65_default(color$2));var convertJabToRgb_default=convertJabToRgb;const definition$17={mode:`jab`,channels:[`j`,`a`,`b`,`alpha`],parse:[`--jzazbz`],serialize:`--jzazbz`,fromMode:{rgb:convertRgbToJab_default,xyz65:convertXyz65ToJab_default},toMode:{rgb:convertJabToRgb_default,xyz65:convertJabToXyz65_default},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:interpolatorLinear,a:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$9=definition$17;const convertJabToJch=({j:j$1,a:a$2,b:b$3,alpha:alpha$1})=>{a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let c$4=Math.sqrt(a$2*a$2+b$3*b$3),res={mode:`jch`,j:j$1,c:c$4};return c$4&&(res.h=normalizeHue_default(Math.atan2(b$3,a$2)*180/Math.PI)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertJabToJch_default=convertJabToJch;const convertJchToJab=({j:j$1,c:c$4,h:h$3,alpha:alpha$1})=>{h$3===void 0&&(h$3=0);let res={mode:`jab`,j:j$1,a:c$4?c$4*Math.cos(h$3/180*Math.PI):0,b:c$4?c$4*Math.sin(h$3/180*Math.PI):0};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertJchToJab_default=convertJchToJab;const definition$16={mode:`jch`,parse:[`--jzczhz`],serialize:`--jzczhz`,toMode:{jab:convertJchToJab_default,rgb:c$4=>convertJabToRgb_default(convertJchToJab_default(c$4))},fromMode:{rgb:c$4=>convertJabToJch_default(convertRgbToJab_default(c$4)),jab:convertJabToJch_default},channels:[`j`,`c`,`h`,`alpha`],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},c:interpolatorLinear,j:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$10=definition$16;const k$1=29**3/3**3,e=6**3/29**3;let fn=v$1=>v$1**3>e?v$1**3:(116*v$1-16)/k$1;const convertLabToXyz50=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let fy=(l$1+16)/116,fx=a$2/500+fy,fz=fy-b$3/200,res={mode:`xyz50`,x:fn(fx)*D50.X,y:fn(fy)*D50.Y,z:fn(fz)*D50.Z};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLabToXyz50_default=convertLabToXyz50;const convertXyz50ToRgb=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res=convertLrgbToRgb_default({r:x$3*3.1341359569958707-y$2*1.6173863321612538-.4906619460083532*z$2,g:x$3*-.978795502912089+y$2*1.916254567259524+.03344273116131949*z$2,b:x$3*.07195537988411677-y$2*.2289768264158322+1.405386058324125*z$2});return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToRgb_default=convertXyz50ToRgb;const convertLabToRgb=lab$1=>convertXyz50ToRgb_default(convertLabToXyz50_default(lab$1));var convertLabToRgb_default=convertLabToRgb;const convertRgbToXyz50=rgb$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(rgb$2),res={mode:`xyz50`,x:.436065742824811*r$2+.3851514688337912*g$2+.14307845442264197*b$3,y:.22249319175623702*r$2+.7168870538238823*g$2+.06061979053616537*b$3,z:.013923904500943465*r$2+.09708128566574634*g$2+.7140993584005155*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToXyz50_default=convertRgbToXyz50;const f$1=value$1=>value$1>e?Math.cbrt(value$1):(k$1*value$1+16)/116,convertXyz50ToLab=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let f0=f$1(x$3/D50.X),f1=f$1(y$2/D50.Y),f2=f$1(z$2/D50.Z),res={mode:`lab`,l:116*f1-16,a:500*(f0-f1),b:200*(f1-f2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToLab_default=convertXyz50ToLab;const convertRgbToLab=rgb$2=>{let res=convertXyz50ToLab_default(convertRgbToXyz50_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToLab_default=convertRgbToLab;function parseLab(color$2,parsed){if(!parsed||parsed[0]!==`lab`)return;let res={mode:`lab`},[,l$1,a$2,b$3,alpha$1]=parsed;if(!(l$1.type===Tok.Hue||a$2.type===Tok.Hue||b$3.type===Tok.Hue))return l$1.type!==Tok.None&&(res.l=Math.min(Math.max(0,l$1.value),100)),a$2.type!==Tok.None&&(res.a=a$2.type===Tok.Number?a$2.value:a$2.value*125/100),b$3.type!==Tok.None&&(res.b=b$3.type===Tok.Number?b$3.value:b$3.value*125/100),alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseLab_default=parseLab;const definition$15={mode:`lab`,toMode:{xyz50:convertLabToXyz50_default,rgb:convertLabToRgb_default},fromMode:{xyz50:convertXyz50ToLab_default,rgb:convertRgbToLab_default},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[parseLab_default],serialize:c$4=>`lab(${c$4.l===void 0?`none`:c$4.l} ${c$4.a===void 0?`none`:c$4.a} ${c$4.b===void 0?`none`:c$4.b}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{l:interpolatorLinear,a:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$11=definition$15;const definition$14={...definition_default$11,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:convertLab65ToXyz65_default,rgb:convertLab65ToRgb_default},fromMode:{xyz65:convertXyz65ToLab65_default,rgb:convertRgbToLab65_default},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};var definition_default$12=definition$14;function parseLch(color$2,parsed){if(!parsed||parsed[0]!==`lch`)return;let res={mode:`lch`},[,l$1,c$4,h$3,alpha$1]=parsed;if(l$1.type!==Tok.None){if(l$1.type===Tok.Hue)return;res.l=Math.min(Math.max(0,l$1.value),100)}if(c$4.type!==Tok.None&&(res.c=Math.max(0,c$4.type===Tok.Number?c$4.value:c$4.value*150/100)),h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseLch_default=parseLch;const definition$13={mode:`lch`,toMode:{lab:convertLchToLab_default,rgb:c$4=>convertLabToRgb_default(convertLchToLab_default(c$4))},fromMode:{rgb:c$4=>convertLabToLch_default(convertRgbToLab_default(c$4)),lab:convertLabToLch_default},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[parseLch_default],serialize:c$4=>`lch(${c$4.l===void 0?`none`:c$4.l} ${c$4.c===void 0?`none`:c$4.c} ${c$4.h===void 0?`none`:c$4.h}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},c:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$13=definition$13;const definition$12={...definition_default$13,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:c$4=>convertLchToLab_default(c$4,`lab65`),rgb:c$4=>convertLab65ToRgb_default(convertLchToLab_default(c$4,`lab65`))},fromMode:{rgb:c$4=>convertLabToLch_default(convertRgbToLab65_default(c$4),`lch65`),lab65:c$4=>convertLabToLch_default(c$4,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}};var definition_default$14=definition$12;const convertLuvToLchuv=({l:l$1,u:u$1,v:v$1,alpha:alpha$1})=>{u$1===void 0&&(u$1=0),v$1===void 0&&(v$1=0);let c$4=Math.sqrt(u$1*u$1+v$1*v$1),res={mode:`lchuv`,l:l$1,c:c$4};return c$4&&(res.h=normalizeHue_default(Math.atan2(v$1,u$1)*180/Math.PI)),alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLuvToLchuv_default=convertLuvToLchuv;const convertLchuvToLuv=({l:l$1,c:c$4,h:h$3,alpha:alpha$1})=>{h$3===void 0&&(h$3=0);let res={mode:`luv`,l:l$1,u:c$4?c$4*Math.cos(h$3/180*Math.PI):0,v:c$4?c$4*Math.sin(h$3/180*Math.PI):0};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLchuvToLuv_default=convertLchuvToLuv;const u_fn$1=(x$3,y$2,z$2)=>4*x$3/(x$3+15*y$2+3*z$2),v_fn$1=(x$3,y$2,z$2)=>9*y$2/(x$3+15*y$2+3*z$2),un$1=u_fn$1(D50.X,D50.Y,D50.Z),vn$1=v_fn$1(D50.X,D50.Y,D50.Z),l_fn=value$1=>value$1<=e?k$1*value$1:116*Math.cbrt(value$1)-16,convertXyz50ToLuv=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let l$1=l_fn(y$2/D50.Y),u$1=u_fn$1(x$3,y$2,z$2),v$1=v_fn$1(x$3,y$2,z$2);!isFinite(u$1)||!isFinite(v$1)?l$1=u$1=v$1=0:(u$1=13*l$1*(u$1-un$1),v$1=13*l$1*(v$1-vn$1));let res={mode:`luv`,l:l$1,u:u$1,v:v$1};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToLuv_default=convertXyz50ToLuv;const u_fn=(x$3,y$2,z$2)=>4*x$3/(x$3+15*y$2+3*z$2),v_fn=(x$3,y$2,z$2)=>9*y$2/(x$3+15*y$2+3*z$2),un=u_fn(D50.X,D50.Y,D50.Z),vn=v_fn(D50.X,D50.Y,D50.Z),convertLuvToXyz50=({l:l$1,u:u$1,v:v$1,alpha:alpha$1})=>{if(l$1===void 0&&(l$1=0),l$1===0)return{mode:`xyz50`,x:0,y:0,z:0};u$1===void 0&&(u$1=0),v$1===void 0&&(v$1=0);let up=u$1/(13*l$1)+un,vp=v$1/(13*l$1)+vn,y$2=D50.Y*(l$1<=8?l$1/k$1:((l$1+16)/116)**3),x$3=y$2*(9*up)/(4*vp),z$2=y$2*(12-3*up-20*vp)/(4*vp),res={mode:`xyz50`,x:x$3,y:y$2,z:z$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLuvToXyz50_default=convertLuvToXyz50;const convertRgbToLchuv=rgb$2=>convertLuvToLchuv_default(convertXyz50ToLuv_default(convertRgbToXyz50_default(rgb$2))),convertLchuvToRgb=lchuv$1=>convertXyz50ToRgb_default(convertLuvToXyz50_default(convertLchuvToLuv_default(lchuv$1))),definition$11={mode:`lchuv`,toMode:{luv:convertLchuvToLuv_default,rgb:convertLchuvToRgb},fromMode:{rgb:convertRgbToLchuv,luv:convertLuvToLchuv_default},channels:[`l`,`c`,`h`,`alpha`],parse:[`--lchuv`],serialize:`--lchuv`,ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:interpolatorLinear,fixup:fixupHueShorter},c:interpolatorLinear,l:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}},difference:{h:differenceHueChroma},average:{h:averageAngle}};var definition_default$15=definition$11;const definition$10={...definition_default$23,mode:`lrgb`,toMode:{rgb:convertLrgbToRgb_default},fromMode:{rgb:convertRgbToLrgb_default},parse:[`srgb-linear`],serialize:`srgb-linear`};var definition_default$16=definition$10;const definition$9={mode:`luv`,toMode:{xyz50:convertLuvToXyz50_default,rgb:luv$1=>convertXyz50ToRgb_default(convertLuvToXyz50_default(luv$1))},fromMode:{xyz50:convertXyz50ToLuv_default,rgb:rgb$2=>convertXyz50ToLuv_default(convertRgbToXyz50_default(rgb$2))},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:interpolatorLinear,u:interpolatorLinear,v:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$17=definition$9;const convertLrgbToOklab=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let L$1=Math.cbrt(.412221469470763*r$2+.5363325372617348*g$2+.0514459932675022*b$3),M$1=Math.cbrt(.2119034958178252*r$2+.6806995506452344*g$2+.1073969535369406*b$3),S$2=Math.cbrt(.0883024591900564*r$2+.2817188391361215*g$2+.6299787016738222*b$3),res={mode:`oklab`,l:.210454268309314*L$1+.7936177747023054*M$1-.0040720430116193*S$2,a:1.9779985324311684*L$1-2.42859224204858*M$1+.450593709617411*S$2,b:.0259040424655478*L$1+.7827717124575296*M$1-.8086757549230774*S$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertLrgbToOklab_default=convertLrgbToOklab;const convertRgbToOklab=rgb$2=>{let res=convertLrgbToOklab_default(convertRgbToLrgb_default(rgb$2));return rgb$2.r===rgb$2.b&&rgb$2.b===rgb$2.g&&(res.a=res.b=0),res};var convertRgbToOklab_default=convertRgbToOklab;const convertOklabToLrgb=({l:l$1,a:a$2,b:b$3,alpha:alpha$1})=>{l$1===void 0&&(l$1=0),a$2===void 0&&(a$2=0),b$3===void 0&&(b$3=0);let L$1=(l$1+.3963377773761749*a$2+.2158037573099136*b$3)**3,M$1=(l$1-.1055613458156586*a$2-.0638541728258133*b$3)**3,S$2=(l$1-.0894841775298119*a$2-1.2914855480194092*b$3)**3,res={mode:`lrgb`,r:4.076741636075957*L$1-3.3077115392580616*M$1+.2309699031821044*S$2,g:-1.2684379732850317*L$1+2.6097573492876887*M$1-.3413193760026573*S$2,b:-.0041960761386756*L$1-.7034186179359362*M$1+1.7076146940746117*S$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertOklabToLrgb_default=convertOklabToLrgb;const convertOklabToRgb=c$4=>convertLrgbToRgb_default(convertOklabToLrgb_default(c$4));var convertOklabToRgb_default=convertOklabToRgb;function toe(x$3){let k_1=.206,k_2=.03,k_3=(1+k_1)/(1+k_2);return .5*(k_3*x$3-k_1+Math.sqrt((k_3*x$3-k_1)*(k_3*x$3-k_1)+4*k_2*k_3*x$3))}function toe_inv(x$3){let k_1=.206,k_2=.03,k_3=(1+k_1)/(1+k_2);return(x$3*x$3+k_1*x$3)/(k_3*(x$3+k_2))}function compute_max_saturation(a$2,b$3){let k0,k1,k2,k3,k4,wl,wm,ws;-1.88170328*a$2-.80936493*b$3>1?(k0=1.19086277,k1=1.76576728,k2=.59662641,k3=.75515197,k4=.56771245,wl=4.0767416621,wm=-3.3077115913,ws=.2309699292):1.81444104*a$2-1.19445276*b$3>1?(k0=.73956515,k1=-.45954404,k2=.08285427,k3=.1254107,k4=.14503204,wl=-1.2684380046,wm=2.6097574011,ws=-.3413193965):(k0=1.35733652,k1=-.00915799,k2=-1.1513021,k3=-.50559606,k4=.00692167,wl=-.0041960863,wm=-.7034186147,ws=1.707614701);let S$2=k0+k1*a$2+k2*b$3+k3*a$2*a$2+k4*a$2*b$3,k_l=.3963377774*a$2+.2158037573*b$3,k_m=-.1055613458*a$2-.0638541728*b$3,k_s=-.0894841775*a$2-1.291485548*b$3;{let l_=1+S$2*k_l,m_=1+S$2*k_m,s_=1+S$2*k_s,l$1=l_*l_*l_,m$2=m_*m_*m_,s$1=s_*s_*s_,l_dS=3*k_l*l_*l_,m_dS=3*k_m*m_*m_,s_dS=3*k_s*s_*s_,l_dS2=6*k_l*k_l*l_,m_dS2=6*k_m*k_m*m_,s_dS2=6*k_s*k_s*s_,f$3=wl*l$1+wm*m$2+ws*s$1,f1=wl*l_dS+wm*m_dS+ws*s_dS,f2=wl*l_dS2+wm*m_dS2+ws*s_dS2;S$2-=f$3*f1/(f1*f1-.5*f$3*f2)}return S$2}function find_cusp(a$2,b$3){let S_cusp=compute_max_saturation(a$2,b$3),rgb$2=convertOklabToLrgb_default({l:1,a:S_cusp*a$2,b:S_cusp*b$3}),L_cusp=Math.cbrt(1/Math.max(rgb$2.r,rgb$2.g,rgb$2.b)),C_cusp=L_cusp*S_cusp;return[L_cusp,C_cusp]}function find_gamut_intersection(a$2,b$3,L1,C1$1,L0,cusp=null){cusp||=find_cusp(a$2,b$3);let t;if((L1-L0)*cusp[1]-(cusp[0]-L0)*C1$1<=0)t=cusp[1]*L0/(C1$1*cusp[0]+cusp[1]*(L0-L1));else{t=cusp[1]*(L0-1)/(C1$1*(cusp[0]-1)+cusp[1]*(L0-L1));{let dL=L1-L0,dC=C1$1,k_l=.3963377774*a$2+.2158037573*b$3,k_m=-.1055613458*a$2-.0638541728*b$3,k_s=-.0894841775*a$2-1.291485548*b$3,l_dt=dL+dC*k_l,m_dt=dL+dC*k_m,s_dt=dL+dC*k_s;{let L$1=L0*(1-t)+t*L1,C$3=t*C1$1,l_=L$1+C$3*k_l,m_=L$1+C$3*k_m,s_=L$1+C$3*k_s,l$1=l_*l_*l_,m$2=m_*m_*m_,s$1=s_*s_*s_,ldt=3*l_dt*l_*l_,mdt=3*m_dt*m_*m_,sdt=3*s_dt*s_*s_,ldt2=6*l_dt*l_dt*l_,mdt2=6*m_dt*m_dt*m_,sdt2=6*s_dt*s_dt*s_,r$2=4.0767416621*l$1-3.3077115913*m$2+.2309699292*s$1-1,r1=4.0767416621*ldt-3.3077115913*mdt+.2309699292*sdt,r2=4.0767416621*ldt2-3.3077115913*mdt2+.2309699292*sdt2,u_r=r1/(r1*r1-.5*r$2*r2),t_r=-r$2*u_r,g$2=-1.2684380046*l$1+2.6097574011*m$2-.3413193965*s$1-1,g1=-1.2684380046*ldt+2.6097574011*mdt-.3413193965*sdt,g2=-1.2684380046*ldt2+2.6097574011*mdt2-.3413193965*sdt2,u_g=g1/(g1*g1-.5*g$2*g2),t_g=-g$2*u_g,b$4=-.0041960863*l$1-.7034186147*m$2+1.707614701*s$1-1,b1=-.0041960863*ldt-.7034186147*mdt+1.707614701*sdt,b2=-.0041960863*ldt2-.7034186147*mdt2+1.707614701*sdt2,u_b=b1/(b1*b1-.5*b$4*b2),t_b=-b$4*u_b;t_r=u_r>=0?t_r:1e6,t_g=u_g>=0?t_g:1e6,t_b=u_b>=0?t_b:1e6,t+=Math.min(t_r,Math.min(t_g,t_b))}}}return t}function get_ST_max(a_,b_,cusp=null){cusp||=find_cusp(a_,b_);let L$1=cusp[0],C$3=cusp[1];return[C$3/L$1,C$3/(1-L$1)]}function get_Cs(L$1,a_,b_){let cusp=find_cusp(a_,b_),C_max=find_gamut_intersection(a_,b_,L$1,1,L$1,cusp),ST_max=get_ST_max(a_,b_,cusp),S_mid=.11516993+1/(7.4477897+4.1590124*b_+a_*(-2.19557347+1.75198401*b_+a_*(-2.13704948-10.02301043*b_+a_*(-4.24894561+5.38770819*b_+4.69891013*a_)))),T_mid=.11239642+1/(1.6132032-.68124379*b_+a_*(.40370612+.90148123*b_+a_*(-.27087943+.6122399*b_+a_*(.00299215-.45399568*b_-.14661872*a_)))),k$4=C_max/Math.min(L$1*ST_max[0],(1-L$1)*ST_max[1]),C_a=L$1*S_mid,C_b=(1-L$1)*T_mid,C_mid=.9*k$4*Math.sqrt(Math.sqrt(1/(1/(C_a*C_a*C_a*C_a)+1/(C_b*C_b*C_b*C_b))));C_a=L$1*.4,C_b=(1-L$1)*.8;let C_0=Math.sqrt(1/(1/(C_a*C_a)+1/(C_b*C_b)));return[C_0,C_mid,C_max]}function convertOklabToOkhsl(lab$1){let l$1=lab$1.l===void 0?0:lab$1.l,a$2=lab$1.a===void 0?0:lab$1.a,b$3=lab$1.b===void 0?0:lab$1.b,ret={mode:`okhsl`,l:toe(l$1)};lab$1.alpha!==void 0&&(ret.alpha=lab$1.alpha);let c$4=Math.sqrt(a$2*a$2+b$3*b$3);if(!c$4)return ret.s=0,ret;let[C_0,C_mid,C_max]=get_Cs(l$1,a$2/c$4,b$3/c$4),s$1;if(c$4convertOklabToOkhsl(convertRgbToOklab_default(c$4))},toMode:{oklab:convertOkhslToOklab,rgb:c$4=>convertOklabToRgb_default(convertOkhslToOklab(c$4))}};var modeOkhsl_default=modeOkhsl;function convertOklabToOkhsv(lab$1){let l$1=lab$1.l===void 0?0:lab$1.l,a$2=lab$1.a===void 0?0:lab$1.a,b$3=lab$1.b===void 0?0:lab$1.b,c$4=Math.sqrt(a$2*a$2+b$3*b$3),a_=c$4?a$2/c$4:1,b_=c$4?b$3/c$4:1,[S_max,T$1]=get_ST_max(a_,b_),S_0=.5,k$4=1-S_0/S_max,t=T$1/(c$4+l$1*T$1),L_v=t*l$1,C_v=t*c$4,L_vt=toe_inv(L_v),C_vt=C_v*L_vt/L_v,rgb_scale=convertOklabToLrgb_default({l:L_vt,a:a_*C_vt,b:b_*C_vt}),scale_L=Math.cbrt(1/Math.max(rgb_scale.r,rgb_scale.g,rgb_scale.b,0));l$1/=scale_L,c$4=c$4/scale_L*toe(l$1)/l$1,l$1=toe(l$1);let ret={mode:`okhsv`,s:c$4?(S_0+T$1)*C_v/(T$1*S_0+T$1*k$4*C_v):0,v:l$1?l$1/L_v:0};return ret.s&&(ret.h=normalizeHue_default(Math.atan2(b$3,a$2)*180/Math.PI)),lab$1.alpha!==void 0&&(ret.alpha=lab$1.alpha),ret}function convertOkhsvToOklab(hsv$1){let ret={mode:`oklab`};hsv$1.alpha!==void 0&&(ret.alpha=hsv$1.alpha);let h$3=hsv$1.h===void 0?0:hsv$1.h,s$1=hsv$1.s===void 0?0:hsv$1.s,v$1=hsv$1.v===void 0?0:hsv$1.v,a_=Math.cos(h$3/180*Math.PI),b_=Math.sin(h$3/180*Math.PI),[S_max,T$1]=get_ST_max(a_,b_),S_0=.5,k$4=1-S_0/S_max,L_v=1-s$1*S_0/(S_0+T$1-T$1*k$4*s$1),C_v=s$1*T$1*S_0/(S_0+T$1-T$1*k$4*s$1),L_vt=toe_inv(L_v),C_vt=C_v*L_vt/L_v,rgb_scale=convertOklabToLrgb_default({l:L_vt,a:a_*C_vt,b:b_*C_vt}),scale_L=Math.cbrt(1/Math.max(rgb_scale.r,rgb_scale.g,rgb_scale.b,0)),L_new=toe_inv(v$1*L_v),C$3=C_v*L_new/L_v;return ret.l=L_new*scale_L,ret.a=C$3*a_*scale_L,ret.b=C$3*b_*scale_L,ret}const modeOkhsv={...definition_default$6,mode:`okhsv`,channels:[`h`,`s`,`v`,`alpha`],parse:[`--okhsv`],serialize:`--okhsv`,fromMode:{oklab:convertOklabToOkhsv,rgb:c$4=>convertOklabToOkhsv(convertRgbToOklab_default(c$4))},toMode:{oklab:convertOkhsvToOklab,rgb:c$4=>convertOklabToRgb_default(convertOkhsvToOklab(c$4))}};var modeOkhsv_default=modeOkhsv;function parseOklab(color$2,parsed){if(!parsed||parsed[0]!==`oklab`)return;let res={mode:`oklab`},[,l$1,a$2,b$3,alpha$1]=parsed;if(!(l$1.type===Tok.Hue||a$2.type===Tok.Hue||b$3.type===Tok.Hue))return l$1.type!==Tok.None&&(res.l=Math.min(Math.max(0,l$1.type===Tok.Number?l$1.value:l$1.value/100),1)),a$2.type!==Tok.None&&(res.a=a$2.type===Tok.Number?a$2.value:a$2.value*.4/100),b$3.type!==Tok.None&&(res.b=b$3.type===Tok.Number?b$3.value:b$3.value*.4/100),alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseOklab_default=parseOklab;const definition$8={...definition_default$11,mode:`oklab`,toMode:{lrgb:convertOklabToLrgb_default,rgb:convertOklabToRgb_default},fromMode:{lrgb:convertLrgbToOklab_default,rgb:convertRgbToOklab_default},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[parseOklab_default],serialize:c$4=>`oklab(${c$4.l===void 0?`none`:c$4.l} ${c$4.a===void 0?`none`:c$4.a} ${c$4.b===void 0?`none`:c$4.b}${c$4.alpha<1?` / ${c$4.alpha}`:``})`};var definition_default$18=definition$8;function parseOklch(color$2,parsed){if(!parsed||parsed[0]!==`oklch`)return;let res={mode:`oklch`},[,l$1,c$4,h$3,alpha$1]=parsed;if(l$1.type!==Tok.None){if(l$1.type===Tok.Hue)return;res.l=Math.min(Math.max(0,l$1.type===Tok.Number?l$1.value:l$1.value/100),1)}if(c$4.type!==Tok.None&&(res.c=Math.max(0,c$4.type===Tok.Number?c$4.value:c$4.value*.4/100)),h$3.type!==Tok.None){if(h$3.type===Tok.Percentage)return;res.h=h$3.value}return alpha$1.type!==Tok.None&&(res.alpha=Math.min(1,Math.max(0,alpha$1.type===Tok.Number?alpha$1.value:alpha$1.value/100))),res}var parseOklch_default=parseOklch;const definition$7={...definition_default$13,mode:`oklch`,toMode:{oklab:c$4=>convertLchToLab_default(c$4,`oklab`),rgb:c$4=>convertOklabToRgb_default(convertLchToLab_default(c$4,`oklab`))},fromMode:{rgb:c$4=>convertLabToLch_default(convertRgbToOklab_default(c$4),`oklch`),oklab:c$4=>convertLabToLch_default(c$4,`oklch`)},parse:[parseOklch_default],serialize:c$4=>`oklch(${c$4.l===void 0?`none`:c$4.l} ${c$4.c===void 0?`none`:c$4.c} ${c$4.h===void 0?`none`:c$4.h}${c$4.alpha<1?` / ${c$4.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}};var definition_default$19=definition$7;const convertP3ToXyz65=rgb$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(rgb$2),res={mode:`xyz65`,x:.486570948648216*r$2+.265667693169093*g$2+.1982172852343625*b$3,y:.2289745640697487*r$2+.6917385218365062*g$2+.079286914093745*b$3,z:0*r$2+.0451133818589026*g$2+1.043944368900976*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertP3ToXyz65_default=convertP3ToXyz65;const convertXyz65ToP3=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res=convertLrgbToRgb_default({r:x$3*2.4934969119414263-y$2*.9313836179191242-.402710784450717*z$2,g:x$3*-.8294889695615749+y$2*1.7626640603183465+.0236246858419436*z$2,b:x$3*.0358458302437845-y$2*.0761723892680418+.9568845240076871*z$2},`p3`);return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToP3_default=convertXyz65ToP3;const definition$6={...definition_default$23,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:color$2=>convertXyz65ToP3_default(convertRgbToXyz65_default(color$2)),xyz65:convertXyz65ToP3_default},toMode:{rgb:color$2=>convertXyz65ToRgb_default(convertP3ToXyz65_default(color$2)),xyz65:convertP3ToXyz65_default}};var definition_default$20=definition$6;const gamma$1=v$1=>{let abs$1=Math.abs(v$1);return abs$1>=1/512?Math.sign(v$1)*abs$1**(1/1.8):16*v$1},convertXyz50ToProphoto=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`prophoto`,r:gamma$1(x$3*1.3457868816471585-y$2*.2555720873797946-.0511018649755453*z$2),g:gamma$1(x$3*-.5446307051249019+y$2*1.5082477428451466+.0205274474364214*z$2),b:gamma$1(x$3*0+y$2*0+1.2119675456389452*z$2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToProphoto_default=convertXyz50ToProphoto;const linearize$1=(v$1=0)=>{let abs$1=Math.abs(v$1);return abs$1>=16/512?Math.sign(v$1)*abs$1**1.8:v$1/16},convertProphotoToXyz50=prophoto$1=>{let r$2=linearize$1(prophoto$1.r),g$2=linearize$1(prophoto$1.g),b$3=linearize$1(prophoto$1.b),res={mode:`xyz50`,x:.7977666449006423*r$2+.1351812974005331*g$2+.0313477341283922*b$3,y:.2880748288194013*r$2+.7118352342418731*g$2+899369387256e-16*b$3,z:0*r$2+0*g$2+.8251046025104602*b$3};return prophoto$1.alpha!==void 0&&(res.alpha=prophoto$1.alpha),res};var convertProphotoToXyz50_default=convertProphotoToXyz50;const definition$5={...definition_default$23,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:convertXyz50ToProphoto_default,rgb:color$2=>convertXyz50ToProphoto_default(convertRgbToXyz50_default(color$2))},toMode:{xyz50:convertProphotoToXyz50_default,rgb:color$2=>convertXyz50ToRgb_default(convertProphotoToXyz50_default(color$2))}};var definition_default$21=definition$5;const α$1=1.09929682680944,β$1=.018053968510807,gamma=v$1=>{let abs$1=Math.abs(v$1);return abs$1>β$1?(Math.sign(v$1)||1)*(α$1*abs$1**.45-(α$1-1)):4.5*v$1},convertXyz65ToRec2020=({x:x$3,y:y$2,z:z$2,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`rec2020`,r:gamma(x$3*1.7166511879712683-y$2*.3556707837763925-.2533662813736599*z$2),g:gamma(x$3*-.6666843518324893+y$2*1.6164812366349395+.0157685458139111*z$2),b:gamma(x$3*.0176398574453108-y$2*.0427706132578085+.9421031212354739*z$2)};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToRec2020_default=convertXyz65ToRec2020;const α=1.09929682680944,β=.018053968510807,linearize=(v$1=0)=>{let abs$1=Math.abs(v$1);return abs$1<β*4.5?v$1/4.5:(Math.sign(v$1)||1)*((abs$1+α-1)/α)**(1/.45)},convertRec2020ToXyz65=rec2020$1=>{let r$2=linearize(rec2020$1.r),g$2=linearize(rec2020$1.g),b$3=linearize(rec2020$1.b),res={mode:`xyz65`,x:.6369580483012911*r$2+.1446169035862083*g$2+.1688809751641721*b$3,y:.262700212011267*r$2+.6779980715188708*g$2+.059301716469862*b$3,z:0*r$2+.0280726930490874*g$2+1.0609850577107909*b$3};return rec2020$1.alpha!==void 0&&(res.alpha=rec2020$1.alpha),res};var convertRec2020ToXyz65_default=convertRec2020ToXyz65;const definition$4={...definition_default$23,mode:`rec2020`,fromMode:{xyz65:convertXyz65ToRec2020_default,rgb:color$2=>convertXyz65ToRec2020_default(convertRgbToXyz65_default(color$2))},toMode:{xyz65:convertRec2020ToXyz65_default,rgb:color$2=>convertXyz65ToRgb_default(convertRec2020ToXyz65_default(color$2))},parse:[`rec2020`],serialize:`rec2020`};var definition_default$22=definition$4;const bias=.0037930732552754493,bias_cbrt=Math.cbrt(bias),transfer$1=v$1=>Math.cbrt(v$1)-bias_cbrt,convertRgbToXyb=color$2=>{let{r:r$2,g:g$2,b:b$3,alpha:alpha$1}=convertRgbToLrgb_default(color$2),l$1=transfer$1(.3*r$2+.622*g$2+.078*b$3+bias),m$2=transfer$1(.23*r$2+.692*g$2+.078*b$3+bias),s$1=transfer$1(.2434226892454782*r$2+.2047674442449682*g$2+.5518098665095535*b$3+bias),res={mode:`xyb`,x:(l$1-m$2)/2,y:(l$1+m$2)/2,b:s$1-(l$1+m$2)/2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToXyb_default=convertRgbToXyb;const transfer=v$1=>(v$1+bias_cbrt)**3,convertXybToRgb=({x:x$3,y:y$2,b:b$3,alpha:alpha$1})=>{x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),b$3===void 0&&(b$3=0);let l$1=transfer(x$3+y$2)-bias,m$2=transfer(y$2-x$3)-bias,s$1=transfer(b$3+y$2)-bias,res=convertLrgbToRgb_default({r:11.031566904639861*l$1-9.866943908131562*m$2-.16462299650829934*s$1,g:-3.2541473810744237*l$1+4.418770377582723*m$2-.16462299650829934*s$1,b:-3.6588512867136815*l$1+2.7129230459360922*m$2+1.9459282407775895*s$1});return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXybToRgb_default=convertXybToRgb;const definition$3={mode:`xyb`,channels:[`x`,`y`,`b`,`alpha`],parse:[`--xyb`],serialize:`--xyb`,toMode:{rgb:convertXybToRgb_default},fromMode:{rgb:convertRgbToXyb_default},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:interpolatorLinear,y:interpolatorLinear,b:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$24=definition$3;const definition$2={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:convertXyz50ToRgb_default,lab:convertXyz50ToLab_default},fromMode:{rgb:convertRgbToXyz50_default,lab:convertLabToXyz50_default},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:interpolatorLinear,y:interpolatorLinear,z:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$25=definition$2;const convertXyz65ToXyz50=xyz65$1=>{let{x:x$3,y:y$2,z:z$2,alpha:alpha$1}=xyz65$1;x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`xyz50`,x:1.0479298208405488*x$3+.0229467933410191*y$2-.0501922295431356*z$2,y:.0296278156881593*x$3+.990434484573249*y$2-.0170738250293851*z$2,z:-.0092430581525912*x$3+.0150551448965779*y$2+.7518742899580008*z$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz65ToXyz50_default=convertXyz65ToXyz50;const convertXyz50ToXyz65=xyz50$1=>{let{x:x$3,y:y$2,z:z$2,alpha:alpha$1}=xyz50$1;x$3===void 0&&(x$3=0),y$2===void 0&&(y$2=0),z$2===void 0&&(z$2=0);let res={mode:`xyz65`,x:.9554734527042182*x$3-.0230985368742614*y$2+.0632593086610217*z$2,y:-.0283697069632081*x$3+1.0099954580058226*y$2+.021041398966943*z$2,z:.0123140016883199*x$3-.0205076964334779*y$2+1.3303659366080753*z$2};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertXyz50ToXyz65_default=convertXyz50ToXyz65;const definition$1={mode:`xyz65`,toMode:{rgb:convertXyz65ToRgb_default,xyz50:convertXyz65ToXyz50_default},fromMode:{rgb:convertRgbToXyz65_default,xyz50:convertXyz50ToXyz65_default},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:interpolatorLinear,y:interpolatorLinear,z:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$26=definition$1;const convertRgbToYiq=({r:r$2,g:g$2,b:b$3,alpha:alpha$1})=>{r$2===void 0&&(r$2=0),g$2===void 0&&(g$2=0),b$3===void 0&&(b$3=0);let res={mode:`yiq`,y:.29889531*r$2+.58662247*g$2+.11448223*b$3,i:.59597799*r$2-.2741761*g$2-.32180189*b$3,q:.21147017*r$2-.52261711*g$2+.31114694*b$3};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertRgbToYiq_default=convertRgbToYiq;const convertYiqToRgb=({y:y$2,i:i$1,q:q$1,alpha:alpha$1})=>{y$2===void 0&&(y$2=0),i$1===void 0&&(i$1=0),q$1===void 0&&(q$1=0);let res={mode:`rgb`,r:y$2+.95608445*i$1+.6208885*q$1,g:y$2-.27137664*i$1-.6486059*q$1,b:y$2-1.10561724*i$1+1.70250126*q$1};return alpha$1!==void 0&&(res.alpha=alpha$1),res};var convertYiqToRgb_default=convertYiqToRgb;const definition={mode:`yiq`,toMode:{rgb:convertYiqToRgb_default},fromMode:{rgb:convertRgbToYiq_default},channels:[`y`,`i`,`q`,`alpha`],parse:[`--yiq`],serialize:`--yiq`,ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:interpolatorLinear,i:interpolatorLinear,q:interpolatorLinear,alpha:{use:interpolatorLinear,fixup:fixupAlpha}}};var definition_default$27=definition;const r$1=(value$1,precision)=>Math.round(value$1*(precision=10**precision))/precision,round=(precision=4)=>value$1=>typeof value$1==`number`?r$1(value$1,precision):value$1;var round_default=round;let twoDecimals=round_default(2);const clamp=value$1=>Math.max(0,Math.min(1,value$1||0)),fixup=value$1=>Math.round(clamp(value$1)*255),rgb$1=converter_default(`rgb`),hsl$1=converter_default(`hsl`),serializeHex=color$2=>{if(color$2===void 0)return;let r$2=fixup(color$2.r),g$2=fixup(color$2.g),b$3=fixup(color$2.b);return`#`+(1<<24|r$2<<16|g$2<<8|b$3).toString(16).slice(1)},formatCss=c$4=>{let color$2=_prepare_default(c$4);if(!color$2)return;let def$1=getMode(color$2.mode);if(!def$1.serialize||typeof def$1.serialize==`string`){let res=`color(${def$1.serialize||`--${color$2.mode}`} `;return def$1.channels.forEach((ch,i$1)=>{ch!==`alpha`&&(res+=(i$1?` `:``)+(color$2[ch]===void 0?`none`:color$2[ch]))}),color$2.alpha!==void 0&&color$2.alpha<1&&(res+=` / ${color$2.alpha}`),res+`)`}if(typeof def$1.serialize==`function`)return def$1.serialize(color$2)},formatHex=c$4=>serializeHex(rgb$1(c$4)),a98=useMode(definition_default),cubehelix=useMode(definition_default$1),dlab=useMode(definition_default$2),dlch=useMode(definition_default$3),hsi=useMode(definition_default$4),hsl=useMode(definition_default$5),hsv=useMode(definition_default$6),hwb=useMode(definition_default$7),itp=useMode(definition_default$8),jab=useMode(definition_default$9),jch=useMode(definition_default$10),lab=useMode(definition_default$11),lab65=useMode(definition_default$12),lch=useMode(definition_default$13),lch65=useMode(definition_default$14),lchuv=useMode(definition_default$15),lrgb=useMode(definition_default$16),luv=useMode(definition_default$17),okhsl=useMode(modeOkhsl_default),okhsv=useMode(modeOkhsv_default),oklab=useMode(definition_default$18),oklch=useMode(definition_default$19),p3=useMode(definition_default$20),prophoto=useMode(definition_default$21),rec2020=useMode(definition_default$22),rgb=useMode(definition_default$23),xyb=useMode(definition_default$24),xyz50=useMode(definition_default$25),xyz65=useMode(definition_default$26),yiq=useMode(definition_default$27),DEFAULT_THEME_COLORS_HUE=220.44,convert=converter_default(`oklch`),getHueFrom=color$2=>{var _convert;return color$2?(_convert=convert(color$2))?.h:DEFAULT_THEME_COLORS_HUE},useSettings=defineStore(`settings`,()=>{let selectedAudioDevice=ref(),language=useLocalStorage(`settings/language`,`en`),stageView=useLocalStorage(`settings/stage/view/model-renderer`,`2d`),isAudioInputOn=useLocalStorage(`settings/audio/input`,`false`),selectedAudioDeviceId=computed(()=>{var _selectedAudioDevice$;return(_selectedAudioDevice$=selectedAudioDevice.value)?.deviceId}),{audioInputs,ensurePermissions}=useDevicesList({constraints:{audio:!0}}),live2dModelFile=ref(),live2dModelUrl=ref(`/assets/live2d/models/hiyori_pro_zh.zip`),live2dLoadSource=ref(`url`),loadingLive2dModel=ref(!1),live2dPosition=useLocalStorage(`settings/live2d/position`,{x:0,y:0}),live2dCurrentMotion=ref({group:`Idle`,index:0}),availableLive2dMotions=ref([]),live2dMotionMap=useLocalStorage(`settings/live2d/motion-map`,{}),disableTransitions=useLocalStorage(`settings/disable-transitions`,!0),usePageSpecificTransitions=useLocalStorage(`settings/use-page-specific-transitions`,!0),themeColorsHue=useLocalStorage(`settings/theme/colors/hue`,DEFAULT_THEME_COLORS_HUE),themeColorsHueDynamic=useLocalStorage(`settings/theme/colors/hue-dynamic`,!1),allowVisibleOnAllWorkspaces=useLocalStorage(`settings/allow-visible-on-all-workspaces`,!0);function setThemeColorsHue(hue$2=DEFAULT_THEME_COLORS_HUE){themeColorsHue.value=hue$2,themeColorsHueDynamic.value=!1}function applyPrimaryColorFrom(color$2){setThemeColorsHue(getHueFrom(color$2))}function isColorSelectedForPrimary(hexColor){if(themeColorsHueDynamic.value)return!1;let h$3=getHueFrom(hexColor);if(!h$3)return!1;let hueDifference=Math.abs(h$3-themeColorsHue.value);return hueDifference<.01||hueDifference>359.99}return watch(isAudioInputOn,value$1=>{value$1===`false`&&(selectedAudioDevice.value=void 0),value$1===`true`&&ensurePermissions().then(()=>{selectedAudioDevice.value=audioInputs.value[0]})}),watch(audioInputs,()=>{isAudioInputOn.value===`true`&&!selectedAudioDevice.value&&(selectedAudioDevice.value=audioInputs.value[0])},{immediate:!0}),{live2dModelFile,live2dModelUrl,live2dLoadSource,live2dCurrentMotion,live2dPosition,availableLive2dMotions,live2dMotionMap,loadingLive2dModel,disableTransitions,usePageSpecificTransitions,language,stageView,themeColorsHue,themeColorsHueDynamic,isAudioInputOn,selectedAudioDevice,selectedAudioDeviceId,allowVisibleOnAllWorkspaces,setThemeColorsHue,applyPrimaryColorFrom,isColorSelectedForPrimary}}),closed=`0px`;var TransitionVertical_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`TransitionVertical`,props:{duration:{default:250},easingEnter:{default:`ease-in-out`},easingLeave:{default:`ease-in-out`},opacityClosed:{default:0},opacityOpened:{default:1}},setup(__props){let props=__props;function getElementStyle(element$3){return{height:element$3.style.height,width:element$3.style.width,position:element$3.style.position,visibility:element$3.style.visibility,overflow:element$3.style.overflow,paddingTop:element$3.style.paddingTop,paddingBottom:element$3.style.paddingBottom,borderTopWidth:element$3.style.borderTopWidth,borderBottomWidth:element$3.style.borderBottomWidth,marginTop:element$3.style.marginTop,marginBottom:element$3.style.marginBottom}}function prepareElement(element$3,initialStyle){let{width}=getComputedStyle(element$3);element$3.style.width=width,element$3.style.position=`absolute`,element$3.style.visibility=`hidden`,element$3.style.height=``;let{height}=getComputedStyle(element$3);return element$3.style.width=initialStyle.width,element$3.style.position=initialStyle.position,element$3.style.visibility=initialStyle.visibility,element$3.style.height=closed,element$3.style.overflow=`hidden`,initialStyle.height&&initialStyle.height!==closed?initialStyle.height:height}function animateTransition(element$3,initialStyle,done,keyframes$3,options$1){let animation=element$3.animate(keyframes$3,options$1);element$3.style.height=initialStyle.height,animation.onfinish=()=>{element$3.style.overflow=initialStyle.overflow,done()}}function getEnterKeyframes(height,initialStyle){return[{height:closed,opacity:props.opacityClosed,paddingTop:closed,paddingBottom:closed,borderTopWidth:closed,borderBottomWidth:closed,marginTop:closed,marginBottom:closed},{height,opacity:props.opacityOpened,paddingTop:initialStyle.paddingTop,paddingBottom:initialStyle.paddingBottom,borderTopWidth:initialStyle.borderTopWidth,borderBottomWidth:initialStyle.borderBottomWidth,marginTop:initialStyle.marginTop,marginBottom:initialStyle.marginBottom}]}function enterTransition(element$3,done){let HTMLElement$1=element$3,initialStyle=getElementStyle(HTMLElement$1),height=prepareElement(HTMLElement$1,initialStyle),keyframes$3=getEnterKeyframes(height,initialStyle),options$1={duration:props.duration,easing:props.easingEnter};animateTransition(HTMLElement$1,initialStyle,done,keyframes$3,options$1)}function leaveTransition(element$3,done){let HTMLElement$1=element$3,initialStyle=getElementStyle(HTMLElement$1),{height}=getComputedStyle(HTMLElement$1);HTMLElement$1.style.height=height,HTMLElement$1.style.overflow=`hidden`;let keyframes$3=getEnterKeyframes(height,initialStyle).reverse(),options$1={duration:props.duration,easing:props.easingLeave};animateTransition(HTMLElement$1,initialStyle,done,keyframes$3,options$1)}return(_ctx,_cache$1)=>(openBlock(),createBlock(Transition,{css:!1,onEnter:enterTransition,onLeave:leaveTransition},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3}))}}),TransitionVertical_default=TransitionVertical_vue_vue_type_script_setup_true_lang_default,Checkbox_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Checkbox`,props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(__props){let modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(_sfc_main$4),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,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:withCtx(()=>[createVNode(unref(_sfc_main$5),{"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`]))}}),Checkbox_default=Checkbox_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$35={flex:`~ col gap-4`},_hoisted_2$25={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_3$22={flex:`1`},_hoisted_4$19={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_5$16={class:`text-xs text-neutral-500 dark:text-neutral-400`};var FieldCheckbox_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldCheckbox`,props:mergeModels({label:{},description:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,_hoisted_1$35,[createBaseVNode(`div`,_hoisted_2$25,[createBaseVNode(`div`,_hoisted_3$22,[createBaseVNode(`div`,_hoisted_4$19,toDisplayString(props.label),1),createBaseVNode(`div`,_hoisted_5$16,toDisplayString(props.description),1)]),createVNode(Checkbox_default,{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event},null,8,[`modelValue`])])]))}}),FieldCheckbox_default=FieldCheckbox_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$34=[`type`];var Input_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Input`,props:mergeModels({type:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>withDirectives((openBlock(),createElementBlock(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,type:props.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,_hoisted_1$34)),[[vModelDynamic,modelValue.value]])}}),Input_default=Input_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$33={"max-w-full":``},_hoisted_2$24={flex:`~ col gap-4`},_hoisted_3$21={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$18={key:0,class:`text-red-500`},_hoisted_5$15={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},_hoisted_6$14=[`type`,`placeholder`];var FieldInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldInput`,props:mergeModels({label:{},description:{},placeholder:{},required:{type:Boolean},type:{},inputClass:{},singleLine:{type:Boolean,default:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$33,[createBaseVNode(`label`,_hoisted_2$24,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_3$21,[createTextVNode(toDisplayString(props.label)+` `,1),props.required===!1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_4$18,`*`))]),createBaseVNode(`div`,_hoisted_5$15,toDisplayString(props.description),1)]),_ctx.singleLine?(openBlock(),createBlock(Input_default,{key:0,modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,type:props.type,placeholder:props.placeholder,class:normalizeClass(props.inputClass)},null,8,[`modelValue`,`type`,`placeholder`,`class`])):withDirectives((openBlock(),createElementBlock(`textarea`,{key:1,"onUpdate:modelValue":_cache$1[1]||=$event=>modelValue.value=$event,type:props.type,placeholder:props.placeholder,class:normalizeClass(props.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,_hoisted_6$14)),[[vModelText,modelValue.value]])])]))}}),FieldInput_default=FieldInput_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$32={flex:`~ gap-2`};var InputKeyValue_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`InputKeyValue`,props:mergeModels({name:{},keyPlaceholder:{},valuePlaceholder:{}},{propertyKey:{required:!0},propertyKeyModifiers:{},propertyValue:{required:!0},propertyValueModifiers:{}}),emits:[`update:propertyKey`,`update:propertyValue`],setup(__props){let props=__props,key$1=useModel(__props,`propertyKey`),value$1=useModel(__props,`propertyValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$32,[createVNode(Input_default,{modelValue:key$1.value,"onUpdate:modelValue":_cache$1[0]||=$event=>key$1.value=$event,placeholder:props.keyPlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`]),createVNode(Input_default,{modelValue:value$1.value,"onUpdate:modelValue":_cache$1[1]||=$event=>value$1.value=$event,placeholder:props.valuePlaceholder,class:`w-1/2`},null,8,[`modelValue`,`placeholder`])]))}}),InputKeyValue_default=InputKeyValue_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$31={"max-w-full":``},_hoisted_2$23={flex:`~ col gap-2`},_hoisted_3$20={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$17={key:0,class:`text-red-500`},_hoisted_5$14={class:`text-xs text-neutral-500 dark:text-neutral-400`,"text-nowrap":``},_hoisted_6$13={flex:`~ col gap-2`},_hoisted_7$12=[`onClick`];var FieldKeyValues_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldKeyValues`,props:mergeModels({label:{},description:{},name:{},keyPlaceholder:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels([`remove`,`add`],[`update:modelValue`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,keyValues=useModel(__props,`modelValue`),inputKey=ref(``),inputValue=ref(``);return watch([inputKey,inputValue],()=>{emit$1(`add`,inputKey.value,inputValue.value)}),(_ctx,_cache$1)=>{let _directive_auto_animate=resolveDirective(`auto-animate`);return openBlock(),createElementBlock(`div`,_hoisted_1$31,[createBaseVNode(`label`,_hoisted_2$23,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_3$20,[createTextVNode(toDisplayString(props.label)+` `,1),props.required===!1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_4$17,`*`))]),createBaseVNode(`div`,_hoisted_5$14,toDisplayString(props.description),1)]),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_6$13,[(openBlock(!0),createElementBlock(Fragment,null,renderList(keyValues.value,(keyValue,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,"w-full":``,flex:``,"items-center":``,"gap-2":``},[createVNode(InputKeyValue_default,{"property-key":keyValue.key,"onUpdate:propertyKey":$event=>keyValue.key=$event,"property-value":keyValue.value,"onUpdate:propertyValue":$event=>keyValue.value=$event,"key-placeholder":props.keyPlaceholder,"value-placeholder":props.valuePlaceholder,"w-full":``},null,8,[`property-key`,`onUpdate:propertyKey`,`property-value`,`onUpdate:propertyValue`,`key-placeholder`,`value-placeholder`]),createBaseVNode(`button`,{onClick:$event=>emit$1(`remove`,index$1)},_cache$1[0]||=[createBaseVNode(`div`,{"i-solar:minus-circle-line-duotone":``,size:`6`},null,-1)],8,_hoisted_7$12)]))),128))])),[[_directive_auto_animate]])])])}}}),FieldKeyValues_default=FieldKeyValues_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$30=[`min`,`max`,`step`];var Range_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Range`,props:mergeModels({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(__props){let props=__props,modelValue=useModel(__props,`modelValue`),scaledMin=computed(()=>props.min*1e4),scaledMax=computed(()=>props.max*1e4),scaledStep=computed(()=>props.step*1e4),sliderRef=ref(),sliderValue=computed({get:()=>modelValue.value*1e4,set:value$1=>{modelValue.value=value$1/1e4,updateTrackColor()}});onMounted(()=>{updateTrackColor()});function updateTrackColor(){sliderRef.value&&(sliderRef.value.style.setProperty(`--value`,sliderRef.value.value),sliderRef.value.style.setProperty(`--min`,sliderRef.value.min?sliderRef.value.min:props.min.toString()),sliderRef.value.style.setProperty(`--max`,sliderRef.value.max?sliderRef.value.max:props.max.toString()))}function handleInput(e$3){let target$1=e$3.target;target$1.style.setProperty(`--value`,target$1.value)}return(_ctx,_cache$1)=>withDirectives((openBlock(),createElementBlock(`input`,{ref_key:`sliderRef`,ref:sliderRef,"onUpdate:modelValue":_cache$1[0]||=$event=>sliderValue.value=$event,type:`range`,min:scaledMin.value,max:scaledMax.value,step:scaledStep.value,class:`slider-progress form_input-range`,onInput:handleInput},null,40,_hoisted_1$30)),[[vModelText,sliderValue.value,void 0,{number:!0}]])}}),__plugin_vue_export_helper_default=(sfc,props)=>{let target$1=sfc.__vccOpts||sfc;for(let[key$1,val]of props)target$1[key$1]=val;return target$1},Range_default=__plugin_vue_export_helper_default(Range_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-8956898c`]]);const _hoisted_1$29={flex:`~ col gap-4`},_hoisted_2$22={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_3$19={flex:`1`},_hoisted_4$16={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_5$13={class:`text-xs text-neutral-500 dark:text-neutral-400`},_hoisted_6$12={"font-mono":``},_hoisted_7$11={flex:`~ row`,"items-center":``,"gap-2":``};var FieldRange_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldRange`,props:mergeModels({min:{},max:{},step:{},label:{},description:{},formatValue:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>{var _props$formatValue;return openBlock(),createElementBlock(`label`,_hoisted_1$29,[createBaseVNode(`div`,_hoisted_2$22,[createBaseVNode(`div`,_hoisted_3$19,[createBaseVNode(`div`,_hoisted_4$16,toDisplayString(_ctx.label),1),createBaseVNode(`div`,_hoisted_5$13,toDisplayString(_ctx.description),1)]),createBaseVNode(`span`,_hoisted_6$12,toDisplayString((_props$formatValue=props.formatValue)?.call(props,modelValue.value)||modelValue.value),1)]),createBaseVNode(`div`,_hoisted_7$11,[createVNode(Range_default,{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,min:_ctx.min||0,max:_ctx.max||1,step:_ctx.step||.01,"w-full":``},null,8,[`modelValue`,`min`,`max`,`step`])])])}}}),FieldRange_default=FieldRange_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$28={flex:`~ col gap-4`},_hoisted_2$21={flex:`1`},_hoisted_3$18={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$15={class:`text-xs text-neutral-500 dark:text-neutral-400`};var FieldSelect_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldSelect`,props:mergeModels({label:{},description:{},options:{},placeholder:{},disabled:{type:Boolean},layout:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,_hoisted_1$28,[createBaseVNode(`div`,{class:normalizeClass([props.layout===`horizontal`?`flex flex-row items-center justify-between gap-2`:`flex flex-col items-start justify-center gap-2`])},[createBaseVNode(`div`,_hoisted_2$21,[createBaseVNode(`div`,_hoisted_3$18,toDisplayString(props.label),1),createBaseVNode(`div`,_hoisted_4$15,toDisplayString(props.description),1)]),renderSlot(_ctx.$slots,`default`,{},()=>[createVNode(unref(Select_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,options:props.options,placeholder:props.placeholder,disabled:props.disabled,title:_ctx.label},{default:withCtx(({value:value$1})=>{var _props$options;return[createTextVNode(toDisplayString(((_props$options=props.options)==null||(_props$options=_props$options.find(option$1=>option$1.value===value$1))==null?void 0:_props$options.label)||props.placeholder),1)]}),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`,`title`])])],2)]))}}),FieldSelect_default=FieldSelect_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$27={class:`max-w-full`},_hoisted_2$20={class:`flex flex-col gap-2`},_hoisted_3$17={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_4$14={key:0,class:`text-red-500`},_hoisted_5$12={class:`text-nowrap text-xs text-neutral-500 dark:text-neutral-400`},_hoisted_6$11={class:`~ col gap-2`},_hoisted_7$10=[`onClick`];var FieldValues_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FieldValues`,props:mergeModels({label:{},description:{},name:{},valuePlaceholder:{},required:{type:Boolean},inputClass:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels([`remove`,`add`],[`update:modelValue`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,items=useModel(__props,`modelValue`);function addItem(){items.value.push(``),emit$1(`add`)}function removeItem(index$1){items.value.splice(index$1,1),emit$1(`remove`,index$1)}return(_ctx,_cache$1)=>{let _directive_auto_animate=resolveDirective(`auto-animate`);return openBlock(),createElementBlock(`div`,_hoisted_1$27,[createBaseVNode(`label`,_hoisted_2$20,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_3$17,[createTextVNode(toDisplayString(props.label)+` `,1),props.required===!1?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_4$14,`*`))]),createBaseVNode(`div`,_hoisted_5$12,toDisplayString(props.description),1)]),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_6$11,[(openBlock(!0),createElementBlock(Fragment,null,renderList(items.value,(_$2,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,class:`w-full flex items-center gap-2`},[createVNode(Input_default,{modelValue:items.value[index$1],"onUpdate:modelValue":$event=>items.value[index$1]=$event,placeholder:props.valuePlaceholder,class:`w-90%`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),createBaseVNode(`button`,{"i-solar:minus-circle-line-duotone":``,size:`6`,class:`min-w-20px w-10% flex text-red-500`,onClick:$event=>removeItem(index$1)},null,8,_hoisted_7$10)]))),128)),createBaseVNode(`div`,{"i-solar:add-circle-line-duotone":``,size:`6`,class:`mt-2 w-4/5 text-blue-500`,onClick:addItem})])),[[_directive_auto_animate]])])])}}}),FieldValues_default=FieldValues_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$26=[`disabled`];var ColorHueRange_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ColorHueRange`,props:mergeModels({disabled:{type:Boolean},class:{}},{colorValue:{type:String,default:``},colorValueModifiers:{}}),emits:[`update:colorValue`],setup(__props){let props=__props,colorValue=useModel(__props,`colorValue`);return(_ctx,_cache$1)=>withDirectives((openBlock(),createElementBlock(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>colorValue.value=$event,type:`range`,min:`0`,max:`360`,step:`0.01`,class:normalizeClass([`color-hue-range`,[props.disabled?`opacity-25 cursor-not-allowed`:`cursor-pointer`,props.class||``]]),transition:`all ease-in-out duration-250`,disabled:props.disabled},null,10,_hoisted_1$26)),[[vModelText,colorValue.value]])}}),ColorHueRange_default=__plugin_vue_export_helper_default(ColorHueRange_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-49fc55e8`]]),Option_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Option`,props:{value:{},label:{},active:{type:Boolean}},setup(__props){let props=__props,selectOption=inject(`selectOption`),hide$1=inject(`hide`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,mergeProps({..._ctx.$attrs,class:null,style:null},{class:[`cursor-pointer rounded px-2 py-1 text-neutral-700 hover:bg-neutral-100 dark:text-neutral-200 dark:hover:bg-neutral-800`,{"bg-neutral-100 dark:bg-neutral-800":props.active}],"line-clamp-1":``,"overflow-hidden":``,"text-ellipsis":``,"whitespace-pre-wrap":``,"text-xs":``,"transition-colors":``,"duration-150":``,"ease-in-out":``,"will-change-background-color":``,"will-change-color":``,onClick:_cache$1[0]||=()=>{unref(selectOption)(props.value),unref(hide$1)()}}),[renderSlot(_ctx.$slots,`default`,{},()=>[createTextVNode(toDisplayString(props.label),1)])],16))}}),Option_default=Option_vue_vue_type_script_setup_true_lang_default;function n$1(t){var e$3;return(e$3=t.ownerDocument)?.defaultView||window}function o(t){return n$1(t).getComputedStyle(t)}const i=Math.min,r=Math.max,l=Math.round;function c$1(t){let e$3=o(t),n$2=parseFloat(e$3.width),i$1=parseFloat(e$3.height),r$2=t.offsetWidth,c$4=t.offsetHeight,s$1=l(n$2)!==r$2||l(i$1)!==c$4;return s$1&&(n$2=r$2,i$1=c$4),{width:n$2,height:i$1,fallback:s$1}}function s(t){return h$2(t)?(t.nodeName||``).toLowerCase():``}let f;function u(){if(f)return f;let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(f=t.brands.map(t$1=>t$1.brand+`/`+t$1.version).join(` `),f):navigator.userAgent}function a(t){return t instanceof n$1(t).HTMLElement}function d$1(t){return t instanceof n$1(t).Element}function h$2(t){return t instanceof n$1(t).Node}function p(t){return typeof ShadowRoot>`u`?!1:t instanceof n$1(t).ShadowRoot||t instanceof ShadowRoot}function g$1(t){let{overflow:e$3,overflowX:n$2,overflowY:i$1,display:r$2}=o(t);return/auto|scroll|overlay|hidden|clip/.test(e$3+i$1+n$2)&&![`inline`,`contents`].includes(r$2)}function m$1(t){return[`table`,`td`,`th`].includes(s(t))}function y$1(t){let e$3=/firefox/i.test(u()),n$2=o(t),i$1=n$2.backdropFilter||n$2.WebkitBackdropFilter;return n$2.transform!==`none`||n$2.perspective!==`none`||!!i$1&&i$1!==`none`||e$3&&n$2.willChange===`filter`||e$3&&!!n$2.filter&&n$2.filter!==`none`||[`transform`,`perspective`].some(t$1=>n$2.willChange.includes(t$1))||[`paint`,`layout`,`strict`,`content`].some(t$1=>{let e$4=n$2.contain;return e$4!=null&&e$4.includes(t$1)})}function x$1(){return!/^((?!chrome|android).)*safari/i.test(u())}function w(t){return[`html`,`body`,`#document`].includes(s(t))}function v(t){return d$1(t)?t:t.contextElement}const b$1={x:1,y:1};function L(t){let e$3=v(t);if(!a(e$3))return b$1;let n$2=e$3.getBoundingClientRect(),{width:o$1,height:i$1,fallback:r$2}=c$1(e$3),s$1=(r$2?l(n$2.width):n$2.width)/o$1,f$3=(r$2?l(n$2.height):n$2.height)/i$1;return s$1&&Number.isFinite(s$1)||(s$1=1),f$3&&Number.isFinite(f$3)||(f$3=1),{x:s$1,y:f$3}}function E$1(t,e$3,o$1,i$1){var r$2,l$1;e$3===void 0&&(e$3=!1),o$1===void 0&&(o$1=!1);let c$4=t.getBoundingClientRect(),s$1=v(t),f$3=b$1;e$3&&(i$1?d$1(i$1)&&(f$3=L(i$1)):f$3=L(t));let u$1=s$1?n$1(s$1):window,a$2=!x$1()&&o$1,h$3=(c$4.left+(a$2&&(r$2=u$1.visualViewport)?.offsetLeft||0))/f$3.x,p$5=(c$4.top+(a$2&&(l$1=u$1.visualViewport)?.offsetTop||0))/f$3.y,g$2=c$4.width/f$3.x,m$2=c$4.height/f$3.y;if(s$1){let t$1=n$1(s$1),e$4=i$1&&d$1(i$1)?n$1(i$1):i$1,o$2=t$1.frameElement;for(;o$2&&i$1&&e$4!==t$1;){let t$2=L(o$2),e$5=o$2.getBoundingClientRect(),i$2=getComputedStyle(o$2);e$5.x+=(o$2.clientLeft+parseFloat(i$2.paddingLeft))*t$2.x,e$5.y+=(o$2.clientTop+parseFloat(i$2.paddingTop))*t$2.y,h$3*=t$2.x,p$5*=t$2.y,g$2*=t$2.x,m$2*=t$2.y,h$3+=e$5.x,p$5+=e$5.y,o$2=n$1(o$2).frameElement}}return{width:g$2,height:m$2,top:p$5,right:h$3+g$2,bottom:p$5+m$2,left:h$3,x:h$3,y:p$5}}function R(t){return((h$2(t)?t.ownerDocument:t.document)||window.document).documentElement}function T(t){return d$1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function C$1(t){return E$1(R(t)).left+T(t).scrollLeft}function F(t){if(s(t)===`html`)return t;let e$3=t.assignedSlot||t.parentNode||p(t)&&t.host||R(t);return p(e$3)?e$3.host:e$3}function W(t){let e$3=F(t);return w(e$3)?e$3.ownerDocument.body:a(e$3)&&g$1(e$3)?e$3:W(e$3)}function D(t,e$3){var o$1;e$3===void 0&&(e$3=[]);let i$1=W(t),r$2=i$1===(o$1=t.ownerDocument)?.body,l$1=n$1(i$1);return r$2?e$3.concat(l$1,l$1.visualViewport||[],g$1(i$1)?i$1:[]):e$3.concat(i$1,D(i$1))}function S$1(e$3,i$1,l$1){return i$1===`viewport`?rectToClientRect(function(t,e$4){let o$1=n$1(t),i$2=R(t),r$2=o$1.visualViewport,l$2=i$2.clientWidth,c$4=i$2.clientHeight,s$1=0,f$3=0;if(r$2){l$2=r$2.width,c$4=r$2.height;let t$1=x$1();(t$1||!t$1&&e$4===`fixed`)&&(s$1=r$2.offsetLeft,f$3=r$2.offsetTop)}return{width:l$2,height:c$4,x:s$1,y:f$3}}(e$3,l$1)):d$1(i$1)?rectToClientRect(function(t,e$4){let n$2=E$1(t,!0,e$4===`fixed`),o$1=n$2.top+t.clientTop,i$2=n$2.left+t.clientLeft,r$2=a(t)?L(t):{x:1,y:1};return{width:t.clientWidth*r$2.x,height:t.clientHeight*r$2.y,x:i$2*r$2.x,y:o$1*r$2.y}}(i$1,l$1)):rectToClientRect(function(t){let e$4=R(t),n$2=T(t),i$2=t.ownerDocument.body,l$2=r(e$4.scrollWidth,e$4.clientWidth,i$2.scrollWidth,i$2.clientWidth),c$4=r(e$4.scrollHeight,e$4.clientHeight,i$2.scrollHeight,i$2.clientHeight),s$1=-n$2.scrollLeft+C$1(t),f$3=-n$2.scrollTop;return o(i$2).direction===`rtl`&&(s$1+=r(e$4.clientWidth,i$2.clientWidth)-l$2),{width:l$2,height:c$4,x:s$1,y:f$3}}(R(e$3)))}function A(t){return a(t)&&o(t).position!==`fixed`?t.offsetParent:null}function H$1(t){let e$3=n$1(t),i$1=A(t);for(;i$1&&m$1(i$1)&&o(i$1).position===`static`;)i$1=A(i$1);return i$1&&(s(i$1)===`html`||s(i$1)===`body`&&o(i$1).position===`static`&&!y$1(i$1))?e$3:i$1||function(t$1){let e$4=F(t$1);for(;a(e$4)&&!w(e$4);){if(y$1(e$4))return e$4;e$4=F(e$4)}return null}(t)||e$3}function O(t,e$3,n$2){let o$1=a(e$3),i$1=R(e$3),r$2=E$1(t,!0,n$2===`fixed`,e$3),l$1={scrollLeft:0,scrollTop:0},c$4={x:0,y:0};if(o$1||!o$1&&n$2!==`fixed`)if((s(e$3)!==`body`||g$1(i$1))&&(l$1=T(e$3)),a(e$3)){let t$1=E$1(e$3,!0);c$4.x=t$1.x+e$3.clientLeft,c$4.y=t$1.y+e$3.clientTop}else i$1&&(c$4.x=C$1(i$1));return{x:r$2.left+l$1.scrollLeft-c$4.x,y:r$2.top+l$1.scrollTop-c$4.y,width:r$2.width,height:r$2.height}}const P={getClippingRect:function(t){let{element:e$3,boundary:n$2,rootBoundary:l$1,strategy:c$4}=t,f$3=n$2===`clippingAncestors`?function(t$1,e$4){let n$3=e$4.get(t$1);if(n$3)return n$3;let i$1=D(t$1).filter(t$2=>d$1(t$2)&&s(t$2)!==`body`),r$2=null,l$2=o(t$1).position===`fixed`,c$5=l$2?F(t$1):t$1;for(;d$1(c$5)&&!w(c$5);){let t$2=o(c$5),e$5=y$1(c$5);(l$2?e$5||r$2:e$5||t$2.position!==`static`||!r$2||![`absolute`,`fixed`].includes(r$2.position))?r$2=t$2:i$1=i$1.filter(t$3=>t$3!==c$5),c$5=F(c$5)}return e$4.set(t$1,i$1),i$1}(e$3,this._c):[].concat(n$2),u$1=[...f$3,l$1],a$2=u$1[0],h$3=u$1.reduce((t$1,n$3)=>{let o$1=S$1(e$3,n$3,c$4);return t$1.top=r(o$1.top,t$1.top),t$1.right=i(o$1.right,t$1.right),t$1.bottom=i(o$1.bottom,t$1.bottom),t$1.left=r(o$1.left,t$1.left),t$1},S$1(e$3,a$2,c$4));return{width:h$3.right-h$3.left,height:h$3.bottom-h$3.top,x:h$3.left,y:h$3.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e$3,offsetParent:n$2,strategy:o$1}=t,i$1=a(n$2),r$2=R(n$2);if(n$2===r$2)return e$3;let l$1={scrollLeft:0,scrollTop:0},c$4={x:1,y:1},f$3={x:0,y:0};if((i$1||!i$1&&o$1!==`fixed`)&&((s(n$2)!==`body`||g$1(r$2))&&(l$1=T(n$2)),a(n$2))){let t$1=E$1(n$2);c$4=L(n$2),f$3.x=t$1.x+n$2.clientLeft,f$3.y=t$1.y+n$2.clientTop}return{width:e$3.width*c$4.x,height:e$3.height*c$4.y,x:e$3.x*c$4.x-l$1.scrollLeft*c$4.x+f$3.x,y:e$3.y*c$4.y-l$1.scrollTop*c$4.y+f$3.y}},isElement:d$1,getDimensions:function(t){return a(t)?c$1(t):t.getBoundingClientRect()},getOffsetParent:H$1,getDocumentElement:R,getScale:L,async getElementRects(t){let{reference:e$3,floating:n$2,strategy:o$1}=t,i$1=this.getOffsetParent||H$1,r$2=this.getDimensions;return{reference:O(e$3,await i$1(n$2),o$1),floating:{x:0,y:0,...await r$2(n$2)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>o(t).direction===`rtl`},B=(t,n$2,o$1)=>{let i$1=new Map,r$2={platform:P,...o$1},l$1={...r$2.platform,_c:i$1};return computePosition(t,n$2,{...r$2,platform:l$1})},h$1={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e$3=>[...e$3,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function S(e$3,t){let o$1=h$1.themes[e$3]||{},i$1;do i$1=o$1[t],typeof i$1>`u`?o$1.$extend?o$1=h$1.themes[o$1.$extend]||{}:(o$1=null,i$1=h$1[t]):o$1=null;while(o$1);return i$1}function Ze(e$3){let t=[e$3],o$1=h$1.themes[e$3]||{};do o$1.$extend&&!o$1.$resetCss?(t.push(o$1.$extend),o$1=h$1.themes[o$1.$extend]||{}):o$1=null;while(o$1);return t.map(i$1=>`v-popper--theme-${i$1}`)}function re(e$3){let t=[e$3],o$1=h$1.themes[e$3]||{};do o$1.$extend?(t.push(o$1.$extend),o$1=h$1.themes[o$1.$extend]||{}):o$1=null;while(o$1);return t}let $=!1;if(typeof window<`u`){$=!1;try{let e$3=Object.defineProperty({},`passive`,{get(){$=!0}});window.addEventListener(`test`,null,e$3)}catch{}}let _e=!1;typeof window<`u`&&typeof navigator<`u`&&(_e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Te=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e$3,t)=>e$3.concat([t,`${t}-start`,`${t}-end`]),[]),pe={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},ae={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function de(e$3,t){let o$1=e$3.indexOf(t);o$1!==-1&&e$3.splice(o$1,1)}function G(){return new Promise(e$3=>requestAnimationFrame(()=>{requestAnimationFrame(e$3)}))}const d=[];let g=null;const le={};function he(e$3){let t=le[e$3];return t||=le[e$3]=[],t}let Y=function(){};typeof window<`u`&&(Y=window.Element);function n(e$3){return function(t){return S(t.theme,e$3)}}const q=`__floating-vue__popper`,Q=()=>defineComponent({name:`VPopper`,provide(){return{[q]:{parentPopper:this}}},inject:{[q]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:n(`disabled`)},positioningDisabled:{type:Boolean,default:n(`positioningDisabled`)},placement:{type:String,default:n(`placement`),validator:e$3=>Te.includes(e$3)},delay:{type:[String,Number,Object],default:n(`delay`)},distance:{type:[Number,String],default:n(`distance`)},skidding:{type:[Number,String],default:n(`skidding`)},triggers:{type:Array,default:n(`triggers`)},showTriggers:{type:[Array,Function],default:n(`showTriggers`)},hideTriggers:{type:[Array,Function],default:n(`hideTriggers`)},popperTriggers:{type:Array,default:n(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:n(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:n(`popperHideTriggers`)},container:{type:[String,Object,Y,Boolean],default:n(`container`)},boundary:{type:[String,Y],default:n(`boundary`)},strategy:{type:String,validator:e$3=>[`absolute`,`fixed`].includes(e$3),default:n(`strategy`)},autoHide:{type:[Boolean,Function],default:n(`autoHide`)},handleResize:{type:Boolean,default:n(`handleResize`)},instantMove:{type:Boolean,default:n(`instantMove`)},eagerMount:{type:Boolean,default:n(`eagerMount`)},popperClass:{type:[String,Array,Object],default:n(`popperClass`)},computeTransformOrigin:{type:Boolean,default:n(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:n(`autoMinSize`)},autoSize:{type:[Boolean,String],default:n(`autoSize`)},autoMaxSize:{type:Boolean,default:n(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:n(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:n(`preventOverflow`)},overflowPadding:{type:[Number,String],default:n(`overflowPadding`)},arrowPadding:{type:[Number,String],default:n(`arrowPadding`)},arrowOverflow:{type:Boolean,default:n(`arrowOverflow`)},flip:{type:Boolean,default:n(`flip`)},shift:{type:Boolean,default:n(`shift`)},shiftCrossAxis:{type:Boolean,default:n(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:n(`noAutoFocus`)},disposeTimeout:{type:Number,default:n(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e$3=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e$3=>e$3.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e$3;return(e$3=this[q])?.parentPopper},hasPopperShowTriggerHover(){var e$3,t;return(e$3=this.popperTriggers)?.includes(`hover`)||(t=this.popperShowTriggers)?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e$3){e$3?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e$3,t)=>(e$3[t]=`$_computePosition`,e$3),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e$3=null,skipDelay:t=!1,force:o$1=!1}={}){var i$1,s$1;(i$1=this.parentPopper)!=null&&i$1.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(o$1||!this.disabled)&&((s$1=this.parentPopper)?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e$3,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e$3=null,skipDelay:t=!1}={}){var o$1;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}(o$1=this.parentPopper)?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e$3,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){var e$3;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(e$3=this.referenceNode)?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e$3={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e$3.middleware.push(offset({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e$3.middleware.push(autoPlacement({alignment:this.placement.split(`-`)[1]??``})):e$3.placement=this.placement,this.preventOverflow&&(this.shift&&e$3.middleware.push(shift({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e$3.middleware.push(flip({padding:this.overflowPadding,boundary:this.boundary}))),e$3.middleware.push(arrow({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e$3.middleware.push({name:`arrowOverflow`,fn:({placement:i$1,rects:s$1,middlewareData:r$2})=>{let p$5,{centerOffset:a$2}=r$2.arrow;return p$5=i$1.startsWith(`top`)||i$1.startsWith(`bottom`)?Math.abs(a$2)>s$1.reference.width/2:Math.abs(a$2)>s$1.reference.height/2,{data:{overflow:p$5}}}}),this.autoMinSize||this.autoSize){let i$1=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e$3.middleware.push({name:`autoSize`,fn:({rects:s$1,placement:r$2,middlewareData:p$5})=>{var u$1;if((u$1=p$5.autoSize)!=null&&u$1.skip)return{};let a$2,l$1;return r$2.startsWith(`top`)||r$2.startsWith(`bottom`)?a$2=s$1.reference.width:l$1=s$1.reference.height,this.$_innerNode.style[i$1===`min`?`minWidth`:i$1===`max`?`maxWidth`:`width`]=a$2==null?null:`${a$2}px`,this.$_innerNode.style[i$1===`min`?`minHeight`:i$1===`max`?`maxHeight`:`height`]=l$1==null?null:`${l$1}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e$3.middleware.push(size({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i$1,availableHeight:s$1})=>{this.$_innerNode.style.maxWidth=i$1==null?null:`${i$1}px`,this.$_innerNode.style.maxHeight=s$1==null?null:`${s$1}px`}})));let o$1=await B(this.$_referenceNode,this.$_popperNode,e$3);Object.assign(this.result,{x:o$1.x,y:o$1.y,placement:o$1.placement,strategy:o$1.strategy,arrow:{...o$1.middlewareData.arrow,...o$1.middlewareData.arrowOverflow}})},$_scheduleShow(e$3,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),g&&this.instantMove&&g.instantMove&&g!==this.parentPopper){g.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e$3,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(g=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e$3){let t=this.delay;return parseInt(t&&t[e$3]||t||0)},async $_applyShow(e$3=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e$3,!this.isShown&&(this.$_ensureTeleport(),await G(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...D(this.$_referenceNode),...D(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let t=this.$_referenceNode.getBoundingClientRect(),o$1=this.$_popperNode.querySelector(`.v-popper__wrapper`),i$1=o$1.parentNode.getBoundingClientRect(),s$1=t.x+t.width/2-(i$1.left+o$1.offsetLeft),r$2=t.y+t.height/2-(i$1.top+o$1.offsetTop);this.result.transformOrigin=`${s$1}px ${r$2}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e$3=this.showGroup;if(e$3){let t;for(let o$1=0;o$10){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e$3,de(d,this),d.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let o$1 of re(this.theme)){let i$1=he(o$1);de(i$1,this),i$1.length===0&&document.body.classList.remove(`v-popper--some-open--${o$1}`)}g===this&&(g=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await G(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e$3=this.container;if(typeof e$3==`string`?e$3=window.document.querySelector(e$3):e$3===!1&&(e$3=this.$_targetNodes[0].parentNode),!e$3)throw Error(`No container for popover: `+this.container);e$3.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e$3=o$1=>{this.isShown&&!this.$_hideInProgress||(o$1.usedByTooltip=!0,!this.$_preventShow&&this.show({event:o$1}))};this.$_registerTriggerListeners(this.$_targetNodes,pe,this.triggers,this.showTriggers,e$3),this.$_registerTriggerListeners([this.$_popperNode],pe,this.popperTriggers,this.popperShowTriggers,e$3);let t=o$1=>{o$1.usedByTooltip||this.hide({event:o$1})};this.$_registerTriggerListeners(this.$_targetNodes,ae,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ae,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e$3,t,o$1){this.$_events.push({targetNodes:e$3,eventType:t,handler:o$1}),e$3.forEach(i$1=>i$1.addEventListener(t,o$1,$?{passive:!0}:void 0))},$_registerTriggerListeners(e$3,t,o$1,i$1,s$1){let r$2=o$1;i$1!=null&&(r$2=typeof i$1==`function`?i$1(r$2):i$1),r$2.forEach(p$5=>{let a$2=t[p$5];a$2&&this.$_registerEventListeners(e$3,a$2,s$1)})},$_removeEventListeners(e$3){let t=[];this.$_events.forEach(o$1=>{let{targetNodes:i$1,eventType:s$1,handler:r$2}=o$1;!e$3||e$3===s$1?i$1.forEach(p$5=>p$5.removeEventListener(s$1,r$2)):t.push(o$1)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e$3,t=!1){this.$_showFrameLocked||(this.hide({event:e$3}),e$3.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e$3,t){for(let o$1 of this.$_targetNodes){let i$1=o$1.getAttribute(e$3);i$1&&(o$1.removeAttribute(e$3),o$1.setAttribute(t,i$1))}},$_applyAttrsToTarget(e$3){for(let t of this.$_targetNodes)for(let o$1 in e$3){let i$1=e$3[o$1];i$1==null?t.removeAttribute(o$1):t.setAttribute(o$1,i$1)}},$_updateParentShownChildren(e$3){let t=this.parentPopper;for(;t;)e$3?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e$3=this.$_referenceNode.getBoundingClientRect();if(y>=e$3.left&&y<=e$3.right&&_>=e$3.top&&_<=e$3.bottom){let t=this.$_popperNode.getBoundingClientRect(),o$1=y-c,i$1=_-m,r$2=t.left+t.width/2-c+(t.top+t.height/2)-m+t.width+t.height,p$5=c+o$1*r$2,a$2=m+i$1*r$2;return C(c,m,p$5,a$2,t.left,t.top,t.left,t.bottom)||C(c,m,p$5,a$2,t.left,t.top,t.right,t.top)||C(c,m,p$5,a$2,t.right,t.top,t.right,t.bottom)||C(c,m,p$5,a$2,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(_e){let e$3=$?{passive:!0,capture:!0}:!0;document.addEventListener(`touchstart`,t=>ue(t,!0),e$3),document.addEventListener(`touchend`,t=>fe(t,!0),e$3)}else window.addEventListener(`mousedown`,e$3=>ue(e$3,!1),!0),window.addEventListener(`click`,e$3=>fe(e$3,!1),!0);window.addEventListener(`resize`,tt)}function ue(e$3,t){if(h$1.autoHideOnMousedown)Pe(e$3,t);else for(let o$1=0;o$1=0;i$1--){let s$1=d[i$1];try{let r$2=s$1.containsGlobalTarget=s$1.mouseDownContains||s$1.popperNode().contains(e$3.target);s$1.pendingHide=!1,requestAnimationFrame(()=>{if(s$1.pendingHide=!1,!o$1[s$1.randomId]&&ce(s$1,r$2,e$3)){if(s$1.$_handleGlobalClose(e$3,t),!e$3.closeAllPopover&&e$3.closePopover&&r$2){let a$2=s$1.parentPopper;for(;a$2;)o$1[a$2.randomId]=!0,a$2=a$2.parentPopper;return}let p$5=s$1.parentPopper;for(;p$5&&ce(p$5,p$5.containsGlobalTarget,e$3);)p$5.$_handleGlobalClose(e$3,t),p$5=p$5.parentPopper}})}catch{}}}function ce(e$3,t,o$1){return o$1.closeAllPopover||o$1.closePopover&&t||et(e$3,o$1)&&!t}function et(e$3,t){if(typeof e$3.autoHide==`function`){let o$1=e$3.autoHide(t);return e$3.lastAutoHide=o$1,o$1}return e$3.autoHide}function tt(){for(let e$3=0;e$3{c=y,m=_,y=e$3.clientX,_=e$3.clientY},$?{passive:!0}:void 0);function C(e$3,t,o$1,i$1,s$1,r$2,p$5,a$2){let l$1=((p$5-s$1)*(t-r$2)-(a$2-r$2)*(e$3-s$1))/((a$2-r$2)*(o$1-e$3)-(p$5-s$1)*(i$1-t)),u$1=((o$1-e$3)*(t-r$2)-(i$1-t)*(e$3-s$1))/((a$2-r$2)*(o$1-e$3)-(p$5-s$1)*(i$1-t));return l$1>=0&&l$1<=1&&u$1>=0&&u$1<=1}const ot={extends:Q()},B$1=(e$3,t)=>{let o$1=e$3.__vccOpts||e$3;for(let[i$1,s$1]of t)o$1[i$1]=s$1;return o$1};function it(e$3,t,o$1,i$1,s$1,r$2){return openBlock(),createElementBlock(`div`,{ref:`reference`,class:normalizeClass([`v-popper`,{"v-popper--shown":e$3.slotData.isShown}])},[renderSlot(e$3.$slots,`default`,normalizeProps(guardReactiveProps(e$3.slotData)))],2)}const st=B$1(ot,[[`render`,it]]);function nt(){var e$3=window.navigator.userAgent,t=e$3.indexOf(`MSIE `);if(t>0)return parseInt(e$3.substring(t+5,e$3.indexOf(`.`,t)),10);var o$1=e$3.indexOf(`Trident/`);if(o$1>0){var i$1=e$3.indexOf(`rv:`);return parseInt(e$3.substring(i$1+3,e$3.indexOf(`.`,i$1)),10)}var s$1=e$3.indexOf(`Edge/`);return s$1>0?parseInt(e$3.substring(s$1+5,e$3.indexOf(`.`,s$1)),10):-1}let z;function X(){X.init||(X.init=!0,z=nt()!==-1)}var E={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){X(),nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e$3=document.createElement(`object`);this._resizeObject=e$3,e$3.setAttribute(`aria-hidden`,`true`),e$3.setAttribute(`tabindex`,-1),e$3.onload=this.addResizeHandlers,e$3.type=`text/html`,z&&this.$el.appendChild(e$3),e$3.data=`about:blank`,z||this.$el.appendChild(e$3)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!z&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rt=withScopeId(`data-v-b329ee4c`);pushScopeId(`data-v-b329ee4c`);const pt={class:`resize-observer`,tabindex:`-1`};popScopeId();const at=rt((e$3,t,o$1,i$1,s$1,r$2)=>(openBlock(),createBlock(`div`,pt)));E.render=at,E.__scopeId=`data-v-b329ee4c`,E.__file=`src/components/ResizeObserver.vue`;const Z=(e$3=`theme`)=>({computed:{themeClass(){return Ze(this[e$3])}}}),dt=defineComponent({name:`VPopperContent`,components:{ResizeObserver:E},mixins:[Z()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e$3){return e$3!=null&&!isNaN(e$3)?`${e$3}px`:null}}}),lt=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],ht={ref:`inner`,class:`v-popper__inner`},ut=createBaseVNode(`div`,{class:`v-popper__arrow-outer`},null,-1),ft=createBaseVNode(`div`,{class:`v-popper__arrow-inner`},null,-1),ct=[ut,ft];function mt(e$3,t,o$1,i$1,s$1,r$2){let p$5=resolveComponent(`ResizeObserver`);return openBlock(),createElementBlock(`div`,{id:e$3.popperId,ref:`popover`,class:normalizeClass([`v-popper__popper`,[e$3.themeClass,e$3.classes.popperClass,{"v-popper__popper--shown":e$3.shown,"v-popper__popper--hidden":!e$3.shown,"v-popper__popper--show-from":e$3.classes.showFrom,"v-popper__popper--show-to":e$3.classes.showTo,"v-popper__popper--hide-from":e$3.classes.hideFrom,"v-popper__popper--hide-to":e$3.classes.hideTo,"v-popper__popper--skip-transition":e$3.skipTransition,"v-popper__popper--arrow-overflow":e$3.result&&e$3.result.arrow.overflow,"v-popper__popper--no-positioning":!e$3.result}]]),style:normalizeStyle(e$3.result?{position:e$3.result.strategy,transform:`translate3d(${Math.round(e$3.result.x)}px,${Math.round(e$3.result.y)}px,0)`}:void 0),"aria-hidden":e$3.shown?`false`:`true`,tabindex:e$3.autoHide?0:void 0,"data-popper-placement":e$3.result?e$3.result.placement:void 0,onKeyup:t[2]||=withKeys(a$2=>e$3.autoHide&&e$3.$emit(`hide`),[`esc`])},[createBaseVNode(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=a$2=>e$3.autoHide&&e$3.$emit(`hide`)}),createBaseVNode(`div`,{class:`v-popper__wrapper`,style:normalizeStyle(e$3.result?{transformOrigin:e$3.result.transformOrigin}:void 0)},[createBaseVNode(`div`,ht,[e$3.mounted?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode(`div`,null,[renderSlot(e$3.$slots,`default`)]),e$3.handleResize?(openBlock(),createBlock(p$5,{key:0,onNotify:t[1]||=a$2=>e$3.$emit(`resize`,a$2)})):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0)],512),createBaseVNode(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:normalizeStyle(e$3.result?{left:e$3.toPx(e$3.result.arrow.x),top:e$3.toPx(e$3.result.arrow.y)}:void 0)},ct,4)],4)],46,lt)}const ee=B$1(dt,[[`render`,mt]]),te={methods:{show(...e$3){return this.$refs.popper.show(...e$3)},hide(...e$3){return this.$refs.popper.hide(...e$3)},dispose(...e$3){return this.$refs.popper.dispose(...e$3)},onResize(...e$3){return this.$refs.popper.onResize(...e$3)}}};let K=function(){};typeof window<`u`&&(K=window.Element);const gt=defineComponent({name:`VPopperWrapper`,components:{Popper:st,PopperContent:ee},mixins:[te,Z(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,K,Boolean],default:void 0},boundary:{type:[String,K],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e$3=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e$3=>e$3!==this.$refs.popperContent.$el)}}});function wt(e$3,t,o$1,i$1,s$1,r$2){let p$5=resolveComponent(`PopperContent`),a$2=resolveComponent(`Popper`);return openBlock(),createBlock(a$2,mergeProps({ref:`popper`},e$3.$props,{theme:e$3.finalTheme,"target-nodes":e$3.getTargetNodes,"popper-node":()=>e$3.$refs.popperContent.$el,class:[e$3.themeClass],onShow:t[0]||=()=>e$3.$emit(`show`),onHide:t[1]||=()=>e$3.$emit(`hide`),"onUpdate:shown":t[2]||=l$1=>e$3.$emit(`update:shown`,l$1),onApplyShow:t[3]||=()=>e$3.$emit(`apply-show`),onApplyHide:t[4]||=()=>e$3.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e$3.$emit(`close-group`),onCloseDirective:t[6]||=()=>e$3.$emit(`close-directive`),onAutoHide:t[7]||=()=>e$3.$emit(`auto-hide`),onResize:t[8]||=()=>e$3.$emit(`resize`)}),{default:withCtx(({popperId:l$1,isShown:u$1,shouldMountContent:L$1,skipTransition:D$1,autoHide:I,show:F$2,hide:v$1,handleResize:R$1,onResize:j$1,classes:V$1,result:Ee$2})=>[renderSlot(e$3.$slots,`default`,{shown:u$1,show:F$2,hide:v$1}),createVNode(p$5,{ref:`popperContent`,"popper-id":l$1,theme:e$3.finalTheme,shown:u$1,mounted:L$1,"skip-transition":D$1,"auto-hide":I,"handle-resize":R$1,classes:V$1,result:Ee$2,onHide:v$1,onResize:j$1},{default:withCtx(()=>[renderSlot(e$3.$slots,`popper`,{shown:u$1,hide:v$1})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}const k=B$1(gt,[[`render`,wt]]),Se={...k,name:`VDropdown`,vPopperTheme:`dropdown`},be={...k,name:`VMenu`,vPopperTheme:`menu`},Ce={...k,name:`VTooltip`,vPopperTheme:`tooltip`},$t=defineComponent({name:`VTooltipDirective`,components:{Popper:Q(),PopperContent:ee},mixins:[te],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e$3=>S(e$3.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e$3=>S(e$3.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e$3){if(typeof this.content==`function`&&this.$_isShown&&(e$3||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let t=++this.$_fetchId,o$1=this.content(this);o$1.then?o$1.then(i$1=>this.onResult(t,i$1)):this.onResult(t,o$1)}},onResult(e$3,t){e$3===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),vt=[`innerHTML`],yt=[`textContent`];function _t(e$3,t,o$1,i$1,s$1,r$2){let p$5=resolveComponent(`PopperContent`),a$2=resolveComponent(`Popper`);return openBlock(),createBlock(a$2,mergeProps({ref:`popper`},e$3.$attrs,{theme:e$3.theme,"target-nodes":e$3.targetNodes,"popper-node":()=>e$3.$refs.popperContent.$el,onApplyShow:e$3.onShow,onApplyHide:e$3.onHide}),{default:withCtx(({popperId:l$1,isShown:u$1,shouldMountContent:L$1,skipTransition:D$1,autoHide:I,hide:F$2,handleResize:v$1,onResize:R$1,classes:j$1,result:V$1})=>[createVNode(p$5,{ref:`popperContent`,class:normalizeClass({"v-popper--tooltip-loading":e$3.loading}),"popper-id":l$1,theme:e$3.theme,shown:u$1,mounted:L$1,"skip-transition":D$1,"auto-hide":I,"handle-resize":v$1,classes:j$1,result:V$1,onHide:F$2,onResize:R$1},{default:withCtx(()=>[e$3.html?(openBlock(),createElementBlock(`div`,{key:0,innerHTML:e$3.finalContent},null,8,vt)):(openBlock(),createElementBlock(`div`,{key:1,textContent:toDisplayString(e$3.finalContent)},null,8,yt))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}const ze=B$1($t,[[`render`,_t]]),Ae=`v-popper--has-tooltip`;function Tt(e$3,t){let o$1=e$3.placement;if(!o$1&&t)for(let i$1 of Te)t[i$1]&&(o$1=i$1);return o$1||=S(e$3.theme||`tooltip`,`placement`),o$1}function Ne(e$3,t,o$1){let i$1,s$1=typeof t;return i$1=s$1===`string`?{content:t}:t&&s$1===`object`?t:{content:!1},i$1.placement=Tt(i$1,o$1),i$1.targetNodes=()=>[e$3],i$1.referenceNode=()=>e$3,i$1}let x,b,Pt=0;function St$1(){if(x)return;b=ref([]),x=createApp({name:`VTooltipDirectiveApp`,setup(){return{directives:b}},render(){return this.directives.map(t=>h(ze,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});let e$3=document.createElement(`div`);document.body.appendChild(e$3),x.mount(e$3)}function bt(e$3,t,o$1){St$1();let i$1=ref(Ne(e$3,t,o$1)),s$1=ref(!1),r$2={id:Pt++,options:i$1,shown:s$1};return b.value.push(r$2),e$3.classList&&e$3.classList.add(Ae),e$3.$_popper={options:i$1,item:r$2,show(){s$1.value=!0},hide(){s$1.value=!1}}}function He(e$3){if(e$3.$_popper){let t=b.value.indexOf(e$3.$_popper.item);t!==-1&&b.value.splice(t,1),delete e$3.$_popper,delete e$3.$_popperOldShown,delete e$3.$_popperMountTarget}e$3.classList&&e$3.classList.remove(Ae)}function me(e$3,{value:t,modifiers:o$1}){let i$1=Ne(e$3,t,o$1);if(!i$1.content||S(i$1.theme||`tooltip`,`disabled`))He(e$3);else{let s$1;e$3.$_popper?(s$1=e$3.$_popper,s$1.options.value=i$1):s$1=bt(e$3,t,o$1),typeof t.shown<`u`&&t.shown!==e$3.$_popperOldShown&&(e$3.$_popperOldShown=t.shown,t.shown?s$1.show():s$1.hide())}}const oe={beforeMount:me,updated:me,beforeUnmount(e$3){He(e$3)}};function ge(e$3){e$3.addEventListener(`mousedown`,H),e$3.addEventListener(`click`,H),e$3.addEventListener(`touchstart`,Oe,$?{passive:!0}:!1)}function we(e$3){e$3.removeEventListener(`mousedown`,H),e$3.removeEventListener(`click`,H),e$3.removeEventListener(`touchstart`,Oe),e$3.removeEventListener(`touchend`,Me),e$3.removeEventListener(`touchcancel`,Be)}function H(e$3){let t=e$3.currentTarget;e$3.closePopover=!t.$_vclosepopover_touch,e$3.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Oe(e$3){if(e$3.changedTouches.length===1){let t=e$3.currentTarget;t.$_vclosepopover_touch=!0;let o$1=e$3.changedTouches[0];t.$_vclosepopover_touchPoint=o$1,t.addEventListener(`touchend`,Me),t.addEventListener(`touchcancel`,Be)}}function Me(e$3){let t=e$3.currentTarget;if(t.$_vclosepopover_touch=!1,e$3.changedTouches.length===1){let o$1=e$3.changedTouches[0],i$1=t.$_vclosepopover_touchPoint;e$3.closePopover=Math.abs(o$1.screenY-i$1.screenY)<20&&Math.abs(o$1.screenX-i$1.screenX)<20,e$3.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Be(e$3){let t=e$3.currentTarget;t.$_vclosepopover_touch=!1}const ie={beforeMount(e$3,{value:t,modifiers:o$1}){e$3.$_closePopoverModifiers=o$1,(typeof t>`u`||t)&&ge(e$3)},updated(e$3,{value:t,oldValue:o$1,modifiers:i$1}){e$3.$_closePopoverModifiers=i$1,t!==o$1&&(typeof t>`u`||t?ge(e$3):we(e$3))},beforeUnmount(e$3){we(e$3)}},Ht=h$1,Ot=oe,Mt=oe,Bt$1=ie,Et=ie,kt=Se,Lt=be,Dt=Q,It=ee,Ft=te,Rt=k,jt=Z,Vt=Ce,Wt=ze,_hoisted_1$25={class:`flex-1 truncate`},_hoisted_2$19={class:`min-w-[160px] flex flex-col gap-0.5 border border-neutral-200 rounded-lg bg-white p-1 shadow-lg dark:border-neutral-800 dark:bg-neutral-900 dark:bg-neutral-900`};var Select_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Select`,props:mergeModels({options:{},placeholder:{},disabled:{type:Boolean},title:{},layout:{}},{modelValue:{required:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,show=ref(!1),modelValue=useModel(__props,`modelValue`);function selectOption(value$1){modelValue.value=value$1}function handleHide(){show.value=!1}return provide(`selectOption`,selectOption),provide(`hide`,handleHide),(_ctx,_cache$1)=>(openBlock(),createBlock(unref(kt),{"auto-size":``,"auto-boundary-max-size":``,"w-full":``},{popper:withCtx(({hide:hide$1})=>[createBaseVNode(`div`,_hoisted_2$19,[renderSlot(_ctx.$slots,`options`,{hide:hide$1},()=>[props.options&&props.options.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(props.options,option$1=>(openBlock(),createBlock(Option_default,{key:option$1.value,value:option$1.value,label:option$1.label,active:modelValue.value===option$1.value,onClick:$event=>{selectOption(option$1.value),hide$1()}},null,8,[`value`,`label`,`active`,`onClick`]))),128)):createCommentVNode(``,!0)])])]),default:withCtx(()=>[createBaseVNode(`div`,{"min-w":`[160px]`,p:`2.5`,"w-full":``,class:normalizeClass([`focus:ring-2 focus:ring-black/10`,[props.disabled?`pointer-events-none`:``]]),border:`~ 2 solid dark:neutral-800`,text:`xs dark:neutral-200 disabled:neutral-400 dark:disabled:neutral-600 neutral-700`,bg:`white dark:neutral-900 disabled:neutral-100 hover:neutral-50 dark:disabled:neutral-800 dark:hover:neutral-800 `,cursor:`disabled:not-allowed pointer`,flex:``,"items-center":``,"gap-2":``,"rounded-lg":``,"shadow-sm":``,"outline-none":``,"transition-colors":``,"duration-150":``,"ease-in-out":``},[createBaseVNode(`div`,_hoisted_1$25,[renderSlot(_ctx.$slots,`default`,{value:modelValue.value})]),_cache$1[0]||=createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``,class:`h-3.5 w-3.5 text-neutral-500 dark:text-neutral-400`},null,-1)],2)]),_:3}))}}),Select_default=Select_vue_vue_type_script_setup_true_lang_default,onboarding_default=`/assets/onboarding-NsdTpLwA.png`;const _hoisted_1$24={"z-1":``,"flex-1":``},_hoisted_2$18={"text-lg":``,"font-normal":``,class:`menu-icon-item-title`,transition:`all ease-in-out duration-400`},_hoisted_3$16={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-item-description`,transition:`all ease-in-out duration-400`};var IconItem_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`IconItem`,props:{title:{},description:{},icon:{},iconTemplate:{type:Boolean},to:{}},setup(__props){return(_ctx,_cache$1)=>{let _component_RouterLink=resolveComponent(`RouterLink`);return openBlock(),createBlock(_component_RouterLink,{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:_ctx.to},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$24,[createBaseVNode(`div`,_hoisted_2$18,toDisplayString(_ctx.title),1),createBaseVNode(`div`,_hoisted_3$16,[createBaseVNode(`span`,null,toDisplayString(_ctx.description),1)])]),typeof _ctx.icon==`string`?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`menu-icon-item-icon`,[_ctx.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)):createCommentVNode(``,!0),_ctx.iconTemplate?renderSlot(_ctx.$slots,`icon`,{key:1},void 0,!0):createCommentVNode(``,!0)]),_:3},8,[`to`])}}}),IconItem_default=__plugin_vue_export_helper_default(IconItem_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-d08788bb`]]);const _hoisted_1$23={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":``},_hoisted_2$17={"z-1":``,"flex-1":``},_hoisted_3$15={"text-lg":``,"font-normal":``,class:`menu-icon-status-item-title`,transition:`all ease-in-out duration-400`},_hoisted_4$13={text:`sm neutral-500 dark:neutral-400`,class:`menu-icon-status-item-description`,transition:`all ease-in-out duration-400`},_hoisted_5$11=[`src`],_hoisted_6$10={"p-2":``},_hoisted_7$9={key:0,"size-3":``,bg:`green-500 dark:green-600`,"rounded-full":``},_hoisted_8$7={key:1,"size-3":``,bg:`neutral-400 dark:neutral-500`,"rounded-full":``};var IconStatusItem_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`IconStatusItem`,props:{title:{},description:{},icon:{},iconColor:{},iconImage:{},to:{},configured:{type:Boolean}},setup(__props){let props=__props;return(_ctx,_cache$1)=>{let _component_RouterLink=resolveComponent(`RouterLink`);return openBlock(),createElementBlock(`div`,_hoisted_1$23,[createVNode(_component_RouterLink,{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:props.to},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_2$17,[createBaseVNode(`div`,_hoisted_3$15,toDisplayString(props.title),1),createBaseVNode(`div`,_hoisted_4$13,[createBaseVNode(`span`,null,toDisplayString(props.description||``),1)])]),props.icon?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`menu-icon-status-item-icon`,[props.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)):createCommentVNode(``,!0),props.iconColor?(openBlock(),createElementBlock(`div`,{key:1,class:normalizeClass([`menu-icon-status-item-icon-color`,[props.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)):createCommentVNode(``,!0),props.iconImage?(openBlock(),createElementBlock(`img`,{key:2,src:props.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,_hoisted_5$11)):createCommentVNode(``,!0)]),_:1},8,[`to`]),createBaseVNode(`div`,_hoisted_6$10,[props.configured?(openBlock(),createElementBlock(`div`,_hoisted_7$9)):(openBlock(),createElementBlock(`div`,_hoisted_8$7))])])}}}),IconStatusItem_default=__plugin_vue_export_helper_default(IconStatusItem_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-93a9757f`]]);const _hoisted_1$22=[`checked`,`name`,`value`],_hoisted_2$16={class:`relative mr-3 mt-0.5 flex-shrink-0`},_hoisted_3$14={class:`w-full flex flex-col gap-2`},_hoisted_4$12={class:`flex items-center`},_hoisted_5$10={key:0,class:`relative`},_hoisted_6$9=[`title`],_hoisted_7$8={key:1,class:`mt-2`};var RadioCardDetail_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RadioCardDetail`,props:mergeModels({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(__props){let modelValue=useModel(__props,`modelValue`),isExpanded=ref(!1);function toggleExpansion(){isExpanded.value=!isExpanded.value}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,{key:_ctx.id,class:normalizeClass([`form_radio-card-detail relative flex cursor-pointer items-start rounded-xl p-3 pr-[20px]`,[modelValue.value===_ctx.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`,modelValue.value===_ctx.value?`form_radio-card-detail-active`:``,_ctx.deprecated?`opacity-60`:``]]),transition:`all duration-200 ease-in-out`,border:`2 solid`},[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,checked:modelValue.value===_ctx.value,type:`radio`,name:_ctx.name,value:_ctx.value,class:`absolute opacity-0`},null,8,_hoisted_1$22),[[vModelRadio,modelValue.value]]),createBaseVNode(`div`,_hoisted_2$16,[createBaseVNode(`div`,{class:normalizeClass([`size-5 border-2 rounded-full transition-colors duration-200`,[modelValue.value===_ctx.value?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[createBaseVNode(`div`,{class:normalizeClass([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[modelValue.value===_ctx.value?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),createBaseVNode(`div`,_hoisted_3$14,[createBaseVNode(`div`,_hoisted_4$12,[createBaseVNode(`span`,{class:normalizeClass([`line-clamp-1 font-normal`,[modelValue.value===_ctx.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},toDisplayString(_ctx.title),3)]),_ctx.description?(openBlock(),createElementBlock(`div`,_hoisted_5$10,[createVNode(unref(TransitionVertical_default),null,{default:withCtx(()=>[!isExpanded.value||!_ctx.showExpandCollapse?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`line-clamp-2 cursor-pointer text-xs`,[modelValue.value===_ctx.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),title:_ctx.description,onClick:withModifiers(toggleExpansion,[`prevent`])},toDisplayString(_ctx.description),11,_hoisted_6$9)):(openBlock(),createElementBlock(`div`,{key:1,class:normalizeClass([`cursor-pointer text-xs`,[modelValue.value===_ctx.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]]),onClick:withModifiers(toggleExpansion,[`prevent`])},toDisplayString(_ctx.description),3))]),_:1}),_ctx.showExpandCollapse&&_ctx.description.length>_ctx.expandCollapseThreshold?(openBlock(),createElementBlock(`button`,{key:0,class:`mt-0.5 inline-flex items-center text-xs text-primary-500 dark:text-primary-600`,onClick:withModifiers(toggleExpansion,[`prevent`])},[createBaseVNode(`span`,null,toDisplayString(isExpanded.value?`Show less`:`Show more`),1),createBaseVNode(`div`,{class:normalizeClass([{"rotate-180":isExpanded.value},`transition-transform duration-200`])},_cache$1[2]||=[createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``,"ml-0.5":``,"text-xs":``},null,-1)],2)])):createCommentVNode(``,!0)])):createCommentVNode(``,!0),_ctx.showCustomInput&&modelValue.value===_ctx.value?(openBlock(),createElementBlock(`div`,_hoisted_7$8,[createVNode(unref(Input_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[1]||=$event=>modelValue.value=$event,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:_ctx.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0)])],2))}}),RadioCardDetail_default=__plugin_vue_export_helper_default(RadioCardDetail_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-fb6236db`]]);const _hoisted_1$21={class:`radio-card-detail-many-select`},_hoisted_2$15={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},_hoisted_3$13=[`placeholder`],_hoisted_4$11={class:`mt-4 space-y-2`},_hoisted_5$9={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},_hoisted_6$8={key:1,class:`flex items-center gap-3 border border-2 border-amber-200 rounded-xl bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},_hoisted_7$7={class:`flex flex-col`},_hoisted_8$6={class:`font-medium`},_hoisted_9$6={class:`text-sm text-amber-600 dark:text-amber-400`},_hoisted_10$6={class:`relative`};var RadioCardManySelect_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RadioCardManySelect`,props:mergeModels({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}},{modelValue:{required:!0},modelModifiers:{}}),emits:mergeModels([`update:customValue`],[`update:modelValue`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,modelValue=useModel(__props,`modelValue`),searchQuery=ref(``),isListExpanded=ref(!1),customValue=ref(``),filteredItems=computed(()=>{if(!searchQuery.value)return props.items;let query=searchQuery.value.toLowerCase();return props.items.filter(item=>item.name.toLowerCase().includes(query)||item.description&&item.description.toLowerCase().includes(query))});function updateCustomValue(value$1){customValue.value=value$1,emit$1(`update:customValue`,value$1)}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$21,[_ctx.searchable?(openBlock(),createElementBlock(`div`,_hoisted_2$15,[_cache$1[4]||=createBaseVNode(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[createBaseVNode(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>searchQuery.value=$event,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:_ctx.searchPlaceholder},null,8,_hoisted_3$13),[[vModelText,searchQuery.value]])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_4$11,[searchQuery.value?(openBlock(),createElementBlock(`div`,_hoisted_5$9,toDisplayString(_ctx.searchResultsText.replace(`{count}`,filteredItems.value.length.toString()).replace(`{total}`,_ctx.items.length.toString())),1)):createCommentVNode(``,!0),searchQuery.value&&filteredItems.value.length===0?(openBlock(),createElementBlock(`div`,_hoisted_6$8,[_cache$1[5]||=createBaseVNode(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),createBaseVNode(`div`,_hoisted_7$7,[createBaseVNode(`span`,_hoisted_8$6,toDisplayString(_ctx.searchNoResultsTitle),1),createBaseVNode(`span`,_hoisted_9$6,toDisplayString(_ctx.searchNoResultsDescription.replace(`{query}`,searchQuery.value)),1)])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_10$6,[createBaseVNode(`div`,{class:normalizeClass([`grid auto-cols-[350px] grid-flow-col max-h-[calc(100dvh-7lh)] gap-4 overflow-x-auto pb-4 scrollbar-none`,[isListExpanded.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(openBlock(!0),createElementBlock(Fragment,null,renderList(filteredItems.value,item=>(openBlock(),createBlock(RadioCardDetail_default,{id:item.id,key:item.id,modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[1]||=$event=>modelValue.value=$event,value:item.id,title:item.name,description:item.description,deprecated:item.deprecated,"show-expand-collapse":_ctx.showMore,"expand-collapse-threshold":100,"show-custom-input":item.customizable,"custom-input-value":customValue.value,"custom-input-placeholder":_ctx.customInputPlaceholder,name:`radio-card-detail-many-select`,class:`scroll-snap-align-start`,"onUpdate:customInputValue":_cache$1[2]||=$event=>updateCustomValue($event)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`deprecated`,`show-expand-collapse`,`show-custom-input`,`custom-input-value`,`custom-input-placeholder`]))),128))],2),createBaseVNode(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:normalizeClass([isListExpanded.value?`w-full`:`mt-4 w-full rounded-lg`])},[createBaseVNode(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:normalizeClass([isListExpanded.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:_cache$1[3]||=$event=>isListExpanded.value=!isListExpanded.value},[createBaseVNode(`span`,null,toDisplayString(isListExpanded.value?_ctx.collapseButtonText:_ctx.expandButtonText),1),createBaseVNode(`div`,{class:normalizeClass([isListExpanded.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),RadioCardManySelect_default=__plugin_vue_export_helper_default(RadioCardManySelect_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-98ce709a`]]);const _hoisted_1$20=[`checked`,`name`,`value`],_hoisted_2$14={flex:`~ col`,"min-h-16":``,"w-full":``,"items-start":``,"justify-center":``,"pb-2":``,"pl-5":``,"pr-4":``,"pt-2":``};var RadioCardSimple_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RadioCardSimple`,props:mergeModels({id:{},name:{},value:{},title:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,{key:_ctx.id,border:`2px solid`,class:normalizeClass([`form_radio-card-simple relative`,[modelValue.value===_ctx.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`,modelValue.value===_ctx.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":``},[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,checked:modelValue.value===_ctx.value,type:`radio`,name:_ctx.name,value:_ctx.value,class:`absolute opacity-0 [&:checked+div]:border-primary-500 [&:checked+div_.radio-dot]:opacity-100 dark:[&:checked+div]:border-primary-400`},null,8,_hoisted_1$20),[[vModelRadio,modelValue.value]]),_cache$1[1]||=createBaseVNode(`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`},[createBaseVNode(`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),createBaseVNode(`div`,_hoisted_2$14,[createBaseVNode(`span`,{class:normalizeClass([`radio-item-name font-normal`,[modelValue.value===_ctx.value?`text-neutral-700 dark:text-neutral-300`:`text-neutral-500 dark:text-neutral-500`]]),text:`md`,transition:`all duration-200 ease-in-out`},toDisplayString(_ctx.title),3),_ctx.description?(openBlock(),createElementBlock(`span`,{key:0,class:normalizeClass([`radio-item-description`,[modelValue.value===_ctx.value?`text-neutral-600 dark:text-neutral-400`:`text-neutral-400 dark:text-neutral-600`]]),transition:`all duration-200 ease-in-out`},toDisplayString(_ctx.description),3)):createCommentVNode(``,!0)]),_cache$1[2]||=createBaseVNode(`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))}}),RadioCardSimple_default=__plugin_vue_export_helper_default(RadioCardSimple_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-880ce73f`]]),AudioSpectrum_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`AudioSpectrum`,props:{stream:{},bars:{default:32},minFreq:{default:60},maxFreq:{default:4e3}},setup(__props){let props=__props,frequencies=ref(Array.from({length:props.bars}).fill(0));onMounted(()=>{handleAnalyze()}),watch(()=>props.stream,()=>{handleAnalyze()});function handleAnalyze(){if(!props.stream)return;let audioContext=new(window.AudioContext||window.webkitAudioContext),source=audioContext.createMediaStreamSource(props.stream),analyser=audioContext.createAnalyser();analyser.fftSize=2048,source.connect(analyser);let bufferLength=analyser.frequencyBinCount,dataArray=new Uint8Array(bufferLength),sampleRate=audioContext.sampleRate,frequencyResolution=sampleRate/analyser.fftSize,minBin=Math.floor(props.minFreq/frequencyResolution),maxBin=Math.floor(props.maxFreq/frequencyResolution),usableBins=maxBin-minBin,binsPerBar=Math.floor(usableBins/props.bars),analyze=()=>{try{requestAnimationFrame(analyze),analyser.getByteFrequencyData(dataArray);let bars=Array.from({length:props.bars}).fill(0);for(let i$1=0;i$1renderSlot(_ctx.$slots,`default`,{frequencies:frequencies.value})}}),AudioSpectrum_default=AudioSpectrum_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$19={"h-full":``,flex:``,"items-center":``,"gap-1":``},AMPLIFICATION=5;var AudioSpectrumVisualizer_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`AudioSpectrumVisualizer`,props:{frequencies:{},barsClass:{}},setup(__props){let props=__props;function getReductionFactor(index$1,totalBars){let minFactor=.1,maxFactor=1;return minFactor+(maxFactor-minFactor)*(index$1/totalBars)}function getBarHeight(frequency,index$1){let reductionFactor=getReductionFactor(index$1,props.frequencies.length);return Math.min(100,Math.max(10,frequency*100*AMPLIFICATION*reductionFactor))}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$19,[(openBlock(!0),createElementBlock(Fragment,null,renderList(_ctx.frequencies,(frequency,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,"h-full":``,flex:``,"flex-1":``,"items-end":``},[createBaseVNode(`div`,{transition:`all 100 ease-in-out`,"mx-auto":``,"my-0":``,"w-full":``,"rounded-full":``,class:normalizeClass(_ctx.barsClass),style:normalizeStyle({height:`${getBarHeight(frequency,index$1)}%`})},null,6)]))),128))]))}}),AudioSpectrumVisualizer_default=AudioSpectrumVisualizer_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$18={key:0,class:`mb-2 flex items-center justify-between`},_hoisted_2$13={class:`text-sm font-medium`},_hoisted_3$12={class:`text-sm text-neutral-500`};var LevelMeter_vue_vue_type_script_setup_true_lang_default=defineComponent({__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(__props){let props=__props,levelBars=computed(()=>{let normalizedLevel=Math.max(0,Math.min(100,(props.level-props.min)/(props.max-props.min)*100)),activeBars=Math.floor(normalizedLevel/100*props.numBars);return Array.from({length:props.numBars},(_$2,i$1)=>({active:i$1a$2.value-b$3.value);for(let threshold of thresholds)if(barLevel<=threshold.value)return threshold.color;return(_thresholds=thresholds[thresholds.length-1])?.color||`bg-green-500`}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,null,[_ctx.showHeader?(openBlock(),createElementBlock(`div`,_hoisted_1$18,[createBaseVNode(`span`,_hoisted_2$13,toDisplayString(_ctx.label),1),createBaseVNode(`span`,_hoisted_3$12,toDisplayString(_ctx.formatValue?_ctx.formatValue(_ctx.level):`${Math.round(_ctx.level)}${_ctx.unit}`),1)])):createCommentVNode(``,!0),createBaseVNode(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 dark:bg-neutral-700`,style:normalizeStyle({height:`${_ctx.height}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(levelBars.value,(bar,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1,class:normalizeClass([`flex-1 rounded-sm transition-all`,[bar.active?getBarColor(index$1,bar.level):`bg-neutral-200 dark:bg-neutral-600`,`duration-${_ctx.animationSpeed}`]]),style:normalizeStyle({height:bar.active?`100%`:`20%`})},null,6))),128))],4)]))}}),LevelMeter_default=LevelMeter_vue_vue_type_script_setup_true_lang_default,Volumed_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Volumed`,props:{perspective:{},transform:{}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:`volumed`,style:normalizeStyle({perspective:`${_ctx.perspective}px`,transform:_ctx.transform})},[renderSlot(_ctx.$slots,`default`,{},void 0,!0)],4))}}),Volumed_default=__plugin_vue_export_helper_default(Volumed_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-d8ce56aa`]]),CursorMomentum_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`CursorMomentum`,props:{baseSpeed:{default:.1},friction:{default:.95},momentumFactor:{default:.005}},setup(__props,{expose:__expose}){let props=__props,momentum=ref(1),currentValue=ref(0),lastTimestamp=0,FRICTION=toRef(()=>props.friction),BASE_SPEED=toRef(()=>props.baseSpeed),MOMENTUM_FACTOR=toRef(()=>props.momentumFactor);function updateMomentum(timestamp$2){lastTimestamp||=timestamp$2;let deltaTime=timestamp$2-lastTimestamp;lastTimestamp=timestamp$2,momentum.value=BASE_SPEED.value+(momentum.value-BASE_SPEED.value)*FRICTION.value,currentValue.value+=momentum.value*deltaTime,requestAnimationFrame(updateMomentum)}function handleMouseMove(event){let speed=Math.sqrt(event.movementX**2+event.movementY**2);momentum.value+=speed*MOMENTUM_FACTOR.value}return onMounted(()=>{window.addEventListener(`mousemove`,handleMouseMove),requestAnimationFrame(updateMomentum)}),onUnmounted(()=>{window.removeEventListener(`mousemove`,handleMouseMove)}),__expose({momentum,currentValue}),(_ctx,_cache$1)=>renderSlot(_ctx.$slots,`default`,{momentum:momentum.value,currentValue:currentValue.value})}}),CursorMomentum_default=CursorMomentum_vue_vue_type_script_setup_true_lang_default,TestDummyMarkerFlat_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`TestDummyMarkerFlat`,props:{size:{}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:`test-dummy-flat`,style:normalizeStyle({width:`${_ctx.size}px`,height:`${_ctx.size}px`})},_cache$1[0]||=[createBaseVNode(`div`,{class:`marker`},null,-1)],4))}}),TestDummyMarkerFlat_default=__plugin_vue_export_helper_default(TestDummyMarkerFlat_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-28f8c660`]]),TestDummyMarker_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`TestDummyMarker`,setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(CursorMomentum_default,{"base-speed":.1,friction:.95,"momentum-factor":5e-4},{default:withCtx(({currentValue})=>[createVNode(Volumed_default,{perspective:800,transform:`rotateX(45deg) translateY(3px)`},{default:withCtx(()=>[createVNode(TestDummyMarkerFlat_default,{size:24,style:normalizeStyle({transform:`rotate(${currentValue}deg)`})},null,8,[`style`])]),_:2},1024)]),_:1}))}}),TestDummyMarker_default=TestDummyMarker_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$17={key:0,class:`mb-2 flex items-center justify-between`},_hoisted_2$12={class:`text-sm font-medium`},_hoisted_3$11={class:`text-sm text-neutral-500`},_hoisted_4$10={key:1,class:`mt-1 flex gap-3 text-xs text-neutral-500`},_hoisted_5$8={class:`flex items-center gap-1`},_hoisted_6$7={class:`flex items-center gap-1`},_hoisted_7$6={class:`flex items-center gap-1`};var ThresholdMeter_vue_vue_type_script_setup_true_lang_default=defineComponent({__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(__props){let props=__props,thresholdBars=computed(()=>{let normalizedValue=Math.max(0,Math.min(1,(props.value-props.min)/(props.max-props.min))),normalizedThreshold=Math.max(0,Math.min(1,(props.threshold-props.min)/(props.max-props.min))),activeBars=Math.floor(normalizedValue*props.numBars),thresholdBar=Math.floor(normalizedThreshold*props.numBars);return Array.from({length:props.numBars},(_$2,i$1)=>({active:i$1=thresholdBar,isBelowThreshold:i$1(openBlock(),createElementBlock(`div`,null,[_ctx.showHeader?(openBlock(),createElementBlock(`div`,_hoisted_1$17,[createBaseVNode(`span`,_hoisted_2$12,toDisplayString(_ctx.label),1),createBaseVNode(`span`,_hoisted_3$11,toDisplayString(_ctx.formatValue?_ctx.formatValue(_ctx.value):`${(_ctx.value*100).toFixed(_ctx.precision)}${_ctx.unit}`),1)])):createCommentVNode(``,!0),createBaseVNode(`div`,{class:`flex items-end gap-1 rounded bg-neutral-200/45 p-1 p-1 dark:bg-neutral-700`,style:normalizeStyle({height:`${_ctx.height}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(thresholdBars.value,(bar,index$1)=>(openBlock(),createElementBlock(`div`,{key:`threshold-${index$1}`,class:normalizeClass([`flex-1 rounded-sm transition-all`,[bar.isThreshold?_ctx.thresholdBarClass:bar.isAboveThreshold?_ctx.aboveThresholdClass:bar.isBelowThreshold?_ctx.belowThresholdClass:_ctx.inactiveBarClass,`duration-${_ctx.animationSpeed}`]]),style:normalizeStyle({height:bar.active||bar.isThreshold?`100%`:`20%`})},null,6))),128))],4),_ctx.showLegend?(openBlock(),createElementBlock(`div`,_hoisted_4$10,[createBaseVNode(`span`,_hoisted_5$8,[createBaseVNode(`div`,{class:normalizeClass(`inline-block h-0.5lh w-1lh rounded-full ${_ctx.belowThresholdClass}`)},null,2),createTextVNode(` `+toDisplayString(_ctx.belowLabel),1)]),createBaseVNode(`span`,_hoisted_6$7,[createBaseVNode(`div`,{class:normalizeClass(`inline-block h-0.5lh w-1lh rounded-full border border-neutral-400 ${_ctx.thresholdBarClass}`)},null,2),createTextVNode(` `+toDisplayString(_ctx.thresholdLabel),1)]),createBaseVNode(`span`,_hoisted_7$6,[createBaseVNode(`div`,{class:normalizeClass(`inline-block h-0.5lh w-1lh rounded-full ${_ctx.aboveThresholdClass}`)},null,2),createTextVNode(` `+toDisplayString(_ctx.aboveLabel),1)])])):createCommentVNode(``,!0)]))}}),ThresholdMeter_default=ThresholdMeter_vue_vue_type_script_setup_true_lang_default;function colorToChromaticColor(color$2){return{color:color$2,withAlpha:alpha$1=>{let rgba$1=oklch(color$2);if(!rgba$1)throw Error(`Invalid color provided for alpha adjustment`);return colorToChromaticColor(oklch({mode:`oklch`,l:rgba$1.l,c:rgba$1.c,h:rgba$1.h,alpha:alpha$1}))},toHex:()=>formatHex(color$2),toCSS:()=>formatCss(color$2)}}function chromaticPaletteFrom(baseHue=200,baseChroma){let chroma=baseChroma??.18+Math.cos(baseHue*Math.PI/180)*.04,shadeConfig={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}},shadeBy=(shade,alpha$1,hueOffset=0)=>{let config=shadeConfig[shade],adjustedHue=(baseHue+hueOffset)%360,adjustedChroma=chroma*config.chromaMultiplier,baseColor=oklch({mode:`oklch`,l:config.lightness,c:adjustedChroma,h:adjustedHue,alpha:alpha$1??1});if(config.mixWithWhite){let white=oklch({mode:`oklch`,l:1,c:0,h:0,alpha:alpha$1??1});return colorToChromaticColor(mixColors(baseColor,white,config.mixWithWhite))}return colorToChromaticColor(baseColor)};return{baseHue,chroma,getAllShades:(alpha$1,hueOffset=0)=>{let shades={};for(let shadeKey of Object.keys(shadeConfig)){let shade=Number.parseInt(shadeKey);shades[shade]=shadeBy(shade,alpha$1,hueOffset)}return shades},shadeBy}}function mixColors(color1,color2,ratio=.5){let c1=oklch(color1),c2=oklch(color2);if(!c1||!c2)throw Error(`Invalid colors provided for mixing`);return oklch({mode:`oklch`,l:c1.l*(1-ratio)+c2.l*ratio,c:c1.c*(1-ratio)+c2.c*ratio,h:mixHues(c1.h??0,c2.h??0,ratio)})}function mixHues(h1,h2,ratio){let diff=h2-h1;return diff>180&&(diff-=360),diff<-180&&(diff+=360),(h1+diff*ratio+360)%360}const _hoisted_1$16={key:0,class:`flex items-center justify-between`},_hoisted_2$11={class:`text-sm font-medium`},_hoisted_3$10={class:`text-xs text-neutral-500`},_hoisted_4$9={class:`h-full w-full`},_hoisted_5$7={id:`below-threshold-gradient`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},_hoisted_6$6=[`fill`],_hoisted_7$5=[`y`,`height`,`fill`],_hoisted_8$5=[`y1`,`y2`,`stroke`,`fill`],_hoisted_9$5=[`d`,`fill`],_hoisted_10$5=[`d`,`stroke`,`stroke-width`],_hoisted_11$4={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`},_hoisted_12$4={class:`text-xs text-primary-700 font-medium dark:text-primary-300`},_hoisted_13$4={key:1,class:`flex flex-wrap items-center justify-between text-xs text-neutral-500`},_hoisted_14$3={class:`flex items-center gap-3`},_hoisted_15$3={class:`flex items-center gap-1 text-nowrap`},_hoisted_16$3={class:`flex items-center gap-1 text-nowrap`},_hoisted_17$2={key:0,class:`text-nowrap`};var TimeSeriesChart_vue_vue_type_script_setup_true_lang_default=defineComponent({__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(__props){let props=__props,chartHeight=computed(()=>props.height),timeSeriesChartRef=ref(),chromaticHue$1=inject(chromaticHue,chromaticHueDefault),chromaticHueOrDefault=toRef(()=>props.colorsHue||chromaticHue$1||chromaticHueDefault),chromaticShades=computed(()=>chromaticPaletteFrom(chromaticHueOrDefault.value)),timeSeriesChartContainerBounding=useElementBounding(timeSeriesChartRef,{windowResize:!0});watch([chromaticHueOrDefault,timeSeriesChartRef],()=>{timeSeriesChartRef.value&&timeSeriesChartRef.value.style.setProperty(`--chromatic-hue`,chromaticHueOrDefault.value.toString())},{immediate:!0});let lineColorProps=toRef(()=>props.lineColor),lineColor=computed(()=>lineColorProps.value?lineColorProps.value:chromaticShades.value.shadeBy(500).toHex()),thresholdColorProps=toRef(()=>props.thresholdColor),thresholdColor=computed(()=>{if(!thresholdColorProps.value){let color$2=chromaticShades.value.shadeBy(500).withAlpha(.1).color;return`oklch(${color$2.l} ${color$2.c} ${color$2.h} / ${color$2.alpha})`}return thresholdColorProps.value}),activeColorProps=toRef(()=>props.activeColor),activeColor=computed(()=>activeColorProps.value?activeColorProps.value:chromaticShades.value.shadeBy(600).toHex()),inactiveColorProps=toRef(()=>props.inactiveColor),inactiveColor=computed(()=>inactiveColorProps.value?inactiveColorProps.value:chromaticShades.value.shadeBy(400).toHex()),componentId=Math.random().toString(36).substring(2,9),gridPatternId=`grid-${componentId}`,areaGradientId=`area-gradient-${componentId}`,thresholdGradientId=`threshold-gradient-${componentId}`,normalizedThreshold=computed(()=>props.threshold===null?0:Math.max(0,Math.min(1,props.threshold))),thresholdLineY=computed(()=>props.threshold===null?0:chartHeight.value-normalizedThreshold.value*chartHeight.value),smoothPath=computed(()=>{let history$1=props.history;if(history$1.length<2)return``;let width=timeSeriesChartContainerBounding.width.value,height=chartHeight.value,path=`M0,${height-history$1[0]*height}`;for(let i$1=1;i$1{let history$1=props.history;if(history$1.length<2)return``;let width=timeSeriesChartContainerBounding.width.value,height=chartHeight.value,path=`M0,${height} L0,${height-history$1[0]*height}`;for(let i$1=1;i$1_ctx.history.length>_ctx.minDataPoints?(openBlock(),createElementBlock(`div`,{key:0,ref_key:`timeSeriesChartRef`,ref:timeSeriesChartRef,class:`time-series-chart space-y-3`},[_ctx.showHeader?(openBlock(),createElementBlock(`div`,_hoisted_1$16,[createBaseVNode(`div`,_hoisted_2$11,toDisplayString(_ctx.title),1),createBaseVNode(`div`,_hoisted_3$10,toDisplayString(_ctx.subtitle),1)])):createCommentVNode(``,!0),createBaseVNode(`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:normalizeStyle({height:`${chartHeight.value}px`})},[(openBlock(),createElementBlock(`svg`,_hoisted_4$9,[createBaseVNode(`defs`,null,[createBaseVNode(`pattern`,{id:gridPatternId,width:`20`,height:`10`,patternUnits:`userSpaceOnUse`},_cache$1[0]||=[createBaseVNode(`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)]),createBaseVNode(`linearGradient`,{id:areaGradientId,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[createBaseVNode(`stop`,{offset:`0%`,style:normalizeStyle(`stop-color:${lineColor.value};stop-opacity:0.3`)},null,4),createBaseVNode(`stop`,{offset:`50%`,style:normalizeStyle(`stop-color:${lineColor.value};stop-opacity:0.15`)},null,4),createBaseVNode(`stop`,{offset:`100%`,style:normalizeStyle(`stop-color:${lineColor.value};stop-opacity:0.05`)},null,4)]),createBaseVNode(`linearGradient`,{id:thresholdGradientId,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`},[createBaseVNode(`stop`,{offset:`0%`,style:normalizeStyle(`stop-color:${activeColor.value};stop-opacity:0.3`)},null,4),createBaseVNode(`stop`,{offset:`50%`,style:normalizeStyle(`stop-color:${activeColor.value};stop-opacity:0.15`)},null,4),createBaseVNode(`stop`,{offset:`100%`,style:normalizeStyle(`stop-color:${activeColor.value};stop-opacity:0.05`)},null,4)]),createBaseVNode(`linearGradient`,_hoisted_5$7,[createBaseVNode(`stop`,{offset:`0%`,style:normalizeStyle(`stop-color:${thresholdColor.value};stop-opacity:0.2`)},null,4),createBaseVNode(`stop`,{offset:`50%`,style:normalizeStyle(`stop-color:${thresholdColor.value};stop-opacity:0.1`)},null,4),createBaseVNode(`stop`,{offset:`100%`,style:normalizeStyle(`stop-color:${thresholdColor.value};stop-opacity:0.05`)},null,4)])]),createBaseVNode(`rect`,{width:`100%`,height:`100%`,fill:`url(#${gridPatternId})`},null,8,_hoisted_6$6),_ctx.showThreshold&&_ctx.threshold!==null?(openBlock(),createElementBlock(`rect`,{key:0,x:`0`,y:thresholdLineY.value,width:`100%`,height:chartHeight.value-thresholdLineY.value,fill:thresholdColor.value,class:`transition-all duration-300`},null,8,_hoisted_7$5)):createCommentVNode(``,!0),_ctx.showThreshold&&_ctx.threshold!==null?(openBlock(),createElementBlock(`line`,{key:1,x1:`0`,y1:thresholdLineY.value,x2:`100%`,y2:thresholdLineY.value,stroke:thresholdColor.value,"stroke-width":`1.5`,"stroke-dasharray":`4,4`,fill:thresholdColor.value,class:`transition-all duration-300`},null,8,_hoisted_8$5)):createCommentVNode(``,!0),dataAreaPath.value&&_ctx.showArea?(openBlock(),createElementBlock(`path`,{key:2,d:dataAreaPath.value,fill:`url(#${areaGradientId})`,class:`transition-all duration-75`},null,8,_hoisted_9$5)):createCommentVNode(``,!0),smoothPath.value?(openBlock(),createElementBlock(`path`,{key:3,d:smoothPath.value,fill:`none`,stroke:lineColor.value,"stroke-width":_ctx.lineWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:`drop-shadow-sm transition-all duration-75`},null,8,_hoisted_10$5)):createCommentVNode(``,!0)])),_ctx.showCurrentValue?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`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`,_ctx.isActive?`bg-primary-50 dark:bg-primary-900 border-primary-200 dark:border-primary-800`:``])},[createBaseVNode(`div`,{class:normalizeClass([`text-xs font-medium`,_ctx.isActive?`text-primary-700 dark:text-primary-300`:`text-neutral-600 dark:text-neutral-400`])},toDisplayString(_ctx.formatValue?_ctx.formatValue(_ctx.currentValue):`${(_ctx.currentValue*100).toFixed(_ctx.precision)}${_ctx.unit}`),3)],2)):createCommentVNode(``,!0),createVNode(Transition,{name:`fade`},{default:withCtx(()=>[_ctx.isActive&&_ctx.showActiveIndicator?(openBlock(),createElementBlock(`div`,_hoisted_11$4,[_cache$1[1]||=createBaseVNode(`div`,{class:`h-1.5 w-1.5 animate-pulse rounded-full bg-primary-500`},null,-1),createBaseVNode(`span`,_hoisted_12$4,toDisplayString(_ctx.activeLabel),1)])):createCommentVNode(``,!0)]),_:1})],4),_ctx.showLegend?(openBlock(),createElementBlock(`div`,_hoisted_13$4,[createBaseVNode(`div`,_hoisted_14$3,[createBaseVNode(`span`,_hoisted_15$3,[createBaseVNode(`div`,{class:`h-2 w-2 rounded-full`,style:normalizeStyle({backgroundColor:activeColor.value})},null,4),createTextVNode(` `+toDisplayString(_ctx.activeLegendLabel),1)]),createBaseVNode(`span`,_hoisted_16$3,[createBaseVNode(`div`,{class:`h-2 w-2 rounded-full`,style:normalizeStyle({backgroundColor:inactiveColor.value})},null,4),createTextVNode(` `+toDisplayString(_ctx.inactiveLegendLabel),1)])]),_ctx.threshold===null?createCommentVNode(``,!0):(openBlock(),createElementBlock(`span`,_hoisted_17$2,toDisplayString(_ctx.thresholdLabel)+`: `+toDisplayString((_ctx.threshold*100).toFixed(0))+`%`,1))])):createCommentVNode(``,!0)],512)):createCommentVNode(``,!0)}}),TimeSeriesChart_default=__plugin_vue_export_helper_default(TimeSeriesChart_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-6b4f300d`]]);const _hoisted_1$15={class:`p-3`},_hoisted_2$10={class:`flex items-start`},_hoisted_3$9=[`checked`,`name`,`value`],_hoisted_4$8={class:`relative mr-3 mt-0.5 flex-shrink-0`},_hoisted_5$6={key:0,class:`i-solar:pause-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},_hoisted_6$5={key:1,class:`i-solar:play-circle-bold-duotone text-xl text-neutral-400 dark:text-neutral-500`},_hoisted_7$4={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`},_hoisted_8$4={class:`flex-1 cursor-pointer`},_hoisted_9$4={class:`flex items-center`},_hoisted_10$4={key:0,class:`mt-1 flex flex-wrap gap-1`},_hoisted_11$3={key:1,class:`mt-3`},_hoisted_12$3={relative:``},_hoisted_13$3={key:0,class:`h-16 px-3 pb-2`};var VoiceCard_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`VoiceCard`,props:mergeModels({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:mergeModels([`togglePlayback`],[`update:voice-id`,`update:custom-voice-name`]),setup(__props,{emit:__emit}){let props=__props,emit$1=__emit,voiceId=useModel(__props,`voice-id`),customVoiceName=useModel(__props,`custom-voice-name`);function getPreviewUrl(voice){return voice.previewURL||voice.preview_audio_url}function formatVoiceAttributes(voice){var _voice$labels4,_voice$labels5,_voice$labels6;let attributes=[];if((_voice$labels4=voice.labels)?.gender&&attributes.push(voice.labels.gender),(_voice$labels5=voice.labels)?.age&&attributes.push(voice.labels.age),(_voice$labels6=voice.labels)?.accent&&attributes.push(voice.labels.accent),voice.languages&&voice.languages.length>0){let languageNames=voice.languages.map(lang=>lang.name).join(`, `);attributes.push(languageNames)}return attributes}function togglePlayback(){emit$1(`togglePlayback`,props.voice)}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`label`,{border:`2px solid`,class:normalizeClass([`scroll-snap-align-start form_voice-card relative flex flex-col overflow-hidden rounded-xl`,[voiceId.value===props.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`,voiceId.value===props.voice.id?`form_voice-card-active`:``]]),transition:`all duration-200 ease-in-out`},[createBaseVNode(`div`,_hoisted_1$15,[createBaseVNode(`div`,_hoisted_2$10,[withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>voiceId.value=$event,checked:voiceId.value===props.voice.id,type:`radio`,name:_ctx.name,value:props.voice.id,class:`absolute cursor-pointer opacity-0`},null,8,_hoisted_3$9),[[vModelRadio,voiceId.value]]),createBaseVNode(`div`,_hoisted_4$8,[createBaseVNode(`div`,{class:normalizeClass([`size-5 border-2 rounded-full transition-colors duration-200`,[voiceId.value===props.voice.id?`border-primary-500 dark:border-primary-400`:`border-neutral-300 dark:border-neutral-600`]])},[createBaseVNode(`div`,{class:normalizeClass([`absolute left-1/2 top-1/2 size-3 rounded-full transition-opacity duration-200 -translate-x-1/2 -translate-y-1/2`,[voiceId.value===props.voice.id?`opacity-100 bg-primary-500 dark:bg-primary-400`:`opacity-0`]])},null,2)],2)]),getPreviewUrl(_ctx.voice)?(openBlock(),createElementBlock(`button`,{key:0,absolute:``,"right-0":``,top:`0`,"z-3":``,class:normalizeClass([`translate-x-[-50%] translate-y-[50%]`,[_ctx.currentlyPlayingId===_ctx.voice.id?`text-white dark:text-white`:``]]),onClick:togglePlayback},[_ctx.currentlyPlayingId===_ctx.voice.id?(openBlock(),createElementBlock(`div`,_hoisted_5$6)):(openBlock(),createElementBlock(`div`,_hoisted_6$5))],2)):(openBlock(),createElementBlock(`div`,_hoisted_7$4,` No preview available `)),createBaseVNode(`div`,_hoisted_8$4,[createBaseVNode(`div`,_hoisted_9$4,[createBaseVNode(`span`,{class:normalizeClass([`line-clamp-1 font-medium`,[voiceId.value===_ctx.voice.id?`text-neutral-700 dark:text-neutral-300`:`text-neutral-700 dark:text-neutral-400`]])},toDisplayString(_ctx.voice.name),3)]),formatVoiceAttributes(_ctx.voice).length>0?(openBlock(),createElementBlock(`div`,_hoisted_10$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(formatVoiceAttributes(_ctx.voice),(attribute,attrIndex)=>(openBlock(),createElementBlock(`span`,{key:attrIndex,class:normalizeClass([`inline-flex items-center rounded-md px-1.5 py-0.5 text-xs`,[voiceId.value===_ctx.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`]])},toDisplayString(attribute),3))),128))])):createCommentVNode(``,!0),_ctx.voice.customizable&&voiceId.value===_ctx.voice.id?(openBlock(),createElementBlock(`div`,_hoisted_11$3,[createVNode(unref(Input_default),{modelValue:customVoiceName.value,"onUpdate:modelValue":_cache$1[1]||=$event=>customVoiceName.value=$event,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:_ctx.customInputPlaceholder},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),_ctx.voice.description?(openBlock(),createElementBlock(`div`,{key:2,class:normalizeClass([`line-clamp-2 mt-1 text-xs`,[voiceId.value===_ctx.voice.id?`text-neutral-600 dark:text-neutral-400`:`text-neutral-500 dark:text-neutral-500`]])},toDisplayString(_ctx.voice.description),3)):createCommentVNode(``,!0)])])]),createBaseVNode(`div`,_hoisted_12$3,[createVNode(unref(TransitionVertical_default),null,{default:withCtx(()=>[_ctx.showVisualizer&&_ctx.currentlyPlayingId===_ctx.voice.id&&_ctx.audioStream?(openBlock(),createElementBlock(`div`,_hoisted_13$3,[createVNode(unref(AudioSpectrum_default),{stream:_ctx.audioStream,bars:24,"min-freq":60,"max-freq":4e3},{default:withCtx(({frequencies})=>[createVNode(unref(AudioSpectrumVisualizer_default),{frequencies,"bars-class":voiceId.value===_ctx.voice.id?`bg-primary-500 dark:bg-primary-400`:`bg-neutral-400 dark:bg-neutral-600`},null,8,[`frequencies`,`bars-class`])]),_:1},8,[`stream`])])):createCommentVNode(``,!0)]),_:1})])],2))}}),VoiceCard_default=__plugin_vue_export_helper_default(VoiceCard_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-fd4023c4`]]);const _hoisted_1$14={class:`voice-preview-player`},_hoisted_2$9={key:0,class:`relative`,"inline-flex":`~`,"w-full":``,"items-center":``},_hoisted_3$8=[`placeholder`],_hoisted_4$7={class:`mt-4 space-y-2`},_hoisted_5$5={key:0,class:`text-sm text-neutral-500 dark:text-neutral-400`},_hoisted_6$4={key:1,class:`flex items-center gap-3 border border-2 border-amber-200 rounded-xl bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},_hoisted_7$3={class:`flex flex-col`},_hoisted_8$3={class:`font-medium`},_hoisted_9$3={class:`text-sm text-amber-600 dark:text-amber-400`},_hoisted_10$3={class:`relative`};var VoiceCardManySelect_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`VoiceCardManySelect`,props:mergeModels({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}},{"search-query":{required:!1,default:``},"search-queryModifiers":{},"voice-id":{required:!1,default:``},"voice-idModifiers":{}}),emits:[`update:search-query`,`update:voice-id`],setup(__props){let props=__props,isListExpanded=ref(!1),currentlyPlayingId=ref(),audioElements=ref(new Map),audioStreams=ref(new Map),audioContexts=ref(new Map),audioSources=ref(new Map),sharedAudioContext=ref(null);function initAudioContext(){return sharedAudioContext.value||=new(window.AudioContext||window.webkitAudioContext),sharedAudioContext.value}let searchQuery=useModel(__props,`search-query`),voiceId=useModel(__props,`voice-id`),filteredVoices=computed(()=>{if(!searchQuery.value)return props.voices;let query=searchQuery.value.toLowerCase();return props.voices.filter(voice=>{let nameMatch=voice.name.toLowerCase().includes(query),descMatch=voice.description&&voice.description.toLowerCase().includes(query),tagMatch=voice.tags&&voice.tags.some(tag=>tag.toLowerCase().includes(query)),labelMatch=voice.labels&&Object.values(voice.labels).some(value$1=>typeof value$1==`string`&&value$1.toLowerCase().includes(query)),langMatch=voice.languages&&voice.languages.some(lang=>lang.name.toLowerCase().includes(query)||lang.code.toLowerCase().includes(query));return nameMatch||descMatch||tagMatch||labelMatch||langMatch})});function getPreviewUrl(voice){return voice.previewURL||voice.preview_audio_url}function getAudioElement(voice){let previewUrl=getPreviewUrl(voice);if(!previewUrl)return null;if(audioElements.value.has(voice.id))return audioElements.value.get(voice.id)||null;let audio=new Audio(previewUrl);return audio.crossOrigin=`anonymous`,audio.preload=`auto`,audio.addEventListener(`ended`,()=>{if(currentlyPlayingId.value===voice.id){currentlyPlayingId.value=void 0;let stream=audioStreams.value.get(voice.id);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(voice.id))}}),audioElements.value.set(voice.id,audio),audio}function createAudioStream(audio,voiceId$1){try{if(audioStreams.value.has(voiceId$1))return audioStreams.value.get(voiceId$1)||null;let audioContext=initAudioContext();if(audioSources.value.has(voiceId$1)){let source$1=audioSources.value.get(voiceId$1),destination$1=audioContext.createMediaStreamDestination();source$1.connect(destination$1);let stream$1=destination$1.stream;return audioStreams.value.set(voiceId$1,stream$1),stream$1}let source=audioContext.createMediaElementSource(audio);audioSources.value.set(voiceId$1,source),source.connect(audioContext.destination);let destination=audioContext.createMediaStreamDestination();source.connect(destination);let stream=destination.stream;return audioStreams.value.set(voiceId$1,stream),stream}catch(error){return console.error(`Failed to create audio stream for visualizer:`,error),null}}function togglePlayback(voice){try{let previewUrl=getPreviewUrl(voice);if(!previewUrl)return;let audio=getAudioElement(voice);if(!audio)return;if(currentlyPlayingId.value===voice.id){audio.pause(),currentlyPlayingId.value=void 0;let stream=audioStreams.value.get(voice.id);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(voice.id));return}if(currentlyPlayingId.value){let currentAudio=audioElements.value.get(currentlyPlayingId.value);currentAudio&¤tAudio.pause();let stream=audioStreams.value.get(currentlyPlayingId.value);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(currentlyPlayingId.value))}props.showVisualizer&&!audioStreams.value.has(voice.id)&&createAudioStream(audio,voice.id),audio.currentTime=0,audio.play().catch(error=>{console.error(`Failed to play audio:`,error)}),currentlyPlayingId.value=voice.id}catch(err){console.error(err),currentlyPlayingId.value=void 0}}function cleanup(){audioElements.value.forEach(audio=>{audio.pause(),audio.src=``}),audioElements.value.clear(),audioStreams.value.forEach(stream=>{stream.getTracks().forEach(track$1=>track$1.stop())}),audioStreams.value.clear(),audioContexts.value.forEach(context$1=>{context$1.state!==`closed`&&context$1.close()}),audioContexts.value.clear(),audioSources.value.clear(),currentlyPlayingId.value=void 0}watch(searchQuery,()=>{if(currentlyPlayingId.value){let audio=audioElements.value.get(currentlyPlayingId.value);audio&&audio.pause();let stream=audioStreams.value.get(currentlyPlayingId.value);stream&&(stream.getTracks().forEach(track$1=>track$1.stop()),audioStreams.value.delete(currentlyPlayingId.value)),currentlyPlayingId.value=void 0}}),onBeforeUnmount(cleanup);let customVoiceName=ref(``);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$14,[_ctx.searchable?(openBlock(),createElementBlock(`div`,_hoisted_2$9,[_cache$1[4]||=createBaseVNode(`div`,{class:`pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3`},[createBaseVNode(`div`,{"i-solar:magnifer-line-duotone":``,class:`text-neutral-500 dark:text-neutral-400`})],-1),withDirectives(createBaseVNode(`input`,{"onUpdate:modelValue":_cache$1[0]||=$event=>searchQuery.value=$event,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:_ctx.searchPlaceholder},null,8,_hoisted_3$8),[[vModelText,searchQuery.value]])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_4$7,[searchQuery.value?(openBlock(),createElementBlock(`div`,_hoisted_5$5,toDisplayString(_ctx.searchResultsText.replace(`{count}`,filteredVoices.value.length.toString()).replace(`{total}`,_ctx.voices.length.toString())),1)):createCommentVNode(``,!0),searchQuery.value&&filteredVoices.value.length===0?(openBlock(),createElementBlock(`div`,_hoisted_6$4,[_cache$1[5]||=createBaseVNode(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),createBaseVNode(`div`,_hoisted_7$3,[createBaseVNode(`span`,_hoisted_8$3,toDisplayString(_ctx.searchNoResultsTitle),1),createBaseVNode(`span`,_hoisted_9$3,toDisplayString(_ctx.searchNoResultsDescription.replace(`{query}`,searchQuery.value)),1)])])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_10$3,[createBaseVNode(`div`,{class:normalizeClass([`grid auto-cols-[350px] grid-flow-col max-h-[calc(100dvh-7lh)] gap-4 overflow-x-auto scrollbar-none`,[isListExpanded.value?`grid-cols-1 md:grid-cols-2 grid-flow-row auto-cols-auto`:``]]),transition:`all duration-200 ease-in-out`,style:{"scroll-snap-type":`x mandatory`}},[(openBlock(!0),createElementBlock(Fragment,null,renderList(filteredVoices.value,voice=>(openBlock(),createBlock(VoiceCard_default,{key:voice.id,"voice-id":voiceId.value,"onUpdate:voiceId":_cache$1[1]||=$event=>voiceId.value=$event,"custom-voice-name":customVoiceName.value,"onUpdate:customVoiceName":_cache$1[2]||=$event=>customVoiceName.value=$event,name:`voice`,voice,"currently-playing-id":currentlyPlayingId.value,"custom-input-placeholder":_ctx.customInputPlaceholder,"show-visualizer":_ctx.showVisualizer,"audio-stream":audioStreams.value.get(voice.id),onTogglePlayback:togglePlayback},null,8,[`voice-id`,`custom-voice-name`,`voice`,`currently-playing-id`,`custom-input-placeholder`,`show-visualizer`,`audio-stream`]))),128))],2),createBaseVNode(`div`,{bg:`neutral-100 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,class:normalizeClass([isListExpanded.value?`w-full`:`mt-4 w-full rounded-lg`])},[createBaseVNode(`button`,{"w-full":``,flex:``,"items-center":``,"justify-center":``,"gap-2":``,"rounded-lg":``,"py-2":``,transition:`all duration-200 ease-in-out`,class:normalizeClass([isListExpanded.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:_cache$1[3]||=$event=>isListExpanded.value=!isListExpanded.value},[createBaseVNode(`span`,null,toDisplayString(isListExpanded.value?_ctx.collapseButtonText:_ctx.expandButtonText),1),createBaseVNode(`div`,{class:normalizeClass([isListExpanded.value?`rotate-180`:``,`text-lg`]),"i-solar:alt-arrow-down-linear":``,transition:`transform duration-200 ease-in-out`},null,2)],2)],2)])])]))}}),VoiceCardManySelect_default=__plugin_vue_export_helper_default(VoiceCardManySelect_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-55cec23c`]]),BidirectionalTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`BidirectionalTransition`,props:{fromClass:{},activeClass:{},toClass:{}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(Transition,{"enter-from-class":_ctx.fromClass,"enter-active-class":_ctx.activeClass,"enter-to-class":_ctx.toClass,"leave-from-class":_ctx.toClass,"leave-active-class":_ctx.activeClass,"leave-to-class":_ctx.fromClass},{default:withCtx(()=>[renderSlot(_ctx.$slots,`default`)]),_:3},8,[`enter-from-class`,`enter-active-class`,`enter-to-class`,`leave-from-class`,`leave-active-class`,`leave-to-class`]))}}),BidirectionalTransition_default=BidirectionalTransition_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$13=[`disabled`],_hoisted_2$8={class:`flex flex-row items-center justify-center gap-2`},_hoisted_3$7={key:0,class:`w-4`},_hoisted_4$6={key:0,class:`i-svg-spinners:ring-resize h-4 w-4`},_hoisted_5$4={key:0};var Button_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Button`,props:{icon:{},label:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},variant:{default:`primary`},size:{default:`md`},block:{type:Boolean,default:!1}},setup(__props){let props=__props,isDisabled=computed(()=>props.disabled||props.loading),variantClasses={primary:`bg-primary-400 hover:bg-primary-500 active:bg-primary-600 dark:bg-primary-700 dark:hover:bg-primary-500 dark:active:bg-primary-700 focus:ring-primary-300/50 dark:focus:ring-primary-600/50 text-white`,secondary:`bg-neutral-100 hover:bg-neutral-200 active:bg-neutral-300 dark:bg-neutral-700 dark:hover:bg-neutral-500 dark:active:bg-neutral-700 focus:ring-neutral-300/50 dark:focus:ring-neutral-600/50 text-neutral-900 dark:text-neutral-100`,danger:`bg-red-400 hover:bg-red-500 active:bg-red-600 dark:bg-red-700 dark:hover:bg-red-500 dark:active:bg-red-700 focus:ring-red-300/50 dark:focus:ring-red-600/50 text-white`},sizeClasses={sm:`px-3 py-1.5 text-xs`,md:`px-4 py-2 text-sm`,lg:`px-6 py-3 text-base`},baseClasses=computed(()=>[`rounded-lg font-medium outline-none transition-all duration-150 ease-in-out`,`disabled:cursor-not-allowed disabled:opacity-50`,props.block?`w-full`:``,sizeClasses[props.size],variantClasses[props.variant],{"opacity-50 cursor-not-allowed":isDisabled.value},`focus:ring-2 focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-neutral-900`]);return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`button`,{disabled:isDisabled.value,class:normalizeClass(baseClasses.value)},[createBaseVNode(`div`,_hoisted_2$8,[createVNode(unref(BidirectionalTransition_default),{"from-class":`opacity-0 mr-0! w-0!`,"active-class":`transition-[width,margin] ease-in-out overflow-hidden transition-100`},{default:withCtx(()=>[_ctx.loading||_ctx.icon?(openBlock(),createElementBlock(`div`,_hoisted_3$7,[_ctx.loading?(openBlock(),createElementBlock(`div`,_hoisted_4$6)):_ctx.icon?(openBlock(),createElementBlock(`div`,{key:1,class:normalizeClass([`h-4 w-4`,_ctx.icon])},null,2)):createCommentVNode(``,!0)])):createCommentVNode(``,!0)]),_:1}),_ctx.label?(openBlock(),createElementBlock(`span`,_hoisted_5$4,toDisplayString(_ctx.label),1)):renderSlot(_ctx.$slots,`default`,{key:1})])],10,_hoisted_1$13))}}),Button_default=Button_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$12={op50:``};var Collapsable_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Collapsable`,props:mergeModels({default:{type:Boolean},label:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,visible=useModel(__props,`modelValue`);watchEffect(()=>{props.default!=null&&(visible.value=!!props.default)});function setVisible(value$1){return visible.value=value$1,value$1}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,null,[renderSlot(_ctx.$slots,`trigger`,normalizeProps(guardReactiveProps({visible:visible.value,setVisible})),()=>[createBaseVNode(`button`,{sticky:``,"top-0":``,"z-10":``,flex:``,"items-center":``,"justify-between":``,px2:``,py1:``,"text-sm":``,"backdrop-blur-xl":``,onClick:_cache$1[0]||=$event=>visible.value=!visible.value},[createBaseVNode(`span`,null,toDisplayString(props.label??`Collapsable`),1),_cache$1[1]||=createTextVNode(),createBaseVNode(`span`,_hoisted_1$12,toDisplayString(visible.value?`▲`:`▼`),1)])]),createVNode(unref(TransitionVertical_default),null,{default:withCtx(()=>[visible.value?renderSlot(_ctx.$slots,`default`,normalizeProps(mergeProps({key:0},{visible:visible.value,setVisible}))):createCommentVNode(``,!0)]),_:3})]))}}),Collapsable_default=Collapsable_vue_vue_type_script_setup_true_lang_default,Screen_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Screen`,setup(__props){let containerRef=ref(),breakpoints=useBreakpoints(breakpointsTailwind),{width,height}=useWindowSize(),containerElementBounding=useElementBounding(containerRef,{immediate:!0,windowResize:!0,reset:!0}),isMobile=computed(()=>breakpoints.between(`sm`,`md`).value||breakpoints.smaller(`sm`).value),isTablet=computed(()=>breakpoints.between(`md`,`lg`).value),isDesktop=computed(()=>breakpoints.greaterOrEqual(`lg`).value),canvasWidth=computed(()=>isDesktop.value?containerElementBounding.width.value:isMobile.value||isTablet.value?width.value-16:containerElementBounding.width.value),canvasHeight=ref(0);return watch([width,height,containerRef],()=>{var _containerRef$value;let bounding=(_containerRef$value=containerRef.value)==null||(_containerRef$value=_containerRef$value.parentElement)==null?void 0:_containerRef$value.getBoundingClientRect();isDesktop.value||isMobile.value||isTablet.value?canvasHeight.value=bounding?.height||0:canvasHeight.value=600}),watch([containerElementBounding.width,containerElementBounding.height],()=>{isDesktop.value||isMobile.value||isTablet.value?canvasHeight.value=containerElementBounding.height.value:canvasHeight.value=600}),onMounted(async()=>{containerRef.value&&containerElementBounding.update()}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{ref_key:`containerRef`,ref:containerRef,"h-full":``,"w-full":``},[renderSlot(_ctx.$slots,`default`,{width:canvasWidth.value,height:canvasHeight.value})],512))}}),Screen_default=Screen_vue_vue_type_script_setup_true_lang_default,Skeleton_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Skeleton`,props:{animation:{default:`pulse`}},setup(__props){let props=__props;return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:normalizeClass([`skeleton`,props.animation===`none`?``:`skeleton-${props.animation}`]),bg:`neutral-200 dark:neutral-800`,overflow:`hidden`},[renderSlot(_ctx.$slots,`default`,{},void 0,!0)],2))}}),Skeleton_default=__plugin_vue_export_helper_default(Skeleton_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-9aeafd92`]]),ProviderAccountIdInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderAccountIdInput`,props:mergeModels({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(FieldInput_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,label:props.label||`Account ID`,description:props.description||`Account ID`,placeholder:props.placeholder,required:props.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),ProviderAccountIdInput_default=ProviderAccountIdInput_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$11=[`onClick`],_hoisted_2$7={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},_hoisted_3$6={"mt-4":``};var ProviderAdvancedSettings_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderAdvancedSettings`,props:{title:{},initialVisible:{type:Boolean}},setup(__props){let props=__props,visible=ref(props.initialVisible||!1);function toggleVisible(){visible.value=!visible.value}return(_ctx,_cache$1)=>(openBlock(),createBlock(Collapsable_default,{"w-full":``},{trigger:withCtx(slotProps=>[createBaseVNode(`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:()=>slotProps.setVisible(!slotProps.visible)&&toggleVisible()},[createBaseVNode(`h2`,_hoisted_2$7,[createBaseVNode(`span`,null,toDisplayString(_ctx.title||`Advanced`),1)]),createBaseVNode(`div`,{transform:``,transition:`transform duration-250`,class:normalizeClass({"rotate-180":slotProps.visible})},_cache$1[0]||=[createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``},null,-1)],2)],8,_hoisted_1$11)]),default:withCtx(()=>[createBaseVNode(`div`,_hoisted_3$6,[renderSlot(_ctx.$slots,`default`)])]),_:3}))}}),ProviderAdvancedSettings_default=ProviderAdvancedSettings_vue_vue_type_script_setup_true_lang_default,ProviderApiKeyInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderApiKeyInput`,props:mergeModels({providerName:{},placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,{t}=useI18n(),modelValue=useModel(__props,`modelValue`),computedDescription=computed(()=>props.description||`API Key for ${props.providerName}`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(FieldInput_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,label:_ctx.label||unref(t)(`settings.pages.providers.common.fields.field.api-key.label`),description:computedDescription.value,placeholder:_ctx.placeholder,required:_ctx.required,type:`password`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),ProviderApiKeyInput_default=ProviderApiKeyInput_vue_vue_type_script_setup_true_lang_default,ProviderBaseUrlInput_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderBaseUrlInput`,props:mergeModels({placeholder:{},required:{type:Boolean},label:{},description:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(__props){let props=__props,modelValue=useModel(__props,`modelValue`);return(_ctx,_cache$1)=>(openBlock(),createBlock(unref(FieldInput_default),{modelValue:modelValue.value,"onUpdate:modelValue":_cache$1[0]||=$event=>modelValue.value=$event,label:props.label||`Base URL`,description:props.description||`Custom base URL (optional)`,placeholder:props.placeholder,required:props.required,type:`text`},null,8,[`modelValue`,`label`,`description`,`placeholder`,`required`]))}}),ProviderBaseUrlInput_default=ProviderBaseUrlInput_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$10={flex:`~ col gap-6`},_hoisted_2$6={flex:`~ row`,"items-center":``,"justify-between":``},_hoisted_3$5={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},_hoisted_4$5={text:`neutral-400 dark:neutral-500`};var ProviderBasicSettings_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderBasicSettings`,props:{title:{},description:{},onReset:{type:Function}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$10,[createBaseVNode(`div`,_hoisted_2$6,[createBaseVNode(`div`,null,[createBaseVNode(`h2`,_hoisted_3$5,toDisplayString(_ctx.title||`Basic`),1),createBaseVNode(`div`,_hoisted_4$5,[createBaseVNode(`span`,null,toDisplayString(_ctx.description||`Essential settings`),1)])]),_ctx.onReset?(openBlock(),createElementBlock(`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:_cache$1[0]||=(...args)=>_ctx.onReset&&_ctx.onReset(...args)},_cache$1[1]||=[createBaseVNode(`div`,{"i-solar:refresh-bold-duotone":``,"text-xl":``},null,-1)])):createCommentVNode(``,!0)]),renderSlot(_ctx.$slots,`default`)]))}}),ProviderBasicSettings_default=ProviderBasicSettings_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$9={bg:`neutral-50 dark:[rgba(0,0,0,0.3)]`,"rounded-xl":``,"p-4":``,flex:`~ col gap-6`};var ProviderSettingsContainer_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderSettingsContainer`,setup(__props){return(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$9,[renderSlot(_ctx.$slots,`default`)]))}}),ProviderSettingsContainer_default=ProviderSettingsContainer_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$8={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 ProviderSettingsLayout2_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderSettingsLayout2`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(__props){return(_ctx,_cache$1)=>{let _directive_motion=resolveDirective(`motion`);return openBlock(),createElementBlock(Fragment,null,[renderSlot(_ctx.$slots,`default`),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_1$8,[createBaseVNode(`div`,{text:`60`,class:normalizeClass(_ctx.providerIcon||_ctx.providerIconColor)},null,2)])),[[_directive_motion]])],64)}}}),ProviderSettingsLayout2_default=ProviderSettingsLayout2_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$7={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 ProviderSettingsLayout_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ProviderSettingsLayout`,props:{providerName:{},providerIcon:{},providerIconColor:{},onBack:{type:Function}},setup(__props){return(_ctx,_cache$1)=>{let _directive_motion=resolveDirective(`motion`);return openBlock(),createElementBlock(Fragment,null,[renderSlot(_ctx.$slots,`default`),withDirectives((openBlock(),createElementBlock(`div`,_hoisted_1$7,[createBaseVNode(`div`,{text:`60`,class:normalizeClass(_ctx.providerIcon||_ctx.providerIconColor)},null,2)])),[[_directive_motion]])],64)}}}),ProviderSettingsLayout_default=ProviderSettingsLayout_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$6={"w-full":``,"rounded-xl":``},_hoisted_2$5={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},_hoisted_3$4={class:`inline-flex items-center gap-4`},_hoisted_4$4={flex:`~ col gap-4`},_hoisted_5$3=[`placeholder`],_hoisted_6$3=[`placeholder`],_hoisted_7$2={flex:`~ col gap-6`},_hoisted_8$2={grid:`~ cols-2 gap-4`},_hoisted_9$2={class:`flex items-center gap-1 text-sm font-medium`},_hoisted_10$2={class:`text-xs text-neutral-500 dark:text-neutral-400`},_hoisted_11$2=[`value`],_hoisted_12$2={flex:`~ row`,"gap-4":``},_hoisted_13$2=[`disabled`],_hoisted_14$2={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_15$2={flex:`~ row`,"items-center":``,"gap-2":``},_hoisted_16$2={key:2,class:`mt-2 text-sm text-red-500`},_hoisted_17$1={key:3,class:`mt-2 text-sm text-red-500`},_hoisted_18$1={key:4,class:`mt-2 text-sm text-red-500`},_hoisted_19$1=[`src`];var SpeechPlayground_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SpeechPlayground`,props:{defaultText:{},availableVoices:{},generateSpeech:{type:Function},apiKeyConfigured:{type:Boolean}},setup(__props,{expose:__expose}){let props=__props,{t}=useI18n(),testText=ref(props.defaultText||`Hello! This is a test of the voice synthesis.`),isGenerating=ref(!1),audioUrl=ref(``),errorMessage=ref(``),audioPlayer=ref(null),useSSML=ref(!1),ssmlText=ref(``),selectedVoice=ref(``);watch(()=>props.availableVoices,newVoices=>{var _newVoices$;newVoices.length>0&&!selectedVoice.value&&(selectedVoice.value=(_newVoices$=newVoices[0])?.id||``)},{immediate:!0});async function handleGenerateTestSpeech(){if(!(!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim()||!selectedVoice.value)){isGenerating.value=!0,errorMessage.value=``;try{audioUrl.value&&stopTestAudio();let input=useSSML.value?ssmlText.value:testText.value,response=await props.generateSpeech(input,selectedVoice.value,useSSML.value);audioUrl.value=URL.createObjectURL(new Blob([response])),setTimeout(()=>{audioPlayer.value&&audioPlayer.value.play()},100)}catch(error){console.error(`Error generating speech:`,error),errorMessage.value=error instanceof Error?error.message:`An unknown error occurred`}finally{isGenerating.value=!1}}}function stopTestAudio(){audioPlayer.value&&(audioPlayer.value.pause(),audioPlayer.value.currentTime=0),audioUrl.value&&(URL.revokeObjectURL(audioUrl.value),audioUrl.value=``)}return onUnmounted(()=>{audioUrl.value&&URL.revokeObjectURL(audioUrl.value)}),__expose({testText,ssmlText,useSSML,selectedVoice,isGenerating,audioUrl,errorMessage,audioPlayer,generateTestSpeech:handleGenerateTestSpeech,stopTestAudio}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,_hoisted_1$6,[createBaseVNode(`h2`,_hoisted_2$5,[createBaseVNode(`div`,_hoisted_3$4,[createVNode(unref(TestDummyMarker_default)),createBaseVNode(`div`,null,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),createBaseVNode(`div`,_hoisted_4$4,[createVNode(unref(FieldCheckbox_default),{modelValue:useSSML.value,"onUpdate:modelValue":_cache$1[0]||=$event=>useSSML.value=$event,label:unref(t)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.label`),description:unref(t)(`settings.pages.modules.speech.sections.section.voice-settings.use-ssml.description`)},null,8,[`modelValue`,`label`,`description`]),useSSML.value?withDirectives((openBlock(),createElementBlock(`textarea`,{key:1,"onUpdate:modelValue":_cache$1[2]||=$event=>ssmlText.value=$event,placeholder:unref(t)(`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,_hoisted_6$3)),[[vModelText,ssmlText.value]]):withDirectives((openBlock(),createElementBlock(`textarea`,{key:0,"onUpdate:modelValue":_cache$1[1]||=$event=>testText.value=$event,placeholder:unref(t)(`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,_hoisted_5$3)),[[vModelText,testText.value]]),createBaseVNode(`div`,_hoisted_7$2,[createBaseVNode(`label`,_hoisted_8$2,[createBaseVNode(`div`,null,[createBaseVNode(`div`,_hoisted_9$2,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.label`)),1),createBaseVNode(`div`,_hoisted_10$2,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.voice.description`)),1)]),withDirectives(createBaseVNode(`select`,{"onUpdate:modelValue":_cache$1[3]||=$event=>selectedVoice.value=$event,border:`neutral-300 dark:neutral-800 solid 2 focus:neutral-400 dark:focus:neutral-600`,transition:`border duration-250 ease-in-out`,"w-full":``,"rounded-lg":``,"px-2":``,"py-1":``,"text-nowrap":``,"text-sm":``,"outline-none":``},[(openBlock(!0),createElementBlock(Fragment,null,renderList(_ctx.availableVoices,voice=>(openBlock(),createElementBlock(`option`,{key:voice.id,value:voice.id},toDisplayString(voice.name),9,_hoisted_11$2))),128))],512),[[vModelSelect,selectedVoice.value]])])]),createBaseVNode(`div`,_hoisted_12$2,[createBaseVNode(`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:isGenerating.value||!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim()||!selectedVoice.value||!_ctx.apiKeyConfigured,class:normalizeClass({"opacity-50 cursor-not-allowed":isGenerating.value||!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim()||!selectedVoice.value||!_ctx.apiKeyConfigured}),bg:`neutral-700 dark:neutral-300`,onClick:handleGenerateTestSpeech},[createBaseVNode(`div`,_hoisted_14$2,[_cache$1[4]||=createBaseVNode(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),createBaseVNode(`span`,null,toDisplayString(isGenerating.value?unref(t)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):unref(t)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,_hoisted_13$2),audioUrl.value?(openBlock(),createElementBlock(`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:stopTestAudio},[createBaseVNode(`div`,_hoisted_15$2,[_cache$1[5]||=createBaseVNode(`div`,{"i-solar:stop-circle-bold-duotone":``},null,-1),createBaseVNode(`span`,null,toDisplayString(unref(t)(`settings.pages.modules.speech.sections.section.playground.buttons.stop.label`)),1)])])):createCommentVNode(``,!0)]),_ctx.apiKeyConfigured?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,_hoisted_16$2,toDisplayString(unref(t)(`settings.pages.providers.provider.elevenlabs.playground.validation.error-missing-api-key`)),1)),selectedVoice.value?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,_hoisted_17$1,toDisplayString(unref(t)(`settings.pages.modules.speech.sections.section.playground.select-voice.required`)),1)),errorMessage.value?(openBlock(),createElementBlock(`div`,_hoisted_18$1,toDisplayString(errorMessage.value),1)):createCommentVNode(``,!0),audioUrl.value?(openBlock(),createElementBlock(`audio`,{key:5,ref_key:`audioPlayer`,ref:audioPlayer,src:audioUrl.value,controls:``,class:`mt-2 w-full`},null,8,_hoisted_19$1)):createCommentVNode(``,!0)]),renderSlot(_ctx.$slots,`default`)]))}}),SpeechPlayground_default=SpeechPlayground_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$5={flex:`~ col md:row gap-6`},_hoisted_2$4={flex:`~ col gap-6`},_hoisted_3$3={class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},_hoisted_4$3={flex:`~ col gap-4`},_hoisted_5$2={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},_hoisted_6$2={"w-full":``,"rounded-xl":``};var SpeechProviderSettings_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SpeechProviderSettings`,props:{providerId:{},defaultModel:{},additionalSettings:{}},setup(__props){let props=__props,{t}=useI18n(),router$1=useRouter(),providersStore=useProvidersStore(),speechStore=useSpeechStore(),{providers}=storeToRefs(providersStore),providerMetadata=computed(()=>providersStore.getProviderMetadata(props.providerId)),apiKey=computed({get:()=>{var _providers$value$prop;return(_providers$value$prop=providers.value[props.providerId])?.apiKey||``},set:value$1=>{providers.value[props.providerId]||(providers.value[props.providerId]={}),providers.value[props.providerId].apiKey=value$1}}),baseUrl=computed({get:()=>{var _providers$value$prop2,_providerMetadata$val,_providerMetadata$val2;return(_providers$value$prop2=providers.value[props.providerId])?.baseUrl||((_providerMetadata$val=providerMetadata.value)==null||(_providerMetadata$val2=_providerMetadata$val.defaultOptions)==null?void 0:_providerMetadata$val2.call(_providerMetadata$val).baseUrl)||``},set:value$1=>{providers.value[props.providerId]||(providers.value[props.providerId]={}),providers.value[props.providerId].baseUrl=value$1}}),testText=ref(`Hello! This is a test of voice synthesis.`),isGenerating=ref(!1),audioUrl=ref(``),errorMessage=ref(``),audioPlayer=ref(null),useSSML=ref(!1),ssmlText=ref(``),activeSpeechVoice=ref(``),voiceSettings=ref({});function initializeVoiceSettings(){var _providers$value$prop3;(_providers$value$prop3=providers.value[props.providerId])?.voiceSettings?voiceSettings.value={...providers.value[props.providerId].voiceSettings}:voiceSettings.value={pitch:0,speed:1,volume:0,...props.additionalSettings}}onMounted(()=>{var _providers$value$prop4,_providers$value$prop5,_providerMetadata$val3,_providerMetadata$val4;providersStore.initializeProvider(props.providerId),apiKey.value=(_providers$value$prop4=providers.value[props.providerId])?.apiKey||``,baseUrl.value=(_providers$value$prop5=providers.value[props.providerId])?.baseUrl||((_providerMetadata$val3=providerMetadata.value)==null||(_providerMetadata$val4=_providerMetadata$val3.defaultOptions)==null?void 0:_providerMetadata$val4.call(_providerMetadata$val3).baseUrl)||``,initializeVoiceSettings(),providersStore.configuredProviders[props.providerId]&&speechStore.loadVoicesForProvider(props.providerId)});let debouncedUpdate=useDebounceFn(()=>{var _providerMetadata$val5,_providerMetadata$val6;providers.value[props.providerId]={...providers.value[props.providerId],apiKey:apiKey.value,baseUrl:baseUrl.value||((_providerMetadata$val5=providerMetadata.value)==null||(_providerMetadata$val6=_providerMetadata$val5.defaultOptions)==null?void 0:_providerMetadata$val6.call(_providerMetadata$val5).baseUrl)||``,voiceSettings:{...voiceSettings.value}}},1e3);watch([apiKey,baseUrl],debouncedUpdate),watch(voiceSettings,debouncedUpdate,{deep:!0});async function generateTestSpeech(){if(!testText.value.trim()&&!useSSML.value||useSSML.value&&!ssmlText.value.trim())return;let provider=providersStore.getProviderInstance(props.providerId);if(!provider){console.error(`Failed to initialize speech provider`);return}if(!activeSpeechVoice.value){console.error(`No active speech voice selected`);return}isGenerating.value=!0,errorMessage.value=``;try{audioUrl.value&&stopTestAudio();let modelToUse=props.defaultModel||`default`,input=useSSML.value?ssmlText.value:testText.value,response=await generateSpeech({...provider.speech(modelToUse,{voiceSettings:voiceSettings.value}),input,voice:activeSpeechVoice.value});audioUrl.value=URL.createObjectURL(new Blob([response])),setTimeout(()=>{audioPlayer.value&&audioPlayer.value.play()},100)}catch(error){console.error(`Error generating speech:`,error),errorMessage.value=error instanceof Error?error.message:`An unknown error occurred`}finally{isGenerating.value=!1}}function stopTestAudio(){audioPlayer.value&&(audioPlayer.value.pause(),audioPlayer.value.currentTime=0),audioUrl.value&&(URL.revokeObjectURL(audioUrl.value),audioUrl.value=``)}onUnmounted(()=>{audioUrl.value&&URL.revokeObjectURL(audioUrl.value)});function handleResetVoiceSettings(){var _providerMetadata$val7,_providerMetadata$val8;voiceSettings.value={...((_providerMetadata$val7=providerMetadata.value)==null||(_providerMetadata$val8=_providerMetadata$val7.defaultOptions)==null?void 0:_providerMetadata$val8.call(_providerMetadata$val7).voiceSettings)||{}},debouncedUpdate()}function updateVoiceSetting(key$1,value$1){voiceSettings.value[key$1]=value$1}let slotData=computed(()=>({voiceSettings:voiceSettings.value,updateVoiceSettings:updateVoiceSetting,isGenerating:isGenerating.value,testText:testText.value,useSSML:useSSML.value,ssmlText:ssmlText.value,generateTestSpeech,stopTestAudio,audioUrl:audioUrl.value,audioPlayer:audioPlayer.value,errorMessage:errorMessage.value}));return(_ctx,_cache$1)=>{var _providerMetadata$val9,_providerMetadata$val10;return openBlock(),createBlock(ProviderSettingsLayout2_default,{"provider-name":(_providerMetadata$val9=providerMetadata.value)?.localizedName,"provider-icon":(_providerMetadata$val10=providerMetadata.value)?.icon,"on-back":()=>unref(router$1).back()},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$5,[createVNode(unref(ProviderSettingsContainer_default),{class:`w-full md:w-[40%]`},{default:withCtx(()=>[createVNode(unref(ProviderBasicSettings_default),{title:unref(t)(`settings.pages.providers.common.section.basic.title`),description:unref(t)(`settings.pages.providers.common.section.basic.description`),"on-reset":handleResetVoiceSettings},{default:withCtx(()=>{var _providerMetadata$val11;return[createVNode(unref(ProviderApiKeyInput_default),{modelValue:apiKey.value,"onUpdate:modelValue":_cache$1[0]||=$event=>apiKey.value=$event,"provider-name":(_providerMetadata$val11=providerMetadata.value)?.localizedName,placeholder:`sk-`},null,8,[`modelValue`,`provider-name`]),renderSlot(_ctx.$slots,`basic-settings`)]}),_:3},8,[`title`,`description`]),createBaseVNode(`div`,_hoisted_2$4,[createBaseVNode(`h2`,_hoisted_3$3,toDisplayString(unref(t)(`settings.pages.providers.common.section.voice.title`)),1),createBaseVNode(`div`,_hoisted_4$3,[renderSlot(_ctx.$slots,`voice-settings`,normalizeProps(guardReactiveProps(slotData.value)))])]),createVNode(unref(ProviderAdvancedSettings_default),{title:unref(t)(`settings.pages.providers.common.section.advanced.title`)},{default:withCtx(()=>{var _providerMetadata$val12,_providerMetadata$val13;return[createVNode(unref(ProviderBaseUrlInput_default),{modelValue:baseUrl.value,"onUpdate:modelValue":_cache$1[1]||=$event=>baseUrl.value=$event,placeholder:((_providerMetadata$val12=providerMetadata.value)==null||(_providerMetadata$val13=_providerMetadata$val12.defaultOptions)==null?void 0:_providerMetadata$val13.call(_providerMetadata$val12).baseUrl)||``,required:``},null,8,[`modelValue`,`placeholder`]),renderSlot(_ctx.$slots,`advanced-settings`)]}),_:3},8,[`title`])]),_:3}),createBaseVNode(`div`,_hoisted_5$2,[createBaseVNode(`div`,_hoisted_6$2,[renderSlot(_ctx.$slots,`playground`,normalizeProps(guardReactiveProps(slotData.value)))])])])]),_:3},8,[`provider-name`,`provider-icon`,`on-back`])}}}),SpeechProviderSettings_default=SpeechProviderSettings_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$4={"h-full":``,"w-full":``},_hoisted_2$3={key:0,h:`[calc(100%-3rem)]`,flex:``,"flex-col":``,"justify-center":``},_hoisted_3$2={class:`mb-2 text-center md:mb-8`,"h-full":``,flex:``,"flex-1":``,"flex-col":``,"justify-center":``},_hoisted_4$2={initial:{opacity:0,scale:0},enter:{opacity:1,scale:1},class:`mb-1 flex justify-center md:mb-4`},_hoisted_5$1=[`src`],_hoisted_6$1={class:`mb-0 text-3xl text-neutral-800 font-bold md:mb-2 dark:text-neutral-100`},_hoisted_7$1={class:`text-sm text-neutral-600 md:text-lg dark:text-neutral-400`},_hoisted_8$1={key:1,h:`[calc(100%-3rem)]`,class:`mb-2 mt-4 md:mb-8`,flex:``,"flex-col":``,"gap-4":``},_hoisted_9$1={flex:``,"items-center":``},_hoisted_10$1={class:`text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`,"flex-1":``},_hoisted_11$1={"flex-1":``},_hoisted_12$1={class:`grid grid-cols-1 gap-3 overflow-y-scroll sm:grid-cols-2 md:max-h-full`},_hoisted_13$1={key:2,h:`[calc(100%-3rem)]`,class:`mb-2 mt-4 md:mb-8`,flex:``,"flex-col":``,"gap-4":``},_hoisted_14$1={flex:``,"items-center":``},_hoisted_15$1={class:`text-center text-xl text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`,"flex-1":``},_hoisted_16$1={key:0,"h-full":``,"flex-1":``},_hoisted_17={class:`space-y-4`},_hoisted_18={key:0},_hoisted_19={key:1},_hoisted_20={key:2},_hoisted_21={key:0,class:`mt-4`};var MobileOnboarding_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`MobileOnboarding`,emits:[`configured`,`skipped`],setup(__props,{emit:__emit}){let emit$1=__emit,step=ref(1),direction=ref(`next`),{t}=useI18n(),providersStore=useProvidersStore(),{providers,allChatProvidersMetadata}=storeToRefs(providersStore),popularProviders=computed(()=>{let popular=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`];return allChatProvidersMetadata.value.filter(provider=>popular.includes(provider.id)).sort((a$2,b$3)=>popular.indexOf(a$2.id)-popular.indexOf(b$3.id))}),selectedProviderId=ref(``),apiKey=ref(``),baseUrl=ref(``),accountId=ref(``),selectedProvider=computed(()=>allChatProvidersMetadata.value.find(p$5=>p$5.id===selectedProviderId.value)||null),isValidating=ref(!1),isValid$1=ref(!1),validationMessage=ref(``),needsApiKey=computed(()=>selectedProvider.value?selectedProvider.value.id!==`ollama`&&selectedProvider.value.id!==`player2`:!1),needsBaseUrl=computed(()=>selectedProvider.value?selectedProvider.value.id!==`cloudflare-workers-ai`:!1),canSave=computed(()=>!selectedProvider.value||needsApiKey.value&&!apiKey.value.trim()||needsBaseUrl.value&&!baseUrl.value.trim()||selectedProvider.value.id===`cloudflare-workers-ai`&&!accountId.value.trim()?!1:isValid$1.value);function selectProvider(provider){var _provider$defaultOpti;selectedProviderId.value=provider.id;let defaultOptions=(_provider$defaultOpti=provider.defaultOptions)?.call(provider)||{};baseUrl.value=defaultOptions?.baseUrl||``,apiKey.value=``,accountId.value=``,isValid$1.value=!1,validationMessage.value=``}function getApiKeyPlaceholder(_providerId){let placeholders={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-...`,"fireworks-ai":`fw-...`,"featherless-ai":`fw-...`,"novita-ai":`nvt-...`};return placeholders[_providerId]||`API Key`}function getBaseUrlPlaceholder(_providerId){var _selectedProvider$val,_selectedProvider$val2;let defaultOptions=((_selectedProvider$val=selectedProvider.value)==null||(_selectedProvider$val2=_selectedProvider$val.defaultOptions)==null?void 0:_selectedProvider$val2.call(_selectedProvider$val))||{};return defaultOptions?.baseUrl||`https://api.example.com/v1/`}async function validateConfiguration(){if(selectedProvider.value){isValidating.value=!0,validationMessage.value=t(`settings.dialogs.onboarding.validating`);try{let config={};needsApiKey.value&&(config.apiKey=apiKey.value.trim()),needsBaseUrl.value&&(config.baseUrl=baseUrl.value.trim()),selectedProvider.value.id===`cloudflare-workers-ai`&&(config.accountId=accountId.value.trim());let metadata=providersStore.getProviderMetadata(selectedProvider.value.id);isValid$1.value=await metadata.validators.validateProviderConfig(config),isValid$1.value?validationMessage.value=t(`settings.dialogs.onboarding.validationSuccess`):validationMessage.value=t(`settings.dialogs.onboarding.validationFailed`)}catch(error){isValid$1.value=!1,validationMessage.value=t(`settings.dialogs.onboarding.validationError`,{error:error instanceof Error?error.message:String(error)})}finally{isValidating.value=!1}}}let debouncedValidateConfiguration=useDebounceFn(()=>{selectedProvider.value&&(needsApiKey.value&&!apiKey.value.trim()||needsBaseUrl.value&&!baseUrl.value.trim()||selectedProvider.value.id===`cloudflare-workers-ai`&&!accountId.value.trim()||validateConfiguration())},500);watch([apiKey,baseUrl,accountId],()=>{selectedProvider.value&&(apiKey.value||baseUrl.value||accountId.value)&&debouncedValidateConfiguration()},{deep:!0});async function handleSave(){if(!selectedProvider.value||!canSave.value)return;let config={};needsApiKey.value&&(config.apiKey=apiKey.value.trim()),needsBaseUrl.value&&(config.baseUrl=baseUrl.value.trim()),selectedProvider.value.id===`cloudflare-workers-ai`&&(config.accountId=accountId.value.trim()),providers.value[selectedProvider.value.id]={...providers.value[selectedProvider.value.id],...config},emit$1(`configured`)}function handlePreviousStep(){step.value>1&&(direction.value=`previous`,step.value--)}function handleNextStep(){step.value<3?(direction.value=`next`,step.value++):handleSave()}return onMounted(()=>{popularProviders.value.length>0&&(selectedProviderId.value=popularProviders.value[0].id,selectProvider(popularProviders.value[0]))}),(_ctx,_cache$1)=>{let _directive_motion=resolveDirective(`motion`);return openBlock(),createElementBlock(`div`,_hoisted_1$4,[createVNode(Transition,{name:direction.value===`next`?`slide-next`:`slide-prev`,mode:`out-in`},{default:withCtx(()=>[step.value===1?(openBlock(),createElementBlock(`div`,_hoisted_2$3,[createBaseVNode(`div`,_hoisted_3$2,[withDirectives((openBlock(),createElementBlock(`div`,_hoisted_4$2,[createBaseVNode(`img`,{src:unref(onboarding_default),w:`50`},null,8,_hoisted_5$1)])),[[_directive_motion]]),createBaseVNode(`h2`,_hoisted_6$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.title`)),1),createBaseVNode(`p`,_hoisted_7$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.description`)),1)]),createVNode(unref(Button_default),{variant:`secondary`,label:unref(t)(`settings.dialogs.onboarding.next`),onClick:handleNextStep},null,8,[`label`])])):step.value===2?(openBlock(),createElementBlock(`div`,_hoisted_8$1,[createBaseVNode(`div`,_hoisted_9$1,[createBaseVNode(`button`,{"outline-none":``,onClick:handlePreviousStep},_cache$1[4]||=[createBaseVNode(`div`,{"i-solar:alt-arrow-left-line-duotone":``,"h-5":``,"w-5":``},null,-1)]),createBaseVNode(`h2`,_hoisted_10$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.selectProvider`)),1),_cache$1[5]||=createBaseVNode(`div`,{"h-5":``,"w-5":``},null,-1)]),createBaseVNode(`div`,_hoisted_11$1,[createBaseVNode(`div`,_hoisted_12$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(popularProviders.value,provider=>(openBlock(),createBlock(unref(RadioCardDetail_default),{id:provider.id,key:provider.id,modelValue:selectedProviderId.value,"onUpdate:modelValue":_cache$1[0]||=$event=>selectedProviderId.value=$event,name:`provider-selection`,value:provider.id,title:provider.localizedName||provider.id,description:provider.localizedDescription||``,onClick:$event=>selectProvider(provider)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`onClick`]))),128))])]),createVNode(unref(Button_default),{variant:`secondary`,label:unref(t)(`settings.dialogs.onboarding.next`),disabled:!selectedProviderId.value,onClick:handleNextStep},null,8,[`label`,`disabled`])])):step.value===3&&selectedProvider.value?(openBlock(),createElementBlock(`div`,_hoisted_13$1,[createBaseVNode(`div`,_hoisted_14$1,[createBaseVNode(`button`,{"outline-none":``,onClick:handlePreviousStep},_cache$1[6]||=[createBaseVNode(`div`,{"i-solar:alt-arrow-left-line-duotone":``,"h-5":``,"w-5":``},null,-1)]),createBaseVNode(`h2`,_hoisted_15$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.configureProvider`,{provider:selectedProvider.value.localizedName})),1),_cache$1[7]||=createBaseVNode(`div`,{"h-5":``,"w-5":``},null,-1)]),selectedProvider.value?(openBlock(),createElementBlock(`div`,_hoisted_16$1,[_cache$1[8]||=createBaseVNode(`div`,{class:`relative mb-4 flex flex-col gap-1 overflow-hidden rounded-lg bg-violet-50/10 py-2 pl-4 pr-3 text-sm text-neutral-900/80 backdrop-blur-md before-position-absolute before:inset-0 before:h-full before:w-1 before:rounded-full before:bg-violet-50 dark:bg-violet-900/10 dark:text-neutral-100/80 before:content-[''] before:dark:bg-violet-900`},[createBaseVNode(`div`,{text:`violet-500 dark:violet-400 font-semibold`},` Keep your API keys and credentials safe! `),createBaseVNode(`div`,null,[createBaseVNode(`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. `),createBaseVNode(`div`,null,[createTextVNode(` AIRI is open sourced at `),createBaseVNode(`div`,{"inline-flex":``,"translate-y-1":``,"items-center":``,"gap-1":``},[createBaseVNode(`div`,{"i-simple-icons:github":``,"inline-block":``}),createBaseVNode(`a`,{"decoration-underline":``,"decoration-dashed":``,href:`https://github.com/moeru-ai/airi`,target:`_blank`,rel:`noopener noreferrer`},`GitHub`)]),createTextVNode(`, if you want to check how we handle your credentials, feel free to inspect our code. `)])])],-1),createBaseVNode(`div`,_hoisted_17,[needsApiKey.value?(openBlock(),createElementBlock(`div`,_hoisted_18,[createVNode(unref(FieldInput_default),{modelValue:apiKey.value,"onUpdate:modelValue":_cache$1[1]||=$event=>apiKey.value=$event,placeholder:getApiKeyPlaceholder(selectedProvider.value.id),type:`password`,label:`API Key`,description:`Enter your API key for the selected provider.`,required:``},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),needsBaseUrl.value?(openBlock(),createElementBlock(`div`,_hoisted_19,[createVNode(unref(FieldInput_default),{modelValue:baseUrl.value,"onUpdate:modelValue":_cache$1[2]||=$event=>baseUrl.value=$event,placeholder:getBaseUrlPlaceholder(selectedProvider.value.id),type:`text`,label:`Base URL`,description:`Enter the base URL for the provider's API.`},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),selectedProvider.value.id===`cloudflare-workers-ai`?(openBlock(),createElementBlock(`div`,_hoisted_20,[createVNode(unref(ProviderAccountIdInput_default),{modelValue:accountId.value,"onUpdate:modelValue":_cache$1[3]||=$event=>accountId.value=$event},null,8,[`modelValue`])])):createCommentVNode(``,!0)]),validationMessage.value?(openBlock(),createElementBlock(`div`,_hoisted_21,[createBaseVNode(`div`,{class:normalizeClass([`flex items-center rounded-lg p-3`,[isValidating.value?`bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`:isValid$1.value?`bg-green-50 text-green-700 dark:bg-green-900/30 dark:text-green-300`:`bg-red-50 text-red-700 dark:bg-red-900/30 dark:text-red-300`]])},[createBaseVNode(`div`,{class:normalizeClass([`mr-2 text-lg`,[isValidating.value?`i-svg-spinners:3-dots-fade`:isValid$1.value?`i-solar:check-circle-bold-duotone`:`i-solar:danger-circle-bold-duotone`]])},null,2),createTextVNode(` `+toDisplayString(validationMessage.value),1)],2)])):createCommentVNode(``,!0)])):createCommentVNode(``,!0),createVNode(unref(Button_default),{variant:`primary`,disabled:!canSave.value,label:unref(t)(`settings.dialogs.onboarding.saveAndContinue`),onClick:handleSave},null,8,[`disabled`,`label`])])):createCommentVNode(``,!0)]),_:1},8,[`name`])])}}}),MobileOnboarding_default=__plugin_vue_export_helper_default(MobileOnboarding_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-8ccf0d7a`]]);const _hoisted_1$3={class:`mb-2 text-center md:mb-8`},_hoisted_2$2={class:`mb-1 flex justify-center md:mb-4`},_hoisted_3$1=[`src`],_hoisted_4$1={class:`mb-0 text-lg text-neutral-800 font-bold md:mb-2 md:text-3xl dark:text-neutral-100`},_hoisted_5={class:`text-sm text-neutral-600 md:text-lg dark:text-neutral-400`},_hoisted_6={class:`mb-2 md:mb-8`},_hoisted_7={class:`mb-4 text-center text-lg text-neutral-800 font-semibold md:text-left md:text-2xl dark:text-neutral-100`},_hoisted_8={class:`grid grid-cols-1 max-h-[25dvh] gap-3 overflow-y-scroll sm:grid-cols-2 md:max-h-full`},_hoisted_9={key:0,class:`mb-2 md:mb-8`},_hoisted_10={class:`mb-4 text-lg text-neutral-800 font-medium dark:text-neutral-100`},_hoisted_11={class:`space-y-4`},_hoisted_12={key:0},_hoisted_13={key:1},_hoisted_14={key:2},_hoisted_15={key:0,class:`mt-4`},_hoisted_16={class:`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end md:gap-3`};var Onboarding_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Onboarding`,emits:[`configured`,`skipped`],setup(__props,{emit:__emit}){let emit$1=__emit,{t}=useI18n(),providersStore=useProvidersStore(),{providers,allChatProvidersMetadata}=storeToRefs(providersStore),popularProviders=computed(()=>{let popular=[`openai`,`anthropic`,`google-generative-ai`,`openrouter-ai`,`ollama`,`deepseek`];return allChatProvidersMetadata.value.filter(provider=>popular.includes(provider.id)).sort((a$2,b$3)=>popular.indexOf(a$2.id)-popular.indexOf(b$3.id))}),selectedProviderId=ref(``),apiKey=ref(``),baseUrl=ref(``),accountId=ref(``),selectedProvider=computed(()=>allChatProvidersMetadata.value.find(p$5=>p$5.id===selectedProviderId.value)||null),isValidating=ref(!1),isValid$1=ref(!1),validationMessage=ref(``),needsApiKey=computed(()=>selectedProvider.value?selectedProvider.value.id!==`ollama`&&selectedProvider.value.id!==`player2`:!1),needsBaseUrl=computed(()=>selectedProvider.value?selectedProvider.value.id!==`cloudflare-workers-ai`:!1),canSave=computed(()=>!selectedProvider.value||needsApiKey.value&&!apiKey.value.trim()||needsBaseUrl.value&&!baseUrl.value.trim()||selectedProvider.value.id===`cloudflare-workers-ai`&&!accountId.value.trim()?!1:isValid$1.value);function selectProvider(provider){var _provider$defaultOpti2;selectedProviderId.value=provider.id;let defaultOptions=(_provider$defaultOpti2=provider.defaultOptions)?.call(provider)||{};baseUrl.value=defaultOptions?.baseUrl||``,apiKey.value=``,accountId.value=``,isValid$1.value=!1,validationMessage.value=``}function getApiKeyPlaceholder(_providerId){let placeholders={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-...`,"fireworks-ai":`fw-...`,"featherless-ai":`fw-...`,"novita-ai":`nvt-...`};return placeholders[_providerId]||`API Key`}function getBaseUrlPlaceholder(_providerId){var _selectedProvider$val3,_selectedProvider$val4;let defaultOptions=((_selectedProvider$val3=selectedProvider.value)==null||(_selectedProvider$val4=_selectedProvider$val3.defaultOptions)==null?void 0:_selectedProvider$val4.call(_selectedProvider$val3))||{};return defaultOptions?.baseUrl||`https://api.example.com/v1/`}async function validateConfiguration(){if(selectedProvider.value){isValidating.value=!0,validationMessage.value=t(`settings.dialogs.onboarding.validating`);try{let config={};needsApiKey.value&&(config.apiKey=apiKey.value.trim()),needsBaseUrl.value&&(config.baseUrl=baseUrl.value.trim()),selectedProvider.value.id===`cloudflare-workers-ai`&&(config.accountId=accountId.value.trim());let metadata=providersStore.getProviderMetadata(selectedProvider.value.id);isValid$1.value=await metadata.validators.validateProviderConfig(config),isValid$1.value?validationMessage.value=t(`settings.dialogs.onboarding.validationSuccess`):validationMessage.value=t(`settings.dialogs.onboarding.validationFailed`)}catch(error){isValid$1.value=!1,validationMessage.value=t(`settings.dialogs.onboarding.validationError`,{error:error instanceof Error?error.message:String(error)})}finally{isValidating.value=!1}}}let debouncedValidateConfiguration=useDebounceFn(()=>{selectedProvider.value&&(needsApiKey.value&&!apiKey.value.trim()||needsBaseUrl.value&&!baseUrl.value.trim()||selectedProvider.value.id===`cloudflare-workers-ai`&&!accountId.value.trim()||validateConfiguration())},500);watch([apiKey,baseUrl,accountId],()=>{selectedProvider.value&&(apiKey.value||baseUrl.value||accountId.value)&&debouncedValidateConfiguration()},{deep:!0});function handleSkip(){emit$1(`skipped`)}async function handleSave(){if(!selectedProvider.value||!canSave.value)return;let config={};needsApiKey.value&&(config.apiKey=apiKey.value.trim()),needsBaseUrl.value&&(config.baseUrl=baseUrl.value.trim()),selectedProvider.value.id===`cloudflare-workers-ai`&&(config.accountId=accountId.value.trim()),providers.value[selectedProvider.value.id]={...providers.value[selectedProvider.value.id],...config},emit$1(`configured`)}return onMounted(()=>{popularProviders.value.length>0&&(selectedProviderId.value=popularProviders.value[0].id,selectProvider(popularProviders.value[0]))}),(_ctx,_cache$1)=>{let _component_ProviderAccountIdInput=resolveComponent(`ProviderAccountIdInput`);return openBlock(),createElementBlock(Fragment,null,[createBaseVNode(`div`,_hoisted_1$3,[createBaseVNode(`div`,_hoisted_2$2,[createBaseVNode(`img`,{src:unref(onboarding_default),w:`20 md:25`},null,8,_hoisted_3$1)]),createBaseVNode(`h2`,_hoisted_4$1,toDisplayString(unref(t)(`settings.dialogs.onboarding.title`)),1),createBaseVNode(`p`,_hoisted_5,toDisplayString(unref(t)(`settings.dialogs.onboarding.description`)),1)]),createBaseVNode(`div`,_hoisted_6,[createBaseVNode(`h2`,_hoisted_7,toDisplayString(unref(t)(`settings.dialogs.onboarding.selectProvider`)),1),createBaseVNode(`div`,_hoisted_8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(popularProviders.value,provider=>(openBlock(),createBlock(unref(RadioCardDetail_default),{id:provider.id,key:provider.id,modelValue:selectedProviderId.value,"onUpdate:modelValue":_cache$1[0]||=$event=>selectedProviderId.value=$event,name:`provider-selection`,value:provider.id,title:provider.localizedName||provider.id,description:provider.localizedDescription||``,onClick:$event=>selectProvider(provider)},null,8,[`id`,`modelValue`,`value`,`title`,`description`,`onClick`]))),128))])]),selectedProvider.value?(openBlock(),createElementBlock(`div`,_hoisted_9,[createBaseVNode(`h3`,_hoisted_10,toDisplayString(unref(t)(`settings.dialogs.onboarding.configureProvider`,{provider:selectedProvider.value.localizedName})),1),createBaseVNode(`div`,_hoisted_11,[needsApiKey.value?(openBlock(),createElementBlock(`div`,_hoisted_12,[createVNode(unref(FieldInput_default),{modelValue:apiKey.value,"onUpdate:modelValue":_cache$1[1]||=$event=>apiKey.value=$event,placeholder:getApiKeyPlaceholder(selectedProvider.value.id),type:`password`,label:`API Key`,description:`Enter your API key for the selected provider.`,required:``},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),needsBaseUrl.value?(openBlock(),createElementBlock(`div`,_hoisted_13,[createVNode(unref(FieldInput_default),{modelValue:baseUrl.value,"onUpdate:modelValue":_cache$1[2]||=$event=>baseUrl.value=$event,placeholder:getBaseUrlPlaceholder(selectedProvider.value.id),type:`text`,label:`Base URL`,description:`Enter the base URL for the provider's API.`},null,8,[`modelValue`,`placeholder`])])):createCommentVNode(``,!0),selectedProvider.value.id===`cloudflare-workers-ai`?(openBlock(),createElementBlock(`div`,_hoisted_14,[createVNode(_component_ProviderAccountIdInput,{modelValue:accountId.value,"onUpdate:modelValue":_cache$1[3]||=$event=>accountId.value=$event},null,8,[`modelValue`])])):createCommentVNode(``,!0)]),validationMessage.value?(openBlock(),createElementBlock(`div`,_hoisted_15,[createBaseVNode(`div`,{class:normalizeClass([`flex items-center rounded-lg p-3`,[isValidating.value?`bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300`:isValid$1.value?`bg-green-50 text-green-700 dark:bg-green-900/30 dark:text-green-300`:`bg-red-50 text-red-700 dark:bg-red-900/30 dark:text-red-300`]])},[createBaseVNode(`div`,{class:normalizeClass([`mr-2 text-lg`,[isValidating.value?`i-svg-spinners:3-dots-fade`:isValid$1.value?`i-solar:check-circle-bold-duotone`:`i-solar:danger-circle-bold-duotone`]])},null,2),createTextVNode(` `+toDisplayString(validationMessage.value),1)],2)])):createCommentVNode(``,!0)])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_16,[createVNode(unref(Button_default),{variant:`secondary`,label:unref(t)(`settings.dialogs.onboarding.skipForNow`),onClick:handleSkip},null,8,[`label`]),createVNode(unref(Button_default),{variant:`primary`,disabled:!canSave.value,label:unref(t)(`settings.dialogs.onboarding.saveAndContinue`),onClick:handleSave},null,8,[`disabled`,`label`])])],64)}}}),Onboarding_default=Onboarding_vue_vue_type_script_setup_true_lang_default;const _hoisted_1$2={class:`flex-1 rounded-t-[10px] px-4 py-1`};var OnboardingDialog_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`OnboardingDialog`,props:{modelValue:{type:Boolean,default:!1,required:!1},modelModifiers:{}},emits:mergeModels([`configured`,`skipped`],[`update:modelValue`]),setup(__props,{emit:__emit}){let emit$1=__emit,showDialog=useModel(__props,`modelValue`),isDesktop=useMediaQuery(`(min-width: 768px)`);return(_ctx,_cache$1)=>unref(isDesktop)?(openBlock(),createBlock(unref(_sfc_main$3),{key:0,open:showDialog.value,"onUpdate:open":_cache$1[2]||=value$1=>showDialog.value=value$1},{default:withCtx(()=>[createVNode(unref(_sfc_main$2),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$1),{class:`data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut fixed inset-0 z-[9999] bg-black/50 backdrop-blur-sm`}),createVNode(unref(_sfc_main),{class:`data-[state=open]:animate-contentShow data-[state=closed]:animate-contentHide fixed left-1/2 top-1/2 z-[9999] mx-0 max-w-2xl w-[92vw] transform rounded-lg bg-white p-4 shadow-xl backdrop-blur-md md:mx-4 -translate-x-1/2 -translate-y-1/2 dark:bg-neutral-900 md:p-8`},{default:withCtx(()=>[createVNode(Onboarding_default,{onConfigured:_cache$1[0]||=$event=>emit$1(`configured`),onSkipped:_cache$1[1]||=$event=>emit$1(`skipped`)})]),_:1})]),_:1})]),_:1},8,[`open`])):(openBlock(),createBlock(unref(St),{key:1,open:showDialog.value,"should-scale-background":``,"onUpdate:open":_cache$1[5]||=value$1=>showDialog.value=value$1},{default:withCtx(()=>[createVNode(unref(_sfc_main$2),null,{default:withCtx(()=>[createVNode(unref(Bt),{class:`fixed inset-0 bg-black/40`}),createVNode(unref(Ct),{class:`fixed bottom-0 left-0 right-0 z-1000 mt-20 h-full max-h-[96%] flex flex-col rounded-t-[10px] backdrop-blur-md dark:bg-neutral-900/95`},{default:withCtx(()=>[createBaseVNode(`div`,_hoisted_1$2,[createVNode(unref(Nt),{class:`my-2`}),createVNode(MobileOnboarding_default,{onConfigured:_cache$1[3]||=$event=>emit$1(`configured`),onSkipped:_cache$1[4]||=$event=>emit$1(`skipped`)})])]),_:1})]),_:1})]),_:1},8,[`open`]))}}),OnboardingDialog_default=OnboardingDialog_vue_vue_type_script_setup_true_lang_default;const __vite_import_meta_env__={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_TARGET_HUGGINGFACE_SPACE:`true`};var SubscriptionManager=class{constructor(){babelHelpers.defineProperty(this,`subscriptions`,new Set)}add(handler){return this.subscriptions.add(handler),()=>this.subscriptions.delete(handler)}notify(a$2,b$3,c$4){if(this.subscriptions.size)for(let handler of this.subscriptions)handler(a$2,b$3,c$4)}clear(){this.subscriptions.clear()}};function isFloat(value$1){return!Number.isNaN(Number.parseFloat(value$1))}var MotionValue=class{constructor(init){babelHelpers.defineProperty(this,`current`,void 0),babelHelpers.defineProperty(this,`prev`,void 0),babelHelpers.defineProperty(this,`timeDelta`,0),babelHelpers.defineProperty(this,`lastUpdated`,0),babelHelpers.defineProperty(this,`updateSubscribers`,new SubscriptionManager),babelHelpers.defineProperty(this,`stopAnimation`,void 0),babelHelpers.defineProperty(this,`canTrackVelocity`,!1),babelHelpers.defineProperty(this,`updateAndNotify`,v$1=>{this.prev=this.current,this.current=v$1;let{delta,timestamp:timestamp$2}=getFrameData();this.lastUpdated!==timestamp$2&&(this.timeDelta=delta,this.lastUpdated=timestamp$2),es_default.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),babelHelpers.defineProperty(this,`scheduleVelocityCheck`,()=>es_default.postRender(this.velocityCheck)),babelHelpers.defineProperty(this,`velocityCheck`,({timestamp:timestamp$2})=>{this.canTrackVelocity||=isFloat(this.current),timestamp$2!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=init,this.canTrackVelocity=isFloat(this.current)}onChange(subscription){return this.updateSubscribers.add(subscription)}clearListeners(){this.updateSubscribers.clear()}set(v$1){this.updateAndNotify(v$1)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(animation){return this.stop(),new Promise(resolve$1=>{let{stop:stop$1}=animation(resolve$1);this.stopAnimation=stop$1}).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 getMotionValue(init){return new MotionValue(init)}const{isArray}=Array;function useMotionValues(){let motionValues=ref({}),stop$1=keys$3=>{let destroyKey=key$1=>{motionValues.value[key$1]&&(motionValues.value[key$1].stop(),motionValues.value[key$1].destroy(),delete motionValues.value[key$1])};keys$3?isArray(keys$3)?keys$3.forEach(destroyKey):destroyKey(keys$3):Object.keys(motionValues.value).forEach(destroyKey)},get=(key$1,from,target$1)=>{if(motionValues.value[key$1])return motionValues.value[key$1];let motionValue=getMotionValue(from);return motionValue.onChange(v$1=>target$1[key$1]=v$1),motionValues.value[key$1]=motionValue,motionValue};return tryOnUnmounted(stop$1),{motionValues,get,stop:stop$1}}function isKeyframesTarget(v$1){return Array.isArray(v$1)}function underDampedSpring(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring(to$1){return{type:`spring`,stiffness:550,damping:to$1===0?100:30,restDelta:.01,restSpeed:10}}function linearTween(){return{type:`keyframes`,ease:`linear`,duration:300}}function keyframes(values){return{type:`keyframes`,duration:800,values}}const defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween};function getDefaultTransition(valueKey,to$1){let transitionFactory;return transitionFactory=isKeyframesTarget(to$1)?keyframes:defaultTransitions[valueKey]||defaultTransitions.default,{to:to$1,...transitionFactory(to$1)}}const int={...number,transform:Math.round},valueTypes={color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter,WebkitFilter:filter,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=key$1=>valueTypes[key$1];function getValueAsType(value$1,type){return type&&typeof value$1==`number`&&type.transform?type.transform(value$1):value$1}function getAnimatableNone(key$1,value$1){let defaultValueType=getValueType(key$1);return defaultValueType!==filter&&(defaultValueType=complex),defaultValueType.getAnimatableNone?defaultValueType.getAnimatableNone(value$1):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction(definition$29){if(Array.isArray(definition$29)){let[x1,y1,x2,y2]=definition$29;return cubicBezier(x1,y1,x2,y2)}else if(typeof definition$29==`string`)return easingLookup[definition$29];return definition$29}function isEasingArray(ease){return Array.isArray(ease)&&typeof ease[0]!=`number`}function isAnimatable(key$1,value$1){return key$1===`zIndex`?!1:!!(typeof value$1==`number`||Array.isArray(value$1)||typeof value$1==`string`&&complex.test(value$1)&&!value$1.startsWith(`url(`))}function hydrateKeyframes(options$1){return Array.isArray(options$1.to)&&options$1.to[0]===null&&(options$1.to=[...options$1.to],options$1.to[0]=options$1.from),options$1}function convertTransitionToAnimationOptions({ease,times,delay,...transition}){let options$1={...transition};return times&&(options$1.offset=times),ease&&(options$1.ease=isEasingArray(ease)?ease.map(easingDefinitionToFunction):easingDefinitionToFunction(ease)),delay&&(options$1.elapsed=-delay),options$1}function getPopmotionAnimationOptions(transition,options$1,key$1){return Array.isArray(options$1.to)&&(transition.duration||=800),hydrateKeyframes(options$1),isTransitionDefined(transition)||(transition={...transition,...getDefaultTransition(key$1,options$1.to)}),{...options$1,...convertTransitionToAnimationOptions(transition)}}function isTransitionDefined({delay,repeat,repeatType,repeatDelay,from,...transition}){return!!Object.keys(transition).length}function getValueTransition(transition,key$1){return transition[key$1]||transition.default||transition}function getAnimation(key$1,value$1,target$1,transition,onComplete){let valueTransition=getValueTransition(transition,key$1),origin=valueTransition.from===null||valueTransition.from===void 0?value$1.get():valueTransition.from,isTargetAnimatable=isAnimatable(key$1,target$1);origin===`none`&&isTargetAnimatable&&typeof target$1==`string`&&(origin=getAnimatableNone(key$1,target$1));let isOriginAnimatable=isAnimatable(key$1,origin);function start(complete){let options$1={from:origin,to:target$1,velocity:transition.velocity?transition.velocity:value$1.getVelocity(),onUpdate:v$1=>value$1.set(v$1)};return valueTransition.type===`inertia`||valueTransition.type===`decay`?inertia({...options$1,...valueTransition}):animate({...getPopmotionAnimationOptions(valueTransition,options$1,key$1),onUpdate:v$1=>{options$1.onUpdate(v$1),valueTransition.onUpdate&&valueTransition.onUpdate(v$1)},onComplete:()=>{onComplete&&onComplete(),complete&&complete()}})}function set(complete){return value$1.set(target$1),onComplete&&onComplete(),complete&&complete(),{stop:()=>{}}}return!isOriginAnimatable||!isTargetAnimatable||valueTransition.type===!1?set:start}function useMotionTransitions(){let{motionValues,stop:stop$1,get}=useMotionValues(),push$1=(key$1,value$1,target$1,transition={},onComplete)=>{let from=target$1[key$1],motionValue=get(key$1,from,target$1);if(transition&&transition.immediate){motionValue.set(value$1);return}let animation=getAnimation(key$1,motionValue,value$1,transition,onComplete);motionValue.start(animation)};return{motionValues,stop:stop$1,push:push$1}}function useMotionControls(motionProperties,variants={},{motionValues,push:push$1,stop:stop$1}=useMotionTransitions()){let _variants=unref(variants),isAnimating=ref(!1);watch(motionValues,newVal=>{isAnimating.value=Object.values(newVal).filter(value$1=>value$1.isAnimating()).length>0},{immediate:!0,deep:!0});let getVariantFromKey=variant=>{if(!_variants||!_variants[variant])throw Error(`The variant ${variant} does not exist.`);return _variants[variant]},apply$2=variant=>{typeof variant==`string`&&(variant=getVariantFromKey(variant));let animations$1=Object.entries(variant).map(([key$1,value$1])=>{if(key$1!==`transition`)return new Promise(resolve$1=>push$1(key$1,value$1,motionProperties,variant.transition||getDefaultTransition(key$1,variant[key$1]),resolve$1))}).filter(Boolean);async function waitForComplete(){var _variant$transition2,_variant$transition2$;await Promise.all(animations$1),(_variant$transition2=variant.transition)==null||(_variant$transition2$=_variant$transition2.onComplete)==null||_variant$transition2$.call(_variant$transition2)}return Promise.all([waitForComplete()])},set=variant=>{let variantData=isObject(variant)?variant:getVariantFromKey(variant);Object.entries(variantData).forEach(([key$1,value$1])=>{key$1!==`transition`&&push$1(key$1,value$1,motionProperties,{immediate:!0})})},leave=async done=>{let leaveVariant;if(_variants&&(_variants.leave&&(leaveVariant=_variants.leave),!_variants.leave&&_variants.initial&&(leaveVariant=_variants.initial)),!leaveVariant){done();return}await apply$2(leaveVariant),done()};return{isAnimating,apply:apply$2,set,leave,stop:stop$1}}const isBrowser=typeof window<`u`,supportsPointerEvents=()=>isBrowser&&(window.onpointerdown===null||__vite_import_meta_env__?.TEST),supportsTouchEvents=()=>isBrowser&&(window.ontouchstart===null||__vite_import_meta_env__?.TEST),supportsMouseEvents=()=>isBrowser&&(window.onmousedown===null||__vite_import_meta_env__?.TEST);function registerEventListeners({target:target$1,state,variants,apply:apply$2}){let _variants=unref(variants),hovered=ref(!1),tapped=ref(!1),focused=ref(!1),mutableKeys=computed(()=>{let result=[...Object.keys(state.value||{})];return _variants?(_variants.hovered&&(result=[...result,...Object.keys(_variants.hovered)]),_variants.tapped&&(result=[...result,...Object.keys(_variants.tapped)]),_variants.focused&&(result=[...result,...Object.keys(_variants.focused)]),result):result}),computedProperties=computed(()=>{let result={};for(let key$1 in Object.assign(result,state.value),hovered.value&&_variants.hovered&&Object.assign(result,_variants.hovered),tapped.value&&_variants.tapped&&Object.assign(result,_variants.tapped),focused.value&&_variants.focused&&Object.assign(result,_variants.focused),result)mutableKeys.value.includes(key$1)||delete result[key$1];return result});_variants.hovered&&(useEventListener(target$1,`mouseenter`,()=>hovered.value=!0),useEventListener(target$1,`mouseleave`,()=>{hovered.value=!1,tapped.value=!1})),_variants.tapped&&(supportsMouseEvents()&&(useEventListener(target$1,`mousedown`,()=>tapped.value=!0),useEventListener(target$1,`mouseup`,()=>tapped.value=!1)),supportsPointerEvents()&&(useEventListener(target$1,`pointerdown`,()=>tapped.value=!0),useEventListener(target$1,`pointerup`,()=>tapped.value=!1)),supportsTouchEvents()&&(useEventListener(target$1,`touchstart`,()=>tapped.value=!0),useEventListener(target$1,`touchend`,()=>tapped.value=!1))),_variants.focused&&(useEventListener(target$1,`focus`,()=>focused.value=!0),useEventListener(target$1,`blur`,()=>focused.value=!1)),watch([hovered,tapped,focused],()=>{apply$2(computedProperties.value)})}function registerLifeCycleHooks({set,target:target$1,variants,variant}){let _variants=unref(variants);watch(()=>target$1,()=>{_variants&&(_variants.initial&&(set(`initial`),variant.value=`initial`),_variants.enter&&(variant.value=`enter`))},{immediate:!0,flush:`pre`})}function registerVariantsSync({state,apply:apply$2}){watch(state,newVal=>{newVal&&apply$2(newVal)},{immediate:!0})}function registerVisibilityHooks({target:target$1,variants,variant}){let _variants=unref(variants);_variants&&(_variants.visible||_variants.visibleOnce)&&useIntersectionObserver(target$1,([{isIntersecting}])=>{_variants.visible?isIntersecting?variant.value=`visible`:variant.value=`initial`:_variants.visibleOnce&&(isIntersecting&&variant.value!==`visibleOnce`?variant.value=`visibleOnce`:variant.value||=`initial`)})}function useMotionFeatures(instance,options$1={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){options$1.lifeCycleHooks&®isterLifeCycleHooks(instance),options$1.syncVariants&®isterVariantsSync(instance),options$1.visibilityHooks&®isterVisibilityHooks(instance),options$1.eventListeners&®isterEventListeners(instance)}function reactiveStyle(props={}){let state=reactive({...props}),style=ref({});return watch(state,()=>{let result={};for(let[key$1,value$1]of Object.entries(state)){let valueType=getValueType(key$1),valueAsType=getValueAsType(value$1,valueType);result[key$1]=valueAsType}style.value=result},{immediate:!0,deep:!0}),{state,style}}function usePermissiveTarget(target$1,onTarget){watch(()=>unrefElement(target$1),el=>{el&&onTarget(el)},{immediate:!0})}const translateAlias={x:`translateX`,y:`translateY`,z:`translateZ`};function reactiveTransform(props={},enableHardwareAcceleration=!0){let state=reactive({...props}),transform$1=ref(``);return watch(state,newVal=>{let result=``,hasHardwareAcceleration=!1;if(enableHardwareAcceleration&&(newVal.x||newVal.y||newVal.z)){let str=[newVal.x||0,newVal.y||0,newVal.z||0].map(val=>getValueAsType(val,px)).join(`,`);result+=`translate3d(${str}) `,hasHardwareAcceleration=!0}for(let[key$1,value$1]of Object.entries(newVal)){if(enableHardwareAcceleration&&(key$1===`x`||key$1===`y`||key$1===`z`))continue;let valueType=getValueType(key$1),valueAsType=getValueAsType(value$1,valueType);result+=`${translateAlias[key$1]||key$1}(${valueAsType}) `}enableHardwareAcceleration&&!hasHardwareAcceleration&&(result+=`translateZ(0px) `),transform$1.value=result.trim()},{immediate:!0,deep:!0}),{state,transform:transform$1}}const transformAxes=[``,`X`,`Y`,`Z`],order=[`perspective`,`translate`,`scale`,`rotate`,`skew`],transformProps=[`transformPerspective`,`x`,`y`,`z`];order.forEach(operationKey=>{transformAxes.forEach(axesKey=>{let key$1=operationKey+axesKey;transformProps.push(key$1)})});const transformPropSet=new Set(transformProps);function isTransformProp(key$1){return transformPropSet.has(key$1)}const transformOriginProps=new Set([`originX`,`originY`,`originZ`]);function isTransformOriginProp(key$1){return transformOriginProps.has(key$1)}function splitValues(variant){let transform$1={},style={};return Object.entries(variant).forEach(([key$1,value$1])=>{isTransformProp(key$1)||isTransformOriginProp(key$1)?transform$1[key$1]=value$1:style[key$1]=value$1}),{transform:transform$1,style}}function variantToStyle(variant){let{transform:_transform,style:_style}=splitValues(variant),{transform:transform$1}=reactiveTransform(_transform),{style}=reactiveStyle(_style);return transform$1.value&&(style.value.transform=transform$1.value),style.value}function useElementStyle(target$1,onInit){let _cache$1,_target$1,{state,style}=reactiveStyle();return usePermissiveTarget(target$1,el=>{_target$1=el;for(let key$1 of Object.keys(valueTypes)){if(el.style[key$1]===null||el.style[key$1]===``||isTransformProp(key$1)||isTransformOriginProp(key$1))continue;state[key$1]=el.style[key$1]}_cache$1&&Object.entries(_cache$1).forEach(([key$1,value$1])=>el.style[key$1]=value$1),onInit&&onInit(state)}),watch(style,newVal=>{if(!_target$1){_cache$1=newVal;return}for(let key$1 in newVal)_target$1.style[key$1]=newVal[key$1]},{immediate:!0}),{style:state}}function parseTransform(transform$1){let transforms=transform$1.trim().split(/\) |\)/);if(transforms.length===1)return{};let parseValues=value$1=>value$1.endsWith(`px`)||value$1.endsWith(`deg`)?Number.parseFloat(value$1):Number.isNaN(Number(value$1))?Number(value$1):value$1;return transforms.reduce((acc,transform2)=>{if(!transform2)return acc;let[name$2,transformValue]=transform2.split(`(`),valueArray=transformValue.split(`,`),values=valueArray.map(val=>parseValues(val.endsWith(`)`)?val.replace(`)`,``):val.trim())),value$1=values.length===1?values[0]:values;return{...acc,[name$2]:value$1}},{})}function stateFromTransform(state,transform$1){Object.entries(parseTransform(transform$1)).forEach(([key$1,value$1])=>{let axes=[`x`,`y`,`z`];if(key$1===`translate3d`){if(value$1===0){axes.forEach(axis=>state[axis]=0);return}value$1.forEach((axisValue,index$1)=>state[axes[index$1]]=axisValue);return}if(value$1=Number.parseFloat(`${value$1}`),key$1===`translateX`){state.x=value$1;return}if(key$1===`translateY`){state.y=value$1;return}if(key$1===`translateZ`){state.z=value$1;return}state[key$1]=value$1})}function useElementTransform(target$1,onInit){let _cache$1,_target$1,{state,transform:transform$1}=reactiveTransform();return usePermissiveTarget(target$1,el=>{_target$1=el,el.style.transform&&stateFromTransform(state,el.style.transform),_cache$1&&(el.style.transform=_cache$1),onInit&&onInit(state)}),watch(transform$1,newValue=>{if(!_target$1){_cache$1=newValue;return}_target$1.style.transform=newValue},{immediate:!0}),{transform:state}}function objectEntries(obj){return Object.entries(obj)}function useMotionProperties(target$1,defaultValues){let motionProperties=reactive({}),apply$2=values=>Object.entries(values).forEach(([key$1,value$1])=>motionProperties[key$1]=value$1),{style}=useElementStyle(target$1,apply$2),{transform:transform$1}=useElementTransform(target$1,apply$2);return watch(motionProperties,newVal=>{objectEntries(newVal).forEach(([key$1,value$1])=>{let target2=isTransformProp(key$1)?transform$1:style;target2[key$1]&&target2[key$1]===value$1||(target2[key$1]=value$1)})},{immediate:!0,deep:!0}),usePermissiveTarget(target$1,()=>defaultValues&&apply$2(defaultValues)),{motionProperties,style,transform:transform$1}}function useMotionVariants(variants={}){let _variants=unref(variants),variant=ref(),state=computed(()=>{if(variant.value)return _variants[variant.value]});return{state,variant}}function useMotion(target$1,variants={},options$1){let{motionProperties}=useMotionProperties(target$1),{variant,state}=useMotionVariants(variants),controls=useMotionControls(motionProperties,variants),instance={target:target$1,variant,variants,state,motionProperties,...controls};return useMotionFeatures(instance,options$1),instance}const transitionKeys=[`delay`,`duration`],directivePropsKeys=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...transitionKeys],fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,rollVisibleRight,rollVisibleTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop,slideVisibleRight,slideVisibleTop},CUSTOM_PRESETS=Symbol(``),MotionComponentProps={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 isObject$1(val){return Object.prototype.toString.call(val)===`[object Object]`}function clone(v$1){if(Array.isArray(v$1))return v$1.map(clone);if(isObject$1(v$1)){let res={};for(let key$1 in v$1)res[key$1]=clone(v$1[key$1]);return res}return v$1}function setupMotionComponent(props){let instances=reactive({}),customPresets=inject(CUSTOM_PRESETS,{}),preset=computed(()=>props.preset==null?{}:customPresets!=null&&props.preset in customPresets?structuredClone(toRaw(customPresets)[props.preset]):props.preset in presets?structuredClone(presets[props.preset]):{}),propsConfig=computed(()=>({initial:props.initial,enter:props.enter,leave:props.leave,visible:props.visible,visibleOnce:props.visibleOnce,hovered:props.hovered,tapped:props.tapped,focused:props.focused}));function applyTransitionHelpers(config,values){for(let transitionKey of[`delay`,`duration`]){if(values[transitionKey]==null)continue;let transitionValueParsed=Number.parseInt(values[transitionKey]);for(let variantKey of[`enter`,`visible`,`visibleOnce`]){let variantConfig=config[variantKey];if(variantConfig==null)continue;variantConfig.transition??={},variantConfig.transition[transitionKey]=transitionValueParsed}}return config}let motionConfig=computed(()=>{let config=defu({},propsConfig.value,preset.value,props.variants||{});return applyTransitionHelpers({...config},props)});function setNodeInstance(node$1,index$1,style){var _node$1$props2;node$1.props??={},(_node$1$props2=node$1.props).style??(_node$1$props2.style={}),node$1.props.style={...node$1.props.style,...style};let elementMotionConfig=applyTransitionHelpers(clone(motionConfig.value),node$1.props);return node$1.props.onVnodeMounted=({el})=>{instances[index$1]=useMotion(el,elementMotionConfig)},node$1.props.onVnodeUpdated=({el})=>{let styles=variantToStyle(instances[index$1].state);for(let[key$1,val]of Object.entries(styles))el.style[key$1]=val},node$1}return{motionConfig,setNodeInstance}}const MotionComponent=defineComponent({name:`Motion`,props:{...MotionComponentProps,is:{type:[String,Object],default:`div`}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent(props);return()=>{let style=variantToStyle(motionConfig.value.initial||{}),node$1=h(props.is,void 0,slots);return setNodeInstance(node$1,0,style),node$1}}}),MotionGroupComponent=defineComponent({name:`MotionGroup`,props:{...MotionComponentProps,is:{type:[String,Object],required:!1}},setup(props){let slots=useSlots(),{motionConfig,setNodeInstance}=setupMotionComponent(props);return()=>{var _slots$default2;let style=variantToStyle(motionConfig.value.initial||{}),nodes=(_slots$default2=slots.default)?.call(slots)||[];for(let i$1=0;i$1{await apply$2(`initial`),await apply$2(`enter`)}),onUnmounted(async()=>{await apply$2(`leave`),finalizedDisableBackButton.value=!0}),watch([()=>props.title,()=>props.subtitle,route],async()=>{await apply$2(`leave`),await nextTick(),finalizedDisableBackButton.value=props.disableBackButton,title.value=props.title,subtitle.value=props.subtitle,await nextTick(),await apply$2(`initial`),await apply$2(`enter`)}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{ref_key:`pageHeaderRef`,ref:pageHeaderRef,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`},[createBaseVNode(`button`,{onClick:_cache$1[0]||=$event=>unref(router$1).back()},[finalizedDisableBackButton.value?createCommentVNode(``,!0):(openBlock(),createElementBlock(`div`,{key:0,"i-solar:alt-arrow-left-line-duotone":``,"text-2xl":``,class:normalizeClass({"pointer-events-none op-0":!_ctx.showBackButton})},null,2))]),createBaseVNode(`h1`,_hoisted_1$1,[subtitle.value?(openBlock(),createElementBlock(`div`,_hoisted_2$1,[createBaseVNode(`span`,_hoisted_3,toDisplayString(subtitle.value),1)])):createCommentVNode(``,!0),createBaseVNode(`div`,_hoisted_4,toDisplayString(title.value),1)])],512))}}),PageHeader_default=PageHeader_vue_vue_type_script_setup_true_lang_default;const _hoisted_1=[`onClick`],_hoisted_2={flex:``,"gap-1.5":``};var Section_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`Section`,props:{title:{},icon:{},innerClass:{},expand:{type:Boolean,default:!0}},setup(__props){return(_ctx,_cache$1)=>(openBlock(),createBlock(Collapsable_default,{default:_ctx.expand},{trigger:withCtx(slotProps=>[createBaseVNode(`button`,{class:`w-full flex items-center justify-between rounded-lg px-4 py-3 outline-none transition-all duration-250 ease-in-out`,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,onClick:$event=>slotProps.setVisible(!slotProps.visible)},[createBaseVNode(`div`,_hoisted_2,[createBaseVNode(`div`,{class:normalizeClass(_ctx.icon),"size-6":``},null,2),createTextVNode(` `+toDisplayString(_ctx.title),1)]),createBaseVNode(`div`,{"i-solar:alt-arrow-down-linear":``,transition:`transform duration-250`,class:normalizeClass({"rotate-180":slotProps.visible})},null,2)],8,_hoisted_1)]),default:withCtx(()=>[createBaseVNode(`div`,{grid:``,"gap-2":``,"p-4":``,class:normalizeClass(_ctx.innerClass)},[renderSlot(_ctx.$slots,`default`)],2)]),_:3},8,[`default`]))}}),Section_default=Section_vue_vue_type_script_setup_true_lang_default,CursorFloating_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`CursorFloating`,props:{intensity:{default:1.5}},setup(__props){let props=__props,cardRef=ref(null),transformStyle=ref(``),gradientPosition=ref(`50% 50%`),sparklePosition=ref(`50% 50%`),sparkleOpacity=ref(.5);function handleMouseMove(event){if(!cardRef.value)return;let card=cardRef.value,rect=card.getBoundingClientRect(),x$3=event.clientX-rect.left,y$2=event.clientY-rect.top,cardWidth=card.offsetWidth,cardHeight=card.offsetHeight,xPercent=Math.abs(Math.floor(100/cardWidth*x$3)-100),yPercent=Math.abs(Math.floor(100/cardHeight*y$2)-100),leftPos=50+(xPercent-50)/1.5,topPos=50+(yPercent-50)/1.5,sparkleX=50+(xPercent-50)/7,sparkleY=50+(yPercent-50)/7,rotateY=(leftPos-50)/1.5*.2*props.intensity,rotateX=(topPos-50)/2*-1*.2*props.intensity,pAngle=50-xPercent+(50-yPercent),opacity=.5+Math.abs(pAngle)*.008*props.intensity;transformStyle.value=`perspective(1200px) rotateX(${rotateX}deg) rotateY(${rotateY}deg) scale3d(${1+.015*props.intensity}, ${1+.015*props.intensity}, ${1+.015*props.intensity})`,gradientPosition.value=`${leftPos}% ${topPos}%`,sparklePosition.value=`${sparkleX}% ${sparkleY}%`,sparkleOpacity.value=opacity}function resetCard(){transformStyle.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`,gradientPosition.value=`50% 50%`,sparklePosition.value=`50% 50%`,sparkleOpacity.value=.5}return onMounted(()=>{transformStyle.value=`perspective(1200px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)`}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{ref_key:`cardRef`,ref:cardRef,class:`card-hover-effect`,style:normalizeStyle({transform:transformStyle.value,"--effect-intensity":_ctx.intensity}),onMousemove:handleMouseMove,onMouseleave:resetCard},[renderSlot(_ctx.$slots,`default`,{},void 0,!0)],36))}}),CursorFloating_default=__plugin_vue_export_helper_default(CursorFloating_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-24a7a9d5`]]),ArrowTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`ArrowTransition`,props:{stageTransition:{default:()=>({primaryColor:`#666`,secondaryColor:`#ccc`})}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>stageTransition.value.primaryColor||`#666`),overlayColor2=computed(()=>stageTransition.value.secondaryColor||`#ccc`);return onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-3-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(`div`,{class:`stage-transition-3`,style:normalizeStyle({zIndex:stageTransition.value.zIndex||100})},null,4))}}),ArrowTransition_default=__plugin_vue_export_helper_default(ArrowTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-17464329`]]),BubbleWaveOutTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`BubbleWaveOutTransition`,props:{stageTransition:{}},setup(__props){let props=__props,colors=computed(()=>{var _props$stageTransitio;return(_props$stageTransitio=props.stageTransition)?.colors||[`#eee`,`#ebcb8b`,`#c56370`,`#3f3b52`]});return onMounted(()=>{var _props$stageTransitio2,_props$stageTransitio3;document.documentElement.style.setProperty(`--circle-expansion-delay`,`${(_props$stageTransitio2=props.stageTransition)?.delay||0}s`),document.documentElement.style.setProperty(`--circle-expansion-duration`,`${(_props$stageTransitio3=props.stageTransition)?.duration||.4}s`),colors.value.forEach((color$2,index$1)=>{document.documentElement.style.setProperty(`--circle-expansion-color-${index$1+1}`,color$2)})}),(_ctx,_cache$1)=>{var _ctx$stageTransition;return openBlock(),createElementBlock(`div`,{class:`circle-expansion-transition`,style:normalizeStyle({zIndex:(_ctx$stageTransition=_ctx.stageTransition)?.zIndex||100})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(colors.value,(_$2,index$1)=>(openBlock(),createElementBlock(`div`,{key:index$1}))),128))],4)}}}),BubbleWaveOutTransition_default=__plugin_vue_export_helper_default(BubbleWaveOutTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-4624be9e`]]),FantasyFallTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`FantasyFallTransition`,props:{stageTransition:{}},setup(__props){let props=__props,direction=computed(()=>{var _props$stageTransitio4;return(_props$stageTransitio4=props.stageTransition)?.direction||`up`}),directionClass=computed(()=>`fantasy-fall-${direction.value}`);return onMounted(()=>{var _props$stageTransitio5,_props$stageTransitio6,_props$stageTransitio7,_props$stageTransitio8,_props$stageTransitio9,_props$stageTransitio10;document.documentElement.style.setProperty(`--fantasy-fall-color`,(_props$stageTransitio5=props.stageTransition)?.primaryColor||`#eee`),document.documentElement.style.setProperty(`--fantasy-fall-duration`,`${(_props$stageTransitio6=props.stageTransition)?.duration||.6}s`),document.documentElement.style.setProperty(`--fantasy-fall-delay`,`${(_props$stageTransitio7=props.stageTransition)?.delay||0}s`),document.documentElement.style.setProperty(`--fantasy-fall-radius-sm`,`${((_props$stageTransitio8=props.stageTransition)==null||(_props$stageTransitio8=_props$stageTransitio8.borderRadius)==null?void 0:_props$stageTransitio8.sm)||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-md`,`${((_props$stageTransitio9=props.stageTransition)==null||(_props$stageTransitio9=_props$stageTransitio9.borderRadius)==null?void 0:_props$stageTransitio9.md)||`14rem`}`),document.documentElement.style.setProperty(`--fantasy-fall-radius-lg`,`${((_props$stageTransitio10=props.stageTransition)==null||(_props$stageTransitio10=_props$stageTransitio10.borderRadius)==null?void 0:_props$stageTransitio10.lg)||`50%`}`)}),(_ctx,_cache$1)=>{var _ctx$stageTransition2;return openBlock(),createElementBlock(`div`,{class:normalizeClass([`fantasy-fall-transition`,directionClass.value]),style:normalizeStyle({zIndex:(_ctx$stageTransition2=_ctx.stageTransition)?.zIndex??100})},null,6)}}}),FantasyFallTransition_default=__plugin_vue_export_helper_default(FantasyFallTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-826171f5`]]),MultipleBlocksRevealTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`MultipleBlocksRevealTransition`,props:{stageTransition:{}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>{var _stageTransition$valu;return(_stageTransition$valu=stageTransition.value)?.primaryColor||`#666`}),overlayColor2=computed(()=>{var _stageTransition$valu2;return(_stageTransition$valu2=stageTransition.value)?.secondaryColor||`#ccc`});return onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-4-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>{var _stageTransition$valu3;return openBlock(),createElementBlock(`div`,{class:`stage-transition-4`,style:normalizeStyle({zIndex:(_stageTransition$valu3=stageTransition.value)?.zIndex??100})},_cache$1[0]||=[createStaticVNode(`
`,5)],4)}}}),MultipleBlocksRevealTransition_default=__plugin_vue_export_helper_default(MultipleBlocksRevealTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-4221f976`]]),SlideTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SlideTransition`,props:{stageTransition:{}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>{var _stageTransition$valu4;return(_stageTransition$valu4=stageTransition.value)?.primaryColor||`#666`}),overlayColor2=computed(()=>{var _stageTransition$valu5;return(_stageTransition$valu5=stageTransition.value)?.secondaryColor||`#ccc`});return watch([stageTransition,overlayColor1,overlayColor2],()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,overlayColor2.value)}),onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-1-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>{var _stageTransition$valu6;return openBlock(),createElementBlock(`div`,{class:`stage-transition-1`,style:normalizeStyle({zIndex:(_stageTransition$valu6=stageTransition.value)?.zIndex??100})},null,4)}}}),SlideTransition_default=__plugin_vue_export_helper_default(SlideTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-81c0af14`]]),SlopeSlideTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`SlopeSlideTransition`,props:{stageTransition:{}},setup(__props){let props=__props,stageTransition=computed(()=>props.stageTransition),overlayColor1=computed(()=>{var _stageTransition$valu7;return(_stageTransition$valu7=stageTransition.value)?.primaryColor??`#666`}),overlayColor2=computed(()=>{var _stageTransition$valu8;return(_stageTransition$valu8=stageTransition.value)?.secondaryColor??`#ccc`});return onMounted(()=>{document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-1`,overlayColor1.value),document.documentElement.style.setProperty(`--stage-transition-2-overlay-color-2`,overlayColor2.value)}),(_ctx,_cache$1)=>{var _stageTransition$valu9;return openBlock(),createElementBlock(`div`,{class:`stage-transition-2`,style:normalizeStyle({zIndex:(_stageTransition$valu9=stageTransition.value)?.zIndex??100})},null,4)}}}),SlopeSlideTransition_default=__plugin_vue_export_helper_default(SlopeSlideTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-9e8b66c8`]]),RectanglesRotateTransition_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`RectanglesRotateTransition`,props:{stageTransition:{}},setup(__props){let props=__props;return onMounted(()=>{var _props$stageTransitio11,_props$stageTransitio12,_props$stageTransitio13,_props$stageTransitio14,_props$stageTransitio15,_props$stageTransitio16,_props$stageTransitio17;document.documentElement.style.setProperty(`--rectangle-rotate-1-color`,(_props$stageTransitio11=props.stageTransition)?.primaryColor||`#ebcb8b`),document.documentElement.style.setProperty(`--rectangle-rotate-2-color`,(_props$stageTransitio12=props.stageTransition)?.secondaryColor||`#c56370`),document.documentElement.style.setProperty(`--rectangle-rotate-3-color`,(_props$stageTransitio13=props.stageTransition)?.tertiaryColor||`#43445b`),document.documentElement.style.setProperty(`--rectangle-rotate-duration`,`${(_props$stageTransitio14=props.stageTransition)?.duration||.6}s`),document.documentElement.style.setProperty(`--rectangle-rotate-delay`,`${(_props$stageTransitio15=props.stageTransition)?.delay||0}s`),document.documentElement.style.setProperty(`--rectangle-rotate-stagger`,`${(_props$stageTransitio16=props.stageTransition)?.staggerDelay||.1}s`),document.documentElement.style.setProperty(`--rectangle-rotate-rotation`,`${(_props$stageTransitio17=props.stageTransition)?.rotation||270}deg`)}),(_ctx,_cache$1)=>{var _ctx$stageTransition3;return openBlock(),createElementBlock(`div`,{class:`rectangle-rotate-transition`,style:normalizeStyle({zIndex:(_ctx$stageTransition3=_ctx.stageTransition)?.zIndex??100})},_cache$1[0]||=[createBaseVNode(`div`,{class:`rectangle rectangle-rotate-1`},[createBaseVNode(`div`)],-1),createBaseVNode(`div`,{class:`rectangle rectangle-rotate-2`},[createBaseVNode(`div`)],-1),createBaseVNode(`div`,{class:`rectangle rectangle-rotate-3`},[createBaseVNode(`div`)],-1)],4)}}}),RectanglesRotateTransition_default=__plugin_vue_export_helper_default(RectanglesRotateTransition_vue_vue_type_script_setup_true_lang_default,[[`__scopeId`,`data-v-45ea2f7f`]]),StageTransitionGroup_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`StageTransitionGroup`,props:{primaryColor:{},secondaryColor:{},tertiaryColor:{},colors:{},zIndex:{},disableTransitions:{type:Boolean},usePageSpecificTransitions:{type:Boolean}},setup(__props){let props=__props,router$1=useRouter(),showTransition=ref(!1),transitionStage=ref(),activeTransitionName=ref(``),activeStageTransitionParams=ref(),transitions=shallowRef({slide:{component:SlideTransition_default,duration:2700},"slope-slide":{component:SlopeSlideTransition_default,duration:2700},arrow:{component:ArrowTransition_default,duration:2700},"multiple-blocks-reveal":{component:MultipleBlocksRevealTransition_default,duration:2800},"fantasy-fall":{component:FantasyFallTransition_default,duration:2700},"rectangles-rotate":{component:RectanglesRotateTransition_default,duration:2700},"bubble-wave-out":{component:BubbleWaveOutTransition_default,duration:1e3}}),lifecycleHooks=ref([]);function addTransitionHook(hook){return lifecycleHooks.value.push(hook),()=>{let index$1=lifecycleHooks.value.indexOf(hook);index$1>=0&&lifecycleHooks.value.splice(index$1,1)}}async function triggerHooks(stage,data$10={}){transitionStage.value=stage;for(let hook of lifecycleHooks.value)try{await Promise.resolve(hook(stage,data$10))}catch(error){console.error(`Error in transition hook at stage "${stage}":`,error)}}async function triggerTransitionAsyncFn(params,next,resolve$1){if(params.name===`none`||!params.name){next(),resolve$1();return}let transition=transitions.value[params.name];if(!transition){console.error(`Transition ${params.name} not found`),next(),resolve$1();return}let navTiming=transition.nextDelay===void 0?transition.duration/3:transition.nextDelay,hasNavigated=!1,navigationHook=stage=>{stage===`navigation`&&!hasNavigated&&(hasNavigated=!0,next())},removeNavHook=addTransitionHook(navigationHook);try{await triggerHooks(`before-enter`,{transitionName:params.name}),showTransition.value&&(await triggerHooks(`before-leave`,{transitionName:activeTransitionName.value}),activeTransitionName.value=``,activeStageTransitionParams.value=void 0,showTransition.value=!1,await triggerHooks(`after-leave`,{transitionName:activeTransitionName.value}),await new Promise(r$2=>setTimeout(r$2,50))),activeTransitionName.value=params.name,activeStageTransitionParams.value=params,showTransition.value=!0,await triggerHooks(`enter-active`,{transitionName:name}),setTimeout(async()=>{await triggerHooks(`navigation`,{transitionName:params.name,config:transition}),hasNavigated||(hasNavigated=!0,next())},navTiming),setTimeout(async()=>{await triggerHooks(`after-enter`,{transitionName:params.name})},transition.duration),setTimeout(async()=>{await triggerHooks(`before-leave`,{transitionName:params.name})},transition.duration+10),setTimeout(async()=>{await triggerHooks(`leave-active`,{transitionName:params.name})},transition.duration+20);let totalDuration=transition.exitDuration??0;setTimeout(async()=>{showTransition.value=!1,activeTransitionName.value=``,activeStageTransitionParams.value=void 0,await triggerHooks(`after-leave`,{transitionName:params.name}),resolve$1()},transition.duration+totalDuration)}catch(error){console.error(error)}finally{removeNavHook(),setTimeout(()=>{hasNavigated||(hasNavigated=!0,next())},transition.duration*2)}}function triggerTransition(params,next){return new Promise(resolve$1=>{triggerTransitionAsyncFn(params,next,resolve$1)})}return router$1.beforeEach((to$1,_from,next)=>{if(props.disableTransitions){next();return}if(typeof to$1.meta.stageTransition!=`object`){next();return}let stageTransition=to$1.meta.stageTransition;if(props.usePageSpecificTransitions&&stageTransition.pageSpecificAvailable){next();return}props.primaryColor!==void 0&&(stageTransition.primaryColor=props.primaryColor),props.secondaryColor!==void 0&&(stageTransition.secondaryColor=props.secondaryColor),props.tertiaryColor!==void 0&&(stageTransition.tertiaryColor=props.tertiaryColor),props.colors!==void 0&&(stageTransition.colors=props.colors),props.zIndex!==void 0&&(stageTransition.zIndex=props.zIndex),triggerTransition(stageTransition,next)}),(_ctx,_cache$1)=>(openBlock(),createElementBlock(Fragment,null,[renderSlot(_ctx.$slots,`default`),showTransition.value?(openBlock(),createElementBlock(Fragment,{key:0},[transitions.value[activeTransitionName.value]?(openBlock(),createBlock(resolveDynamicComponent(transitions.value[activeTransitionName.value].component),{key:0,"stage-transition":activeStageTransitionParams.value},null,8,[`stage-transition`])):createCommentVNode(``,!0)],64)):createCommentVNode(``,!0)],64))}}),StageTransitionGroup_default=StageTransitionGroup_vue_vue_type_script_setup_true_lang_default,App_vue_vue_type_script_setup_true_lang_default=defineComponent({__name:`App`,setup(__props){let i18n$1=useI18n(),settings=storeToRefs(useSettings()),onboardingStore=useOnboardingStore(),{shouldShowSetup}=storeToRefs(onboardingStore),isDark=useDark(),primaryColor=computed(()=>isDark.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))`),secondaryColor=computed(()=>isDark.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))`),tertiaryColor=computed(()=>isDark.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))`),colors=computed(()=>[primaryColor.value,secondaryColor.value,tertiaryColor.value,isDark.value?`#121212`:`#FFFFFF`]);watch(settings.language,()=>{i18n$1.locale.value=settings.language.value}),watch(settings.themeColorsHue,()=>{document.documentElement.style.setProperty(`--chromatic-hue`,settings.themeColorsHue.value.toString())},{immediate:!0}),watch(settings.themeColorsHueDynamic,()=>{document.documentElement.classList.toggle(`dynamic-hue`,settings.themeColorsHueDynamic.value)},{immediate:!0}),onMounted(()=>{onboardingStore.initializeSetupCheck()});function handleSetupConfigured(){onboardingStore.markSetupCompleted()}function handleSetupSkipped(){onboardingStore.markSetupSkipped()}return(_ctx,_cache$1)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(unref(StageTransitionGroup_default),{"primary-color":primaryColor.value,"secondary-color":secondaryColor.value,"tertiary-color":tertiaryColor.value,colors:colors.value,"z-index":100,"disable-transitions":unref(settings).disableTransitions.value,"use-page-specific-transitions":unref(settings).usePageSpecificTransitions.value},{default:withCtx(()=>[createVNode(unref(RouterView))]),_:1},8,[`primary-color`,`secondary-color`,`tertiary-color`,`colors`,`disable-transitions`,`use-page-specific-transitions`]),createVNode(unref(OnboardingDialog_default),{modelValue:unref(shouldShowSetup),"onUpdate:modelValue":_cache$1[0]||=$event=>isRef(shouldShowSetup)?shouldShowSetup.value=$event:null,onConfigured:handleSetupConfigured,onSkipped:handleSetupSkipped},null,8,[`modelValue`])],64))}}),App_default=App_vue_vue_type_script_setup_true_lang_default,data$9={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. @@ -5002,7 +5002,7 @@ The available emotions: - <{'|'}DELAY:3{'|'}> (Delay for 3 seconds) And the last, do what ever you want! -`}},base_default$1=data$9,data$8={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`,validating:`Validating configuration...`,validationSuccess:`✓ Configuration is valid!`,validationFailed:`✗ Configuration validation failed`,validationError:`Validation error: {error}`,skipForNow:`Skip for now`,saveAndContinue:`Save and Continue`}},language:{chinese:`简体中文`,"zh-CN":`简体中文`,"zh-Hans":`简体中文`,english:`English`,en:`English`,"en-US":`English (US)`,title:`Language`,description:`Change the language of the AIRI interface. This will not affect the language of the character's responses. +`}},base_default$1=data$9,data$8={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`,validating:`Validating configuration...`,validationSuccess:`Configuration is valid!`,validationFailed:`Configuration validation failed`,validationError:`Validation error: {error}`,skipForNow:`Skip for now`,saveAndContinue:`Save and Continue`}},language:{chinese:`简体中文`,"zh-CN":`简体中文`,"zh-Hans":`简体中文`,english:`English`,en:`English`,"en-US":`English (US)`,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`},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`},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`},"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`,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 Account ID`}}},title:`Cloudflare Workers AI`},common:{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`},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`},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`},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`}},title:`Providers`},scene:{description:`Configure the environment where the character lives`,title:`Scene`},themes:{"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`},"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:`Appearance`}},sections:{section:{general:{title:`General`}}},theme:{title:`Theme`,description:`Switch the base theme of AIRI, Light mode or Dark mode. `},title:`Settings`,voices:`Voice`},settings_default$2=data$8,data$7={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`Core System`,you:`You`}},tabs:{chat:`Chat`,clothes:`Clothes`,custom:`Custom`}},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`},stage_default$2=data$7,data$6={"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`}},themes:{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...`}}}},settings_default$3=data$6,data$5={operations:{"load-models":`Load Models`,"load-models-status":{loading:`Loading`,ready:`Ready`}}},stage_default$3=data$5,tamagotchi_default$1={stage:stage_default$3,settings:settings_default$3},en_default={base:base_default$1,settings:settings_default$2,stage:stage_default$2,tamagotchi:tamagotchi_default$1},data$4={prompt:{prefix:`(来自 Neko Ayaka)早上好!你终于醒了。 @@ -5021,6 +5021,6 @@ And the last, do what ever you want! - <{'|'}DELAY:3{'|'}> (延迟 3 秒) 最后,做任何你想做的事! -`}},base_default=data$4,data$3={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`,validating:`正在验证配置...`,validationSuccess:`✓ 配置有效!`,validationFailed:`✗ 配置验证失败`,validationError:`验证错误:{error}`,skipForNow:`暂时跳过`,saveAndContinue:`保存并继续`}},language:{chinese:`简体中文`,english:`English`,title:`语言`},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 设置`},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:`角色模型`},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 系统中角色的大脑。 +`}},base_default=data$4,data$3={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`,validating:`正在验证配置...`,validationSuccess:`配置有效!`,validationFailed:`配置验证失败`,validationError:`验证错误:{error}`,skipForNow:`暂时跳过`,saveAndContinue:`保存并继续`}},language:{chinese:`简体中文`,english:`English`,title:`语言`},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 设置`},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:`角色模型`},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:{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:`月之暗面`},novita:{description:`novita.ai`,title:`Novita`},ollama:{description:`ollama.ai`,title:`Ollama`},openai:{description:`OpenAi.com`,title:`OpenAI`},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`},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`}},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:`声线`},settings_default=data$3,data$2={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`核心系统`,you:`你`}},tabs:{chat:`聊天`,clothes:`换装`,custom:`自定义`}},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:`等待中`},stage_default=data$2,data$1={"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":`请按下按键...`}}}},settings_default$1=data$1,data={operations:{"load-models":`加载推理模型`,"load-models-status":{loading:`加载中`,ready:`已就绪`}}},stage_default$1=data,tamagotchi_default={stage:stage_default$1,settings:settings_default$1},zh_Hans_default={base:base_default,settings:settings_default,stage:stage_default,tamagotchi:tamagotchi_default},locales_default={en:en_default,"zh-Hans":zh_Hans_default};const languageRemap={"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`};function getLocale(){let language=localStorage.getItem(`settings/language`),languages=Object.keys(locales_default);return languageRemap[language||`en`]!=null&&(language=languageRemap[language||`en`]),language&&languages.includes(language)?language:`en`}const i18n=createI18n({legacy:!1,locale:getLocale(),fallbackLocale:`en`,messages:locales_default});var import_nprogress=__toESM(require_nprogress());const pinia=createPinia(),routeRecords=setupLayouts(routes);let router;router=createRouter({routes:routeRecords,history:createWebHashHistory()}),router.beforeEach((to$1,from)=>{to$1.path!==from.path&&import_nprogress.default.start()}),router.afterEach(()=>{import_nprogress.default.done()}),router.isReady().then(async()=>{}).catch(()=>{}),createApp(App_default).use(MotionPlugin).use(autoAnimatePlugin).use(router).use(pinia).use(i18n).use(mo).mount(`#app`);export{AdditiveBlending,AlwaysStencilFunc,AnimationMixer,Audio$1 as Audio,AudioListener,AudioLoader,BackSide,Box2,Box3,BoxGeometry,BufferAttribute,BufferGeometry,Button_default,CatmullRomCurve3,ClampToEdgeWrapping,Collapsable_default,Color,ColorHueRange_default,Comment,CompressedTexture,CubeCamera,CubeReflectionMapping,CubeTextureLoader,CursorFloating_default,CylinderGeometry,DEFAULT_THEME_COLORS_HUE,DataTexture,DataTextureLoader,DataUtils,DepthTexture,DoubleSide,EMOTION_EmotionMotionName_value,EMOTION_VRMExpressionName_value,EdgesGeometry,Ee,Emotion,EmotionNeutralMotionName,EmotionThinkMotionName,EquirectangularReflectionMapping,Euler,EventDispatcher,ExtrudeGeometry,FieldCheckbox_default,FieldInput_default,FieldKeyValues_default,FieldRange_default,FieldSelect_default,FieldValues_default,FileLoader,Float32BufferAttribute,FloatType,Fragment,FrontSide,Group,HalfFloatType,IconItem_default,IconStatusItem_default,InstancedBufferGeometry,InstancedInterleavedBuffer,InstancedMesh,InterleavedBuffer,InterleavedBufferAttribute,InterpolateDiscrete,InterpolateLinear,Ir,LevelMeter_default,Line,Line3,LineBasicMaterial,LinearFilter,LinearMipmapLinearFilter,LinearMipmapNearestFilter,Loader,MOUSE,Material,MathUtils,Matrix3,Matrix4,Mesh,MeshBasicMaterial,MeshDepthMaterial,MeshStandardMaterial,MirroredRepeatWrapping,Mn,NearestFilter,NearestMipmapLinearFilter,NearestMipmapNearestFilter,NoToneMapping,Object3D,OctahedronGeometry,Option_default,OrthographicCamera,PageHeader_default,Path,PerspectiveCamera,Plane,PlaneGeometry,PropertyBinding,ProviderAccountIdInput_default,ProviderAdvancedSettings_default,ProviderApiKeyInput_default,ProviderBaseUrlInput_default,ProviderBasicSettings_default,ProviderSettingsContainer_default,ProviderSettingsLayout_default,Q$1 as Q,QuadraticBezierCurve3,Quaternion,REVISION,RGBAFormat,RadioCardManySelect_default,RadioCardSimple_default,RawShaderMaterial,Ray,Raycaster,RepeatWrapping,ReplaceStencilOp,RouterLink,RouterView,Scene,Screen_default,Section_default,Select_default,ShaderChunk,ShaderMaterial,Shape,ShapeGeometry,ShapePath,ShapeUtils,Skeleton_default,SkinnedMesh,SpeechPlayground_default,SpeechProviderSettings_default,Sphere,SphereGeometry,Spherical,TOUCH,Teleport,TestDummyMarker_default,Texture,TextureLoader,ThresholdMeter_default,TimeSeriesChart_default,TorusGeometry,Transition,TransitionVertical_default,Triangle,Uniform,UniformsLib,UniformsUtils,VRMUtils,Vector2,Vector3,Vector4,Vn,VoiceCardManySelect_default,WebGLCubeRenderTarget,WebGLRenderTarget,WebGLRenderer,WireframeGeometry,ZodFirstPartyTypeKind,__commonJSMin,__export,__plugin_vue_export_helper_default,__require,__toDynamicImportESM,__toESM,__vitePreload,arrow,breakpointsTailwind,camelize,check,clipFromVRMAnimation,cloneVNode,computePosition,computed,createBaseVNode,createBlock,createCommentVNode,createCoords,createElementBlock,createTextVNode,createVNode,customRef,defineComponent,defu,dn,effectScope,flip,floor,formatHex,generateSpeech,getCurrentInstance,getCurrentScope,guardReactiveProps,h,hide,inject,io,isReactive,isRef,lerp$1 as lerp,limitShift,llmInferenceEndToken,loadVRMAnimation,loadVrm,markRaw,max,mergeDefaults,mergeModels,mergeProps,min,missingDependenciesUrl,nextTick,normalizeClass,normalizeProps,normalizeStyle,offset,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onMounted,onScopeDispose,onUnmounted,onUpdated,openBlock,pe$1 as pe,provide,randFloat,randomSaccadeInterval,reactive,readonly,rectToClientRect,ref,refDebounced,refThrottled,render,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,round$1 as round,shallowReactive,shallowReadonly,shallowRef,shift,size,sleep$1 as sleep,so,storeToRefs,streamText,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue$1 as toValue,triggerRef,tryImport,unref,until,useAiriCardStore,useAttrs,useAudioContext,useBlink,useBreakpoints,useChatStore,useClipboard,useConsciousnessStore,useDark,useDebounceFn,useDelayMessageQueue,useDevicesList,useElementBounding,useEmotionsMessageQueue,useFileDialog,useI18n,useId$1 as useId,useIdleEyeSaccades,useLocalStorage,useMarkdown,useMessageContentQueue,useMicVAD,useModel,useMouse,useObjectUrl,usePointer,useProvidersStore,useQueue,useResizeObserver,useRoute,useRouter,useScreenSafeArea,useScroll,useSettings,useSlots,useSpeakingStore,useSpeechStore,useUserMedia,useVRMEmote,useWhisper,vModelCheckbox,vModelRadio,vModelSelect,vModelText,vShow,watch,watchDebounced,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDirectives,withKeys,withModifiers}; \ No newline at end of file +`},title:`设置`,voices:`声线`},settings_default=data$3,data$2={chat:{message:{"character-name":{airi:`AIRI`,"core-system":`核心系统`,you:`你`}},tabs:{chat:`聊天`,clothes:`换装`,custom:`自定义`}},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:`等待中`},stage_default=data$2,data$1={"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":`请按下按键...`}}}},settings_default$1=data$1,data={operations:{"load-models":`加载推理模型`,"load-models-status":{loading:`加载中`,ready:`已就绪`}}},stage_default$1=data,tamagotchi_default={stage:stage_default$1,settings:settings_default$1},zh_Hans_default={base:base_default,settings:settings_default,stage:stage_default,tamagotchi:tamagotchi_default},locales_default={en:en_default,"zh-Hans":zh_Hans_default};const languageRemap={"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`};function getLocale(){let language=localStorage.getItem(`settings/language`),languages=Object.keys(locales_default);return languageRemap[language||`en`]!=null&&(language=languageRemap[language||`en`]),language&&languages.includes(language)?language:`en`}const i18n=createI18n({legacy:!1,locale:getLocale(),fallbackLocale:`en`,messages:locales_default});var import_nprogress=__toESM(require_nprogress());const pinia=createPinia(),routeRecords=setupLayouts(routes);let router;router=createRouter({routes:routeRecords,history:createWebHashHistory()}),router.beforeEach((to$1,from)=>{to$1.path!==from.path&&import_nprogress.default.start()}),router.afterEach(()=>{import_nprogress.default.done()}),router.isReady().then(async()=>{}).catch(()=>{}),createApp(App_default).use(MotionPlugin).use(autoAnimatePlugin).use(router).use(pinia).use(i18n).use(mo).mount(`#app`);export{AdditiveBlending,AlwaysStencilFunc,AnimationMixer,Audio$1 as Audio,AudioListener,AudioLoader,BackSide,Box2,Box3,BoxGeometry,BufferAttribute,BufferGeometry,Button_default,CatmullRomCurve3,ClampToEdgeWrapping,Collapsable_default,Color,ColorHueRange_default,Comment,CompressedTexture,CubeCamera,CubeReflectionMapping,CubeTextureLoader,CursorFloating_default,CylinderGeometry,DEFAULT_THEME_COLORS_HUE,DataTexture,DataTextureLoader,DataUtils,DepthTexture,DoubleSide,EMOTION_EmotionMotionName_value,EMOTION_VRMExpressionName_value,EdgesGeometry,Ee$1 as Ee,Emotion,EmotionNeutralMotionName,EmotionThinkMotionName,EquirectangularReflectionMapping,Euler,EventDispatcher,ExtrudeGeometry,FieldCheckbox_default,FieldInput_default,FieldKeyValues_default,FieldRange_default,FieldSelect_default,FieldValues_default,FileLoader,Float32BufferAttribute,FloatType,Fragment,FrontSide,Group,HalfFloatType,IconItem_default,IconStatusItem_default,InstancedBufferGeometry,InstancedInterleavedBuffer,InstancedMesh,InterleavedBuffer,InterleavedBufferAttribute,InterpolateDiscrete,InterpolateLinear,Ir,LevelMeter_default,Line,Line3,LineBasicMaterial,LinearFilter,LinearMipmapLinearFilter,LinearMipmapNearestFilter,Loader,MOUSE,Material,MathUtils,Matrix3,Matrix4,Mesh,MeshBasicMaterial,MeshDepthMaterial,MeshStandardMaterial,MirroredRepeatWrapping,Mn,NearestFilter,NearestMipmapLinearFilter,NearestMipmapNearestFilter,NoToneMapping,Object3D,OctahedronGeometry,Option_default,OrthographicCamera,PageHeader_default,Path,PerspectiveCamera,Plane,PlaneGeometry,PropertyBinding,ProviderAccountIdInput_default,ProviderAdvancedSettings_default,ProviderApiKeyInput_default,ProviderBaseUrlInput_default,ProviderBasicSettings_default,ProviderSettingsContainer_default,ProviderSettingsLayout_default,Q$2 as Q,QuadraticBezierCurve3,Quaternion,REVISION,RGBAFormat,RadioCardManySelect_default,RadioCardSimple_default,RawShaderMaterial,Ray,Raycaster,RepeatWrapping,ReplaceStencilOp,RouterLink,RouterView,Scene,Screen_default,Section_default,Select_default,ShaderChunk,ShaderMaterial,Shape,ShapeGeometry,ShapePath,ShapeUtils,Skeleton_default,SkinnedMesh,SpeechPlayground_default,SpeechProviderSettings_default,Sphere,SphereGeometry,Spherical,TOUCH,Teleport,TestDummyMarker_default,Texture,TextureLoader,ThresholdMeter_default,TimeSeriesChart_default,TorusGeometry,Transition,TransitionVertical_default,Triangle,Uniform,UniformsLib,UniformsUtils,VRMUtils,Vector2,Vector3,Vector4,Vn,VoiceCardManySelect_default,WebGLCubeRenderTarget,WebGLRenderTarget,WebGLRenderer,WireframeGeometry,ZodFirstPartyTypeKind,__commonJSMin,__export,__plugin_vue_export_helper_default,__require,__toDynamicImportESM,__toESM,__vitePreload,arrow,breakpointsTailwind,camelize,check,clipFromVRMAnimation,cloneVNode,computePosition,computed,createBaseVNode,createBlock,createCommentVNode,createCoords,createElementBlock,createTextVNode,createVNode,customRef,defineComponent,defu,dn,effectScope,flip,floor,formatHex,generateSpeech,getCurrentInstance,getCurrentScope,guardReactiveProps,h,hide,inject,io,isReactive,isRef,lerp$1 as lerp,limitShift,llmInferenceEndToken,loadVRMAnimation,loadVrm,markRaw,max,mergeDefaults,mergeModels,mergeProps,min,missingDependenciesUrl,nextTick,normalizeClass,normalizeProps,normalizeStyle,offset,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onMounted,onScopeDispose,onUnmounted,onUpdated,openBlock,pe$1 as pe,provide,randFloat,randomSaccadeInterval,reactive,readonly,rectToClientRect,ref,refDebounced,refThrottled,render,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,round$1 as round,shallowReactive,shallowReadonly,shallowRef,shift,size,sleep$1 as sleep,so,storeToRefs,streamText,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue$1 as toValue,triggerRef,tryImport,unref,until,useAiriCardStore,useAttrs,useAudioContext,useBlink,useBreakpoints,useChatStore,useClipboard,useConsciousnessStore,useDark,useDebounceFn,useDelayMessageQueue,useDevicesList,useElementBounding,useEmotionsMessageQueue,useFileDialog,useI18n,useId$1 as useId,useIdleEyeSaccades,useLocalStorage,useMarkdown,useMessageContentQueue,useMicVAD,useModel,useMouse,useObjectUrl,usePointer,useProvidersStore,useQueue,useResizeObserver,useRoute,useRouter,useScreenSafeArea,useScroll,useSettings,useSlots,useSpeakingStore,useSpeechStore,useUserMedia,useVRMEmote,useWhisper,vModelCheckbox,vModelRadio,vModelSelect,vModelText,vShow,watch,watchDebounced,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDirectives,withKeys,withModifiers}; \ No newline at end of file diff --git a/assets/memory-iAJK3z1U.js b/assets/memory-BUvt7DgX.js similarity index 91% rename from assets/memory-iAJK3z1U.js rename to assets/memory-BUvt7DgX.js index e678a7e15d1239b57717a4fa0dadcb5f91129c07..e78295ef57842693f78c73cecaac42e743a83baf 100644 --- a/assets/memory-iAJK3z1U.js +++ b/assets/memory-BUvt7DgX.js @@ -1 +1 @@ -import{createBaseVNode as e,createElementBlock as t,defineComponent as n,openBlock as r,resolveDirective as i,withDirectives as a}from"./index-jH8PbleY.js";import{route_block_default as o}from"./route-block-DWE87cA-.js";const s={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 c=n({__name:`index`,setup(n){return(n,o)=>{let c=i(`motion`);return a((r(),t(`div`,s,o[0]||=[e(`div`,{text:`60`,"i-solar:leaf-bold-duotone":``},null,-1)])),[[c]])}}});typeof o==`function`&&o(c);var l=c;export{l as default}; \ No newline at end of file +import{createBaseVNode as e,createElementBlock as t,defineComponent as n,openBlock as r,resolveDirective as i,withDirectives as a}from"./index-C2W4XoWv.js";import{route_block_default as o}from"./route-block-DWE87cA-.js";const s={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 c=n({__name:`index`,setup(n){return(n,o)=>{let c=i(`motion`);return a((r(),t(`div`,s,o[0]||=[e(`div`,{text:`60`,"i-solar:leaf-bold-duotone":``},null,-1)])),[[c]])}}});typeof o==`function`&&o(c);var l=c;export{l as default}; \ No newline at end of file diff --git a/assets/memory-long-term-Bu5ixdIq.js b/assets/memory-long-term-DGbK0bay.js similarity index 77% rename from assets/memory-long-term-Bu5ixdIq.js rename to assets/memory-long-term-DGbK0bay.js index 50c7dadca2207f9494f179c1fd8ce9f53b4267d7..f926663e3c004fd2d93e301baa4d2a26467786b6 100644 --- a/assets/memory-long-term-Bu5ixdIq.js +++ b/assets/memory-long-term-DGbK0bay.js @@ -1 +1 @@ -import{createElementBlock as e,defineComponent as t,openBlock as n}from"./index-jH8PbleY.js";import{route_block_default as r}from"./route-block-DWE87cA-.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{createElementBlock as e,defineComponent as t,openBlock as n}from"./index-C2W4XoWv.js";import{route_block_default as r}from"./route-block-DWE87cA-.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-Bu3lNcVG.js b/assets/memory-short-term-MnudAItY.js similarity index 77% rename from assets/memory-short-term-Bu3lNcVG.js rename to assets/memory-short-term-MnudAItY.js index f8bbf1bfbacbf48dd731f8a0b5e102d849f75504..eaf305b8c88ea839743e0400fbd9de046f74add0 100644 --- a/assets/memory-short-term-Bu3lNcVG.js +++ b/assets/memory-short-term-MnudAItY.js @@ -1 +1 @@ -import{createElementBlock as e,defineComponent as t,openBlock as n}from"./index-jH8PbleY.js";import{route_block_default as r}from"./route-block-DWE87cA-.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{createElementBlock as e,defineComponent as t,openBlock as n}from"./index-C2W4XoWv.js";import{route_block_default as r}from"./route-block-DWE87cA-.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-BuYm6ihz.js b/assets/messages-FIemZxGj.js similarity index 85% rename from assets/messages-BuYm6ihz.js rename to assets/messages-FIemZxGj.js index fbce0ba7727c417e21d559ba7e098bd6aa374e55..a04391a5137e7dcff517da3677663ece1c8e1c06 100644 --- a/assets/messages-BuYm6ihz.js +++ b/assets/messages-FIemZxGj.js @@ -1 +1 @@ -import"./Basic-DNa_H8OA.js";import{Textarea_default as e}from"./Textarea-D8CbwmdL.js";import{Fragment as t,createBaseVNode as n,createElementBlock as r,createVNode as i,defineComponent as a,llmInferenceEndToken as o,openBlock as s,ref as c,renderList as l,toDisplayString as u,unref as d,useMessageContentQueue as f,useQueue as p}from"./index-jH8PbleY.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=a({__name:`messages`,setup(a){let y=c(``),b=c([]),x=c(!1),S=p({handlers:[async e=>{b.value.push(e.data)}]}),C=f(S);async function w(){x.value=!0,C.add(y.value),C.add(o),y.value=``,x.value=!1}return(a,o)=>(s(),r(`div`,m,[n(`div`,h,[i(d(e),{modelValue:y.value,"onUpdate:modelValue":o[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`]),n(`button`,g,u(x.value?`Processing...`:`Send`),1)]),n(`div`,_,[n(`div`,v,[o[1]||=n(`h3`,{"font-normal":``},` TTS Message `,-1),(s(!0),r(t,null,l(b.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file +import"./Basic-eHldbasx.js";import{Textarea_default as e}from"./Textarea-BvqhLeCk.js";import{Fragment as t,createBaseVNode as n,createElementBlock as r,createVNode as i,defineComponent as a,llmInferenceEndToken as o,openBlock as s,ref as c,renderList as l,toDisplayString as u,unref as d,useMessageContentQueue as f,useQueue as p}from"./index-C2W4XoWv.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=a({__name:`messages`,setup(a){let y=c(``),b=c([]),x=c(!1),S=p({handlers:[async e=>{b.value.push(e.data)}]}),C=f(S);async function w(){x.value=!0,C.add(y.value),C.add(o),y.value=``,x.value=!1}return(a,o)=>(s(),r(`div`,m,[n(`div`,h,[i(d(e),{modelValue:y.value,"onUpdate:modelValue":o[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`]),n(`button`,g,u(x.value?`Processing...`:`Send`),1)]),n(`div`,_,[n(`div`,v,[o[1]||=n(`h3`,{"font-normal":``},` TTS Message `,-1),(s(!0),r(t,null,l(b.value,e=>(s(),r(`div`,{key:e},[n(`div`,null,u(e),1)]))),128))])])]))}}),b=y;export{b as default}; \ No newline at end of file diff --git a/assets/microsoft-speech-D706G4ZN.js b/assets/microsoft-speech-DWy-RkN7.js similarity index 97% rename from assets/microsoft-speech-D706G4ZN.js rename to assets/microsoft-speech-DWy-RkN7.js index bfe5e6a208f915d953ec24d9f614804c993988f8..19fbadeb592755afa166432bcdcbc7b8794eda6d 100644 --- a/assets/microsoft-speech-D706G4ZN.js +++ b/assets/microsoft-speech-DWy-RkN7.js @@ -1 +1 @@ -import{FieldInput_default as e,FieldRange_default as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,ref as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useSpeechStore as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={flex:`~ col gap-4`},x=`microsoft-speech`,S=`v1`;var C=c({__name:`microsoft-speech`,setup(c){let{t:y}=m(),C={pitch:0,speed:1,volume:0},w=g(),T=h(),{providers:E}=f(T),D=d(0),O=d(1),k=d(0),A=i({get:()=>{var e;return(e=E.value[x])?.region||`eastasia`},set:e=>{E.value[x]||(E.value[x]={region:`eastasia`}),E.value[x].region=e}}),j=i(()=>{var e;return!!(e=E.value[x])?.apiKey}),M=i(()=>w.availableVoices[x]||[]);l(async()=>{await w.loadVoicesForProvider(x)}),_([j,A],async()=>{await w.loadVoicesForProvider(x)});async function N(e,t,n){let r=T.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=T.getProviderConfig(x),a=i.model||S,o={...i,region:A.value,disableSsml:!n};if(!n&&t){let n=M.value.find(e=>e.id===t);if(n){let s=w.generateSSML(e,n,{...i,pitch:D.value});return await w.speech(r,a,s,t,o)}}return await w.speech(r,a,e,t,o)}return(i,c)=>(u(),o(p(r),{"provider-id":x,"default-model":S,"additional-settings":C},{"basic-settings":v(()=>[s(p(e),{modelValue:A.value,"onUpdate:modelValue":c[0]||=e=>A.value=e,label:p(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.label`),description:p(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.description`),placeholder:`eastasia`,required:``,type:`text`},null,8,[`modelValue`,`label`,`description`])]),"voice-settings":v(()=>[a(`div`,b,[s(p(t),{modelValue:D.value,"onUpdate:modelValue":c[1]||=e=>D.value=e,label:p(y)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:p(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`]),s(p(t),{modelValue:O.value,"onUpdate:modelValue":c[2]||=e=>O.value=e,label:p(y)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:p(y)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:k.value,"onUpdate:modelValue":c[3]||=e=>k.value=e,label:p(y)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:p(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:v(()=>[s(p(n),{"available-voices":M.value,"generate-speech":N,"api-key-configured":j.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(C);var w=C;export{w as default}; \ No newline at end of file +import{FieldInput_default as e,FieldRange_default as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,ref as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useSpeechStore as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={flex:`~ col gap-4`},x=`microsoft-speech`,S=`v1`;var C=c({__name:`microsoft-speech`,setup(c){let{t:y}=m(),C={pitch:0,speed:1,volume:0},w=g(),T=h(),{providers:E}=f(T),D=d(0),O=d(1),k=d(0),A=i({get:()=>{var e;return(e=E.value[x])?.region||`eastasia`},set:e=>{E.value[x]||(E.value[x]={region:`eastasia`}),E.value[x].region=e}}),j=i(()=>{var e;return!!(e=E.value[x])?.apiKey}),M=i(()=>w.availableVoices[x]||[]);l(async()=>{await w.loadVoicesForProvider(x)}),_([j,A],async()=>{await w.loadVoicesForProvider(x)});async function N(e,t,n){let r=T.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=T.getProviderConfig(x),a=i.model||S,o={...i,region:A.value,disableSsml:!n};if(!n&&t){let n=M.value.find(e=>e.id===t);if(n){let s=w.generateSSML(e,n,{...i,pitch:D.value});return await w.speech(r,a,s,t,o)}}return await w.speech(r,a,e,t,o)}return(i,c)=>(u(),o(p(r),{"provider-id":x,"default-model":S,"additional-settings":C},{"basic-settings":v(()=>[s(p(e),{modelValue:A.value,"onUpdate:modelValue":c[0]||=e=>A.value=e,label:p(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.label`),description:p(y)(`settings.pages.providers.provider.microsoft-speech.fields.field.region.description`),placeholder:`eastasia`,required:``,type:`text`},null,8,[`modelValue`,`label`,`description`])]),"voice-settings":v(()=>[a(`div`,b,[s(p(t),{modelValue:D.value,"onUpdate:modelValue":c[1]||=e=>D.value=e,label:p(y)(`settings.pages.providers.provider.common.fields.field.pitch.label`),description:p(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`]),s(p(t),{modelValue:O.value,"onUpdate:modelValue":c[2]||=e=>O.value=e,label:p(y)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:p(y)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`]),s(p(t),{modelValue:k.value,"onUpdate:modelValue":c[3]||=e=>k.value=e,label:p(y)(`settings.pages.providers.provider.common.fields.field.volume.label`),description:p(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:v(()=>[s(p(n),{"available-voices":M.value,"generate-speech":N,"api-key-configured":j.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(C);var w=C;export{w as default}; \ No newline at end of file diff --git a/assets/mistral-ai-DR6LajT7.js b/assets/mistral-ai-DoJfmKbx.js similarity index 96% rename from assets/mistral-ai-DR6LajT7.js rename to assets/mistral-ai-DoJfmKbx.js index 6ef392c4b794b068f2e2464b572c20088a50df81..6a0d2a765928d179e9ae5d4ed41b3d4226e6f077 100644 --- a/assets/mistral-ai-DR6LajT7.js +++ b/assets/mistral-ai-DoJfmKbx.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`mistral-ai`;var x=l({__name:`mistral-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`mis-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`mistral-ai`;var x=l({__name:`mistral-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`mis-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-ASp2XmSL.js b/assets/models-CFsgoKO6.js similarity index 94% rename from assets/models-ASp2XmSL.js rename to assets/models-CFsgoKO6.js index 151c81dd772736a7937783f1ce2beef2c5f51d8f..c25e0ea957c9c2f874d50022b103349d0ce60965 100644 --- a/assets/models-ASp2XmSL.js +++ b/assets/models-CFsgoKO6.js @@ -1 +1 @@ -import{Canvas_default as e,Model_default as t,require_jszip_min as n,require_localforage as r}from"./Scenes-_LhL7EaP.js";import"./dist-BXbmJYBn.js";import{Emotion as i,EmotionNeutralMotionName as a,Fragment as o,Section_default as s,__plugin_vue_export_helper_default as c,__toESM as l,createBaseVNode as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createTextVNode as m,createVNode as h,defineComponent as g,openBlock as _,ref as v,renderList as y,renderSlot as b,resolveDirective as x,storeToRefs as S,toDisplayString as C,unref as w,useElementBounding as T,useFileDialog as E,useI18n as D,useMouse as O,useObjectUrl as k,useSettings as A,vModelSelect as j,vModelText as M,watch as N,withCtx as P,withDirectives as F}from"./index-jH8PbleY.js";import"./import-url-browser-gqaMLBiE.js";import"./duckdb-mvp-DdkY0Vq-.js";import{route_block_default as I}from"./route-block-DWE87cA-.js";import{Vibrant as L}from"./browser-CSlAJ-iu.js";import{ColorPalette_default as R}from"./ColorPalette-RTtXS1UD.js";import{IconAnimation_default as z}from"./IconAnimation-7PF9WZf6.js";import{useIconAnimation as B}from"./icon-animation-h5tjr2vU.js";const V=[`disabled`];var H=g({__name:`Live2DModelControlButton`,emits:[`click`],setup(e){let t=A();return(e,n)=>(_(),p(`button`,{disabled:w(t).loadingLive2dModel,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,transition:`all ease-in-out duration-250`,rounded:``,onClick:n[0]||=t=>e.$emit(`click`)},[b(e.$slots,`default`)],8,V))}}),U=H,W=l(n()),G=l(r());const K={flex:`~ col gap-2`},q={flex:``,"items-center":``,"gap-2":``},J=[`disabled`,`placeholder`],Y={"font-medium":``,"font-mono":``},X={flex:``,"gap-2":``},Z=[`onUpdate:modelValue`],Q=[`href`,`download`];var ee=g({__name:`Live2DSettings`,props:{palette:{}},emits:[`extractColorsFromModel`],setup(e){let{t}=D(),n=E({accept:`application/zip`}),r=A(),{live2dModelFile:c,live2dMotionMap:l,live2dLoadSource:g,loadingLive2dModel:b,availableLive2dMotions:x,live2dModelUrl:T}=S(r),O=v(T.value);n.onChange(e=>{e&&e.length>0&&(l.value={},c.value=e[0],g.value=`file`,b.value=!0)}),N(()=>r.loadingLive2dModel,e=>{e||g.value===`file`&&x.value.forEach(e=>{e.motionName in i?l.value[e.fileName]=e.motionName:l.value[e.fileName]=a})});async function I(e,t){if(!Object.keys(t).length)return e;let n=new W.default,r=await n.loadAsync(e),i=Object.keys(r.files).find(e=>e.endsWith(`model3.json`));if(!i)throw Error(`model3.json not found`);let a=await r.file(i).async(`string`),o=JSON.parse(a),s={};Object.entries(t).forEach(([e,t])=>{if(s[t]){s[t].push({File:e});return}s[t]=[{File:e}]}),o.FileReferences.Motions=s,r.file(i,JSON.stringify(o,null,2));let c=await r.generateAsync({type:`blob`});return new File([c],e.name,{type:e.type,lastModified:e.lastModified})}async function L(){let e=await G.default.getItem(`live2dModel`);if(!e)return;let t=await I(e,l.value);c.value=t,g.value=`file`,b.value=!0}let z=k(c);return(e,a)=>(_(),p(`div`,K,[h(w(s),{title:w(t)(`settings.live2d.change-model.title`),icon:`i-solar:magic-stick-3-bold-duotone`,"inner-class":`text-sm`},{default:P(()=>[u(`div`,q,[F(u(`input`,{"onUpdate:modelValue":a[0]||=e=>O.value=e,disabled:w(r).loadingLive2dModel,class:`form-control flex-1`,border:`neutral-300 dark:neutral-800 solid 1 focus:neutral-400 dark:focus:neutral-600`,transition:`border duration-250 ease-in-out`,placeholder:w(t)(`settings.live2d.change-model.from-url-placeholder`)},null,8,J),[[M,O.value]]),h(U,{class:`form-control`,onClick:a[1]||=e=>T.value=O.value},{default:P(()=>[m(C(w(t)(`settings.live2d.change-model.from-url`)),1)]),_:1})]),h(U,{class:`form-control place-self-end`,onClick:a[2]||=e=>w(n).open()},{default:P(()=>[m(C(w(t)(`settings.live2d.change-model.from-file`))+`... `,1)]),_:1}),h(U,{class:`form-control`,onClick:a[3]||=t=>e.$emit(`extractColorsFromModel`)},{default:P(()=>a[4]||=[m(` Extract colors from model `)]),_:1,__:[4]}),h(R,{colors:e.palette.map(e=>({hex:e,name:e}))},null,8,[`colors`])]),_:1},8,[`title`]),w(r).live2dLoadSource===`file`?(_(),d(w(s),{key:0,title:w(t)(`settings.live2d.edit-motion-map.title`),icon:`i-solar:face-scan-circle-bold-duotone`},{default:P(()=>{var e;return[(_(!0),p(o,null,y(w(r).availableLive2dMotions,e=>(_(),p(`div`,{key:e.fileName,flex:``,"items-center":``,"justify-between":``,"text-sm":``},[u(`span`,Y,C(e.fileName),1),u(`div`,X,[F(u(`select`,{"onUpdate:modelValue":t=>w(r).live2dMotionMap[e.fileName]=t},[(_(!0),p(o,null,y(Object.keys(w(i)),e=>(_(),p(`option`,{key:e},C(e),1))),128))],8,Z),[[j,w(r).live2dMotionMap[e.fileName]]]),h(U,{class:`form-control`,onClick:t=>w(r).live2dCurrentMotion={group:e.motionName,index:e.motionIndex}},{default:P(()=>a[5]||=[m(` Play `)]),_:2,__:[5]},1032,[`onClick`])])]))),128)),h(U,{onClick:L},{default:P(()=>a[6]||=[m(` Save and patch `)]),_:1,__:[6]}),u(`a`,{"mt-2":``,block:``,href:w(z),download:`${(e=w(r).live2dModelFile)?.name||`live2d`}-motion-edited.zip`},[h(U,{"w-full":``},{default:P(()=>a[7]||=[m(`Export`)]),_:1,__:[7]})],8,Q)]}),_:1},8,[`title`])):f(``,!0)]))}}),te=c(ee,[[`__scopeId`,`data-v-ff35c324`]]);const ne={flex:``,class:`flex-col-reverse sm:flex-row`},re={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 $=g({__name:`index`,setup(n){let r=v(),i=v(),{width:a,height:s}=T(r),c=v([]);async function l(){if(!i.value)return;let e=await i.value.captureFrame();if(!e){console.error(`No frame captured`);return}let t=URL.createObjectURL(e);try{let e=new L(t),n=await e.getPalette();c.value=Object.values(n).map(e=>e?.hex).filter(e=>typeof e==`string`)}finally{URL.revokeObjectURL(t)}}let{iconAnimationStarted:f,showIconAnimation:m,animationIcon:g}=B(`i-solar:people-nearby-bold-duotone`),y=O();return(n,v)=>{let b=x(`motion`);return _(),p(o,null,[u(`div`,ne,[u(`div`,{ref_key:`live2dContainerRef`,ref:r,w:`100% sm:50%`,h:`50dvh sm:80dvh`},[h(w(e),{ref_key:`live2dCanvasRef`,ref:i,width:w(a),height:w(s),resolution:2,"max-h":`100dvh`},{default:P(({app:e})=>[h(w(t),{app:e,"mouth-open-size":0,width:w(a),height:w(s),paused:!1,"focus-at":{x:w(y).x.value,y:w(y).y.value}},null,8,[`app`,`width`,`height`,`focus-at`])]),_:1},8,[`width`,`height`])],512),h(te,{w:`100% sm:50%`,h:`50dvh sm:80dvh`,palette:c.value,onExtractColorsFromModel:l},null,8,[`palette`])]),w(m)?(_(),d(z,{key:0,"z-index":-1,icon:w(g),"icon-size":12,duration:1e3,started:w(f),"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`])):F((_(),p(`div`,re,v[0]||=[u(`div`,{text:`60`,"i-solar:people-nearby-bold-duotone":``},null,-1)])),[[b]])],64)}}});typeof I==`function`&&I($);var ie=$;export{ie as default}; \ No newline at end of file +import{Canvas_default as e,Model_default as t,require_jszip_min as n,require_localforage as r}from"./Scenes-BRyVCX-j.js";import"./dist-CM_LBh2l.js";import{Emotion as i,EmotionNeutralMotionName as a,Fragment as o,Section_default as s,__plugin_vue_export_helper_default as c,__toESM as l,createBaseVNode as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createTextVNode as m,createVNode as h,defineComponent as g,openBlock as _,ref as v,renderList as y,renderSlot as b,resolveDirective as x,storeToRefs as S,toDisplayString as C,unref as w,useElementBounding as T,useFileDialog as E,useI18n as D,useMouse as O,useObjectUrl as k,useSettings as A,vModelSelect as j,vModelText as M,watch as N,withCtx as P,withDirectives as F}from"./index-C2W4XoWv.js";import"./import-url-browser-gqaMLBiE.js";import"./duckdb-mvp-DdkY0Vq-.js";import{route_block_default as I}from"./route-block-DWE87cA-.js";import{Vibrant as L}from"./browser-CSlAJ-iu.js";import{ColorPalette_default as R}from"./ColorPalette-D44Srp6v.js";import{IconAnimation_default as z}from"./IconAnimation-yDQP_Ncr.js";import{useIconAnimation as B}from"./icon-animation-C9bqWV38.js";const V=[`disabled`];var H=g({__name:`Live2DModelControlButton`,emits:[`click`],setup(e){let t=A();return(e,n)=>(_(),p(`button`,{disabled:w(t).loadingLive2dModel,bg:`neutral-100 dark:neutral-800`,hover:`bg-neutral-200 dark:bg-neutral-700`,transition:`all ease-in-out duration-250`,rounded:``,onClick:n[0]||=t=>e.$emit(`click`)},[b(e.$slots,`default`)],8,V))}}),U=H,W=l(n()),G=l(r());const K={flex:`~ col gap-2`},q={flex:``,"items-center":``,"gap-2":``},J=[`disabled`,`placeholder`],Y={"font-medium":``,"font-mono":``},X={flex:``,"gap-2":``},Z=[`onUpdate:modelValue`],Q=[`href`,`download`];var ee=g({__name:`Live2DSettings`,props:{palette:{}},emits:[`extractColorsFromModel`],setup(e){let{t}=D(),n=E({accept:`application/zip`}),r=A(),{live2dModelFile:c,live2dMotionMap:l,live2dLoadSource:g,loadingLive2dModel:b,availableLive2dMotions:x,live2dModelUrl:T}=S(r),O=v(T.value);n.onChange(e=>{e&&e.length>0&&(l.value={},c.value=e[0],g.value=`file`,b.value=!0)}),N(()=>r.loadingLive2dModel,e=>{e||g.value===`file`&&x.value.forEach(e=>{e.motionName in i?l.value[e.fileName]=e.motionName:l.value[e.fileName]=a})});async function I(e,t){if(!Object.keys(t).length)return e;let n=new W.default,r=await n.loadAsync(e),i=Object.keys(r.files).find(e=>e.endsWith(`model3.json`));if(!i)throw Error(`model3.json not found`);let a=await r.file(i).async(`string`),o=JSON.parse(a),s={};Object.entries(t).forEach(([e,t])=>{if(s[t]){s[t].push({File:e});return}s[t]=[{File:e}]}),o.FileReferences.Motions=s,r.file(i,JSON.stringify(o,null,2));let c=await r.generateAsync({type:`blob`});return new File([c],e.name,{type:e.type,lastModified:e.lastModified})}async function L(){let e=await G.default.getItem(`live2dModel`);if(!e)return;let t=await I(e,l.value);c.value=t,g.value=`file`,b.value=!0}let z=k(c);return(e,a)=>(_(),p(`div`,K,[h(w(s),{title:w(t)(`settings.live2d.change-model.title`),icon:`i-solar:magic-stick-3-bold-duotone`,"inner-class":`text-sm`},{default:P(()=>[u(`div`,q,[F(u(`input`,{"onUpdate:modelValue":a[0]||=e=>O.value=e,disabled:w(r).loadingLive2dModel,class:`form-control flex-1`,border:`neutral-300 dark:neutral-800 solid 1 focus:neutral-400 dark:focus:neutral-600`,transition:`border duration-250 ease-in-out`,placeholder:w(t)(`settings.live2d.change-model.from-url-placeholder`)},null,8,J),[[M,O.value]]),h(U,{class:`form-control`,onClick:a[1]||=e=>T.value=O.value},{default:P(()=>[m(C(w(t)(`settings.live2d.change-model.from-url`)),1)]),_:1})]),h(U,{class:`form-control place-self-end`,onClick:a[2]||=e=>w(n).open()},{default:P(()=>[m(C(w(t)(`settings.live2d.change-model.from-file`))+`... `,1)]),_:1}),h(U,{class:`form-control`,onClick:a[3]||=t=>e.$emit(`extractColorsFromModel`)},{default:P(()=>a[4]||=[m(` Extract colors from model `)]),_:1,__:[4]}),h(R,{colors:e.palette.map(e=>({hex:e,name:e}))},null,8,[`colors`])]),_:1},8,[`title`]),w(r).live2dLoadSource===`file`?(_(),d(w(s),{key:0,title:w(t)(`settings.live2d.edit-motion-map.title`),icon:`i-solar:face-scan-circle-bold-duotone`},{default:P(()=>{var e;return[(_(!0),p(o,null,y(w(r).availableLive2dMotions,e=>(_(),p(`div`,{key:e.fileName,flex:``,"items-center":``,"justify-between":``,"text-sm":``},[u(`span`,Y,C(e.fileName),1),u(`div`,X,[F(u(`select`,{"onUpdate:modelValue":t=>w(r).live2dMotionMap[e.fileName]=t},[(_(!0),p(o,null,y(Object.keys(w(i)),e=>(_(),p(`option`,{key:e},C(e),1))),128))],8,Z),[[j,w(r).live2dMotionMap[e.fileName]]]),h(U,{class:`form-control`,onClick:t=>w(r).live2dCurrentMotion={group:e.motionName,index:e.motionIndex}},{default:P(()=>a[5]||=[m(` Play `)]),_:2,__:[5]},1032,[`onClick`])])]))),128)),h(U,{onClick:L},{default:P(()=>a[6]||=[m(` Save and patch `)]),_:1,__:[6]}),u(`a`,{"mt-2":``,block:``,href:w(z),download:`${(e=w(r).live2dModelFile)?.name||`live2d`}-motion-edited.zip`},[h(U,{"w-full":``},{default:P(()=>a[7]||=[m(`Export`)]),_:1,__:[7]})],8,Q)]}),_:1},8,[`title`])):f(``,!0)]))}}),te=c(ee,[[`__scopeId`,`data-v-ff35c324`]]);const ne={flex:``,class:`flex-col-reverse sm:flex-row`},re={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 $=g({__name:`index`,setup(n){let r=v(),i=v(),{width:a,height:s}=T(r),c=v([]);async function l(){if(!i.value)return;let e=await i.value.captureFrame();if(!e){console.error(`No frame captured`);return}let t=URL.createObjectURL(e);try{let e=new L(t),n=await e.getPalette();c.value=Object.values(n).map(e=>e?.hex).filter(e=>typeof e==`string`)}finally{URL.revokeObjectURL(t)}}let{iconAnimationStarted:f,showIconAnimation:m,animationIcon:g}=B(`i-solar:people-nearby-bold-duotone`),y=O();return(n,v)=>{let b=x(`motion`);return _(),p(o,null,[u(`div`,ne,[u(`div`,{ref_key:`live2dContainerRef`,ref:r,w:`100% sm:50%`,h:`50dvh sm:80dvh`},[h(w(e),{ref_key:`live2dCanvasRef`,ref:i,width:w(a),height:w(s),resolution:2,"max-h":`100dvh`},{default:P(({app:e})=>[h(w(t),{app:e,"mouth-open-size":0,width:w(a),height:w(s),paused:!1,"focus-at":{x:w(y).x.value,y:w(y).y.value}},null,8,[`app`,`width`,`height`,`focus-at`])]),_:1},8,[`width`,`height`])],512),h(te,{w:`100% sm:50%`,h:`50dvh sm:80dvh`,palette:c.value,onExtractColorsFromModel:l},null,8,[`palette`])]),w(m)?(_(),d(z,{key:0,"z-index":-1,icon:w(g),"icon-size":12,duration:1e3,started:w(f),"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`])):F((_(),p(`div`,re,v[0]||=[u(`div`,{text:`60`,"i-solar:people-nearby-bold-duotone":``},null,-1)])),[[b]])],64)}}});typeof I==`function`&&I($);var ie=$;export{ie as default}; \ No newline at end of file diff --git a/assets/modules-BhV9g4Py.js b/assets/modules-9avIG6iD.js similarity index 95% rename from assets/modules-BhV9g4Py.js rename to assets/modules-9avIG6iD.js index f9b19140a3ea2cb887b1be6c5c671c954ad235be..3d51accf36ff24adc1ec3be179fe065696d3827b 100644 --- a/assets/modules-BhV9g4Py.js +++ b/assets/modules-9avIG6iD.js @@ -1 +1 @@ -import{Fragment as e,IconStatusItem_default as t,computed as n,createBaseVNode as r,createBlock as i,createElementBlock as a,defineComponent as o,openBlock as s,renderList as c,resolveDirective as l,unref as u,useI18n as d,withDirectives as f}from"./index-jH8PbleY.js";import{route_block_default as p}from"./route-block-DWE87cA-.js";import{IconAnimation_default as m}from"./IconAnimation-7PF9WZf6.js";import{useIconAnimation as h}from"./icon-animation-h5tjr2vU.js";const g={grid:`~ cols-1 sm:cols-2 gap-4`},_={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 v=o({__name:`index`,setup(o){let{t:p}=d(),v=n(()=>[{id:`consciousness`,name:p(`settings.pages.modules.consciousness.title`),description:p(`settings.pages.modules.consciousness.description`),icon:`i-solar:ghost-bold-duotone`,to:`/settings/modules/consciousness`,configured:!1},{id:`speech`,name:p(`settings.pages.modules.speech.title`),description:p(`settings.pages.modules.speech.description`),icon:`i-solar:user-speak-rounded-bold-duotone`,to:`/settings/modules/speech`,configured:!1},{id:`hearing`,name:p(`settings.pages.modules.hearing.title`),description:p(`settings.pages.modules.hearing.description`),icon:`i-solar:microphone-3-bold-duotone`,to:`/settings/modules/hearing`,configured:!1},{id:`vision`,name:p(`settings.pages.modules.vision.title`),description:p(`settings.pages.modules.vision.description`),icon:`i-solar:eye-closed-bold-duotone`,to:``,configured:!1},{id:`memory-short-term`,name:p(`settings.pages.modules.memory-short-term.title`),description:p(`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:p(`settings.pages.modules.memory-long-term.title`),description:p(`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:p(`settings.pages.modules.messaging-discord.title`),description:p(`settings.pages.modules.messaging-discord.description`),icon:`i-simple-icons:discord`,to:``,configured:!1},{id:`x`,name:p(`settings.pages.modules.x.title`),description:p(`settings.pages.modules.x.description`),icon:`i-simple-icons:x`,to:``,configured:!1},{id:`game-minecraft`,name:p(`settings.pages.modules.gaming-minecraft.title`),description:p(`settings.pages.modules.gaming-minecraft.description`),iconColor:`i-vscode-icons:file-type-minecraft`,to:``,configured:!1},{id:`game-factorio`,name:p(`settings.pages.modules.gaming-factorio.title`),description:p(`settings.pages.modules.gaming-factorio.description`),iconImage:``,to:``,configured:!1}]),{iconAnimationStarted:y,showIconAnimation:b,animationIcon:x}=h(`i-solar:layers-bold-duotone`);return(n,o)=>{let d=l(`motion`);return s(),a(e,null,[r(`div`,g,[(s(!0),a(e,null,c(v.value,(e,n)=>f((s(),i(u(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:n*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`])),[[d]])),128))]),u(b)?(s(),i(m,{key:0,icon:u(x),"icon-size":12,duration:1e3,started:u(y),"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`])):f((s(),a(`div`,_,o[0]||=[r(`div`,{text:`60`,"i-solar:layers-bold-duotone":``},null,-1)])),[[d]])],64)}}});typeof p==`function`&&p(v);var y=v;export{y as default}; \ No newline at end of file +import{Fragment as e,IconStatusItem_default as t,computed as n,createBaseVNode as r,createBlock as i,createElementBlock as a,defineComponent as o,openBlock as s,renderList as c,resolveDirective as l,unref as u,useI18n as d,withDirectives as f}from"./index-C2W4XoWv.js";import{route_block_default as p}from"./route-block-DWE87cA-.js";import{IconAnimation_default as m}from"./IconAnimation-yDQP_Ncr.js";import{useIconAnimation as h}from"./icon-animation-C9bqWV38.js";const g={grid:`~ cols-1 sm:cols-2 gap-4`},_={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 v=o({__name:`index`,setup(o){let{t:p}=d(),v=n(()=>[{id:`consciousness`,name:p(`settings.pages.modules.consciousness.title`),description:p(`settings.pages.modules.consciousness.description`),icon:`i-solar:ghost-bold-duotone`,to:`/settings/modules/consciousness`,configured:!1},{id:`speech`,name:p(`settings.pages.modules.speech.title`),description:p(`settings.pages.modules.speech.description`),icon:`i-solar:user-speak-rounded-bold-duotone`,to:`/settings/modules/speech`,configured:!1},{id:`hearing`,name:p(`settings.pages.modules.hearing.title`),description:p(`settings.pages.modules.hearing.description`),icon:`i-solar:microphone-3-bold-duotone`,to:`/settings/modules/hearing`,configured:!1},{id:`vision`,name:p(`settings.pages.modules.vision.title`),description:p(`settings.pages.modules.vision.description`),icon:`i-solar:eye-closed-bold-duotone`,to:``,configured:!1},{id:`memory-short-term`,name:p(`settings.pages.modules.memory-short-term.title`),description:p(`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:p(`settings.pages.modules.memory-long-term.title`),description:p(`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:p(`settings.pages.modules.messaging-discord.title`),description:p(`settings.pages.modules.messaging-discord.description`),icon:`i-simple-icons:discord`,to:``,configured:!1},{id:`x`,name:p(`settings.pages.modules.x.title`),description:p(`settings.pages.modules.x.description`),icon:`i-simple-icons:x`,to:``,configured:!1},{id:`game-minecraft`,name:p(`settings.pages.modules.gaming-minecraft.title`),description:p(`settings.pages.modules.gaming-minecraft.description`),iconColor:`i-vscode-icons:file-type-minecraft`,to:``,configured:!1},{id:`game-factorio`,name:p(`settings.pages.modules.gaming-factorio.title`),description:p(`settings.pages.modules.gaming-factorio.description`),iconImage:``,to:``,configured:!1}]),{iconAnimationStarted:y,showIconAnimation:b,animationIcon:x}=h(`i-solar:layers-bold-duotone`);return(n,o)=>{let d=l(`motion`);return s(),a(e,null,[r(`div`,g,[(s(!0),a(e,null,c(v.value,(e,n)=>f((s(),i(u(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:n*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`])),[[d]])),128))]),u(b)?(s(),i(m,{key:0,icon:u(x),"icon-size":12,duration:1e3,started:u(y),"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`])):f((s(),a(`div`,_,o[0]||=[r(`div`,{text:`60`,"i-solar:layers-bold-duotone":``},null,-1)])),[[d]])],64)}}});typeof p==`function`&&p(v);var y=v;export{y as default}; \ No newline at end of file diff --git a/assets/moonshot-ai-CW9PC7OE.js b/assets/moonshot-ai-Cau_K86f.js similarity index 96% rename from assets/moonshot-ai-CW9PC7OE.js rename to assets/moonshot-ai-Cau_K86f.js index 73d04ce4a88e5bf9006d87d96d823533773dba29..e1ec1dd72f8c24fd8ab514db0e9c6d7c22cba20e 100644 --- a/assets/moonshot-ai-CW9PC7OE.js +++ b/assets/moonshot-ai-Cau_K86f.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`moonshot-ai`;var x=l({__name:`moonshot-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`ms-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`moonshot-ai`;var x=l({__name:`moonshot-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`ms-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-L_HGMG0y.js b/assets/novita-ai-D9JggVed.js similarity index 96% rename from assets/novita-ai-L_HGMG0y.js rename to assets/novita-ai-D9JggVed.js index 1f40d766c02252e894709793c65d17129b82e502..f2c4500b0bafad017b815b99e51f8cc95593347a 100644 --- a/assets/novita-ai-L_HGMG0y.js +++ b/assets/novita-ai-D9JggVed.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`novita-ai`;var x=l({__name:`novita-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`nvt-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`novita-ai`;var x=l({__name:`novita-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`nvt-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-6p5KD4E8.js b/assets/ollama-D8ZG0VwN.js similarity index 95% rename from assets/ollama-6p5KD4E8.js rename to assets/ollama-D8ZG0VwN.js index 3e61f019cc3a4b5b2b3fa24d8c41bff54d711d09..f44d806f245b70dd122c84a45e07e7c1e0863a39 100644 --- a/assets/ollama-6p5KD4E8.js +++ b/assets/ollama-D8ZG0VwN.js @@ -1 +1 @@ -import{FieldKeyValues_default as e,ProviderAdvancedSettings_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,ref as f,storeToRefs as p,unref as m,useI18n as h,useProvidersStore as g,useRouter as _,watch as v,withCtx as y}from"./index-jH8PbleY.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";const x=`ollama`;var S=l({__name:`ollama`,setup(l){let{t:b}=h(),S=_(),C=g(),{providers:w}=p(C),T=o(()=>C.getProviderMetadata(x)),E=o({get:()=>{var e,t,n;return(e=w.value[x])?.baseUrl||((t=T.value)==null||(n=t.defaultOptions)==null?void 0:n.call(t).baseUrl)||``},set:e=>{w.value[x]||(w.value[x]={}),w.value[x].baseUrl=e}});u(()=>{var e,t,n,r;C.initializeProvider(x),E.value=(e=w.value[x])?.baseUrl||((t=T.value)==null||(n=t.defaultOptions)==null?void 0:n.call(t).baseUrl)||``,(r=w.value[x])?.headers||(w.value[x].headers={})});function D(){var e;w.value[x]={...(e=T.value)?.defaultOptions}}let O=f([{key:``,value:``}]);function k(e,t,n){e&&e.push({key:t,value:n})}function A(e,t){t&&(t.length===1?(t[0].key=``,t[0].value=``):t.splice(e,1))}return v(O,e=>{e.length>0&&(e[e.length-1].key!==``||e[e.length-1].value!==``)&&e.push({key:``,value:``})},{deep:!0,immediate:!0}),(o,l)=>{var u,f;return d(),s(m(a),{"provider-name":(u=T.value)?.localizedName,"provider-icon":(f=T.value)?.icon,"on-back":()=>m(S).back()},{default:y(()=>[c(m(i),null,{default:y(()=>[c(m(r),{title:m(b)(`settings.pages.providers.common.section.basic.title`),description:m(b)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:y(()=>{var e,t;return[c(m(n),{modelValue:E.value,"onUpdate:modelValue":l[0]||=e=>E.value=e,placeholder:((e=T.value)==null||(t=e.defaultOptions)==null?void 0:t.call(e).baseUrl)||``,required:``},null,8,[`modelValue`,`placeholder`])]}),_:1},8,[`title`,`description`]),c(m(t),{title:m(b)(`settings.pages.providers.common.section.advanced.title`)},{default:y(()=>[c(m(e),{modelValue:O.value,"onUpdate:modelValue":l[1]||=e=>O.value=e,label:m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.label`),description:m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.description`),"key-placeholder":m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.key.placeholder`),"value-placeholder":m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.value.placeholder`),onAdd:l[2]||=(e,t)=>k(O.value,e,t),onRemove:l[3]||=e=>A(e,O.value)},null,8,[`modelValue`,`label`,`description`,`key-placeholder`,`value-placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])}}});typeof b==`function`&&b(S);var C=S;export{C as default}; \ No newline at end of file +import{FieldKeyValues_default as e,ProviderAdvancedSettings_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,ref as f,storeToRefs as p,unref as m,useI18n as h,useProvidersStore as g,useRouter as _,watch as v,withCtx as y}from"./index-C2W4XoWv.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";const x=`ollama`;var S=l({__name:`ollama`,setup(l){let{t:b}=h(),S=_(),C=g(),{providers:w}=p(C),T=o(()=>C.getProviderMetadata(x)),E=o({get:()=>{var e,t,n;return(e=w.value[x])?.baseUrl||((t=T.value)==null||(n=t.defaultOptions)==null?void 0:n.call(t).baseUrl)||``},set:e=>{w.value[x]||(w.value[x]={}),w.value[x].baseUrl=e}});u(()=>{var e,t,n,r;C.initializeProvider(x),E.value=(e=w.value[x])?.baseUrl||((t=T.value)==null||(n=t.defaultOptions)==null?void 0:n.call(t).baseUrl)||``,(r=w.value[x])?.headers||(w.value[x].headers={})});function D(){var e;w.value[x]={...(e=T.value)?.defaultOptions}}let O=f([{key:``,value:``}]);function k(e,t,n){e&&e.push({key:t,value:n})}function A(e,t){t&&(t.length===1?(t[0].key=``,t[0].value=``):t.splice(e,1))}return v(O,e=>{e.length>0&&(e[e.length-1].key!==``||e[e.length-1].value!==``)&&e.push({key:``,value:``})},{deep:!0,immediate:!0}),(o,l)=>{var u,f;return d(),s(m(a),{"provider-name":(u=T.value)?.localizedName,"provider-icon":(f=T.value)?.icon,"on-back":()=>m(S).back()},{default:y(()=>[c(m(i),null,{default:y(()=>[c(m(r),{title:m(b)(`settings.pages.providers.common.section.basic.title`),description:m(b)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:y(()=>{var e,t;return[c(m(n),{modelValue:E.value,"onUpdate:modelValue":l[0]||=e=>E.value=e,placeholder:((e=T.value)==null||(t=e.defaultOptions)==null?void 0:t.call(e).baseUrl)||``,required:``},null,8,[`modelValue`,`placeholder`])]}),_:1},8,[`title`,`description`]),c(m(t),{title:m(b)(`settings.pages.providers.common.section.advanced.title`)},{default:y(()=>[c(m(e),{modelValue:O.value,"onUpdate:modelValue":l[1]||=e=>O.value=e,label:m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.label`),description:m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.description`),"key-placeholder":m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.key.placeholder`),"value-placeholder":m(b)(`settings.pages.providers.common.section.advanced.fields.field.headers.value.placeholder`),onAdd:l[2]||=(e,t)=>k(O.value,e,t),onRemove:l[3]||=e=>A(e,O.value)},null,8,[`modelValue`,`label`,`description`,`key-placeholder`,`value-placeholder`])]),_:1},8,[`title`])]),_:1})]),_:1},8,[`provider-name`,`provider-icon`,`on-back`])}}});typeof b==`function`&&b(S);var C=S;export{C as default}; \ No newline at end of file diff --git a/assets/openai-CPclLmM4.js b/assets/openai-BwGLKk9I.js similarity index 97% rename from assets/openai-CPclLmM4.js rename to assets/openai-BwGLKk9I.js index 691d43ca63ab53d5fa498e98c995bf94440d022f..82b40e8918f72b46b964c2ca584d7dd365f430f5 100644 --- a/assets/openai-CPclLmM4.js +++ b/assets/openai-BwGLKk9I.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openai`;var x=l({__name:`openai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://api.openai.com/v1/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://api.openai.com/v1/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`OpenAI`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openai`;var x=l({__name:`openai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://api.openai.com/v1/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://api.openai.com/v1/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`OpenAI`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-DPa2LzMP.js b/assets/openai-audio-speech-DU29tEDJ.js similarity index 97% rename from assets/openai-audio-speech-DPa2LzMP.js rename to assets/openai-audio-speech-DU29tEDJ.js index b2f5977b85edc14922ad970123fefceaa3baf87f..12ca9625d3522a61453f83082f7508b70c0984fd 100644 --- a/assets/openai-audio-speech-DPa2LzMP.js +++ b/assets/openai-audio-speech-DU29tEDJ.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openai`;var x=l({__name:`openai-audio-speech`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://api.openai.com/v1/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://api.openai.com/v1/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`OpenAI`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openai`;var x=l({__name:`openai-audio-speech`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://api.openai.com/v1/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://api.openai.com/v1/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`OpenAI`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-transcription-CtpPb_sH.js b/assets/openai-audio-transcription-EptmXPAp.js similarity index 97% rename from assets/openai-audio-transcription-CtpPb_sH.js rename to assets/openai-audio-transcription-EptmXPAp.js index 284ad9057ab46c420896fc851e6075986b9025b6..95c299eacfbb4fcdfb1ebcbe304f60feae5ad8f5 100644 --- a/assets/openai-audio-transcription-CtpPb_sH.js +++ b/assets/openai-audio-transcription-EptmXPAp.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openai`;var x=l({__name:`openai-audio-transcription`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://api.openai.com/v1/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://api.openai.com/v1/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`OpenAI`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openai`;var x=l({__name:`openai-audio-transcription`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||`https://api.openai.com/v1/`},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;C.value[b]||(C.value[b]={baseUrl:`https://api.openai.com/v1/`}),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||`https://api.openai.com/v1/`}),_([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,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName||`OpenAI`,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName||`OpenAI`,placeholder:`sk-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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/openrouter-ai-Dh0T_owf.js b/assets/openrouter-ai-BK1ttAnA.js similarity index 97% rename from assets/openrouter-ai-Dh0T_owf.js rename to assets/openrouter-ai-BK1ttAnA.js index da7c9723ebccd925c540dacf79819f5370958084..74f8940964c393de789cc6ce7fc1c2a389dc4c74 100644 --- a/assets/openrouter-ai-Dh0T_owf.js +++ b/assets/openrouter-ai-BK1ttAnA.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openrouter-ai`;var x=l({__name:`openrouter-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e,t,n;return(e=C.value[b])?.baseUrl||((t=w.value)==null||(n=t.defaultOptions)==null?void 0:n.call(t).baseUrl)||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t,n,r;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||((n=w.value)==null||(r=n.defaultOptions)==null?void 0:r.call(n).baseUrl)||``}),_([T,E],()=>{var e,t;C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||((e=w.value)==null||(t=e.defaultOptions)==null?void 0:t.call(e).baseUrl)||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`sk-or-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>{var e,t;return[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[1]||=e=>E.value=e,placeholder:((e=w.value)==null||(t=e.defaultOptions)==null?void 0:t.call(e).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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`openrouter-ai`;var x=l({__name:`openrouter-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e,t,n;return(e=C.value[b])?.baseUrl||((t=w.value)==null||(n=t.defaultOptions)==null?void 0:n.call(t).baseUrl)||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t,n,r;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||((n=w.value)==null||(r=n.defaultOptions)==null?void 0:r.call(n).baseUrl)||``}),_([T,E],()=>{var e,t;C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||((e=w.value)==null||(t=e.defaultOptions)==null?void 0:t.call(e).baseUrl)||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`sk-or-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>{var e,t;return[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[1]||=e=>E.value=e,placeholder:((e=w.value)==null||(t=e.defaultOptions)==null?void 0:t.call(e).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-BxzHyUxX.js b/assets/pages-B_XiJ3Wi.js similarity index 77% rename from assets/pages-BxzHyUxX.js rename to assets/pages-B_XiJ3Wi.js index abaeb7a798de5a48a5791c2a2b1edaf269b9b536..092d91c024f35a3d1128cd583b15d9a7b979bbc9 100644 --- a/assets/pages-BxzHyUxX.js +++ b/assets/pages-B_XiJ3Wi.js @@ -1 +1 @@ -import{Stage_default as e}from"./Scenes-_LhL7EaP.js";import"./Basic-DNa_H8OA.js";import{breakpointsTailwind as t,createBaseVNode as n,createBlock as r,createVNode as i,defineComponent as a,openBlock as o,ref as s,unref as c,useBreakpoints as l,useDark as u,useMouse as d,withCtx as f}from"./index-jH8PbleY.js";import"./import-url-browser-gqaMLBiE.js";import"./duckdb-mvp-DdkY0Vq-.js";import"./HeaderLink-DiAWfIpN.js";import{route_block_default as p}from"./route-block-DWE87cA-.js";import{AnimatedWave_default as m,Cross_default as h,Header_default as g,InteractiveArea_default as _,MobileInteractiveArea_default as v}from"./AnimatedWave-BshZj-I-.js";const y={relative:``,flex:`~ col`,"z-2":``,"h-100dvh":``,"w-100vw":``,"of-hidden":``},b={class:`px-0 py-1 md:px-3 md:py-3`,"w-full":``,"gap-2":``},x={relative:``,flex:`~ 1 row gap-y-0 gap-x-2 (o(),r(h,null,{default:f(()=>[i(m,{"fill-color":c(p)?`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:f(()=>[n(`div`,y,[n(`div`,b,[i(g,{class:`flex`})]),n(`div`,x,[i(c(e),{"flex-1":``,"min-w":`1/2`,paused:S.value,"focus-at":{x:c(w).x.value,y:c(w).y.value},"x-offset":c(E)?void 0:`-10%`},null,8,[`paused`,`focus-at`,`x-offset`]),i(_,{class:`flex (o(),r(h,null,{default:f(()=>[i(m,{"fill-color":c(p)?`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:f(()=>[n(`div`,y,[n(`div`,b,[i(g,{class:`flex`})]),n(`div`,x,[i(c(e),{"flex-1":``,"min-w":`1/2`,paused:S.value,"focus-at":{x:c(w).x.value,y:c(w).y.value},"x-offset":c(E)?void 0:`-10%`},null,8,[`paused`,`focus-at`,`x-offset`]),i(_,{class:`flex E.getProviderMetadata(w)),k=i({get:()=>{var e;return(e=D.value[w])?.baseUrl||``},set:e=>{D.value[w]||(D.value[w]={}),D.value[w].baseUrl=e}}),A=p(!0);d(async()=>{var e;E.initializeProvider(w),k.value=(e=D.value[w])?.baseUrl||``;try{let e=await fetch(`${k.value}health`,{method:`GET`,headers:{"player2-game-key":`airi`}});A.value=e.status===200}catch(e){console.error(e),A.value=!1}}),b([k],()=>{D.value[w]={...D.value[w],baseUrl:k.value||``}});function j(){var e;D.value[w]={...(e=O.value)?.defaultOptions}}return(i,u)=>{var d,p;let h=m(`ProviderBasicSettings`);return f(),s(e,null,[A.value?o(``,!0):(f(),s(`div`,C,u[1]||=[a(`div`,null,[c(` Please download and run the Player2 App: `),a(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),a(`div`,null,[c(` After downloading, if you still are having trouble, please reach out to us on Discord: `),a(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),c(`. `)])],-1)])),l(g(r),{"provider-name":(d=O.value)?.localizedName,"provider-icon":(p=O.value)?.icon,"on-back":()=>g(T).back()},{default:x(()=>[l(g(n),null,{default:x(()=>[l(h,{title:g(S)(`settings.pages.providers.common.section.basic.title`),description:g(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":j},{default:x(()=>[l(g(t),{modelValue:k.value,"onUpdate:modelValue":u[0]||=e=>k.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 S==`function`&&S(T);var E=T;export{E as default}; \ No newline at end of file +import{Fragment as e,ProviderBaseUrlInput_default as t,ProviderSettingsContainer_default as n,ProviderSettingsLayout_default as r,computed as i,createBaseVNode as a,createCommentVNode as o,createElementBlock as s,createTextVNode as c,createVNode as l,defineComponent as u,onMounted as d,openBlock as f,ref as p,resolveComponent as m,storeToRefs as h,unref as g,useI18n as _,useProvidersStore as v,useRouter as y,watch as b,withCtx as x}from"./index-C2W4XoWv.js";import{route_block_default as S}from"./route-block-DWE87cA-.js";const C={key:0,style:{color:`red`,"margin-bottom":`1rem`}},w=`player2`;var T=u({__name:`player2`,setup(u){let{t:S}=_(),T=y(),E=v(),{providers:D}=h(E),O=i(()=>E.getProviderMetadata(w)),k=i({get:()=>{var e;return(e=D.value[w])?.baseUrl||``},set:e=>{D.value[w]||(D.value[w]={}),D.value[w].baseUrl=e}}),A=p(!0);d(async()=>{var e;E.initializeProvider(w),k.value=(e=D.value[w])?.baseUrl||``;try{let e=await fetch(`${k.value}health`,{method:`GET`,headers:{"player2-game-key":`airi`}});A.value=e.status===200}catch(e){console.error(e),A.value=!1}}),b([k],()=>{D.value[w]={...D.value[w],baseUrl:k.value||``}});function j(){var e;D.value[w]={...(e=O.value)?.defaultOptions}}return(i,u)=>{var d,p;let h=m(`ProviderBasicSettings`);return f(),s(e,null,[A.value?o(``,!0):(f(),s(`div`,C,u[1]||=[a(`div`,null,[c(` Please download and run the Player2 App: `),a(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),a(`div`,null,[c(` After downloading, if you still are having trouble, please reach out to us on Discord: `),a(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),c(`. `)])],-1)])),l(g(r),{"provider-name":(d=O.value)?.localizedName,"provider-icon":(p=O.value)?.icon,"on-back":()=>g(T).back()},{default:x(()=>[l(g(n),null,{default:x(()=>[l(h,{title:g(S)(`settings.pages.providers.common.section.basic.title`),description:g(S)(`settings.pages.providers.common.section.basic.description`),"on-reset":j},{default:x(()=>[l(g(t),{modelValue:k.value,"onUpdate:modelValue":u[0]||=e=>k.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 S==`function`&&S(T);var E=T;export{E as default}; \ No newline at end of file diff --git a/assets/player2-speech-DKo80HA-.js b/assets/player2-speech-omvRzl7n.js similarity index 97% rename from assets/player2-speech-DKo80HA-.js rename to assets/player2-speech-omvRzl7n.js index 51974bd2b3cc32930968569dd55198e46cf04239..919f632fc09e4ee0dfe26c62594af02203262457 100644 --- a/assets/player2-speech-DKo80HA-.js +++ b/assets/player2-speech-omvRzl7n.js @@ -1 +1 @@ -import{FieldRange_default as e,Fragment as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createCommentVNode as o,createElementBlock as s,createTextVNode as c,createVNode as l,defineComponent as u,onMounted as d,openBlock as f,ref as p,unref as m,useI18n as h,useProvidersStore as g,useSpeechStore as _,watch as v,withCtx as y}from"./index-jH8PbleY.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";const x={key:0,style:{color:`red`,"margin-bottom":`1rem`}},S=`player2-speech`,C=`v1`;var w=u({__name:`player2-speech`,setup(u){let b=p(1),w=_(),T=g(),{t:E}=h(),D=i(()=>w.availableVoices[S]||[]);async function O(e,t,n){let r=T.getProviderInstance(S);if(!r)throw Error(`Failed to initialize speech provider`);let i=T.getProviderConfig(S),a=i.model||C;return await w.speech(r,a,e,t,{...i})}let k=p(!0);return d(async()=>{let e=T.getProviderConfig(S),t=T.getProviderMetadata(S);await t.validators.validateProviderConfig(e)?await w.loadVoicesForProvider(S):console.error(`Failed to validate provider config`,e);try{let e=await fetch(`http://localhost:4315/v1/health`,{method:`GET`,headers:{"player2-game-key":`airi`}});k.value=e.status===200}catch(e){console.error(e),k.value=!1}}),v(b,async()=>{let e=T.getProviderConfig(S);e.speed=b.value}),(i,u)=>(f(),s(t,null,[k.value?o(``,!0):(f(),s(`div`,x,u[1]||=[a(`div`,null,[c(` Please download and run the Player2 App: `),a(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),a(`div`,null,[c(` After downloading, if you still are having trouble, please reach out to us on Discord: `),a(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),c(`. `)])],-1)])),l(m(r),{"provider-id":S,"default-model":C},{"voice-settings":y(()=>[l(m(e),{modelValue:b.value,"onUpdate:modelValue":u[0]||=e=>b.value=e,label:m(E)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:m(E)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:5,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:y(()=>[l(m(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 b==`function`&&b(w);var T=w;export{T as default}; \ No newline at end of file +import{FieldRange_default as e,Fragment as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createCommentVNode as o,createElementBlock as s,createTextVNode as c,createVNode as l,defineComponent as u,onMounted as d,openBlock as f,ref as p,unref as m,useI18n as h,useProvidersStore as g,useSpeechStore as _,watch as v,withCtx as y}from"./index-C2W4XoWv.js";import{route_block_default as b}from"./route-block-DWE87cA-.js";const x={key:0,style:{color:`red`,"margin-bottom":`1rem`}},S=`player2-speech`,C=`v1`;var w=u({__name:`player2-speech`,setup(u){let b=p(1),w=_(),T=g(),{t:E}=h(),D=i(()=>w.availableVoices[S]||[]);async function O(e,t,n){let r=T.getProviderInstance(S);if(!r)throw Error(`Failed to initialize speech provider`);let i=T.getProviderConfig(S),a=i.model||C;return await w.speech(r,a,e,t,{...i})}let k=p(!0);return d(async()=>{let e=T.getProviderConfig(S),t=T.getProviderMetadata(S);await t.validators.validateProviderConfig(e)?await w.loadVoicesForProvider(S):console.error(`Failed to validate provider config`,e);try{let e=await fetch(`http://localhost:4315/v1/health`,{method:`GET`,headers:{"player2-game-key":`airi`}});k.value=e.status===200}catch(e){console.error(e),k.value=!1}}),v(b,async()=>{let e=T.getProviderConfig(S);e.speed=b.value}),(i,u)=>(f(),s(t,null,[k.value?o(``,!0):(f(),s(`div`,x,u[1]||=[a(`div`,null,[c(` Please download and run the Player2 App: `),a(`a`,{href:`https://player2.game`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game `),a(`div`,null,[c(` After downloading, if you still are having trouble, please reach out to us on Discord: `),a(`a`,{href:`https://player2.game/discord`,target:`_blank`,rel:`noopener noreferrer`},` https://player2.game/discord `),c(`. `)])],-1)])),l(m(r),{"provider-id":S,"default-model":C},{"voice-settings":y(()=>[l(m(e),{modelValue:b.value,"onUpdate:modelValue":u[0]||=e=>b.value=e,label:m(E)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:m(E)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:5,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:y(()=>[l(m(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 b==`function`&&b(w);var T=w;export{T as default}; \ No newline at end of file diff --git a/assets/polaroid-o7t1kfW1.js b/assets/polaroid-ClXFWlFr.js similarity index 90% rename from assets/polaroid-o7t1kfW1.js rename to assets/polaroid-ClXFWlFr.js index ecbe8de79de2795b428d0f5b1604678668ceb0bd..f8c891870a6f0ff4985af5182898f0bbf3485707 100644 --- a/assets/polaroid-o7t1kfW1.js +++ b/assets/polaroid-ClXFWlFr.js @@ -1 +1 @@ -import{Canvas_default as e,Model_default as t}from"./Scenes-_LhL7EaP.js";import{Fragment as n,Screen_default as r,createBaseVNode as i,createElementBlock as a,createVNode as o,defineComponent as s,openBlock as c,ref as l,renderList as u,toDisplayString as d,unref as f,vModelSelect as p,watch as m,withCtx as h,withDirectives as g}from"./index-jH8PbleY.js";import"./import-url-browser-gqaMLBiE.js";import"./duckdb-mvp-DdkY0Vq-.js";const _={flex:``,"flex-col":``,"items-center":``,"gap-4":``},v={"h-full":``,"w-full":``},y=[`value`];var b=s({__name:`polaroid`,setup(s){let b=l(),x=l(),S=l(`idle`),C=l([]);function w(e,t){let n=document.createElement(`a`);n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function T(e){var t;(t=x.value)?.setMotion(e)}m(x,e=>{C.value=e?.listMotionGroups()||[]},{immediate:!0});function E(){if(x.value){var e;(e=x.value)?.setMotion(S.value),C.value=x.value.listMotionGroups()}}function D(){if(!b.value||!x.value)return;let e=b.value.canvasElement(),t=e.toDataURL(`image/png`);w(t,`live2d-screenshot.png`)}return(s,l)=>(c(),a(`div`,_,[i(`div`,v,[o(f(r),{relative:``,"min-h-70dvh":``},{default:h(({width:n,height:r})=>[o(f(e),{ref_key:`live2dCanvasRef`,ref:b,width:n,height:r,resolution:3,"rounded-full":``},{default:h(({app:e})=>[o(f(t),{ref_key:`live2dModelRef`,ref:x,app:e,width:n,height:r,"focus-at":{x:n/2,y:r/2},onModelLoaded:E},null,8,[`app`,`width`,`height`,`focus-at`])]),_:2},1032,[`width`,`height`])]),_:1})]),i(`div`,null,[g(i(`select`,{"onUpdate:modelValue":l[0]||=e=>S.value=e,"rounded-lg":``,"px-3":``,"py-2":``,onChange:l[1]||=e=>T(S.value)},[(c(!0),a(n,null,u(C.value,e=>(c(),a(`option`,{key:e.motionIndex,value:e.motionName},d(e.fileName),9,y))),128))],544),[[p,S.value]])]),i(`div`,{border:`2px solid white`,flex:``,"items-center":``,"justify-center":``,"rounded-full":``,"p-1":``},[i(`button`,{"h-18":``,"w-18":``,"rounded-full":``,bg:`white active:gray-50`,"outline-none":``,"transition-colors":``,"duration-200":``,"ease-in-out":``,onClick:D})])]))}}),x=b;export{x as default}; \ No newline at end of file +import{Canvas_default as e,Model_default as t}from"./Scenes-BRyVCX-j.js";import{Fragment as n,Screen_default as r,createBaseVNode as i,createElementBlock as a,createVNode as o,defineComponent as s,openBlock as c,ref as l,renderList as u,toDisplayString as d,unref as f,vModelSelect as p,watch as m,withCtx as h,withDirectives as g}from"./index-C2W4XoWv.js";import"./import-url-browser-gqaMLBiE.js";import"./duckdb-mvp-DdkY0Vq-.js";const _={flex:``,"flex-col":``,"items-center":``,"gap-4":``},v={"h-full":``,"w-full":``},y=[`value`];var b=s({__name:`polaroid`,setup(s){let b=l(),x=l(),S=l(`idle`),C=l([]);function w(e,t){let n=document.createElement(`a`);n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function T(e){var t;(t=x.value)?.setMotion(e)}m(x,e=>{C.value=e?.listMotionGroups()||[]},{immediate:!0});function E(){if(x.value){var e;(e=x.value)?.setMotion(S.value),C.value=x.value.listMotionGroups()}}function D(){if(!b.value||!x.value)return;let e=b.value.canvasElement(),t=e.toDataURL(`image/png`);w(t,`live2d-screenshot.png`)}return(s,l)=>(c(),a(`div`,_,[i(`div`,v,[o(f(r),{relative:``,"min-h-70dvh":``},{default:h(({width:n,height:r})=>[o(f(e),{ref_key:`live2dCanvasRef`,ref:b,width:n,height:r,resolution:3,"rounded-full":``},{default:h(({app:e})=>[o(f(t),{ref_key:`live2dModelRef`,ref:x,app:e,width:n,height:r,"focus-at":{x:n/2,y:r/2},onModelLoaded:E},null,8,[`app`,`width`,`height`,`focus-at`])]),_:2},1032,[`width`,`height`])]),_:1})]),i(`div`,null,[g(i(`select`,{"onUpdate:modelValue":l[0]||=e=>S.value=e,"rounded-lg":``,"px-3":``,"py-2":``,onChange:l[1]||=e=>T(S.value)},[(c(!0),a(n,null,u(C.value,e=>(c(),a(`option`,{key:e.motionIndex,value:e.motionName},d(e.fileName),9,y))),128))],544),[[p,S.value]])]),i(`div`,{border:`2px solid white`,flex:``,"items-center":``,"justify-center":``,"rounded-full":``,"p-1":``},[i(`button`,{"h-18":``,"w-18":``,"rounded-full":``,bg:`white active:gray-50`,"outline-none":``,"transition-colors":``,"duration-200":``,"ease-in-out":``,onClick:D})])]))}}),x=b;export{x as default}; \ No newline at end of file diff --git a/assets/providers-DcD3geRY.js b/assets/providers-DEM9Tm1c.js similarity index 96% rename from assets/providers-DcD3geRY.js rename to assets/providers-DEM9Tm1c.js index eaf2cae7564bb5d69f36476cfed1e1d775c31fe9..e12040f1ec573409a3c8a740b7a3d3b61667ab2d 100644 --- a/assets/providers-DcD3geRY.js +++ b/assets/providers-DEM9Tm1c.js @@ -1 +1 @@ -import{Fragment as e,IconStatusItem_default as t,createBaseVNode as n,createBlock as r,createElementBlock as i,createVNode as a,defineComponent as o,openBlock as s,renderList as c,resolveComponent as l,resolveDirective as u,storeToRefs as d,toDisplayString as f,unref as p,useI18n as m,useProvidersStore as h,withCtx as g,withDirectives as _}from"./index-jH8PbleY.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";import{IconAnimation_default as y}from"./IconAnimation-7PF9WZf6.js";import{useIconAnimation as b}from"./icon-animation-h5tjr2vU.js";const x={flex:``,"flex-col":``,"gap-5":``},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-2 gap-4`},O={flex:`~ row items-center gap-2`,"my-5":``},k={text:`neutral-300 dark:neutral-500`},A={grid:`~ cols-2 gap-4`},j={flex:`~ row items-center gap-2`,"my-5":``},M={text:`neutral-300 dark:neutral-500`},N={grid:`~ cols-2 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=o({__name:`index`,setup(o){let{t:v}=m(),F=h(),{allChatProvidersMetadata:I,allAudioSpeechProvidersMetadata:L,allAudioTranscriptionProvidersMetadata:R}=d(F),{iconAnimationStarted:z,showIconAnimation:B,animationIcon:V}=b(`i-solar:box-minimalistic-bold-duotone`);return(o,d)=>{let m=l(`i18n-t`),h=u(`motion`);return s(),i(e,null,[n(`div`,x,[n(`div`,S,[n(`div`,C,f(o.$t(`settings.pages.providers.helpinfo.title`)),1),n(`div`,w,[a(m,{keypath:`settings.pages.providers.helpinfo.description`},{chat:g(()=>d[0]||=[n(`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`},[n(`div`,{class:`i-solar:chat-square-like-bold-duotone`}),n(`strong`,{class:`font-semibold`},`Chat`)],-1)]),_:1})])]),n(`div`,T,[d[2]||=n(`div`,{"i-solar:chat-square-like-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),n(`div`,null,[n(`div`,null,[n(`span`,E,f(p(v)(`settings.pages.providers.explained.chat`)),1)]),d[1]||=n(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[n(`div`,null,` Chat `)],-1)])]),n(`div`,D,[(s(!0),i(e,null,c(p(I),(e,n)=>_((s(),r(p(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:n*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`])),[[h]])),128))]),n(`div`,O,[d[4]||=n(`div`,{"i-solar:user-speak-rounded-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),n(`div`,null,[n(`div`,null,[n(`span`,k,f(p(v)(`settings.pages.providers.explained.Speech`)),1)]),d[3]||=n(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[n(`div`,null,` Speech `)],-1)])]),n(`div`,A,[(s(!0),i(e,null,c(p(L),(e,n)=>_((s(),r(p(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:(p(I).length+n)*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`])),[[h]])),128))]),n(`div`,j,[d[6]||=n(`div`,{"i-solar:microphone-3-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),n(`div`,null,[n(`div`,null,[n(`span`,M,f(p(v)(`settings.pages.providers.explained.Transcription`)),1)]),d[5]||=n(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[n(`div`,null,` Transcription `)],-1)])]),n(`div`,N,[(s(!0),i(e,null,c(p(R),(e,n)=>_((s(),r(p(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:(p(I).length+p(L).length+n)*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`])),[[h]])),128))])]),p(B)?(s(),r(y,{key:0,"z-index":-1,icon:p(V),"icon-size":12,duration:1e3,started:p(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`])):_((s(),i(`div`,P,d[7]||=[n(`div`,{text:`60`,"i-solar:box-minimalistic-bold-duotone":``},null,-1)])),[[h]])],64)}}});typeof v==`function`&&v(F);var I=F;export{I as default}; \ No newline at end of file +import{Fragment as e,IconStatusItem_default as t,createBaseVNode as n,createBlock as r,createElementBlock as i,createVNode as a,defineComponent as o,openBlock as s,renderList as c,resolveComponent as l,resolveDirective as u,storeToRefs as d,toDisplayString as f,unref as p,useI18n as m,useProvidersStore as h,withCtx as g,withDirectives as _}from"./index-C2W4XoWv.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";import{IconAnimation_default as y}from"./IconAnimation-yDQP_Ncr.js";import{useIconAnimation as b}from"./icon-animation-C9bqWV38.js";const x={flex:``,"flex-col":``,"gap-5":``},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-2 gap-4`},O={flex:`~ row items-center gap-2`,"my-5":``},k={text:`neutral-300 dark:neutral-500`},A={grid:`~ cols-2 gap-4`},j={flex:`~ row items-center gap-2`,"my-5":``},M={text:`neutral-300 dark:neutral-500`},N={grid:`~ cols-2 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=o({__name:`index`,setup(o){let{t:v}=m(),F=h(),{allChatProvidersMetadata:I,allAudioSpeechProvidersMetadata:L,allAudioTranscriptionProvidersMetadata:R}=d(F),{iconAnimationStarted:z,showIconAnimation:B,animationIcon:V}=b(`i-solar:box-minimalistic-bold-duotone`);return(o,d)=>{let m=l(`i18n-t`),h=u(`motion`);return s(),i(e,null,[n(`div`,x,[n(`div`,S,[n(`div`,C,f(o.$t(`settings.pages.providers.helpinfo.title`)),1),n(`div`,w,[a(m,{keypath:`settings.pages.providers.helpinfo.description`},{chat:g(()=>d[0]||=[n(`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`},[n(`div`,{class:`i-solar:chat-square-like-bold-duotone`}),n(`strong`,{class:`font-semibold`},`Chat`)],-1)]),_:1})])]),n(`div`,T,[d[2]||=n(`div`,{"i-solar:chat-square-like-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),n(`div`,null,[n(`div`,null,[n(`span`,E,f(p(v)(`settings.pages.providers.explained.chat`)),1)]),d[1]||=n(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[n(`div`,null,` Chat `)],-1)])]),n(`div`,D,[(s(!0),i(e,null,c(p(I),(e,n)=>_((s(),r(p(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:n*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`])),[[h]])),128))]),n(`div`,O,[d[4]||=n(`div`,{"i-solar:user-speak-rounded-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),n(`div`,null,[n(`div`,null,[n(`span`,k,f(p(v)(`settings.pages.providers.explained.Speech`)),1)]),d[3]||=n(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[n(`div`,null,` Speech `)],-1)])]),n(`div`,A,[(s(!0),i(e,null,c(p(L),(e,n)=>_((s(),r(p(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:(p(I).length+n)*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`])),[[h]])),128))]),n(`div`,j,[d[6]||=n(`div`,{"i-solar:microphone-3-bold-duotone":``,text:`neutral-500 dark:neutral-400 4xl`},null,-1),n(`div`,null,[n(`div`,null,[n(`span`,M,f(p(v)(`settings.pages.providers.explained.Transcription`)),1)]),d[5]||=n(`div`,{flex:``,"text-nowrap":``,"text-3xl":``,"font-normal":``},[n(`div`,null,` Transcription `)],-1)])]),n(`div`,N,[(s(!0),i(e,null,c(p(R),(e,n)=>_((s(),r(p(t),{key:e.id,initial:{opacity:0,y:10},enter:{opacity:1,y:0},duration:250+n*10,delay:(p(I).length+p(L).length+n)*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`])),[[h]])),128))])]),p(B)?(s(),r(y,{key:0,"z-index":-1,icon:p(V),"icon-size":12,duration:1e3,started:p(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`])):_((s(),i(`div`,P,d[7]||=[n(`div`,{text:`60`,"i-solar:box-minimalistic-bold-duotone":``},null,-1)])),[[h]])],64)}}});typeof v==`function`&&v(F);var I=F;export{I as default}; \ No newline at end of file diff --git a/assets/queue-D2GbAcmy.js b/assets/queue-C-YzWg-G.js similarity index 94% rename from assets/queue-D2GbAcmy.js rename to assets/queue-C-YzWg-G.js index 6d14c4a68fb9531d5580cceabe597f60ac7b7e4c..fabce86b108650ddf1c1a6edc0de1a0ec88eb3ac 100644 --- a/assets/queue-D2GbAcmy.js +++ b/assets/queue-C-YzWg-G.js @@ -1 +1 @@ -import{createBaseVNode as e,createElementBlock as t,defineComponent as n,onMounted as r,openBlock as i,ref as a,sleep as o,useQueue as s}from"./index-jH8PbleY.js";var c=n({__name:`queue`,setup(n){let c=a(``),l=s({handlers:[async e=>{console.log(`ready to play speech audio for`,e)}]}),u=s({handlers:[async e=>{console.log(`ready to stream speech audio for`,e),l.add(e.data)}]}),d=s({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.add(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 o(100),d.add(e)}async function m(){p()}return r(()=>{m()}),(n,r)=>(i(),t(`div`,null,r[0]||=[e(`div`,null,null,-1)]))}}),l=c;export{l as default}; \ No newline at end of file +import{createBaseVNode as e,createElementBlock as t,defineComponent as n,onMounted as r,openBlock as i,ref as a,sleep as o,useQueue as s}from"./index-C2W4XoWv.js";var c=n({__name:`queue`,setup(n){let c=a(``),l=s({handlers:[async e=>{console.log(`ready to play speech audio for`,e)}]}),u=s({handlers:[async e=>{console.log(`ready to stream speech audio for`,e),l.add(e.data)}]}),d=s({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.add(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 o(100),d.add(e)}async function m(){p()}return r(()=>{m()}),(n,r)=>(i(),t(`div`,null,r[0]||=[e(`div`,null,null,-1)]))}}),l=c;export{l as default}; \ No newline at end of file diff --git a/assets/scene-B5jmLrrn.js b/assets/scene-Cu9Mso0l.js similarity index 75% rename from assets/scene-B5jmLrrn.js rename to assets/scene-Cu9Mso0l.js index 0c26ac455cecd3e9ff04e524a2639d288ff81197..e8599521dc5e2c87cea008e53f3642c12b59fe59 100644 --- a/assets/scene-B5jmLrrn.js +++ b/assets/scene-Cu9Mso0l.js @@ -1 +1 @@ -import{Fragment as e,createBaseVNode as t,createBlock as n,createElementBlock as r,defineComponent as i,openBlock as a,resolveDirective as o,unref as s,withDirectives as c}from"./index-jH8PbleY.js";import{route_block_default as l}from"./route-block-DWE87cA-.js";import{IconAnimation_default as u}from"./IconAnimation-7PF9WZf6.js";import{useIconAnimation as d}from"./icon-animation-h5tjr2vU.js";const f={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 p=i({__name:`index`,setup(i){let{iconAnimationStarted:l,showIconAnimation:p,animationIcon:m}=d(`i-solar:armchair-2-bold-duotone`);return(i,d)=>{let h=o(`motion`);return a(),r(e,null,[d[1]||=t(`div`,null,` Scene `,-1),s(p)?(a(),n(u,{key:0,"z-index":-1,icon:s(m),"icon-size":12,duration:1e3,started:s(l),"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`])):c((a(),r(`div`,f,d[0]||=[t(`div`,{text:`60`,"i-solar:armchair-2-bold-duotone":``},null,-1)])),[[h]])],64)}}});typeof l==`function`&&l(p);var m=p;export{m as default}; \ No newline at end of file +import{Fragment as e,createBaseVNode as t,createBlock as n,createElementBlock as r,defineComponent as i,openBlock as a,resolveDirective as o,unref as s,withDirectives as c}from"./index-C2W4XoWv.js";import{route_block_default as l}from"./route-block-DWE87cA-.js";import{IconAnimation_default as u}from"./IconAnimation-yDQP_Ncr.js";import{useIconAnimation as d}from"./icon-animation-C9bqWV38.js";const f={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 p=i({__name:`index`,setup(i){let{iconAnimationStarted:l,showIconAnimation:p,animationIcon:m}=d(`i-solar:armchair-2-bold-duotone`);return(i,d)=>{let h=o(`motion`);return a(),r(e,null,[d[1]||=t(`div`,null,` Scene `,-1),s(p)?(a(),n(u,{key:0,"z-index":-1,icon:s(m),"icon-size":12,duration:1e3,started:s(l),"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`])):c((a(),r(`div`,f,d[0]||=[t(`div`,{text:`60`,"i-solar:armchair-2-bold-duotone":``},null,-1)])),[[h]])],64)}}});typeof l==`function`&&l(p);var m=p;export{m as default}; \ No newline at end of file diff --git a/assets/settings-C52F13cz.js b/assets/settings-B6QGUj0K.js similarity index 96% rename from assets/settings-C52F13cz.js rename to assets/settings-B6QGUj0K.js index 42ca31abbbb626fe7122e94c77063615bf3e434d..a5b3adfe1d2624b8e6e22434209b439df1ed6d4d 100644 --- a/assets/settings-C52F13cz.js +++ b/assets/settings-B6QGUj0K.js @@ -1 +1 @@ -import{Fragment as e,IconItem_default as t,computed as n,createBaseVNode as r,createBlock as i,createElementBlock as a,defineComponent as o,nextTick as s,normalizeStyle as c,openBlock as l,ref as u,renderList as d,resolveDirective as f,unref as p,useI18n as m,useRouter as h,useSettings as g,withDirectives as _}from"./index-jH8PbleY.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";import{IconAnimation_default as y}from"./IconAnimation-7PF9WZf6.js";const b={flex:`~ col gap-4`,"font-normal":``},x={flex:`~ col gap-4`},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=o({__name:`index`,setup(o){let v=h(),w=u(!1),T=u(),E=u(),{t:D}=m(),O=u(``),k=u(``),A=u(!1),j=g();function M(){var e;(e=E.value)?.call(E)}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 s(),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=n(()=>[{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.themes.title`),description:D(`settings.pages.themes.description`),icon:`i-solar:filters-bold-duotone`,to:`/settings/appearance`}]);return(n,o)=>{let s=f(`motion`);return l(),a(`div`,b,[o[0]||=r(`div`,null,null,-1),r(`div`,x,[(l(!0),a(e,null,d(F.value,(e,n)=>_((l(),i(p(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,onClick:t=>N(t,e)},null,8,[`style`,`title`,`description`,`icon`,`to`,`onClick`])),[[s]])),128))]),A.value&&!p(j).disableTransitions&&p(j).usePageSpecificTransitions?(l(),i(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`])):_((l(),a(`div`,S,[_(r(`div`,C,null,512),[[s]])])),[[s]])])}}});typeof v==`function`&&v(w);var T=w;export{T as default}; \ No newline at end of file +import{Fragment as e,IconItem_default as t,computed as n,createBaseVNode as r,createBlock as i,createElementBlock as a,defineComponent as o,nextTick as s,normalizeStyle as c,openBlock as l,ref as u,renderList as d,resolveDirective as f,unref as p,useI18n as m,useRouter as h,useSettings as g,withDirectives as _}from"./index-C2W4XoWv.js";import{route_block_default as v}from"./route-block-DWE87cA-.js";import{IconAnimation_default as y}from"./IconAnimation-yDQP_Ncr.js";const b={flex:`~ col gap-4`,"font-normal":``},x={flex:`~ col gap-4`},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=o({__name:`index`,setup(o){let v=h(),w=u(!1),T=u(),E=u(),{t:D}=m(),O=u(``),k=u(``),A=u(!1),j=g();function M(){var e;(e=E.value)?.call(E)}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 s(),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=n(()=>[{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.themes.title`),description:D(`settings.pages.themes.description`),icon:`i-solar:filters-bold-duotone`,to:`/settings/appearance`}]);return(n,o)=>{let s=f(`motion`);return l(),a(`div`,b,[o[0]||=r(`div`,null,null,-1),r(`div`,x,[(l(!0),a(e,null,d(F.value,(e,n)=>_((l(),i(p(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,onClick:t=>N(t,e)},null,8,[`style`,`title`,`description`,`icon`,`to`,`onClick`])),[[s]])),128))]),A.value&&!p(j).disableTransitions&&p(j).usePageSpecificTransitions?(l(),i(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`])):_((l(),a(`div`,S,[_(r(`div`,C,null,512),[[s]])])),[[s]])])}}});typeof v==`function`&&v(w);var T=w;export{T as default}; \ No newline at end of file diff --git a/assets/settings-CHo_K_ph.js b/assets/settings-Bod_1WHj.js similarity index 96% rename from assets/settings-CHo_K_ph.js rename to assets/settings-Bod_1WHj.js index 2c10bec97a83ffcd5aa23df2c1b871536a3c1526..0cbaa21f7cc77d652a13915d8eb4afde411ef467 100644 --- a/assets/settings-CHo_K_ph.js +++ b/assets/settings-Bod_1WHj.js @@ -1 +1 @@ -import{PageHeader_default as e,RouterView as t,computed as n,createBaseVNode as r,createElementBlock as i,createVNode as a,defineComponent as o,openBlock as s,storeToRefs as c,unref as l,useI18n as u,useProvidersStore as d,useRoute as f}from"./index-jH8PbleY.js";import{HeaderLink_default as p}from"./HeaderLink-DiAWfIpN.js";const m={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={class:`px-0 py-1 hidden sm:block md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},g={class:`px-3 py-0 md:px-5 md:py-5`,flex:`~ col`,"mx-auto":``,"max-w-screen-xl":``};var _=o({__name:`settings`,setup(o){let _=f(),{t:v}=u(),y=d(),{allProvidersMetadata:b}=c(y),x=n(()=>{let e={"/settings/airi-card":{subtitle:v(`settings.title`),title:v(`settings.pages.card.title`)},"/settings/appearance":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.title`)},"/settings/appearance/general":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.general.title`)},"/settings/appearance/color-scheme":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.color-scheme.title`)},"/settings/appearance/developer":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.developer.title`)},"/settings/memory":{subtitle:v(`settings.title`),title:v(`settings.pages.memory.title`)},"/settings/models":{subtitle:v(`settings.title`),title:v(`settings.pages.models.title`)},"/settings/modules":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.title`)},"/settings/modules/consciousness":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.consciousness.title`)},"/settings/modules/speech":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.speech.title`)},"/settings/modules/hearing":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.hearing.title`)},"/settings/modules/memory-short-term":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.memory-short-term.title`)},"/settings/modules/memory-long-term":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.memory-long-term.title`)},"/settings/modules/messaging-discord":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.messaging-discord.title`)},"/settings/modules/x":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.x.title`)},"/settings/modules/gaming-minecraft":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.gaming-minecraft.title`)},"/settings/modules/gaming-factorio":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.gaming-factorio.title`)},"/settings/providers":{subtitle:v(`settings.title`),title:v(`settings.pages.providers.title`)},"/settings/scene":{subtitle:v(`settings.title`),title:v(`settings.pages.scene.title`)},"/settings":{title:v(`settings.title`)}};for(let t of b.value)e[`/settings/providers/${t.id}`]={subtitle:v(`settings.title`),title:v(t.nameKey)};return e}),S=n(()=>x.value[_.path]);return(n,o)=>{var c,u;return s(),i(`div`,m,[r(`div`,h,[a(p)]),r(`div`,g,[a(l(e),{title:(c=S.value)?.title,subtitle:(u=S.value)?.subtitle},null,8,[`title`,`subtitle`]),a(l(t))])])}}}),v=_;export{v as default}; \ No newline at end of file +import{PageHeader_default as e,RouterView as t,computed as n,createBaseVNode as r,createElementBlock as i,createVNode as a,defineComponent as o,openBlock as s,storeToRefs as c,unref as l,useI18n as u,useProvidersStore as d,useRoute as f}from"./index-C2W4XoWv.js";import{HeaderLink_default as p}from"./HeaderLink-B1-yiGgJ.js";const m={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={class:`px-0 py-1 hidden sm:block md:px-3 md:py-3`,"w-full":``,"gap-2":``,bg:`$bg-color`},g={class:`px-3 py-0 md:px-5 md:py-5`,flex:`~ col`,"mx-auto":``,"max-w-screen-xl":``};var _=o({__name:`settings`,setup(o){let _=f(),{t:v}=u(),y=d(),{allProvidersMetadata:b}=c(y),x=n(()=>{let e={"/settings/airi-card":{subtitle:v(`settings.title`),title:v(`settings.pages.card.title`)},"/settings/appearance":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.title`)},"/settings/appearance/general":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.general.title`)},"/settings/appearance/color-scheme":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.color-scheme.title`)},"/settings/appearance/developer":{subtitle:v(`settings.title`),title:v(`settings.pages.themes.developer.title`)},"/settings/memory":{subtitle:v(`settings.title`),title:v(`settings.pages.memory.title`)},"/settings/models":{subtitle:v(`settings.title`),title:v(`settings.pages.models.title`)},"/settings/modules":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.title`)},"/settings/modules/consciousness":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.consciousness.title`)},"/settings/modules/speech":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.speech.title`)},"/settings/modules/hearing":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.hearing.title`)},"/settings/modules/memory-short-term":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.memory-short-term.title`)},"/settings/modules/memory-long-term":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.memory-long-term.title`)},"/settings/modules/messaging-discord":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.messaging-discord.title`)},"/settings/modules/x":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.x.title`)},"/settings/modules/gaming-minecraft":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.gaming-minecraft.title`)},"/settings/modules/gaming-factorio":{subtitle:v(`settings.title`),title:v(`settings.pages.modules.gaming-factorio.title`)},"/settings/providers":{subtitle:v(`settings.title`),title:v(`settings.pages.providers.title`)},"/settings/scene":{subtitle:v(`settings.title`),title:v(`settings.pages.scene.title`)},"/settings":{title:v(`settings.title`)}};for(let t of b.value)e[`/settings/providers/${t.id}`]={subtitle:v(`settings.title`),title:v(t.nameKey)};return e}),S=n(()=>x.value[_.path]);return(n,o)=>{var c,u;return s(),i(`div`,m,[r(`div`,h,[a(p)]),r(`div`,g,[a(l(e),{title:(c=S.value)?.title,subtitle:(u=S.value)?.subtitle},null,8,[`title`,`subtitle`]),a(l(t))])])}}}),v=_;export{v as default}; \ No newline at end of file diff --git a/assets/speech-BN_3U8Ip.js b/assets/speech-CgPaoQOI.js similarity index 98% rename from assets/speech-BN_3U8Ip.js rename to assets/speech-CgPaoQOI.js index 0c293b6581a4544659dafa23ae52d08b25e33191..5e27483031f7da393fa7124ccbfe9218cc0d669c 100644 --- a/assets/speech-BN_3U8Ip.js +++ b/assets/speech-CgPaoQOI.js @@ -1 +1 @@ -import"./Basic-DNa_H8OA.js";import{Textarea_default as e}from"./Textarea-D8CbwmdL.js";import{FieldCheckbox_default as t,FieldInput_default as n,FieldRange_default as r,Fragment as i,RadioCardManySelect_default as ee,RadioCardSimple_default as te,RouterLink as ne,Skeleton_default as a,TestDummyMarker_default as re,VoiceCardManySelect_default as ie,createBaseVNode as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createVNode as u,defineComponent as ae,generateSpeech as d,isRef as f,normalizeClass as oe,onMounted as p,onUnmounted as m,openBlock as h,ref as g,renderList as se,resolveDirective as ce,storeToRefs as _,toDisplayString as v,unref as y,useI18n as le,useProvidersStore as ue,useSpeechStore as de,vModelSelect as fe,vModelText as pe,watch as me,withCtx as b,withDirectives as x}from"./index-jH8PbleY.js";import{route_block_default as S}from"./route-block-DWE87cA-.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:`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`},C={text:`neutral-400 dark:neutral-400`},w={key:0,class:`flex items-center justify-center py-4`},T={key:1,class:`flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20`},E={class:`flex flex-col`},D={class:`font-medium`},O={class:`text-sm text-red-600 dark:text-red-400`},Ee={key:2,class:`flex items-center gap-3 border border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},De={class:`flex flex-col`},Oe={class:`font-medium`},ke={class:`text-sm text-amber-600 dark:text-amber-400`},Ae={key:0},je={flex:`~ col gap-4`},Me={key:0},Ne={class:`flex flex-col gap-4`},Pe={flex:`~ row gap-4`},Fe={key:1,class:`space-y-6`},Ie={key:2,class:`flex items-center gap-3 border border-2 border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20`},Le={class:`flex flex-col`},Re={class:`text-sm text-red-600 dark:text-red-400`},ze={key:3,class:`flex items-center gap-3 border border-2 border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},Be={flex:`~ col gap-4`},Ve={key:4,class:`mt-2 space-y-6`},He={key:0},Ue={flex:`~ col gap-4`},We={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},Ge={"w-full":``,"rounded-xl":``},Ke={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},k={class:`inline-flex items-center gap-4`},qe={flex:`~ col gap-4`},Je={flex:`~ row`,"gap-4":``},Ye=[`disabled`],Xe={flex:`~ row`,"items-center":``,"gap-2":``},Ze=[`src`],Qe={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 A=ae({__name:`speech`,setup(ae){let{t:S}=le(),A=ue(),j=de(),{configuredSpeechProvidersMetadata:M}=_(A),{activeSpeechProvider:N,activeSpeechModel:P,activeSpeechVoice:F,activeSpeechVoiceId:I,pitch:L,isLoadingSpeechProviderVoices:$e,supportsModelListing:et,providerModels:R,isLoadingActiveProviderModels:z,activeProviderModelError:B,modelSearchQuery:V,speechProviderError:H,ssmlEnabled:U,availableVoices:W}=_(j),G=g(``),K=g(!1),q=g(`Hello, my name is AI Assistant`),J=g(``),Y=g(!1),X=g(``),Z=g(null),Q=g(``);p(async()=>{await A.loadModelsForConfiguredProviders(),await j.loadVoicesForProvider(N.value)}),me(N,async()=>{await A.loadModelsForConfiguredProviders(),await j.loadVoicesForProvider(N.value)});async function tt(){if(!q.value.trim()&&!K.value||K.value&&!J.value.trim())return;if(!P.value){console.error(`No model selected`);return}if(!F.value){console.error(`No voice selected`);return}let e=A.getProviderInstance(N.value);if(!e){console.error(`Failed to initialize speech provider`);return}let t=A.getProviderConfig(N.value);Y.value=!0,Q.value=``;try{X.value&&$();let n=K.value?J.value:j.supportsSSML?j.generateSSML(q.value,F.value,{...t,pitch:L.value}):q.value,r=await d({...e.speech(P.value,t),input:n,voice:F.value.id});X.value=URL.createObjectURL(new Blob([r])),setTimeout(()=>{Z.value&&Z.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),Q.value=e instanceof Error?e.message:`An unknown error occurred`}finally{Y.value=!1}}function $(){Z.value&&(Z.value.pause(),Z.value.currentTime=0),X.value&&(URL.revokeObjectURL(X.value),X.value=``)}m(()=>{X.value&&URL.revokeObjectURL(X.value)});function nt(e){F.value={id:e,name:e,description:e,previewURL:e,languages:[{code:`en`,title:`English`}],provider:N.value,gender:`male`}}function rt(e){P.value=e}return(ae,d)=>{var p;let m=ce(`motion`);return h(),l(i,null,[o(`div`,he,[o(`div`,ge,[o(`div`,null,[o(`div`,_e,[o(`div`,null,[o(`h2`,ve,v(y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.title`)),1),o(`div`,ye,[o(`span`,null,v(y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.description`)),1)])]),o(`div`,be,[y(M).length>0?(h(),l(`fieldset`,xe,[(h(!0),l(i,null,se(y(M),e=>(h(),s(y(te),{id:e.id,key:e.id,modelValue:y(N),"onUpdate:modelValue":d[0]||=e=>f(N)?N.value=e:null,name:`speech-provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(h(),l(`div`,Se,[u(y(ne),{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(()=>d[13]||=[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 Speech Providers Configured`),o(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your speech 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,__:[13]})]))])]),o(`div`,null,[y(N)&&y(et)?(h(),l(`div`,Ce,[o(`div`,we,[o(`div`,null,[o(`h2`,Te,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),o(`div`,C,[o(`span`,null,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),y(z)?(h(),l(`div`,w,[d[14]||=o(`div`,{class:`mr-2 animate-spin`},[o(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),o(`span`,null,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):y(B)?(h(),l(`div`,T,[d[15]||=o(`div`,{"i-solar:close-circle-line-duotone":``,class:`text-2xl text-red-500 dark:text-red-400`},null,-1),o(`div`,E,[o(`span`,D,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`)),1),o(`span`,O,v(y(B)),1)])])):y(R).length===0&&!y(z)?(h(),l(`div`,Ee,[d[16]||=o(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),o(`div`,De,[o(`span`,Oe,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1),o(`span`,ke,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)])])):y(R).length>0?(h(),s(y(ee),{key:3,modelValue:y(P),"onUpdate:modelValue":d[1]||=e=>f(P)?P.value=e:null,"search-query":y(V),"onUpdate:searchQuery":d[2]||=e=>f(V)?V.value=e:null,items:y(R),searchable:!0,"search-placeholder":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:y(V)}),"search-results-text":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":rt},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)])])):c(``,!0)])]),y(N)?(h(),l(`div`,Ae,[o(`div`,je,[d[27]||=o(`div`,null,[o(`h2`,{class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},` Voice Configuration `),o(`div`,{text:`neutral-400 dark:neutral-500`},[o(`span`,null,`Customize how your AI assistant speaks`)])],-1),y($e)?(h(),l(`div`,Me,[o(`div`,Ne,[u(y(a),{class:`w-full rounded-lg p-2.5 text-sm`},{default:b(()=>d[17]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[17]}),o(`div`,Pe,[u(y(a),{class:`w-full rounded-lg p-4 text-sm`},{default:b(()=>d[18]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[18]}),u(y(a),{class:`w-full rounded-lg p-4 text-sm`},{default:b(()=>d[19]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[19]}),u(y(a),{class:`w-full rounded-lg p-4 text-sm`},{default:b(()=>d[20]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[20]})]),u(y(a),{class:`w-full rounded-lg p-3 text-sm`},{default:b(()=>d[21]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[21]})])])):y(W)[y(N)]&&y(W)[y(N)].length>0?(h(),l(`div`,Fe,[u(y(ie),{"search-query":G.value,"onUpdate:searchQuery":d[3]||=e=>G.value=e,"voice-id":y(I),"onUpdate:voiceId":d[4]||=e=>f(I)?I.value=e:null,voices:(p=y(W)[y(N)])?.map(e=>({id:e.id,name:e.name,description:e.description,previewURL:e.previewURL,customizable:!1})),searchable:!0,"search-placeholder":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_placeholder`),"search-no-results-title":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices`),"search-no-results-description":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_description`),"search-results-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_results`,{count:0,total:0}),"custom-input-placeholder":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.custom_voice_placeholder`),"expand-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_more`),"collapse-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_less`),"play-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.play_sample`),"pause-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.pause`),"onUpdate:customValue":nt},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`])])):y(H)?(h(),l(`div`,Ie,[d[23]||=o(`div`,{"i-solar:close-circle-line-duotone":``,class:`text-2xl text-red-500 dark:text-red-400`},null,-1),o(`div`,Le,[d[22]||=o(`span`,{class:`font-medium`},`Error loading voices`,-1),o(`span`,Re,v(y(H)),1)])])):(h(),l(`div`,ze,d[24]||=[o(`div`,{"i-solar:info-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 voices available`),o(`span`,{class:`text-sm text-amber-600 dark:text-amber-400`},` No voices were found for this provider. You can enter a custom voice name below. `)],-1)])),o(`div`,Be,[u(y(r),{modelValue:y(L),"onUpdate:modelValue":d[5]||=e=>f(L)?L.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`]),u(y(t),{modelValue:y(U),"onUpdate:modelValue":d[6]||=e=>f(U)?U.value=e:null,label:`Enable SSML`,description:`Enable Speech Synthesis Markup Language for more control over speech output`},null,8,[`modelValue`])]),!y(W)[y(N)]||y(W)[y(N)].length===0?(h(),l(`div`,Ve,[u(y(n),{modelValue:y(I),"onUpdate:modelValue":d[7]||=e=>f(I)?I.value=e:null,type:`text`,label:`Voice ID`,description:`Enter the voice ID for your custom voice`,placeholder:`Enter voice name (e.g., 'Rachel', 'Josh')`},null,8,[`modelValue`]),y(N)===`elevenlabs`?(h(),l(`div`,He,[d[26]||=o(`label`,{class:`mb-1 block text-sm font-medium`},` Model `,-1),x(o(`select`,{"onUpdate:modelValue":d[8]||=e=>f(P)?P.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`},d[25]||=[o(`option`,{value:`eleven_monolingual_v1`},` Monolingual v1 `,-1),o(`option`,{value:`eleven_multilingual_v1`},` Multilingual v1 `,-1),o(`option`,{value:`eleven_multilingual_v2`},` Multilingual v2 `,-1)],512),[[fe,y(P)]])])):c(``,!0),o(`div`,Ue,[u(y(r),{modelValue:y(L),"onUpdate:modelValue":d[9]||=e=>f(L)?L.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`])])])):c(``,!0)])])):c(``,!0)]),o(`div`,We,[o(`div`,Ge,[o(`h2`,Ke,[o(`div`,k,[u(y(re)),o(`div`,null,v(y(S)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),o(`div`,qe,[u(y(t),{modelValue:K.value,"onUpdate:modelValue":d[10]||=e=>K.value=e,label:`Use Custom SSML`,description:`Enable to input raw SSML instead of plain text`},null,8,[`modelValue`]),K.value?x((h(),l(`textarea`,{key:1,"onUpdate:modelValue":d[12]||=e=>J.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,J.value]]):(h(),s(y(e),{key:0,modelValue:q.value,"onUpdate:modelValue":d[11]||=e=>q.value=e,"h-24":``,"w-full":``,placeholder:y(S)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`)},null,8,[`modelValue`,`placeholder`])),o(`div`,Je,[o(`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:Y.value||!q.value.trim()&&!K.value||K.value&&!J.value.trim()||!y(F),class:oe({"opacity-50 cursor-not-allowed":Y.value||!q.value.trim()&&!K.value||K.value&&!J.value.trim()||!y(F)}),bg:`neutral-700 dark:neutral-300`,onClick:tt},[o(`div`,Xe,[d[28]||=o(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),o(`span`,null,v(Y.value?y(S)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):y(S)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,Ye),X.value?(h(),l(`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:$},d[29]||=[o(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[o(`div`,{"i-solar:stop-circle-bold-duotone":``}),o(`span`,null,`Stop`)],-1)])):c(``,!0)]),X.value?(h(),l(`audio`,{key:2,ref_key:`audioPlayer`,ref:Z,src:X.value,controls:``,class:`mt-2 w-full`},null,8,Ze)):c(``,!0)])])])]),x((h(),l(`div`,Qe,d[30]||=[o(`div`,{text:`60`,"i-solar:user-speak-rounded-bold-duotone":``},null,-1)])),[[m]])],64)}}});typeof S==`function`&&S(A);var j=A;export{j as default}; \ No newline at end of file +import"./Basic-eHldbasx.js";import{Textarea_default as e}from"./Textarea-BvqhLeCk.js";import{FieldCheckbox_default as t,FieldInput_default as n,FieldRange_default as r,Fragment as i,RadioCardManySelect_default as ee,RadioCardSimple_default as te,RouterLink as ne,Skeleton_default as a,TestDummyMarker_default as re,VoiceCardManySelect_default as ie,createBaseVNode as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createVNode as u,defineComponent as ae,generateSpeech as d,isRef as f,normalizeClass as oe,onMounted as p,onUnmounted as m,openBlock as h,ref as g,renderList as se,resolveDirective as ce,storeToRefs as _,toDisplayString as v,unref as y,useI18n as le,useProvidersStore as ue,useSpeechStore as de,vModelSelect as fe,vModelText as pe,watch as me,withCtx as b,withDirectives as x}from"./index-C2W4XoWv.js";import{route_block_default as S}from"./route-block-DWE87cA-.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:`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`},C={text:`neutral-400 dark:neutral-400`},w={key:0,class:`flex items-center justify-center py-4`},T={key:1,class:`flex items-center gap-3 border border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20`},E={class:`flex flex-col`},D={class:`font-medium`},O={class:`text-sm text-red-600 dark:text-red-400`},Ee={key:2,class:`flex items-center gap-3 border border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},De={class:`flex flex-col`},Oe={class:`font-medium`},ke={class:`text-sm text-amber-600 dark:text-amber-400`},Ae={key:0},je={flex:`~ col gap-4`},Me={key:0},Ne={class:`flex flex-col gap-4`},Pe={flex:`~ row gap-4`},Fe={key:1,class:`space-y-6`},Ie={key:2,class:`flex items-center gap-3 border border-2 border-red-200 rounded-lg bg-red-50 p-4 dark:border-red-800 dark:bg-red-900/20`},Le={class:`flex flex-col`},Re={class:`text-sm text-red-600 dark:text-red-400`},ze={key:3,class:`flex items-center gap-3 border border-2 border-amber-200 rounded-lg bg-amber-50 p-4 dark:border-amber-800 dark:bg-amber-900/20`},Be={flex:`~ col gap-4`},Ve={key:4,class:`mt-2 space-y-6`},He={key:0},Ue={flex:`~ col gap-4`},We={flex:`~ col gap-6`,class:`w-full md:w-[60%]`},Ge={"w-full":``,"rounded-xl":``},Ke={class:`mb-4 text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`,"w-full":``},k={class:`inline-flex items-center gap-4`},qe={flex:`~ col gap-4`},Je={flex:`~ row`,"gap-4":``},Ye=[`disabled`],Xe={flex:`~ row`,"items-center":``,"gap-2":``},Ze=[`src`],Qe={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 A=ae({__name:`speech`,setup(ae){let{t:S}=le(),A=ue(),j=de(),{configuredSpeechProvidersMetadata:M}=_(A),{activeSpeechProvider:N,activeSpeechModel:P,activeSpeechVoice:F,activeSpeechVoiceId:I,pitch:L,isLoadingSpeechProviderVoices:$e,supportsModelListing:et,providerModels:R,isLoadingActiveProviderModels:z,activeProviderModelError:B,modelSearchQuery:V,speechProviderError:H,ssmlEnabled:U,availableVoices:W}=_(j),G=g(``),K=g(!1),q=g(`Hello, my name is AI Assistant`),J=g(``),Y=g(!1),X=g(``),Z=g(null),Q=g(``);p(async()=>{await A.loadModelsForConfiguredProviders(),await j.loadVoicesForProvider(N.value)}),me(N,async()=>{await A.loadModelsForConfiguredProviders(),await j.loadVoicesForProvider(N.value)});async function tt(){if(!q.value.trim()&&!K.value||K.value&&!J.value.trim())return;if(!P.value){console.error(`No model selected`);return}if(!F.value){console.error(`No voice selected`);return}let e=A.getProviderInstance(N.value);if(!e){console.error(`Failed to initialize speech provider`);return}let t=A.getProviderConfig(N.value);Y.value=!0,Q.value=``;try{X.value&&$();let n=K.value?J.value:j.supportsSSML?j.generateSSML(q.value,F.value,{...t,pitch:L.value}):q.value,r=await d({...e.speech(P.value,t),input:n,voice:F.value.id});X.value=URL.createObjectURL(new Blob([r])),setTimeout(()=>{Z.value&&Z.value.play()},100)}catch(e){console.error(`Error generating speech:`,e),Q.value=e instanceof Error?e.message:`An unknown error occurred`}finally{Y.value=!1}}function $(){Z.value&&(Z.value.pause(),Z.value.currentTime=0),X.value&&(URL.revokeObjectURL(X.value),X.value=``)}m(()=>{X.value&&URL.revokeObjectURL(X.value)});function nt(e){F.value={id:e,name:e,description:e,previewURL:e,languages:[{code:`en`,title:`English`}],provider:N.value,gender:`male`}}function rt(e){P.value=e}return(ae,d)=>{var p;let m=ce(`motion`);return h(),l(i,null,[o(`div`,he,[o(`div`,ge,[o(`div`,null,[o(`div`,_e,[o(`div`,null,[o(`h2`,ve,v(y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.title`)),1),o(`div`,ye,[o(`span`,null,v(y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.description`)),1)])]),o(`div`,be,[y(M).length>0?(h(),l(`fieldset`,xe,[(h(!0),l(i,null,se(y(M),e=>(h(),s(y(te),{id:e.id,key:e.id,modelValue:y(N),"onUpdate:modelValue":d[0]||=e=>f(N)?N.value=e:null,name:`speech-provider`,value:e.id,title:e.localizedName||`Unknown`,description:e.localizedDescription},null,8,[`id`,`modelValue`,`value`,`title`,`description`]))),128))])):(h(),l(`div`,Se,[u(y(ne),{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(()=>d[13]||=[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 Speech Providers Configured`),o(`span`,{class:`text-sm text-neutral-400 dark:text-neutral-500`},`Click here to set up your speech 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,__:[13]})]))])]),o(`div`,null,[y(N)&&y(et)?(h(),l(`div`,Ce,[o(`div`,we,[o(`div`,null,[o(`h2`,Te,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.title`)),1),o(`div`,C,[o(`span`,null,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.subtitle`)),1)])]),y(z)?(h(),l(`div`,w,[d[14]||=o(`div`,{class:`mr-2 animate-spin`},[o(`div`,{"i-solar:spinner-line-duotone":``,"text-xl":``})],-1),o(`span`,null,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.loading`)),1)])):y(B)?(h(),l(`div`,T,[d[15]||=o(`div`,{"i-solar:close-circle-line-duotone":``,class:`text-2xl text-red-500 dark:text-red-400`},null,-1),o(`div`,E,[o(`span`,D,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.error`)),1),o(`span`,O,v(y(B)),1)])])):y(R).length===0&&!y(z)?(h(),l(`div`,Ee,[d[16]||=o(`div`,{"i-solar:info-circle-line-duotone":``,class:`text-2xl text-amber-500 dark:text-amber-400`},null,-1),o(`div`,De,[o(`span`,Oe,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models`)),1),o(`span`,ke,v(y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_models_description`)),1)])])):y(R).length>0?(h(),s(y(ee),{key:3,modelValue:y(P),"onUpdate:modelValue":d[1]||=e=>f(P)?P.value=e:null,"search-query":y(V),"onUpdate:searchQuery":d[2]||=e=>f(V)?V.value=e:null,items:y(R),searchable:!0,"search-placeholder":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder`),"search-no-results-title":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results`),"search-no-results-description":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results_description`,{query:y(V)}),"search-results-text":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.search_results`,{count:`{count}`,total:`{total}`}),"custom-input-placeholder":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.custom_model_placeholder`),"expand-button-text":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.expand`),"collapse-button-text":y(S)(`settings.pages.modules.consciousness.sections.section.provider-model-selection.collapse`),"onUpdate:customValue":rt},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)])])):c(``,!0)])]),y(N)?(h(),l(`div`,Ae,[o(`div`,je,[d[27]||=o(`div`,null,[o(`h2`,{class:`text-lg text-neutral-500 md:text-2xl dark:text-neutral-400`},` Voice Configuration `),o(`div`,{text:`neutral-400 dark:neutral-500`},[o(`span`,null,`Customize how your AI assistant speaks`)])],-1),y($e)?(h(),l(`div`,Me,[o(`div`,Ne,[u(y(a),{class:`w-full rounded-lg p-2.5 text-sm`},{default:b(()=>d[17]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[17]}),o(`div`,Pe,[u(y(a),{class:`w-full rounded-lg p-4 text-sm`},{default:b(()=>d[18]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[18]}),u(y(a),{class:`w-full rounded-lg p-4 text-sm`},{default:b(()=>d[19]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[19]}),u(y(a),{class:`w-full rounded-lg p-4 text-sm`},{default:b(()=>d[20]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[20]})]),u(y(a),{class:`w-full rounded-lg p-3 text-sm`},{default:b(()=>d[21]||=[o(`div`,{class:`h-1lh`},null,-1)]),_:1,__:[21]})])])):y(W)[y(N)]&&y(W)[y(N)].length>0?(h(),l(`div`,Fe,[u(y(ie),{"search-query":G.value,"onUpdate:searchQuery":d[3]||=e=>G.value=e,"voice-id":y(I),"onUpdate:voiceId":d[4]||=e=>f(I)?I.value=e:null,voices:(p=y(W)[y(N)])?.map(e=>({id:e.id,name:e.name,description:e.description,previewURL:e.previewURL,customizable:!1})),searchable:!0,"search-placeholder":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_placeholder`),"search-no-results-title":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices`),"search-no-results-description":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.no_voices_description`),"search-results-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.search_voices_results`,{count:0,total:0}),"custom-input-placeholder":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.custom_voice_placeholder`),"expand-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_more`),"collapse-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.show_less`),"play-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.play_sample`),"pause-button-text":y(S)(`settings.pages.modules.speech.sections.section.provider-voice-selection.pause`),"onUpdate:customValue":nt},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`])])):y(H)?(h(),l(`div`,Ie,[d[23]||=o(`div`,{"i-solar:close-circle-line-duotone":``,class:`text-2xl text-red-500 dark:text-red-400`},null,-1),o(`div`,Le,[d[22]||=o(`span`,{class:`font-medium`},`Error loading voices`,-1),o(`span`,Re,v(y(H)),1)])])):(h(),l(`div`,ze,d[24]||=[o(`div`,{"i-solar:info-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 voices available`),o(`span`,{class:`text-sm text-amber-600 dark:text-amber-400`},` No voices were found for this provider. You can enter a custom voice name below. `)],-1)])),o(`div`,Be,[u(y(r),{modelValue:y(L),"onUpdate:modelValue":d[5]||=e=>f(L)?L.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`]),u(y(t),{modelValue:y(U),"onUpdate:modelValue":d[6]||=e=>f(U)?U.value=e:null,label:`Enable SSML`,description:`Enable Speech Synthesis Markup Language for more control over speech output`},null,8,[`modelValue`])]),!y(W)[y(N)]||y(W)[y(N)].length===0?(h(),l(`div`,Ve,[u(y(n),{modelValue:y(I),"onUpdate:modelValue":d[7]||=e=>f(I)?I.value=e:null,type:`text`,label:`Voice ID`,description:`Enter the voice ID for your custom voice`,placeholder:`Enter voice name (e.g., 'Rachel', 'Josh')`},null,8,[`modelValue`]),y(N)===`elevenlabs`?(h(),l(`div`,He,[d[26]||=o(`label`,{class:`mb-1 block text-sm font-medium`},` Model `,-1),x(o(`select`,{"onUpdate:modelValue":d[8]||=e=>f(P)?P.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`},d[25]||=[o(`option`,{value:`eleven_monolingual_v1`},` Monolingual v1 `,-1),o(`option`,{value:`eleven_multilingual_v1`},` Multilingual v1 `,-1),o(`option`,{value:`eleven_multilingual_v2`},` Multilingual v2 `,-1)],512),[[fe,y(P)]])])):c(``,!0),o(`div`,Ue,[u(y(r),{modelValue:y(L),"onUpdate:modelValue":d[9]||=e=>f(L)?L.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`])])])):c(``,!0)])])):c(``,!0)]),o(`div`,We,[o(`div`,Ge,[o(`h2`,Ke,[o(`div`,k,[u(y(re)),o(`div`,null,v(y(S)(`settings.pages.providers.provider.elevenlabs.playground.title`)),1)])]),o(`div`,qe,[u(y(t),{modelValue:K.value,"onUpdate:modelValue":d[10]||=e=>K.value=e,label:`Use Custom SSML`,description:`Enable to input raw SSML instead of plain text`},null,8,[`modelValue`]),K.value?x((h(),l(`textarea`,{key:1,"onUpdate:modelValue":d[12]||=e=>J.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,J.value]]):(h(),s(y(e),{key:0,modelValue:q.value,"onUpdate:modelValue":d[11]||=e=>q.value=e,"h-24":``,"w-full":``,placeholder:y(S)(`settings.pages.providers.provider.elevenlabs.playground.fields.field.input.placeholder`)},null,8,[`modelValue`,`placeholder`])),o(`div`,Je,[o(`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:Y.value||!q.value.trim()&&!K.value||K.value&&!J.value.trim()||!y(F),class:oe({"opacity-50 cursor-not-allowed":Y.value||!q.value.trim()&&!K.value||K.value&&!J.value.trim()||!y(F)}),bg:`neutral-700 dark:neutral-300`,onClick:tt},[o(`div`,Xe,[d[28]||=o(`div`,{"i-solar:play-circle-bold-duotone":``},null,-1),o(`span`,null,v(Y.value?y(S)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.generating`):y(S)(`settings.pages.providers.provider.elevenlabs.playground.buttons.button.test-voice.label`)),1)])],10,Ye),X.value?(h(),l(`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:$},d[29]||=[o(`div`,{flex:`~ row`,"items-center":``,"gap-2":``},[o(`div`,{"i-solar:stop-circle-bold-duotone":``}),o(`span`,null,`Stop`)],-1)])):c(``,!0)]),X.value?(h(),l(`audio`,{key:2,ref_key:`audioPlayer`,ref:Z,src:X.value,controls:``,class:`mt-2 w-full`},null,8,Ze)):c(``,!0)])])])]),x((h(),l(`div`,Qe,d[30]||=[o(`div`,{text:`60`,"i-solar:user-speak-rounded-bold-duotone":``},null,-1)])),[[m]])],64)}}});typeof S==`function`&&S(A);var j=A;export{j as default}; \ No newline at end of file diff --git a/assets/stage-YpeihAa8.js b/assets/stage-B_hSnz5Y.js similarity index 74% rename from assets/stage-YpeihAa8.js rename to assets/stage-B_hSnz5Y.js index 700881e1fe478cab8cf4e9594dcad25ac6c0c5e8..724e83fc15c86d8556a0cf1b226b119e6586e231 100644 --- a/assets/stage-YpeihAa8.js +++ b/assets/stage-B_hSnz5Y.js @@ -1 +1 @@ -import{Stage_default as e}from"./Scenes-_LhL7EaP.js";import"./Basic-DNa_H8OA.js";import{createBaseVNode as t,createBlock as n,createVNode as r,defineComponent as i,openBlock as a,ref as o,unref as s,useDark as c,useMouse as l,withCtx as u}from"./index-jH8PbleY.js";import"./import-url-browser-gqaMLBiE.js";import"./duckdb-mvp-DdkY0Vq-.js";import"./HeaderLink-DiAWfIpN.js";import{route_block_default as d}from"./route-block-DWE87cA-.js";import{AnimatedWave_default as f,Cross_default as p,Header_default as m,InteractiveArea_default as h,MobileInteractiveArea_default as g}from"./AnimatedWave-BshZj-I-.js";const _={relative:``,flex:`~ col`,"z-2":``,"h-100dvh":``,"w-100vw":``,"of-hidden":``},v={relative:``,flex:`~ 1 row gap-y-0 gap-x-2 (a(),n(p,null,{default:u(()=>[r(f,{"fill-color":s(d)?`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:u(()=>[t(`div`,_,[t(`div`,null,[r(m,{class:`flex`,p2:``})]),t(`div`,v,[r(s(e),{"flex-1":``,"min-w":`1/2`,paused:y.value,"focus-at":{x:s(x).x.value,y:s(x).y.value}},null,8,[`paused`,`focus-at`]),r(h,{class:`flex (a(),n(p,null,{default:u(()=>[r(f,{"fill-color":s(d)?`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:u(()=>[t(`div`,_,[t(`div`,null,[r(m,{class:`flex`,p2:``})]),t(`div`,v,[r(s(e),{"flex-1":``,"min-w":`1/2`,paused:y.value,"focus-at":{x:s(x).x.value,y:s(x).y.value}},null,8,[`paused`,`focus-at`]),r(h,{class:`flex {let f=a(`RouterView`);return i(),e(`main`,{text:`gray-700 dark:gray-200`,"h-full":``,"font-cuteen":``,style:r({paddingTop:`${o(c)}px`,paddingRight:`${o(l)}px`,paddingBottom:`${o(u)}px`,paddingLeft:`${o(d)}px`})},[t(f)],4)}}}),l=c;export{l as default}; \ No newline at end of file +import{createElementBlock as e,createVNode as t,defineComponent as n,normalizeStyle as r,openBlock as i,resolveComponent as a,unref as o,useScreenSafeArea as s}from"./index-C2W4XoWv.js";var c=n({__name:`stage`,setup(n){let{top:c,right:l,bottom:u,left:d}=s();return(n,s)=>{let f=a(`RouterView`);return i(),e(`main`,{text:`gray-700 dark:gray-200`,"h-full":``,"font-cuteen":``,style:r({paddingTop:`${o(c)}px`,paddingRight:`${o(l)}px`,paddingBottom:`${o(u)}px`,paddingLeft:`${o(d)}px`})},[t(f)],4)}}}),l=c;export{l as default}; \ No newline at end of file diff --git a/assets/sury-GtnkadyM-wpJ7Esbb.js b/assets/sury-GtnkadyM-C8StDLTd.js similarity index 73% rename from assets/sury-GtnkadyM-wpJ7Esbb.js rename to assets/sury-GtnkadyM-C8StDLTd.js index 9f6186f09abce1c3196503ca063a83c08eb058c2..4f729cebb693e32e546a16703e5ad17c589c2663 100644 --- a/assets/sury-GtnkadyM-wpJ7Esbb.js +++ b/assets/sury-GtnkadyM-C8StDLTd.js @@ -1 +1 @@ -import{__vitePreload as e,tryImport as t}from"./index-jH8PbleY.js";const n=async()=>{let{toJSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_sury_xsschema-DXkg5FFL.js`),[]),`sury`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file +import{__vitePreload as e,tryImport as t}from"./index-C2W4XoWv.js";const n=async()=>{let{toJSONSchema:n}=await t(e(()=>import(`./__vite-optional-peer-dep_sury_xsschema-DXkg5FFL.js`),[]),`sury`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/together-ai-u2udRYui.js b/assets/together-ai-BsZHvE5t.js similarity index 96% rename from assets/together-ai-u2udRYui.js rename to assets/together-ai-BsZHvE5t.js index 5965744d794307ddff2a6c7137fc1fc7c2678020..b7dd1724d7fbde4b7ca3b8cc5037978130c3af6f 100644 --- a/assets/together-ai-u2udRYui.js +++ b/assets/together-ai-BsZHvE5t.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`together-ai`;var x=l({__name:`together-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`togetherapi-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`together-ai`;var x=l({__name:`together-ai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon-color":(f=w.value)?.iconColor,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`togetherapi-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[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-BHSa4vch.js b/assets/transformers.web-BWxQFDpM.js similarity index 99% rename from assets/transformers.web-BHSa4vch.js rename to assets/transformers.web-BWxQFDpM.js index 917603379ebac7ab043eb62e9225fb462fa38fd5..a4b9509338dc5b3ef1b50e5989c50a51a2dce53e 100644 --- a/assets/transformers.web-BHSa4vch.js +++ b/assets/transformers.web-BWxQFDpM.js @@ -1,4 +1,4 @@ -var e=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({});import{__export as t,__require as n}from"./index-jH8PbleY.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)})]},c=`1.22.0`;let l=`warning`;const u={wasm:{},webgl:{},webgpu:{},versions:{common:c},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}`);l=e}},get logLevel(){return l}};Object.defineProperty(u,`logLevel`,{enumerable:!0});const d=u,f=(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=4,p=0,m=1,h=2,g=3,_=0,v=d,y=d*2,b=-1;s===`RGBA`?(_=0,v=d,y=d*2,b=d*3):s===`RGB`?(_=0,v=d,y=d*2):s===`RBG`&&(_=0,y=d,v=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,m(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(m(e.data,s))}});else throw Error(`Input data provided is not supported - aborted tensor creation`);if(o!==void 0)return m(o,s);throw Error(`Input data provided is not supported - aborted tensor creation`)},g=(e,t)=>{let{width:n,height:r,download:i,dispose:a}=t,o=[1,r,n,4];return new E({location:`texture`,type:`float32`,texture:e,dims:o,download:i,dispose:a})},_=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new E({location:`gpu-buffer`,type:n??`float32`,gpuBuffer:e,dims:r,download:i,dispose:a})},v=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new E({location:`ml-tensor`,type:n??`float32`,mlTensor:e,dims:r,download:i,dispose:a})},y=(e,t,n)=>new E({location:`cpu-pinned`,type:e,data:t,dims:n??[t.length]}),b=new Map([[`float32`,Float32Array],[`uint8`,Uint8Array],[`int8`,Int8Array],[`uint16`,Uint16Array],[`int16`,Int16Array],[`int32`,Int32Array],[`bool`,Uint8Array],[`float64`,Float64Array],[`uint32`,Uint32Array],[`int4`,Uint8Array],[`uint4`,Uint8Array]]),x=new Map([[Float32Array,`float32`],[Uint8Array,`uint8`],[Int8Array,`int8`],[Uint16Array,`uint16`],[Int16Array,`int16`],[Int32Array,`int32`],[Float64Array,`float64`],[Uint32Array,`uint32`]]);let S=!1;const C=()=>{if(!S){S=!0;let e=typeof BigInt64Array<`u`&&BigInt64Array.from,t=typeof BigUint64Array<`u`&&BigUint64Array.from,n=globalThis.Float16Array,r=n!==void 0&&n.from;e&&(b.set(`int64`,BigInt64Array),x.set(BigInt64Array,`int64`)),t&&(b.set(`uint64`,BigUint64Array),x.set(BigUint64Array,`uint64`)),r?(b.set(`float16`,n),x.set(n,`float16`)):b.set(`float16`,Uint16Array)}},w=e=>{let t=1;for(let n=0;n{switch(e.location){case`cpu`:return new E(e.type,e.data,t);case`cpu-pinned`:return new E({location:`cpu-pinned`,data:e.data,type:e.type,dims:t});case`texture`:return new E({location:`texture`,texture:e.texture,type:e.type,dims:t});case`gpu-buffer`:return new E({location:`gpu-buffer`,gpuBuffer:e.gpuBuffer,type:e.type,dims:t});case`ml-tensor`:return new E({location:`ml-tensor`,mlTensor:e.mlTensor,type:e.type,dims:t});default:throw Error(`tensorReshape: tensor location ${e.location} is not supported`)}};var E=class{constructor(e,t,n){C();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=b.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=b.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=x.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=w(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 h(e,t)}static fromTexture(e,t){return g(e,t)}static fromGpuBuffer(e,t){return _(e,t)}static fromMLTensor(e,t){return v(e,t)}static fromPinnedBuffer(e,t,n){return y(e,t,n)}toDataURL(e){return f(this,e)}toImageData(e){return p(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(),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 T(this,e)}};const D=E,O=(e,t)=>{(u.trace===void 0?!u.wasm.trace:!u.trace)||console.timeStamp(`${e}::ORT::${t}`)},ee=(e,t)=>{var n;let r=(n=Error().stack)?.split(/\r\n|\r|\n/g)||[],i=!1;for(let n=0;n{(u.trace===void 0?!u.wasm.trace:!u.trace)||ee(`BEGIN`,e)},te=e=>{(u.trace===void 0?!u.wasm.trace:!u.trace)||ee(`END`,e)};var ne=class e{constructor(e){this.handler=e}async run(e,t,n){k();let r={},i={};if(typeof e!=`object`||!e||e instanceof D||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 D)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 D)&&(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 D?s[e]=t:s[e]=new D(t.type,t.data,t.dims)}return te(),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 te(),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 re=ne;var ie={};t(ie,{InferenceSession:()=>re,TRACE:()=>O,TRACE_FUNC_BEGIN:()=>k,TRACE_FUNC_END:()=>te,Tensor:()=>D,env:()=>d,registerBackend:()=>a});var A={};t(A,{InferenceSession:()=>qe,TRACE:()=>B,TRACE_FUNC_BEGIN:()=>He,TRACE_FUNC_END:()=>Ue,Tensor:()=>ze,default:()=>af,env:()=>R,registerBackend:()=>P}); +var e=function(exports){function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}function n(e,n){if(t(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||`default`);if(t(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(e)}function r(e){var r=n(e,`string`);return t(r)==`symbol`?r:r+``}function i(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return exports.defineProperty=i,exports}({});import{__export as t,__require as n}from"./index-C2W4XoWv.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)})]},c=`1.22.0`;let l=`warning`;const u={wasm:{},webgl:{},webgpu:{},versions:{common:c},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}`);l=e}},get logLevel(){return l}};Object.defineProperty(u,`logLevel`,{enumerable:!0});const d=u,f=(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=4,p=0,m=1,h=2,g=3,_=0,v=d,y=d*2,b=-1;s===`RGBA`?(_=0,v=d,y=d*2,b=d*3):s===`RGB`?(_=0,v=d,y=d*2):s===`RBG`&&(_=0,y=d,v=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,m(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(m(e.data,s))}});else throw Error(`Input data provided is not supported - aborted tensor creation`);if(o!==void 0)return m(o,s);throw Error(`Input data provided is not supported - aborted tensor creation`)},g=(e,t)=>{let{width:n,height:r,download:i,dispose:a}=t,o=[1,r,n,4];return new E({location:`texture`,type:`float32`,texture:e,dims:o,download:i,dispose:a})},_=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new E({location:`gpu-buffer`,type:n??`float32`,gpuBuffer:e,dims:r,download:i,dispose:a})},v=(e,t)=>{let{dataType:n,dims:r,download:i,dispose:a}=t;return new E({location:`ml-tensor`,type:n??`float32`,mlTensor:e,dims:r,download:i,dispose:a})},y=(e,t,n)=>new E({location:`cpu-pinned`,type:e,data:t,dims:n??[t.length]}),b=new Map([[`float32`,Float32Array],[`uint8`,Uint8Array],[`int8`,Int8Array],[`uint16`,Uint16Array],[`int16`,Int16Array],[`int32`,Int32Array],[`bool`,Uint8Array],[`float64`,Float64Array],[`uint32`,Uint32Array],[`int4`,Uint8Array],[`uint4`,Uint8Array]]),x=new Map([[Float32Array,`float32`],[Uint8Array,`uint8`],[Int8Array,`int8`],[Uint16Array,`uint16`],[Int16Array,`int16`],[Int32Array,`int32`],[Float64Array,`float64`],[Uint32Array,`uint32`]]);let S=!1;const C=()=>{if(!S){S=!0;let e=typeof BigInt64Array<`u`&&BigInt64Array.from,t=typeof BigUint64Array<`u`&&BigUint64Array.from,n=globalThis.Float16Array,r=n!==void 0&&n.from;e&&(b.set(`int64`,BigInt64Array),x.set(BigInt64Array,`int64`)),t&&(b.set(`uint64`,BigUint64Array),x.set(BigUint64Array,`uint64`)),r?(b.set(`float16`,n),x.set(n,`float16`)):b.set(`float16`,Uint16Array)}},w=e=>{let t=1;for(let n=0;n{switch(e.location){case`cpu`:return new E(e.type,e.data,t);case`cpu-pinned`:return new E({location:`cpu-pinned`,data:e.data,type:e.type,dims:t});case`texture`:return new E({location:`texture`,texture:e.texture,type:e.type,dims:t});case`gpu-buffer`:return new E({location:`gpu-buffer`,gpuBuffer:e.gpuBuffer,type:e.type,dims:t});case`ml-tensor`:return new E({location:`ml-tensor`,mlTensor:e.mlTensor,type:e.type,dims:t});default:throw Error(`tensorReshape: tensor location ${e.location} is not supported`)}};var E=class{constructor(e,t,n){C();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=b.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=b.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=x.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=w(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 h(e,t)}static fromTexture(e,t){return g(e,t)}static fromGpuBuffer(e,t){return _(e,t)}static fromMLTensor(e,t){return v(e,t)}static fromPinnedBuffer(e,t,n){return y(e,t,n)}toDataURL(e){return f(this,e)}toImageData(e){return p(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(),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 T(this,e)}};const D=E,O=(e,t)=>{(u.trace===void 0?!u.wasm.trace:!u.trace)||console.timeStamp(`${e}::ORT::${t}`)},ee=(e,t)=>{var n;let r=(n=Error().stack)?.split(/\r\n|\r|\n/g)||[],i=!1;for(let n=0;n{(u.trace===void 0?!u.wasm.trace:!u.trace)||ee(`BEGIN`,e)},te=e=>{(u.trace===void 0?!u.wasm.trace:!u.trace)||ee(`END`,e)};var ne=class e{constructor(e){this.handler=e}async run(e,t,n){k();let r={},i={};if(typeof e!=`object`||!e||e instanceof D||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 D)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 D)&&(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 D?s[e]=t:s[e]=new D(t.type,t.data,t.dims)}return te(),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 te(),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 re=ne;var ie={};t(ie,{InferenceSession:()=>re,TRACE:()=>O,TRACE_FUNC_BEGIN:()=>k,TRACE_FUNC_END:()=>te,Tensor:()=>D,env:()=>d,registerBackend:()=>a});var A={};t(A,{InferenceSession:()=>qe,TRACE:()=>B,TRACE_FUNC_BEGIN:()=>He,TRACE_FUNC_END:()=>Ue,Tensor:()=>ze,default:()=>af,env:()=>R,registerBackend:()=>P}); /*! * ONNX Runtime Web v1.22.0-dev.20250409-89f8206ba4 * Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/assets/valibot-CbgwcZn_-d2JmOn5U.js b/assets/valibot-CbgwcZn_-BQJaJhae.js similarity index 71% rename from assets/valibot-CbgwcZn_-d2JmOn5U.js rename to assets/valibot-CbgwcZn_-BQJaJhae.js index 7d928ddbd3f11c9e50c79e75731133155bd0a57f..a8fb9544df276880a65ed5e58dd574362c5c8596 100644 --- a/assets/valibot-CbgwcZn_-d2JmOn5U.js +++ b/assets/valibot-CbgwcZn_-BQJaJhae.js @@ -1 +1 @@ -import{__vitePreload as e,tryImport as t}from"./index-jH8PbleY.js";const n=async()=>{let{toJsonSchema:n}=await t(e(()=>import(`./dist-BDrpuAz2.js`),[]),`@valibot/to-json-schema`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file +import{__vitePreload as e,tryImport as t}from"./index-C2W4XoWv.js";const n=async()=>{let{toJsonSchema:n}=await t(e(()=>import(`./dist-BDrpuAz2.js`),[]),`@valibot/to-json-schema`);return e=>n(e)};export{n as getToJsonSchemaFn}; \ No newline at end of file diff --git a/assets/vibrant-Yy0Aq07d.js b/assets/vibrant-pmbYNvM6.js similarity index 92% rename from assets/vibrant-Yy0Aq07d.js rename to assets/vibrant-pmbYNvM6.js index e72a757ed6ae436b1a399c7b9bd66a84f2604470..d6fd789e71bc16cbf890d23f0deb73cb169d35ab 100644 --- a/assets/vibrant-Yy0Aq07d.js +++ b/assets/vibrant-pmbYNvM6.js @@ -1 +1 @@ -import{InputFile_default as e}from"./InputFile-D7EBb56X.js";import{Fragment as t,createBaseVNode as n,createCommentVNode as r,createElementBlock as i,createVNode as a,defineComponent as o,normalizeStyle as s,openBlock as c,ref as l,renderList as u,toDisplayString as d,unref as f,watch as p}from"./index-jH8PbleY.js";import{Vibrant as m}from"./browser-CSlAJ-iu.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=o({__name:`vibrant`,setup(o){let x=l([]),S=l(),C=l([]),w=l([]);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 p(x,e=>{T(e[0])},{deep:!0}),(o,l)=>(c(),i(`div`,h,[n(`div`,g,[(c(!0),i(t,null,u(C.value,(e,t)=>(c(),i(`div`,{key:t,style:s({backgroundColor:e}),"size-20":``,"rounded-full":``},null,4))),128))]),n(`div`,_,d(w.value),1),n(`div`,v,[a(f(e),{modelValue:x.value,"onUpdate:modelValue":l[0]||=e=>x.value=e,"h-60":``,"w-full":``},null,8,[`modelValue`])]),n(`div`,y,[S.value?(c(),i(`img`,{key:0,src:S.value.src,"h-full":``,"w-full":``,"object-contain":``},null,8,b)):r(``,!0)])]))}}),S=x;export{S as default}; \ No newline at end of file +import{InputFile_default as e}from"./InputFile-DO1WMP2V.js";import{Fragment as t,createBaseVNode as n,createCommentVNode as r,createElementBlock as i,createVNode as a,defineComponent as o,normalizeStyle as s,openBlock as c,ref as l,renderList as u,toDisplayString as d,unref as f,watch as p}from"./index-C2W4XoWv.js";import{Vibrant as m}from"./browser-CSlAJ-iu.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=o({__name:`vibrant`,setup(o){let x=l([]),S=l(),C=l([]),w=l([]);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 p(x,e=>{T(e[0])},{deep:!0}),(o,l)=>(c(),i(`div`,h,[n(`div`,g,[(c(!0),i(t,null,u(C.value,(e,t)=>(c(),i(`div`,{key:t,style:s({backgroundColor:e}),"size-20":``,"rounded-full":``},null,4))),128))]),n(`div`,_,d(w.value),1),n(`div`,v,[a(f(e),{modelValue:x.value,"onUpdate:modelValue":l[0]||=e=>x.value=e,"h-60":``,"w-full":``},null,8,[`modelValue`])]),n(`div`,y,[S.value?(c(),i(`img`,{key:0,src:S.value.src,"h-full":``,"w-full":``,"object-contain":``},null,8,b)):r(``,!0)])]))}}),S=x;export{S as default}; \ No newline at end of file diff --git a/assets/volcengine-BQAYMb7Z.js b/assets/volcengine-4CqtHmsk.js similarity index 97% rename from assets/volcengine-BQAYMb7Z.js rename to assets/volcengine-4CqtHmsk.js index 1d887413598b8817201d570f5f79c15197895171..25517c88017b62c636699f85497f33845f826b7c 100644 --- a/assets/volcengine-BQAYMb7Z.js +++ b/assets/volcengine-4CqtHmsk.js @@ -1 +1 @@ -import{FieldInput_default as e,FieldRange_default as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,ref as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useSpeechStore as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={flex:`~ col gap-4`},x=`volcengine`,S=`v1`;var C=c({__name:`volcengine`,setup(c){let y=d(1),C=g(),w=h(),{providers:T}=f(w),{t:E}=m(),D=i({get:()=>{var e;return((e=T.value[x])==null||(e=e.app)==null?void 0:e.appId)||``},set:e=>{T.value[x]||(T.value[x]={}),T.value[x].app={appId:e}}}),O=i(()=>{var e;return!!(e=T.value[x])?.apiKey}),k=i(()=>C.availableVoices[x]||[]);async function A(e,t,n){let r=w.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=w.getProviderConfig(x),a=i.model||S;return await C.speech(r,a,e,t,{...i})}return l(async()=>{let e=w.getProviderConfig(x),t=w.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await C.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)}),_(y,async()=>{let e=w.getProviderConfig(x);e.audio||={},e.audio.speedRatio=y.value}),_([T,D],async()=>{let e=w.getProviderConfig(x),t=w.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await C.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(i,c)=>(u(),o(p(r),{"provider-id":x,"default-model":S},{"basic-settings":v(()=>[a(`div`,b,[s(p(e),{modelValue:D.value,"onUpdate:modelValue":c[0]||=e=>D.value=e,label:p(E)(`settings.pages.providers.provider.volcengine.fields.field.appId.label`),description:p(E)(`settings.pages.providers.provider.volcengine.fields.field.appId.description`),required:``},null,8,[`modelValue`,`label`,`description`])])]),"voice-settings":v(()=>[s(p(t),{modelValue:y.value,"onUpdate:modelValue":c[1]||=e=>y.value=e,label:p(E)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:p(E)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:v(()=>[s(p(n),{"available-voices":k.value,"generate-speech":A,"api-key-configured":O.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{FieldInput_default as e,FieldRange_default as t,SpeechPlayground_default as n,SpeechProviderSettings_default as r,computed as i,createBaseVNode as a,createBlock as o,createVNode as s,defineComponent as c,onMounted as l,openBlock as u,ref as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useSpeechStore as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b={flex:`~ col gap-4`},x=`volcengine`,S=`v1`;var C=c({__name:`volcengine`,setup(c){let y=d(1),C=g(),w=h(),{providers:T}=f(w),{t:E}=m(),D=i({get:()=>{var e;return((e=T.value[x])==null||(e=e.app)==null?void 0:e.appId)||``},set:e=>{T.value[x]||(T.value[x]={}),T.value[x].app={appId:e}}}),O=i(()=>{var e;return!!(e=T.value[x])?.apiKey}),k=i(()=>C.availableVoices[x]||[]);async function A(e,t,n){let r=w.getProviderInstance(x);if(!r)throw Error(`Failed to initialize speech provider`);let i=w.getProviderConfig(x),a=i.model||S;return await C.speech(r,a,e,t,{...i})}return l(async()=>{let e=w.getProviderConfig(x),t=w.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await C.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)}),_(y,async()=>{let e=w.getProviderConfig(x);e.audio||={},e.audio.speedRatio=y.value}),_([T,D],async()=>{let e=w.getProviderConfig(x),t=w.getProviderMetadata(x);await t.validators.validateProviderConfig(e)?await C.loadVoicesForProvider(x):console.error(`Failed to validate provider config`,e)},{immediate:!0}),(i,c)=>(u(),o(p(r),{"provider-id":x,"default-model":S},{"basic-settings":v(()=>[a(`div`,b,[s(p(e),{modelValue:D.value,"onUpdate:modelValue":c[0]||=e=>D.value=e,label:p(E)(`settings.pages.providers.provider.volcengine.fields.field.appId.label`),description:p(E)(`settings.pages.providers.provider.volcengine.fields.field.appId.description`),required:``},null,8,[`modelValue`,`label`,`description`])])]),"voice-settings":v(()=>[s(p(t),{modelValue:y.value,"onUpdate:modelValue":c[1]||=e=>y.value=e,label:p(E)(`settings.pages.providers.provider.common.fields.field.speed.label`),description:p(E)(`settings.pages.providers.provider.common.fields.field.speed.description`),min:.5,max:2,step:.01},null,8,[`modelValue`,`label`,`description`])]),playground:v(()=>[s(p(n),{"available-voices":k.value,"generate-speech":A,"api-key-configured":O.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/xai-9v9Zeav4.js b/assets/xai-DIVtUzH3.js similarity index 96% rename from assets/xai-9v9Zeav4.js rename to assets/xai-DIVtUzH3.js index d9d22129541af8c3d648cd129480c995f5bc11a9..b57826e6722cda1409f771fce7fdefcf5a900183 100644 --- a/assets/xai-9v9Zeav4.js +++ b/assets/xai-DIVtUzH3.js @@ -1 +1 @@ -import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-jH8PbleY.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`xai`;var x=l({__name:`xai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`xai-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[1]||=e=>E.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(x);var S=x;export{S as default}; \ No newline at end of file +import{ProviderAdvancedSettings_default as e,ProviderApiKeyInput_default as t,ProviderBaseUrlInput_default as n,ProviderBasicSettings_default as r,ProviderSettingsContainer_default as i,ProviderSettingsLayout_default as a,computed as o,createBlock as s,createVNode as c,defineComponent as l,onMounted as u,openBlock as d,storeToRefs as f,unref as p,useI18n as m,useProvidersStore as h,useRouter as g,watch as _,withCtx as v}from"./index-C2W4XoWv.js";import{route_block_default as y}from"./route-block-DWE87cA-.js";const b=`xai`;var x=l({__name:`xai`,setup(l){let{t:y}=m(),x=g(),S=h(),{providers:C}=f(S),w=o(()=>S.getProviderMetadata(b)),T=o({get:()=>{var e;return(e=C.value[b])?.apiKey||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].apiKey=e}}),E=o({get:()=>{var e;return(e=C.value[b])?.baseUrl||``},set:e=>{C.value[b]||(C.value[b]={}),C.value[b].baseUrl=e}});u(()=>{var e,t;S.initializeProvider(b),T.value=(e=C.value[b])?.apiKey||``,E.value=(t=C.value[b])?.baseUrl||``}),_([T,E],()=>{C.value[b]={...C.value[b],apiKey:T.value,baseUrl:E.value||``}});function D(){var e;C.value[b]={...(e=w.value)?.defaultOptions}}return(o,l)=>{var u,f;return d(),s(p(a),{"provider-name":(u=w.value)?.localizedName,"provider-icon":(f=w.value)?.icon,"on-back":()=>p(x).back()},{default:v(()=>[c(p(i),null,{default:v(()=>[c(p(r),{title:p(y)(`settings.pages.providers.common.section.basic.title`),description:p(y)(`settings.pages.providers.common.section.basic.description`),"on-reset":D},{default:v(()=>{var e;return[c(p(t),{modelValue:T.value,"onUpdate:modelValue":l[0]||=e=>T.value=e,"provider-name":(e=w.value)?.localizedName,placeholder:`xai-...`},null,8,[`modelValue`,`provider-name`])]}),_:1},8,[`title`,`description`]),c(p(e),{title:p(y)(`settings.pages.providers.common.section.advanced.title`)},{default:v(()=>[c(p(n),{modelValue:E.value,"onUpdate:modelValue":l[1]||=e=>E.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(x);var S=x;export{S as default}; \ No newline at end of file diff --git a/assets/zod-CD8IEU5z-rRXwlI4M.js b/assets/zod-CD8IEU5z-BhI_iR6h.js similarity index 75% rename from assets/zod-CD8IEU5z-rRXwlI4M.js rename to assets/zod-CD8IEU5z-BhI_iR6h.js index 1f55d319ba134a729f318a4f56ac11ad0ca09de0..2651e54748682f87c7f3100eefa72b8d1f76472a 100644 --- a/assets/zod-CD8IEU5z-rRXwlI4M.js +++ b/assets/zod-CD8IEU5z-BhI_iR6h.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-BEkGVbXU.js","assets/index-jH8PbleY.js","assets/index-BVsAPyPZ.css"])))=>i.map(i=>d[i]); -import{__vitePreload as e,missingDependenciesUrl as t}from"./index-jH8PbleY.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-BT8tevxF.js`);return{toJSONSchema:e}},[]);n=t}catch(e){e instanceof Error&&console.error(e.message)}try{let{zodToJsonSchema:t}=await e(async()=>{let{zodToJsonSchema:e}=await import(`./esm-BEkGVbXU.js`);return{zodToJsonSchema:e}},__vite__mapDeps([0,1,2]));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 +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-B_mnbyrn.js","assets/index-C2W4XoWv.js","assets/index-B0_6uY9k.css"])))=>i.map(i=>d[i]); +import{__vitePreload as e,missingDependenciesUrl as t}from"./index-C2W4XoWv.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-BT8tevxF.js`);return{toJSONSchema:e}},[]);n=t}catch(e){e instanceof Error&&console.error(e.message)}try{let{zodToJsonSchema:t}=await e(async()=>{let{zodToJsonSchema:e}=await import(`./esm-B_mnbyrn.js`);return{zodToJsonSchema:e}},__vite__mapDeps([0,1,2]));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 6be319095b2445d18513484ac4d8c60ff24e05c6..3cd23535c844a9c1f90dcb596a447d26695588a6 100644 --- a/index.html +++ b/index.html @@ -24,8 +24,8 @@ src="/remote-assets/page-external-data/js/script.js" > - - + +
diff --git a/sw.js b/sw.js index a93be96b3d733056cfa7009ee1c0bf0668c4b042..5b0e32b3323d465383916d797cd4b57bf4a8fa26 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const l=(l,r)=>(l=new URL(l+".js",r).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(r,i)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const a=s=>l(s,n),o={module:{uri:n},exports:u,require:a};e[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-CY0qZjqC.js",revision:null},{url:"assets/__vite-optional-peer-dep_effect_xsschema-DWjo7B8g.js",revision:null},{url:"assets/__vite-optional-peer-dep_sury_xsschema-DXkg5FFL.js",revision:null},{url:"assets/_...all_-C9auE9ag.js",revision:null},{url:"assets/airi-card-Cq1KvPR6.js",revision:null},{url:"assets/alibaba-cloud-model-studio-Db-MOtVa.js",revision:null},{url:"assets/AnimatedWave-BshZj-I-.js",revision:null},{url:"assets/AnimatedWave-dg9fCal0.css",revision:null},{url:"assets/anthropic-BtJ5gSRl.js",revision:null},{url:"assets/appearance-DAKX2aiN.js",revision:null},{url:"assets/arktype-C-GObzDh-o7JLSWxh.js",revision:null},{url:"assets/audio-jEsbv24W.js",revision:null},{url:"assets/audio-record-DhsmVZ7n.js",revision:null},{url:"assets/background-remove-Dg22U2A0.js",revision:null},{url:"assets/Basic-DNa_H8OA.js",revision:null},{url:"assets/browser-CSlAJ-iu.js",revision:null},{url:"assets/browser-DAWwZmxu.js",revision:null},{url:"assets/CardCreate-BTJxDbUa.js",revision:null},{url:"assets/CardCreate-CpYrVqCw.js",revision:null},{url:"assets/CardCreationDialog-CG2KLbdk.css",revision:null},{url:"assets/CardCreationDialog-tb5aI5z2.js",revision:null},{url:"assets/CardCreationDialog-tFZ-suF6.js",revision:null},{url:"assets/CardDetailDialog-CMawK2d5.js",revision:null},{url:"assets/CardDetailDialog-Dj8_PtWM.js",revision:null},{url:"assets/CardListItem-CX1YhwU5.js",revision:null},{url:"assets/CardListItem-DL1eLTL8.js",revision:null},{url:"assets/chat-DRs1BdUm.js",revision:null},{url:"assets/cloudflare-workers-ai-CGpUoWxl.js",revision:null},{url:"assets/color-scheme-C0RXcpWc.js",revision:null},{url:"assets/color-scheme-DQ9rzeUD.css",revision:null},{url:"assets/ColorPalette-RTtXS1UD.js",revision:null},{url:"assets/consciousness-C1NFF9FB.js",revision:null},{url:"assets/core-BT8tevxF.js",revision:null},{url:"assets/deepseek-DybRLjlw.js",revision:null},{url:"assets/default-browser-CICL74Rl.js",revision:null},{url:"assets/default-CWmzHQKB.js",revision:null},{url:"assets/default-node-CDQZ5bF4.js",revision:null},{url:"assets/delays-D0IW07bA.js",revision:null},{url:"assets/DeleteCardDialog-CRL7GCHS.js",revision:null},{url:"assets/DeleteCardDialog-DlOw911D.js",revision:null},{url:"assets/developer-Bru_GAJj.js",revision:null},{url:"assets/dist-BDrpuAz2.js",revision:null},{url:"assets/dist-BXbmJYBn.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-DdkY0Vq-.js",revision:null},{url:"assets/effect-DBSVVF8G-BTnTwOUs.js",revision:null},{url:"assets/elevenlabs-Dn_js3QH.js",revision:null},{url:"assets/emotions-BBR1pGN_.js",revision:null},{url:"assets/esm-BEkGVbXU.js",revision:null},{url:"assets/featherless-ai-C8B7oLSw.js",revision:null},{url:"assets/filter-message-BYIiopdJ.js",revision:null},{url:"assets/fireworks-ai-Lz68hytB.js",revision:null},{url:"assets/general-BXJrx6sY.js",revision:null},{url:"assets/gesture-circle-B7owgJTt.js",revision:null},{url:"assets/google-generative-ai-Illmbd4Q.js",revision:null},{url:"assets/HeaderLink-DiAWfIpN.js",revision:null},{url:"assets/HeaderLink-Iv0v2SA7.css",revision:null},{url:"assets/hearing-D9BWMp_9.js",revision:null},{url:"assets/home-viOrQmVG.js",revision:null},{url:"assets/icon-animation-h5tjr2vU.js",revision:null},{url:"assets/IconAnimation-7PF9WZf6.js",revision:null},{url:"assets/image-BhuwcwI9.css",revision:null},{url:"assets/image-C0gexLey.js",revision:null},{url:"assets/import-url-browser-gqaMLBiE.js",revision:null},{url:"assets/import-url-browser-io2OM8yW.js",revision:null},{url:"assets/import-url-node-C1t8aMyx.js",revision:null},{url:"assets/index-BVsAPyPZ.css",revision:null},{url:"assets/index-jH8PbleY.js",revision:null},{url:"assets/InputFile-D7EBb56X.js",revision:null},{url:"assets/js/CubismSdkForWeb-5-r.3/Core/live2dcubismcore.min.js",revision:null},{url:"assets/memory-iAJK3z1U.js",revision:null},{url:"assets/memory-long-term-Bu5ixdIq.js",revision:null},{url:"assets/memory-short-term-Bu3lNcVG.js",revision:null},{url:"assets/messages-BuYm6ihz.js",revision:null},{url:"assets/microsoft-speech-D706G4ZN.js",revision:null},{url:"assets/mistral-ai-DR6LajT7.js",revision:null},{url:"assets/models-ASp2XmSL.js",revision:null},{url:"assets/models-D8ntFVBl.css",revision:null},{url:"assets/modules-BhV9g4Py.js",revision:null},{url:"assets/moonshot-ai-CW9PC7OE.js",revision:null},{url:"assets/novita-ai-L_HGMG0y.js",revision:null},{url:"assets/ollama-6p5KD4E8.js",revision:null},{url:"assets/openai-audio-speech-DPa2LzMP.js",revision:null},{url:"assets/openai-audio-transcription-CtpPb_sH.js",revision:null},{url:"assets/openai-CPclLmM4.js",revision:null},{url:"assets/openrouter-ai-Dh0T_owf.js",revision:null},{url:"assets/ort-wasm-simd-threaded.jsep-B0T3yYHD.wasm",revision:null},{url:"assets/pages-BxzHyUxX.js",revision:null},{url:"assets/plain-OS_H60vi.js",revision:null},{url:"assets/player2-5lgdBGK0.js",revision:null},{url:"assets/player2-speech-DKo80HA-.js",revision:null},{url:"assets/polaroid-o7t1kfW1.js",revision:null},{url:"assets/process.worklet-CF6Ao8XG.js",revision:null},{url:"assets/providers-DcD3geRY.js",revision:null},{url:"assets/queue-D2GbAcmy.js",revision:null},{url:"assets/route-block-DWE87cA-.js",revision:null},{url:"assets/scene-B5jmLrrn.js",revision:null},{url:"assets/Scenes-_LhL7EaP.js",revision:null},{url:"assets/settings-C52F13cz.js",revision:null},{url:"assets/settings-CHo_K_ph.js",revision:null},{url:"assets/speech-BN_3U8Ip.js",revision:null},{url:"assets/stage-C-_T8paA.js",revision:null},{url:"assets/stage-YpeihAa8.js",revision:null},{url:"assets/sury-GtnkadyM-wpJ7Esbb.js",revision:null},{url:"assets/Textarea-D8CbwmdL.js",revision:null},{url:"assets/together-ai-u2udRYui.js",revision:null},{url:"assets/transformers.web-BHSa4vch.js",revision:null},{url:"assets/valibot-CbgwcZn_-d2JmOn5U.js",revision:null},{url:"assets/vibrant-Yy0Aq07d.js",revision:null},{url:"assets/volcengine-BQAYMb7Z.js",revision:null},{url:"assets/worker-CkF6jqty.js",revision:null},{url:"assets/xai-9v9Zeav4.js",revision:null},{url:"assets/zod-CD8IEU5z-rRXwlI4M.js",revision:null},{url:"index.html",revision:"35dfe62e555e323ba3939a43fe1b2a64"},{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:"13ac96785e6c03e0cb109d13086bf9b2"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/docs\//,/^\/ui\//,/^\/remote-assets\//,/^\/api\//]}))}); +if(!self.define){let s,e={};const l=(l,r)=>(l=new URL(l+".js",r).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(r,i)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const o=s=>l(s,n),a={module:{uri:n},exports:u,require:o};e[n]=Promise.all(r.map(s=>a[s]||o(s))).then(s=>(i(...s),u))}}define(["./workbox-3aa584b4"],function(s){"use strict";self.skipWaiting(),s.clientsClaim(),s.precacheAndRoute([{url:"assets/__vite-browser-external-DLPzVXxx.js",revision:null},{url:"assets/__vite-optional-peer-dep_effect_xsschema-DWjo7B8g.js",revision:null},{url:"assets/__vite-optional-peer-dep_sury_xsschema-DXkg5FFL.js",revision:null},{url:"assets/_...all_-VklDrsU-.js",revision:null},{url:"assets/airi-card-CIQghUKu.js",revision:null},{url:"assets/alibaba-cloud-model-studio-CigdA2eh.js",revision:null},{url:"assets/AnimatedWave-dg9fCal0.css",revision:null},{url:"assets/AnimatedWave-FWv7Aoa4.js",revision:null},{url:"assets/anthropic-C1-YVtDu.js",revision:null},{url:"assets/appearance-nnrTPNaJ.js",revision:null},{url:"assets/arktype-C-GObzDh-o7JLSWxh.js",revision:null},{url:"assets/audio-D_Dl7cMi.js",revision:null},{url:"assets/audio-record-B6N8fWma.js",revision:null},{url:"assets/background-remove-612OSbeu.js",revision:null},{url:"assets/Basic-eHldbasx.js",revision:null},{url:"assets/browser-CSlAJ-iu.js",revision:null},{url:"assets/browser-DAWwZmxu.js",revision:null},{url:"assets/CardCreate-_WmCZI0F.js",revision:null},{url:"assets/CardCreate-Rv0-Zj2Y.js",revision:null},{url:"assets/CardCreationDialog-BeDyQku3.js",revision:null},{url:"assets/CardCreationDialog-CG2KLbdk.css",revision:null},{url:"assets/CardCreationDialog-e-ER1OFp.js",revision:null},{url:"assets/CardDetailDialog-DS3Wn753.js",revision:null},{url:"assets/CardDetailDialog-Dx3dwrQO.js",revision:null},{url:"assets/CardListItem-D2mGsTNO.js",revision:null},{url:"assets/CardListItem-HblUJ8mm.js",revision:null},{url:"assets/chat-BdNjFz1N.js",revision:null},{url:"assets/cloudflare-workers-ai-9dIfUy-z.js",revision:null},{url:"assets/color-scheme-CRBG9uYh.js",revision:null},{url:"assets/color-scheme-DQ9rzeUD.css",revision:null},{url:"assets/ColorPalette-D44Srp6v.js",revision:null},{url:"assets/consciousness-DKxM8jWu.js",revision:null},{url:"assets/core-BT8tevxF.js",revision:null},{url:"assets/deepseek-C9ey36GY.js",revision:null},{url:"assets/default-0mJyAaQN.js",revision:null},{url:"assets/default-browser-CICL74Rl.js",revision:null},{url:"assets/default-node-JnkfFX6Q.js",revision:null},{url:"assets/delays-CHbcnvO4.js",revision:null},{url:"assets/DeleteCardDialog-BU_LHgTA.js",revision:null},{url:"assets/DeleteCardDialog-CMHp54f3.js",revision:null},{url:"assets/developer-B3mC2s_x.js",revision:null},{url:"assets/dist-BDrpuAz2.js",revision:null},{url:"assets/dist-CM_LBh2l.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-DdkY0Vq-.js",revision:null},{url:"assets/effect-DBSVVF8G-BWPDDm8N.js",revision:null},{url:"assets/elevenlabs-Svidxf1r.js",revision:null},{url:"assets/emotions-5q0BUTGM.js",revision:null},{url:"assets/esm-B_mnbyrn.js",revision:null},{url:"assets/featherless-ai-DF2K1yKk.js",revision:null},{url:"assets/filter-message-CFDl3g_d.js",revision:null},{url:"assets/fireworks-ai-CKsopCss.js",revision:null},{url:"assets/general-MWxAYrT-.js",revision:null},{url:"assets/gesture-circle-DCCP1PVe.js",revision:null},{url:"assets/google-generative-ai-5ZQ3g8vz.js",revision:null},{url:"assets/HeaderLink-B1-yiGgJ.js",revision:null},{url:"assets/HeaderLink-Iv0v2SA7.css",revision:null},{url:"assets/hearing-CRj71d-D.js",revision:null},{url:"assets/home-yc6BAt_u.js",revision:null},{url:"assets/icon-animation-C9bqWV38.js",revision:null},{url:"assets/IconAnimation-yDQP_Ncr.js",revision:null},{url:"assets/image-BhuwcwI9.css",revision:null},{url:"assets/image-CAayhVhY.js",revision:null},{url:"assets/import-url-browser-gqaMLBiE.js",revision:null},{url:"assets/import-url-browser-io2OM8yW.js",revision:null},{url:"assets/import-url-node-C1t8aMyx.js",revision:null},{url:"assets/index-B0_6uY9k.css",revision:null},{url:"assets/index-C2W4XoWv.js",revision:null},{url:"assets/InputFile-DO1WMP2V.js",revision:null},{url:"assets/js/CubismSdkForWeb-5-r.3/Core/live2dcubismcore.min.js",revision:null},{url:"assets/memory-BUvt7DgX.js",revision:null},{url:"assets/memory-long-term-DGbK0bay.js",revision:null},{url:"assets/memory-short-term-MnudAItY.js",revision:null},{url:"assets/messages-FIemZxGj.js",revision:null},{url:"assets/microsoft-speech-DWy-RkN7.js",revision:null},{url:"assets/mistral-ai-DoJfmKbx.js",revision:null},{url:"assets/models-CFsgoKO6.js",revision:null},{url:"assets/models-D8ntFVBl.css",revision:null},{url:"assets/modules-9avIG6iD.js",revision:null},{url:"assets/moonshot-ai-Cau_K86f.js",revision:null},{url:"assets/novita-ai-D9JggVed.js",revision:null},{url:"assets/ollama-D8ZG0VwN.js",revision:null},{url:"assets/openai-audio-speech-DU29tEDJ.js",revision:null},{url:"assets/openai-audio-transcription-EptmXPAp.js",revision:null},{url:"assets/openai-BwGLKk9I.js",revision:null},{url:"assets/openrouter-ai-BK1ttAnA.js",revision:null},{url:"assets/ort-wasm-simd-threaded.jsep-B0T3yYHD.wasm",revision:null},{url:"assets/pages-B_XiJ3Wi.js",revision:null},{url:"assets/plain-Dja5DZnF.js",revision:null},{url:"assets/player2-CVCTsITQ.js",revision:null},{url:"assets/player2-speech-omvRzl7n.js",revision:null},{url:"assets/polaroid-ClXFWlFr.js",revision:null},{url:"assets/process.worklet-CF6Ao8XG.js",revision:null},{url:"assets/providers-DEM9Tm1c.js",revision:null},{url:"assets/queue-C-YzWg-G.js",revision:null},{url:"assets/route-block-DWE87cA-.js",revision:null},{url:"assets/scene-Cu9Mso0l.js",revision:null},{url:"assets/Scenes-BRyVCX-j.js",revision:null},{url:"assets/settings-B6QGUj0K.js",revision:null},{url:"assets/settings-Bod_1WHj.js",revision:null},{url:"assets/speech-CgPaoQOI.js",revision:null},{url:"assets/stage-B_hSnz5Y.js",revision:null},{url:"assets/stage-DxrieaHP.js",revision:null},{url:"assets/sury-GtnkadyM-C8StDLTd.js",revision:null},{url:"assets/Textarea-BvqhLeCk.js",revision:null},{url:"assets/together-ai-BsZHvE5t.js",revision:null},{url:"assets/transformers.web-BWxQFDpM.js",revision:null},{url:"assets/valibot-CbgwcZn_-BQJaJhae.js",revision:null},{url:"assets/vibrant-pmbYNvM6.js",revision:null},{url:"assets/volcengine-4CqtHmsk.js",revision:null},{url:"assets/worker-CkF6jqty.js",revision:null},{url:"assets/xai-DIVtUzH3.js",revision:null},{url:"assets/zod-CD8IEU5z-BhI_iR6h.js",revision:null},{url:"index.html",revision:"2afed169fdffbd3c14fa3b07d23e3031"},{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:"13ac96785e6c03e0cb109d13086bf9b2"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/docs\//,/^\/ui\//,/^\/remote-assets\//,/^\/api\//]}))});